]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
various changes to get up to date with CVS
[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]
34e0a3bb
RD
2566#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568#define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotebook swig_types[105]
2572#define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574#define SWIGTYPE_p_wxObject swig_types[108]
2575#define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577#define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578#define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580#define SWIGTYPE_p_wxPaperSize swig_types[114]
2581#define SWIGTYPE_p_wxPickerBase swig_types[115]
2582#define SWIGTYPE_p_wxPoint swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585#define SWIGTYPE_p_wxPyControl swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588#define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589#define SWIGTYPE_p_wxPySizer swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRadioBox swig_types[128]
2595#define SWIGTYPE_p_wxRadioButton swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxScrollBar swig_types[131]
2598#define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSlider swig_types[141]
2608#define SWIGTYPE_p_wxSpinButton swig_types[142]
2609#define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610#define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611#define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612#define SWIGTYPE_p_wxStaticBox swig_types[146]
2613#define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614#define SWIGTYPE_p_wxStaticLine swig_types[148]
2615#define SWIGTYPE_p_wxStaticText swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619#define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620#define SWIGTYPE_p_wxTextAttr swig_types[154]
2621#define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622#define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623#define SWIGTYPE_p_wxToggleButton swig_types[157]
2624#define SWIGTYPE_p_wxToolBar swig_types[158]
2625#define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626#define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627#define SWIGTYPE_p_wxToolbook swig_types[161]
2628#define SWIGTYPE_p_wxToolbookEvent 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
ae5bc7f3
RD
7196SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7208 }
7209 arg1 = reinterpret_cast< wxGauge * >(argp1);
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 (arg1)->Pulse();
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218fail:
7219 return NULL;
7220}
7221
7222
0085ce49
RD
7223SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7224 PyObject *resultobj = 0;
7225 wxGauge *arg1 = (wxGauge *) 0 ;
7226 bool result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 PyObject *swig_obj[1] ;
7230
7231 if (!args) SWIG_fail;
7232 swig_obj[0] = args;
7233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7236 }
7237 arg1 = reinterpret_cast< wxGauge * >(argp1);
7238 {
7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
7240 result = (bool)((wxGauge const *)arg1)->IsVertical();
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7246 }
7247 return resultobj;
7248fail:
7249 return NULL;
7250}
7251
7252
7253SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj = 0;
7255 wxGauge *arg1 = (wxGauge *) 0 ;
7256 int arg2 ;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 int val2 ;
7260 int ecode2 = 0 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "self",(char *) "w", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7269 if (!SWIG_IsOK(res1)) {
7270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7271 }
7272 arg1 = reinterpret_cast< wxGauge * >(argp1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 (arg1)->SetShadowWidth(arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_Py_Void();
7285 return resultobj;
7286fail:
7287 return NULL;
22bfe96c
RD
7288}
7289
7290
0085ce49
RD
7291SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7292 PyObject *resultobj = 0;
7293 wxGauge *arg1 = (wxGauge *) 0 ;
7294 int result;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 PyObject *swig_obj[1] ;
7298
7299 if (!args) SWIG_fail;
7300 swig_obj[0] = args;
7301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7302 if (!SWIG_IsOK(res1)) {
7303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7304 }
7305 arg1 = reinterpret_cast< wxGauge * >(argp1);
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_From_int(static_cast< int >(result));
7313 return resultobj;
7314fail:
7315 return NULL;
7316}
7317
7318
7319SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj = 0;
7321 wxGauge *arg1 = (wxGauge *) 0 ;
7322 int arg2 ;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 int val2 ;
7326 int ecode2 = 0 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 char * kwnames[] = {
7330 (char *) "self",(char *) "w", NULL
7331 };
7332
7333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7337 }
7338 arg1 = reinterpret_cast< wxGauge * >(argp1);
7339 ecode2 = SWIG_AsVal_int(obj1, &val2);
7340 if (!SWIG_IsOK(ecode2)) {
7341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7342 }
7343 arg2 = static_cast< int >(val2);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 (arg1)->SetBezelFace(arg2);
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_Py_Void();
7351 return resultobj;
7352fail:
7353 return NULL;
d14a1e28 7354}
0085ce49
RD
7355
7356
7357SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 wxGauge *arg1 = (wxGauge *) 0 ;
7360 int result;
7361 void *argp1 = 0 ;
7362 int res1 = 0 ;
7363 PyObject *swig_obj[1] ;
7364
7365 if (!args) SWIG_fail;
7366 swig_obj[0] = args;
7367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7368 if (!SWIG_IsOK(res1)) {
7369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7370 }
7371 arg1 = reinterpret_cast< wxGauge * >(argp1);
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_From_int(static_cast< int >(result));
7379 return resultobj;
7380fail:
7381 return NULL;
7382}
7383
7384
7385SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj = 0;
7387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7388 SwigValueWrapper<wxVisualAttributes > result;
7389 int val1 ;
7390 int ecode1 = 0 ;
7391 PyObject * obj0 = 0 ;
7392 char * kwnames[] = {
7393 (char *) "variant", NULL
7394 };
7395
7396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7397 if (obj0) {
7398 ecode1 = SWIG_AsVal_int(obj0, &val1);
7399 if (!SWIG_IsOK(ecode1)) {
7400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7401 }
7402 arg1 = static_cast< wxWindowVariant >(val1);
7403 }
7404 {
7405 if (!wxPyCheckForApp()) SWIG_fail;
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = wxGauge::GetClassDefaultAttributes(arg1);
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7412 return resultobj;
7413fail:
7414 return NULL;
b2dc1044
RD
7415}
7416
7417
0085ce49
RD
7418SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *obj;
7420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7422 return SWIG_Py_Void();
7423}
7424
7425SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7426 return SWIG_Python_InitShadowInstance(args);
7427}
7428
7429SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7430 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7431 return 1;
7432}
7433
7434
7435SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7436 PyObject *pyobj = 0;
7437
7438 {
b2dc1044 7439#if wxUSE_UNICODE
0085ce49 7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7441#else
0085ce49 7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7443#endif
0085ce49
RD
7444 }
7445 return pyobj;
d14a1e28
RD
7446}
7447
7448
0085ce49
RD
7449SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
d14a1e28
RD
7452}
7453
7454
0085ce49
RD
7455SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7456 PyObject *pyobj = 0;
7457
7458 {
7459#if wxUSE_UNICODE
7460 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7461#else
7462 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7463#endif
7464 }
7465 return pyobj;
7466}
7467
7468
7469SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7470 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7471 return 1;
7472}
7473
7474
7475SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7476 PyObject *pyobj = 0;
7477
7478 {
7479#if wxUSE_UNICODE
7480 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7481#else
7482 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7483#endif
7484 }
7485 return pyobj;
7486}
7487
7488
7489SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj = 0;
7491 wxWindow *arg1 = (wxWindow *) 0 ;
7492 int arg2 = (int) -1 ;
7493 wxString const &arg3_defvalue = wxPyEmptyString ;
7494 wxString *arg3 = (wxString *) &arg3_defvalue ;
7495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7497 wxSize const &arg5_defvalue = wxDefaultSize ;
7498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7499 long arg6 = (long) 0 ;
7500 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7501 wxString *arg7 = (wxString *) &arg7_defvalue ;
7502 wxStaticBox *result = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 int val2 ;
7506 int ecode2 = 0 ;
7507 bool temp3 = false ;
7508 wxPoint temp4 ;
7509 wxSize temp5 ;
7510 long val6 ;
7511 int ecode6 = 0 ;
7512 bool temp7 = false ;
7513 PyObject * obj0 = 0 ;
7514 PyObject * obj1 = 0 ;
7515 PyObject * obj2 = 0 ;
7516 PyObject * obj3 = 0 ;
7517 PyObject * obj4 = 0 ;
7518 PyObject * obj5 = 0 ;
7519 PyObject * obj6 = 0 ;
7520 char * kwnames[] = {
7521 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7522 };
7523
7524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7526 if (!SWIG_IsOK(res1)) {
7527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7528 }
7529 arg1 = reinterpret_cast< wxWindow * >(argp1);
7530 if (obj1) {
7531 ecode2 = SWIG_AsVal_int(obj1, &val2);
7532 if (!SWIG_IsOK(ecode2)) {
7533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7534 }
7535 arg2 = static_cast< int >(val2);
7536 }
7537 if (obj2) {
d14a1e28 7538 {
0085ce49
RD
7539 arg3 = wxString_in_helper(obj2);
7540 if (arg3 == NULL) SWIG_fail;
7541 temp3 = true;
d14a1e28 7542 }
0085ce49
RD
7543 }
7544 if (obj3) {
4f89f6a3 7545 {
0085ce49
RD
7546 arg4 = &temp4;
7547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7548 }
0085ce49
RD
7549 }
7550 if (obj4) {
d14a1e28 7551 {
0085ce49
RD
7552 arg5 = &temp5;
7553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7554 }
0085ce49
RD
7555 }
7556 if (obj5) {
7557 ecode6 = SWIG_AsVal_long(obj5, &val6);
7558 if (!SWIG_IsOK(ecode6)) {
7559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7560 }
7561 arg6 = static_cast< long >(val6);
7562 }
7563 if (obj6) {
d14a1e28 7564 {
0085ce49
RD
7565 arg7 = wxString_in_helper(obj6);
7566 if (arg7 == NULL) SWIG_fail;
7567 temp7 = true;
d14a1e28 7568 }
0085ce49
RD
7569 }
7570 {
7571 if (!wxPyCheckForApp()) SWIG_fail;
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7578 {
7579 if (temp3)
7580 delete arg3;
7581 }
7582 {
7583 if (temp7)
7584 delete arg7;
7585 }
7586 return resultobj;
7587fail:
7588 {
7589 if (temp3)
7590 delete arg3;
7591 }
7592 {
7593 if (temp7)
7594 delete arg7;
7595 }
7596 return NULL;
d14a1e28
RD
7597}
7598
7599
0085ce49
RD
7600SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7601 PyObject *resultobj = 0;
7602 wxStaticBox *result = 0 ;
7603
7604 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7605 {
7606 if (!wxPyCheckForApp()) SWIG_fail;
7607 PyThreadState* __tstate = wxPyBeginAllowThreads();
7608 result = (wxStaticBox *)new wxStaticBox();
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7613 return resultobj;
7614fail:
7615 return NULL;
7616}
7617
7618
7619SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7620 PyObject *resultobj = 0;
7621 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7622 wxWindow *arg2 = (wxWindow *) 0 ;
7623 int arg3 = (int) -1 ;
7624 wxString const &arg4_defvalue = wxPyEmptyString ;
7625 wxString *arg4 = (wxString *) &arg4_defvalue ;
7626 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7627 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7628 wxSize const &arg6_defvalue = wxDefaultSize ;
7629 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7630 long arg7 = (long) 0 ;
7631 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7632 wxString *arg8 = (wxString *) &arg8_defvalue ;
7633 bool result;
7634 void *argp1 = 0 ;
7635 int res1 = 0 ;
7636 void *argp2 = 0 ;
7637 int res2 = 0 ;
7638 int val3 ;
7639 int ecode3 = 0 ;
7640 bool temp4 = false ;
7641 wxPoint temp5 ;
7642 wxSize temp6 ;
7643 long val7 ;
7644 int ecode7 = 0 ;
7645 bool temp8 = false ;
7646 PyObject * obj0 = 0 ;
7647 PyObject * obj1 = 0 ;
7648 PyObject * obj2 = 0 ;
7649 PyObject * obj3 = 0 ;
7650 PyObject * obj4 = 0 ;
7651 PyObject * obj5 = 0 ;
7652 PyObject * obj6 = 0 ;
7653 PyObject * obj7 = 0 ;
7654 char * kwnames[] = {
7655 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7656 };
7657
7658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7660 if (!SWIG_IsOK(res1)) {
7661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7662 }
7663 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7665 if (!SWIG_IsOK(res2)) {
7666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7667 }
7668 arg2 = reinterpret_cast< wxWindow * >(argp2);
7669 if (obj2) {
7670 ecode3 = SWIG_AsVal_int(obj2, &val3);
7671 if (!SWIG_IsOK(ecode3)) {
7672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7673 }
7674 arg3 = static_cast< int >(val3);
7675 }
7676 if (obj3) {
093d3ff1 7677 {
0085ce49
RD
7678 arg4 = wxString_in_helper(obj3);
7679 if (arg4 == NULL) SWIG_fail;
7680 temp4 = true;
093d3ff1 7681 }
0085ce49
RD
7682 }
7683 if (obj4) {
d14a1e28 7684 {
0085ce49
RD
7685 arg5 = &temp5;
7686 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7687 }
0085ce49
RD
7688 }
7689 if (obj5) {
d14a1e28 7690 {
0085ce49
RD
7691 arg6 = &temp6;
7692 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7693 }
0085ce49
RD
7694 }
7695 if (obj6) {
7696 ecode7 = SWIG_AsVal_long(obj6, &val7);
7697 if (!SWIG_IsOK(ecode7)) {
7698 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7699 }
7700 arg7 = static_cast< long >(val7);
7701 }
7702 if (obj7) {
093d3ff1 7703 {
0085ce49
RD
7704 arg8 = wxString_in_helper(obj7);
7705 if (arg8 == NULL) SWIG_fail;
7706 temp8 = true;
093d3ff1 7707 }
0085ce49
RD
7708 }
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 {
7716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7717 }
7718 {
7719 if (temp4)
7720 delete arg4;
7721 }
7722 {
7723 if (temp8)
7724 delete arg8;
7725 }
7726 return resultobj;
7727fail:
7728 {
7729 if (temp4)
7730 delete arg4;
7731 }
7732 {
7733 if (temp8)
7734 delete arg8;
7735 }
7736 return NULL;
7737}
d14a1e28 7738
0085ce49
RD
7739
7740SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7741 PyObject *resultobj = 0;
7742 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7743 SwigValueWrapper<wxVisualAttributes > result;
7744 int val1 ;
7745 int ecode1 = 0 ;
7746 PyObject * obj0 = 0 ;
7747 char * kwnames[] = {
7748 (char *) "variant", NULL
7749 };
7750
7751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7752 if (obj0) {
7753 ecode1 = SWIG_AsVal_int(obj0, &val1);
7754 if (!SWIG_IsOK(ecode1)) {
7755 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7756 }
7757 arg1 = static_cast< wxWindowVariant >(val1);
7758 }
7759 {
7760 if (!wxPyCheckForApp()) SWIG_fail;
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7767 return resultobj;
7768fail:
7769 return NULL;
7770}
7771
7772
7773SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7774 PyObject *obj;
7775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7776 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7777 return SWIG_Py_Void();
7778}
7779
7780SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7781 return SWIG_Python_InitShadowInstance(args);
7782}
7783
7784SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxWindow *arg1 = (wxWindow *) 0 ;
7787 int arg2 = (int) -1 ;
7788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7790 wxSize const &arg4_defvalue = wxDefaultSize ;
7791 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7792 long arg5 = (long) wxLI_HORIZONTAL ;
7793 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7794 wxString *arg6 = (wxString *) &arg6_defvalue ;
7795 wxStaticLine *result = 0 ;
7796 void *argp1 = 0 ;
7797 int res1 = 0 ;
7798 int val2 ;
7799 int ecode2 = 0 ;
7800 wxPoint temp3 ;
7801 wxSize temp4 ;
7802 long val5 ;
7803 int ecode5 = 0 ;
7804 bool temp6 = false ;
7805 PyObject * obj0 = 0 ;
7806 PyObject * obj1 = 0 ;
7807 PyObject * obj2 = 0 ;
7808 PyObject * obj3 = 0 ;
7809 PyObject * obj4 = 0 ;
7810 PyObject * obj5 = 0 ;
7811 char * kwnames[] = {
7812 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7813 };
7814
7815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7817 if (!SWIG_IsOK(res1)) {
7818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7819 }
7820 arg1 = reinterpret_cast< wxWindow * >(argp1);
7821 if (obj1) {
7822 ecode2 = SWIG_AsVal_int(obj1, &val2);
7823 if (!SWIG_IsOK(ecode2)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7825 }
7826 arg2 = static_cast< int >(val2);
7827 }
7828 if (obj2) {
093d3ff1 7829 {
0085ce49
RD
7830 arg3 = &temp3;
7831 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7832 }
0085ce49
RD
7833 }
7834 if (obj3) {
d14a1e28 7835 {
0085ce49
RD
7836 arg4 = &temp4;
7837 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7838 }
0085ce49
RD
7839 }
7840 if (obj4) {
7841 ecode5 = SWIG_AsVal_long(obj4, &val5);
7842 if (!SWIG_IsOK(ecode5)) {
7843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7844 }
7845 arg5 = static_cast< long >(val5);
7846 }
7847 if (obj5) {
7848 {
7849 arg6 = wxString_in_helper(obj5);
7850 if (arg6 == NULL) SWIG_fail;
7851 temp6 = true;
7852 }
7853 }
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7862 {
7863 if (temp6)
7864 delete arg6;
7865 }
7866 return resultobj;
7867fail:
7868 {
7869 if (temp6)
7870 delete arg6;
7871 }
7872 return NULL;
d14a1e28
RD
7873}
7874
7875
0085ce49
RD
7876SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7877 PyObject *resultobj = 0;
7878 wxStaticLine *result = 0 ;
7879
7880 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7881 {
7882 if (!wxPyCheckForApp()) SWIG_fail;
7883 PyThreadState* __tstate = wxPyBeginAllowThreads();
7884 result = (wxStaticLine *)new wxStaticLine();
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7889 return resultobj;
7890fail:
7891 return NULL;
7892}
7893
7894
7895SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj = 0;
7897 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7898 wxWindow *arg2 = (wxWindow *) 0 ;
7899 int arg3 = (int) -1 ;
7900 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7901 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7902 wxSize const &arg5_defvalue = wxDefaultSize ;
7903 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7904 long arg6 = (long) wxLI_HORIZONTAL ;
7905 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7906 wxString *arg7 = (wxString *) &arg7_defvalue ;
7907 bool result;
7908 void *argp1 = 0 ;
7909 int res1 = 0 ;
7910 void *argp2 = 0 ;
7911 int res2 = 0 ;
7912 int val3 ;
7913 int ecode3 = 0 ;
7914 wxPoint temp4 ;
7915 wxSize temp5 ;
7916 long val6 ;
7917 int ecode6 = 0 ;
7918 bool temp7 = false ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 PyObject * obj3 = 0 ;
7923 PyObject * obj4 = 0 ;
7924 PyObject * obj5 = 0 ;
7925 PyObject * obj6 = 0 ;
7926 char * kwnames[] = {
7927 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7928 };
7929
7930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7932 if (!SWIG_IsOK(res1)) {
7933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7934 }
7935 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7937 if (!SWIG_IsOK(res2)) {
7938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7939 }
7940 arg2 = reinterpret_cast< wxWindow * >(argp2);
7941 if (obj2) {
7942 ecode3 = SWIG_AsVal_int(obj2, &val3);
7943 if (!SWIG_IsOK(ecode3)) {
7944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7945 }
7946 arg3 = static_cast< int >(val3);
7947 }
7948 if (obj3) {
d14a1e28 7949 {
0085ce49
RD
7950 arg4 = &temp4;
7951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7952 }
0085ce49
RD
7953 }
7954 if (obj4) {
093d3ff1 7955 {
0085ce49
RD
7956 arg5 = &temp5;
7957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7958 }
0085ce49
RD
7959 }
7960 if (obj5) {
7961 ecode6 = SWIG_AsVal_long(obj5, &val6);
7962 if (!SWIG_IsOK(ecode6)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7964 }
7965 arg6 = static_cast< long >(val6);
7966 }
7967 if (obj6) {
7968 {
7969 arg7 = wxString_in_helper(obj6);
7970 if (arg7 == NULL) SWIG_fail;
7971 temp7 = true;
7972 }
7973 }
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 {
7981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7982 }
7983 {
7984 if (temp7)
7985 delete arg7;
7986 }
7987 return resultobj;
7988fail:
7989 {
7990 if (temp7)
7991 delete arg7;
7992 }
7993 return NULL;
d14a1e28
RD
7994}
7995
7996
0085ce49
RD
7997SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7998 PyObject *resultobj = 0;
7999 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8000 bool result;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 PyObject *swig_obj[1] ;
8004
8005 if (!args) SWIG_fail;
8006 swig_obj[0] = args;
8007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8010 }
8011 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8020 }
8021 return resultobj;
8022fail:
8023 return NULL;
8024}
8025
8026
8027SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 int result;
8030
8031 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (int)wxStaticLine::GetDefaultSize();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 resultobj = SWIG_From_int(static_cast< int >(result));
8039 return resultobj;
8040fail:
8041 return NULL;
8042}
8043
8044
8045SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8046 PyObject *resultobj = 0;
8047 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8048 SwigValueWrapper<wxVisualAttributes > result;
8049 int val1 ;
8050 int ecode1 = 0 ;
8051 PyObject * obj0 = 0 ;
8052 char * kwnames[] = {
8053 (char *) "variant", NULL
8054 };
8055
8056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8057 if (obj0) {
8058 ecode1 = SWIG_AsVal_int(obj0, &val1);
8059 if (!SWIG_IsOK(ecode1)) {
8060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8061 }
8062 arg1 = static_cast< wxWindowVariant >(val1);
8063 }
8064 {
8065 if (!wxPyCheckForApp()) SWIG_fail;
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8072 return resultobj;
8073fail:
8074 return NULL;
8075}
8076
8077
8078SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8079 PyObject *obj;
8080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8081 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8082 return SWIG_Py_Void();
8083}
8084
8085SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8086 return SWIG_Python_InitShadowInstance(args);
8087}
8088
8089SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxWindow *arg1 = (wxWindow *) 0 ;
8092 int arg2 = (int) -1 ;
8093 wxString const &arg3_defvalue = wxPyEmptyString ;
8094 wxString *arg3 = (wxString *) &arg3_defvalue ;
8095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8097 wxSize const &arg5_defvalue = wxDefaultSize ;
8098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8099 long arg6 = (long) 0 ;
8100 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8101 wxString *arg7 = (wxString *) &arg7_defvalue ;
8102 wxStaticText *result = 0 ;
8103 void *argp1 = 0 ;
8104 int res1 = 0 ;
8105 int val2 ;
8106 int ecode2 = 0 ;
8107 bool temp3 = false ;
8108 wxPoint temp4 ;
8109 wxSize temp5 ;
8110 long val6 ;
8111 int ecode6 = 0 ;
8112 bool temp7 = false ;
8113 PyObject * obj0 = 0 ;
8114 PyObject * obj1 = 0 ;
8115 PyObject * obj2 = 0 ;
8116 PyObject * obj3 = 0 ;
8117 PyObject * obj4 = 0 ;
8118 PyObject * obj5 = 0 ;
8119 PyObject * obj6 = 0 ;
8120 char * kwnames[] = {
8121 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8122 };
8123
8124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8128 }
8129 arg1 = reinterpret_cast< wxWindow * >(argp1);
8130 if (obj1) {
8131 ecode2 = SWIG_AsVal_int(obj1, &val2);
8132 if (!SWIG_IsOK(ecode2)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8134 }
8135 arg2 = static_cast< int >(val2);
8136 }
8137 if (obj2) {
d14a1e28 8138 {
0085ce49
RD
8139 arg3 = wxString_in_helper(obj2);
8140 if (arg3 == NULL) SWIG_fail;
8141 temp3 = true;
d14a1e28 8142 }
0085ce49
RD
8143 }
8144 if (obj3) {
4f89f6a3 8145 {
0085ce49
RD
8146 arg4 = &temp4;
8147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8148 }
0085ce49
RD
8149 }
8150 if (obj4) {
093d3ff1 8151 {
0085ce49
RD
8152 arg5 = &temp5;
8153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8154 }
0085ce49
RD
8155 }
8156 if (obj5) {
8157 ecode6 = SWIG_AsVal_long(obj5, &val6);
8158 if (!SWIG_IsOK(ecode6)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8160 }
8161 arg6 = static_cast< long >(val6);
8162 }
8163 if (obj6) {
d14a1e28 8164 {
0085ce49
RD
8165 arg7 = wxString_in_helper(obj6);
8166 if (arg7 == NULL) SWIG_fail;
8167 temp7 = true;
d14a1e28 8168 }
0085ce49
RD
8169 }
8170 {
8171 if (!wxPyCheckForApp()) SWIG_fail;
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8178 {
8179 if (temp3)
8180 delete arg3;
8181 }
8182 {
8183 if (temp7)
8184 delete arg7;
8185 }
8186 return resultobj;
8187fail:
8188 {
8189 if (temp3)
8190 delete arg3;
8191 }
8192 {
8193 if (temp7)
8194 delete arg7;
8195 }
8196 return NULL;
d14a1e28
RD
8197}
8198
8199
0085ce49
RD
8200SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 wxStaticText *result = 0 ;
8203
8204 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8205 {
8206 if (!wxPyCheckForApp()) SWIG_fail;
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 result = (wxStaticText *)new wxStaticText();
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8213 return resultobj;
8214fail:
8215 return NULL;
8216}
8217
8218
8219SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8220 PyObject *resultobj = 0;
8221 wxStaticText *arg1 = (wxStaticText *) 0 ;
8222 wxWindow *arg2 = (wxWindow *) 0 ;
8223 int arg3 = (int) -1 ;
8224 wxString const &arg4_defvalue = wxPyEmptyString ;
8225 wxString *arg4 = (wxString *) &arg4_defvalue ;
8226 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8227 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8228 wxSize const &arg6_defvalue = wxDefaultSize ;
8229 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8230 long arg7 = (long) 0 ;
8231 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8232 wxString *arg8 = (wxString *) &arg8_defvalue ;
8233 bool result;
8234 void *argp1 = 0 ;
8235 int res1 = 0 ;
8236 void *argp2 = 0 ;
8237 int res2 = 0 ;
8238 int val3 ;
8239 int ecode3 = 0 ;
8240 bool temp4 = false ;
8241 wxPoint temp5 ;
8242 wxSize temp6 ;
8243 long val7 ;
8244 int ecode7 = 0 ;
8245 bool temp8 = false ;
8246 PyObject * obj0 = 0 ;
8247 PyObject * obj1 = 0 ;
8248 PyObject * obj2 = 0 ;
8249 PyObject * obj3 = 0 ;
8250 PyObject * obj4 = 0 ;
8251 PyObject * obj5 = 0 ;
8252 PyObject * obj6 = 0 ;
8253 PyObject * obj7 = 0 ;
8254 char * kwnames[] = {
8255 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8256 };
8257
8258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8260 if (!SWIG_IsOK(res1)) {
8261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8262 }
8263 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8265 if (!SWIG_IsOK(res2)) {
8266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8267 }
8268 arg2 = reinterpret_cast< wxWindow * >(argp2);
8269 if (obj2) {
8270 ecode3 = SWIG_AsVal_int(obj2, &val3);
8271 if (!SWIG_IsOK(ecode3)) {
8272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8273 }
8274 arg3 = static_cast< int >(val3);
8275 }
8276 if (obj3) {
d14a1e28 8277 {
0085ce49
RD
8278 arg4 = wxString_in_helper(obj3);
8279 if (arg4 == NULL) SWIG_fail;
8280 temp4 = true;
8281 }
8282 }
8283 if (obj4) {
8284 {
8285 arg5 = &temp5;
8286 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8287 }
0085ce49
RD
8288 }
8289 if (obj5) {
093d3ff1 8290 {
0085ce49
RD
8291 arg6 = &temp6;
8292 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8293 }
0085ce49
RD
8294 }
8295 if (obj6) {
8296 ecode7 = SWIG_AsVal_long(obj6, &val7);
8297 if (!SWIG_IsOK(ecode7)) {
8298 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8299 }
8300 arg7 = static_cast< long >(val7);
8301 }
8302 if (obj7) {
093d3ff1 8303 {
0085ce49
RD
8304 arg8 = wxString_in_helper(obj7);
8305 if (arg8 == NULL) SWIG_fail;
8306 temp8 = true;
8307 }
8308 }
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 {
8316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8317 }
8318 {
8319 if (temp4)
8320 delete arg4;
8321 }
8322 {
8323 if (temp8)
8324 delete arg8;
8325 }
8326 return resultobj;
8327fail:
8328 {
8329 if (temp4)
8330 delete arg4;
8331 }
8332 {
8333 if (temp8)
8334 delete arg8;
8335 }
8336 return NULL;
8337}
8338
8339
8340SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8341 PyObject *resultobj = 0;
8342 wxStaticText *arg1 = (wxStaticText *) 0 ;
8343 int arg2 ;
8344 void *argp1 = 0 ;
8345 int res1 = 0 ;
8346 int val2 ;
8347 int ecode2 = 0 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 char * kwnames[] = {
8351 (char *) "self",(char *) "width", NULL
8352 };
8353
8354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8356 if (!SWIG_IsOK(res1)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8358 }
8359 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8360 ecode2 = SWIG_AsVal_int(obj1, &val2);
8361 if (!SWIG_IsOK(ecode2)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8363 }
8364 arg2 = static_cast< int >(val2);
8365 {
8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
8367 (arg1)->Wrap(arg2);
8368 wxPyEndAllowThreads(__tstate);
8369 if (PyErr_Occurred()) SWIG_fail;
8370 }
8371 resultobj = SWIG_Py_Void();
8372 return resultobj;
8373fail:
8374 return NULL;
8375}
8376
8377
8378SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj = 0;
8380 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8381 SwigValueWrapper<wxVisualAttributes > result;
8382 int val1 ;
8383 int ecode1 = 0 ;
8384 PyObject * obj0 = 0 ;
8385 char * kwnames[] = {
8386 (char *) "variant", NULL
8387 };
8388
8389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8390 if (obj0) {
8391 ecode1 = SWIG_AsVal_int(obj0, &val1);
8392 if (!SWIG_IsOK(ecode1)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8394 }
8395 arg1 = static_cast< wxWindowVariant >(val1);
8396 }
8397 {
8398 if (!wxPyCheckForApp()) SWIG_fail;
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 result = wxStaticText::GetClassDefaultAttributes(arg1);
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8405 return resultobj;
8406fail:
8407 return NULL;
8408}
8409
8410
8411SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *obj;
8413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8414 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8415 return SWIG_Py_Void();
8416}
8417
8418SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8419 return SWIG_Python_InitShadowInstance(args);
8420}
8421
8422SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj = 0;
8424 wxWindow *arg1 = (wxWindow *) 0 ;
8425 int arg2 = (int) -1 ;
8426 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8427 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8428 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8429 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8430 wxSize const &arg5_defvalue = wxDefaultSize ;
8431 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8432 long arg6 = (long) 0 ;
8433 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8434 wxString *arg7 = (wxString *) &arg7_defvalue ;
8435 wxStaticBitmap *result = 0 ;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 int val2 ;
8439 int ecode2 = 0 ;
8440 void *argp3 = 0 ;
8441 int res3 = 0 ;
8442 wxPoint temp4 ;
8443 wxSize temp5 ;
8444 long val6 ;
8445 int ecode6 = 0 ;
8446 bool temp7 = false ;
8447 PyObject * obj0 = 0 ;
8448 PyObject * obj1 = 0 ;
8449 PyObject * obj2 = 0 ;
8450 PyObject * obj3 = 0 ;
8451 PyObject * obj4 = 0 ;
8452 PyObject * obj5 = 0 ;
8453 PyObject * obj6 = 0 ;
8454 char * kwnames[] = {
8455 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8456 };
8457
8458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8462 }
8463 arg1 = reinterpret_cast< wxWindow * >(argp1);
8464 if (obj1) {
8465 ecode2 = SWIG_AsVal_int(obj1, &val2);
8466 if (!SWIG_IsOK(ecode2)) {
8467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8468 }
8469 arg2 = static_cast< int >(val2);
8470 }
8471 if (obj2) {
8472 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8473 if (!SWIG_IsOK(res3)) {
8474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8475 }
8476 if (!argp3) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8478 }
0085ce49
RD
8479 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8480 }
8481 if (obj3) {
d14a1e28 8482 {
0085ce49
RD
8483 arg4 = &temp4;
8484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8485 }
0085ce49
RD
8486 }
8487 if (obj4) {
d14a1e28 8488 {
0085ce49
RD
8489 arg5 = &temp5;
8490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8491 }
0085ce49
RD
8492 }
8493 if (obj5) {
8494 ecode6 = SWIG_AsVal_long(obj5, &val6);
8495 if (!SWIG_IsOK(ecode6)) {
8496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8497 }
8498 arg6 = static_cast< long >(val6);
8499 }
8500 if (obj6) {
093d3ff1 8501 {
0085ce49
RD
8502 arg7 = wxString_in_helper(obj6);
8503 if (arg7 == NULL) SWIG_fail;
8504 temp7 = true;
093d3ff1 8505 }
0085ce49
RD
8506 }
8507 {
8508 if (!wxPyCheckForApp()) SWIG_fail;
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8515 {
8516 if (temp7)
8517 delete arg7;
8518 }
8519 return resultobj;
8520fail:
8521 {
8522 if (temp7)
8523 delete arg7;
8524 }
8525 return NULL;
d14a1e28
RD
8526}
8527
8528
0085ce49
RD
8529SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8530 PyObject *resultobj = 0;
8531 wxStaticBitmap *result = 0 ;
8532
8533 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8534 {
8535 if (!wxPyCheckForApp()) SWIG_fail;
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = (wxStaticBitmap *)new wxStaticBitmap();
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8542 return resultobj;
8543fail:
8544 return NULL;
8545}
8546
8547
8548SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj = 0;
8550 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8551 wxWindow *arg2 = (wxWindow *) 0 ;
8552 int arg3 = (int) -1 ;
8553 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8554 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8555 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8556 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8557 wxSize const &arg6_defvalue = wxDefaultSize ;
8558 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8559 long arg7 = (long) 0 ;
8560 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8561 wxString *arg8 = (wxString *) &arg8_defvalue ;
8562 bool result;
8563 void *argp1 = 0 ;
8564 int res1 = 0 ;
8565 void *argp2 = 0 ;
8566 int res2 = 0 ;
8567 int val3 ;
8568 int ecode3 = 0 ;
8569 void *argp4 = 0 ;
8570 int res4 = 0 ;
8571 wxPoint temp5 ;
8572 wxSize temp6 ;
8573 long val7 ;
8574 int ecode7 = 0 ;
8575 bool temp8 = false ;
8576 PyObject * obj0 = 0 ;
8577 PyObject * obj1 = 0 ;
8578 PyObject * obj2 = 0 ;
8579 PyObject * obj3 = 0 ;
8580 PyObject * obj4 = 0 ;
8581 PyObject * obj5 = 0 ;
8582 PyObject * obj6 = 0 ;
8583 PyObject * obj7 = 0 ;
8584 char * kwnames[] = {
8585 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8586 };
8587
8588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8590 if (!SWIG_IsOK(res1)) {
8591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8592 }
8593 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8595 if (!SWIG_IsOK(res2)) {
8596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8597 }
8598 arg2 = reinterpret_cast< wxWindow * >(argp2);
8599 if (obj2) {
8600 ecode3 = SWIG_AsVal_int(obj2, &val3);
8601 if (!SWIG_IsOK(ecode3)) {
8602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8603 }
8604 arg3 = static_cast< int >(val3);
8605 }
8606 if (obj3) {
8607 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8608 if (!SWIG_IsOK(res4)) {
8609 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8610 }
8611 if (!argp4) {
8612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8613 }
0085ce49
RD
8614 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8615 }
8616 if (obj4) {
22bfe96c 8617 {
0085ce49
RD
8618 arg5 = &temp5;
8619 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8620 }
0085ce49
RD
8621 }
8622 if (obj5) {
22bfe96c 8623 {
0085ce49
RD
8624 arg6 = &temp6;
8625 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8626 }
0085ce49
RD
8627 }
8628 if (obj6) {
8629 ecode7 = SWIG_AsVal_long(obj6, &val7);
8630 if (!SWIG_IsOK(ecode7)) {
8631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8632 }
8633 arg7 = static_cast< long >(val7);
8634 }
8635 if (obj7) {
b2dc1044 8636 {
0085ce49
RD
8637 arg8 = wxString_in_helper(obj7);
8638 if (arg8 == NULL) SWIG_fail;
8639 temp8 = true;
b2dc1044 8640 }
0085ce49
RD
8641 }
8642 {
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 {
8649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8650 }
8651 {
8652 if (temp8)
8653 delete arg8;
8654 }
8655 return resultobj;
8656fail:
8657 {
8658 if (temp8)
8659 delete arg8;
8660 }
8661 return NULL;
b2dc1044
RD
8662}
8663
8664
0085ce49
RD
8665SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8668 wxBitmap result;
8669 void *argp1 = 0 ;
8670 int res1 = 0 ;
8671 PyObject *swig_obj[1] ;
8672
8673 if (!args) SWIG_fail;
8674 swig_obj[0] = args;
8675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8678 }
8679 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = (arg1)->GetBitmap();
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8687 return resultobj;
8688fail:
8689 return NULL;
8690}
8691
8692
8693SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj = 0;
8695 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8696 wxBitmap *arg2 = 0 ;
8697 void *argp1 = 0 ;
8698 int res1 = 0 ;
8699 void *argp2 = 0 ;
8700 int res2 = 0 ;
8701 PyObject * obj0 = 0 ;
8702 PyObject * obj1 = 0 ;
8703 char * kwnames[] = {
8704 (char *) "self",(char *) "bitmap", NULL
8705 };
8706
8707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8709 if (!SWIG_IsOK(res1)) {
8710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8711 }
8712 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8714 if (!SWIG_IsOK(res2)) {
8715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8716 }
8717 if (!argp2) {
8718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8719 }
8720 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_Py_Void();
8728 return resultobj;
8729fail:
8730 return NULL;
8731}
8732
8733
8734SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj = 0;
8736 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8737 wxIcon *arg2 = 0 ;
8738 void *argp1 = 0 ;
8739 int res1 = 0 ;
8740 void *argp2 = 0 ;
8741 int res2 = 0 ;
8742 PyObject * obj0 = 0 ;
8743 PyObject * obj1 = 0 ;
8744 char * kwnames[] = {
8745 (char *) "self",(char *) "icon", NULL
8746 };
8747
8748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8750 if (!SWIG_IsOK(res1)) {
8751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8752 }
8753 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8755 if (!SWIG_IsOK(res2)) {
8756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8757 }
8758 if (!argp2) {
8759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8760 }
8761 arg2 = reinterpret_cast< wxIcon * >(argp2);
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 (arg1)->SetIcon((wxIcon const &)*arg2);
8765 wxPyEndAllowThreads(__tstate);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 resultobj = SWIG_Py_Void();
8769 return resultobj;
8770fail:
8771 return NULL;
8772}
8773
8774
8775SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8776 PyObject *resultobj = 0;
8777 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8778 SwigValueWrapper<wxVisualAttributes > result;
8779 int val1 ;
8780 int ecode1 = 0 ;
8781 PyObject * obj0 = 0 ;
8782 char * kwnames[] = {
8783 (char *) "variant", NULL
8784 };
8785
8786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8787 if (obj0) {
8788 ecode1 = SWIG_AsVal_int(obj0, &val1);
8789 if (!SWIG_IsOK(ecode1)) {
8790 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8791 }
8792 arg1 = static_cast< wxWindowVariant >(val1);
8793 }
8794 {
8795 if (!wxPyCheckForApp()) SWIG_fail;
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8802 return resultobj;
8803fail:
8804 return NULL;
b2dc1044
RD
8805}
8806
8807
0085ce49
RD
8808SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8809 PyObject *obj;
8810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8811 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8812 return SWIG_Py_Void();
b2dc1044
RD
8813}
8814
0085ce49
RD
8815SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8816 return SWIG_Python_InitShadowInstance(args);
8817}
b2dc1044 8818
0085ce49
RD
8819SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8820 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8821 return 1;
b2dc1044
RD
8822}
8823
8824
0085ce49
RD
8825SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8826 PyObject *pyobj = 0;
8827
8828 {
b2dc1044 8829#if wxUSE_UNICODE
0085ce49 8830 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8831#else
0085ce49 8832 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8833#endif
0085ce49
RD
8834 }
8835 return pyobj;
8836}
8837
8838
8839SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj = 0;
8841 wxWindow *arg1 = (wxWindow *) 0 ;
8842 int arg2 = (int) -1 ;
8843 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8844 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8845 wxSize const &arg4_defvalue = wxDefaultSize ;
8846 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8847 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8848 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8849 long arg6 = (long) 0 ;
8850 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8851 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8852 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8853 wxString *arg8 = (wxString *) &arg8_defvalue ;
8854 wxListBox *result = 0 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 int val2 ;
8858 int ecode2 = 0 ;
8859 wxPoint temp3 ;
8860 wxSize temp4 ;
8861 bool temp5 = false ;
8862 long val6 ;
8863 int ecode6 = 0 ;
8864 void *argp7 = 0 ;
8865 int res7 = 0 ;
8866 bool temp8 = false ;
8867 PyObject * obj0 = 0 ;
8868 PyObject * obj1 = 0 ;
8869 PyObject * obj2 = 0 ;
8870 PyObject * obj3 = 0 ;
8871 PyObject * obj4 = 0 ;
8872 PyObject * obj5 = 0 ;
8873 PyObject * obj6 = 0 ;
8874 PyObject * obj7 = 0 ;
8875 char * kwnames[] = {
8876 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8877 };
8878
8879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8881 if (!SWIG_IsOK(res1)) {
8882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8883 }
8884 arg1 = reinterpret_cast< wxWindow * >(argp1);
8885 if (obj1) {
8886 ecode2 = SWIG_AsVal_int(obj1, &val2);
8887 if (!SWIG_IsOK(ecode2)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8889 }
8890 arg2 = static_cast< int >(val2);
8891 }
8892 if (obj2) {
d14a1e28 8893 {
0085ce49
RD
8894 arg3 = &temp3;
8895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8896 }
0085ce49
RD
8897 }
8898 if (obj3) {
d14a1e28 8899 {
0085ce49
RD
8900 arg4 = &temp4;
8901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8902 }
0085ce49
RD
8903 }
8904 if (obj4) {
d14a1e28 8905 {
0085ce49
RD
8906 if (! PySequence_Check(obj4)) {
8907 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8908 SWIG_fail;
8909 }
8910 arg5 = new wxArrayString;
8911 temp5 = true;
8912 int i, len=PySequence_Length(obj4);
8913 for (i=0; i<len; i++) {
8914 PyObject* item = PySequence_GetItem(obj4, i);
8915 wxString* s = wxString_in_helper(item);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 arg5->Add(*s);
8918 delete s;
8919 Py_DECREF(item);
8920 }
d14a1e28 8921 }
0085ce49
RD
8922 }
8923 if (obj5) {
8924 ecode6 = SWIG_AsVal_long(obj5, &val6);
8925 if (!SWIG_IsOK(ecode6)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8927 }
8928 arg6 = static_cast< long >(val6);
8929 }
8930 if (obj6) {
8931 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8932 if (!SWIG_IsOK(res7)) {
8933 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8934 }
0085ce49
RD
8935 if (!argp7) {
8936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8937 }
0085ce49
RD
8938 arg7 = reinterpret_cast< wxValidator * >(argp7);
8939 }
8940 if (obj7) {
d14a1e28 8941 {
0085ce49
RD
8942 arg8 = wxString_in_helper(obj7);
8943 if (arg8 == NULL) SWIG_fail;
8944 temp8 = true;
d14a1e28 8945 }
0085ce49
RD
8946 }
8947 {
8948 if (!wxPyCheckForApp()) SWIG_fail;
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8955 {
8956 if (temp5) delete arg5;
8957 }
8958 {
8959 if (temp8)
8960 delete arg8;
8961 }
8962 return resultobj;
8963fail:
8964 {
8965 if (temp5) delete arg5;
8966 }
8967 {
8968 if (temp8)
8969 delete arg8;
8970 }
8971 return NULL;
d14a1e28
RD
8972}
8973
8974
0085ce49
RD
8975SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8976 PyObject *resultobj = 0;
8977 wxListBox *result = 0 ;
8978
8979 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8980 {
8981 if (!wxPyCheckForApp()) SWIG_fail;
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = (wxListBox *)new wxListBox();
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8988 return resultobj;
8989fail:
8990 return NULL;
8991}
8992
8993
8994SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj = 0;
8996 wxListBox *arg1 = (wxListBox *) 0 ;
8997 wxWindow *arg2 = (wxWindow *) 0 ;
8998 int arg3 = (int) -1 ;
8999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9001 wxSize const &arg5_defvalue = wxDefaultSize ;
9002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9003 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9004 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9005 long arg7 = (long) 0 ;
9006 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9007 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9008 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9009 wxString *arg9 = (wxString *) &arg9_defvalue ;
9010 bool result;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 void *argp2 = 0 ;
9014 int res2 = 0 ;
9015 int val3 ;
9016 int ecode3 = 0 ;
9017 wxPoint temp4 ;
9018 wxSize temp5 ;
9019 bool temp6 = false ;
9020 long val7 ;
9021 int ecode7 = 0 ;
9022 void *argp8 = 0 ;
9023 int res8 = 0 ;
9024 bool temp9 = false ;
9025 PyObject * obj0 = 0 ;
9026 PyObject * obj1 = 0 ;
9027 PyObject * obj2 = 0 ;
9028 PyObject * obj3 = 0 ;
9029 PyObject * obj4 = 0 ;
9030 PyObject * obj5 = 0 ;
9031 PyObject * obj6 = 0 ;
9032 PyObject * obj7 = 0 ;
9033 PyObject * obj8 = 0 ;
9034 char * kwnames[] = {
9035 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9036 };
9037
9038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9040 if (!SWIG_IsOK(res1)) {
9041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9042 }
9043 arg1 = reinterpret_cast< wxListBox * >(argp1);
9044 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9045 if (!SWIG_IsOK(res2)) {
9046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9047 }
9048 arg2 = reinterpret_cast< wxWindow * >(argp2);
9049 if (obj2) {
9050 ecode3 = SWIG_AsVal_int(obj2, &val3);
9051 if (!SWIG_IsOK(ecode3)) {
9052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9053 }
9054 arg3 = static_cast< int >(val3);
9055 }
9056 if (obj3) {
d14a1e28 9057 {
0085ce49
RD
9058 arg4 = &temp4;
9059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9060 }
0085ce49
RD
9061 }
9062 if (obj4) {
d14a1e28 9063 {
0085ce49
RD
9064 arg5 = &temp5;
9065 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9066 }
0085ce49
RD
9067 }
9068 if (obj5) {
d14a1e28 9069 {
0085ce49
RD
9070 if (! PySequence_Check(obj5)) {
9071 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9072 SWIG_fail;
9073 }
9074 arg6 = new wxArrayString;
9075 temp6 = true;
9076 int i, len=PySequence_Length(obj5);
9077 for (i=0; i<len; i++) {
9078 PyObject* item = PySequence_GetItem(obj5, i);
9079 wxString* s = wxString_in_helper(item);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 arg6->Add(*s);
9082 delete s;
9083 Py_DECREF(item);
9084 }
d14a1e28 9085 }
0085ce49
RD
9086 }
9087 if (obj6) {
9088 ecode7 = SWIG_AsVal_long(obj6, &val7);
9089 if (!SWIG_IsOK(ecode7)) {
9090 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9091 }
9092 arg7 = static_cast< long >(val7);
9093 }
9094 if (obj7) {
9095 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9096 if (!SWIG_IsOK(res8)) {
9097 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9098 }
0085ce49
RD
9099 if (!argp8) {
9100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9101 }
0085ce49
RD
9102 arg8 = reinterpret_cast< wxValidator * >(argp8);
9103 }
9104 if (obj8) {
22bfe96c 9105 {
0085ce49
RD
9106 arg9 = wxString_in_helper(obj8);
9107 if (arg9 == NULL) SWIG_fail;
9108 temp9 = true;
22bfe96c 9109 }
0085ce49
RD
9110 }
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 {
9118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9119 }
9120 {
9121 if (temp6) delete arg6;
9122 }
9123 {
9124 if (temp9)
9125 delete arg9;
9126 }
9127 return resultobj;
9128fail:
9129 {
9130 if (temp6) delete arg6;
9131 }
9132 {
9133 if (temp9)
9134 delete arg9;
9135 }
9136 return NULL;
9137}
9138
9139
9140SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj = 0;
9142 wxListBox *arg1 = (wxListBox *) 0 ;
9143 wxString *arg2 = 0 ;
9144 int arg3 ;
9145 PyObject *arg4 = (PyObject *) NULL ;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 bool temp2 = false ;
9149 int val3 ;
9150 int ecode3 = 0 ;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 PyObject * obj2 = 0 ;
9154 PyObject * obj3 = 0 ;
9155 char * kwnames[] = {
9156 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9157 };
9158
9159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9161 if (!SWIG_IsOK(res1)) {
9162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9163 }
9164 arg1 = reinterpret_cast< wxListBox * >(argp1);
9165 {
9166 arg2 = wxString_in_helper(obj1);
9167 if (arg2 == NULL) SWIG_fail;
9168 temp2 = true;
9169 }
9170 ecode3 = SWIG_AsVal_int(obj2, &val3);
9171 if (!SWIG_IsOK(ecode3)) {
9172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9173 }
9174 arg3 = static_cast< int >(val3);
9175 if (obj3) {
9176 arg4 = obj3;
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_Py_Void();
9185 {
9186 if (temp2)
9187 delete arg2;
9188 }
9189 return resultobj;
9190fail:
9191 {
9192 if (temp2)
9193 delete arg2;
9194 }
9195 return NULL;
9196}
9197
9198
9199SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj = 0;
9201 wxListBox *arg1 = (wxListBox *) 0 ;
9202 wxArrayString *arg2 = 0 ;
50f151d7 9203 unsigned int arg3 ;
0085ce49
RD
9204 void *argp1 = 0 ;
9205 int res1 = 0 ;
9206 bool temp2 = false ;
50f151d7 9207 unsigned int val3 ;
0085ce49
RD
9208 int ecode3 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 PyObject * obj2 = 0 ;
9212 char * kwnames[] = {
9213 (char *) "self",(char *) "items",(char *) "pos", NULL
9214 };
9215
9216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9218 if (!SWIG_IsOK(res1)) {
9219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9220 }
9221 arg1 = reinterpret_cast< wxListBox * >(argp1);
9222 {
9223 if (! PySequence_Check(obj1)) {
9224 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9225 SWIG_fail;
9226 }
9227 arg2 = new wxArrayString;
9228 temp2 = true;
9229 int i, len=PySequence_Length(obj1);
9230 for (i=0; i<len; i++) {
9231 PyObject* item = PySequence_GetItem(obj1, i);
9232 wxString* s = wxString_in_helper(item);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 arg2->Add(*s);
9235 delete s;
9236 Py_DECREF(item);
22bfe96c 9237 }
0085ce49 9238 }
50f151d7 9239 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9240 if (!SWIG_IsOK(ecode3)) {
50f151d7 9241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9242 }
50f151d7 9243 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 resultobj = SWIG_Py_Void();
9251 {
9252 if (temp2) delete arg2;
9253 }
9254 return resultobj;
9255fail:
9256 {
9257 if (temp2) delete arg2;
9258 }
9259 return NULL;
22bfe96c
RD
9260}
9261
9262
0085ce49
RD
9263SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj = 0;
9265 wxListBox *arg1 = (wxListBox *) 0 ;
9266 wxArrayString *arg2 = 0 ;
9267 void *argp1 = 0 ;
9268 int res1 = 0 ;
9269 bool temp2 = false ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "items", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9280 }
9281 arg1 = reinterpret_cast< wxListBox * >(argp1);
9282 {
9283 if (! PySequence_Check(obj1)) {
9284 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9285 SWIG_fail;
9286 }
9287 arg2 = new wxArrayString;
9288 temp2 = true;
9289 int i, len=PySequence_Length(obj1);
9290 for (i=0; i<len; i++) {
9291 PyObject* item = PySequence_GetItem(obj1, i);
9292 wxString* s = wxString_in_helper(item);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 arg2->Add(*s);
9295 delete s;
9296 Py_DECREF(item);
d14a1e28 9297 }
0085ce49
RD
9298 }
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 (arg1)->Set((wxArrayString const &)*arg2);
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_Py_Void();
9306 {
9307 if (temp2) delete arg2;
9308 }
9309 return resultobj;
9310fail:
9311 {
9312 if (temp2) delete arg2;
9313 }
9314 return NULL;
9315}
9316
9317
9318SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj = 0;
9320 wxListBox *arg1 = (wxListBox *) 0 ;
9321 int arg2 ;
9322 bool result;
9323 void *argp1 = 0 ;
9324 int res1 = 0 ;
9325 int val2 ;
9326 int ecode2 = 0 ;
9327 PyObject * obj0 = 0 ;
9328 PyObject * obj1 = 0 ;
9329 char * kwnames[] = {
9330 (char *) "self",(char *) "n", NULL
9331 };
9332
9333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9335 if (!SWIG_IsOK(res1)) {
9336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9337 }
9338 arg1 = reinterpret_cast< wxListBox * >(argp1);
9339 ecode2 = SWIG_AsVal_int(obj1, &val2);
9340 if (!SWIG_IsOK(ecode2)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9342 }
9343 arg2 = static_cast< int >(val2);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9352 }
9353 return resultobj;
9354fail:
9355 return NULL;
9356}
9357
9358
9359SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj = 0;
9361 wxListBox *arg1 = (wxListBox *) 0 ;
9362 int arg2 ;
9363 bool arg3 = (bool) true ;
9364 void *argp1 = 0 ;
9365 int res1 = 0 ;
9366 int val2 ;
9367 int ecode2 = 0 ;
9368 bool val3 ;
9369 int ecode3 = 0 ;
9370 PyObject * obj0 = 0 ;
9371 PyObject * obj1 = 0 ;
9372 PyObject * obj2 = 0 ;
9373 char * kwnames[] = {
9374 (char *) "self",(char *) "n",(char *) "select", NULL
9375 };
9376
9377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9379 if (!SWIG_IsOK(res1)) {
9380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9381 }
9382 arg1 = reinterpret_cast< wxListBox * >(argp1);
9383 ecode2 = SWIG_AsVal_int(obj1, &val2);
9384 if (!SWIG_IsOK(ecode2)) {
9385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9386 }
9387 arg2 = static_cast< int >(val2);
9388 if (obj2) {
9389 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9390 if (!SWIG_IsOK(ecode3)) {
9391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9392 }
9393 arg3 = static_cast< bool >(val3);
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 (arg1)->SetSelection(arg2,arg3);
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = SWIG_Py_Void();
9402 return resultobj;
9403fail:
9404 return NULL;
9405}
9406
9407
9408SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj = 0;
9410 wxListBox *arg1 = (wxListBox *) 0 ;
9411 int arg2 ;
9412 void *argp1 = 0 ;
9413 int res1 = 0 ;
9414 int val2 ;
9415 int ecode2 = 0 ;
9416 PyObject * obj0 = 0 ;
9417 PyObject * obj1 = 0 ;
9418 char * kwnames[] = {
9419 (char *) "self",(char *) "n", NULL
9420 };
9421
9422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9424 if (!SWIG_IsOK(res1)) {
9425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9426 }
9427 arg1 = reinterpret_cast< wxListBox * >(argp1);
9428 ecode2 = SWIG_AsVal_int(obj1, &val2);
9429 if (!SWIG_IsOK(ecode2)) {
9430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9431 }
9432 arg2 = static_cast< int >(val2);
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 (arg1)->Select(arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_Py_Void();
9440 return resultobj;
9441fail:
9442 return NULL;
9443}
9444
9445
9446SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = 0;
9448 wxListBox *arg1 = (wxListBox *) 0 ;
9449 int arg2 ;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 int val2 ;
9453 int ecode2 = 0 ;
9454 PyObject * obj0 = 0 ;
9455 PyObject * obj1 = 0 ;
9456 char * kwnames[] = {
9457 (char *) "self",(char *) "n", NULL
9458 };
9459
9460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9462 if (!SWIG_IsOK(res1)) {
9463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9464 }
9465 arg1 = reinterpret_cast< wxListBox * >(argp1);
9466 ecode2 = SWIG_AsVal_int(obj1, &val2);
9467 if (!SWIG_IsOK(ecode2)) {
9468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9469 }
9470 arg2 = static_cast< int >(val2);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->Deselect(arg2);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479fail:
9480 return NULL;
9481}
9482
9483
9484SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj = 0;
9486 wxListBox *arg1 = (wxListBox *) 0 ;
9487 int arg2 = (int) -1 ;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 int val2 ;
9491 int ecode2 = 0 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char * kwnames[] = {
9495 (char *) "self",(char *) "itemToLeaveSelected", NULL
9496 };
9497
9498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9500 if (!SWIG_IsOK(res1)) {
9501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9502 }
9503 arg1 = reinterpret_cast< wxListBox * >(argp1);
9504 if (obj1) {
9505 ecode2 = SWIG_AsVal_int(obj1, &val2);
9506 if (!SWIG_IsOK(ecode2)) {
9507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9508 }
9509 arg2 = static_cast< int >(val2);
9510 }
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->DeselectAll(arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519fail:
9520 return NULL;
9521}
9522
9523
9524SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxListBox *arg1 = (wxListBox *) 0 ;
9527 wxString *arg2 = 0 ;
9528 bool arg3 = (bool) true ;
9529 bool result;
9530 void *argp1 = 0 ;
9531 int res1 = 0 ;
9532 bool temp2 = false ;
9533 bool val3 ;
9534 int ecode3 = 0 ;
9535 PyObject * obj0 = 0 ;
9536 PyObject * obj1 = 0 ;
9537 PyObject * obj2 = 0 ;
9538 char * kwnames[] = {
9539 (char *) "self",(char *) "s",(char *) "select", NULL
9540 };
9541
9542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9546 }
9547 arg1 = reinterpret_cast< wxListBox * >(argp1);
9548 {
9549 arg2 = wxString_in_helper(obj1);
9550 if (arg2 == NULL) SWIG_fail;
9551 temp2 = true;
9552 }
9553 if (obj2) {
9554 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9555 if (!SWIG_IsOK(ecode3)) {
9556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9557 }
9558 arg3 = static_cast< bool >(val3);
9559 }
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9568 }
9569 {
9570 if (temp2)
9571 delete arg2;
9572 }
9573 return resultobj;
9574fail:
9575 {
9576 if (temp2)
9577 delete arg2;
9578 }
9579 return NULL;
d14a1e28
RD
9580}
9581
9582
0085ce49
RD
9583SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 PyObject *resultobj = 0;
9585 wxListBox *arg1 = (wxListBox *) 0 ;
9586 PyObject *result = 0 ;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject *swig_obj[1] ;
9590
9591 if (!args) SWIG_fail;
9592 swig_obj[0] = args;
9593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9594 if (!SWIG_IsOK(res1)) {
9595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9596 }
9597 arg1 = reinterpret_cast< wxListBox * >(argp1);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = (PyObject *)wxListBox_GetSelections(arg1);
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = result;
9605 return resultobj;
9606fail:
9607 return NULL;
9608}
9609
9610
9611SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9612 PyObject *resultobj = 0;
9613 wxListBox *arg1 = (wxListBox *) 0 ;
9614 int arg2 ;
9615 void *argp1 = 0 ;
9616 int res1 = 0 ;
9617 int val2 ;
9618 int ecode2 = 0 ;
9619 PyObject * obj0 = 0 ;
9620 PyObject * obj1 = 0 ;
9621 char * kwnames[] = {
9622 (char *) "self",(char *) "n", NULL
9623 };
9624
9625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9627 if (!SWIG_IsOK(res1)) {
9628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9629 }
9630 arg1 = reinterpret_cast< wxListBox * >(argp1);
9631 ecode2 = SWIG_AsVal_int(obj1, &val2);
9632 if (!SWIG_IsOK(ecode2)) {
9633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9634 }
9635 arg2 = static_cast< int >(val2);
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 (arg1)->SetFirstItem(arg2);
9639 wxPyEndAllowThreads(__tstate);
9640 if (PyErr_Occurred()) SWIG_fail;
9641 }
9642 resultobj = SWIG_Py_Void();
9643 return resultobj;
9644fail:
9645 return NULL;
9646}
9647
9648
9649SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9650 PyObject *resultobj = 0;
9651 wxListBox *arg1 = (wxListBox *) 0 ;
9652 wxString *arg2 = 0 ;
9653 void *argp1 = 0 ;
9654 int res1 = 0 ;
9655 bool temp2 = false ;
9656 PyObject * obj0 = 0 ;
9657 PyObject * obj1 = 0 ;
9658 char * kwnames[] = {
9659 (char *) "self",(char *) "s", NULL
9660 };
9661
9662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9666 }
9667 arg1 = reinterpret_cast< wxListBox * >(argp1);
9668 {
9669 arg2 = wxString_in_helper(obj1);
9670 if (arg2 == NULL) SWIG_fail;
9671 temp2 = true;
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 (arg1)->SetFirstItem((wxString const &)*arg2);
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 resultobj = SWIG_Py_Void();
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return resultobj;
9685fail:
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return NULL;
9691}
9692
9693
9694SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj = 0;
9696 wxListBox *arg1 = (wxListBox *) 0 ;
9697 int arg2 ;
9698 void *argp1 = 0 ;
9699 int res1 = 0 ;
9700 int val2 ;
9701 int ecode2 = 0 ;
9702 PyObject * obj0 = 0 ;
9703 PyObject * obj1 = 0 ;
9704 char * kwnames[] = {
9705 (char *) "self",(char *) "n", NULL
9706 };
9707
9708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9710 if (!SWIG_IsOK(res1)) {
9711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9712 }
9713 arg1 = reinterpret_cast< wxListBox * >(argp1);
9714 ecode2 = SWIG_AsVal_int(obj1, &val2);
9715 if (!SWIG_IsOK(ecode2)) {
9716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9717 }
9718 arg2 = static_cast< int >(val2);
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->EnsureVisible(arg2);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_Py_Void();
9726 return resultobj;
9727fail:
9728 return NULL;
9729}
9730
9731
9732SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxListBox *arg1 = (wxListBox *) 0 ;
9735 wxString *arg2 = 0 ;
9736 void *argp1 = 0 ;
9737 int res1 = 0 ;
9738 bool temp2 = false ;
9739 PyObject * obj0 = 0 ;
9740 PyObject * obj1 = 0 ;
9741 char * kwnames[] = {
9742 (char *) "self",(char *) "s", NULL
9743 };
9744
9745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9747 if (!SWIG_IsOK(res1)) {
9748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9749 }
9750 arg1 = reinterpret_cast< wxListBox * >(argp1);
9751 {
9752 arg2 = wxString_in_helper(obj1);
9753 if (arg2 == NULL) SWIG_fail;
9754 temp2 = true;
9755 }
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_Py_Void();
9763 {
9764 if (temp2)
9765 delete arg2;
9766 }
9767 return resultobj;
9768fail:
9769 {
9770 if (temp2)
9771 delete arg2;
9772 }
9773 return NULL;
d14a1e28
RD
9774}
9775
9776
0085ce49
RD
9777SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9778 PyObject *resultobj = 0;
9779 wxListBox *arg1 = (wxListBox *) 0 ;
9780 bool result;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 PyObject *swig_obj[1] ;
9784
9785 if (!args) SWIG_fail;
9786 swig_obj[0] = args;
9787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9788 if (!SWIG_IsOK(res1)) {
9789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9790 }
9791 arg1 = reinterpret_cast< wxListBox * >(argp1);
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 result = (bool)((wxListBox const *)arg1)->IsSorted();
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 {
9799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9800 }
9801 return resultobj;
9802fail:
9803 return NULL;
9804}
9805
9806
9807SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj = 0;
9809 wxListBox *arg1 = (wxListBox *) 0 ;
9810 wxPoint *arg2 = 0 ;
9811 int result;
9812 void *argp1 = 0 ;
9813 int res1 = 0 ;
9814 wxPoint temp2 ;
9815 PyObject * obj0 = 0 ;
9816 PyObject * obj1 = 0 ;
9817 char * kwnames[] = {
9818 (char *) "self",(char *) "pt", NULL
9819 };
9820
9821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9823 if (!SWIG_IsOK(res1)) {
9824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9825 }
9826 arg1 = reinterpret_cast< wxListBox * >(argp1);
9827 {
9828 arg2 = &temp2;
9829 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9830 }
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 resultobj = SWIG_From_int(static_cast< int >(result));
9838 return resultobj;
9839fail:
9840 return NULL;
9841}
9842
9843
9844SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9845 PyObject *resultobj = 0;
9846 wxListBox *arg1 = (wxListBox *) 0 ;
9847 int arg2 ;
9848 wxColour *arg3 = 0 ;
9849 void *argp1 = 0 ;
9850 int res1 = 0 ;
9851 int val2 ;
9852 int ecode2 = 0 ;
9853 wxColour temp3 ;
9854 PyObject * obj0 = 0 ;
9855 PyObject * obj1 = 0 ;
9856 PyObject * obj2 = 0 ;
9857 char * kwnames[] = {
9858 (char *) "self",(char *) "item",(char *) "c", NULL
9859 };
9860
9861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9863 if (!SWIG_IsOK(res1)) {
9864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9865 }
9866 arg1 = reinterpret_cast< wxListBox * >(argp1);
9867 ecode2 = SWIG_AsVal_int(obj1, &val2);
9868 if (!SWIG_IsOK(ecode2)) {
9869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9870 }
9871 arg2 = static_cast< int >(val2);
9872 {
9873 arg3 = &temp3;
9874 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9875 }
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_Py_Void();
9883 return resultobj;
9884fail:
9885 return NULL;
9886}
9887
9888
9889SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj = 0;
9891 wxListBox *arg1 = (wxListBox *) 0 ;
9892 int arg2 ;
9893 wxColour *arg3 = 0 ;
9894 void *argp1 = 0 ;
9895 int res1 = 0 ;
9896 int val2 ;
9897 int ecode2 = 0 ;
9898 wxColour temp3 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9901 PyObject * obj2 = 0 ;
9902 char * kwnames[] = {
9903 (char *) "self",(char *) "item",(char *) "c", NULL
9904 };
9905
9906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9910 }
9911 arg1 = reinterpret_cast< wxListBox * >(argp1);
9912 ecode2 = SWIG_AsVal_int(obj1, &val2);
9913 if (!SWIG_IsOK(ecode2)) {
9914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9915 }
9916 arg2 = static_cast< int >(val2);
9917 {
9918 arg3 = &temp3;
9919 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_Py_Void();
9928 return resultobj;
9929fail:
9930 return NULL;
9931}
9932
9933
9934SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxListBox *arg1 = (wxListBox *) 0 ;
9937 int arg2 ;
9938 wxFont *arg3 = 0 ;
9939 void *argp1 = 0 ;
9940 int res1 = 0 ;
9941 int val2 ;
9942 int ecode2 = 0 ;
9943 void *argp3 = 0 ;
9944 int res3 = 0 ;
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 PyObject * obj2 = 0 ;
9948 char * kwnames[] = {
9949 (char *) "self",(char *) "item",(char *) "f", NULL
9950 };
9951
9952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9956 }
9957 arg1 = reinterpret_cast< wxListBox * >(argp1);
9958 ecode2 = SWIG_AsVal_int(obj1, &val2);
9959 if (!SWIG_IsOK(ecode2)) {
9960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9961 }
9962 arg2 = static_cast< int >(val2);
9963 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9964 if (!SWIG_IsOK(res3)) {
9965 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9966 }
9967 if (!argp3) {
9968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9969 }
9970 arg3 = reinterpret_cast< wxFont * >(argp3);
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_Py_Void();
9978 return resultobj;
9979fail:
9980 return NULL;
9981}
9982
9983
9984SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj = 0;
9986 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9987 SwigValueWrapper<wxVisualAttributes > result;
9988 int val1 ;
9989 int ecode1 = 0 ;
9990 PyObject * obj0 = 0 ;
9991 char * kwnames[] = {
9992 (char *) "variant", NULL
9993 };
9994
9995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9996 if (obj0) {
9997 ecode1 = SWIG_AsVal_int(obj0, &val1);
9998 if (!SWIG_IsOK(ecode1)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10000 }
10001 arg1 = static_cast< wxWindowVariant >(val1);
10002 }
10003 {
10004 if (!wxPyCheckForApp()) SWIG_fail;
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = wxListBox::GetClassDefaultAttributes(arg1);
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10011 return resultobj;
10012fail:
10013 return NULL;
10014}
10015
10016
10017SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10018 PyObject *obj;
10019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10020 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10021 return SWIG_Py_Void();
10022}
10023
10024SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10025 return SWIG_Python_InitShadowInstance(args);
10026}
10027
10028SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj = 0;
10030 wxWindow *arg1 = (wxWindow *) 0 ;
10031 int arg2 = (int) -1 ;
10032 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10033 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10034 wxSize const &arg4_defvalue = wxDefaultSize ;
10035 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10036 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10037 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10038 long arg6 = (long) 0 ;
10039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10041 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10042 wxString *arg8 = (wxString *) &arg8_defvalue ;
10043 wxCheckListBox *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 int val2 ;
10047 int ecode2 = 0 ;
10048 wxPoint temp3 ;
10049 wxSize temp4 ;
10050 bool temp5 = false ;
10051 long val6 ;
10052 int ecode6 = 0 ;
10053 void *argp7 = 0 ;
10054 int res7 = 0 ;
10055 bool temp8 = false ;
10056 PyObject * obj0 = 0 ;
10057 PyObject * obj1 = 0 ;
10058 PyObject * obj2 = 0 ;
10059 PyObject * obj3 = 0 ;
10060 PyObject * obj4 = 0 ;
10061 PyObject * obj5 = 0 ;
10062 PyObject * obj6 = 0 ;
10063 PyObject * obj7 = 0 ;
10064 char * kwnames[] = {
10065 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10066 };
10067
10068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10070 if (!SWIG_IsOK(res1)) {
10071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10072 }
10073 arg1 = reinterpret_cast< wxWindow * >(argp1);
10074 if (obj1) {
10075 ecode2 = SWIG_AsVal_int(obj1, &val2);
10076 if (!SWIG_IsOK(ecode2)) {
10077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10078 }
10079 arg2 = static_cast< int >(val2);
10080 }
10081 if (obj2) {
d14a1e28 10082 {
0085ce49
RD
10083 arg3 = &temp3;
10084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10085 }
0085ce49
RD
10086 }
10087 if (obj3) {
d14a1e28 10088 {
0085ce49
RD
10089 arg4 = &temp4;
10090 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10091 }
0085ce49
RD
10092 }
10093 if (obj4) {
d14a1e28 10094 {
0085ce49
RD
10095 if (! PySequence_Check(obj4)) {
10096 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10097 SWIG_fail;
10098 }
10099 arg5 = new wxArrayString;
10100 temp5 = true;
10101 int i, len=PySequence_Length(obj4);
10102 for (i=0; i<len; i++) {
10103 PyObject* item = PySequence_GetItem(obj4, i);
10104 wxString* s = wxString_in_helper(item);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 arg5->Add(*s);
10107 delete s;
10108 Py_DECREF(item);
10109 }
d14a1e28 10110 }
0085ce49
RD
10111 }
10112 if (obj5) {
10113 ecode6 = SWIG_AsVal_long(obj5, &val6);
10114 if (!SWIG_IsOK(ecode6)) {
10115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10116 }
10117 arg6 = static_cast< long >(val6);
10118 }
10119 if (obj6) {
10120 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10121 if (!SWIG_IsOK(res7)) {
10122 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10123 }
0085ce49
RD
10124 if (!argp7) {
10125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10126 }
0085ce49
RD
10127 arg7 = reinterpret_cast< wxValidator * >(argp7);
10128 }
10129 if (obj7) {
093d3ff1 10130 {
0085ce49
RD
10131 arg8 = wxString_in_helper(obj7);
10132 if (arg8 == NULL) SWIG_fail;
10133 temp8 = true;
093d3ff1 10134 }
0085ce49
RD
10135 }
10136 {
10137 if (!wxPyCheckForApp()) SWIG_fail;
10138 PyThreadState* __tstate = wxPyBeginAllowThreads();
10139 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10144 {
10145 if (temp5) delete arg5;
10146 }
10147 {
10148 if (temp8)
10149 delete arg8;
10150 }
10151 return resultobj;
10152fail:
10153 {
10154 if (temp5) delete arg5;
10155 }
10156 {
10157 if (temp8)
10158 delete arg8;
10159 }
10160 return NULL;
d14a1e28
RD
10161}
10162
10163
0085ce49
RD
10164SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10165 PyObject *resultobj = 0;
10166 wxCheckListBox *result = 0 ;
10167
10168 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10169 {
10170 if (!wxPyCheckForApp()) SWIG_fail;
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (wxCheckListBox *)new wxCheckListBox();
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10177 return resultobj;
10178fail:
10179 return NULL;
10180}
10181
10182
10183SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj = 0;
10185 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10186 wxWindow *arg2 = (wxWindow *) 0 ;
10187 int arg3 = (int) -1 ;
10188 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10189 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10190 wxSize const &arg5_defvalue = wxDefaultSize ;
10191 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10192 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10193 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10194 long arg7 = (long) 0 ;
10195 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10196 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10197 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10198 wxString *arg9 = (wxString *) &arg9_defvalue ;
10199 bool result;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 void *argp2 = 0 ;
10203 int res2 = 0 ;
10204 int val3 ;
10205 int ecode3 = 0 ;
10206 wxPoint temp4 ;
10207 wxSize temp5 ;
10208 bool temp6 = false ;
10209 long val7 ;
10210 int ecode7 = 0 ;
10211 void *argp8 = 0 ;
10212 int res8 = 0 ;
10213 bool temp9 = false ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 PyObject * obj2 = 0 ;
10217 PyObject * obj3 = 0 ;
10218 PyObject * obj4 = 0 ;
10219 PyObject * obj5 = 0 ;
10220 PyObject * obj6 = 0 ;
10221 PyObject * obj7 = 0 ;
10222 PyObject * obj8 = 0 ;
10223 char * kwnames[] = {
10224 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10225 };
10226
10227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10229 if (!SWIG_IsOK(res1)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10231 }
10232 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10234 if (!SWIG_IsOK(res2)) {
10235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10236 }
10237 arg2 = reinterpret_cast< wxWindow * >(argp2);
10238 if (obj2) {
10239 ecode3 = SWIG_AsVal_int(obj2, &val3);
10240 if (!SWIG_IsOK(ecode3)) {
10241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10242 }
10243 arg3 = static_cast< int >(val3);
10244 }
10245 if (obj3) {
22bfe96c 10246 {
0085ce49
RD
10247 arg4 = &temp4;
10248 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10249 }
0085ce49
RD
10250 }
10251 if (obj4) {
d14a1e28 10252 {
0085ce49
RD
10253 arg5 = &temp5;
10254 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10255 }
0085ce49
RD
10256 }
10257 if (obj5) {
d14a1e28 10258 {
0085ce49
RD
10259 if (! PySequence_Check(obj5)) {
10260 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10261 SWIG_fail;
10262 }
10263 arg6 = new wxArrayString;
10264 temp6 = true;
10265 int i, len=PySequence_Length(obj5);
10266 for (i=0; i<len; i++) {
10267 PyObject* item = PySequence_GetItem(obj5, i);
10268 wxString* s = wxString_in_helper(item);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 arg6->Add(*s);
10271 delete s;
10272 Py_DECREF(item);
10273 }
d14a1e28 10274 }
0085ce49
RD
10275 }
10276 if (obj6) {
10277 ecode7 = SWIG_AsVal_long(obj6, &val7);
10278 if (!SWIG_IsOK(ecode7)) {
10279 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10280 }
10281 arg7 = static_cast< long >(val7);
10282 }
10283 if (obj7) {
10284 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10285 if (!SWIG_IsOK(res8)) {
10286 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10287 }
0085ce49
RD
10288 if (!argp8) {
10289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10290 }
0085ce49
RD
10291 arg8 = reinterpret_cast< wxValidator * >(argp8);
10292 }
10293 if (obj8) {
d14a1e28 10294 {
0085ce49
RD
10295 arg9 = wxString_in_helper(obj8);
10296 if (arg9 == NULL) SWIG_fail;
10297 temp9 = true;
d14a1e28 10298 }
0085ce49
RD
10299 }
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 {
10307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10308 }
10309 {
10310 if (temp6) delete arg6;
10311 }
10312 {
10313 if (temp9)
10314 delete arg9;
10315 }
10316 return resultobj;
10317fail:
10318 {
10319 if (temp6) delete arg6;
10320 }
10321 {
10322 if (temp9)
10323 delete arg9;
10324 }
10325 return NULL;
10326}
10327
10328
10329SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj = 0;
10331 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10332 unsigned int arg2 ;
0085ce49
RD
10333 bool result;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
50f151d7 10336 unsigned int val2 ;
0085ce49
RD
10337 int ecode2 = 0 ;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 char * kwnames[] = {
10341 (char *) "self",(char *) "index", NULL
10342 };
10343
10344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10346 if (!SWIG_IsOK(res1)) {
10347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10348 }
10349 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10350 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10351 if (!SWIG_IsOK(ecode2)) {
50f151d7 10352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10353 }
50f151d7 10354 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 result = (bool)(arg1)->IsChecked(arg2);
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 {
10362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10363 }
10364 return resultobj;
10365fail:
10366 return NULL;
10367}
10368
10369
10370SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10371 PyObject *resultobj = 0;
10372 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10373 unsigned int arg2 ;
0085ce49
RD
10374 int arg3 = (int) true ;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
50f151d7 10377 unsigned int val2 ;
0085ce49
RD
10378 int ecode2 = 0 ;
10379 int val3 ;
10380 int ecode3 = 0 ;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10383 PyObject * obj2 = 0 ;
10384 char * kwnames[] = {
10385 (char *) "self",(char *) "index",(char *) "check", NULL
10386 };
10387
10388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10392 }
10393 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10394 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10395 if (!SWIG_IsOK(ecode2)) {
50f151d7 10396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10397 }
50f151d7 10398 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10399 if (obj2) {
10400 ecode3 = SWIG_AsVal_int(obj2, &val3);
10401 if (!SWIG_IsOK(ecode3)) {
10402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10403 }
10404 arg3 = static_cast< int >(val3);
10405 }
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 (arg1)->Check(arg2,arg3);
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_Py_Void();
10413 return resultobj;
10414fail:
10415 return NULL;
d14a1e28
RD
10416}
10417
10418
0085ce49
RD
10419SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 PyObject *resultobj = 0;
10421 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10422 int result;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 PyObject *swig_obj[1] ;
10426
10427 if (!args) SWIG_fail;
10428 swig_obj[0] = args;
10429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10430 if (!SWIG_IsOK(res1)) {
10431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10432 }
10433 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (int)(arg1)->GetItemHeight();
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_From_int(static_cast< int >(result));
10441 return resultobj;
10442fail:
10443 return NULL;
d14a1e28
RD
10444}
10445
10446
0085ce49
RD
10447SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10448 PyObject *obj;
10449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10450 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10451 return SWIG_Py_Void();
d14a1e28
RD
10452}
10453
0085ce49
RD
10454SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10455 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10456}
10457
0085ce49
RD
10458SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10459 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10460 return 1;
22bfe96c
RD
10461}
10462
10463
0085ce49
RD
10464SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10465 PyObject *pyobj = 0;
10466
10467 {
10468#if wxUSE_UNICODE
10469 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10470#else
10471 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10472#endif
10473 }
10474 return pyobj;
10475}
10476
10477
10478SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj = 0;
10480 wxColour const &arg1_defvalue = wxNullColour ;
10481 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10482 wxColour const &arg2_defvalue = wxNullColour ;
10483 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10484 wxFont const &arg3_defvalue = wxNullFont ;
10485 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10486 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10487 wxTextAttr *result = 0 ;
10488 wxColour temp1 ;
10489 wxColour temp2 ;
10490 void *argp3 = 0 ;
10491 int res3 = 0 ;
10492 int val4 ;
10493 int ecode4 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 char * kwnames[] = {
10499 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10500 };
10501
10502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10503 if (obj0) {
d14a1e28 10504 {
0085ce49
RD
10505 arg1 = &temp1;
10506 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10507 }
0085ce49
RD
10508 }
10509 if (obj1) {
d14a1e28 10510 {
0085ce49
RD
10511 arg2 = &temp2;
10512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10513 }
0085ce49
RD
10514 }
10515 if (obj2) {
10516 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10517 if (!SWIG_IsOK(res3)) {
10518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10519 }
0085ce49
RD
10520 if (!argp3) {
10521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10522 }
10523 arg3 = reinterpret_cast< wxFont * >(argp3);
10524 }
10525 if (obj3) {
10526 ecode4 = SWIG_AsVal_int(obj3, &val4);
10527 if (!SWIG_IsOK(ecode4)) {
10528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10529 }
10530 arg4 = static_cast< wxTextAttrAlignment >(val4);
10531 }
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10539 return resultobj;
10540fail:
10541 return NULL;
d14a1e28
RD
10542}
10543
10544
0085ce49
RD
10545SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546 PyObject *resultobj = 0;
10547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 PyObject *swig_obj[1] ;
10551
10552 if (!args) SWIG_fail;
10553 swig_obj[0] = args;
10554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10555 if (!SWIG_IsOK(res1)) {
10556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10557 }
10558 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 delete arg1;
d14a1e28 10562
0085ce49
RD
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568fail:
10569 return NULL;
d14a1e28
RD
10570}
10571
10572
0085ce49
RD
10573SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10574 PyObject *resultobj = 0;
10575 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 PyObject *swig_obj[1] ;
10579
10580 if (!args) SWIG_fail;
10581 swig_obj[0] = args;
10582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10583 if (!SWIG_IsOK(res1)) {
10584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10585 }
10586 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 (arg1)->Init();
10590 wxPyEndAllowThreads(__tstate);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 }
10593 resultobj = SWIG_Py_Void();
10594 return resultobj;
10595fail:
10596 return NULL;
10597}
10598
10599
01f6b6d3
RD
10600SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj = 0;
10602 wxTextAttr *arg1 = 0 ;
10603 wxTextAttr *arg2 = 0 ;
10604 wxTextAttr result;
10605 void *argp1 = 0 ;
10606 int res1 = 0 ;
10607 void *argp2 = 0 ;
10608 int res2 = 0 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 char * kwnames[] = {
10612 (char *) "base",(char *) "overlay", NULL
10613 };
10614
10615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10616 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10617 if (!SWIG_IsOK(res1)) {
10618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10619 }
10620 if (!argp1) {
10621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10622 }
10623 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10625 if (!SWIG_IsOK(res2)) {
10626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10627 }
10628 if (!argp2) {
10629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10630 }
10631 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10639 return resultobj;
10640fail:
10641 return NULL;
10642}
10643
10644
0085ce49
RD
10645SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj = 0;
10647 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10648 wxColour *arg2 = 0 ;
10649 void *argp1 = 0 ;
10650 int res1 = 0 ;
10651 wxColour temp2 ;
10652 PyObject * obj0 = 0 ;
10653 PyObject * obj1 = 0 ;
10654 char * kwnames[] = {
10655 (char *) "self",(char *) "colText", NULL
10656 };
10657
10658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10660 if (!SWIG_IsOK(res1)) {
10661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10662 }
10663 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10664 {
10665 arg2 = &temp2;
10666 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 (arg1)->SetTextColour((wxColour const &)*arg2);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_Py_Void();
10675 return resultobj;
10676fail:
10677 return NULL;
10678}
10679
10680
10681SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj = 0;
10683 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10684 wxColour *arg2 = 0 ;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 wxColour temp2 ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "self",(char *) "colBack", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10698 }
10699 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10700 {
10701 arg2 = &temp2;
10702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10707 wxPyEndAllowThreads(__tstate);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 }
10710 resultobj = SWIG_Py_Void();
10711 return resultobj;
10712fail:
10713 return NULL;
10714}
10715
10716
10717SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj = 0;
10719 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10720 wxFont *arg2 = 0 ;
10721 long arg3 = (long) wxTEXT_ATTR_FONT ;
10722 void *argp1 = 0 ;
10723 int res1 = 0 ;
10724 void *argp2 = 0 ;
10725 int res2 = 0 ;
10726 long val3 ;
10727 int ecode3 = 0 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 PyObject * obj2 = 0 ;
10731 char * kwnames[] = {
10732 (char *) "self",(char *) "font",(char *) "flags", NULL
10733 };
10734
10735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10737 if (!SWIG_IsOK(res1)) {
10738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10739 }
10740 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10742 if (!SWIG_IsOK(res2)) {
10743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10744 }
10745 if (!argp2) {
10746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10747 }
10748 arg2 = reinterpret_cast< wxFont * >(argp2);
10749 if (obj2) {
10750 ecode3 = SWIG_AsVal_long(obj2, &val3);
10751 if (!SWIG_IsOK(ecode3)) {
10752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10753 }
10754 arg3 = static_cast< long >(val3);
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_Py_Void();
10763 return resultobj;
10764fail:
10765 return NULL;
10766}
10767
10768
10769SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10772 wxTextAttrAlignment arg2 ;
10773 void *argp1 = 0 ;
10774 int res1 = 0 ;
10775 int val2 ;
10776 int ecode2 = 0 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "alignment", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10787 }
10788 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10789 ecode2 = SWIG_AsVal_int(obj1, &val2);
10790 if (!SWIG_IsOK(ecode2)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10792 }
10793 arg2 = static_cast< wxTextAttrAlignment >(val2);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetAlignment(arg2);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_Py_Void();
10801 return resultobj;
10802fail:
10803 return NULL;
10804}
10805
10806
10807SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 wxArrayInt *arg2 = 0 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 bool temp2 = false ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char * kwnames[] = {
10817 (char *) "self",(char *) "tabs", NULL
10818 };
10819
10820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10824 }
10825 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10826 {
10827 if (! PySequence_Check(obj1)) {
10828 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10829 SWIG_fail;
10830 }
10831 arg2 = new wxArrayInt;
10832 temp2 = true;
10833 int i, len=PySequence_Length(obj1);
10834 for (i=0; i<len; i++) {
10835 PyObject* item = PySequence_GetItem(obj1, i);
10836 PyObject* number = PyNumber_Int(item);
10837 arg2->Add(PyInt_AS_LONG(number));
10838 Py_DECREF(item);
10839 Py_DECREF(number);
d14a1e28 10840 }
0085ce49
RD
10841 }
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 resultobj = SWIG_Py_Void();
10849 {
10850 if (temp2) delete arg2;
10851 }
10852 return resultobj;
10853fail:
10854 {
10855 if (temp2) delete arg2;
10856 }
10857 return NULL;
10858}
10859
10860
10861SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj = 0;
10863 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10864 int arg2 ;
10865 int arg3 = (int) 0 ;
10866 void *argp1 = 0 ;
10867 int res1 = 0 ;
10868 int val2 ;
10869 int ecode2 = 0 ;
10870 int val3 ;
10871 int ecode3 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 PyObject * obj2 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10883 }
10884 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 if (obj2) {
10891 ecode3 = SWIG_AsVal_int(obj2, &val3);
10892 if (!SWIG_IsOK(ecode3)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10894 }
10895 arg3 = static_cast< int >(val3);
10896 }
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->SetLeftIndent(arg2,arg3);
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 resultobj = SWIG_Py_Void();
10904 return resultobj;
10905fail:
10906 return NULL;
10907}
10908
10909
10910SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj = 0;
10912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10913 int arg2 ;
10914 void *argp1 = 0 ;
10915 int res1 = 0 ;
10916 int val2 ;
10917 int ecode2 = 0 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 char * kwnames[] = {
10921 (char *) "self",(char *) "indent", NULL
10922 };
10923
10924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10926 if (!SWIG_IsOK(res1)) {
10927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10928 }
10929 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10930 ecode2 = SWIG_AsVal_int(obj1, &val2);
10931 if (!SWIG_IsOK(ecode2)) {
10932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10933 }
10934 arg2 = static_cast< int >(val2);
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 (arg1)->SetRightIndent(arg2);
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 resultobj = SWIG_Py_Void();
10942 return resultobj;
10943fail:
10944 return NULL;
10945}
10946
10947
10948SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj = 0;
10950 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10951 long arg2 ;
10952 void *argp1 = 0 ;
10953 int res1 = 0 ;
10954 long val2 ;
10955 int ecode2 = 0 ;
10956 PyObject * obj0 = 0 ;
10957 PyObject * obj1 = 0 ;
10958 char * kwnames[] = {
10959 (char *) "self",(char *) "flags", NULL
10960 };
10961
10962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10964 if (!SWIG_IsOK(res1)) {
10965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10966 }
10967 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10968 ecode2 = SWIG_AsVal_long(obj1, &val2);
10969 if (!SWIG_IsOK(ecode2)) {
10970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10971 }
10972 arg2 = static_cast< long >(val2);
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 (arg1)->SetFlags(arg2);
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 resultobj = SWIG_Py_Void();
10980 return resultobj;
10981fail:
10982 return NULL;
d14a1e28
RD
10983}
10984
10985
0085ce49
RD
10986SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10987 PyObject *resultobj = 0;
10988 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10989 bool result;
10990 void *argp1 = 0 ;
10991 int res1 = 0 ;
10992 PyObject *swig_obj[1] ;
10993
10994 if (!args) SWIG_fail;
10995 swig_obj[0] = args;
10996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10997 if (!SWIG_IsOK(res1)) {
10998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10999 }
11000 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 {
11008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11009 }
11010 return resultobj;
11011fail:
11012 return NULL;
d14a1e28
RD
11013}
11014
11015
0085ce49
RD
11016SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11017 PyObject *resultobj = 0;
11018 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11019 bool result;
11020 void *argp1 = 0 ;
11021 int res1 = 0 ;
11022 PyObject *swig_obj[1] ;
11023
11024 if (!args) SWIG_fail;
11025 swig_obj[0] = args;
11026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11027 if (!SWIG_IsOK(res1)) {
11028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11029 }
11030 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11031 {
11032 PyThreadState* __tstate = wxPyBeginAllowThreads();
11033 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11034 wxPyEndAllowThreads(__tstate);
11035 if (PyErr_Occurred()) SWIG_fail;
11036 }
11037 {
11038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11039 }
11040 return resultobj;
11041fail:
11042 return NULL;
d14a1e28
RD
11043}
11044
11045
0085ce49
RD
11046SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11047 PyObject *resultobj = 0;
11048 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11049 bool result;
11050 void *argp1 = 0 ;
11051 int res1 = 0 ;
11052 PyObject *swig_obj[1] ;
11053
11054 if (!args) SWIG_fail;
11055 swig_obj[0] = args;
11056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11057 if (!SWIG_IsOK(res1)) {
11058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11059 }
11060 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 }
11067 {
11068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11069 }
11070 return resultobj;
11071fail:
11072 return NULL;
d14a1e28
RD
11073}
11074
11075
0085ce49
RD
11076SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11077 PyObject *resultobj = 0;
11078 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11079 bool result;
11080 void *argp1 = 0 ;
11081 int res1 = 0 ;
11082 PyObject *swig_obj[1] ;
11083
11084 if (!args) SWIG_fail;
11085 swig_obj[0] = args;
11086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11089 }
11090 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 {
11098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11099 }
11100 return resultobj;
11101fail:
11102 return NULL;
22bfe96c
RD
11103}
11104
11105
0085ce49
RD
11106SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11107 PyObject *resultobj = 0;
11108 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11109 bool result;
11110 void *argp1 = 0 ;
11111 int res1 = 0 ;
11112 PyObject *swig_obj[1] ;
11113
11114 if (!args) SWIG_fail;
11115 swig_obj[0] = args;
11116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11117 if (!SWIG_IsOK(res1)) {
11118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11119 }
11120 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 {
11128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11129 }
11130 return resultobj;
11131fail:
11132 return NULL;
b2dc1044
RD
11133}
11134
11135
0085ce49
RD
11136SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11137 PyObject *resultobj = 0;
11138 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11139 bool result;
11140 void *argp1 = 0 ;
11141 int res1 = 0 ;
11142 PyObject *swig_obj[1] ;
11143
11144 if (!args) SWIG_fail;
11145 swig_obj[0] = args;
11146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11149 }
11150 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 {
11158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11159 }
11160 return resultobj;
11161fail:
11162 return NULL;
d14a1e28
RD
11163}
11164
11165
0085ce49
RD
11166SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject *swig_obj[1] ;
11173
11174 if (!args) SWIG_fail;
11175 swig_obj[0] = args;
11176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11177 if (!SWIG_IsOK(res1)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11179 }
11180 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
11183 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11184 wxPyEndAllowThreads(__tstate);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 }
11187 {
11188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11189 }
11190 return resultobj;
11191fail:
11192 return NULL;
11193}
11194
11195
11196SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj = 0;
11198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11199 long arg2 ;
11200 bool result;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 long val2 ;
11204 int ecode2 = 0 ;
11205 PyObject * obj0 = 0 ;
11206 PyObject * obj1 = 0 ;
11207 char * kwnames[] = {
11208 (char *) "self",(char *) "flag", NULL
11209 };
11210
11211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11213 if (!SWIG_IsOK(res1)) {
11214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11215 }
11216 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11217 ecode2 = SWIG_AsVal_long(obj1, &val2);
11218 if (!SWIG_IsOK(ecode2)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11220 }
11221 arg2 = static_cast< long >(val2);
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 {
11229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11230 }
11231 return resultobj;
11232fail:
11233 return NULL;
d14a1e28
RD
11234}
11235
11236
0085ce49
RD
11237SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxColour *result = 0 ;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11254 {
0085ce49
RD
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11256 result = (wxColour *) &_result_ref;
d14a1e28 11257 }
0085ce49
RD
11258 wxPyEndAllowThreads(__tstate);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11262 return resultobj;
11263fail:
11264 return NULL;
d14a1e28
RD
11265}
11266
11267
0085ce49
RD
11268SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxColour *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11285 {
0085ce49
RD
11286 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11287 result = (wxColour *) &_result_ref;
d14a1e28 11288 }
0085ce49
RD
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11293 return resultobj;
11294fail:
11295 return NULL;
d14a1e28
RD
11296}
11297
11298
0085ce49
RD
11299SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11300 PyObject *resultobj = 0;
11301 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11302 wxFont *result = 0 ;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 PyObject *swig_obj[1] ;
11306
11307 if (!args) SWIG_fail;
11308 swig_obj[0] = args;
11309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11312 }
11313 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11316 {
0085ce49
RD
11317 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11318 result = (wxFont *) &_result_ref;
d14a1e28 11319 }
0085ce49
RD
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 wxFont* resultptr = new wxFont(*result);
11325 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11326 }
11327 return resultobj;
11328fail:
11329 return NULL;
d14a1e28
RD
11330}
11331
11332
0085ce49
RD
11333SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11334 PyObject *resultobj = 0;
11335 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11336 wxTextAttrAlignment result;
11337 void *argp1 = 0 ;
11338 int res1 = 0 ;
11339 PyObject *swig_obj[1] ;
11340
11341 if (!args) SWIG_fail;
11342 swig_obj[0] = args;
11343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11346 }
11347 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 resultobj = SWIG_From_int(static_cast< int >(result));
11355 return resultobj;
11356fail:
11357 return NULL;
d14a1e28
RD
11358}
11359
11360
0085ce49
RD
11361SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11362 PyObject *resultobj = 0;
11363 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11364 wxArrayInt *result = 0 ;
11365 void *argp1 = 0 ;
11366 int res1 = 0 ;
11367 PyObject *swig_obj[1] ;
11368
11369 if (!args) SWIG_fail;
11370 swig_obj[0] = args;
11371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11372 if (!SWIG_IsOK(res1)) {
11373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11374 }
11375 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11378 {
0085ce49
RD
11379 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11380 result = (wxArrayInt *) &_result_ref;
d14a1e28 11381 }
0085ce49
RD
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 {
11386 resultobj = PyList_New(0);
11387 size_t idx;
11388 for (idx = 0; idx < result->GetCount(); idx += 1) {
11389 PyObject* val = PyInt_FromLong( result->Item(idx) );
11390 PyList_Append(resultobj, val);
11391 Py_DECREF(val);
4f89f6a3 11392 }
0085ce49
RD
11393 }
11394 return resultobj;
11395fail:
11396 return NULL;
d14a1e28
RD
11397}
11398
11399
0085ce49
RD
11400SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11401 PyObject *resultobj = 0;
11402 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11403 long result;
11404 void *argp1 = 0 ;
11405 int res1 = 0 ;
11406 PyObject *swig_obj[1] ;
11407
11408 if (!args) SWIG_fail;
11409 swig_obj[0] = args;
11410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11411 if (!SWIG_IsOK(res1)) {
11412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11413 }
11414 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 resultobj = SWIG_From_long(static_cast< long >(result));
11422 return resultobj;
11423fail:
11424 return NULL;
d14a1e28
RD
11425}
11426
11427
0085ce49
RD
11428SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11429 PyObject *resultobj = 0;
11430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11431 long result;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 PyObject *swig_obj[1] ;
11435
11436 if (!args) SWIG_fail;
11437 swig_obj[0] = args;
11438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11439 if (!SWIG_IsOK(res1)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11441 }
11442 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_From_long(static_cast< long >(result));
11450 return resultobj;
11451fail:
11452 return NULL;
d14a1e28
RD
11453}
11454
11455
0085ce49
RD
11456SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11457 PyObject *resultobj = 0;
11458 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11459 long result;
11460 void *argp1 = 0 ;
11461 int res1 = 0 ;
11462 PyObject *swig_obj[1] ;
11463
11464 if (!args) SWIG_fail;
11465 swig_obj[0] = args;
11466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11467 if (!SWIG_IsOK(res1)) {
11468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11469 }
11470 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = SWIG_From_long(static_cast< long >(result));
11478 return resultobj;
11479fail:
11480 return NULL;
d14a1e28
RD
11481}
11482
11483
0085ce49
RD
11484SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11485 PyObject *resultobj = 0;
11486 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11487 long result;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 PyObject *swig_obj[1] ;
11491
11492 if (!args) SWIG_fail;
11493 swig_obj[0] = args;
11494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11495 if (!SWIG_IsOK(res1)) {
11496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11497 }
11498 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 resultobj = SWIG_From_long(static_cast< long >(result));
11506 return resultobj;
11507fail:
11508 return NULL;
d14a1e28
RD
11509}
11510
11511
0085ce49
RD
11512SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11513 PyObject *resultobj = 0;
11514 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11515 bool result;
11516 void *argp1 = 0 ;
11517 int res1 = 0 ;
11518 PyObject *swig_obj[1] ;
11519
11520 if (!args) SWIG_fail;
11521 swig_obj[0] = args;
11522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11523 if (!SWIG_IsOK(res1)) {
11524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11525 }
11526 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11527 {
11528 PyThreadState* __tstate = wxPyBeginAllowThreads();
11529 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 {
11534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11535 }
11536 return resultobj;
11537fail:
11538 return NULL;
11539}
11540
11541
11542SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj = 0;
11544 wxTextAttr *arg1 = 0 ;
11545 wxTextAttr *arg2 = 0 ;
11546 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11547 wxTextAttr result;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 void *argp2 = 0 ;
11551 int res2 = 0 ;
11552 void *argp3 = 0 ;
11553 int res3 = 0 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 PyObject * obj2 = 0 ;
11557 char * kwnames[] = {
11558 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11559 };
11560
11561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11563 if (!SWIG_IsOK(res1)) {
11564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11565 }
11566 if (!argp1) {
11567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11568 }
11569 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11571 if (!SWIG_IsOK(res2)) {
11572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11573 }
11574 if (!argp2) {
11575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11576 }
11577 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11578 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11579 if (!SWIG_IsOK(res3)) {
11580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11581 }
11582 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11590 return resultobj;
11591fail:
11592 return NULL;
11593}
11594
11595
11596SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11597 PyObject *obj;
11598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11599 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11600 return SWIG_Py_Void();
11601}
11602
11603SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11604 return SWIG_Python_InitShadowInstance(args);
11605}
11606
11607SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj = 0;
11609 wxWindow *arg1 = (wxWindow *) 0 ;
11610 int arg2 = (int) -1 ;
11611 wxString const &arg3_defvalue = wxPyEmptyString ;
11612 wxString *arg3 = (wxString *) &arg3_defvalue ;
11613 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11614 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11615 wxSize const &arg5_defvalue = wxDefaultSize ;
11616 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11617 long arg6 = (long) 0 ;
11618 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11619 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11620 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11621 wxString *arg8 = (wxString *) &arg8_defvalue ;
11622 wxTextCtrl *result = 0 ;
11623 void *argp1 = 0 ;
11624 int res1 = 0 ;
11625 int val2 ;
11626 int ecode2 = 0 ;
11627 bool temp3 = false ;
11628 wxPoint temp4 ;
11629 wxSize temp5 ;
11630 long val6 ;
11631 int ecode6 = 0 ;
11632 void *argp7 = 0 ;
11633 int res7 = 0 ;
11634 bool temp8 = false ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj1 = 0 ;
11637 PyObject * obj2 = 0 ;
11638 PyObject * obj3 = 0 ;
11639 PyObject * obj4 = 0 ;
11640 PyObject * obj5 = 0 ;
11641 PyObject * obj6 = 0 ;
11642 PyObject * obj7 = 0 ;
11643 char * kwnames[] = {
11644 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11645 };
11646
11647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11649 if (!SWIG_IsOK(res1)) {
11650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11651 }
11652 arg1 = reinterpret_cast< wxWindow * >(argp1);
11653 if (obj1) {
11654 ecode2 = SWIG_AsVal_int(obj1, &val2);
11655 if (!SWIG_IsOK(ecode2)) {
11656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11657 }
11658 arg2 = static_cast< int >(val2);
11659 }
11660 if (obj2) {
4f89f6a3 11661 {
0085ce49
RD
11662 arg3 = wxString_in_helper(obj2);
11663 if (arg3 == NULL) SWIG_fail;
11664 temp3 = true;
4f89f6a3 11665 }
0085ce49
RD
11666 }
11667 if (obj3) {
d14a1e28 11668 {
0085ce49
RD
11669 arg4 = &temp4;
11670 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11671 }
0085ce49
RD
11672 }
11673 if (obj4) {
d14a1e28 11674 {
0085ce49
RD
11675 arg5 = &temp5;
11676 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11677 }
0085ce49
RD
11678 }
11679 if (obj5) {
11680 ecode6 = SWIG_AsVal_long(obj5, &val6);
11681 if (!SWIG_IsOK(ecode6)) {
11682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11683 }
11684 arg6 = static_cast< long >(val6);
11685 }
11686 if (obj6) {
11687 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11688 if (!SWIG_IsOK(res7)) {
11689 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11690 }
0085ce49
RD
11691 if (!argp7) {
11692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11693 }
0085ce49
RD
11694 arg7 = reinterpret_cast< wxValidator * >(argp7);
11695 }
11696 if (obj7) {
d14a1e28 11697 {
0085ce49
RD
11698 arg8 = wxString_in_helper(obj7);
11699 if (arg8 == NULL) SWIG_fail;
11700 temp8 = true;
d14a1e28 11701 }
0085ce49
RD
11702 }
11703 {
11704 if (!wxPyCheckForApp()) SWIG_fail;
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11711 {
11712 if (temp3)
11713 delete arg3;
11714 }
11715 {
11716 if (temp8)
11717 delete arg8;
11718 }
11719 return resultobj;
11720fail:
11721 {
11722 if (temp3)
11723 delete arg3;
11724 }
11725 {
11726 if (temp8)
11727 delete arg8;
11728 }
11729 return NULL;
d14a1e28
RD
11730}
11731
11732
0085ce49
RD
11733SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11734 PyObject *resultobj = 0;
11735 wxTextCtrl *result = 0 ;
11736
11737 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11738 {
11739 if (!wxPyCheckForApp()) SWIG_fail;
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (wxTextCtrl *)new wxTextCtrl();
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11746 return resultobj;
11747fail:
11748 return NULL;
11749}
11750
11751
11752SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj = 0;
11754 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11755 wxWindow *arg2 = (wxWindow *) 0 ;
11756 int arg3 = (int) -1 ;
11757 wxString const &arg4_defvalue = wxPyEmptyString ;
11758 wxString *arg4 = (wxString *) &arg4_defvalue ;
11759 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11760 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11761 wxSize const &arg6_defvalue = wxDefaultSize ;
11762 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11763 long arg7 = (long) 0 ;
11764 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11765 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11766 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11767 wxString *arg9 = (wxString *) &arg9_defvalue ;
11768 bool result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 void *argp2 = 0 ;
11772 int res2 = 0 ;
11773 int val3 ;
11774 int ecode3 = 0 ;
11775 bool temp4 = false ;
11776 wxPoint temp5 ;
11777 wxSize temp6 ;
11778 long val7 ;
11779 int ecode7 = 0 ;
11780 void *argp8 = 0 ;
11781 int res8 = 0 ;
11782 bool temp9 = false ;
11783 PyObject * obj0 = 0 ;
11784 PyObject * obj1 = 0 ;
11785 PyObject * obj2 = 0 ;
11786 PyObject * obj3 = 0 ;
11787 PyObject * obj4 = 0 ;
11788 PyObject * obj5 = 0 ;
11789 PyObject * obj6 = 0 ;
11790 PyObject * obj7 = 0 ;
11791 PyObject * obj8 = 0 ;
11792 char * kwnames[] = {
11793 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11794 };
11795
11796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11798 if (!SWIG_IsOK(res1)) {
11799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11800 }
11801 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11803 if (!SWIG_IsOK(res2)) {
11804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11805 }
11806 arg2 = reinterpret_cast< wxWindow * >(argp2);
11807 if (obj2) {
11808 ecode3 = SWIG_AsVal_int(obj2, &val3);
11809 if (!SWIG_IsOK(ecode3)) {
11810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11811 }
11812 arg3 = static_cast< int >(val3);
11813 }
11814 if (obj3) {
d14a1e28 11815 {
0085ce49
RD
11816 arg4 = wxString_in_helper(obj3);
11817 if (arg4 == NULL) SWIG_fail;
11818 temp4 = true;
d14a1e28 11819 }
0085ce49
RD
11820 }
11821 if (obj4) {
d14a1e28 11822 {
0085ce49
RD
11823 arg5 = &temp5;
11824 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11825 }
0085ce49
RD
11826 }
11827 if (obj5) {
d14a1e28 11828 {
0085ce49
RD
11829 arg6 = &temp6;
11830 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11831 }
0085ce49
RD
11832 }
11833 if (obj6) {
11834 ecode7 = SWIG_AsVal_long(obj6, &val7);
11835 if (!SWIG_IsOK(ecode7)) {
11836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11837 }
11838 arg7 = static_cast< long >(val7);
11839 }
11840 if (obj7) {
11841 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11842 if (!SWIG_IsOK(res8)) {
11843 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11844 }
0085ce49
RD
11845 if (!argp8) {
11846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11847 }
0085ce49
RD
11848 arg8 = reinterpret_cast< wxValidator * >(argp8);
11849 }
11850 if (obj8) {
d14a1e28 11851 {
0085ce49
RD
11852 arg9 = wxString_in_helper(obj8);
11853 if (arg9 == NULL) SWIG_fail;
11854 temp9 = true;
d14a1e28 11855 }
0085ce49
RD
11856 }
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11860 wxPyEndAllowThreads(__tstate);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 {
11864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11865 }
11866 {
11867 if (temp4)
11868 delete arg4;
11869 }
11870 {
11871 if (temp9)
11872 delete arg9;
11873 }
11874 return resultobj;
11875fail:
11876 {
11877 if (temp4)
11878 delete arg4;
11879 }
11880 {
11881 if (temp9)
11882 delete arg9;
11883 }
11884 return NULL;
d14a1e28
RD
11885}
11886
11887
0085ce49
RD
11888SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11891 wxString result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11901 }
11902 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = ((wxTextCtrl const *)arg1)->GetValue();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910#if wxUSE_UNICODE
11911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11912#else
11913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11914#endif
11915 }
11916 return resultobj;
11917fail:
11918 return NULL;
11919}
11920
11921
11922SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11923 PyObject *resultobj = 0;
11924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11925 wxString *arg2 = 0 ;
11926 void *argp1 = 0 ;
11927 int res1 = 0 ;
11928 bool temp2 = false ;
11929 PyObject * obj0 = 0 ;
11930 PyObject * obj1 = 0 ;
11931 char * kwnames[] = {
11932 (char *) "self",(char *) "value", NULL
11933 };
11934
11935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11937 if (!SWIG_IsOK(res1)) {
11938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11939 }
11940 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11941 {
11942 arg2 = wxString_in_helper(obj1);
11943 if (arg2 == NULL) SWIG_fail;
11944 temp2 = true;
11945 }
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 (arg1)->SetValue((wxString const &)*arg2);
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 resultobj = SWIG_Py_Void();
11953 {
11954 if (temp2)
11955 delete arg2;
11956 }
11957 return resultobj;
11958fail:
11959 {
11960 if (temp2)
11961 delete arg2;
11962 }
11963 return NULL;
11964}
11965
11966
11967SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj = 0;
11969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11970 long arg2 ;
11971 long arg3 ;
11972 wxString result;
11973 void *argp1 = 0 ;
11974 int res1 = 0 ;
11975 long val2 ;
11976 int ecode2 = 0 ;
11977 long val3 ;
11978 int ecode3 = 0 ;
11979 PyObject * obj0 = 0 ;
11980 PyObject * obj1 = 0 ;
11981 PyObject * obj2 = 0 ;
11982 char * kwnames[] = {
2131d850 11983 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
11984 };
11985
11986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11990 }
11991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11992 ecode2 = SWIG_AsVal_long(obj1, &val2);
11993 if (!SWIG_IsOK(ecode2)) {
11994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11995 }
11996 arg2 = static_cast< long >(val2);
11997 ecode3 = SWIG_AsVal_long(obj2, &val3);
11998 if (!SWIG_IsOK(ecode3)) {
11999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12000 }
12001 arg3 = static_cast< long >(val3);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 {
12009#if wxUSE_UNICODE
12010 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12011#else
12012 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12013#endif
12014 }
12015 return resultobj;
12016fail:
12017 return NULL;
12018}
12019
12020
12021SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12022 PyObject *resultobj = 0;
12023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12024 long arg2 ;
12025 int result;
12026 void *argp1 = 0 ;
12027 int res1 = 0 ;
12028 long val2 ;
12029 int ecode2 = 0 ;
12030 PyObject * obj0 = 0 ;
12031 PyObject * obj1 = 0 ;
12032 char * kwnames[] = {
12033 (char *) "self",(char *) "lineNo", NULL
12034 };
12035
12036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12038 if (!SWIG_IsOK(res1)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12040 }
12041 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12042 ecode2 = SWIG_AsVal_long(obj1, &val2);
12043 if (!SWIG_IsOK(ecode2)) {
12044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12045 }
12046 arg2 = static_cast< long >(val2);
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 resultobj = SWIG_From_int(static_cast< int >(result));
12054 return resultobj;
12055fail:
12056 return NULL;
12057}
12058
12059
12060SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 long arg2 ;
12064 wxString result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 long val2 ;
12068 int ecode2 = 0 ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 char * kwnames[] = {
12072 (char *) "self",(char *) "lineNo", NULL
12073 };
12074
12075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12079 }
12080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12081 ecode2 = SWIG_AsVal_long(obj1, &val2);
12082 if (!SWIG_IsOK(ecode2)) {
12083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12084 }
12085 arg2 = static_cast< long >(val2);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093#if wxUSE_UNICODE
12094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12095#else
12096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12097#endif
12098 }
12099 return resultobj;
12100fail:
12101 return NULL;
d14a1e28
RD
12102}
12103
12104
0085ce49
RD
12105SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12106 PyObject *resultobj = 0;
12107 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12108 int result;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 PyObject *swig_obj[1] ;
12112
12113 if (!args) SWIG_fail;
12114 swig_obj[0] = args;
12115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12118 }
12119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_From_int(static_cast< int >(result));
12127 return resultobj;
12128fail:
12129 return NULL;
d14a1e28
RD
12130}
12131
12132
0085ce49
RD
12133SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12134 PyObject *resultobj = 0;
12135 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12136 bool result;
12137 void *argp1 = 0 ;
12138 int res1 = 0 ;
12139 PyObject *swig_obj[1] ;
12140
12141 if (!args) SWIG_fail;
12142 swig_obj[0] = args;
12143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12144 if (!SWIG_IsOK(res1)) {
12145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12146 }
12147 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 {
12155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12156 }
12157 return resultobj;
12158fail:
12159 return NULL;
c3eb6258
RD
12160}
12161
12162
0085ce49
RD
12163SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12166 bool result;
12167 void *argp1 = 0 ;
12168 int res1 = 0 ;
12169 PyObject *swig_obj[1] ;
12170
12171 if (!args) SWIG_fail;
12172 swig_obj[0] = args;
12173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12176 }
12177 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12186 }
12187 return resultobj;
12188fail:
12189 return NULL;
74a57fcd
RD
12190}
12191
12192
0085ce49
RD
12193SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12194 PyObject *resultobj = 0;
12195 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12196 bool result;
12197 void *argp1 = 0 ;
12198 int res1 = 0 ;
12199 PyObject *swig_obj[1] ;
12200
12201 if (!args) SWIG_fail;
12202 swig_obj[0] = args;
12203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12204 if (!SWIG_IsOK(res1)) {
12205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12206 }
12207 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 {
12215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12216 }
12217 return resultobj;
12218fail:
12219 return NULL;
d14a1e28
RD
12220}
12221
12222
0085ce49
RD
12223SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12224 PyObject *resultobj = 0;
12225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12226 bool result;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 PyObject *swig_obj[1] ;
12230
12231 if (!args) SWIG_fail;
12232 swig_obj[0] = args;
12233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12234 if (!SWIG_IsOK(res1)) {
12235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12236 }
12237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12246 }
12247 return resultobj;
12248fail:
12249 return NULL;
12250}
12251
12252
12253SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12256 long *arg2 = (long *) 0 ;
12257 long *arg3 = (long *) 0 ;
12258 void *argp1 = 0 ;
12259 int res1 = 0 ;
12260 long temp2 ;
12261 int res2 = SWIG_TMPOBJ ;
12262 long temp3 ;
12263 int res3 = SWIG_TMPOBJ ;
12264 PyObject *swig_obj[1] ;
12265
12266 arg2 = &temp2;
12267 arg3 = &temp3;
12268 if (!args) SWIG_fail;
12269 swig_obj[0] = args;
12270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12271 if (!SWIG_IsOK(res1)) {
12272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12273 }
12274 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 resultobj = SWIG_Py_Void();
12282 if (SWIG_IsTmpObj(res2)) {
12283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12284 } else {
12285 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12287 }
12288 if (SWIG_IsTmpObj(res3)) {
12289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12290 } else {
12291 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12293 }
12294 return resultobj;
12295fail:
12296 return NULL;
d14a1e28
RD
12297}
12298
12299
0085ce49
RD
12300SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12301 PyObject *resultobj = 0;
12302 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12303 wxString result;
12304 void *argp1 = 0 ;
12305 int res1 = 0 ;
12306 PyObject *swig_obj[1] ;
12307
12308 if (!args) SWIG_fail;
12309 swig_obj[0] = args;
12310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12311 if (!SWIG_IsOK(res1)) {
12312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12313 }
12314 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 {
12322#if wxUSE_UNICODE
12323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12324#else
12325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12326#endif
12327 }
12328 return resultobj;
12329fail:
12330 return NULL;
d14a1e28
RD
12331}
12332
12333
0085ce49
RD
12334SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12346 }
12347 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 (arg1)->Clear();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_Py_Void();
12355 return resultobj;
12356fail:
12357 return NULL;
12358}
12359
12360
12361SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj = 0;
12363 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12364 long arg2 ;
12365 long arg3 ;
12366 wxString *arg4 = 0 ;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 long val2 ;
12370 int ecode2 = 0 ;
12371 long val3 ;
12372 int ecode3 = 0 ;
12373 bool temp4 = false ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 PyObject * obj2 = 0 ;
12377 PyObject * obj3 = 0 ;
12378 char * kwnames[] = {
2131d850 12379 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12386 }
12387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12388 ecode2 = SWIG_AsVal_long(obj1, &val2);
12389 if (!SWIG_IsOK(ecode2)) {
12390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12391 }
12392 arg2 = static_cast< long >(val2);
12393 ecode3 = SWIG_AsVal_long(obj2, &val3);
12394 if (!SWIG_IsOK(ecode3)) {
12395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12396 }
12397 arg3 = static_cast< long >(val3);
12398 {
12399 arg4 = wxString_in_helper(obj3);
12400 if (arg4 == NULL) SWIG_fail;
12401 temp4 = true;
12402 }
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_Py_Void();
12410 {
12411 if (temp4)
12412 delete arg4;
12413 }
12414 return resultobj;
12415fail:
12416 {
12417 if (temp4)
12418 delete arg4;
12419 }
12420 return NULL;
12421}
12422
12423
12424SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj = 0;
12426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12427 long arg2 ;
12428 long arg3 ;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 long val2 ;
12432 int ecode2 = 0 ;
12433 long val3 ;
12434 int ecode3 = 0 ;
12435 PyObject * obj0 = 0 ;
12436 PyObject * obj1 = 0 ;
12437 PyObject * obj2 = 0 ;
12438 char * kwnames[] = {
2131d850 12439 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12440 };
12441
12442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12444 if (!SWIG_IsOK(res1)) {
12445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12446 }
12447 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12448 ecode2 = SWIG_AsVal_long(obj1, &val2);
12449 if (!SWIG_IsOK(ecode2)) {
12450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12451 }
12452 arg2 = static_cast< long >(val2);
12453 ecode3 = SWIG_AsVal_long(obj2, &val3);
12454 if (!SWIG_IsOK(ecode3)) {
12455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12456 }
12457 arg3 = static_cast< long >(val3);
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 (arg1)->Remove(arg2,arg3);
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_Py_Void();
12465 return resultobj;
12466fail:
12467 return NULL;
12468}
12469
12470
12471SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj = 0;
12473 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12474 wxString *arg2 = 0 ;
f5263701 12475 int arg3 = (int) wxTEXT_TYPE_ANY ;
0085ce49
RD
12476 bool result;
12477 void *argp1 = 0 ;
12478 int res1 = 0 ;
12479 bool temp2 = false ;
f5263701
RD
12480 int val3 ;
12481 int ecode3 = 0 ;
0085ce49
RD
12482 PyObject * obj0 = 0 ;
12483 PyObject * obj1 = 0 ;
f5263701 12484 PyObject * obj2 = 0 ;
0085ce49 12485 char * kwnames[] = {
f5263701 12486 (char *) "self",(char *) "file",(char *) "fileType", NULL
0085ce49
RD
12487 };
12488
f5263701 12489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
0085ce49
RD
12490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12491 if (!SWIG_IsOK(res1)) {
12492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12493 }
12494 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12495 {
12496 arg2 = wxString_in_helper(obj1);
12497 if (arg2 == NULL) SWIG_fail;
12498 temp2 = true;
12499 }
f5263701
RD
12500 if (obj2) {
12501 ecode3 = SWIG_AsVal_int(obj2, &val3);
12502 if (!SWIG_IsOK(ecode3)) {
12503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12504 }
12505 arg3 = static_cast< int >(val3);
12506 }
0085ce49
RD
12507 {
12508 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12509 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 {
12514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12515 }
12516 {
12517 if (temp2)
12518 delete arg2;
12519 }
12520 return resultobj;
12521fail:
12522 {
12523 if (temp2)
12524 delete arg2;
12525 }
12526 return NULL;
12527}
12528
12529
12530SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj = 0;
12532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12533 wxString const &arg2_defvalue = wxPyEmptyString ;
12534 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12535 int arg3 = (int) wxTEXT_TYPE_ANY ;
0085ce49
RD
12536 bool result;
12537 void *argp1 = 0 ;
12538 int res1 = 0 ;
12539 bool temp2 = false ;
f5263701
RD
12540 int val3 ;
12541 int ecode3 = 0 ;
0085ce49
RD
12542 PyObject * obj0 = 0 ;
12543 PyObject * obj1 = 0 ;
f5263701 12544 PyObject * obj2 = 0 ;
0085ce49 12545 char * kwnames[] = {
f5263701 12546 (char *) "self",(char *) "file",(char *) "fileType", NULL
0085ce49
RD
12547 };
12548
f5263701 12549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
0085ce49
RD
12550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12551 if (!SWIG_IsOK(res1)) {
12552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12553 }
12554 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12555 if (obj1) {
4f89f6a3 12556 {
0085ce49
RD
12557 arg2 = wxString_in_helper(obj1);
12558 if (arg2 == NULL) SWIG_fail;
12559 temp2 = true;
4f89f6a3 12560 }
0085ce49 12561 }
f5263701
RD
12562 if (obj2) {
12563 ecode3 = SWIG_AsVal_int(obj2, &val3);
12564 if (!SWIG_IsOK(ecode3)) {
12565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12566 }
12567 arg3 = static_cast< int >(val3);
12568 }
0085ce49
RD
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12571 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
0085ce49
RD
12572 wxPyEndAllowThreads(__tstate);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 {
12576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12577 }
12578 {
12579 if (temp2)
12580 delete arg2;
12581 }
12582 return resultobj;
12583fail:
12584 {
12585 if (temp2)
12586 delete arg2;
12587 }
12588 return NULL;
d14a1e28
RD
12589}
12590
12591
0085ce49
RD
12592SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12593 PyObject *resultobj = 0;
12594 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 PyObject *swig_obj[1] ;
12598
12599 if (!args) SWIG_fail;
12600 swig_obj[0] = args;
12601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12602 if (!SWIG_IsOK(res1)) {
12603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12604 }
12605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 (arg1)->MarkDirty();
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 resultobj = SWIG_Py_Void();
12613 return resultobj;
12614fail:
12615 return NULL;
d14a1e28
RD
12616}
12617
12618
0085ce49
RD
12619SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12620 PyObject *resultobj = 0;
12621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12622 void *argp1 = 0 ;
12623 int res1 = 0 ;
12624 PyObject *swig_obj[1] ;
12625
12626 if (!args) SWIG_fail;
12627 swig_obj[0] = args;
12628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12629 if (!SWIG_IsOK(res1)) {
12630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12631 }
12632 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->DiscardEdits();
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 resultobj = SWIG_Py_Void();
12640 return resultobj;
12641fail:
12642 return NULL;
12643}
12644
12645
b02396e8
RD
12646SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12647 PyObject *resultobj = 0;
12648 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12649 bool arg2 ;
12650 void *argp1 = 0 ;
12651 int res1 = 0 ;
12652 bool val2 ;
12653 int ecode2 = 0 ;
12654 PyObject * obj0 = 0 ;
12655 PyObject * obj1 = 0 ;
12656 char * kwnames[] = {
12657 (char *) "self",(char *) "modified", NULL
12658 };
12659
12660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12662 if (!SWIG_IsOK(res1)) {
12663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12664 }
12665 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12666 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12667 if (!SWIG_IsOK(ecode2)) {
12668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12669 }
12670 arg2 = static_cast< bool >(val2);
12671 {
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 (arg1)->SetModified(arg2);
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 resultobj = SWIG_Py_Void();
12678 return resultobj;
12679fail:
12680 return NULL;
12681}
12682
12683
0085ce49
RD
12684SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj = 0;
12686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12687 unsigned long arg2 ;
12688 void *argp1 = 0 ;
12689 int res1 = 0 ;
12690 unsigned long val2 ;
12691 int ecode2 = 0 ;
12692 PyObject * obj0 = 0 ;
12693 PyObject * obj1 = 0 ;
12694 char * kwnames[] = {
12695 (char *) "self",(char *) "len", NULL
12696 };
12697
12698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12700 if (!SWIG_IsOK(res1)) {
12701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12702 }
12703 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12704 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12705 if (!SWIG_IsOK(ecode2)) {
12706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12707 }
12708 arg2 = static_cast< unsigned long >(val2);
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->SetMaxLength(arg2);
12712 wxPyEndAllowThreads(__tstate);
12713 if (PyErr_Occurred()) SWIG_fail;
12714 }
12715 resultobj = SWIG_Py_Void();
12716 return resultobj;
12717fail:
12718 return NULL;
12719}
12720
12721
12722SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12723 PyObject *resultobj = 0;
12724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12725 wxString *arg2 = 0 ;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 bool temp2 = false ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 char * kwnames[] = {
12732 (char *) "self",(char *) "text", NULL
12733 };
12734
12735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12737 if (!SWIG_IsOK(res1)) {
12738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12739 }
12740 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12741 {
12742 arg2 = wxString_in_helper(obj1);
12743 if (arg2 == NULL) SWIG_fail;
12744 temp2 = true;
12745 }
12746 {
12747 PyThreadState* __tstate = wxPyBeginAllowThreads();
12748 (arg1)->WriteText((wxString const &)*arg2);
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 resultobj = SWIG_Py_Void();
12753 {
12754 if (temp2)
12755 delete arg2;
12756 }
12757 return resultobj;
12758fail:
12759 {
12760 if (temp2)
12761 delete arg2;
12762 }
12763 return NULL;
d14a1e28
RD
12764}
12765
12766
0085ce49
RD
12767SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12768 PyObject *resultobj = 0;
12769 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12770 wxString *arg2 = 0 ;
12771 void *argp1 = 0 ;
12772 int res1 = 0 ;
12773 bool temp2 = false ;
12774 PyObject * obj0 = 0 ;
12775 PyObject * obj1 = 0 ;
12776 char * kwnames[] = {
12777 (char *) "self",(char *) "text", NULL
12778 };
12779
12780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12782 if (!SWIG_IsOK(res1)) {
12783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12784 }
12785 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12786 {
12787 arg2 = wxString_in_helper(obj1);
12788 if (arg2 == NULL) SWIG_fail;
12789 temp2 = true;
12790 }
12791 {
12792 PyThreadState* __tstate = wxPyBeginAllowThreads();
12793 (arg1)->AppendText((wxString const &)*arg2);
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 resultobj = SWIG_Py_Void();
12798 {
12799 if (temp2)
12800 delete arg2;
12801 }
12802 return resultobj;
12803fail:
12804 {
12805 if (temp2)
12806 delete arg2;
12807 }
12808 return NULL;
12809}
12810
12811
12812SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = 0;
12814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12815 wxKeyEvent *arg2 = 0 ;
12816 bool result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 void *argp2 = 0 ;
12820 int res2 = 0 ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 char * kwnames[] = {
12824 (char *) "self",(char *) "event", NULL
12825 };
12826
12827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12831 }
12832 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12834 if (!SWIG_IsOK(res2)) {
12835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12836 }
12837 if (!argp2) {
12838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12839 }
12840 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12844 wxPyEndAllowThreads(__tstate);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 {
12848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12849 }
12850 return resultobj;
12851fail:
12852 return NULL;
12853}
12854
12855
12856SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12857 PyObject *resultobj = 0;
12858 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12859 long arg2 ;
12860 long arg3 ;
12861 wxTextAttr *arg4 = 0 ;
12862 bool result;
12863 void *argp1 = 0 ;
12864 int res1 = 0 ;
12865 long val2 ;
12866 int ecode2 = 0 ;
12867 long val3 ;
12868 int ecode3 = 0 ;
12869 void *argp4 = 0 ;
12870 int res4 = 0 ;
12871 PyObject * obj0 = 0 ;
12872 PyObject * obj1 = 0 ;
12873 PyObject * obj2 = 0 ;
12874 PyObject * obj3 = 0 ;
12875 char * kwnames[] = {
12876 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12877 };
12878
12879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12881 if (!SWIG_IsOK(res1)) {
12882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12883 }
12884 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12885 ecode2 = SWIG_AsVal_long(obj1, &val2);
12886 if (!SWIG_IsOK(ecode2)) {
12887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12888 }
12889 arg2 = static_cast< long >(val2);
12890 ecode3 = SWIG_AsVal_long(obj2, &val3);
12891 if (!SWIG_IsOK(ecode3)) {
12892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12893 }
12894 arg3 = static_cast< long >(val3);
12895 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12896 if (!SWIG_IsOK(res4)) {
12897 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12898 }
12899 if (!argp4) {
12900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12901 }
12902 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 {
12910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12911 }
12912 return resultobj;
12913fail:
12914 return NULL;
12915}
12916
12917
12918SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 long arg2 ;
12922 wxTextAttr *arg3 = 0 ;
12923 bool result;
12924 void *argp1 = 0 ;
12925 int res1 = 0 ;
12926 long val2 ;
12927 int ecode2 = 0 ;
12928 void *argp3 = 0 ;
12929 int res3 = 0 ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 PyObject * obj2 = 0 ;
12933 char * kwnames[] = {
12934 (char *) "self",(char *) "position",(char *) "style", NULL
12935 };
12936
12937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12939 if (!SWIG_IsOK(res1)) {
12940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12941 }
12942 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12943 ecode2 = SWIG_AsVal_long(obj1, &val2);
12944 if (!SWIG_IsOK(ecode2)) {
12945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12946 }
12947 arg2 = static_cast< long >(val2);
12948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12949 if (!SWIG_IsOK(res3)) {
12950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12951 }
12952 if (!argp3) {
12953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12954 }
12955 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 {
12963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12964 }
12965 return resultobj;
12966fail:
12967 return NULL;
12968}
12969
12970
12971SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12972 PyObject *resultobj = 0;
12973 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12974 wxTextAttr *arg2 = 0 ;
12975 bool result;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 void *argp2 = 0 ;
12979 int res2 = 0 ;
12980 PyObject * obj0 = 0 ;
12981 PyObject * obj1 = 0 ;
12982 char * kwnames[] = {
12983 (char *) "self",(char *) "style", NULL
12984 };
12985
12986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12988 if (!SWIG_IsOK(res1)) {
12989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12990 }
12991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12993 if (!SWIG_IsOK(res2)) {
12994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12995 }
12996 if (!argp2) {
12997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12998 }
12999 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 {
13007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13008 }
13009 return resultobj;
13010fail:
13011 return NULL;
d14a1e28
RD
13012}
13013
13014
0085ce49
RD
13015SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13016 PyObject *resultobj = 0;
13017 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13018 wxTextAttr *result = 0 ;
13019 void *argp1 = 0 ;
13020 int res1 = 0 ;
13021 PyObject *swig_obj[1] ;
13022
13023 if (!args) SWIG_fail;
13024 swig_obj[0] = args;
13025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13026 if (!SWIG_IsOK(res1)) {
13027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13028 }
13029 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13032 {
0085ce49
RD
13033 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13034 result = (wxTextAttr *) &_result_ref;
093d3ff1 13035 }
0085ce49
RD
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13040 return resultobj;
13041fail:
13042 return NULL;
13043}
13044
13045
13046SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13047 PyObject *resultobj = 0;
13048 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13049 long arg2 ;
13050 long arg3 ;
13051 long result;
13052 void *argp1 = 0 ;
13053 int res1 = 0 ;
13054 long val2 ;
13055 int ecode2 = 0 ;
13056 long val3 ;
13057 int ecode3 = 0 ;
13058 PyObject * obj0 = 0 ;
13059 PyObject * obj1 = 0 ;
13060 PyObject * obj2 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "self",(char *) "x",(char *) "y", NULL
13063 };
13064
13065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13067 if (!SWIG_IsOK(res1)) {
13068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13069 }
13070 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13071 ecode2 = SWIG_AsVal_long(obj1, &val2);
13072 if (!SWIG_IsOK(ecode2)) {
13073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13074 }
13075 arg2 = static_cast< long >(val2);
13076 ecode3 = SWIG_AsVal_long(obj2, &val3);
13077 if (!SWIG_IsOK(ecode3)) {
13078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13079 }
13080 arg3 = static_cast< long >(val3);
13081 {
13082 PyThreadState* __tstate = wxPyBeginAllowThreads();
13083 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13084 wxPyEndAllowThreads(__tstate);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 }
13087 resultobj = SWIG_From_long(static_cast< long >(result));
13088 return resultobj;
13089fail:
13090 return NULL;
13091}
13092
13093
13094SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13095 PyObject *resultobj = 0;
13096 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13097 long arg2 ;
13098 long *arg3 = (long *) 0 ;
13099 long *arg4 = (long *) 0 ;
13100 void *argp1 = 0 ;
13101 int res1 = 0 ;
13102 long val2 ;
13103 int ecode2 = 0 ;
13104 long temp3 ;
13105 int res3 = SWIG_TMPOBJ ;
13106 long temp4 ;
13107 int res4 = SWIG_TMPOBJ ;
13108 PyObject * obj0 = 0 ;
13109 PyObject * obj1 = 0 ;
13110 char * kwnames[] = {
13111 (char *) "self",(char *) "pos", NULL
13112 };
13113
13114 arg3 = &temp3;
13115 arg4 = &temp4;
13116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13120 }
13121 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13122 ecode2 = SWIG_AsVal_long(obj1, &val2);
13123 if (!SWIG_IsOK(ecode2)) {
13124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13125 }
13126 arg2 = static_cast< long >(val2);
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 resultobj = SWIG_Py_Void();
13134 if (SWIG_IsTmpObj(res3)) {
13135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13136 } else {
13137 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13139 }
13140 if (SWIG_IsTmpObj(res4)) {
13141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13142 } else {
13143 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13145 }
13146 return resultobj;
13147fail:
13148 return NULL;
13149}
13150
13151
13152SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13153 PyObject *resultobj = 0;
13154 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13155 long arg2 ;
13156 void *argp1 = 0 ;
13157 int res1 = 0 ;
13158 long val2 ;
13159 int ecode2 = 0 ;
13160 PyObject * obj0 = 0 ;
13161 PyObject * obj1 = 0 ;
13162 char * kwnames[] = {
13163 (char *) "self",(char *) "pos", NULL
13164 };
13165
13166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13170 }
13171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13172 ecode2 = SWIG_AsVal_long(obj1, &val2);
13173 if (!SWIG_IsOK(ecode2)) {
13174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13175 }
13176 arg2 = static_cast< long >(val2);
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 (arg1)->ShowPosition(arg2);
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 resultobj = SWIG_Py_Void();
13184 return resultobj;
13185fail:
13186 return NULL;
13187}
13188
13189
13190SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13191 PyObject *resultobj = 0;
13192 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13193 wxPoint *arg2 = 0 ;
13194 long *arg3 = (long *) 0 ;
13195 long *arg4 = (long *) 0 ;
13196 wxTextCtrlHitTestResult result;
13197 void *argp1 = 0 ;
13198 int res1 = 0 ;
13199 wxPoint temp2 ;
13200 long temp3 ;
13201 int res3 = SWIG_TMPOBJ ;
13202 long temp4 ;
13203 int res4 = SWIG_TMPOBJ ;
13204 PyObject * obj0 = 0 ;
13205 PyObject * obj1 = 0 ;
13206 char * kwnames[] = {
13207 (char *) "self",(char *) "pt", NULL
13208 };
13209
13210 arg3 = &temp3;
13211 arg4 = &temp4;
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13216 }
13217 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13218 {
13219 arg2 = &temp2;
13220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_From_int(static_cast< int >(result));
13229 if (SWIG_IsTmpObj(res3)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13234 }
13235 if (SWIG_IsTmpObj(res4)) {
13236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13237 } else {
13238 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13240 }
13241 return resultobj;
13242fail:
13243 return NULL;
13244}
13245
13246
13247SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13248 PyObject *resultobj = 0;
13249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13250 wxPoint *arg2 = 0 ;
13251 long *arg3 = (long *) 0 ;
13252 wxTextCtrlHitTestResult result;
13253 void *argp1 = 0 ;
13254 int res1 = 0 ;
13255 wxPoint temp2 ;
13256 long temp3 ;
13257 int res3 = SWIG_TMPOBJ ;
13258 PyObject * obj0 = 0 ;
13259 PyObject * obj1 = 0 ;
13260 char * kwnames[] = {
13261 (char *) "self",(char *) "pt", NULL
13262 };
13263
13264 arg3 = &temp3;
13265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13267 if (!SWIG_IsOK(res1)) {
13268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13269 }
13270 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13271 {
13272 arg2 = &temp2;
13273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13274 }
13275 {
13276 PyThreadState* __tstate = wxPyBeginAllowThreads();
13277 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13278 wxPyEndAllowThreads(__tstate);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 }
13281 resultobj = SWIG_From_int(static_cast< int >(result));
13282 if (SWIG_IsTmpObj(res3)) {
13283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13284 } else {
13285 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13287 }
13288 return resultobj;
13289fail:
13290 return NULL;
d14a1e28
RD
13291}
13292
13293
0085ce49
RD
13294SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13295 PyObject *resultobj = 0;
13296 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13297 void *argp1 = 0 ;
13298 int res1 = 0 ;
13299 PyObject *swig_obj[1] ;
13300
13301 if (!args) SWIG_fail;
13302 swig_obj[0] = args;
13303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13304 if (!SWIG_IsOK(res1)) {
13305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13306 }
13307 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 (arg1)->Copy();
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 resultobj = SWIG_Py_Void();
13315 return resultobj;
13316fail:
13317 return NULL;
d14a1e28 13318}
0085ce49
RD
13319
13320
13321SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13322 PyObject *resultobj = 0;
13323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13324 void *argp1 = 0 ;
13325 int res1 = 0 ;
13326 PyObject *swig_obj[1] ;
13327
13328 if (!args) SWIG_fail;
13329 swig_obj[0] = args;
13330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13331 if (!SWIG_IsOK(res1)) {
13332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13333 }
13334 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13335 {
13336 PyThreadState* __tstate = wxPyBeginAllowThreads();
13337 (arg1)->Cut();
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 resultobj = SWIG_Py_Void();
13342 return resultobj;
13343fail:
13344 return NULL;
b2dc1044
RD
13345}
13346
13347
0085ce49
RD
13348SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13349 PyObject *resultobj = 0;
13350 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13351 void *argp1 = 0 ;
13352 int res1 = 0 ;
13353 PyObject *swig_obj[1] ;
13354
13355 if (!args) SWIG_fail;
13356 swig_obj[0] = args;
13357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13358 if (!SWIG_IsOK(res1)) {
13359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13360 }
13361 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 (arg1)->Paste();
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 resultobj = SWIG_Py_Void();
13369 return resultobj;
13370fail:
13371 return NULL;
d14a1e28
RD
13372}
13373
13374
0085ce49
RD
13375SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13376 PyObject *resultobj = 0;
13377 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13378 bool result;
13379 void *argp1 = 0 ;
13380 int res1 = 0 ;
13381 PyObject *swig_obj[1] ;
13382
13383 if (!args) SWIG_fail;
13384 swig_obj[0] = args;
13385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13386 if (!SWIG_IsOK(res1)) {
13387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13388 }
13389 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 {
13397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13398 }
13399 return resultobj;
13400fail:
13401 return NULL;
d14a1e28
RD
13402}
13403
13404
0085ce49
RD
13405SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13406 PyObject *resultobj = 0;
13407 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13408 bool result;
13409 void *argp1 = 0 ;
13410 int res1 = 0 ;
13411 PyObject *swig_obj[1] ;
13412
13413 if (!args) SWIG_fail;
13414 swig_obj[0] = args;
13415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13416 if (!SWIG_IsOK(res1)) {
13417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13418 }
13419 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 {
13427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13428 }
13429 return resultobj;
13430fail:
13431 return NULL;
994141e6
RD
13432}
13433
13434
0085ce49
RD
13435SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13436 PyObject *resultobj = 0;
13437 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13438 bool result;
13439 void *argp1 = 0 ;
13440 int res1 = 0 ;
13441 PyObject *swig_obj[1] ;
13442
13443 if (!args) SWIG_fail;
13444 swig_obj[0] = args;
13445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13446 if (!SWIG_IsOK(res1)) {
13447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13448 }
13449 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 {
13457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13458 }
13459 return resultobj;
13460fail:
13461 return NULL;
d14a1e28
RD
13462}
13463
13464
0085ce49
RD
13465SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13466 PyObject *resultobj = 0;
13467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13468 void *argp1 = 0 ;
13469 int res1 = 0 ;
13470 PyObject *swig_obj[1] ;
13471
13472 if (!args) SWIG_fail;
13473 swig_obj[0] = args;
13474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13475 if (!SWIG_IsOK(res1)) {
13476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13477 }
13478 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 (arg1)->Undo();
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 resultobj = SWIG_Py_Void();
13486 return resultobj;
13487fail:
13488 return NULL;
d14a1e28
RD
13489}
13490
13491
0085ce49
RD
13492SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13493 PyObject *resultobj = 0;
13494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13495 void *argp1 = 0 ;
13496 int res1 = 0 ;
13497 PyObject *swig_obj[1] ;
13498
13499 if (!args) SWIG_fail;
13500 swig_obj[0] = args;
13501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13502 if (!SWIG_IsOK(res1)) {
13503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13504 }
13505 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 (arg1)->Redo();
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 resultobj = SWIG_Py_Void();
13513 return resultobj;
13514fail:
13515 return NULL;
d14a1e28
RD
13516}
13517
13518
0085ce49
RD
13519SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13520 PyObject *resultobj = 0;
13521 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13522 bool result;
13523 void *argp1 = 0 ;
13524 int res1 = 0 ;
13525 PyObject *swig_obj[1] ;
13526
13527 if (!args) SWIG_fail;
13528 swig_obj[0] = args;
13529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13530 if (!SWIG_IsOK(res1)) {
13531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13532 }
13533 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
13536 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13537 wxPyEndAllowThreads(__tstate);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 {
13541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13542 }
13543 return resultobj;
13544fail:
13545 return NULL;
d14a1e28
RD
13546}
13547
13548
0085ce49
RD
13549SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13550 PyObject *resultobj = 0;
13551 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13552 bool result;
13553 void *argp1 = 0 ;
13554 int res1 = 0 ;
13555 PyObject *swig_obj[1] ;
13556
13557 if (!args) SWIG_fail;
13558 swig_obj[0] = args;
13559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13560 if (!SWIG_IsOK(res1)) {
13561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13562 }
13563 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13564 {
13565 PyThreadState* __tstate = wxPyBeginAllowThreads();
13566 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 {
13571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13572 }
13573 return resultobj;
13574fail:
13575 return NULL;
13576}
13577
13578
13579SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13580 PyObject *resultobj = 0;
13581 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13582 long arg2 ;
13583 void *argp1 = 0 ;
13584 int res1 = 0 ;
13585 long val2 ;
13586 int ecode2 = 0 ;
13587 PyObject * obj0 = 0 ;
13588 PyObject * obj1 = 0 ;
13589 char * kwnames[] = {
13590 (char *) "self",(char *) "pos", NULL
13591 };
13592
13593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13595 if (!SWIG_IsOK(res1)) {
13596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13597 }
13598 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13599 ecode2 = SWIG_AsVal_long(obj1, &val2);
13600 if (!SWIG_IsOK(ecode2)) {
13601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13602 }
13603 arg2 = static_cast< long >(val2);
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 (arg1)->SetInsertionPoint(arg2);
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 resultobj = SWIG_Py_Void();
13611 return resultobj;
13612fail:
13613 return NULL;
d14a1e28
RD
13614}
13615
13616
0085ce49
RD
13617SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13618 PyObject *resultobj = 0;
13619 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13620 void *argp1 = 0 ;
13621 int res1 = 0 ;
13622 PyObject *swig_obj[1] ;
13623
13624 if (!args) SWIG_fail;
13625 swig_obj[0] = args;
13626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13627 if (!SWIG_IsOK(res1)) {
13628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13629 }
13630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13631 {
13632 PyThreadState* __tstate = wxPyBeginAllowThreads();
13633 (arg1)->SetInsertionPointEnd();
13634 wxPyEndAllowThreads(__tstate);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 resultobj = SWIG_Py_Void();
13638 return resultobj;
13639fail:
13640 return NULL;
d14a1e28
RD
13641}
13642
13643
0085ce49
RD
13644SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13645 PyObject *resultobj = 0;
13646 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13647 long result;
13648 void *argp1 = 0 ;
13649 int res1 = 0 ;
13650 PyObject *swig_obj[1] ;
13651
13652 if (!args) SWIG_fail;
13653 swig_obj[0] = args;
13654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13655 if (!SWIG_IsOK(res1)) {
13656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13657 }
13658 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 resultobj = SWIG_From_long(static_cast< long >(result));
13666 return resultobj;
13667fail:
13668 return NULL;
d14a1e28
RD
13669}
13670
13671
0085ce49
RD
13672SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13673 PyObject *resultobj = 0;
13674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13675 long result;
13676 void *argp1 = 0 ;
13677 int res1 = 0 ;
13678 PyObject *swig_obj[1] ;
13679
13680 if (!args) SWIG_fail;
13681 swig_obj[0] = args;
13682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13685 }
13686 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13687 {
13688 PyThreadState* __tstate = wxPyBeginAllowThreads();
13689 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 resultobj = SWIG_From_long(static_cast< long >(result));
13694 return resultobj;
13695fail:
13696 return NULL;
13697}
13698
13699
13700SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13701 PyObject *resultobj = 0;
13702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13703 long arg2 ;
13704 long arg3 ;
13705 void *argp1 = 0 ;
13706 int res1 = 0 ;
13707 long val2 ;
13708 int ecode2 = 0 ;
13709 long val3 ;
13710 int ecode3 = 0 ;
13711 PyObject * obj0 = 0 ;
13712 PyObject * obj1 = 0 ;
13713 PyObject * obj2 = 0 ;
13714 char * kwnames[] = {
2131d850 13715 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13716 };
13717
13718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13720 if (!SWIG_IsOK(res1)) {
13721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13722 }
13723 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13724 ecode2 = SWIG_AsVal_long(obj1, &val2);
13725 if (!SWIG_IsOK(ecode2)) {
13726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13727 }
13728 arg2 = static_cast< long >(val2);
13729 ecode3 = SWIG_AsVal_long(obj2, &val3);
13730 if (!SWIG_IsOK(ecode3)) {
13731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13732 }
13733 arg3 = static_cast< long >(val3);
13734 {
13735 PyThreadState* __tstate = wxPyBeginAllowThreads();
13736 (arg1)->SetSelection(arg2,arg3);
13737 wxPyEndAllowThreads(__tstate);
13738 if (PyErr_Occurred()) SWIG_fail;
13739 }
13740 resultobj = SWIG_Py_Void();
13741 return resultobj;
13742fail:
13743 return NULL;
d14a1e28
RD
13744}
13745
13746
0085ce49
RD
13747SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13748 PyObject *resultobj = 0;
13749 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13750 void *argp1 = 0 ;
13751 int res1 = 0 ;
13752 PyObject *swig_obj[1] ;
13753
13754 if (!args) SWIG_fail;
13755 swig_obj[0] = args;
13756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13757 if (!SWIG_IsOK(res1)) {
13758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13759 }
13760 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 (arg1)->SelectAll();
13764 wxPyEndAllowThreads(__tstate);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 resultobj = SWIG_Py_Void();
13768 return resultobj;
13769fail:
13770 return NULL;
13771}
13772
13773
13774SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13775 PyObject *resultobj = 0;
13776 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13777 bool arg2 ;
13778 void *argp1 = 0 ;
13779 int res1 = 0 ;
13780 bool val2 ;
13781 int ecode2 = 0 ;
13782 PyObject * obj0 = 0 ;
13783 PyObject * obj1 = 0 ;
13784 char * kwnames[] = {
13785 (char *) "self",(char *) "editable", NULL
13786 };
13787
13788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13790 if (!SWIG_IsOK(res1)) {
13791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13792 }
13793 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13794 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13795 if (!SWIG_IsOK(ecode2)) {
13796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13797 }
13798 arg2 = static_cast< bool >(val2);
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 (arg1)->SetEditable(arg2);
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_Py_Void();
13806 return resultobj;
13807fail:
13808 return NULL;
13809}
13810
13811
13812SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj = 0;
13814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13815 wxString *arg2 = 0 ;
13816 void *argp1 = 0 ;
13817 int res1 = 0 ;
13818 bool temp2 = false ;
13819 PyObject * obj0 = 0 ;
13820 PyObject * obj1 = 0 ;
13821 char * kwnames[] = {
13822 (char *) "self",(char *) "text", NULL
13823 };
13824
13825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13827 if (!SWIG_IsOK(res1)) {
13828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13829 }
13830 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13831 {
13832 arg2 = wxString_in_helper(obj1);
13833 if (arg2 == NULL) SWIG_fail;
13834 temp2 = true;
13835 }
13836 {
13837 PyThreadState* __tstate = wxPyBeginAllowThreads();
13838 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13839 wxPyEndAllowThreads(__tstate);
13840 if (PyErr_Occurred()) SWIG_fail;
13841 }
13842 resultobj = SWIG_Py_Void();
13843 {
13844 if (temp2)
13845 delete arg2;
13846 }
13847 return resultobj;
13848fail:
13849 {
13850 if (temp2)
13851 delete arg2;
13852 }
13853 return NULL;
13854}
13855
13856
13857SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13858 PyObject *resultobj = 0;
13859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13860 long arg2 ;
13861 long arg3 ;
13862 wxString result;
13863 void *argp1 = 0 ;
13864 int res1 = 0 ;
13865 long val2 ;
13866 int ecode2 = 0 ;
13867 long val3 ;
13868 int ecode3 = 0 ;
13869 PyObject * obj0 = 0 ;
13870 PyObject * obj1 = 0 ;
13871 PyObject * obj2 = 0 ;
13872 char * kwnames[] = {
2131d850 13873 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13874 };
13875
13876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13878 if (!SWIG_IsOK(res1)) {
13879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13880 }
13881 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13882 ecode2 = SWIG_AsVal_long(obj1, &val2);
13883 if (!SWIG_IsOK(ecode2)) {
13884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13885 }
13886 arg2 = static_cast< long >(val2);
13887 ecode3 = SWIG_AsVal_long(obj2, &val3);
13888 if (!SWIG_IsOK(ecode3)) {
13889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13890 }
13891 arg3 = static_cast< long >(val3);
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 {
13899#if wxUSE_UNICODE
13900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13901#else
13902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13903#endif
13904 }
13905 return resultobj;
13906fail:
13907 return NULL;
d14a1e28
RD
13908}
13909
13910
0085ce49
RD
13911SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13912 PyObject *resultobj = 0;
13913 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13914 SwigValueWrapper<wxVisualAttributes > result;
13915 int val1 ;
13916 int ecode1 = 0 ;
13917 PyObject * obj0 = 0 ;
13918 char * kwnames[] = {
13919 (char *) "variant", NULL
13920 };
13921
13922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13923 if (obj0) {
13924 ecode1 = SWIG_AsVal_int(obj0, &val1);
13925 if (!SWIG_IsOK(ecode1)) {
13926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13927 }
13928 arg1 = static_cast< wxWindowVariant >(val1);
13929 }
13930 {
13931 if (!wxPyCheckForApp()) SWIG_fail;
13932 PyThreadState* __tstate = wxPyBeginAllowThreads();
13933 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13938 return resultobj;
13939fail:
13940 return NULL;
13941}
13942
13943
13944SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13945 PyObject *obj;
13946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13947 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13948 return SWIG_Py_Void();
13949}
13950
13951SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13952 return SWIG_Python_InitShadowInstance(args);
13953}
13954
13955SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13956 PyObject *resultobj = 0;
13957 int arg1 ;
13958 wxMouseEvent *arg2 = 0 ;
13959 long arg3 ;
13960 long arg4 ;
13961 wxTextUrlEvent *result = 0 ;
13962 int val1 ;
13963 int ecode1 = 0 ;
13964 void *argp2 = 0 ;
13965 int res2 = 0 ;
13966 long val3 ;
13967 int ecode3 = 0 ;
13968 long val4 ;
13969 int ecode4 = 0 ;
13970 PyObject * obj0 = 0 ;
13971 PyObject * obj1 = 0 ;
13972 PyObject * obj2 = 0 ;
13973 PyObject * obj3 = 0 ;
13974 char * kwnames[] = {
13975 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13976 };
13977
13978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13979 ecode1 = SWIG_AsVal_int(obj0, &val1);
13980 if (!SWIG_IsOK(ecode1)) {
13981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13982 }
13983 arg1 = static_cast< int >(val1);
13984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13985 if (!SWIG_IsOK(res2)) {
13986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13987 }
13988 if (!argp2) {
13989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13990 }
13991 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13992 ecode3 = SWIG_AsVal_long(obj2, &val3);
13993 if (!SWIG_IsOK(ecode3)) {
13994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13995 }
13996 arg3 = static_cast< long >(val3);
13997 ecode4 = SWIG_AsVal_long(obj3, &val4);
13998 if (!SWIG_IsOK(ecode4)) {
13999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14000 }
14001 arg4 = static_cast< long >(val4);
14002 {
14003 PyThreadState* __tstate = wxPyBeginAllowThreads();
14004 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14005 wxPyEndAllowThreads(__tstate);
14006 if (PyErr_Occurred()) SWIG_fail;
14007 }
14008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14009 return resultobj;
14010fail:
14011 return NULL;
d14a1e28
RD
14012}
14013
14014
0085ce49
RD
14015SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14016 PyObject *resultobj = 0;
14017 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14018 wxMouseEvent *result = 0 ;
14019 void *argp1 = 0 ;
14020 int res1 = 0 ;
14021 PyObject *swig_obj[1] ;
14022
14023 if (!args) SWIG_fail;
14024 swig_obj[0] = args;
14025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14026 if (!SWIG_IsOK(res1)) {
14027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14028 }
14029 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14030 {
14031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 14032 {
0085ce49
RD
14033 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14034 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 14035 }
0085ce49
RD
14036 wxPyEndAllowThreads(__tstate);
14037 if (PyErr_Occurred()) SWIG_fail;
14038 }
14039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14040 return resultobj;
14041fail:
14042 return NULL;
d14a1e28
RD
14043}
14044
14045
0085ce49
RD
14046SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14047 PyObject *resultobj = 0;
14048 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14049 long result;
14050 void *argp1 = 0 ;
14051 int res1 = 0 ;
14052 PyObject *swig_obj[1] ;
14053
14054 if (!args) SWIG_fail;
14055 swig_obj[0] = args;
14056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14057 if (!SWIG_IsOK(res1)) {
14058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14059 }
14060 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14064 wxPyEndAllowThreads(__tstate);
14065 if (PyErr_Occurred()) SWIG_fail;
14066 }
14067 resultobj = SWIG_From_long(static_cast< long >(result));
14068 return resultobj;
14069fail:
14070 return NULL;
d14a1e28
RD
14071}
14072
14073
0085ce49
RD
14074SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14075 PyObject *resultobj = 0;
14076 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14077 long result;
14078 void *argp1 = 0 ;
14079 int res1 = 0 ;
14080 PyObject *swig_obj[1] ;
14081
14082 if (!args) SWIG_fail;
14083 swig_obj[0] = args;
14084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14085 if (!SWIG_IsOK(res1)) {
14086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14087 }
14088 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14089 {
14090 PyThreadState* __tstate = wxPyBeginAllowThreads();
14091 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 resultobj = SWIG_From_long(static_cast< long >(result));
14096 return resultobj;
14097fail:
14098 return NULL;
d14a1e28
RD
14099}
14100
14101
0085ce49
RD
14102SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14103 PyObject *obj;
14104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14105 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14106 return SWIG_Py_Void();
d14a1e28
RD
14107}
14108
0085ce49
RD
14109SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14110 return SWIG_Python_InitShadowInstance(args);
14111}
d14a1e28 14112
0085ce49
RD
14113SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14114 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14115 return 1;
14116}
14117
14118
14119SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14120 PyObject *pyobj = 0;
14121
14122 {
14123#if wxUSE_UNICODE
14124 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14125#else
14126 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14127#endif
14128 }
14129 return pyobj;
14130}
14131
14132
14133SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj = 0;
14135 wxWindow *arg1 = (wxWindow *) 0 ;
14136 int arg2 = (int) -1 ;
14137 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14138 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14139 wxSize const &arg4_defvalue = wxDefaultSize ;
14140 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14141 long arg5 = (long) wxSB_HORIZONTAL ;
14142 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14143 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14144 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14145 wxString *arg7 = (wxString *) &arg7_defvalue ;
14146 wxScrollBar *result = 0 ;
14147 void *argp1 = 0 ;
14148 int res1 = 0 ;
14149 int val2 ;
14150 int ecode2 = 0 ;
14151 wxPoint temp3 ;
14152 wxSize temp4 ;
14153 long val5 ;
14154 int ecode5 = 0 ;
14155 void *argp6 = 0 ;
14156 int res6 = 0 ;
14157 bool temp7 = false ;
14158 PyObject * obj0 = 0 ;
14159 PyObject * obj1 = 0 ;
14160 PyObject * obj2 = 0 ;
14161 PyObject * obj3 = 0 ;
14162 PyObject * obj4 = 0 ;
14163 PyObject * obj5 = 0 ;
14164 PyObject * obj6 = 0 ;
14165 char * kwnames[] = {
14166 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14167 };
14168
14169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14171 if (!SWIG_IsOK(res1)) {
14172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14173 }
14174 arg1 = reinterpret_cast< wxWindow * >(argp1);
14175 if (obj1) {
14176 ecode2 = SWIG_AsVal_int(obj1, &val2);
14177 if (!SWIG_IsOK(ecode2)) {
14178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14179 }
14180 arg2 = static_cast< int >(val2);
14181 }
14182 if (obj2) {
d14a1e28 14183 {
0085ce49
RD
14184 arg3 = &temp3;
14185 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14186 }
0085ce49
RD
14187 }
14188 if (obj3) {
4f89f6a3 14189 {
0085ce49
RD
14190 arg4 = &temp4;
14191 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14192 }
0085ce49
RD
14193 }
14194 if (obj4) {
14195 ecode5 = SWIG_AsVal_long(obj4, &val5);
14196 if (!SWIG_IsOK(ecode5)) {
14197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14198 }
14199 arg5 = static_cast< long >(val5);
14200 }
14201 if (obj5) {
14202 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14203 if (!SWIG_IsOK(res6)) {
14204 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14205 }
14206 if (!argp6) {
14207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14208 }
14209 arg6 = reinterpret_cast< wxValidator * >(argp6);
14210 }
14211 if (obj6) {
14212 {
14213 arg7 = wxString_in_helper(obj6);
14214 if (arg7 == NULL) SWIG_fail;
14215 temp7 = true;
14216 }
14217 }
14218 {
14219 if (!wxPyCheckForApp()) SWIG_fail;
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14226 {
14227 if (temp7)
14228 delete arg7;
14229 }
14230 return resultobj;
14231fail:
14232 {
14233 if (temp7)
14234 delete arg7;
14235 }
14236 return NULL;
d14a1e28
RD
14237}
14238
14239
0085ce49
RD
14240SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14241 PyObject *resultobj = 0;
14242 wxScrollBar *result = 0 ;
14243
14244 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14245 {
14246 if (!wxPyCheckForApp()) SWIG_fail;
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 result = (wxScrollBar *)new wxScrollBar();
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14253 return resultobj;
14254fail:
14255 return NULL;
14256}
14257
14258
14259SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14260 PyObject *resultobj = 0;
14261 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14262 wxWindow *arg2 = (wxWindow *) 0 ;
14263 int arg3 = (int) -1 ;
14264 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14265 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14266 wxSize const &arg5_defvalue = wxDefaultSize ;
14267 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14268 long arg6 = (long) wxSB_HORIZONTAL ;
14269 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14270 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14271 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14272 wxString *arg8 = (wxString *) &arg8_defvalue ;
14273 bool result;
14274 void *argp1 = 0 ;
14275 int res1 = 0 ;
14276 void *argp2 = 0 ;
14277 int res2 = 0 ;
14278 int val3 ;
14279 int ecode3 = 0 ;
14280 wxPoint temp4 ;
14281 wxSize temp5 ;
14282 long val6 ;
14283 int ecode6 = 0 ;
14284 void *argp7 = 0 ;
14285 int res7 = 0 ;
14286 bool temp8 = false ;
14287 PyObject * obj0 = 0 ;
14288 PyObject * obj1 = 0 ;
14289 PyObject * obj2 = 0 ;
14290 PyObject * obj3 = 0 ;
14291 PyObject * obj4 = 0 ;
14292 PyObject * obj5 = 0 ;
14293 PyObject * obj6 = 0 ;
14294 PyObject * obj7 = 0 ;
14295 char * kwnames[] = {
14296 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14297 };
14298
14299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14303 }
14304 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14305 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14306 if (!SWIG_IsOK(res2)) {
14307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14308 }
14309 arg2 = reinterpret_cast< wxWindow * >(argp2);
14310 if (obj2) {
14311 ecode3 = SWIG_AsVal_int(obj2, &val3);
14312 if (!SWIG_IsOK(ecode3)) {
14313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14314 }
14315 arg3 = static_cast< int >(val3);
14316 }
14317 if (obj3) {
093d3ff1 14318 {
0085ce49
RD
14319 arg4 = &temp4;
14320 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14321 }
0085ce49
RD
14322 }
14323 if (obj4) {
d14a1e28 14324 {
0085ce49
RD
14325 arg5 = &temp5;
14326 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14327 }
14328 }
14329 if (obj5) {
14330 ecode6 = SWIG_AsVal_long(obj5, &val6);
14331 if (!SWIG_IsOK(ecode6)) {
14332 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14333 }
14334 arg6 = static_cast< long >(val6);
14335 }
14336 if (obj6) {
14337 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14338 if (!SWIG_IsOK(res7)) {
14339 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14340 }
0085ce49
RD
14341 if (!argp7) {
14342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14343 }
14344 arg7 = reinterpret_cast< wxValidator * >(argp7);
14345 }
14346 if (obj7) {
4f89f6a3 14347 {
0085ce49
RD
14348 arg8 = wxString_in_helper(obj7);
14349 if (arg8 == NULL) SWIG_fail;
14350 temp8 = true;
4f89f6a3 14351 }
0085ce49
RD
14352 }
14353 {
14354 PyThreadState* __tstate = wxPyBeginAllowThreads();
14355 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14356 wxPyEndAllowThreads(__tstate);
14357 if (PyErr_Occurred()) SWIG_fail;
14358 }
14359 {
14360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14361 }
14362 {
14363 if (temp8)
14364 delete arg8;
14365 }
14366 return resultobj;
14367fail:
14368 {
14369 if (temp8)
14370 delete arg8;
14371 }
14372 return NULL;
d14a1e28
RD
14373}
14374
14375
0085ce49
RD
14376SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14377 PyObject *resultobj = 0;
14378 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14379 int result;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 PyObject *swig_obj[1] ;
14383
14384 if (!args) SWIG_fail;
14385 swig_obj[0] = args;
14386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14387 if (!SWIG_IsOK(res1)) {
14388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14389 }
14390 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 resultobj = SWIG_From_int(static_cast< int >(result));
14398 return resultobj;
14399fail:
14400 return NULL;
d14a1e28
RD
14401}
14402
14403
0085ce49
RD
14404SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14405 PyObject *resultobj = 0;
14406 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14407 int result;
14408 void *argp1 = 0 ;
14409 int res1 = 0 ;
14410 PyObject *swig_obj[1] ;
14411
14412 if (!args) SWIG_fail;
14413 swig_obj[0] = args;
14414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14415 if (!SWIG_IsOK(res1)) {
14416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14417 }
14418 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 resultobj = SWIG_From_int(static_cast< int >(result));
14426 return resultobj;
14427fail:
14428 return NULL;
d14a1e28
RD
14429}
14430
14431
0085ce49
RD
14432SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14433 PyObject *resultobj = 0;
14434 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14435 int result;
14436 void *argp1 = 0 ;
14437 int res1 = 0 ;
14438 PyObject *swig_obj[1] ;
14439
14440 if (!args) SWIG_fail;
14441 swig_obj[0] = args;
14442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14443 if (!SWIG_IsOK(res1)) {
14444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14445 }
14446 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14450 wxPyEndAllowThreads(__tstate);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 resultobj = SWIG_From_int(static_cast< int >(result));
14454 return resultobj;
14455fail:
14456 return NULL;
d14a1e28
RD
14457}
14458
14459
0085ce49
RD
14460SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14461 PyObject *resultobj = 0;
14462 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14463 int result;
14464 void *argp1 = 0 ;
14465 int res1 = 0 ;
14466 PyObject *swig_obj[1] ;
14467
14468 if (!args) SWIG_fail;
14469 swig_obj[0] = args;
14470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14471 if (!SWIG_IsOK(res1)) {
14472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14473 }
14474 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14475 {
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (int)((wxScrollBar const *)arg1)->GetRange();
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 resultobj = SWIG_From_int(static_cast< int >(result));
14482 return resultobj;
14483fail:
14484 return NULL;
d14a1e28
RD
14485}
14486
14487
0085ce49
RD
14488SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14489 PyObject *resultobj = 0;
14490 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14491 bool result;
14492 void *argp1 = 0 ;
14493 int res1 = 0 ;
14494 PyObject *swig_obj[1] ;
14495
14496 if (!args) SWIG_fail;
14497 swig_obj[0] = args;
14498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14499 if (!SWIG_IsOK(res1)) {
14500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14501 }
14502 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14503 {
14504 PyThreadState* __tstate = wxPyBeginAllowThreads();
14505 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14506 wxPyEndAllowThreads(__tstate);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 {
14510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14511 }
14512 return resultobj;
14513fail:
14514 return NULL;
14515}
14516
14517
14518SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14519 PyObject *resultobj = 0;
14520 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14521 int arg2 ;
14522 void *argp1 = 0 ;
14523 int res1 = 0 ;
14524 int val2 ;
14525 int ecode2 = 0 ;
14526 PyObject * obj0 = 0 ;
14527 PyObject * obj1 = 0 ;
14528 char * kwnames[] = {
14529 (char *) "self",(char *) "viewStart", NULL
14530 };
14531
14532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14534 if (!SWIG_IsOK(res1)) {
14535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14536 }
14537 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14538 ecode2 = SWIG_AsVal_int(obj1, &val2);
14539 if (!SWIG_IsOK(ecode2)) {
14540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14541 }
14542 arg2 = static_cast< int >(val2);
14543 {
14544 PyThreadState* __tstate = wxPyBeginAllowThreads();
14545 (arg1)->SetThumbPosition(arg2);
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 resultobj = SWIG_Py_Void();
14550 return resultobj;
14551fail:
14552 return NULL;
14553}
14554
14555
14556SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14557 PyObject *resultobj = 0;
14558 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14559 SwigValueWrapper<wxVisualAttributes > result;
14560 int val1 ;
14561 int ecode1 = 0 ;
14562 PyObject * obj0 = 0 ;
14563 char * kwnames[] = {
14564 (char *) "variant", NULL
14565 };
14566
14567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14568 if (obj0) {
14569 ecode1 = SWIG_AsVal_int(obj0, &val1);
14570 if (!SWIG_IsOK(ecode1)) {
14571 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14572 }
14573 arg1 = static_cast< wxWindowVariant >(val1);
14574 }
14575 {
14576 if (!wxPyCheckForApp()) SWIG_fail;
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14579 wxPyEndAllowThreads(__tstate);
14580 if (PyErr_Occurred()) SWIG_fail;
14581 }
14582 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14583 return resultobj;
14584fail:
14585 return NULL;
d14a1e28
RD
14586}
14587
14588
0085ce49
RD
14589SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14590 PyObject *obj;
14591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14592 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14593 return SWIG_Py_Void();
d14a1e28
RD
14594}
14595
0085ce49
RD
14596SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14597 return SWIG_Python_InitShadowInstance(args);
14598}
d14a1e28 14599
0085ce49
RD
14600SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14601 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14602 return 1;
d14a1e28
RD
14603}
14604
14605
0085ce49
RD
14606SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14607 PyObject *pyobj = 0;
14608
14609 {
14610#if wxUSE_UNICODE
14611 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14612#else
14613 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14614#endif
14615 }
14616 return pyobj;
d14a1e28
RD
14617}
14618
14619
0085ce49
RD
14620SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14621 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14622 return 1;
d14a1e28
RD
14623}
14624
14625
0085ce49
RD
14626SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14627 PyObject *pyobj = 0;
14628
14629 {
14630#if wxUSE_UNICODE
14631 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14632#else
14633 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14634#endif
14635 }
14636 return pyobj;
14637}
14638
14639
14640SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14641 PyObject *resultobj = 0;
14642 wxWindow *arg1 = (wxWindow *) 0 ;
14643 int arg2 = (int) -1 ;
14644 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14645 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14646 wxSize const &arg4_defvalue = wxDefaultSize ;
14647 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14648 long arg5 = (long) wxSP_HORIZONTAL ;
14649 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14650 wxString *arg6 = (wxString *) &arg6_defvalue ;
14651 wxSpinButton *result = 0 ;
14652 void *argp1 = 0 ;
14653 int res1 = 0 ;
14654 int val2 ;
14655 int ecode2 = 0 ;
14656 wxPoint temp3 ;
14657 wxSize temp4 ;
14658 long val5 ;
14659 int ecode5 = 0 ;
14660 bool temp6 = false ;
14661 PyObject * obj0 = 0 ;
14662 PyObject * obj1 = 0 ;
14663 PyObject * obj2 = 0 ;
14664 PyObject * obj3 = 0 ;
14665 PyObject * obj4 = 0 ;
14666 PyObject * obj5 = 0 ;
14667 char * kwnames[] = {
14668 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14669 };
14670
14671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14673 if (!SWIG_IsOK(res1)) {
14674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14675 }
14676 arg1 = reinterpret_cast< wxWindow * >(argp1);
14677 if (obj1) {
14678 ecode2 = SWIG_AsVal_int(obj1, &val2);
14679 if (!SWIG_IsOK(ecode2)) {
14680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14681 }
14682 arg2 = static_cast< int >(val2);
14683 }
14684 if (obj2) {
093d3ff1 14685 {
0085ce49
RD
14686 arg3 = &temp3;
14687 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14688 }
0085ce49
RD
14689 }
14690 if (obj3) {
d14a1e28 14691 {
0085ce49
RD
14692 arg4 = &temp4;
14693 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14694 }
0085ce49
RD
14695 }
14696 if (obj4) {
14697 ecode5 = SWIG_AsVal_long(obj4, &val5);
14698 if (!SWIG_IsOK(ecode5)) {
14699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14700 }
14701 arg5 = static_cast< long >(val5);
14702 }
14703 if (obj5) {
d14a1e28 14704 {
0085ce49
RD
14705 arg6 = wxString_in_helper(obj5);
14706 if (arg6 == NULL) SWIG_fail;
14707 temp6 = true;
d14a1e28 14708 }
0085ce49
RD
14709 }
14710 {
14711 if (!wxPyCheckForApp()) SWIG_fail;
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14718 {
14719 if (temp6)
14720 delete arg6;
14721 }
14722 return resultobj;
14723fail:
14724 {
14725 if (temp6)
14726 delete arg6;
14727 }
14728 return NULL;
d14a1e28
RD
14729}
14730
14731
0085ce49
RD
14732SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14733 PyObject *resultobj = 0;
14734 wxSpinButton *result = 0 ;
14735
14736 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14737 {
14738 if (!wxPyCheckForApp()) SWIG_fail;
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = (wxSpinButton *)new wxSpinButton();
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14745 return resultobj;
14746fail:
14747 return NULL;
14748}
14749
14750
14751SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14752 PyObject *resultobj = 0;
14753 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14754 wxWindow *arg2 = (wxWindow *) 0 ;
14755 int arg3 = (int) -1 ;
14756 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14757 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14758 wxSize const &arg5_defvalue = wxDefaultSize ;
14759 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14760 long arg6 = (long) wxSP_HORIZONTAL ;
14761 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14762 wxString *arg7 = (wxString *) &arg7_defvalue ;
14763 bool result;
14764 void *argp1 = 0 ;
14765 int res1 = 0 ;
14766 void *argp2 = 0 ;
14767 int res2 = 0 ;
14768 int val3 ;
14769 int ecode3 = 0 ;
14770 wxPoint temp4 ;
14771 wxSize temp5 ;
14772 long val6 ;
14773 int ecode6 = 0 ;
14774 bool temp7 = false ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 PyObject * obj2 = 0 ;
14778 PyObject * obj3 = 0 ;
14779 PyObject * obj4 = 0 ;
14780 PyObject * obj5 = 0 ;
14781 PyObject * obj6 = 0 ;
14782 char * kwnames[] = {
14783 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14784 };
14785
14786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14788 if (!SWIG_IsOK(res1)) {
14789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14790 }
14791 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14792 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14793 if (!SWIG_IsOK(res2)) {
14794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14795 }
14796 arg2 = reinterpret_cast< wxWindow * >(argp2);
14797 if (obj2) {
14798 ecode3 = SWIG_AsVal_int(obj2, &val3);
14799 if (!SWIG_IsOK(ecode3)) {
14800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14801 }
14802 arg3 = static_cast< int >(val3);
14803 }
14804 if (obj3) {
d14a1e28 14805 {
0085ce49
RD
14806 arg4 = &temp4;
14807 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14808 }
0085ce49
RD
14809 }
14810 if (obj4) {
d14a1e28 14811 {
0085ce49
RD
14812 arg5 = &temp5;
14813 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14814 }
0085ce49
RD
14815 }
14816 if (obj5) {
14817 ecode6 = SWIG_AsVal_long(obj5, &val6);
14818 if (!SWIG_IsOK(ecode6)) {
14819 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14820 }
14821 arg6 = static_cast< long >(val6);
14822 }
14823 if (obj6) {
d14a1e28 14824 {
0085ce49
RD
14825 arg7 = wxString_in_helper(obj6);
14826 if (arg7 == NULL) SWIG_fail;
14827 temp7 = true;
d14a1e28 14828 }
0085ce49
RD
14829 }
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 {
14837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14838 }
14839 {
14840 if (temp7)
14841 delete arg7;
14842 }
14843 return resultobj;
14844fail:
14845 {
14846 if (temp7)
14847 delete arg7;
14848 }
14849 return NULL;
d14a1e28
RD
14850}
14851
14852
0085ce49
RD
14853SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14854 PyObject *resultobj = 0;
14855 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14856 int result;
14857 void *argp1 = 0 ;
14858 int res1 = 0 ;
14859 PyObject *swig_obj[1] ;
14860
14861 if (!args) SWIG_fail;
14862 swig_obj[0] = args;
14863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14864 if (!SWIG_IsOK(res1)) {
14865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14866 }
14867 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (int)((wxSpinButton const *)arg1)->GetValue();
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 resultobj = SWIG_From_int(static_cast< int >(result));
14875 return resultobj;
14876fail:
14877 return NULL;
d14a1e28
RD
14878}
14879
14880
0085ce49
RD
14881SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14882 PyObject *resultobj = 0;
14883 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14884 int result;
14885 void *argp1 = 0 ;
14886 int res1 = 0 ;
14887 PyObject *swig_obj[1] ;
14888
14889 if (!args) SWIG_fail;
14890 swig_obj[0] = args;
14891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14892 if (!SWIG_IsOK(res1)) {
14893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14894 }
14895 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14896 {
14897 PyThreadState* __tstate = wxPyBeginAllowThreads();
14898 result = (int)((wxSpinButton const *)arg1)->GetMin();
14899 wxPyEndAllowThreads(__tstate);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 }
14902 resultobj = SWIG_From_int(static_cast< int >(result));
14903 return resultobj;
14904fail:
14905 return NULL;
d14a1e28
RD
14906}
14907
14908
0085ce49
RD
14909SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14910 PyObject *resultobj = 0;
14911 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14912 int result;
14913 void *argp1 = 0 ;
14914 int res1 = 0 ;
14915 PyObject *swig_obj[1] ;
14916
14917 if (!args) SWIG_fail;
14918 swig_obj[0] = args;
14919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14920 if (!SWIG_IsOK(res1)) {
14921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14922 }
14923 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14924 {
14925 PyThreadState* __tstate = wxPyBeginAllowThreads();
14926 result = (int)((wxSpinButton const *)arg1)->GetMax();
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 resultobj = SWIG_From_int(static_cast< int >(result));
14931 return resultobj;
14932fail:
14933 return NULL;
14934}
14935
14936
14937SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj = 0;
14939 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14940 int arg2 ;
14941 void *argp1 = 0 ;
14942 int res1 = 0 ;
14943 int val2 ;
14944 int ecode2 = 0 ;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947 char * kwnames[] = {
14948 (char *) "self",(char *) "val", NULL
14949 };
14950
14951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14953 if (!SWIG_IsOK(res1)) {
14954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14955 }
14956 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14957 ecode2 = SWIG_AsVal_int(obj1, &val2);
14958 if (!SWIG_IsOK(ecode2)) {
14959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14960 }
14961 arg2 = static_cast< int >(val2);
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 (arg1)->SetValue(arg2);
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 resultobj = SWIG_Py_Void();
14969 return resultobj;
14970fail:
14971 return NULL;
14972}
14973
14974
14975SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj = 0;
14977 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14978 int arg2 ;
14979 void *argp1 = 0 ;
14980 int res1 = 0 ;
14981 int val2 ;
14982 int ecode2 = 0 ;
14983 PyObject * obj0 = 0 ;
14984 PyObject * obj1 = 0 ;
14985 char * kwnames[] = {
14986 (char *) "self",(char *) "minVal", NULL
14987 };
14988
14989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14991 if (!SWIG_IsOK(res1)) {
14992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14993 }
14994 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14995 ecode2 = SWIG_AsVal_int(obj1, &val2);
14996 if (!SWIG_IsOK(ecode2)) {
14997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14998 }
14999 arg2 = static_cast< int >(val2);
15000 {
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 (arg1)->SetMin(arg2);
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 resultobj = SWIG_Py_Void();
15007 return resultobj;
15008fail:
15009 return NULL;
15010}
15011
15012
15013SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj = 0;
15015 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15016 int arg2 ;
15017 void *argp1 = 0 ;
15018 int res1 = 0 ;
15019 int val2 ;
15020 int ecode2 = 0 ;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 char * kwnames[] = {
15024 (char *) "self",(char *) "maxVal", NULL
15025 };
15026
15027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15029 if (!SWIG_IsOK(res1)) {
15030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15031 }
15032 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15033 ecode2 = SWIG_AsVal_int(obj1, &val2);
15034 if (!SWIG_IsOK(ecode2)) {
15035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15036 }
15037 arg2 = static_cast< int >(val2);
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 (arg1)->SetMax(arg2);
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = SWIG_Py_Void();
15045 return resultobj;
15046fail:
15047 return NULL;
15048}
15049
15050
15051SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj = 0;
15053 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15054 int arg2 ;
15055 int arg3 ;
15056 void *argp1 = 0 ;
15057 int res1 = 0 ;
15058 int val2 ;
15059 int ecode2 = 0 ;
15060 int val3 ;
15061 int ecode3 = 0 ;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 PyObject * obj2 = 0 ;
15065 char * kwnames[] = {
15066 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15067 };
15068
15069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15071 if (!SWIG_IsOK(res1)) {
15072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15073 }
15074 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15075 ecode2 = SWIG_AsVal_int(obj1, &val2);
15076 if (!SWIG_IsOK(ecode2)) {
15077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15078 }
15079 arg2 = static_cast< int >(val2);
15080 ecode3 = SWIG_AsVal_int(obj2, &val3);
15081 if (!SWIG_IsOK(ecode3)) {
15082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15083 }
15084 arg3 = static_cast< int >(val3);
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 (arg1)->SetRange(arg2,arg3);
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 resultobj = SWIG_Py_Void();
15092 return resultobj;
15093fail:
15094 return NULL;
d14a1e28
RD
15095}
15096
15097
0085ce49
RD
15098SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15099 PyObject *resultobj = 0;
15100 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15101 bool result;
15102 void *argp1 = 0 ;
15103 int res1 = 0 ;
15104 PyObject *swig_obj[1] ;
15105
15106 if (!args) SWIG_fail;
15107 swig_obj[0] = args;
15108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15109 if (!SWIG_IsOK(res1)) {
15110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15111 }
15112 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15113 {
15114 PyThreadState* __tstate = wxPyBeginAllowThreads();
15115 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15116 wxPyEndAllowThreads(__tstate);
15117 if (PyErr_Occurred()) SWIG_fail;
15118 }
15119 {
15120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15121 }
15122 return resultobj;
15123fail:
15124 return NULL;
d14a1e28
RD
15125}
15126
15127
0085ce49
RD
15128SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15129 PyObject *resultobj = 0;
15130 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15131 SwigValueWrapper<wxVisualAttributes > result;
15132 int val1 ;
15133 int ecode1 = 0 ;
15134 PyObject * obj0 = 0 ;
15135 char * kwnames[] = {
15136 (char *) "variant", NULL
15137 };
15138
15139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15140 if (obj0) {
15141 ecode1 = SWIG_AsVal_int(obj0, &val1);
15142 if (!SWIG_IsOK(ecode1)) {
15143 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15144 }
15145 arg1 = static_cast< wxWindowVariant >(val1);
15146 }
15147 {
15148 if (!wxPyCheckForApp()) SWIG_fail;
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15155 return resultobj;
15156fail:
15157 return NULL;
15158}
15159
15160
15161SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15162 PyObject *obj;
15163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15164 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15165 return SWIG_Py_Void();
15166}
15167
15168SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15169 return SWIG_Python_InitShadowInstance(args);
15170}
15171
15172SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15173 PyObject *resultobj = 0;
15174 wxWindow *arg1 = (wxWindow *) 0 ;
15175 int arg2 = (int) -1 ;
15176 wxString const &arg3_defvalue = wxPyEmptyString ;
15177 wxString *arg3 = (wxString *) &arg3_defvalue ;
15178 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15179 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15180 wxSize const &arg5_defvalue = wxDefaultSize ;
15181 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15182 long arg6 = (long) wxSP_ARROW_KEYS ;
15183 int arg7 = (int) 0 ;
15184 int arg8 = (int) 100 ;
15185 int arg9 = (int) 0 ;
15186 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15187 wxString *arg10 = (wxString *) &arg10_defvalue ;
15188 wxSpinCtrl *result = 0 ;
15189 void *argp1 = 0 ;
15190 int res1 = 0 ;
15191 int val2 ;
15192 int ecode2 = 0 ;
15193 bool temp3 = false ;
15194 wxPoint temp4 ;
15195 wxSize temp5 ;
15196 long val6 ;
15197 int ecode6 = 0 ;
15198 int val7 ;
15199 int ecode7 = 0 ;
15200 int val8 ;
15201 int ecode8 = 0 ;
15202 int val9 ;
15203 int ecode9 = 0 ;
15204 bool temp10 = false ;
15205 PyObject * obj0 = 0 ;
15206 PyObject * obj1 = 0 ;
15207 PyObject * obj2 = 0 ;
15208 PyObject * obj3 = 0 ;
15209 PyObject * obj4 = 0 ;
15210 PyObject * obj5 = 0 ;
15211 PyObject * obj6 = 0 ;
15212 PyObject * obj7 = 0 ;
15213 PyObject * obj8 = 0 ;
15214 PyObject * obj9 = 0 ;
15215 char * kwnames[] = {
15216 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15217 };
15218
15219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15221 if (!SWIG_IsOK(res1)) {
15222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15223 }
15224 arg1 = reinterpret_cast< wxWindow * >(argp1);
15225 if (obj1) {
15226 ecode2 = SWIG_AsVal_int(obj1, &val2);
15227 if (!SWIG_IsOK(ecode2)) {
15228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15229 }
15230 arg2 = static_cast< int >(val2);
15231 }
15232 if (obj2) {
093d3ff1 15233 {
0085ce49
RD
15234 arg3 = wxString_in_helper(obj2);
15235 if (arg3 == NULL) SWIG_fail;
15236 temp3 = true;
093d3ff1 15237 }
0085ce49
RD
15238 }
15239 if (obj3) {
093d3ff1 15240 {
0085ce49
RD
15241 arg4 = &temp4;
15242 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15243 }
0085ce49
RD
15244 }
15245 if (obj4) {
d14a1e28 15246 {
0085ce49
RD
15247 arg5 = &temp5;
15248 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15249 }
0085ce49
RD
15250 }
15251 if (obj5) {
15252 ecode6 = SWIG_AsVal_long(obj5, &val6);
15253 if (!SWIG_IsOK(ecode6)) {
15254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15255 }
15256 arg6 = static_cast< long >(val6);
15257 }
15258 if (obj6) {
15259 ecode7 = SWIG_AsVal_int(obj6, &val7);
15260 if (!SWIG_IsOK(ecode7)) {
15261 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15262 }
15263 arg7 = static_cast< int >(val7);
15264 }
15265 if (obj7) {
15266 ecode8 = SWIG_AsVal_int(obj7, &val8);
15267 if (!SWIG_IsOK(ecode8)) {
15268 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15269 }
15270 arg8 = static_cast< int >(val8);
15271 }
15272 if (obj8) {
15273 ecode9 = SWIG_AsVal_int(obj8, &val9);
15274 if (!SWIG_IsOK(ecode9)) {
15275 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15276 }
15277 arg9 = static_cast< int >(val9);
15278 }
15279 if (obj9) {
d14a1e28 15280 {
0085ce49
RD
15281 arg10 = wxString_in_helper(obj9);
15282 if (arg10 == NULL) SWIG_fail;
15283 temp10 = true;
d14a1e28 15284 }
0085ce49
RD
15285 }
15286 {
15287 if (!wxPyCheckForApp()) SWIG_fail;
15288 PyThreadState* __tstate = wxPyBeginAllowThreads();
15289 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15294 {
15295 if (temp3)
15296 delete arg3;
15297 }
15298 {
15299 if (temp10)
15300 delete arg10;
15301 }
15302 return resultobj;
15303fail:
15304 {
15305 if (temp3)
15306 delete arg3;
15307 }
15308 {
15309 if (temp10)
15310 delete arg10;
15311 }
15312 return NULL;
d14a1e28
RD
15313}
15314
15315
0085ce49
RD
15316SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15317 PyObject *resultobj = 0;
15318 wxSpinCtrl *result = 0 ;
15319
15320 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15321 {
15322 if (!wxPyCheckForApp()) SWIG_fail;
15323 PyThreadState* __tstate = wxPyBeginAllowThreads();
15324 result = (wxSpinCtrl *)new wxSpinCtrl();
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15329 return resultobj;
15330fail:
15331 return NULL;
15332}
15333
15334
15335SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj = 0;
15337 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15338 wxWindow *arg2 = (wxWindow *) 0 ;
15339 int arg3 = (int) -1 ;
15340 wxString const &arg4_defvalue = wxPyEmptyString ;
15341 wxString *arg4 = (wxString *) &arg4_defvalue ;
15342 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15343 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15344 wxSize const &arg6_defvalue = wxDefaultSize ;
15345 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15346 long arg7 = (long) wxSP_ARROW_KEYS ;
15347 int arg8 = (int) 0 ;
15348 int arg9 = (int) 100 ;
15349 int arg10 = (int) 0 ;
15350 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15351 wxString *arg11 = (wxString *) &arg11_defvalue ;
15352 bool result;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 void *argp2 = 0 ;
15356 int res2 = 0 ;
15357 int val3 ;
15358 int ecode3 = 0 ;
15359 bool temp4 = false ;
15360 wxPoint temp5 ;
15361 wxSize temp6 ;
15362 long val7 ;
15363 int ecode7 = 0 ;
15364 int val8 ;
15365 int ecode8 = 0 ;
15366 int val9 ;
15367 int ecode9 = 0 ;
15368 int val10 ;
15369 int ecode10 = 0 ;
15370 bool temp11 = false ;
15371 PyObject * obj0 = 0 ;
15372 PyObject * obj1 = 0 ;
15373 PyObject * obj2 = 0 ;
15374 PyObject * obj3 = 0 ;
15375 PyObject * obj4 = 0 ;
15376 PyObject * obj5 = 0 ;
15377 PyObject * obj6 = 0 ;
15378 PyObject * obj7 = 0 ;
15379 PyObject * obj8 = 0 ;
15380 PyObject * obj9 = 0 ;
15381 PyObject * obj10 = 0 ;
15382 char * kwnames[] = {
15383 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15384 };
15385
15386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15390 }
15391 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15392 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15393 if (!SWIG_IsOK(res2)) {
15394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15395 }
15396 arg2 = reinterpret_cast< wxWindow * >(argp2);
15397 if (obj2) {
15398 ecode3 = SWIG_AsVal_int(obj2, &val3);
15399 if (!SWIG_IsOK(ecode3)) {
15400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15401 }
15402 arg3 = static_cast< int >(val3);
15403 }
15404 if (obj3) {
093d3ff1 15405 {
0085ce49
RD
15406 arg4 = wxString_in_helper(obj3);
15407 if (arg4 == NULL) SWIG_fail;
15408 temp4 = true;
093d3ff1 15409 }
0085ce49
RD
15410 }
15411 if (obj4) {
d14a1e28 15412 {
0085ce49
RD
15413 arg5 = &temp5;
15414 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15415 }
0085ce49
RD
15416 }
15417 if (obj5) {
093d3ff1 15418 {
0085ce49
RD
15419 arg6 = &temp6;
15420 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15421 }
0085ce49
RD
15422 }
15423 if (obj6) {
15424 ecode7 = SWIG_AsVal_long(obj6, &val7);
15425 if (!SWIG_IsOK(ecode7)) {
15426 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15427 }
15428 arg7 = static_cast< long >(val7);
15429 }
15430 if (obj7) {
15431 ecode8 = SWIG_AsVal_int(obj7, &val8);
15432 if (!SWIG_IsOK(ecode8)) {
15433 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15434 }
15435 arg8 = static_cast< int >(val8);
15436 }
15437 if (obj8) {
15438 ecode9 = SWIG_AsVal_int(obj8, &val9);
15439 if (!SWIG_IsOK(ecode9)) {
15440 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15441 }
15442 arg9 = static_cast< int >(val9);
15443 }
15444 if (obj9) {
15445 ecode10 = SWIG_AsVal_int(obj9, &val10);
15446 if (!SWIG_IsOK(ecode10)) {
15447 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15448 }
15449 arg10 = static_cast< int >(val10);
15450 }
15451 if (obj10) {
d14a1e28 15452 {
0085ce49
RD
15453 arg11 = wxString_in_helper(obj10);
15454 if (arg11 == NULL) SWIG_fail;
15455 temp11 = true;
d14a1e28 15456 }
0085ce49
RD
15457 }
15458 {
15459 PyThreadState* __tstate = wxPyBeginAllowThreads();
15460 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15461 wxPyEndAllowThreads(__tstate);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
15464 {
15465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15466 }
15467 {
15468 if (temp4)
15469 delete arg4;
15470 }
15471 {
15472 if (temp11)
15473 delete arg11;
15474 }
15475 return resultobj;
15476fail:
15477 {
15478 if (temp4)
15479 delete arg4;
15480 }
15481 {
15482 if (temp11)
15483 delete arg11;
15484 }
15485 return NULL;
d14a1e28
RD
15486}
15487
15488
0085ce49
RD
15489SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15490 PyObject *resultobj = 0;
15491 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15492 int result;
15493 void *argp1 = 0 ;
15494 int res1 = 0 ;
15495 PyObject *swig_obj[1] ;
15496
15497 if (!args) SWIG_fail;
15498 swig_obj[0] = args;
15499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15500 if (!SWIG_IsOK(res1)) {
15501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15502 }
15503 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 resultobj = SWIG_From_int(static_cast< int >(result));
15511 return resultobj;
15512fail:
15513 return NULL;
15514}
15515
15516
15517SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15518 PyObject *resultobj = 0;
15519 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15520 int arg2 ;
15521 void *argp1 = 0 ;
15522 int res1 = 0 ;
15523 int val2 ;
15524 int ecode2 = 0 ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 char * kwnames[] = {
15528 (char *) "self",(char *) "value", NULL
15529 };
15530
15531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15533 if (!SWIG_IsOK(res1)) {
15534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15535 }
15536 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15537 ecode2 = SWIG_AsVal_int(obj1, &val2);
15538 if (!SWIG_IsOK(ecode2)) {
15539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15540 }
15541 arg2 = static_cast< int >(val2);
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 (arg1)->SetValue(arg2);
15545 wxPyEndAllowThreads(__tstate);
15546 if (PyErr_Occurred()) SWIG_fail;
15547 }
15548 resultobj = SWIG_Py_Void();
15549 return resultobj;
15550fail:
15551 return NULL;
15552}
15553
15554
15555SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15556 PyObject *resultobj = 0;
15557 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15558 wxString *arg2 = 0 ;
15559 void *argp1 = 0 ;
15560 int res1 = 0 ;
15561 bool temp2 = false ;
15562 PyObject * obj0 = 0 ;
15563 PyObject * obj1 = 0 ;
15564 char * kwnames[] = {
15565 (char *) "self",(char *) "text", NULL
15566 };
15567
15568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15570 if (!SWIG_IsOK(res1)) {
15571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15572 }
15573 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15574 {
15575 arg2 = wxString_in_helper(obj1);
15576 if (arg2 == NULL) SWIG_fail;
15577 temp2 = true;
15578 }
15579 {
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 (arg1)->SetValue((wxString const &)*arg2);
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 resultobj = SWIG_Py_Void();
15586 {
15587 if (temp2)
15588 delete arg2;
15589 }
15590 return resultobj;
15591fail:
15592 {
15593 if (temp2)
15594 delete arg2;
15595 }
15596 return NULL;
15597}
15598
15599
15600SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj = 0;
15602 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15603 int arg2 ;
15604 int arg3 ;
15605 void *argp1 = 0 ;
15606 int res1 = 0 ;
15607 int val2 ;
15608 int ecode2 = 0 ;
15609 int val3 ;
15610 int ecode3 = 0 ;
15611 PyObject * obj0 = 0 ;
15612 PyObject * obj1 = 0 ;
15613 PyObject * obj2 = 0 ;
15614 char * kwnames[] = {
15615 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15616 };
15617
15618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15620 if (!SWIG_IsOK(res1)) {
15621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15622 }
15623 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15624 ecode2 = SWIG_AsVal_int(obj1, &val2);
15625 if (!SWIG_IsOK(ecode2)) {
15626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15627 }
15628 arg2 = static_cast< int >(val2);
15629 ecode3 = SWIG_AsVal_int(obj2, &val3);
15630 if (!SWIG_IsOK(ecode3)) {
15631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15632 }
15633 arg3 = static_cast< int >(val3);
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 (arg1)->SetRange(arg2,arg3);
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 resultobj = SWIG_Py_Void();
15641 return resultobj;
15642fail:
15643 return NULL;
d14a1e28
RD
15644}
15645
15646
0085ce49
RD
15647SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15648 PyObject *resultobj = 0;
15649 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15650 int result;
15651 void *argp1 = 0 ;
15652 int res1 = 0 ;
15653 PyObject *swig_obj[1] ;
15654
15655 if (!args) SWIG_fail;
15656 swig_obj[0] = args;
15657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15658 if (!SWIG_IsOK(res1)) {
15659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15660 }
15661 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 resultobj = SWIG_From_int(static_cast< int >(result));
15669 return resultobj;
15670fail:
15671 return NULL;
d14a1e28
RD
15672}
15673
15674
0085ce49
RD
15675SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15676 PyObject *resultobj = 0;
15677 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15678 int result;
15679 void *argp1 = 0 ;
15680 int res1 = 0 ;
15681 PyObject *swig_obj[1] ;
15682
15683 if (!args) SWIG_fail;
15684 swig_obj[0] = args;
15685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15686 if (!SWIG_IsOK(res1)) {
15687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15688 }
15689 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 resultobj = SWIG_From_int(static_cast< int >(result));
15697 return resultobj;
15698fail:
15699 return NULL;
15700}
15701
15702
15703SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15706 long arg2 ;
15707 long arg3 ;
15708 void *argp1 = 0 ;
15709 int res1 = 0 ;
15710 long val2 ;
15711 int ecode2 = 0 ;
15712 long val3 ;
15713 int ecode3 = 0 ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 PyObject * obj2 = 0 ;
15717 char * kwnames[] = {
2131d850 15718 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
15719 };
15720
15721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15723 if (!SWIG_IsOK(res1)) {
15724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15725 }
15726 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15727 ecode2 = SWIG_AsVal_long(obj1, &val2);
15728 if (!SWIG_IsOK(ecode2)) {
15729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15730 }
15731 arg2 = static_cast< long >(val2);
15732 ecode3 = SWIG_AsVal_long(obj2, &val3);
15733 if (!SWIG_IsOK(ecode3)) {
15734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15735 }
15736 arg3 = static_cast< long >(val3);
15737 {
15738 PyThreadState* __tstate = wxPyBeginAllowThreads();
15739 (arg1)->SetSelection(arg2,arg3);
15740 wxPyEndAllowThreads(__tstate);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 resultobj = SWIG_Py_Void();
15744 return resultobj;
15745fail:
15746 return NULL;
15747}
15748
15749
15750SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15751 PyObject *resultobj = 0;
15752 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15753 SwigValueWrapper<wxVisualAttributes > result;
15754 int val1 ;
15755 int ecode1 = 0 ;
15756 PyObject * obj0 = 0 ;
15757 char * kwnames[] = {
15758 (char *) "variant", NULL
15759 };
15760
15761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15762 if (obj0) {
15763 ecode1 = SWIG_AsVal_int(obj0, &val1);
15764 if (!SWIG_IsOK(ecode1)) {
15765 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15766 }
15767 arg1 = static_cast< wxWindowVariant >(val1);
15768 }
15769 {
15770 if (!wxPyCheckForApp()) SWIG_fail;
15771 PyThreadState* __tstate = wxPyBeginAllowThreads();
15772 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15773 wxPyEndAllowThreads(__tstate);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15777 return resultobj;
15778fail:
15779 return NULL;
d14a1e28
RD
15780}
15781
15782
0085ce49
RD
15783SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15784 PyObject *obj;
15785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15786 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15787 return SWIG_Py_Void();
d14a1e28
RD
15788}
15789
0085ce49
RD
15790SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15791 return SWIG_Python_InitShadowInstance(args);
15792}
d14a1e28 15793
0085ce49
RD
15794SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15795 PyObject *resultobj = 0;
15796 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15797 int arg2 = (int) 0 ;
15798 wxSpinEvent *result = 0 ;
15799 int val1 ;
15800 int ecode1 = 0 ;
15801 int val2 ;
15802 int ecode2 = 0 ;
15803 PyObject * obj0 = 0 ;
15804 PyObject * obj1 = 0 ;
15805 char * kwnames[] = {
15806 (char *) "commandType",(char *) "winid", NULL
15807 };
15808
15809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15810 if (obj0) {
15811 ecode1 = SWIG_AsVal_int(obj0, &val1);
15812 if (!SWIG_IsOK(ecode1)) {
15813 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15814 }
15815 arg1 = static_cast< wxEventType >(val1);
15816 }
15817 if (obj1) {
15818 ecode2 = SWIG_AsVal_int(obj1, &val2);
15819 if (!SWIG_IsOK(ecode2)) {
15820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15821 }
15822 arg2 = static_cast< int >(val2);
15823 }
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15827 wxPyEndAllowThreads(__tstate);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15831 return resultobj;
15832fail:
15833 return NULL;
d14a1e28
RD
15834}
15835
15836
0085ce49
RD
15837SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15838 PyObject *resultobj = 0;
15839 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15840 int result;
15841 void *argp1 = 0 ;
15842 int res1 = 0 ;
15843 PyObject *swig_obj[1] ;
15844
15845 if (!args) SWIG_fail;
15846 swig_obj[0] = args;
15847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15848 if (!SWIG_IsOK(res1)) {
15849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15850 }
15851 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 resultobj = SWIG_From_int(static_cast< int >(result));
15859 return resultobj;
15860fail:
15861 return NULL;
15862}
15863
15864
15865SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15866 PyObject *resultobj = 0;
15867 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15868 int arg2 ;
15869 void *argp1 = 0 ;
15870 int res1 = 0 ;
15871 int val2 ;
15872 int ecode2 = 0 ;
15873 PyObject * obj0 = 0 ;
15874 PyObject * obj1 = 0 ;
15875 char * kwnames[] = {
15876 (char *) "self",(char *) "pos", NULL
15877 };
15878
15879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15881 if (!SWIG_IsOK(res1)) {
15882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15883 }
15884 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15885 ecode2 = SWIG_AsVal_int(obj1, &val2);
15886 if (!SWIG_IsOK(ecode2)) {
15887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15888 }
15889 arg2 = static_cast< int >(val2);
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 (arg1)->SetPosition(arg2);
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 resultobj = SWIG_Py_Void();
15897 return resultobj;
15898fail:
15899 return NULL;
d14a1e28
RD
15900}
15901
15902
0085ce49
RD
15903SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15904 PyObject *obj;
15905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15906 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15907 return SWIG_Py_Void();
15908}
15909
15910SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15911 return SWIG_Python_InitShadowInstance(args);
15912}
15913
15914SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15915 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15916 return 1;
15917}
15918
15919
15920SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15921 PyObject *pyobj = 0;
15922
15923 {
d14a1e28 15924#if wxUSE_UNICODE
0085ce49 15925 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15926#else
0085ce49 15927 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15928#endif
0085ce49
RD
15929 }
15930 return pyobj;
d14a1e28
RD
15931}
15932
15933
0085ce49
RD
15934SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15935 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15936 return 1;
d14a1e28
RD
15937}
15938
15939
0085ce49
RD
15940SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15941 PyObject *pyobj = 0;
15942
15943 {
15944#if wxUSE_UNICODE
15945 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15946#else
15947 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15948#endif
15949 }
15950 return pyobj;
15951}
15952
15953
15954SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15955 PyObject *resultobj = 0;
15956 wxWindow *arg1 = (wxWindow *) 0 ;
15957 int arg2 = (int) -1 ;
15958 wxString const &arg3_defvalue = wxPyEmptyString ;
15959 wxString *arg3 = (wxString *) &arg3_defvalue ;
15960 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15961 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15962 wxSize const &arg5_defvalue = wxDefaultSize ;
15963 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15964 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15965 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15966 int arg7 = (int) 0 ;
15967 long arg8 = (long) wxRA_HORIZONTAL ;
15968 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15969 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15970 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15971 wxString *arg10 = (wxString *) &arg10_defvalue ;
15972 wxRadioBox *result = 0 ;
15973 void *argp1 = 0 ;
15974 int res1 = 0 ;
15975 int val2 ;
15976 int ecode2 = 0 ;
15977 bool temp3 = false ;
15978 wxPoint temp4 ;
15979 wxSize temp5 ;
15980 bool temp6 = false ;
15981 int val7 ;
15982 int ecode7 = 0 ;
15983 long val8 ;
15984 int ecode8 = 0 ;
15985 void *argp9 = 0 ;
15986 int res9 = 0 ;
15987 bool temp10 = false ;
15988 PyObject * obj0 = 0 ;
15989 PyObject * obj1 = 0 ;
15990 PyObject * obj2 = 0 ;
15991 PyObject * obj3 = 0 ;
15992 PyObject * obj4 = 0 ;
15993 PyObject * obj5 = 0 ;
15994 PyObject * obj6 = 0 ;
15995 PyObject * obj7 = 0 ;
15996 PyObject * obj8 = 0 ;
15997 PyObject * obj9 = 0 ;
15998 char * kwnames[] = {
15999 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16000 };
16001
16002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16004 if (!SWIG_IsOK(res1)) {
16005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16006 }
16007 arg1 = reinterpret_cast< wxWindow * >(argp1);
16008 if (obj1) {
16009 ecode2 = SWIG_AsVal_int(obj1, &val2);
16010 if (!SWIG_IsOK(ecode2)) {
16011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16012 }
16013 arg2 = static_cast< int >(val2);
16014 }
16015 if (obj2) {
093d3ff1 16016 {
0085ce49
RD
16017 arg3 = wxString_in_helper(obj2);
16018 if (arg3 == NULL) SWIG_fail;
16019 temp3 = true;
093d3ff1 16020 }
0085ce49
RD
16021 }
16022 if (obj3) {
093d3ff1 16023 {
0085ce49
RD
16024 arg4 = &temp4;
16025 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 16026 }
0085ce49
RD
16027 }
16028 if (obj4) {
d14a1e28 16029 {
0085ce49
RD
16030 arg5 = &temp5;
16031 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16032 }
0085ce49
RD
16033 }
16034 if (obj5) {
d14a1e28 16035 {
0085ce49
RD
16036 if (! PySequence_Check(obj5)) {
16037 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16038 SWIG_fail;
16039 }
16040 arg6 = new wxArrayString;
16041 temp6 = true;
16042 int i, len=PySequence_Length(obj5);
16043 for (i=0; i<len; i++) {
16044 PyObject* item = PySequence_GetItem(obj5, i);
16045 wxString* s = wxString_in_helper(item);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 arg6->Add(*s);
16048 delete s;
16049 Py_DECREF(item);
16050 }
d14a1e28 16051 }
0085ce49
RD
16052 }
16053 if (obj6) {
16054 ecode7 = SWIG_AsVal_int(obj6, &val7);
16055 if (!SWIG_IsOK(ecode7)) {
16056 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16057 }
16058 arg7 = static_cast< int >(val7);
16059 }
16060 if (obj7) {
16061 ecode8 = SWIG_AsVal_long(obj7, &val8);
16062 if (!SWIG_IsOK(ecode8)) {
16063 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16064 }
16065 arg8 = static_cast< long >(val8);
16066 }
16067 if (obj8) {
16068 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16069 if (!SWIG_IsOK(res9)) {
16070 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16071 }
16072 if (!argp9) {
16073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 16074 }
0085ce49
RD
16075 arg9 = reinterpret_cast< wxValidator * >(argp9);
16076 }
16077 if (obj9) {
d14a1e28 16078 {
0085ce49
RD
16079 arg10 = wxString_in_helper(obj9);
16080 if (arg10 == NULL) SWIG_fail;
16081 temp10 = true;
d14a1e28 16082 }
0085ce49
RD
16083 }
16084 {
16085 if (!wxPyCheckForApp()) SWIG_fail;
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 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);
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16092 {
16093 if (temp3)
16094 delete arg3;
16095 }
16096 {
16097 if (temp6) delete arg6;
16098 }
16099 {
16100 if (temp10)
16101 delete arg10;
16102 }
16103 return resultobj;
16104fail:
16105 {
16106 if (temp3)
16107 delete arg3;
16108 }
16109 {
16110 if (temp6) delete arg6;
16111 }
16112 {
16113 if (temp10)
16114 delete arg10;
16115 }
16116 return NULL;
d14a1e28
RD
16117}
16118
16119
0085ce49
RD
16120SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16121 PyObject *resultobj = 0;
16122 wxRadioBox *result = 0 ;
16123
16124 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16125 {
16126 if (!wxPyCheckForApp()) SWIG_fail;
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = (wxRadioBox *)new wxRadioBox();
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16133 return resultobj;
16134fail:
16135 return NULL;
16136}
16137
16138
16139SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16140 PyObject *resultobj = 0;
16141 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16142 wxWindow *arg2 = (wxWindow *) 0 ;
16143 int arg3 = (int) -1 ;
16144 wxString const &arg4_defvalue = wxPyEmptyString ;
16145 wxString *arg4 = (wxString *) &arg4_defvalue ;
16146 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16147 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16148 wxSize const &arg6_defvalue = wxDefaultSize ;
16149 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16150 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16151 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16152 int arg8 = (int) 0 ;
16153 long arg9 = (long) wxRA_HORIZONTAL ;
16154 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16155 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16156 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16157 wxString *arg11 = (wxString *) &arg11_defvalue ;
16158 bool result;
16159 void *argp1 = 0 ;
16160 int res1 = 0 ;
16161 void *argp2 = 0 ;
16162 int res2 = 0 ;
16163 int val3 ;
16164 int ecode3 = 0 ;
16165 bool temp4 = false ;
16166 wxPoint temp5 ;
16167 wxSize temp6 ;
16168 bool temp7 = false ;
16169 int val8 ;
16170 int ecode8 = 0 ;
16171 long val9 ;
16172 int ecode9 = 0 ;
16173 void *argp10 = 0 ;
16174 int res10 = 0 ;
16175 bool temp11 = false ;
16176 PyObject * obj0 = 0 ;
16177 PyObject * obj1 = 0 ;
16178 PyObject * obj2 = 0 ;
16179 PyObject * obj3 = 0 ;
16180 PyObject * obj4 = 0 ;
16181 PyObject * obj5 = 0 ;
16182 PyObject * obj6 = 0 ;
16183 PyObject * obj7 = 0 ;
16184 PyObject * obj8 = 0 ;
16185 PyObject * obj9 = 0 ;
16186 PyObject * obj10 = 0 ;
16187 char * kwnames[] = {
16188 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16189 };
16190
16191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16193 if (!SWIG_IsOK(res1)) {
16194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16195 }
16196 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16198 if (!SWIG_IsOK(res2)) {
16199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16200 }
16201 arg2 = reinterpret_cast< wxWindow * >(argp2);
16202 if (obj2) {
16203 ecode3 = SWIG_AsVal_int(obj2, &val3);
16204 if (!SWIG_IsOK(ecode3)) {
16205 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16206 }
16207 arg3 = static_cast< int >(val3);
16208 }
16209 if (obj3) {
093d3ff1 16210 {
0085ce49
RD
16211 arg4 = wxString_in_helper(obj3);
16212 if (arg4 == NULL) SWIG_fail;
16213 temp4 = true;
093d3ff1 16214 }
0085ce49
RD
16215 }
16216 if (obj4) {
d14a1e28 16217 {
0085ce49
RD
16218 arg5 = &temp5;
16219 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16220 }
0085ce49
RD
16221 }
16222 if (obj5) {
d14a1e28 16223 {
0085ce49
RD
16224 arg6 = &temp6;
16225 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16226 }
0085ce49
RD
16227 }
16228 if (obj6) {
d14a1e28 16229 {
0085ce49
RD
16230 if (! PySequence_Check(obj6)) {
16231 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16232 SWIG_fail;
16233 }
16234 arg7 = new wxArrayString;
16235 temp7 = true;
16236 int i, len=PySequence_Length(obj6);
16237 for (i=0; i<len; i++) {
16238 PyObject* item = PySequence_GetItem(obj6, i);
16239 wxString* s = wxString_in_helper(item);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 arg7->Add(*s);
16242 delete s;
16243 Py_DECREF(item);
16244 }
d14a1e28 16245 }
0085ce49
RD
16246 }
16247 if (obj7) {
16248 ecode8 = SWIG_AsVal_int(obj7, &val8);
16249 if (!SWIG_IsOK(ecode8)) {
16250 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16251 }
16252 arg8 = static_cast< int >(val8);
16253 }
16254 if (obj8) {
16255 ecode9 = SWIG_AsVal_long(obj8, &val9);
16256 if (!SWIG_IsOK(ecode9)) {
16257 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16258 }
16259 arg9 = static_cast< long >(val9);
16260 }
16261 if (obj9) {
16262 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16263 if (!SWIG_IsOK(res10)) {
16264 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16265 }
0085ce49
RD
16266 if (!argp10) {
16267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16268 }
0085ce49
RD
16269 arg10 = reinterpret_cast< wxValidator * >(argp10);
16270 }
16271 if (obj10) {
d14a1e28 16272 {
0085ce49
RD
16273 arg11 = wxString_in_helper(obj10);
16274 if (arg11 == NULL) SWIG_fail;
16275 temp11 = true;
d14a1e28 16276 }
0085ce49
RD
16277 }
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 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);
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 {
16285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16286 }
16287 {
16288 if (temp4)
16289 delete arg4;
16290 }
16291 {
16292 if (temp7) delete arg7;
16293 }
16294 {
16295 if (temp11)
16296 delete arg11;
16297 }
16298 return resultobj;
16299fail:
16300 {
16301 if (temp4)
16302 delete arg4;
16303 }
16304 {
16305 if (temp7) delete arg7;
16306 }
16307 {
16308 if (temp11)
16309 delete arg11;
16310 }
16311 return NULL;
16312}
16313
16314
16315SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16316 PyObject *resultobj = 0;
16317 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16318 int arg2 ;
16319 void *argp1 = 0 ;
16320 int res1 = 0 ;
16321 int val2 ;
16322 int ecode2 = 0 ;
16323 PyObject * obj0 = 0 ;
16324 PyObject * obj1 = 0 ;
16325 char * kwnames[] = {
16326 (char *) "self",(char *) "n", NULL
16327 };
16328
16329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16331 if (!SWIG_IsOK(res1)) {
16332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16333 }
16334 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16335 ecode2 = SWIG_AsVal_int(obj1, &val2);
16336 if (!SWIG_IsOK(ecode2)) {
16337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16338 }
16339 arg2 = static_cast< int >(val2);
16340 {
16341 PyThreadState* __tstate = wxPyBeginAllowThreads();
16342 (arg1)->SetSelection(arg2);
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 resultobj = SWIG_Py_Void();
16347 return resultobj;
16348fail:
16349 return NULL;
d14a1e28
RD
16350}
16351
16352
0085ce49
RD
16353SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16354 PyObject *resultobj = 0;
16355 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16356 int result;
16357 void *argp1 = 0 ;
16358 int res1 = 0 ;
16359 PyObject *swig_obj[1] ;
16360
16361 if (!args) SWIG_fail;
16362 swig_obj[0] = args;
16363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16364 if (!SWIG_IsOK(res1)) {
16365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16366 }
16367 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16368 {
16369 PyThreadState* __tstate = wxPyBeginAllowThreads();
16370 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 resultobj = SWIG_From_int(static_cast< int >(result));
16375 return resultobj;
16376fail:
16377 return NULL;
d14a1e28
RD
16378}
16379
16380
0085ce49
RD
16381SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16382 PyObject *resultobj = 0;
16383 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16384 wxString result;
16385 void *argp1 = 0 ;
16386 int res1 = 0 ;
16387 PyObject *swig_obj[1] ;
16388
16389 if (!args) SWIG_fail;
16390 swig_obj[0] = args;
16391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16392 if (!SWIG_IsOK(res1)) {
16393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16394 }
16395 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 {
16403#if wxUSE_UNICODE
16404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16405#else
16406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16407#endif
16408 }
16409 return resultobj;
16410fail:
16411 return NULL;
16412}
16413
16414
16415SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj = 0;
16417 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16418 wxString *arg2 = 0 ;
16419 bool result;
16420 void *argp1 = 0 ;
16421 int res1 = 0 ;
16422 bool temp2 = false ;
16423 PyObject * obj0 = 0 ;
16424 PyObject * obj1 = 0 ;
16425 char * kwnames[] = {
16426 (char *) "self",(char *) "s", NULL
16427 };
16428
16429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16431 if (!SWIG_IsOK(res1)) {
16432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16433 }
16434 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16435 {
16436 arg2 = wxString_in_helper(obj1);
16437 if (arg2 == NULL) SWIG_fail;
16438 temp2 = true;
16439 }
16440 {
16441 PyThreadState* __tstate = wxPyBeginAllowThreads();
16442 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 {
16447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16448 }
16449 {
16450 if (temp2)
16451 delete arg2;
16452 }
16453 return resultobj;
16454fail:
16455 {
16456 if (temp2)
16457 delete arg2;
16458 }
16459 return NULL;
d14a1e28
RD
16460}
16461
16462
0085ce49
RD
16463SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16464 PyObject *resultobj = 0;
16465 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16466 size_t result;
0085ce49
RD
16467 void *argp1 = 0 ;
16468 int res1 = 0 ;
16469 PyObject *swig_obj[1] ;
16470
16471 if (!args) SWIG_fail;
16472 swig_obj[0] = args;
16473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16474 if (!SWIG_IsOK(res1)) {
16475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16476 }
16477 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16478 {
16479 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16480 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
75219dcb 16484 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16485 return resultobj;
16486fail:
16487 return NULL;
16488}
16489
16490
16491SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16492 PyObject *resultobj = 0;
16493 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16494 wxString *arg2 = 0 ;
16495 int result;
16496 void *argp1 = 0 ;
16497 int res1 = 0 ;
16498 bool temp2 = false ;
16499 PyObject * obj0 = 0 ;
16500 PyObject * obj1 = 0 ;
16501 char * kwnames[] = {
16502 (char *) "self",(char *) "s", NULL
16503 };
16504
16505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16507 if (!SWIG_IsOK(res1)) {
16508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16509 }
16510 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16511 {
16512 arg2 = wxString_in_helper(obj1);
16513 if (arg2 == NULL) SWIG_fail;
16514 temp2 = true;
16515 }
16516 {
16517 PyThreadState* __tstate = wxPyBeginAllowThreads();
16518 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16519 wxPyEndAllowThreads(__tstate);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 resultobj = SWIG_From_int(static_cast< int >(result));
16523 {
16524 if (temp2)
16525 delete arg2;
16526 }
16527 return resultobj;
16528fail:
16529 {
16530 if (temp2)
16531 delete arg2;
16532 }
16533 return NULL;
16534}
16535
16536
16537SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16538 PyObject *resultobj = 0;
16539 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16540 int arg2 ;
16541 wxString result;
16542 void *argp1 = 0 ;
16543 int res1 = 0 ;
16544 int val2 ;
16545 int ecode2 = 0 ;
16546 PyObject * obj0 = 0 ;
16547 PyObject * obj1 = 0 ;
16548 char * kwnames[] = {
16549 (char *) "self",(char *) "n", NULL
16550 };
16551
16552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16554 if (!SWIG_IsOK(res1)) {
16555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16556 }
16557 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16558 ecode2 = SWIG_AsVal_int(obj1, &val2);
16559 if (!SWIG_IsOK(ecode2)) {
16560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16561 }
16562 arg2 = static_cast< int >(val2);
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 {
16570#if wxUSE_UNICODE
16571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16572#else
16573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16574#endif
16575 }
16576 return resultobj;
16577fail:
16578 return NULL;
16579}
16580
16581
16582SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16583 PyObject *resultobj = 0;
16584 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16585 int arg2 ;
16586 wxString *arg3 = 0 ;
16587 void *argp1 = 0 ;
16588 int res1 = 0 ;
16589 int val2 ;
16590 int ecode2 = 0 ;
16591 bool temp3 = false ;
16592 PyObject * obj0 = 0 ;
16593 PyObject * obj1 = 0 ;
16594 PyObject * obj2 = 0 ;
16595 char * kwnames[] = {
16596 (char *) "self",(char *) "n",(char *) "label", NULL
16597 };
16598
16599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16601 if (!SWIG_IsOK(res1)) {
16602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16603 }
16604 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16605 ecode2 = SWIG_AsVal_int(obj1, &val2);
16606 if (!SWIG_IsOK(ecode2)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16608 }
16609 arg2 = static_cast< int >(val2);
16610 {
16611 arg3 = wxString_in_helper(obj2);
16612 if (arg3 == NULL) SWIG_fail;
16613 temp3 = true;
16614 }
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 (arg1)->SetString(arg2,(wxString const &)*arg3);
16618 wxPyEndAllowThreads(__tstate);
16619 if (PyErr_Occurred()) SWIG_fail;
16620 }
16621 resultobj = SWIG_Py_Void();
16622 {
16623 if (temp3)
16624 delete arg3;
16625 }
16626 return resultobj;
16627fail:
16628 {
16629 if (temp3)
16630 delete arg3;
16631 }
16632 return NULL;
16633}
16634
16635
16636SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(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 *) "enable", NULL
16652 };
16653
16654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",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_EnableItem" "', 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_EnableItem" "', 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_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16669 }
16670 arg3 = static_cast< bool >(val3);
16671 }
16672 {
16673 PyThreadState* __tstate = wxPyBeginAllowThreads();
16674 (arg1)->Enable(arg2,arg3);
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 resultobj = SWIG_Py_Void();
16679 return resultobj;
16680fail:
16681 return NULL;
16682}
16683
16684
16685SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj = 0;
16687 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16688 unsigned int arg2 ;
0085ce49
RD
16689 bool arg3 = (bool) true ;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
50f151d7 16692 unsigned int val2 ;
0085ce49
RD
16693 int ecode2 = 0 ;
16694 bool val3 ;
16695 int ecode3 = 0 ;
16696 PyObject * obj0 = 0 ;
16697 PyObject * obj1 = 0 ;
16698 PyObject * obj2 = 0 ;
16699 char * kwnames[] = {
16700 (char *) "self",(char *) "n",(char *) "show", NULL
16701 };
16702
16703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16705 if (!SWIG_IsOK(res1)) {
16706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16707 }
16708 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16709 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16710 if (!SWIG_IsOK(ecode2)) {
50f151d7 16711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16712 }
50f151d7 16713 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16714 if (obj2) {
16715 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16716 if (!SWIG_IsOK(ecode3)) {
16717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16718 }
16719 arg3 = static_cast< bool >(val3);
16720 }
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 (arg1)->Show(arg2,arg3);
16724 wxPyEndAllowThreads(__tstate);
16725 if (PyErr_Occurred()) SWIG_fail;
16726 }
16727 resultobj = SWIG_Py_Void();
16728 return resultobj;
16729fail:
16730 return NULL;
d14a1e28
RD
16731}
16732
16733
50f151d7
RD
16734SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16735 PyObject *resultobj = 0;
16736 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16737 unsigned int arg2 ;
16738 bool result;
16739 void *argp1 = 0 ;
16740 int res1 = 0 ;
16741 unsigned int val2 ;
16742 int ecode2 = 0 ;
16743 PyObject * obj0 = 0 ;
16744 PyObject * obj1 = 0 ;
16745 char * kwnames[] = {
16746 (char *) "self",(char *) "n", NULL
16747 };
16748
16749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16751 if (!SWIG_IsOK(res1)) {
16752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16753 }
16754 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16755 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16756 if (!SWIG_IsOK(ecode2)) {
16757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16758 }
16759 arg2 = static_cast< unsigned int >(val2);
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16763 wxPyEndAllowThreads(__tstate);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 }
16766 {
16767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16768 }
16769 return resultobj;
16770fail:
16771 return NULL;
16772}
16773
16774
16775SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj = 0;
16777 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16778 unsigned int arg2 ;
16779 bool result;
16780 void *argp1 = 0 ;
16781 int res1 = 0 ;
16782 unsigned int val2 ;
16783 int ecode2 = 0 ;
16784 PyObject * obj0 = 0 ;
16785 PyObject * obj1 = 0 ;
16786 char * kwnames[] = {
16787 (char *) "self",(char *) "n", NULL
16788 };
16789
16790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16792 if (!SWIG_IsOK(res1)) {
16793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16794 }
16795 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16796 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16797 if (!SWIG_IsOK(ecode2)) {
16798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16799 }
16800 arg2 = static_cast< unsigned int >(val2);
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 {
16808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16809 }
16810 return resultobj;
16811fail:
16812 return NULL;
16813}
16814
16815
0085ce49
RD
16816SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16817 PyObject *resultobj = 0;
16818 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16819 unsigned int result;
0085ce49
RD
16820 void *argp1 = 0 ;
16821 int res1 = 0 ;
16822 PyObject *swig_obj[1] ;
16823
16824 if (!args) SWIG_fail;
16825 swig_obj[0] = args;
16826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16827 if (!SWIG_IsOK(res1)) {
16828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16829 }
16830 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16831 {
16832 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16833 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16834 wxPyEndAllowThreads(__tstate);
16835 if (PyErr_Occurred()) SWIG_fail;
16836 }
50f151d7 16837 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16838 return resultobj;
16839fail:
16840 return NULL;
d14a1e28
RD
16841}
16842
16843
0085ce49
RD
16844SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16845 PyObject *resultobj = 0;
16846 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16847 unsigned int result;
0085ce49
RD
16848 void *argp1 = 0 ;
16849 int res1 = 0 ;
16850 PyObject *swig_obj[1] ;
16851
16852 if (!args) SWIG_fail;
16853 swig_obj[0] = args;
16854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16855 if (!SWIG_IsOK(res1)) {
16856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16857 }
16858 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16861 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
50f151d7 16865 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16866 return resultobj;
16867fail:
16868 return NULL;
16869}
16870
16871
16872SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16873 PyObject *resultobj = 0;
16874 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16875 int arg2 ;
16876 wxDirection arg3 ;
16877 long arg4 ;
16878 int result;
16879 void *argp1 = 0 ;
16880 int res1 = 0 ;
16881 int val2 ;
16882 int ecode2 = 0 ;
16883 int val3 ;
16884 int ecode3 = 0 ;
16885 long val4 ;
16886 int ecode4 = 0 ;
16887 PyObject * obj0 = 0 ;
16888 PyObject * obj1 = 0 ;
16889 PyObject * obj2 = 0 ;
16890 PyObject * obj3 = 0 ;
16891 char * kwnames[] = {
16892 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16893 };
16894
16895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16897 if (!SWIG_IsOK(res1)) {
16898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16899 }
16900 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16901 ecode2 = SWIG_AsVal_int(obj1, &val2);
16902 if (!SWIG_IsOK(ecode2)) {
16903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16904 }
16905 arg2 = static_cast< int >(val2);
16906 ecode3 = SWIG_AsVal_int(obj2, &val3);
16907 if (!SWIG_IsOK(ecode3)) {
16908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16909 }
16910 arg3 = static_cast< wxDirection >(val3);
16911 ecode4 = SWIG_AsVal_long(obj3, &val4);
16912 if (!SWIG_IsOK(ecode4)) {
16913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16914 }
16915 arg4 = static_cast< long >(val4);
16916 {
16917 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16918 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
16919 wxPyEndAllowThreads(__tstate);
16920 if (PyErr_Occurred()) SWIG_fail;
16921 }
16922 resultobj = SWIG_From_int(static_cast< int >(result));
16923 return resultobj;
16924fail:
16925 return NULL;
16926}
16927
16928
01f6b6d3
RD
16929SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16930 PyObject *resultobj = 0;
16931 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16932 unsigned int arg2 ;
16933 wxString *arg3 = 0 ;
16934 void *argp1 = 0 ;
16935 int res1 = 0 ;
16936 unsigned int val2 ;
16937 int ecode2 = 0 ;
16938 bool temp3 = false ;
16939 PyObject * obj0 = 0 ;
16940 PyObject * obj1 = 0 ;
16941 PyObject * obj2 = 0 ;
16942 char * kwnames[] = {
16943 (char *) "self",(char *) "item",(char *) "text", NULL
16944 };
16945
16946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16948 if (!SWIG_IsOK(res1)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16950 }
16951 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16952 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16953 if (!SWIG_IsOK(ecode2)) {
16954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16955 }
16956 arg2 = static_cast< unsigned int >(val2);
16957 {
16958 arg3 = wxString_in_helper(obj2);
16959 if (arg3 == NULL) SWIG_fail;
16960 temp3 = true;
16961 }
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16965 wxPyEndAllowThreads(__tstate);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
16968 resultobj = SWIG_Py_Void();
16969 {
16970 if (temp3)
16971 delete arg3;
16972 }
16973 return resultobj;
16974fail:
16975 {
16976 if (temp3)
16977 delete arg3;
16978 }
16979 return NULL;
16980}
16981
16982
16983SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16984 PyObject *resultobj = 0;
16985 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16986 unsigned int arg2 ;
16987 wxToolTip *result = 0 ;
16988 void *argp1 = 0 ;
16989 int res1 = 0 ;
16990 unsigned int val2 ;
16991 int ecode2 = 0 ;
16992 PyObject * obj0 = 0 ;
16993 PyObject * obj1 = 0 ;
16994 char * kwnames[] = {
16995 (char *) "self",(char *) "item", NULL
16996 };
16997
16998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17000 if (!SWIG_IsOK(res1)) {
17001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17002 }
17003 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17004 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17005 if (!SWIG_IsOK(ecode2)) {
17006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17007 }
17008 arg2 = static_cast< unsigned int >(val2);
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17012 wxPyEndAllowThreads(__tstate);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 {
17016 resultobj = wxPyMake_wxObject(result, (bool)0);
17017 }
17018 return resultobj;
17019fail:
17020 return NULL;
17021}
17022
17023
b850e7f3
RD
17024SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17025 PyObject *resultobj = 0;
17026 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17027 unsigned int arg2 ;
17028 wxString *arg3 = 0 ;
17029 void *argp1 = 0 ;
17030 int res1 = 0 ;
17031 unsigned int val2 ;
17032 int ecode2 = 0 ;
17033 bool temp3 = false ;
17034 PyObject * obj0 = 0 ;
17035 PyObject * obj1 = 0 ;
17036 PyObject * obj2 = 0 ;
17037 char * kwnames[] = {
17038 (char *) "self",(char *) "n",(char *) "helpText", NULL
17039 };
17040
17041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17043 if (!SWIG_IsOK(res1)) {
17044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17045 }
17046 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17047 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17048 if (!SWIG_IsOK(ecode2)) {
17049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17050 }
17051 arg2 = static_cast< unsigned int >(val2);
17052 {
17053 arg3 = wxString_in_helper(obj2);
17054 if (arg3 == NULL) SWIG_fail;
17055 temp3 = true;
17056 }
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 resultobj = SWIG_Py_Void();
17064 {
17065 if (temp3)
17066 delete arg3;
17067 }
17068 return resultobj;
17069fail:
17070 {
17071 if (temp3)
17072 delete arg3;
17073 }
17074 return NULL;
17075}
17076
17077
17078SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17079 PyObject *resultobj = 0;
17080 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17081 unsigned int arg2 ;
17082 wxString result;
17083 void *argp1 = 0 ;
17084 int res1 = 0 ;
17085 unsigned int val2 ;
17086 int ecode2 = 0 ;
17087 PyObject * obj0 = 0 ;
17088 PyObject * obj1 = 0 ;
17089 char * kwnames[] = {
17090 (char *) "self",(char *) "n", NULL
17091 };
17092
17093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17095 if (!SWIG_IsOK(res1)) {
17096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17097 }
17098 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17099 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17100 if (!SWIG_IsOK(ecode2)) {
17101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17102 }
17103 arg2 = static_cast< unsigned int >(val2);
17104 {
17105 PyThreadState* __tstate = wxPyBeginAllowThreads();
17106 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17107 wxPyEndAllowThreads(__tstate);
17108 if (PyErr_Occurred()) SWIG_fail;
17109 }
17110 {
17111#if wxUSE_UNICODE
17112 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17113#else
17114 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17115#endif
17116 }
17117 return resultobj;
17118fail:
17119 return NULL;
17120}
17121
17122
0085ce49
RD
17123SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17124 PyObject *resultobj = 0;
17125 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17126 SwigValueWrapper<wxVisualAttributes > result;
17127 int val1 ;
17128 int ecode1 = 0 ;
17129 PyObject * obj0 = 0 ;
17130 char * kwnames[] = {
17131 (char *) "variant", NULL
17132 };
17133
17134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17135 if (obj0) {
17136 ecode1 = SWIG_AsVal_int(obj0, &val1);
17137 if (!SWIG_IsOK(ecode1)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17139 }
17140 arg1 = static_cast< wxWindowVariant >(val1);
17141 }
17142 {
17143 if (!wxPyCheckForApp()) SWIG_fail;
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17150 return resultobj;
17151fail:
17152 return NULL;
17153}
17154
17155
17156SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17157 PyObject *obj;
17158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17159 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17160 return SWIG_Py_Void();
17161}
17162
17163SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17164 return SWIG_Python_InitShadowInstance(args);
17165}
17166
17167SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17168 PyObject *resultobj = 0;
17169 wxWindow *arg1 = (wxWindow *) 0 ;
17170 int arg2 = (int) -1 ;
17171 wxString const &arg3_defvalue = wxPyEmptyString ;
17172 wxString *arg3 = (wxString *) &arg3_defvalue ;
17173 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17174 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17175 wxSize const &arg5_defvalue = wxDefaultSize ;
17176 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17177 long arg6 = (long) 0 ;
17178 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17179 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17180 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17181 wxString *arg8 = (wxString *) &arg8_defvalue ;
17182 wxRadioButton *result = 0 ;
17183 void *argp1 = 0 ;
17184 int res1 = 0 ;
17185 int val2 ;
17186 int ecode2 = 0 ;
17187 bool temp3 = false ;
17188 wxPoint temp4 ;
17189 wxSize temp5 ;
17190 long val6 ;
17191 int ecode6 = 0 ;
17192 void *argp7 = 0 ;
17193 int res7 = 0 ;
17194 bool temp8 = false ;
17195 PyObject * obj0 = 0 ;
17196 PyObject * obj1 = 0 ;
17197 PyObject * obj2 = 0 ;
17198 PyObject * obj3 = 0 ;
17199 PyObject * obj4 = 0 ;
17200 PyObject * obj5 = 0 ;
17201 PyObject * obj6 = 0 ;
17202 PyObject * obj7 = 0 ;
17203 char * kwnames[] = {
17204 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17205 };
17206
17207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17209 if (!SWIG_IsOK(res1)) {
17210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17211 }
17212 arg1 = reinterpret_cast< wxWindow * >(argp1);
17213 if (obj1) {
17214 ecode2 = SWIG_AsVal_int(obj1, &val2);
17215 if (!SWIG_IsOK(ecode2)) {
17216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17217 }
17218 arg2 = static_cast< int >(val2);
17219 }
17220 if (obj2) {
d14a1e28 17221 {
0085ce49
RD
17222 arg3 = wxString_in_helper(obj2);
17223 if (arg3 == NULL) SWIG_fail;
17224 temp3 = true;
d14a1e28 17225 }
0085ce49
RD
17226 }
17227 if (obj3) {
d14a1e28 17228 {
0085ce49
RD
17229 arg4 = &temp4;
17230 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17231 }
0085ce49
RD
17232 }
17233 if (obj4) {
d14a1e28 17234 {
0085ce49
RD
17235 arg5 = &temp5;
17236 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17237 }
17238 }
17239 if (obj5) {
17240 ecode6 = SWIG_AsVal_long(obj5, &val6);
17241 if (!SWIG_IsOK(ecode6)) {
17242 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17243 }
17244 arg6 = static_cast< long >(val6);
17245 }
17246 if (obj6) {
17247 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17248 if (!SWIG_IsOK(res7)) {
17249 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17250 }
0085ce49
RD
17251 if (!argp7) {
17252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17253 }
17254 arg7 = reinterpret_cast< wxValidator * >(argp7);
17255 }
17256 if (obj7) {
d14a1e28 17257 {
0085ce49
RD
17258 arg8 = wxString_in_helper(obj7);
17259 if (arg8 == NULL) SWIG_fail;
17260 temp8 = true;
d14a1e28 17261 }
0085ce49
RD
17262 }
17263 {
17264 if (!wxPyCheckForApp()) SWIG_fail;
17265 PyThreadState* __tstate = wxPyBeginAllowThreads();
17266 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17267 wxPyEndAllowThreads(__tstate);
17268 if (PyErr_Occurred()) SWIG_fail;
17269 }
17270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17271 {
17272 if (temp3)
17273 delete arg3;
17274 }
17275 {
17276 if (temp8)
17277 delete arg8;
17278 }
17279 return resultobj;
17280fail:
17281 {
17282 if (temp3)
17283 delete arg3;
17284 }
17285 {
17286 if (temp8)
17287 delete arg8;
17288 }
17289 return NULL;
d14a1e28
RD
17290}
17291
17292
0085ce49
RD
17293SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17294 PyObject *resultobj = 0;
17295 wxRadioButton *result = 0 ;
17296
17297 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17298 {
17299 if (!wxPyCheckForApp()) SWIG_fail;
17300 PyThreadState* __tstate = wxPyBeginAllowThreads();
17301 result = (wxRadioButton *)new wxRadioButton();
17302 wxPyEndAllowThreads(__tstate);
17303 if (PyErr_Occurred()) SWIG_fail;
17304 }
17305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17306 return resultobj;
17307fail:
17308 return NULL;
17309}
17310
17311
17312SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17313 PyObject *resultobj = 0;
17314 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17315 wxWindow *arg2 = (wxWindow *) 0 ;
17316 int arg3 = (int) -1 ;
17317 wxString const &arg4_defvalue = wxPyEmptyString ;
17318 wxString *arg4 = (wxString *) &arg4_defvalue ;
17319 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17320 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17321 wxSize const &arg6_defvalue = wxDefaultSize ;
17322 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17323 long arg7 = (long) 0 ;
17324 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17325 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17326 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17327 wxString *arg9 = (wxString *) &arg9_defvalue ;
17328 bool result;
17329 void *argp1 = 0 ;
17330 int res1 = 0 ;
17331 void *argp2 = 0 ;
17332 int res2 = 0 ;
17333 int val3 ;
17334 int ecode3 = 0 ;
17335 bool temp4 = false ;
17336 wxPoint temp5 ;
17337 wxSize temp6 ;
17338 long val7 ;
17339 int ecode7 = 0 ;
17340 void *argp8 = 0 ;
17341 int res8 = 0 ;
17342 bool temp9 = false ;
17343 PyObject * obj0 = 0 ;
17344 PyObject * obj1 = 0 ;
17345 PyObject * obj2 = 0 ;
17346 PyObject * obj3 = 0 ;
17347 PyObject * obj4 = 0 ;
17348 PyObject * obj5 = 0 ;
17349 PyObject * obj6 = 0 ;
17350 PyObject * obj7 = 0 ;
17351 PyObject * obj8 = 0 ;
17352 char * kwnames[] = {
17353 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17354 };
17355
17356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17358 if (!SWIG_IsOK(res1)) {
17359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17360 }
17361 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17363 if (!SWIG_IsOK(res2)) {
17364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17365 }
17366 arg2 = reinterpret_cast< wxWindow * >(argp2);
17367 if (obj2) {
17368 ecode3 = SWIG_AsVal_int(obj2, &val3);
17369 if (!SWIG_IsOK(ecode3)) {
17370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17371 }
17372 arg3 = static_cast< int >(val3);
17373 }
17374 if (obj3) {
d14a1e28 17375 {
0085ce49
RD
17376 arg4 = wxString_in_helper(obj3);
17377 if (arg4 == NULL) SWIG_fail;
17378 temp4 = true;
d14a1e28 17379 }
0085ce49
RD
17380 }
17381 if (obj4) {
d14a1e28 17382 {
0085ce49
RD
17383 arg5 = &temp5;
17384 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17385 }
0085ce49
RD
17386 }
17387 if (obj5) {
d14a1e28 17388 {
0085ce49
RD
17389 arg6 = &temp6;
17390 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17391 }
17392 }
17393 if (obj6) {
17394 ecode7 = SWIG_AsVal_long(obj6, &val7);
17395 if (!SWIG_IsOK(ecode7)) {
17396 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17397 }
17398 arg7 = static_cast< long >(val7);
17399 }
17400 if (obj7) {
17401 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17402 if (!SWIG_IsOK(res8)) {
17403 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17404 }
17405 if (!argp8) {
17406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17407 }
0085ce49
RD
17408 arg8 = reinterpret_cast< wxValidator * >(argp8);
17409 }
17410 if (obj8) {
d14a1e28 17411 {
0085ce49
RD
17412 arg9 = wxString_in_helper(obj8);
17413 if (arg9 == NULL) SWIG_fail;
17414 temp9 = true;
d14a1e28 17415 }
0085ce49
RD
17416 }
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 {
17424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17425 }
17426 {
17427 if (temp4)
17428 delete arg4;
17429 }
17430 {
17431 if (temp9)
17432 delete arg9;
17433 }
17434 return resultobj;
17435fail:
17436 {
17437 if (temp4)
17438 delete arg4;
17439 }
17440 {
17441 if (temp9)
17442 delete arg9;
17443 }
17444 return NULL;
d14a1e28
RD
17445}
17446
17447
0085ce49
RD
17448SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17449 PyObject *resultobj = 0;
17450 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17451 bool result;
17452 void *argp1 = 0 ;
17453 int res1 = 0 ;
17454 PyObject *swig_obj[1] ;
17455
17456 if (!args) SWIG_fail;
17457 swig_obj[0] = args;
17458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17459 if (!SWIG_IsOK(res1)) {
17460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17461 }
17462 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = (bool)(arg1)->GetValue();
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 {
17470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17471 }
17472 return resultobj;
17473fail:
17474 return NULL;
17475}
17476
17477
17478SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17479 PyObject *resultobj = 0;
17480 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17481 bool arg2 ;
17482 void *argp1 = 0 ;
17483 int res1 = 0 ;
17484 bool val2 ;
17485 int ecode2 = 0 ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 char * kwnames[] = {
17489 (char *) "self",(char *) "value", NULL
17490 };
17491
17492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17494 if (!SWIG_IsOK(res1)) {
17495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17496 }
17497 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17498 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17499 if (!SWIG_IsOK(ecode2)) {
17500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17501 }
17502 arg2 = static_cast< bool >(val2);
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 (arg1)->SetValue(arg2);
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 resultobj = SWIG_Py_Void();
17510 return resultobj;
17511fail:
17512 return NULL;
17513}
17514
17515
17516SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17517 PyObject *resultobj = 0;
17518 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17519 SwigValueWrapper<wxVisualAttributes > result;
17520 int val1 ;
17521 int ecode1 = 0 ;
17522 PyObject * obj0 = 0 ;
17523 char * kwnames[] = {
17524 (char *) "variant", NULL
17525 };
17526
17527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17528 if (obj0) {
17529 ecode1 = SWIG_AsVal_int(obj0, &val1);
17530 if (!SWIG_IsOK(ecode1)) {
17531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17532 }
17533 arg1 = static_cast< wxWindowVariant >(val1);
17534 }
17535 {
17536 if (!wxPyCheckForApp()) SWIG_fail;
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17543 return resultobj;
17544fail:
17545 return NULL;
d14a1e28
RD
17546}
17547
17548
0085ce49
RD
17549SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17550 PyObject *obj;
17551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17552 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17553 return SWIG_Py_Void();
17554}
17555
17556SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17557 return SWIG_Python_InitShadowInstance(args);
17558}
17559
17560SWIGINTERN int SliderNameStr_set(PyObject *) {
17561 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17562 return 1;
17563}
17564
17565
17566SWIGINTERN PyObject *SliderNameStr_get(void) {
17567 PyObject *pyobj = 0;
17568
17569 {
17570#if wxUSE_UNICODE
17571 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17572#else
17573 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17574#endif
17575 }
17576 return pyobj;
17577}
17578
17579
17580SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17581 PyObject *resultobj = 0;
17582 wxWindow *arg1 = (wxWindow *) 0 ;
17583 int arg2 = (int) -1 ;
17584 int arg3 = (int) 0 ;
17585 int arg4 = (int) 0 ;
17586 int arg5 = (int) 100 ;
17587 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17588 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17589 wxSize const &arg7_defvalue = wxDefaultSize ;
17590 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17591 long arg8 = (long) wxSL_HORIZONTAL ;
17592 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17593 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17594 wxString const &arg10_defvalue = wxPySliderNameStr ;
17595 wxString *arg10 = (wxString *) &arg10_defvalue ;
17596 wxSlider *result = 0 ;
17597 void *argp1 = 0 ;
17598 int res1 = 0 ;
17599 int val2 ;
17600 int ecode2 = 0 ;
17601 int val3 ;
17602 int ecode3 = 0 ;
17603 int val4 ;
17604 int ecode4 = 0 ;
17605 int val5 ;
17606 int ecode5 = 0 ;
17607 wxPoint temp6 ;
17608 wxSize temp7 ;
17609 long val8 ;
17610 int ecode8 = 0 ;
17611 void *argp9 = 0 ;
17612 int res9 = 0 ;
17613 bool temp10 = false ;
17614 PyObject * obj0 = 0 ;
17615 PyObject * obj1 = 0 ;
17616 PyObject * obj2 = 0 ;
17617 PyObject * obj3 = 0 ;
17618 PyObject * obj4 = 0 ;
17619 PyObject * obj5 = 0 ;
17620 PyObject * obj6 = 0 ;
17621 PyObject * obj7 = 0 ;
17622 PyObject * obj8 = 0 ;
17623 PyObject * obj9 = 0 ;
17624 char * kwnames[] = {
17625 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17626 };
17627
17628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17630 if (!SWIG_IsOK(res1)) {
17631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17632 }
17633 arg1 = reinterpret_cast< wxWindow * >(argp1);
17634 if (obj1) {
17635 ecode2 = SWIG_AsVal_int(obj1, &val2);
17636 if (!SWIG_IsOK(ecode2)) {
17637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17638 }
17639 arg2 = static_cast< int >(val2);
17640 }
17641 if (obj2) {
17642 ecode3 = SWIG_AsVal_int(obj2, &val3);
17643 if (!SWIG_IsOK(ecode3)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17645 }
17646 arg3 = static_cast< int >(val3);
17647 }
17648 if (obj3) {
17649 ecode4 = SWIG_AsVal_int(obj3, &val4);
17650 if (!SWIG_IsOK(ecode4)) {
17651 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17652 }
17653 arg4 = static_cast< int >(val4);
17654 }
17655 if (obj4) {
17656 ecode5 = SWIG_AsVal_int(obj4, &val5);
17657 if (!SWIG_IsOK(ecode5)) {
17658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17659 }
17660 arg5 = static_cast< int >(val5);
17661 }
17662 if (obj5) {
093d3ff1 17663 {
0085ce49
RD
17664 arg6 = &temp6;
17665 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17666 }
0085ce49
RD
17667 }
17668 if (obj6) {
093d3ff1 17669 {
0085ce49
RD
17670 arg7 = &temp7;
17671 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17672 }
0085ce49
RD
17673 }
17674 if (obj7) {
17675 ecode8 = SWIG_AsVal_long(obj7, &val8);
17676 if (!SWIG_IsOK(ecode8)) {
17677 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17678 }
17679 arg8 = static_cast< long >(val8);
17680 }
17681 if (obj8) {
17682 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17683 if (!SWIG_IsOK(res9)) {
17684 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17685 }
0085ce49
RD
17686 if (!argp9) {
17687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17688 }
0085ce49
RD
17689 arg9 = reinterpret_cast< wxValidator * >(argp9);
17690 }
17691 if (obj9) {
4f89f6a3 17692 {
0085ce49
RD
17693 arg10 = wxString_in_helper(obj9);
17694 if (arg10 == NULL) SWIG_fail;
17695 temp10 = true;
4f89f6a3 17696 }
0085ce49
RD
17697 }
17698 {
17699 if (!wxPyCheckForApp()) SWIG_fail;
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17702 wxPyEndAllowThreads(__tstate);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 }
17705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17706 {
17707 if (temp10)
17708 delete arg10;
17709 }
17710 return resultobj;
17711fail:
17712 {
17713 if (temp10)
17714 delete arg10;
17715 }
17716 return NULL;
d14a1e28
RD
17717}
17718
17719
0085ce49
RD
17720SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17721 PyObject *resultobj = 0;
17722 wxSlider *result = 0 ;
17723
17724 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17725 {
17726 if (!wxPyCheckForApp()) SWIG_fail;
17727 PyThreadState* __tstate = wxPyBeginAllowThreads();
17728 result = (wxSlider *)new wxSlider();
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17733 return resultobj;
17734fail:
17735 return NULL;
17736}
17737
17738
17739SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17740 PyObject *resultobj = 0;
17741 wxSlider *arg1 = (wxSlider *) 0 ;
17742 wxWindow *arg2 = (wxWindow *) 0 ;
17743 int arg3 = (int) -1 ;
17744 int arg4 = (int) 0 ;
17745 int arg5 = (int) 0 ;
17746 int arg6 = (int) 100 ;
17747 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17748 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17749 wxSize const &arg8_defvalue = wxDefaultSize ;
17750 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17751 long arg9 = (long) wxSL_HORIZONTAL ;
17752 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17753 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17754 wxString const &arg11_defvalue = wxPySliderNameStr ;
17755 wxString *arg11 = (wxString *) &arg11_defvalue ;
17756 bool result;
17757 void *argp1 = 0 ;
17758 int res1 = 0 ;
17759 void *argp2 = 0 ;
17760 int res2 = 0 ;
17761 int val3 ;
17762 int ecode3 = 0 ;
17763 int val4 ;
17764 int ecode4 = 0 ;
17765 int val5 ;
17766 int ecode5 = 0 ;
17767 int val6 ;
17768 int ecode6 = 0 ;
17769 wxPoint temp7 ;
17770 wxSize temp8 ;
17771 long val9 ;
17772 int ecode9 = 0 ;
17773 void *argp10 = 0 ;
17774 int res10 = 0 ;
17775 bool temp11 = false ;
17776 PyObject * obj0 = 0 ;
17777 PyObject * obj1 = 0 ;
17778 PyObject * obj2 = 0 ;
17779 PyObject * obj3 = 0 ;
17780 PyObject * obj4 = 0 ;
17781 PyObject * obj5 = 0 ;
17782 PyObject * obj6 = 0 ;
17783 PyObject * obj7 = 0 ;
17784 PyObject * obj8 = 0 ;
17785 PyObject * obj9 = 0 ;
17786 PyObject * obj10 = 0 ;
17787 char * kwnames[] = {
17788 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17789 };
17790
17791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17793 if (!SWIG_IsOK(res1)) {
17794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17795 }
17796 arg1 = reinterpret_cast< wxSlider * >(argp1);
17797 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17798 if (!SWIG_IsOK(res2)) {
17799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17800 }
17801 arg2 = reinterpret_cast< wxWindow * >(argp2);
17802 if (obj2) {
17803 ecode3 = SWIG_AsVal_int(obj2, &val3);
17804 if (!SWIG_IsOK(ecode3)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17806 }
17807 arg3 = static_cast< int >(val3);
17808 }
17809 if (obj3) {
17810 ecode4 = SWIG_AsVal_int(obj3, &val4);
17811 if (!SWIG_IsOK(ecode4)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17813 }
17814 arg4 = static_cast< int >(val4);
17815 }
17816 if (obj4) {
17817 ecode5 = SWIG_AsVal_int(obj4, &val5);
17818 if (!SWIG_IsOK(ecode5)) {
17819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17820 }
17821 arg5 = static_cast< int >(val5);
17822 }
17823 if (obj5) {
17824 ecode6 = SWIG_AsVal_int(obj5, &val6);
17825 if (!SWIG_IsOK(ecode6)) {
17826 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17827 }
17828 arg6 = static_cast< int >(val6);
17829 }
17830 if (obj6) {
093d3ff1 17831 {
0085ce49
RD
17832 arg7 = &temp7;
17833 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17834 }
0085ce49
RD
17835 }
17836 if (obj7) {
d14a1e28 17837 {
0085ce49
RD
17838 arg8 = &temp8;
17839 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17840 }
0085ce49
RD
17841 }
17842 if (obj8) {
17843 ecode9 = SWIG_AsVal_long(obj8, &val9);
17844 if (!SWIG_IsOK(ecode9)) {
17845 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17846 }
17847 arg9 = static_cast< long >(val9);
17848 }
17849 if (obj9) {
17850 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17851 if (!SWIG_IsOK(res10)) {
17852 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17853 }
0085ce49
RD
17854 if (!argp10) {
17855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17856 }
0085ce49
RD
17857 arg10 = reinterpret_cast< wxValidator * >(argp10);
17858 }
17859 if (obj10) {
4f89f6a3 17860 {
0085ce49
RD
17861 arg11 = wxString_in_helper(obj10);
17862 if (arg11 == NULL) SWIG_fail;
17863 temp11 = true;
4f89f6a3 17864 }
0085ce49
RD
17865 }
17866 {
17867 PyThreadState* __tstate = wxPyBeginAllowThreads();
17868 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 {
17873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17874 }
17875 {
17876 if (temp11)
17877 delete arg11;
17878 }
17879 return resultobj;
17880fail:
17881 {
17882 if (temp11)
17883 delete arg11;
17884 }
17885 return NULL;
d14a1e28
RD
17886}
17887
17888
0085ce49
RD
17889SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17890 PyObject *resultobj = 0;
17891 wxSlider *arg1 = (wxSlider *) 0 ;
17892 int result;
17893 void *argp1 = 0 ;
17894 int res1 = 0 ;
17895 PyObject *swig_obj[1] ;
17896
17897 if (!args) SWIG_fail;
17898 swig_obj[0] = args;
17899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17900 if (!SWIG_IsOK(res1)) {
17901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17902 }
17903 arg1 = reinterpret_cast< wxSlider * >(argp1);
17904 {
17905 PyThreadState* __tstate = wxPyBeginAllowThreads();
17906 result = (int)((wxSlider const *)arg1)->GetValue();
17907 wxPyEndAllowThreads(__tstate);
17908 if (PyErr_Occurred()) SWIG_fail;
17909 }
17910 resultobj = SWIG_From_int(static_cast< int >(result));
17911 return resultobj;
17912fail:
17913 return NULL;
17914}
17915
17916
17917SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17918 PyObject *resultobj = 0;
17919 wxSlider *arg1 = (wxSlider *) 0 ;
17920 int arg2 ;
17921 void *argp1 = 0 ;
17922 int res1 = 0 ;
17923 int val2 ;
17924 int ecode2 = 0 ;
17925 PyObject * obj0 = 0 ;
17926 PyObject * obj1 = 0 ;
17927 char * kwnames[] = {
17928 (char *) "self",(char *) "value", NULL
17929 };
17930
17931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17933 if (!SWIG_IsOK(res1)) {
17934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17935 }
17936 arg1 = reinterpret_cast< wxSlider * >(argp1);
17937 ecode2 = SWIG_AsVal_int(obj1, &val2);
17938 if (!SWIG_IsOK(ecode2)) {
17939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17940 }
17941 arg2 = static_cast< int >(val2);
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 (arg1)->SetValue(arg2);
17945 wxPyEndAllowThreads(__tstate);
17946 if (PyErr_Occurred()) SWIG_fail;
17947 }
17948 resultobj = SWIG_Py_Void();
17949 return resultobj;
17950fail:
17951 return NULL;
17952}
17953
17954
17955SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17956 PyObject *resultobj = 0;
17957 wxSlider *arg1 = (wxSlider *) 0 ;
17958 int arg2 ;
17959 int arg3 ;
17960 void *argp1 = 0 ;
17961 int res1 = 0 ;
17962 int val2 ;
17963 int ecode2 = 0 ;
17964 int val3 ;
17965 int ecode3 = 0 ;
17966 PyObject * obj0 = 0 ;
17967 PyObject * obj1 = 0 ;
17968 PyObject * obj2 = 0 ;
17969 char * kwnames[] = {
17970 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17971 };
17972
17973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17975 if (!SWIG_IsOK(res1)) {
17976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17977 }
17978 arg1 = reinterpret_cast< wxSlider * >(argp1);
17979 ecode2 = SWIG_AsVal_int(obj1, &val2);
17980 if (!SWIG_IsOK(ecode2)) {
17981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17982 }
17983 arg2 = static_cast< int >(val2);
17984 ecode3 = SWIG_AsVal_int(obj2, &val3);
17985 if (!SWIG_IsOK(ecode3)) {
17986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17987 }
17988 arg3 = static_cast< int >(val3);
17989 {
17990 PyThreadState* __tstate = wxPyBeginAllowThreads();
17991 (arg1)->SetRange(arg2,arg3);
17992 wxPyEndAllowThreads(__tstate);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 }
17995 resultobj = SWIG_Py_Void();
17996 return resultobj;
17997fail:
17998 return NULL;
d14a1e28
RD
17999}
18000
18001
0085ce49
RD
18002SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18003 PyObject *resultobj = 0;
18004 wxSlider *arg1 = (wxSlider *) 0 ;
18005 int result;
18006 void *argp1 = 0 ;
18007 int res1 = 0 ;
18008 PyObject *swig_obj[1] ;
18009
18010 if (!args) SWIG_fail;
18011 swig_obj[0] = args;
18012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18013 if (!SWIG_IsOK(res1)) {
18014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18015 }
18016 arg1 = reinterpret_cast< wxSlider * >(argp1);
18017 {
18018 PyThreadState* __tstate = wxPyBeginAllowThreads();
18019 result = (int)((wxSlider const *)arg1)->GetMin();
18020 wxPyEndAllowThreads(__tstate);
18021 if (PyErr_Occurred()) SWIG_fail;
18022 }
18023 resultobj = SWIG_From_int(static_cast< int >(result));
18024 return resultobj;
18025fail:
18026 return NULL;
d14a1e28
RD
18027}
18028
18029
0085ce49
RD
18030SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18031 PyObject *resultobj = 0;
18032 wxSlider *arg1 = (wxSlider *) 0 ;
18033 int result;
18034 void *argp1 = 0 ;
18035 int res1 = 0 ;
18036 PyObject *swig_obj[1] ;
18037
18038 if (!args) SWIG_fail;
18039 swig_obj[0] = args;
18040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18041 if (!SWIG_IsOK(res1)) {
18042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18043 }
18044 arg1 = reinterpret_cast< wxSlider * >(argp1);
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 result = (int)((wxSlider const *)arg1)->GetMax();
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 resultobj = SWIG_From_int(static_cast< int >(result));
18052 return resultobj;
18053fail:
18054 return NULL;
18055}
18056
18057
18058SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj = 0;
18060 wxSlider *arg1 = (wxSlider *) 0 ;
18061 int arg2 ;
18062 void *argp1 = 0 ;
18063 int res1 = 0 ;
18064 int val2 ;
18065 int ecode2 = 0 ;
18066 PyObject * obj0 = 0 ;
18067 PyObject * obj1 = 0 ;
18068 char * kwnames[] = {
18069 (char *) "self",(char *) "minValue", NULL
18070 };
18071
18072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18074 if (!SWIG_IsOK(res1)) {
18075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18076 }
18077 arg1 = reinterpret_cast< wxSlider * >(argp1);
18078 ecode2 = SWIG_AsVal_int(obj1, &val2);
18079 if (!SWIG_IsOK(ecode2)) {
18080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18081 }
18082 arg2 = static_cast< int >(val2);
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 (arg1)->SetMin(arg2);
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 resultobj = SWIG_Py_Void();
18090 return resultobj;
18091fail:
18092 return NULL;
18093}
18094
18095
18096SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj = 0;
18098 wxSlider *arg1 = (wxSlider *) 0 ;
18099 int arg2 ;
18100 void *argp1 = 0 ;
18101 int res1 = 0 ;
18102 int val2 ;
18103 int ecode2 = 0 ;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 char * kwnames[] = {
18107 (char *) "self",(char *) "maxValue", NULL
18108 };
18109
18110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18112 if (!SWIG_IsOK(res1)) {
18113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18114 }
18115 arg1 = reinterpret_cast< wxSlider * >(argp1);
18116 ecode2 = SWIG_AsVal_int(obj1, &val2);
18117 if (!SWIG_IsOK(ecode2)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18119 }
18120 arg2 = static_cast< int >(val2);
18121 {
18122 PyThreadState* __tstate = wxPyBeginAllowThreads();
18123 (arg1)->SetMax(arg2);
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_Py_Void();
18128 return resultobj;
18129fail:
18130 return NULL;
18131}
18132
18133
18134SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj = 0;
18136 wxSlider *arg1 = (wxSlider *) 0 ;
18137 int arg2 ;
18138 void *argp1 = 0 ;
18139 int res1 = 0 ;
18140 int val2 ;
18141 int ecode2 = 0 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "self",(char *) "lineSize", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18150 if (!SWIG_IsOK(res1)) {
18151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18152 }
18153 arg1 = reinterpret_cast< wxSlider * >(argp1);
18154 ecode2 = SWIG_AsVal_int(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18157 }
18158 arg2 = static_cast< int >(val2);
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 (arg1)->SetLineSize(arg2);
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 resultobj = SWIG_Py_Void();
18166 return resultobj;
18167fail:
18168 return NULL;
18169}
18170
18171
18172SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18173 PyObject *resultobj = 0;
18174 wxSlider *arg1 = (wxSlider *) 0 ;
18175 int arg2 ;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 int val2 ;
18179 int ecode2 = 0 ;
18180 PyObject * obj0 = 0 ;
18181 PyObject * obj1 = 0 ;
18182 char * kwnames[] = {
18183 (char *) "self",(char *) "pageSize", NULL
18184 };
18185
18186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18188 if (!SWIG_IsOK(res1)) {
18189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18190 }
18191 arg1 = reinterpret_cast< wxSlider * >(argp1);
18192 ecode2 = SWIG_AsVal_int(obj1, &val2);
18193 if (!SWIG_IsOK(ecode2)) {
18194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18195 }
18196 arg2 = static_cast< int >(val2);
18197 {
18198 PyThreadState* __tstate = wxPyBeginAllowThreads();
18199 (arg1)->SetPageSize(arg2);
18200 wxPyEndAllowThreads(__tstate);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 resultobj = SWIG_Py_Void();
18204 return resultobj;
18205fail:
18206 return NULL;
d14a1e28
RD
18207}
18208
18209
0085ce49
RD
18210SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18211 PyObject *resultobj = 0;
18212 wxSlider *arg1 = (wxSlider *) 0 ;
18213 int result;
18214 void *argp1 = 0 ;
18215 int res1 = 0 ;
18216 PyObject *swig_obj[1] ;
18217
18218 if (!args) SWIG_fail;
18219 swig_obj[0] = args;
18220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18221 if (!SWIG_IsOK(res1)) {
18222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18223 }
18224 arg1 = reinterpret_cast< wxSlider * >(argp1);
18225 {
18226 PyThreadState* __tstate = wxPyBeginAllowThreads();
18227 result = (int)((wxSlider const *)arg1)->GetLineSize();
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 resultobj = SWIG_From_int(static_cast< int >(result));
18232 return resultobj;
18233fail:
18234 return NULL;
d14a1e28
RD
18235}
18236
18237
0085ce49
RD
18238SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18239 PyObject *resultobj = 0;
18240 wxSlider *arg1 = (wxSlider *) 0 ;
18241 int result;
18242 void *argp1 = 0 ;
18243 int res1 = 0 ;
18244 PyObject *swig_obj[1] ;
18245
18246 if (!args) SWIG_fail;
18247 swig_obj[0] = args;
18248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18249 if (!SWIG_IsOK(res1)) {
18250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18251 }
18252 arg1 = reinterpret_cast< wxSlider * >(argp1);
18253 {
18254 PyThreadState* __tstate = wxPyBeginAllowThreads();
18255 result = (int)((wxSlider const *)arg1)->GetPageSize();
18256 wxPyEndAllowThreads(__tstate);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 }
18259 resultobj = SWIG_From_int(static_cast< int >(result));
18260 return resultobj;
18261fail:
18262 return NULL;
18263}
18264
18265
18266SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18267 PyObject *resultobj = 0;
18268 wxSlider *arg1 = (wxSlider *) 0 ;
18269 int arg2 ;
18270 void *argp1 = 0 ;
18271 int res1 = 0 ;
18272 int val2 ;
18273 int ecode2 = 0 ;
18274 PyObject * obj0 = 0 ;
18275 PyObject * obj1 = 0 ;
18276 char * kwnames[] = {
18277 (char *) "self",(char *) "lenPixels", NULL
18278 };
18279
18280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18282 if (!SWIG_IsOK(res1)) {
18283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18284 }
18285 arg1 = reinterpret_cast< wxSlider * >(argp1);
18286 ecode2 = SWIG_AsVal_int(obj1, &val2);
18287 if (!SWIG_IsOK(ecode2)) {
18288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18289 }
18290 arg2 = static_cast< int >(val2);
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 (arg1)->SetThumbLength(arg2);
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_Py_Void();
18298 return resultobj;
18299fail:
18300 return NULL;
4d5c3d91
RD
18301}
18302
18303
0085ce49
RD
18304SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18305 PyObject *resultobj = 0;
18306 wxSlider *arg1 = (wxSlider *) 0 ;
18307 int result;
18308 void *argp1 = 0 ;
18309 int res1 = 0 ;
18310 PyObject *swig_obj[1] ;
18311
18312 if (!args) SWIG_fail;
18313 swig_obj[0] = args;
18314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18315 if (!SWIG_IsOK(res1)) {
18316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18317 }
18318 arg1 = reinterpret_cast< wxSlider * >(argp1);
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_From_int(static_cast< int >(result));
18326 return resultobj;
18327fail:
18328 return NULL;
18329}
18330
18331
18332SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj = 0;
18334 wxSlider *arg1 = (wxSlider *) 0 ;
18335 int arg2 ;
18336 int arg3 = (int) 1 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 int val2 ;
18340 int ecode2 = 0 ;
18341 int val3 ;
18342 int ecode3 = 0 ;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 PyObject * obj2 = 0 ;
18346 char * kwnames[] = {
18347 (char *) "self",(char *) "n",(char *) "pos", NULL
18348 };
18349
18350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18352 if (!SWIG_IsOK(res1)) {
18353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18354 }
18355 arg1 = reinterpret_cast< wxSlider * >(argp1);
18356 ecode2 = SWIG_AsVal_int(obj1, &val2);
18357 if (!SWIG_IsOK(ecode2)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18359 }
18360 arg2 = static_cast< int >(val2);
18361 if (obj2) {
18362 ecode3 = SWIG_AsVal_int(obj2, &val3);
18363 if (!SWIG_IsOK(ecode3)) {
18364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18365 }
18366 arg3 = static_cast< int >(val3);
18367 }
18368 {
18369 PyThreadState* __tstate = wxPyBeginAllowThreads();
18370 (arg1)->SetTickFreq(arg2,arg3);
18371 wxPyEndAllowThreads(__tstate);
18372 if (PyErr_Occurred()) SWIG_fail;
18373 }
18374 resultobj = SWIG_Py_Void();
18375 return resultobj;
18376fail:
18377 return NULL;
4896ac9e
RD
18378}
18379
18380
0085ce49
RD
18381SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18382 PyObject *resultobj = 0;
18383 wxSlider *arg1 = (wxSlider *) 0 ;
18384 int result;
18385 void *argp1 = 0 ;
18386 int res1 = 0 ;
18387 PyObject *swig_obj[1] ;
18388
18389 if (!args) SWIG_fail;
18390 swig_obj[0] = args;
18391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18392 if (!SWIG_IsOK(res1)) {
18393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18394 }
18395 arg1 = reinterpret_cast< wxSlider * >(argp1);
18396 {
18397 PyThreadState* __tstate = wxPyBeginAllowThreads();
18398 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18399 wxPyEndAllowThreads(__tstate);
18400 if (PyErr_Occurred()) SWIG_fail;
18401 }
18402 resultobj = SWIG_From_int(static_cast< int >(result));
18403 return resultobj;
18404fail:
18405 return NULL;
d14a1e28
RD
18406}
18407
18408
0085ce49
RD
18409SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18410 PyObject *resultobj = 0;
18411 wxSlider *arg1 = (wxSlider *) 0 ;
18412 void *argp1 = 0 ;
18413 int res1 = 0 ;
18414 PyObject *swig_obj[1] ;
18415
18416 if (!args) SWIG_fail;
18417 swig_obj[0] = args;
18418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18419 if (!SWIG_IsOK(res1)) {
18420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18421 }
18422 arg1 = reinterpret_cast< wxSlider * >(argp1);
18423 {
18424 PyThreadState* __tstate = wxPyBeginAllowThreads();
18425 (arg1)->ClearTicks();
18426 wxPyEndAllowThreads(__tstate);
18427 if (PyErr_Occurred()) SWIG_fail;
18428 }
18429 resultobj = SWIG_Py_Void();
18430 return resultobj;
18431fail:
18432 return NULL;
18433}
18434
18435
18436SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18437 PyObject *resultobj = 0;
18438 wxSlider *arg1 = (wxSlider *) 0 ;
18439 int arg2 ;
18440 void *argp1 = 0 ;
18441 int res1 = 0 ;
18442 int val2 ;
18443 int ecode2 = 0 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 char * kwnames[] = {
18447 (char *) "self",(char *) "tickPos", NULL
18448 };
18449
18450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18452 if (!SWIG_IsOK(res1)) {
18453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18454 }
18455 arg1 = reinterpret_cast< wxSlider * >(argp1);
18456 ecode2 = SWIG_AsVal_int(obj1, &val2);
18457 if (!SWIG_IsOK(ecode2)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18459 }
18460 arg2 = static_cast< int >(val2);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->SetTick(arg2);
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469fail:
18470 return NULL;
d14a1e28
RD
18471}
18472
18473
0085ce49
RD
18474SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18475 PyObject *resultobj = 0;
18476 wxSlider *arg1 = (wxSlider *) 0 ;
18477 void *argp1 = 0 ;
18478 int res1 = 0 ;
18479 PyObject *swig_obj[1] ;
18480
18481 if (!args) SWIG_fail;
18482 swig_obj[0] = args;
18483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18484 if (!SWIG_IsOK(res1)) {
18485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18486 }
18487 arg1 = reinterpret_cast< wxSlider * >(argp1);
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 (arg1)->ClearSel();
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 resultobj = SWIG_Py_Void();
18495 return resultobj;
18496fail:
18497 return NULL;
d14a1e28
RD
18498}
18499
18500
0085ce49
RD
18501SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18502 PyObject *resultobj = 0;
18503 wxSlider *arg1 = (wxSlider *) 0 ;
18504 int result;
18505 void *argp1 = 0 ;
18506 int res1 = 0 ;
18507 PyObject *swig_obj[1] ;
18508
18509 if (!args) SWIG_fail;
18510 swig_obj[0] = args;
18511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18512 if (!SWIG_IsOK(res1)) {
18513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18514 }
18515 arg1 = reinterpret_cast< wxSlider * >(argp1);
18516 {
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 resultobj = SWIG_From_int(static_cast< int >(result));
18523 return resultobj;
18524fail:
18525 return NULL;
d14a1e28
RD
18526}
18527
18528
0085ce49
RD
18529SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18530 PyObject *resultobj = 0;
18531 wxSlider *arg1 = (wxSlider *) 0 ;
18532 int result;
18533 void *argp1 = 0 ;
18534 int res1 = 0 ;
18535 PyObject *swig_obj[1] ;
18536
18537 if (!args) SWIG_fail;
18538 swig_obj[0] = args;
18539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18540 if (!SWIG_IsOK(res1)) {
18541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18542 }
18543 arg1 = reinterpret_cast< wxSlider * >(argp1);
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 result = (int)((wxSlider const *)arg1)->GetSelStart();
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_From_int(static_cast< int >(result));
18551 return resultobj;
18552fail:
18553 return NULL;
18554}
18555
18556
18557SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj = 0;
18559 wxSlider *arg1 = (wxSlider *) 0 ;
18560 int arg2 ;
18561 int arg3 ;
18562 void *argp1 = 0 ;
18563 int res1 = 0 ;
18564 int val2 ;
18565 int ecode2 = 0 ;
18566 int val3 ;
18567 int ecode3 = 0 ;
18568 PyObject * obj0 = 0 ;
18569 PyObject * obj1 = 0 ;
18570 PyObject * obj2 = 0 ;
18571 char * kwnames[] = {
18572 (char *) "self",(char *) "min",(char *) "max", NULL
18573 };
18574
18575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18577 if (!SWIG_IsOK(res1)) {
18578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18579 }
18580 arg1 = reinterpret_cast< wxSlider * >(argp1);
18581 ecode2 = SWIG_AsVal_int(obj1, &val2);
18582 if (!SWIG_IsOK(ecode2)) {
18583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18584 }
18585 arg2 = static_cast< int >(val2);
18586 ecode3 = SWIG_AsVal_int(obj2, &val3);
18587 if (!SWIG_IsOK(ecode3)) {
18588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18589 }
18590 arg3 = static_cast< int >(val3);
18591 {
18592 PyThreadState* __tstate = wxPyBeginAllowThreads();
18593 (arg1)->SetSelection(arg2,arg3);
18594 wxPyEndAllowThreads(__tstate);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 resultobj = SWIG_Py_Void();
18598 return resultobj;
18599fail:
18600 return NULL;
18601}
18602
18603
18604SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18605 PyObject *resultobj = 0;
18606 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18607 SwigValueWrapper<wxVisualAttributes > result;
18608 int val1 ;
18609 int ecode1 = 0 ;
18610 PyObject * obj0 = 0 ;
18611 char * kwnames[] = {
18612 (char *) "variant", NULL
18613 };
18614
18615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18616 if (obj0) {
18617 ecode1 = SWIG_AsVal_int(obj0, &val1);
18618 if (!SWIG_IsOK(ecode1)) {
18619 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18620 }
18621 arg1 = static_cast< wxWindowVariant >(val1);
18622 }
18623 {
18624 if (!wxPyCheckForApp()) SWIG_fail;
18625 PyThreadState* __tstate = wxPyBeginAllowThreads();
18626 result = wxSlider::GetClassDefaultAttributes(arg1);
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18631 return resultobj;
18632fail:
18633 return NULL;
d14a1e28
RD
18634}
18635
18636
0085ce49
RD
18637SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18638 PyObject *obj;
18639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18640 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18641 return SWIG_Py_Void();
d14a1e28
RD
18642}
18643
0085ce49
RD
18644SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18645 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18646}
18647
0085ce49
RD
18648SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18649 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18650 return 1;
d14a1e28
RD
18651}
18652
18653
0085ce49
RD
18654SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18655 PyObject *pyobj = 0;
18656
18657 {
18658#if wxUSE_UNICODE
18659 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18660#else
18661 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18662#endif
18663 }
18664 return pyobj;
18665}
18666
18667
18668SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18669 PyObject *resultobj = 0;
18670 wxWindow *arg1 = (wxWindow *) 0 ;
18671 int arg2 = (int) -1 ;
18672 wxString const &arg3_defvalue = wxPyEmptyString ;
18673 wxString *arg3 = (wxString *) &arg3_defvalue ;
18674 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18675 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18676 wxSize const &arg5_defvalue = wxDefaultSize ;
18677 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18678 long arg6 = (long) 0 ;
18679 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18680 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18681 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18682 wxString *arg8 = (wxString *) &arg8_defvalue ;
18683 wxToggleButton *result = 0 ;
18684 void *argp1 = 0 ;
18685 int res1 = 0 ;
18686 int val2 ;
18687 int ecode2 = 0 ;
18688 bool temp3 = false ;
18689 wxPoint temp4 ;
18690 wxSize temp5 ;
18691 long val6 ;
18692 int ecode6 = 0 ;
18693 void *argp7 = 0 ;
18694 int res7 = 0 ;
18695 bool temp8 = false ;
18696 PyObject * obj0 = 0 ;
18697 PyObject * obj1 = 0 ;
18698 PyObject * obj2 = 0 ;
18699 PyObject * obj3 = 0 ;
18700 PyObject * obj4 = 0 ;
18701 PyObject * obj5 = 0 ;
18702 PyObject * obj6 = 0 ;
18703 PyObject * obj7 = 0 ;
18704 char * kwnames[] = {
18705 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18706 };
18707
18708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18710 if (!SWIG_IsOK(res1)) {
18711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18712 }
18713 arg1 = reinterpret_cast< wxWindow * >(argp1);
18714 if (obj1) {
18715 ecode2 = SWIG_AsVal_int(obj1, &val2);
18716 if (!SWIG_IsOK(ecode2)) {
18717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18718 }
18719 arg2 = static_cast< int >(val2);
18720 }
18721 if (obj2) {
d14a1e28 18722 {
0085ce49
RD
18723 arg3 = wxString_in_helper(obj2);
18724 if (arg3 == NULL) SWIG_fail;
18725 temp3 = true;
d14a1e28 18726 }
0085ce49
RD
18727 }
18728 if (obj3) {
4f89f6a3 18729 {
0085ce49
RD
18730 arg4 = &temp4;
18731 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18732 }
0085ce49
RD
18733 }
18734 if (obj4) {
d14a1e28 18735 {
0085ce49
RD
18736 arg5 = &temp5;
18737 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18738 }
0085ce49
RD
18739 }
18740 if (obj5) {
18741 ecode6 = SWIG_AsVal_long(obj5, &val6);
18742 if (!SWIG_IsOK(ecode6)) {
18743 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18744 }
18745 arg6 = static_cast< long >(val6);
18746 }
18747 if (obj6) {
18748 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18749 if (!SWIG_IsOK(res7)) {
18750 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18751 }
0085ce49
RD
18752 if (!argp7) {
18753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18754 }
0085ce49
RD
18755 arg7 = reinterpret_cast< wxValidator * >(argp7);
18756 }
18757 if (obj7) {
d14a1e28 18758 {
0085ce49
RD
18759 arg8 = wxString_in_helper(obj7);
18760 if (arg8 == NULL) SWIG_fail;
18761 temp8 = true;
d14a1e28 18762 }
0085ce49
RD
18763 }
18764 {
18765 if (!wxPyCheckForApp()) SWIG_fail;
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18768 wxPyEndAllowThreads(__tstate);
18769 if (PyErr_Occurred()) SWIG_fail;
18770 }
18771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18772 {
18773 if (temp3)
18774 delete arg3;
18775 }
18776 {
18777 if (temp8)
18778 delete arg8;
18779 }
18780 return resultobj;
18781fail:
18782 {
18783 if (temp3)
18784 delete arg3;
18785 }
18786 {
18787 if (temp8)
18788 delete arg8;
18789 }
18790 return NULL;
d14a1e28
RD
18791}
18792
18793
0085ce49
RD
18794SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18795 PyObject *resultobj = 0;
18796 wxToggleButton *result = 0 ;
18797
18798 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18799 {
18800 if (!wxPyCheckForApp()) SWIG_fail;
18801 PyThreadState* __tstate = wxPyBeginAllowThreads();
18802 result = (wxToggleButton *)new wxToggleButton();
18803 wxPyEndAllowThreads(__tstate);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 }
18806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18807 return resultobj;
18808fail:
18809 return NULL;
18810}
18811
18812
18813SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18814 PyObject *resultobj = 0;
18815 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18816 wxWindow *arg2 = (wxWindow *) 0 ;
18817 int arg3 = (int) -1 ;
18818 wxString const &arg4_defvalue = wxPyEmptyString ;
18819 wxString *arg4 = (wxString *) &arg4_defvalue ;
18820 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18821 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18822 wxSize const &arg6_defvalue = wxDefaultSize ;
18823 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18824 long arg7 = (long) 0 ;
18825 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18826 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18827 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18828 wxString *arg9 = (wxString *) &arg9_defvalue ;
18829 bool result;
18830 void *argp1 = 0 ;
18831 int res1 = 0 ;
18832 void *argp2 = 0 ;
18833 int res2 = 0 ;
18834 int val3 ;
18835 int ecode3 = 0 ;
18836 bool temp4 = false ;
18837 wxPoint temp5 ;
18838 wxSize temp6 ;
18839 long val7 ;
18840 int ecode7 = 0 ;
18841 void *argp8 = 0 ;
18842 int res8 = 0 ;
18843 bool temp9 = false ;
18844 PyObject * obj0 = 0 ;
18845 PyObject * obj1 = 0 ;
18846 PyObject * obj2 = 0 ;
18847 PyObject * obj3 = 0 ;
18848 PyObject * obj4 = 0 ;
18849 PyObject * obj5 = 0 ;
18850 PyObject * obj6 = 0 ;
18851 PyObject * obj7 = 0 ;
18852 PyObject * obj8 = 0 ;
18853 char * kwnames[] = {
18854 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18855 };
18856
18857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18859 if (!SWIG_IsOK(res1)) {
18860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18861 }
18862 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18863 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18864 if (!SWIG_IsOK(res2)) {
18865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18866 }
18867 arg2 = reinterpret_cast< wxWindow * >(argp2);
18868 if (obj2) {
18869 ecode3 = SWIG_AsVal_int(obj2, &val3);
18870 if (!SWIG_IsOK(ecode3)) {
18871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18872 }
18873 arg3 = static_cast< int >(val3);
18874 }
18875 if (obj3) {
d14a1e28 18876 {
0085ce49
RD
18877 arg4 = wxString_in_helper(obj3);
18878 if (arg4 == NULL) SWIG_fail;
18879 temp4 = true;
d14a1e28 18880 }
0085ce49
RD
18881 }
18882 if (obj4) {
d14a1e28 18883 {
0085ce49
RD
18884 arg5 = &temp5;
18885 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18886 }
0085ce49
RD
18887 }
18888 if (obj5) {
093d3ff1 18889 {
0085ce49
RD
18890 arg6 = &temp6;
18891 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18892 }
0085ce49
RD
18893 }
18894 if (obj6) {
18895 ecode7 = SWIG_AsVal_long(obj6, &val7);
18896 if (!SWIG_IsOK(ecode7)) {
18897 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18898 }
18899 arg7 = static_cast< long >(val7);
18900 }
18901 if (obj7) {
18902 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18903 if (!SWIG_IsOK(res8)) {
18904 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18905 }
18906 if (!argp8) {
18907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 18908 }
0085ce49
RD
18909 arg8 = reinterpret_cast< wxValidator * >(argp8);
18910 }
18911 if (obj8) {
093d3ff1 18912 {
0085ce49
RD
18913 arg9 = wxString_in_helper(obj8);
18914 if (arg9 == NULL) SWIG_fail;
18915 temp9 = true;
093d3ff1 18916 }
0085ce49
RD
18917 }
18918 {
18919 PyThreadState* __tstate = wxPyBeginAllowThreads();
18920 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
18924 {
18925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18926 }
18927 {
18928 if (temp4)
18929 delete arg4;
18930 }
18931 {
18932 if (temp9)
18933 delete arg9;
18934 }
18935 return resultobj;
18936fail:
18937 {
18938 if (temp4)
18939 delete arg4;
18940 }
18941 {
18942 if (temp9)
18943 delete arg9;
18944 }
18945 return NULL;
18946}
18947
18948
18949SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18950 PyObject *resultobj = 0;
18951 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18952 bool arg2 ;
18953 void *argp1 = 0 ;
18954 int res1 = 0 ;
18955 bool val2 ;
18956 int ecode2 = 0 ;
18957 PyObject * obj0 = 0 ;
18958 PyObject * obj1 = 0 ;
18959 char * kwnames[] = {
18960 (char *) "self",(char *) "value", NULL
18961 };
18962
18963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18965 if (!SWIG_IsOK(res1)) {
18966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18967 }
18968 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18969 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18970 if (!SWIG_IsOK(ecode2)) {
18971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18972 }
18973 arg2 = static_cast< bool >(val2);
18974 {
18975 PyThreadState* __tstate = wxPyBeginAllowThreads();
18976 (arg1)->SetValue(arg2);
18977 wxPyEndAllowThreads(__tstate);
18978 if (PyErr_Occurred()) SWIG_fail;
18979 }
18980 resultobj = SWIG_Py_Void();
18981 return resultobj;
18982fail:
18983 return NULL;
d14a1e28
RD
18984}
18985
18986
0085ce49
RD
18987SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18988 PyObject *resultobj = 0;
18989 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18990 bool result;
18991 void *argp1 = 0 ;
18992 int res1 = 0 ;
18993 PyObject *swig_obj[1] ;
18994
18995 if (!args) SWIG_fail;
18996 swig_obj[0] = args;
18997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18998 if (!SWIG_IsOK(res1)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19000 }
19001 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 {
19009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19010 }
19011 return resultobj;
19012fail:
19013 return NULL;
d14a1e28
RD
19014}
19015
19016
0085ce49
RD
19017SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19018 PyObject *resultobj = 0;
19019 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19020 SwigValueWrapper<wxVisualAttributes > result;
19021 int val1 ;
19022 int ecode1 = 0 ;
19023 PyObject * obj0 = 0 ;
19024 char * kwnames[] = {
19025 (char *) "variant", NULL
19026 };
19027
19028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19029 if (obj0) {
19030 ecode1 = SWIG_AsVal_int(obj0, &val1);
19031 if (!SWIG_IsOK(ecode1)) {
19032 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19033 }
19034 arg1 = static_cast< wxWindowVariant >(val1);
19035 }
19036 {
19037 if (!wxPyCheckForApp()) SWIG_fail;
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19044 return resultobj;
19045fail:
19046 return NULL;
d14a1e28
RD
19047}
19048
19049
0085ce49
RD
19050SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19051 PyObject *obj;
19052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19053 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19054 return SWIG_Py_Void();
d14a1e28
RD
19055}
19056
0085ce49
RD
19057SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19058 return SWIG_Python_InitShadowInstance(args);
19059}
d14a1e28 19060
0085ce49
RD
19061SWIGINTERN int NotebookNameStr_set(PyObject *) {
19062 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19063 return 1;
d14a1e28
RD
19064}
19065
19066
0085ce49
RD
19067SWIGINTERN PyObject *NotebookNameStr_get(void) {
19068 PyObject *pyobj = 0;
19069
19070 {
d14a1e28 19071#if wxUSE_UNICODE
0085ce49 19072 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19073#else
0085ce49 19074 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19075#endif
0085ce49
RD
19076 }
19077 return pyobj;
d14a1e28
RD
19078}
19079
19080
0085ce49
RD
19081SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19082 PyObject *resultobj = 0;
19083 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19084 size_t result;
19085 void *argp1 = 0 ;
19086 int res1 = 0 ;
19087 PyObject *swig_obj[1] ;
19088
19089 if (!args) SWIG_fail;
19090 swig_obj[0] = args;
19091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19092 if (!SWIG_IsOK(res1)) {
19093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19094 }
19095 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19096 {
19097 PyThreadState* __tstate = wxPyBeginAllowThreads();
19098 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19099 wxPyEndAllowThreads(__tstate);
19100 if (PyErr_Occurred()) SWIG_fail;
19101 }
19102 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19103 return resultobj;
19104fail:
19105 return NULL;
19106}
19107
19108
19109SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19110 PyObject *resultobj = 0;
19111 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19112 size_t arg2 ;
19113 wxWindow *result = 0 ;
19114 void *argp1 = 0 ;
19115 int res1 = 0 ;
19116 size_t val2 ;
19117 int ecode2 = 0 ;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19120 char * kwnames[] = {
19121 (char *) "self",(char *) "n", NULL
19122 };
19123
19124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19126 if (!SWIG_IsOK(res1)) {
19127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19128 }
19129 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19130 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19131 if (!SWIG_IsOK(ecode2)) {
19132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19133 }
19134 arg2 = static_cast< size_t >(val2);
19135 {
19136 PyThreadState* __tstate = wxPyBeginAllowThreads();
19137 result = (wxWindow *)(arg1)->GetPage(arg2);
19138 wxPyEndAllowThreads(__tstate);
19139 if (PyErr_Occurred()) SWIG_fail;
19140 }
19141 {
19142 resultobj = wxPyMake_wxObject(result, 0);
19143 }
19144 return resultobj;
19145fail:
19146 return NULL;
22bfe96c
RD
19147}
19148
19149
0085ce49
RD
19150SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19151 PyObject *resultobj = 0;
19152 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19153 wxWindow *result = 0 ;
19154 void *argp1 = 0 ;
19155 int res1 = 0 ;
19156 PyObject *swig_obj[1] ;
19157
19158 if (!args) SWIG_fail;
19159 swig_obj[0] = args;
19160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19161 if (!SWIG_IsOK(res1)) {
19162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19163 }
19164 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19165 {
19166 PyThreadState* __tstate = wxPyBeginAllowThreads();
19167 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19168 wxPyEndAllowThreads(__tstate);
19169 if (PyErr_Occurred()) SWIG_fail;
19170 }
19171 {
19172 resultobj = wxPyMake_wxObject(result, 0);
19173 }
19174 return resultobj;
19175fail:
19176 return NULL;
d14a1e28
RD
19177}
19178
19179
0085ce49
RD
19180SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19181 PyObject *resultobj = 0;
19182 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19183 int result;
19184 void *argp1 = 0 ;
19185 int res1 = 0 ;
19186 PyObject *swig_obj[1] ;
19187
19188 if (!args) SWIG_fail;
19189 swig_obj[0] = args;
19190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19191 if (!SWIG_IsOK(res1)) {
19192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19193 }
19194 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19195 {
19196 PyThreadState* __tstate = wxPyBeginAllowThreads();
19197 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19198 wxPyEndAllowThreads(__tstate);
19199 if (PyErr_Occurred()) SWIG_fail;
19200 }
19201 resultobj = SWIG_From_int(static_cast< int >(result));
19202 return resultobj;
19203fail:
19204 return NULL;
19205}
19206
19207
19208SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19209 PyObject *resultobj = 0;
19210 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19211 size_t arg2 ;
19212 wxString *arg3 = 0 ;
19213 bool result;
19214 void *argp1 = 0 ;
19215 int res1 = 0 ;
19216 size_t val2 ;
19217 int ecode2 = 0 ;
19218 bool temp3 = false ;
19219 PyObject * obj0 = 0 ;
19220 PyObject * obj1 = 0 ;
19221 PyObject * obj2 = 0 ;
19222 char * kwnames[] = {
19223 (char *) "self",(char *) "n",(char *) "strText", NULL
19224 };
19225
19226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19230 }
19231 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19232 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19233 if (!SWIG_IsOK(ecode2)) {
19234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19235 }
19236 arg2 = static_cast< size_t >(val2);
19237 {
19238 arg3 = wxString_in_helper(obj2);
19239 if (arg3 == NULL) SWIG_fail;
19240 temp3 = true;
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 {
19249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19250 }
19251 {
19252 if (temp3)
19253 delete arg3;
19254 }
19255 return resultobj;
19256fail:
19257 {
19258 if (temp3)
19259 delete arg3;
19260 }
19261 return NULL;
19262}
19263
19264
19265SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19266 PyObject *resultobj = 0;
19267 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19268 size_t arg2 ;
19269 wxString result;
19270 void *argp1 = 0 ;
19271 int res1 = 0 ;
19272 size_t val2 ;
19273 int ecode2 = 0 ;
19274 PyObject * obj0 = 0 ;
19275 PyObject * obj1 = 0 ;
19276 char * kwnames[] = {
19277 (char *) "self",(char *) "n", NULL
19278 };
19279
19280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19282 if (!SWIG_IsOK(res1)) {
19283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19284 }
19285 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19286 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19287 if (!SWIG_IsOK(ecode2)) {
19288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19289 }
19290 arg2 = static_cast< size_t >(val2);
19291 {
19292 PyThreadState* __tstate = wxPyBeginAllowThreads();
19293 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19294 wxPyEndAllowThreads(__tstate);
19295 if (PyErr_Occurred()) SWIG_fail;
19296 }
19297 {
19298#if wxUSE_UNICODE
19299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19300#else
19301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19302#endif
19303 }
19304 return resultobj;
19305fail:
19306 return NULL;
19307}
19308
19309
19310SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj = 0;
19312 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19313 wxImageList *arg2 = (wxImageList *) 0 ;
19314 void *argp1 = 0 ;
19315 int res1 = 0 ;
19316 void *argp2 = 0 ;
19317 int res2 = 0 ;
19318 PyObject * obj0 = 0 ;
19319 PyObject * obj1 = 0 ;
19320 char * kwnames[] = {
19321 (char *) "self",(char *) "imageList", NULL
19322 };
19323
19324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19326 if (!SWIG_IsOK(res1)) {
19327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19328 }
19329 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19331 if (!SWIG_IsOK(res2)) {
19332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19333 }
19334 arg2 = reinterpret_cast< wxImageList * >(argp2);
19335 {
19336 PyThreadState* __tstate = wxPyBeginAllowThreads();
19337 (arg1)->SetImageList(arg2);
19338 wxPyEndAllowThreads(__tstate);
19339 if (PyErr_Occurred()) SWIG_fail;
19340 }
19341 resultobj = SWIG_Py_Void();
19342 return resultobj;
19343fail:
19344 return NULL;
19345}
19346
19347
19348SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19349 PyObject *resultobj = 0;
19350 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19351 wxImageList *arg2 = (wxImageList *) 0 ;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 int res2 = 0 ;
19355 PyObject * obj0 = 0 ;
19356 PyObject * obj1 = 0 ;
19357 char * kwnames[] = {
19358 (char *) "self",(char *) "imageList", NULL
19359 };
19360
19361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19363 if (!SWIG_IsOK(res1)) {
19364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19365 }
19366 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19367 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19368 if (!SWIG_IsOK(res2)) {
19369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19370 }
19371 {
19372 PyThreadState* __tstate = wxPyBeginAllowThreads();
19373 (arg1)->AssignImageList(arg2);
19374 wxPyEndAllowThreads(__tstate);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 resultobj = SWIG_Py_Void();
19378 return resultobj;
19379fail:
19380 return NULL;
d14a1e28
RD
19381}
19382
19383
0085ce49
RD
19384SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19385 PyObject *resultobj = 0;
19386 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19387 wxImageList *result = 0 ;
19388 void *argp1 = 0 ;
19389 int res1 = 0 ;
19390 PyObject *swig_obj[1] ;
19391
19392 if (!args) SWIG_fail;
19393 swig_obj[0] = args;
19394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19395 if (!SWIG_IsOK(res1)) {
19396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19397 }
19398 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19402 wxPyEndAllowThreads(__tstate);
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
19405 {
19406 resultobj = wxPyMake_wxObject(result, (bool)0);
19407 }
19408 return resultobj;
19409fail:
19410 return NULL;
19411}
19412
19413
19414SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj = 0;
19416 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19417 size_t arg2 ;
19418 int result;
19419 void *argp1 = 0 ;
19420 int res1 = 0 ;
19421 size_t val2 ;
19422 int ecode2 = 0 ;
19423 PyObject * obj0 = 0 ;
19424 PyObject * obj1 = 0 ;
19425 char * kwnames[] = {
19426 (char *) "self",(char *) "n", NULL
19427 };
19428
19429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19431 if (!SWIG_IsOK(res1)) {
19432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19433 }
19434 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19435 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19436 if (!SWIG_IsOK(ecode2)) {
19437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19438 }
19439 arg2 = static_cast< size_t >(val2);
19440 {
19441 PyThreadState* __tstate = wxPyBeginAllowThreads();
19442 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19443 wxPyEndAllowThreads(__tstate);
19444 if (PyErr_Occurred()) SWIG_fail;
19445 }
19446 resultobj = SWIG_From_int(static_cast< int >(result));
19447 return resultobj;
19448fail:
19449 return NULL;
19450}
19451
19452
19453SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19454 PyObject *resultobj = 0;
19455 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19456 size_t arg2 ;
19457 int arg3 ;
19458 bool result;
19459 void *argp1 = 0 ;
19460 int res1 = 0 ;
19461 size_t val2 ;
19462 int ecode2 = 0 ;
19463 int val3 ;
19464 int ecode3 = 0 ;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 PyObject * obj2 = 0 ;
19468 char * kwnames[] = {
19469 (char *) "self",(char *) "n",(char *) "imageId", NULL
19470 };
19471
19472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19474 if (!SWIG_IsOK(res1)) {
19475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19476 }
19477 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19478 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19479 if (!SWIG_IsOK(ecode2)) {
19480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19481 }
19482 arg2 = static_cast< size_t >(val2);
19483 ecode3 = SWIG_AsVal_int(obj2, &val3);
19484 if (!SWIG_IsOK(ecode3)) {
19485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19486 }
19487 arg3 = static_cast< int >(val3);
19488 {
19489 PyThreadState* __tstate = wxPyBeginAllowThreads();
19490 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 {
19495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19496 }
19497 return resultobj;
19498fail:
19499 return NULL;
19500}
19501
19502
19503SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19504 PyObject *resultobj = 0;
19505 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19506 wxSize *arg2 = 0 ;
19507 void *argp1 = 0 ;
19508 int res1 = 0 ;
19509 wxSize temp2 ;
19510 PyObject * obj0 = 0 ;
19511 PyObject * obj1 = 0 ;
19512 char * kwnames[] = {
19513 (char *) "self",(char *) "size", NULL
19514 };
19515
19516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19518 if (!SWIG_IsOK(res1)) {
19519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19520 }
19521 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19522 {
19523 arg2 = &temp2;
19524 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19525 }
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 (arg1)->SetPageSize((wxSize const &)*arg2);
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 resultobj = SWIG_Py_Void();
19533 return resultobj;
19534fail:
19535 return NULL;
19536}
19537
19538
19539SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj = 0;
19541 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19542 wxSize *arg2 = 0 ;
19543 wxSize result;
19544 void *argp1 = 0 ;
19545 int res1 = 0 ;
19546 wxSize temp2 ;
19547 PyObject * obj0 = 0 ;
19548 PyObject * obj1 = 0 ;
19549 char * kwnames[] = {
19550 (char *) "self",(char *) "sizePage", NULL
19551 };
19552
19553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19555 if (!SWIG_IsOK(res1)) {
19556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19557 }
19558 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19559 {
19560 arg2 = &temp2;
19561 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19562 }
19563 {
19564 PyThreadState* __tstate = wxPyBeginAllowThreads();
19565 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19566 wxPyEndAllowThreads(__tstate);
19567 if (PyErr_Occurred()) SWIG_fail;
19568 }
19569 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19570 return resultobj;
19571fail:
19572 return NULL;
d14a1e28
RD
19573}
19574
19575
0085ce49
RD
19576SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19577 PyObject *resultobj = 0;
19578 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19579 unsigned int result;
0085ce49
RD
19580 void *argp1 = 0 ;
19581 int res1 = 0 ;
19582 PyObject *swig_obj[1] ;
19583
19584 if (!args) SWIG_fail;
19585 swig_obj[0] = args;
19586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19587 if (!SWIG_IsOK(res1)) {
19588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19589 }
19590 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19591 {
19592 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19593 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19594 wxPyEndAllowThreads(__tstate);
19595 if (PyErr_Occurred()) SWIG_fail;
19596 }
e9d6f3a4 19597 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19598 return resultobj;
19599fail:
19600 return NULL;
19601}
19602
19603
19604SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19605 PyObject *resultobj = 0;
19606 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19607 unsigned int arg2 ;
0085ce49
RD
19608 void *argp1 = 0 ;
19609 int res1 = 0 ;
e9d6f3a4 19610 unsigned int val2 ;
0085ce49
RD
19611 int ecode2 = 0 ;
19612 PyObject * obj0 = 0 ;
19613 PyObject * obj1 = 0 ;
19614 char * kwnames[] = {
19615 (char *) "self",(char *) "internalBorder", NULL
19616 };
19617
19618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19620 if (!SWIG_IsOK(res1)) {
19621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19622 }
19623 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19624 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19625 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19627 }
e9d6f3a4 19628 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 (arg1)->SetInternalBorder(arg2);
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
19635 resultobj = SWIG_Py_Void();
19636 return resultobj;
19637fail:
19638 return NULL;
b2dc1044
RD
19639}
19640
19641
0085ce49
RD
19642SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19643 PyObject *resultobj = 0;
19644 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19645 bool result;
19646 void *argp1 = 0 ;
19647 int res1 = 0 ;
19648 PyObject *swig_obj[1] ;
19649
19650 if (!args) SWIG_fail;
19651 swig_obj[0] = args;
19652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19653 if (!SWIG_IsOK(res1)) {
19654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19655 }
19656 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19657 {
19658 PyThreadState* __tstate = wxPyBeginAllowThreads();
19659 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19660 wxPyEndAllowThreads(__tstate);
19661 if (PyErr_Occurred()) SWIG_fail;
19662 }
19663 {
19664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19665 }
19666 return resultobj;
19667fail:
19668 return NULL;
19669}
19670
19671
e9d6f3a4
RD
19672SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19673 PyObject *resultobj = 0;
19674 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19675 int arg2 ;
19676 void *argp1 = 0 ;
19677 int res1 = 0 ;
19678 int val2 ;
19679 int ecode2 = 0 ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 char * kwnames[] = {
19683 (char *) "self",(char *) "margin", NULL
19684 };
19685
19686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19688 if (!SWIG_IsOK(res1)) {
19689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19690 }
19691 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19692 ecode2 = SWIG_AsVal_int(obj1, &val2);
19693 if (!SWIG_IsOK(ecode2)) {
19694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19695 }
19696 arg2 = static_cast< int >(val2);
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 (arg1)->SetControlMargin(arg2);
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 resultobj = SWIG_Py_Void();
19704 return resultobj;
19705fail:
19706 return NULL;
19707}
19708
19709
19710SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19711 PyObject *resultobj = 0;
19712 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19713 int result;
19714 void *argp1 = 0 ;
19715 int res1 = 0 ;
19716 PyObject *swig_obj[1] ;
19717
19718 if (!args) SWIG_fail;
19719 swig_obj[0] = args;
19720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19721 if (!SWIG_IsOK(res1)) {
19722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19723 }
19724 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19725 {
19726 PyThreadState* __tstate = wxPyBeginAllowThreads();
19727 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19728 wxPyEndAllowThreads(__tstate);
19729 if (PyErr_Occurred()) SWIG_fail;
19730 }
19731 resultobj = SWIG_From_int(static_cast< int >(result));
19732 return resultobj;
19733fail:
19734 return NULL;
19735}
19736
19737
0085ce49
RD
19738SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19739 PyObject *resultobj = 0;
19740 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19741 bool arg2 ;
19742 void *argp1 = 0 ;
19743 int res1 = 0 ;
19744 bool val2 ;
19745 int ecode2 = 0 ;
19746 PyObject * obj0 = 0 ;
19747 PyObject * obj1 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "self",(char *) "fit", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19756 }
19757 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19758 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19759 if (!SWIG_IsOK(ecode2)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19761 }
19762 arg2 = static_cast< bool >(val2);
19763 {
19764 PyThreadState* __tstate = wxPyBeginAllowThreads();
19765 (arg1)->SetFitToCurrentPage(arg2);
19766 wxPyEndAllowThreads(__tstate);
19767 if (PyErr_Occurred()) SWIG_fail;
19768 }
19769 resultobj = SWIG_Py_Void();
19770 return resultobj;
19771fail:
19772 return NULL;
d14a1e28
RD
19773}
19774
19775
0085ce49
RD
19776SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19777 PyObject *resultobj = 0;
19778 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19779 bool result;
19780 void *argp1 = 0 ;
19781 int res1 = 0 ;
19782 PyObject *swig_obj[1] ;
19783
19784 if (!args) SWIG_fail;
19785 swig_obj[0] = args;
19786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19787 if (!SWIG_IsOK(res1)) {
19788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19789 }
19790 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19791 {
19792 PyThreadState* __tstate = wxPyBeginAllowThreads();
19793 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19794 wxPyEndAllowThreads(__tstate);
19795 if (PyErr_Occurred()) SWIG_fail;
19796 }
19797 {
19798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19799 }
19800 return resultobj;
19801fail:
19802 return NULL;
19803}
19804
19805
e9d6f3a4
RD
19806SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19807 PyObject *resultobj = 0;
19808 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19809 wxSizer *result = 0 ;
19810 void *argp1 = 0 ;
19811 int res1 = 0 ;
19812 PyObject *swig_obj[1] ;
19813
19814 if (!args) SWIG_fail;
19815 swig_obj[0] = args;
19816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19817 if (!SWIG_IsOK(res1)) {
19818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19819 }
19820 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 {
19828 resultobj = wxPyMake_wxObject(result, (bool)0);
19829 }
19830 return resultobj;
19831fail:
19832 return NULL;
19833}
19834
19835
0085ce49
RD
19836SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj = 0;
19838 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19839 size_t arg2 ;
19840 bool result;
19841 void *argp1 = 0 ;
19842 int res1 = 0 ;
19843 size_t val2 ;
19844 int ecode2 = 0 ;
19845 PyObject * obj0 = 0 ;
19846 PyObject * obj1 = 0 ;
19847 char * kwnames[] = {
19848 (char *) "self",(char *) "n", NULL
19849 };
19850
19851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19853 if (!SWIG_IsOK(res1)) {
19854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19855 }
19856 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19857 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19858 if (!SWIG_IsOK(ecode2)) {
19859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19860 }
19861 arg2 = static_cast< size_t >(val2);
19862 {
19863 PyThreadState* __tstate = wxPyBeginAllowThreads();
19864 result = (bool)(arg1)->DeletePage(arg2);
19865 wxPyEndAllowThreads(__tstate);
19866 if (PyErr_Occurred()) SWIG_fail;
19867 }
19868 {
19869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19870 }
19871 return resultobj;
19872fail:
19873 return NULL;
19874}
19875
19876
19877SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19878 PyObject *resultobj = 0;
19879 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19880 size_t arg2 ;
19881 bool result;
19882 void *argp1 = 0 ;
19883 int res1 = 0 ;
19884 size_t val2 ;
19885 int ecode2 = 0 ;
19886 PyObject * obj0 = 0 ;
19887 PyObject * obj1 = 0 ;
19888 char * kwnames[] = {
19889 (char *) "self",(char *) "n", NULL
19890 };
19891
19892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19894 if (!SWIG_IsOK(res1)) {
19895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19896 }
19897 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19898 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19899 if (!SWIG_IsOK(ecode2)) {
19900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19901 }
19902 arg2 = static_cast< size_t >(val2);
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 result = (bool)(arg1)->RemovePage(arg2);
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 {
19910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19911 }
19912 return resultobj;
19913fail:
19914 return NULL;
d14a1e28
RD
19915}
19916
19917
0085ce49
RD
19918SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19919 PyObject *resultobj = 0;
19920 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19921 bool result;
19922 void *argp1 = 0 ;
19923 int res1 = 0 ;
19924 PyObject *swig_obj[1] ;
19925
19926 if (!args) SWIG_fail;
19927 swig_obj[0] = args;
19928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19929 if (!SWIG_IsOK(res1)) {
19930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19931 }
19932 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19933 {
19934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19935 result = (bool)(arg1)->DeleteAllPages();
19936 wxPyEndAllowThreads(__tstate);
19937 if (PyErr_Occurred()) SWIG_fail;
19938 }
19939 {
19940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19941 }
19942 return resultobj;
19943fail:
19944 return NULL;
19945}
19946
19947
19948SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19949 PyObject *resultobj = 0;
19950 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19951 wxWindow *arg2 = (wxWindow *) 0 ;
19952 wxString *arg3 = 0 ;
19953 bool arg4 = (bool) false ;
19954 int arg5 = (int) -1 ;
19955 bool result;
19956 void *argp1 = 0 ;
19957 int res1 = 0 ;
19958 void *argp2 = 0 ;
19959 int res2 = 0 ;
19960 bool temp3 = false ;
19961 bool val4 ;
19962 int ecode4 = 0 ;
19963 int val5 ;
19964 int ecode5 = 0 ;
19965 PyObject * obj0 = 0 ;
19966 PyObject * obj1 = 0 ;
19967 PyObject * obj2 = 0 ;
19968 PyObject * obj3 = 0 ;
19969 PyObject * obj4 = 0 ;
19970 char * kwnames[] = {
19971 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19972 };
19973
19974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19976 if (!SWIG_IsOK(res1)) {
19977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19978 }
19979 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19980 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19981 if (!SWIG_IsOK(res2)) {
19982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19983 }
19984 arg2 = reinterpret_cast< wxWindow * >(argp2);
19985 {
19986 arg3 = wxString_in_helper(obj2);
19987 if (arg3 == NULL) SWIG_fail;
19988 temp3 = true;
19989 }
19990 if (obj3) {
19991 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19992 if (!SWIG_IsOK(ecode4)) {
19993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19994 }
19995 arg4 = static_cast< bool >(val4);
19996 }
19997 if (obj4) {
19998 ecode5 = SWIG_AsVal_int(obj4, &val5);
19999 if (!SWIG_IsOK(ecode5)) {
20000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20001 }
20002 arg5 = static_cast< int >(val5);
20003 }
20004 {
20005 PyThreadState* __tstate = wxPyBeginAllowThreads();
20006 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
20010 {
20011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20012 }
20013 {
20014 if (temp3)
20015 delete arg3;
20016 }
20017 return resultobj;
20018fail:
20019 {
20020 if (temp3)
20021 delete arg3;
20022 }
20023 return NULL;
20024}
20025
20026
20027SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj = 0;
20029 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20030 size_t arg2 ;
20031 wxWindow *arg3 = (wxWindow *) 0 ;
20032 wxString *arg4 = 0 ;
20033 bool arg5 = (bool) false ;
20034 int arg6 = (int) -1 ;
20035 bool result;
20036 void *argp1 = 0 ;
20037 int res1 = 0 ;
20038 size_t val2 ;
20039 int ecode2 = 0 ;
20040 void *argp3 = 0 ;
20041 int res3 = 0 ;
20042 bool temp4 = false ;
20043 bool val5 ;
20044 int ecode5 = 0 ;
20045 int val6 ;
20046 int ecode6 = 0 ;
20047 PyObject * obj0 = 0 ;
20048 PyObject * obj1 = 0 ;
20049 PyObject * obj2 = 0 ;
20050 PyObject * obj3 = 0 ;
20051 PyObject * obj4 = 0 ;
20052 PyObject * obj5 = 0 ;
20053 char * kwnames[] = {
20054 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20055 };
20056
20057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20059 if (!SWIG_IsOK(res1)) {
20060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20061 }
20062 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20063 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20064 if (!SWIG_IsOK(ecode2)) {
20065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20066 }
20067 arg2 = static_cast< size_t >(val2);
20068 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20069 if (!SWIG_IsOK(res3)) {
20070 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20071 }
20072 arg3 = reinterpret_cast< wxWindow * >(argp3);
20073 {
20074 arg4 = wxString_in_helper(obj3);
20075 if (arg4 == NULL) SWIG_fail;
20076 temp4 = true;
20077 }
20078 if (obj4) {
20079 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20080 if (!SWIG_IsOK(ecode5)) {
20081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20082 }
20083 arg5 = static_cast< bool >(val5);
20084 }
20085 if (obj5) {
20086 ecode6 = SWIG_AsVal_int(obj5, &val6);
20087 if (!SWIG_IsOK(ecode6)) {
20088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20089 }
20090 arg6 = static_cast< int >(val6);
20091 }
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20095 wxPyEndAllowThreads(__tstate);
20096 if (PyErr_Occurred()) SWIG_fail;
20097 }
20098 {
20099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20100 }
20101 {
20102 if (temp4)
20103 delete arg4;
20104 }
20105 return resultobj;
20106fail:
20107 {
20108 if (temp4)
20109 delete arg4;
20110 }
20111 return NULL;
20112}
20113
20114
20115SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj = 0;
20117 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20118 size_t arg2 ;
20119 int result;
20120 void *argp1 = 0 ;
20121 int res1 = 0 ;
20122 size_t val2 ;
20123 int ecode2 = 0 ;
20124 PyObject * obj0 = 0 ;
20125 PyObject * obj1 = 0 ;
20126 char * kwnames[] = {
20127 (char *) "self",(char *) "n", NULL
20128 };
20129
20130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20132 if (!SWIG_IsOK(res1)) {
20133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20134 }
20135 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20136 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20137 if (!SWIG_IsOK(ecode2)) {
20138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20139 }
20140 arg2 = static_cast< size_t >(val2);
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 result = (int)(arg1)->SetSelection(arg2);
20144 wxPyEndAllowThreads(__tstate);
20145 if (PyErr_Occurred()) SWIG_fail;
20146 }
20147 resultobj = SWIG_From_int(static_cast< int >(result));
20148 return resultobj;
20149fail:
20150 return NULL;
20151}
20152
20153
20154SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20155 PyObject *resultobj = 0;
20156 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20157 bool arg2 = (bool) true ;
20158 void *argp1 = 0 ;
20159 int res1 = 0 ;
20160 bool val2 ;
20161 int ecode2 = 0 ;
20162 PyObject * obj0 = 0 ;
20163 PyObject * obj1 = 0 ;
20164 char * kwnames[] = {
20165 (char *) "self",(char *) "forward", NULL
20166 };
20167
20168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20170 if (!SWIG_IsOK(res1)) {
20171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20172 }
20173 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20174 if (obj1) {
20175 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20176 if (!SWIG_IsOK(ecode2)) {
20177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20178 }
20179 arg2 = static_cast< bool >(val2);
20180 }
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 (arg1)->AdvanceSelection(arg2);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = SWIG_Py_Void();
20188 return resultobj;
20189fail:
20190 return NULL;
20191}
20192
20193
704eda0c
RD
20194SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20197 wxPoint *arg2 = 0 ;
20198 long *arg3 = (long *) 0 ;
20199 int result;
20200 void *argp1 = 0 ;
20201 int res1 = 0 ;
20202 wxPoint temp2 ;
20203 long temp3 ;
20204 int res3 = SWIG_TMPOBJ ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "pt", NULL
20209 };
20210
20211 arg3 = &temp3;
20212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20214 if (!SWIG_IsOK(res1)) {
20215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20216 }
20217 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20218 {
20219 arg2 = &temp2;
20220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20221 }
20222 {
20223 PyThreadState* __tstate = wxPyBeginAllowThreads();
20224 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20225 wxPyEndAllowThreads(__tstate);
20226 if (PyErr_Occurred()) SWIG_fail;
20227 }
20228 resultobj = SWIG_From_int(static_cast< int >(result));
20229 if (SWIG_IsTmpObj(res3)) {
20230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20231 } else {
20232 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20234 }
20235 return resultobj;
20236fail:
20237 return NULL;
20238}
20239
20240
0085ce49
RD
20241SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20242 PyObject *resultobj = 0;
20243 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20244 SwigValueWrapper<wxVisualAttributes > result;
20245 int val1 ;
20246 int ecode1 = 0 ;
20247 PyObject * obj0 = 0 ;
20248 char * kwnames[] = {
20249 (char *) "variant", NULL
20250 };
20251
20252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20253 if (obj0) {
20254 ecode1 = SWIG_AsVal_int(obj0, &val1);
20255 if (!SWIG_IsOK(ecode1)) {
20256 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20257 }
20258 arg1 = static_cast< wxWindowVariant >(val1);
20259 }
20260 {
20261 if (!wxPyCheckForApp()) SWIG_fail;
20262 PyThreadState* __tstate = wxPyBeginAllowThreads();
20263 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20264 wxPyEndAllowThreads(__tstate);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 }
20267 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20268 return resultobj;
20269fail:
20270 return NULL;
20271}
20272
20273
20274SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20275 PyObject *obj;
20276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20277 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20278 return SWIG_Py_Void();
20279}
20280
20281SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20282 PyObject *resultobj = 0;
20283 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20284 int arg2 = (int) 0 ;
20285 int arg3 = (int) -1 ;
20286 int arg4 = (int) -1 ;
20287 wxBookCtrlBaseEvent *result = 0 ;
20288 int val1 ;
20289 int ecode1 = 0 ;
20290 int val2 ;
20291 int ecode2 = 0 ;
20292 int val3 ;
20293 int ecode3 = 0 ;
20294 int val4 ;
20295 int ecode4 = 0 ;
20296 PyObject * obj0 = 0 ;
20297 PyObject * obj1 = 0 ;
20298 PyObject * obj2 = 0 ;
20299 PyObject * obj3 = 0 ;
20300 char * kwnames[] = {
20301 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20302 };
20303
20304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20305 if (obj0) {
20306 ecode1 = SWIG_AsVal_int(obj0, &val1);
20307 if (!SWIG_IsOK(ecode1)) {
20308 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20309 }
20310 arg1 = static_cast< wxEventType >(val1);
20311 }
20312 if (obj1) {
20313 ecode2 = SWIG_AsVal_int(obj1, &val2);
20314 if (!SWIG_IsOK(ecode2)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20316 }
20317 arg2 = static_cast< int >(val2);
20318 }
20319 if (obj2) {
20320 ecode3 = SWIG_AsVal_int(obj2, &val3);
20321 if (!SWIG_IsOK(ecode3)) {
20322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20323 }
20324 arg3 = static_cast< int >(val3);
20325 }
20326 if (obj3) {
20327 ecode4 = SWIG_AsVal_int(obj3, &val4);
20328 if (!SWIG_IsOK(ecode4)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20330 }
20331 arg4 = static_cast< int >(val4);
20332 }
20333 {
20334 PyThreadState* __tstate = wxPyBeginAllowThreads();
20335 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20336 wxPyEndAllowThreads(__tstate);
20337 if (PyErr_Occurred()) SWIG_fail;
20338 }
20339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20340 return resultobj;
20341fail:
20342 return NULL;
d14a1e28
RD
20343}
20344
20345
0085ce49
RD
20346SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20347 PyObject *resultobj = 0;
20348 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20349 int result;
20350 void *argp1 = 0 ;
20351 int res1 = 0 ;
20352 PyObject *swig_obj[1] ;
20353
20354 if (!args) SWIG_fail;
20355 swig_obj[0] = args;
20356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20357 if (!SWIG_IsOK(res1)) {
20358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20359 }
20360 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20361 {
20362 PyThreadState* __tstate = wxPyBeginAllowThreads();
20363 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20364 wxPyEndAllowThreads(__tstate);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 }
20367 resultobj = SWIG_From_int(static_cast< int >(result));
20368 return resultobj;
20369fail:
20370 return NULL;
20371}
20372
20373
20374SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj = 0;
20376 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20377 int arg2 ;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 int val2 ;
20381 int ecode2 = 0 ;
20382 PyObject * obj0 = 0 ;
20383 PyObject * obj1 = 0 ;
20384 char * kwnames[] = {
20385 (char *) "self",(char *) "nSel", NULL
20386 };
20387
20388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20390 if (!SWIG_IsOK(res1)) {
20391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20392 }
20393 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20394 ecode2 = SWIG_AsVal_int(obj1, &val2);
20395 if (!SWIG_IsOK(ecode2)) {
20396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20397 }
20398 arg2 = static_cast< int >(val2);
20399 {
20400 PyThreadState* __tstate = wxPyBeginAllowThreads();
20401 (arg1)->SetSelection(arg2);
20402 wxPyEndAllowThreads(__tstate);
20403 if (PyErr_Occurred()) SWIG_fail;
20404 }
20405 resultobj = SWIG_Py_Void();
20406 return resultobj;
20407fail:
20408 return NULL;
d14a1e28
RD
20409}
20410
20411
0085ce49
RD
20412SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20413 PyObject *resultobj = 0;
20414 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20415 int result;
20416 void *argp1 = 0 ;
20417 int res1 = 0 ;
20418 PyObject *swig_obj[1] ;
20419
20420 if (!args) SWIG_fail;
20421 swig_obj[0] = args;
20422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20423 if (!SWIG_IsOK(res1)) {
20424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20425 }
20426 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20427 {
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20430 wxPyEndAllowThreads(__tstate);
20431 if (PyErr_Occurred()) SWIG_fail;
20432 }
20433 resultobj = SWIG_From_int(static_cast< int >(result));
20434 return resultobj;
20435fail:
20436 return NULL;
20437}
20438
20439
20440SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20441 PyObject *resultobj = 0;
20442 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20443 int arg2 ;
20444 void *argp1 = 0 ;
20445 int res1 = 0 ;
20446 int val2 ;
20447 int ecode2 = 0 ;
20448 PyObject * obj0 = 0 ;
20449 PyObject * obj1 = 0 ;
20450 char * kwnames[] = {
20451 (char *) "self",(char *) "nOldSel", NULL
20452 };
20453
20454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20456 if (!SWIG_IsOK(res1)) {
20457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20458 }
20459 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20460 ecode2 = SWIG_AsVal_int(obj1, &val2);
20461 if (!SWIG_IsOK(ecode2)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20463 }
20464 arg2 = static_cast< int >(val2);
20465 {
20466 PyThreadState* __tstate = wxPyBeginAllowThreads();
20467 (arg1)->SetOldSelection(arg2);
20468 wxPyEndAllowThreads(__tstate);
20469 if (PyErr_Occurred()) SWIG_fail;
20470 }
20471 resultobj = SWIG_Py_Void();
20472 return resultobj;
20473fail:
20474 return NULL;
20475}
20476
20477
20478SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20479 PyObject *obj;
20480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20481 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20482 return SWIG_Py_Void();
20483}
20484
20485SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20486 return SWIG_Python_InitShadowInstance(args);
20487}
20488
20489SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj = 0;
20491 wxWindow *arg1 = (wxWindow *) 0 ;
20492 int arg2 = (int) -1 ;
20493 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20494 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20495 wxSize const &arg4_defvalue = wxDefaultSize ;
20496 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20497 long arg5 = (long) 0 ;
20498 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20499 wxString *arg6 = (wxString *) &arg6_defvalue ;
20500 wxNotebook *result = 0 ;
20501 void *argp1 = 0 ;
20502 int res1 = 0 ;
20503 int val2 ;
20504 int ecode2 = 0 ;
20505 wxPoint temp3 ;
20506 wxSize temp4 ;
20507 long val5 ;
20508 int ecode5 = 0 ;
20509 bool temp6 = false ;
20510 PyObject * obj0 = 0 ;
20511 PyObject * obj1 = 0 ;
20512 PyObject * obj2 = 0 ;
20513 PyObject * obj3 = 0 ;
20514 PyObject * obj4 = 0 ;
20515 PyObject * obj5 = 0 ;
20516 char * kwnames[] = {
20517 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20518 };
20519
20520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20522 if (!SWIG_IsOK(res1)) {
20523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20524 }
20525 arg1 = reinterpret_cast< wxWindow * >(argp1);
20526 if (obj1) {
20527 ecode2 = SWIG_AsVal_int(obj1, &val2);
20528 if (!SWIG_IsOK(ecode2)) {
20529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20530 }
20531 arg2 = static_cast< int >(val2);
20532 }
20533 if (obj2) {
093d3ff1 20534 {
0085ce49
RD
20535 arg3 = &temp3;
20536 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20537 }
0085ce49
RD
20538 }
20539 if (obj3) {
d14a1e28 20540 {
0085ce49
RD
20541 arg4 = &temp4;
20542 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20543 }
0085ce49
RD
20544 }
20545 if (obj4) {
20546 ecode5 = SWIG_AsVal_long(obj4, &val5);
20547 if (!SWIG_IsOK(ecode5)) {
20548 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20549 }
20550 arg5 = static_cast< long >(val5);
20551 }
20552 if (obj5) {
093d3ff1 20553 {
0085ce49
RD
20554 arg6 = wxString_in_helper(obj5);
20555 if (arg6 == NULL) SWIG_fail;
20556 temp6 = true;
093d3ff1 20557 }
0085ce49
RD
20558 }
20559 {
20560 if (!wxPyCheckForApp()) SWIG_fail;
20561 PyThreadState* __tstate = wxPyBeginAllowThreads();
20562 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20563 wxPyEndAllowThreads(__tstate);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 }
20566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20567 {
20568 if (temp6)
20569 delete arg6;
20570 }
20571 return resultobj;
20572fail:
20573 {
20574 if (temp6)
20575 delete arg6;
20576 }
20577 return NULL;
d14a1e28
RD
20578}
20579
20580
0085ce49
RD
20581SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20582 PyObject *resultobj = 0;
20583 wxNotebook *result = 0 ;
20584
20585 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20586 {
20587 if (!wxPyCheckForApp()) SWIG_fail;
20588 PyThreadState* __tstate = wxPyBeginAllowThreads();
20589 result = (wxNotebook *)new wxNotebook();
20590 wxPyEndAllowThreads(__tstate);
20591 if (PyErr_Occurred()) SWIG_fail;
20592 }
20593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20594 return resultobj;
20595fail:
20596 return NULL;
20597}
20598
20599
20600SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20601 PyObject *resultobj = 0;
20602 wxNotebook *arg1 = (wxNotebook *) 0 ;
20603 wxWindow *arg2 = (wxWindow *) 0 ;
20604 int arg3 = (int) -1 ;
20605 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20606 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20607 wxSize const &arg5_defvalue = wxDefaultSize ;
20608 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20609 long arg6 = (long) 0 ;
20610 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20611 wxString *arg7 = (wxString *) &arg7_defvalue ;
20612 bool result;
20613 void *argp1 = 0 ;
20614 int res1 = 0 ;
20615 void *argp2 = 0 ;
20616 int res2 = 0 ;
20617 int val3 ;
20618 int ecode3 = 0 ;
20619 wxPoint temp4 ;
20620 wxSize temp5 ;
20621 long val6 ;
20622 int ecode6 = 0 ;
20623 bool temp7 = false ;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 PyObject * obj2 = 0 ;
20627 PyObject * obj3 = 0 ;
20628 PyObject * obj4 = 0 ;
20629 PyObject * obj5 = 0 ;
20630 PyObject * obj6 = 0 ;
20631 char * kwnames[] = {
20632 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20633 };
20634
20635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20637 if (!SWIG_IsOK(res1)) {
20638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20639 }
20640 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20641 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20642 if (!SWIG_IsOK(res2)) {
20643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20644 }
20645 arg2 = reinterpret_cast< wxWindow * >(argp2);
20646 if (obj2) {
20647 ecode3 = SWIG_AsVal_int(obj2, &val3);
20648 if (!SWIG_IsOK(ecode3)) {
20649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20650 }
20651 arg3 = static_cast< int >(val3);
20652 }
20653 if (obj3) {
093d3ff1 20654 {
0085ce49
RD
20655 arg4 = &temp4;
20656 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20657 }
0085ce49
RD
20658 }
20659 if (obj4) {
d14a1e28 20660 {
0085ce49
RD
20661 arg5 = &temp5;
20662 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20663 }
0085ce49
RD
20664 }
20665 if (obj5) {
20666 ecode6 = SWIG_AsVal_long(obj5, &val6);
20667 if (!SWIG_IsOK(ecode6)) {
20668 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20669 }
20670 arg6 = static_cast< long >(val6);
20671 }
20672 if (obj6) {
4f89f6a3 20673 {
0085ce49
RD
20674 arg7 = wxString_in_helper(obj6);
20675 if (arg7 == NULL) SWIG_fail;
20676 temp7 = true;
4f89f6a3 20677 }
0085ce49
RD
20678 }
20679 {
20680 PyThreadState* __tstate = wxPyBeginAllowThreads();
20681 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20682 wxPyEndAllowThreads(__tstate);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 }
20685 {
20686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20687 }
20688 {
20689 if (temp7)
20690 delete arg7;
20691 }
20692 return resultobj;
20693fail:
20694 {
20695 if (temp7)
20696 delete arg7;
20697 }
20698 return NULL;
d14a1e28
RD
20699}
20700
20701
0085ce49
RD
20702SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20703 PyObject *resultobj = 0;
20704 wxNotebook *arg1 = (wxNotebook *) 0 ;
20705 int result;
20706 void *argp1 = 0 ;
20707 int res1 = 0 ;
20708 PyObject *swig_obj[1] ;
20709
20710 if (!args) SWIG_fail;
20711 swig_obj[0] = args;
20712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20713 if (!SWIG_IsOK(res1)) {
20714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20715 }
20716 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_From_int(static_cast< int >(result));
20724 return resultobj;
20725fail:
20726 return NULL;
20727}
20728
20729
20730SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj = 0;
20732 wxNotebook *arg1 = (wxNotebook *) 0 ;
20733 wxSize *arg2 = 0 ;
20734 void *argp1 = 0 ;
20735 int res1 = 0 ;
20736 wxSize temp2 ;
20737 PyObject * obj0 = 0 ;
20738 PyObject * obj1 = 0 ;
20739 char * kwnames[] = {
20740 (char *) "self",(char *) "padding", NULL
20741 };
20742
20743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20745 if (!SWIG_IsOK(res1)) {
20746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20747 }
20748 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20749 {
20750 arg2 = &temp2;
20751 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20752 }
20753 {
20754 PyThreadState* __tstate = wxPyBeginAllowThreads();
20755 (arg1)->SetPadding((wxSize const &)*arg2);
20756 wxPyEndAllowThreads(__tstate);
20757 if (PyErr_Occurred()) SWIG_fail;
20758 }
20759 resultobj = SWIG_Py_Void();
20760 return resultobj;
20761fail:
20762 return NULL;
20763}
20764
20765
20766SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20767 PyObject *resultobj = 0;
20768 wxNotebook *arg1 = (wxNotebook *) 0 ;
20769 wxSize *arg2 = 0 ;
20770 void *argp1 = 0 ;
20771 int res1 = 0 ;
20772 wxSize temp2 ;
20773 PyObject * obj0 = 0 ;
20774 PyObject * obj1 = 0 ;
20775 char * kwnames[] = {
20776 (char *) "self",(char *) "sz", NULL
20777 };
20778
20779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20781 if (!SWIG_IsOK(res1)) {
20782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20783 }
20784 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20785 {
20786 arg2 = &temp2;
20787 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20788 }
20789 {
20790 PyThreadState* __tstate = wxPyBeginAllowThreads();
20791 (arg1)->SetTabSize((wxSize const &)*arg2);
20792 wxPyEndAllowThreads(__tstate);
20793 if (PyErr_Occurred()) SWIG_fail;
20794 }
20795 resultobj = SWIG_Py_Void();
20796 return resultobj;
20797fail:
20798 return NULL;
20799}
20800
20801
0085ce49
RD
20802SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20803 PyObject *resultobj = 0;
20804 wxNotebook *arg1 = (wxNotebook *) 0 ;
20805 wxColour result;
20806 void *argp1 = 0 ;
20807 int res1 = 0 ;
20808 PyObject *swig_obj[1] ;
20809
20810 if (!args) SWIG_fail;
20811 swig_obj[0] = args;
20812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20813 if (!SWIG_IsOK(res1)) {
20814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20815 }
20816 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20817 {
20818 PyThreadState* __tstate = wxPyBeginAllowThreads();
20819 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20824 return resultobj;
20825fail:
20826 return NULL;
20827}
20828
20829
20830SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20831 PyObject *resultobj = 0;
20832 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20833 SwigValueWrapper<wxVisualAttributes > result;
20834 int val1 ;
20835 int ecode1 = 0 ;
20836 PyObject * obj0 = 0 ;
20837 char * kwnames[] = {
20838 (char *) "variant", NULL
20839 };
20840
20841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20842 if (obj0) {
20843 ecode1 = SWIG_AsVal_int(obj0, &val1);
20844 if (!SWIG_IsOK(ecode1)) {
20845 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20846 }
20847 arg1 = static_cast< wxWindowVariant >(val1);
20848 }
20849 {
20850 if (!wxPyCheckForApp()) SWIG_fail;
20851 PyThreadState* __tstate = wxPyBeginAllowThreads();
20852 result = wxNotebook::GetClassDefaultAttributes(arg1);
20853 wxPyEndAllowThreads(__tstate);
20854 if (PyErr_Occurred()) SWIG_fail;
20855 }
20856 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20857 return resultobj;
20858fail:
20859 return NULL;
20860}
20861
20862
20863SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20864 PyObject *obj;
20865 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20866 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20867 return SWIG_Py_Void();
20868}
20869
20870SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20871 return SWIG_Python_InitShadowInstance(args);
20872}
20873
20874SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20875 PyObject *resultobj = 0;
20876 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20877 int arg2 = (int) 0 ;
20878 int arg3 = (int) -1 ;
20879 int arg4 = (int) -1 ;
20880 wxNotebookEvent *result = 0 ;
20881 int val1 ;
20882 int ecode1 = 0 ;
20883 int val2 ;
20884 int ecode2 = 0 ;
20885 int val3 ;
20886 int ecode3 = 0 ;
20887 int val4 ;
20888 int ecode4 = 0 ;
20889 PyObject * obj0 = 0 ;
20890 PyObject * obj1 = 0 ;
20891 PyObject * obj2 = 0 ;
20892 PyObject * obj3 = 0 ;
20893 char * kwnames[] = {
20894 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20895 };
20896
20897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20898 if (obj0) {
20899 ecode1 = SWIG_AsVal_int(obj0, &val1);
20900 if (!SWIG_IsOK(ecode1)) {
20901 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20902 }
20903 arg1 = static_cast< wxEventType >(val1);
20904 }
20905 if (obj1) {
20906 ecode2 = SWIG_AsVal_int(obj1, &val2);
20907 if (!SWIG_IsOK(ecode2)) {
20908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20909 }
20910 arg2 = static_cast< int >(val2);
20911 }
20912 if (obj2) {
20913 ecode3 = SWIG_AsVal_int(obj2, &val3);
20914 if (!SWIG_IsOK(ecode3)) {
20915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20916 }
20917 arg3 = static_cast< int >(val3);
20918 }
20919 if (obj3) {
20920 ecode4 = SWIG_AsVal_int(obj3, &val4);
20921 if (!SWIG_IsOK(ecode4)) {
20922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20923 }
20924 arg4 = static_cast< int >(val4);
20925 }
20926 {
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20929 wxPyEndAllowThreads(__tstate);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20933 return resultobj;
20934fail:
20935 return NULL;
20936}
20937
20938
20939SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20940 PyObject *obj;
20941 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20942 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20943 return SWIG_Py_Void();
20944}
20945
20946SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20947 return SWIG_Python_InitShadowInstance(args);
20948}
20949
20950SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20951 PyObject *resultobj = 0;
20952 wxWindow *arg1 = (wxWindow *) 0 ;
20953 int arg2 = (int) -1 ;
20954 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20955 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20956 wxSize const &arg4_defvalue = wxDefaultSize ;
20957 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20958 long arg5 = (long) 0 ;
20959 wxString const &arg6_defvalue = wxPyEmptyString ;
20960 wxString *arg6 = (wxString *) &arg6_defvalue ;
20961 wxListbook *result = 0 ;
20962 void *argp1 = 0 ;
20963 int res1 = 0 ;
20964 int val2 ;
20965 int ecode2 = 0 ;
20966 wxPoint temp3 ;
20967 wxSize temp4 ;
20968 long val5 ;
20969 int ecode5 = 0 ;
20970 bool temp6 = false ;
20971 PyObject * obj0 = 0 ;
20972 PyObject * obj1 = 0 ;
20973 PyObject * obj2 = 0 ;
20974 PyObject * obj3 = 0 ;
20975 PyObject * obj4 = 0 ;
20976 PyObject * obj5 = 0 ;
20977 char * kwnames[] = {
20978 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20979 };
20980
20981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20983 if (!SWIG_IsOK(res1)) {
20984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20985 }
20986 arg1 = reinterpret_cast< wxWindow * >(argp1);
20987 if (obj1) {
20988 ecode2 = SWIG_AsVal_int(obj1, &val2);
20989 if (!SWIG_IsOK(ecode2)) {
20990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20991 }
20992 arg2 = static_cast< int >(val2);
20993 }
20994 if (obj2) {
093d3ff1 20995 {
0085ce49
RD
20996 arg3 = &temp3;
20997 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20998 }
0085ce49
RD
20999 }
21000 if (obj3) {
093d3ff1 21001 {
0085ce49
RD
21002 arg4 = &temp4;
21003 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21004 }
0085ce49
RD
21005 }
21006 if (obj4) {
21007 ecode5 = SWIG_AsVal_long(obj4, &val5);
21008 if (!SWIG_IsOK(ecode5)) {
21009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21010 }
21011 arg5 = static_cast< long >(val5);
21012 }
21013 if (obj5) {
d14a1e28 21014 {
0085ce49
RD
21015 arg6 = wxString_in_helper(obj5);
21016 if (arg6 == NULL) SWIG_fail;
21017 temp6 = true;
d14a1e28 21018 }
0085ce49
RD
21019 }
21020 {
21021 if (!wxPyCheckForApp()) SWIG_fail;
21022 PyThreadState* __tstate = wxPyBeginAllowThreads();
21023 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21024 wxPyEndAllowThreads(__tstate);
21025 if (PyErr_Occurred()) SWIG_fail;
21026 }
21027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21028 {
21029 if (temp6)
21030 delete arg6;
21031 }
21032 return resultobj;
21033fail:
21034 {
21035 if (temp6)
21036 delete arg6;
21037 }
21038 return NULL;
d14a1e28
RD
21039}
21040
21041
0085ce49
RD
21042SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21043 PyObject *resultobj = 0;
21044 wxListbook *result = 0 ;
21045
21046 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21047 {
21048 if (!wxPyCheckForApp()) SWIG_fail;
21049 PyThreadState* __tstate = wxPyBeginAllowThreads();
21050 result = (wxListbook *)new wxListbook();
21051 wxPyEndAllowThreads(__tstate);
21052 if (PyErr_Occurred()) SWIG_fail;
21053 }
21054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21055 return resultobj;
21056fail:
21057 return NULL;
21058}
21059
21060
21061SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21062 PyObject *resultobj = 0;
21063 wxListbook *arg1 = (wxListbook *) 0 ;
21064 wxWindow *arg2 = (wxWindow *) 0 ;
21065 int arg3 = (int) -1 ;
21066 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21067 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21068 wxSize const &arg5_defvalue = wxDefaultSize ;
21069 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21070 long arg6 = (long) 0 ;
21071 wxString const &arg7_defvalue = wxPyEmptyString ;
21072 wxString *arg7 = (wxString *) &arg7_defvalue ;
21073 bool result;
21074 void *argp1 = 0 ;
21075 int res1 = 0 ;
21076 void *argp2 = 0 ;
21077 int res2 = 0 ;
21078 int val3 ;
21079 int ecode3 = 0 ;
21080 wxPoint temp4 ;
21081 wxSize temp5 ;
21082 long val6 ;
21083 int ecode6 = 0 ;
21084 bool temp7 = false ;
21085 PyObject * obj0 = 0 ;
21086 PyObject * obj1 = 0 ;
21087 PyObject * obj2 = 0 ;
21088 PyObject * obj3 = 0 ;
21089 PyObject * obj4 = 0 ;
21090 PyObject * obj5 = 0 ;
21091 PyObject * obj6 = 0 ;
21092 char * kwnames[] = {
21093 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21094 };
21095
21096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21098 if (!SWIG_IsOK(res1)) {
21099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21100 }
21101 arg1 = reinterpret_cast< wxListbook * >(argp1);
21102 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21103 if (!SWIG_IsOK(res2)) {
21104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21105 }
21106 arg2 = reinterpret_cast< wxWindow * >(argp2);
21107 if (obj2) {
21108 ecode3 = SWIG_AsVal_int(obj2, &val3);
21109 if (!SWIG_IsOK(ecode3)) {
21110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21111 }
21112 arg3 = static_cast< int >(val3);
21113 }
21114 if (obj3) {
22bfe96c 21115 {
0085ce49
RD
21116 arg4 = &temp4;
21117 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 21118 }
0085ce49
RD
21119 }
21120 if (obj4) {
22bfe96c 21121 {
0085ce49
RD
21122 arg5 = &temp5;
21123 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 21124 }
0085ce49
RD
21125 }
21126 if (obj5) {
21127 ecode6 = SWIG_AsVal_long(obj5, &val6);
21128 if (!SWIG_IsOK(ecode6)) {
21129 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21130 }
21131 arg6 = static_cast< long >(val6);
21132 }
21133 if (obj6) {
b2dc1044 21134 {
0085ce49
RD
21135 arg7 = wxString_in_helper(obj6);
21136 if (arg7 == NULL) SWIG_fail;
21137 temp7 = true;
b2dc1044 21138 }
0085ce49
RD
21139 }
21140 {
21141 PyThreadState* __tstate = wxPyBeginAllowThreads();
21142 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21143 wxPyEndAllowThreads(__tstate);
21144 if (PyErr_Occurred()) SWIG_fail;
21145 }
21146 {
21147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21148 }
21149 {
21150 if (temp7)
21151 delete arg7;
21152 }
21153 return resultobj;
21154fail:
21155 {
21156 if (temp7)
21157 delete arg7;
21158 }
21159 return NULL;
b2dc1044
RD
21160}
21161
21162
0085ce49
RD
21163SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21164 PyObject *resultobj = 0;
21165 wxListbook *arg1 = (wxListbook *) 0 ;
21166 wxListView *result = 0 ;
21167 void *argp1 = 0 ;
21168 int res1 = 0 ;
21169 PyObject *swig_obj[1] ;
21170
21171 if (!args) SWIG_fail;
21172 swig_obj[0] = args;
21173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21174 if (!SWIG_IsOK(res1)) {
21175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21176 }
21177 arg1 = reinterpret_cast< wxListbook * >(argp1);
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 result = (wxListView *)(arg1)->GetListView();
21181 wxPyEndAllowThreads(__tstate);
21182 if (PyErr_Occurred()) SWIG_fail;
21183 }
21184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21185 return resultobj;
21186fail:
21187 return NULL;
21188}
21189
21190
21191SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21192 PyObject *obj;
21193 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21194 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21195 return SWIG_Py_Void();
21196}
21197
21198SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21199 return SWIG_Python_InitShadowInstance(args);
21200}
21201
21202SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21203 PyObject *resultobj = 0;
21204 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21205 int arg2 = (int) 0 ;
21206 int arg3 = (int) -1 ;
21207 int arg4 = (int) -1 ;
21208 wxListbookEvent *result = 0 ;
21209 int val1 ;
21210 int ecode1 = 0 ;
21211 int val2 ;
21212 int ecode2 = 0 ;
21213 int val3 ;
21214 int ecode3 = 0 ;
21215 int val4 ;
21216 int ecode4 = 0 ;
21217 PyObject * obj0 = 0 ;
21218 PyObject * obj1 = 0 ;
21219 PyObject * obj2 = 0 ;
21220 PyObject * obj3 = 0 ;
21221 char * kwnames[] = {
21222 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21223 };
21224
21225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21226 if (obj0) {
21227 ecode1 = SWIG_AsVal_int(obj0, &val1);
21228 if (!SWIG_IsOK(ecode1)) {
21229 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21230 }
21231 arg1 = static_cast< wxEventType >(val1);
21232 }
21233 if (obj1) {
21234 ecode2 = SWIG_AsVal_int(obj1, &val2);
21235 if (!SWIG_IsOK(ecode2)) {
21236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21237 }
21238 arg2 = static_cast< int >(val2);
21239 }
21240 if (obj2) {
21241 ecode3 = SWIG_AsVal_int(obj2, &val3);
21242 if (!SWIG_IsOK(ecode3)) {
21243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21244 }
21245 arg3 = static_cast< int >(val3);
21246 }
21247 if (obj3) {
21248 ecode4 = SWIG_AsVal_int(obj3, &val4);
21249 if (!SWIG_IsOK(ecode4)) {
21250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21251 }
21252 arg4 = static_cast< int >(val4);
21253 }
21254 {
21255 PyThreadState* __tstate = wxPyBeginAllowThreads();
21256 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21257 wxPyEndAllowThreads(__tstate);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 }
21260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21261 return resultobj;
21262fail:
21263 return NULL;
21264}
21265
21266
21267SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21268 PyObject *obj;
21269 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21270 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21271 return SWIG_Py_Void();
21272}
21273
21274SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21275 return SWIG_Python_InitShadowInstance(args);
21276}
21277
21278SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21279 PyObject *resultobj = 0;
21280 wxWindow *arg1 = (wxWindow *) 0 ;
21281 int arg2 ;
21282 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21283 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21284 wxSize const &arg4_defvalue = wxDefaultSize ;
21285 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21286 long arg5 = (long) 0 ;
21287 wxString const &arg6_defvalue = wxPyEmptyString ;
21288 wxString *arg6 = (wxString *) &arg6_defvalue ;
21289 wxChoicebook *result = 0 ;
21290 void *argp1 = 0 ;
21291 int res1 = 0 ;
21292 int val2 ;
21293 int ecode2 = 0 ;
21294 wxPoint temp3 ;
21295 wxSize temp4 ;
21296 long val5 ;
21297 int ecode5 = 0 ;
21298 bool temp6 = false ;
21299 PyObject * obj0 = 0 ;
21300 PyObject * obj1 = 0 ;
21301 PyObject * obj2 = 0 ;
21302 PyObject * obj3 = 0 ;
21303 PyObject * obj4 = 0 ;
21304 PyObject * obj5 = 0 ;
21305 char * kwnames[] = {
21306 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21307 };
21308
21309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21311 if (!SWIG_IsOK(res1)) {
21312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21313 }
21314 arg1 = reinterpret_cast< wxWindow * >(argp1);
21315 ecode2 = SWIG_AsVal_int(obj1, &val2);
21316 if (!SWIG_IsOK(ecode2)) {
21317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21318 }
21319 arg2 = static_cast< int >(val2);
21320 if (obj2) {
d14a1e28 21321 {
0085ce49
RD
21322 arg3 = &temp3;
21323 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21324 }
0085ce49
RD
21325 }
21326 if (obj3) {
d14a1e28 21327 {
0085ce49
RD
21328 arg4 = &temp4;
21329 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21330 }
0085ce49
RD
21331 }
21332 if (obj4) {
21333 ecode5 = SWIG_AsVal_long(obj4, &val5);
21334 if (!SWIG_IsOK(ecode5)) {
21335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21336 }
21337 arg5 = static_cast< long >(val5);
21338 }
21339 if (obj5) {
d14a1e28 21340 {
0085ce49
RD
21341 arg6 = wxString_in_helper(obj5);
21342 if (arg6 == NULL) SWIG_fail;
21343 temp6 = true;
d14a1e28 21344 }
0085ce49
RD
21345 }
21346 {
21347 if (!wxPyCheckForApp()) SWIG_fail;
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21354 {
21355 if (temp6)
21356 delete arg6;
21357 }
21358 return resultobj;
21359fail:
21360 {
21361 if (temp6)
21362 delete arg6;
21363 }
21364 return NULL;
d14a1e28
RD
21365}
21366
21367
0085ce49
RD
21368SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21369 PyObject *resultobj = 0;
21370 wxChoicebook *result = 0 ;
21371
21372 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21373 {
21374 if (!wxPyCheckForApp()) SWIG_fail;
21375 PyThreadState* __tstate = wxPyBeginAllowThreads();
21376 result = (wxChoicebook *)new wxChoicebook();
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21381 return resultobj;
21382fail:
21383 return NULL;
21384}
21385
21386
21387SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21388 PyObject *resultobj = 0;
21389 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21390 wxWindow *arg2 = (wxWindow *) 0 ;
21391 int arg3 ;
21392 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21393 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21394 wxSize const &arg5_defvalue = wxDefaultSize ;
21395 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21396 long arg6 = (long) 0 ;
21397 wxString const &arg7_defvalue = wxPyEmptyString ;
21398 wxString *arg7 = (wxString *) &arg7_defvalue ;
21399 bool result;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 void *argp2 = 0 ;
21403 int res2 = 0 ;
21404 int val3 ;
21405 int ecode3 = 0 ;
21406 wxPoint temp4 ;
21407 wxSize temp5 ;
21408 long val6 ;
21409 int ecode6 = 0 ;
21410 bool temp7 = false ;
21411 PyObject * obj0 = 0 ;
21412 PyObject * obj1 = 0 ;
21413 PyObject * obj2 = 0 ;
21414 PyObject * obj3 = 0 ;
21415 PyObject * obj4 = 0 ;
21416 PyObject * obj5 = 0 ;
21417 PyObject * obj6 = 0 ;
21418 char * kwnames[] = {
21419 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21420 };
21421
21422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21424 if (!SWIG_IsOK(res1)) {
21425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21426 }
21427 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21429 if (!SWIG_IsOK(res2)) {
21430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21431 }
21432 arg2 = reinterpret_cast< wxWindow * >(argp2);
21433 ecode3 = SWIG_AsVal_int(obj2, &val3);
21434 if (!SWIG_IsOK(ecode3)) {
21435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21436 }
21437 arg3 = static_cast< int >(val3);
21438 if (obj3) {
4f89f6a3 21439 {
0085ce49
RD
21440 arg4 = &temp4;
21441 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21442 }
0085ce49
RD
21443 }
21444 if (obj4) {
d14a1e28 21445 {
0085ce49
RD
21446 arg5 = &temp5;
21447 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21448 }
0085ce49
RD
21449 }
21450 if (obj5) {
21451 ecode6 = SWIG_AsVal_long(obj5, &val6);
21452 if (!SWIG_IsOK(ecode6)) {
21453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21454 }
21455 arg6 = static_cast< long >(val6);
21456 }
21457 if (obj6) {
d14a1e28 21458 {
0085ce49
RD
21459 arg7 = wxString_in_helper(obj6);
21460 if (arg7 == NULL) SWIG_fail;
21461 temp7 = true;
d14a1e28 21462 }
0085ce49
RD
21463 }
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21467 wxPyEndAllowThreads(__tstate);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 }
21470 {
21471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21472 }
21473 {
21474 if (temp7)
21475 delete arg7;
21476 }
21477 return resultobj;
21478fail:
21479 {
21480 if (temp7)
21481 delete arg7;
21482 }
21483 return NULL;
d14a1e28
RD
21484}
21485
21486
0085ce49
RD
21487SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21488 PyObject *resultobj = 0;
21489 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21490 wxChoice *result = 0 ;
21491 void *argp1 = 0 ;
21492 int res1 = 0 ;
21493 PyObject *swig_obj[1] ;
21494
21495 if (!args) SWIG_fail;
21496 swig_obj[0] = args;
21497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21498 if (!SWIG_IsOK(res1)) {
21499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21500 }
21501 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21509 return resultobj;
21510fail:
21511 return NULL;
21512}
21513
21514
21515SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21516 PyObject *obj;
21517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21518 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21519 return SWIG_Py_Void();
21520}
21521
21522SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21523 return SWIG_Python_InitShadowInstance(args);
21524}
21525
21526SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj = 0;
21528 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21529 int arg2 = (int) 0 ;
21530 int arg3 = (int) -1 ;
21531 int arg4 = (int) -1 ;
21532 wxChoicebookEvent *result = 0 ;
21533 int val1 ;
21534 int ecode1 = 0 ;
21535 int val2 ;
21536 int ecode2 = 0 ;
21537 int val3 ;
21538 int ecode3 = 0 ;
21539 int val4 ;
21540 int ecode4 = 0 ;
21541 PyObject * obj0 = 0 ;
21542 PyObject * obj1 = 0 ;
21543 PyObject * obj2 = 0 ;
21544 PyObject * obj3 = 0 ;
21545 char * kwnames[] = {
21546 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21547 };
21548
21549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21550 if (obj0) {
21551 ecode1 = SWIG_AsVal_int(obj0, &val1);
21552 if (!SWIG_IsOK(ecode1)) {
21553 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21554 }
21555 arg1 = static_cast< wxEventType >(val1);
21556 }
21557 if (obj1) {
21558 ecode2 = SWIG_AsVal_int(obj1, &val2);
21559 if (!SWIG_IsOK(ecode2)) {
21560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21561 }
21562 arg2 = static_cast< int >(val2);
21563 }
21564 if (obj2) {
21565 ecode3 = SWIG_AsVal_int(obj2, &val3);
21566 if (!SWIG_IsOK(ecode3)) {
21567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21568 }
21569 arg3 = static_cast< int >(val3);
21570 }
21571 if (obj3) {
21572 ecode4 = SWIG_AsVal_int(obj3, &val4);
21573 if (!SWIG_IsOK(ecode4)) {
21574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21575 }
21576 arg4 = static_cast< int >(val4);
21577 }
21578 {
21579 PyThreadState* __tstate = wxPyBeginAllowThreads();
21580 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21581 wxPyEndAllowThreads(__tstate);
21582 if (PyErr_Occurred()) SWIG_fail;
21583 }
21584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21585 return resultobj;
21586fail:
21587 return NULL;
21588}
21589
21590
21591SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21592 PyObject *obj;
21593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21594 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21595 return SWIG_Py_Void();
21596}
21597
21598SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21599 return SWIG_Python_InitShadowInstance(args);
21600}
21601
21602SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21603 PyObject *resultobj = 0;
21604 wxWindow *arg1 = (wxWindow *) 0 ;
21605 int arg2 ;
21606 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21607 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21608 wxSize const &arg4_defvalue = wxDefaultSize ;
21609 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21610 long arg5 = (long) wxBK_DEFAULT ;
21611 wxString const &arg6_defvalue = wxPyEmptyString ;
21612 wxString *arg6 = (wxString *) &arg6_defvalue ;
21613 wxTreebook *result = 0 ;
21614 void *argp1 = 0 ;
21615 int res1 = 0 ;
21616 int val2 ;
21617 int ecode2 = 0 ;
21618 wxPoint temp3 ;
21619 wxSize temp4 ;
21620 long val5 ;
21621 int ecode5 = 0 ;
21622 bool temp6 = false ;
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 PyObject * obj2 = 0 ;
21626 PyObject * obj3 = 0 ;
21627 PyObject * obj4 = 0 ;
21628 PyObject * obj5 = 0 ;
21629 char * kwnames[] = {
21630 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21631 };
21632
21633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21635 if (!SWIG_IsOK(res1)) {
21636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21637 }
21638 arg1 = reinterpret_cast< wxWindow * >(argp1);
21639 ecode2 = SWIG_AsVal_int(obj1, &val2);
21640 if (!SWIG_IsOK(ecode2)) {
21641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21642 }
21643 arg2 = static_cast< int >(val2);
21644 if (obj2) {
093d3ff1 21645 {
0085ce49
RD
21646 arg3 = &temp3;
21647 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21648 }
0085ce49
RD
21649 }
21650 if (obj3) {
d14a1e28 21651 {
0085ce49
RD
21652 arg4 = &temp4;
21653 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21654 }
0085ce49
RD
21655 }
21656 if (obj4) {
21657 ecode5 = SWIG_AsVal_long(obj4, &val5);
21658 if (!SWIG_IsOK(ecode5)) {
21659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21660 }
21661 arg5 = static_cast< long >(val5);
21662 }
21663 if (obj5) {
093d3ff1 21664 {
0085ce49
RD
21665 arg6 = wxString_in_helper(obj5);
21666 if (arg6 == NULL) SWIG_fail;
21667 temp6 = true;
093d3ff1 21668 }
0085ce49
RD
21669 }
21670 {
21671 if (!wxPyCheckForApp()) SWIG_fail;
21672 PyThreadState* __tstate = wxPyBeginAllowThreads();
21673 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21674 wxPyEndAllowThreads(__tstate);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21678 {
21679 if (temp6)
21680 delete arg6;
21681 }
21682 return resultobj;
21683fail:
21684 {
21685 if (temp6)
21686 delete arg6;
21687 }
21688 return NULL;
d14a1e28
RD
21689}
21690
21691
0085ce49
RD
21692SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21693 PyObject *resultobj = 0;
21694 wxTreebook *result = 0 ;
21695
21696 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21697 {
21698 if (!wxPyCheckForApp()) SWIG_fail;
21699 PyThreadState* __tstate = wxPyBeginAllowThreads();
21700 result = (wxTreebook *)new wxTreebook();
21701 wxPyEndAllowThreads(__tstate);
21702 if (PyErr_Occurred()) SWIG_fail;
21703 }
21704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21705 return resultobj;
21706fail:
21707 return NULL;
21708}
21709
21710
21711SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21712 PyObject *resultobj = 0;
21713 wxTreebook *arg1 = (wxTreebook *) 0 ;
21714 wxWindow *arg2 = (wxWindow *) 0 ;
21715 int arg3 ;
21716 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21717 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21718 wxSize const &arg5_defvalue = wxDefaultSize ;
21719 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21720 long arg6 = (long) wxBK_DEFAULT ;
21721 wxString const &arg7_defvalue = wxPyEmptyString ;
21722 wxString *arg7 = (wxString *) &arg7_defvalue ;
21723 bool result;
21724 void *argp1 = 0 ;
21725 int res1 = 0 ;
21726 void *argp2 = 0 ;
21727 int res2 = 0 ;
21728 int val3 ;
21729 int ecode3 = 0 ;
21730 wxPoint temp4 ;
21731 wxSize temp5 ;
21732 long val6 ;
21733 int ecode6 = 0 ;
21734 bool temp7 = false ;
21735 PyObject * obj0 = 0 ;
21736 PyObject * obj1 = 0 ;
21737 PyObject * obj2 = 0 ;
21738 PyObject * obj3 = 0 ;
21739 PyObject * obj4 = 0 ;
21740 PyObject * obj5 = 0 ;
21741 PyObject * obj6 = 0 ;
21742 char * kwnames[] = {
21743 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21744 };
21745
21746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21748 if (!SWIG_IsOK(res1)) {
21749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21750 }
21751 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21752 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21753 if (!SWIG_IsOK(res2)) {
21754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21755 }
21756 arg2 = reinterpret_cast< wxWindow * >(argp2);
21757 ecode3 = SWIG_AsVal_int(obj2, &val3);
21758 if (!SWIG_IsOK(ecode3)) {
21759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21760 }
21761 arg3 = static_cast< int >(val3);
21762 if (obj3) {
d14a1e28 21763 {
0085ce49
RD
21764 arg4 = &temp4;
21765 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21766 }
0085ce49
RD
21767 }
21768 if (obj4) {
093d3ff1 21769 {
0085ce49
RD
21770 arg5 = &temp5;
21771 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21772 }
0085ce49
RD
21773 }
21774 if (obj5) {
21775 ecode6 = SWIG_AsVal_long(obj5, &val6);
21776 if (!SWIG_IsOK(ecode6)) {
21777 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21778 }
21779 arg6 = static_cast< long >(val6);
21780 }
21781 if (obj6) {
093d3ff1 21782 {
0085ce49
RD
21783 arg7 = wxString_in_helper(obj6);
21784 if (arg7 == NULL) SWIG_fail;
21785 temp7 = true;
093d3ff1 21786 }
0085ce49
RD
21787 }
21788 {
21789 PyThreadState* __tstate = wxPyBeginAllowThreads();
21790 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 {
21795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21796 }
21797 {
21798 if (temp7)
21799 delete arg7;
21800 }
21801 return resultobj;
21802fail:
21803 {
21804 if (temp7)
21805 delete arg7;
21806 }
21807 return NULL;
21808}
21809
21810
21811SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21812 PyObject *resultobj = 0;
21813 wxTreebook *arg1 = (wxTreebook *) 0 ;
21814 size_t arg2 ;
21815 wxWindow *arg3 = (wxWindow *) 0 ;
21816 wxString *arg4 = 0 ;
21817 bool arg5 = (bool) false ;
21818 int arg6 = (int) wxNOT_FOUND ;
21819 bool result;
21820 void *argp1 = 0 ;
21821 int res1 = 0 ;
21822 size_t val2 ;
21823 int ecode2 = 0 ;
21824 void *argp3 = 0 ;
21825 int res3 = 0 ;
21826 bool temp4 = false ;
21827 bool val5 ;
21828 int ecode5 = 0 ;
21829 int val6 ;
21830 int ecode6 = 0 ;
21831 PyObject * obj0 = 0 ;
21832 PyObject * obj1 = 0 ;
21833 PyObject * obj2 = 0 ;
21834 PyObject * obj3 = 0 ;
21835 PyObject * obj4 = 0 ;
21836 PyObject * obj5 = 0 ;
21837 char * kwnames[] = {
21838 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21839 };
21840
21841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21843 if (!SWIG_IsOK(res1)) {
21844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21845 }
21846 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21847 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21848 if (!SWIG_IsOK(ecode2)) {
21849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21850 }
21851 arg2 = static_cast< size_t >(val2);
21852 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21853 if (!SWIG_IsOK(res3)) {
21854 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21855 }
21856 arg3 = reinterpret_cast< wxWindow * >(argp3);
21857 {
21858 arg4 = wxString_in_helper(obj3);
21859 if (arg4 == NULL) SWIG_fail;
21860 temp4 = true;
21861 }
21862 if (obj4) {
21863 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21864 if (!SWIG_IsOK(ecode5)) {
21865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21866 }
21867 arg5 = static_cast< bool >(val5);
21868 }
21869 if (obj5) {
21870 ecode6 = SWIG_AsVal_int(obj5, &val6);
21871 if (!SWIG_IsOK(ecode6)) {
21872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21873 }
21874 arg6 = static_cast< int >(val6);
21875 }
21876 {
21877 PyThreadState* __tstate = wxPyBeginAllowThreads();
21878 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21879 wxPyEndAllowThreads(__tstate);
21880 if (PyErr_Occurred()) SWIG_fail;
21881 }
21882 {
21883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21884 }
21885 {
21886 if (temp4)
21887 delete arg4;
21888 }
21889 return resultobj;
21890fail:
21891 {
21892 if (temp4)
21893 delete arg4;
21894 }
21895 return NULL;
21896}
21897
21898
21899SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21900 PyObject *resultobj = 0;
21901 wxTreebook *arg1 = (wxTreebook *) 0 ;
21902 wxWindow *arg2 = (wxWindow *) 0 ;
21903 wxString *arg3 = 0 ;
21904 bool arg4 = (bool) false ;
21905 int arg5 = (int) wxNOT_FOUND ;
21906 bool result;
21907 void *argp1 = 0 ;
21908 int res1 = 0 ;
21909 void *argp2 = 0 ;
21910 int res2 = 0 ;
21911 bool temp3 = false ;
21912 bool val4 ;
21913 int ecode4 = 0 ;
21914 int val5 ;
21915 int ecode5 = 0 ;
21916 PyObject * obj0 = 0 ;
21917 PyObject * obj1 = 0 ;
21918 PyObject * obj2 = 0 ;
21919 PyObject * obj3 = 0 ;
21920 PyObject * obj4 = 0 ;
21921 char * kwnames[] = {
21922 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21923 };
21924
21925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21927 if (!SWIG_IsOK(res1)) {
21928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21929 }
21930 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21932 if (!SWIG_IsOK(res2)) {
21933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21934 }
21935 arg2 = reinterpret_cast< wxWindow * >(argp2);
21936 {
21937 arg3 = wxString_in_helper(obj2);
21938 if (arg3 == NULL) SWIG_fail;
21939 temp3 = true;
21940 }
21941 if (obj3) {
21942 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21943 if (!SWIG_IsOK(ecode4)) {
21944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21945 }
21946 arg4 = static_cast< bool >(val4);
21947 }
21948 if (obj4) {
21949 ecode5 = SWIG_AsVal_int(obj4, &val5);
21950 if (!SWIG_IsOK(ecode5)) {
21951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21952 }
21953 arg5 = static_cast< int >(val5);
21954 }
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 {
21962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21963 }
21964 {
21965 if (temp3)
21966 delete arg3;
21967 }
21968 return resultobj;
21969fail:
21970 {
21971 if (temp3)
21972 delete arg3;
21973 }
21974 return NULL;
21975}
21976
21977
21978SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21979 PyObject *resultobj = 0;
21980 wxTreebook *arg1 = (wxTreebook *) 0 ;
21981 size_t arg2 ;
21982 bool result;
21983 void *argp1 = 0 ;
21984 int res1 = 0 ;
21985 size_t val2 ;
21986 int ecode2 = 0 ;
21987 PyObject * obj0 = 0 ;
21988 PyObject * obj1 = 0 ;
21989 char * kwnames[] = {
21990 (char *) "self",(char *) "pos", NULL
21991 };
21992
21993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21995 if (!SWIG_IsOK(res1)) {
21996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21997 }
21998 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21999 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22000 if (!SWIG_IsOK(ecode2)) {
22001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22002 }
22003 arg2 = static_cast< size_t >(val2);
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22007 wxPyEndAllowThreads(__tstate);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 {
22011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22012 }
22013 return resultobj;
22014fail:
22015 return NULL;
22016}
22017
22018
22019SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj = 0;
22021 wxTreebook *arg1 = (wxTreebook *) 0 ;
22022 size_t arg2 ;
22023 bool arg3 = (bool) true ;
22024 bool result;
22025 void *argp1 = 0 ;
22026 int res1 = 0 ;
22027 size_t val2 ;
22028 int ecode2 = 0 ;
22029 bool val3 ;
22030 int ecode3 = 0 ;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 PyObject * obj2 = 0 ;
22034 char * kwnames[] = {
22035 (char *) "self",(char *) "pos",(char *) "expand", NULL
22036 };
22037
22038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22040 if (!SWIG_IsOK(res1)) {
22041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22042 }
22043 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22044 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22045 if (!SWIG_IsOK(ecode2)) {
22046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22047 }
22048 arg2 = static_cast< size_t >(val2);
22049 if (obj2) {
22050 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22051 if (!SWIG_IsOK(ecode3)) {
22052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22053 }
22054 arg3 = static_cast< bool >(val3);
22055 }
22056 {
22057 PyThreadState* __tstate = wxPyBeginAllowThreads();
22058 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22059 wxPyEndAllowThreads(__tstate);
22060 if (PyErr_Occurred()) SWIG_fail;
22061 }
22062 {
22063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22064 }
22065 return resultobj;
22066fail:
22067 return NULL;
22068}
22069
22070
22071SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22072 PyObject *resultobj = 0;
22073 wxTreebook *arg1 = (wxTreebook *) 0 ;
22074 size_t arg2 ;
22075 bool result;
22076 void *argp1 = 0 ;
22077 int res1 = 0 ;
22078 size_t val2 ;
22079 int ecode2 = 0 ;
22080 PyObject * obj0 = 0 ;
22081 PyObject * obj1 = 0 ;
22082 char * kwnames[] = {
22083 (char *) "self",(char *) "pos", NULL
22084 };
22085
22086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22088 if (!SWIG_IsOK(res1)) {
22089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22090 }
22091 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22092 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22093 if (!SWIG_IsOK(ecode2)) {
22094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22095 }
22096 arg2 = static_cast< size_t >(val2);
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 result = (bool)(arg1)->CollapseNode(arg2);
22100 wxPyEndAllowThreads(__tstate);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 }
22103 {
22104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22105 }
22106 return resultobj;
22107fail:
22108 return NULL;
22109}
22110
22111
22112SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22113 PyObject *resultobj = 0;
22114 wxTreebook *arg1 = (wxTreebook *) 0 ;
22115 size_t arg2 ;
22116 int result;
22117 void *argp1 = 0 ;
22118 int res1 = 0 ;
22119 size_t val2 ;
22120 int ecode2 = 0 ;
22121 PyObject * obj0 = 0 ;
22122 PyObject * obj1 = 0 ;
22123 char * kwnames[] = {
22124 (char *) "self",(char *) "pos", NULL
22125 };
22126
22127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22129 if (!SWIG_IsOK(res1)) {
22130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22131 }
22132 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22133 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22134 if (!SWIG_IsOK(ecode2)) {
22135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22136 }
22137 arg2 = static_cast< size_t >(val2);
22138 {
22139 PyThreadState* __tstate = wxPyBeginAllowThreads();
22140 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22141 wxPyEndAllowThreads(__tstate);
22142 if (PyErr_Occurred()) SWIG_fail;
22143 }
22144 resultobj = SWIG_From_int(static_cast< int >(result));
22145 return resultobj;
22146fail:
22147 return NULL;
d14a1e28
RD
22148}
22149
22150
0085ce49
RD
22151SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22152 PyObject *resultobj = 0;
22153 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22154 wxPyTreeCtrl *result = 0 ;
0085ce49
RD
22155 void *argp1 = 0 ;
22156 int res1 = 0 ;
22157 PyObject *swig_obj[1] ;
22158
22159 if (!args) SWIG_fail;
22160 swig_obj[0] = args;
22161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22162 if (!SWIG_IsOK(res1)) {
22163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22164 }
22165 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22166 {
22167 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22168 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
0085ce49
RD
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
10044bf1
RD
22172 {
22173 resultobj = wxPyMake_wxObject(result, (bool)0);
22174 }
0085ce49
RD
22175 return resultobj;
22176fail:
22177 return NULL;
22178}
22179
22180
22181SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22182 PyObject *obj;
22183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22184 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22185 return SWIG_Py_Void();
22186}
22187
22188SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22189 return SWIG_Python_InitShadowInstance(args);
22190}
22191
22192SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22193 PyObject *resultobj = 0;
22194 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22195 int arg2 = (int) 0 ;
22196 int arg3 = (int) wxNOT_FOUND ;
22197 int arg4 = (int) wxNOT_FOUND ;
22198 wxTreebookEvent *result = 0 ;
22199 int val1 ;
22200 int ecode1 = 0 ;
22201 int val2 ;
22202 int ecode2 = 0 ;
22203 int val3 ;
22204 int ecode3 = 0 ;
22205 int val4 ;
22206 int ecode4 = 0 ;
22207 PyObject * obj0 = 0 ;
22208 PyObject * obj1 = 0 ;
22209 PyObject * obj2 = 0 ;
22210 PyObject * obj3 = 0 ;
22211 char * kwnames[] = {
22212 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22213 };
22214
22215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22216 if (obj0) {
22217 ecode1 = SWIG_AsVal_int(obj0, &val1);
22218 if (!SWIG_IsOK(ecode1)) {
22219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22220 }
22221 arg1 = static_cast< wxEventType >(val1);
22222 }
22223 if (obj1) {
22224 ecode2 = SWIG_AsVal_int(obj1, &val2);
22225 if (!SWIG_IsOK(ecode2)) {
22226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22227 }
22228 arg2 = static_cast< int >(val2);
22229 }
22230 if (obj2) {
22231 ecode3 = SWIG_AsVal_int(obj2, &val3);
22232 if (!SWIG_IsOK(ecode3)) {
22233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22234 }
22235 arg3 = static_cast< int >(val3);
22236 }
22237 if (obj3) {
22238 ecode4 = SWIG_AsVal_int(obj3, &val4);
22239 if (!SWIG_IsOK(ecode4)) {
22240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22241 }
22242 arg4 = static_cast< int >(val4);
22243 }
22244 {
22245 PyThreadState* __tstate = wxPyBeginAllowThreads();
22246 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22251 return resultobj;
22252fail:
22253 return NULL;
22254}
22255
22256
22257SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22258 PyObject *obj;
22259 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22260 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22261 return SWIG_Py_Void();
22262}
22263
22264SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22265 return SWIG_Python_InitShadowInstance(args);
22266}
22267
22268SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22269 PyObject *resultobj = 0;
22270 wxWindow *arg1 = (wxWindow *) 0 ;
22271 int arg2 ;
22272 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22273 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22274 wxSize const &arg4_defvalue = wxDefaultSize ;
22275 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22276 long arg5 = (long) wxBK_DEFAULT ;
22277 wxString const &arg6_defvalue = wxPyEmptyString ;
22278 wxString *arg6 = (wxString *) &arg6_defvalue ;
22279 wxToolbook *result = 0 ;
22280 void *argp1 = 0 ;
22281 int res1 = 0 ;
22282 int val2 ;
22283 int ecode2 = 0 ;
22284 wxPoint temp3 ;
22285 wxSize temp4 ;
22286 long val5 ;
22287 int ecode5 = 0 ;
22288 bool temp6 = false ;
22289 PyObject * obj0 = 0 ;
22290 PyObject * obj1 = 0 ;
22291 PyObject * obj2 = 0 ;
22292 PyObject * obj3 = 0 ;
22293 PyObject * obj4 = 0 ;
22294 PyObject * obj5 = 0 ;
22295 char * kwnames[] = {
22296 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22297 };
22298
22299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22301 if (!SWIG_IsOK(res1)) {
22302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22303 }
22304 arg1 = reinterpret_cast< wxWindow * >(argp1);
22305 ecode2 = SWIG_AsVal_int(obj1, &val2);
22306 if (!SWIG_IsOK(ecode2)) {
22307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22308 }
22309 arg2 = static_cast< int >(val2);
22310 if (obj2) {
d14a1e28 22311 {
0085ce49
RD
22312 arg3 = &temp3;
22313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22314 }
0085ce49
RD
22315 }
22316 if (obj3) {
093d3ff1 22317 {
0085ce49
RD
22318 arg4 = &temp4;
22319 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22320 }
0085ce49
RD
22321 }
22322 if (obj4) {
22323 ecode5 = SWIG_AsVal_long(obj4, &val5);
22324 if (!SWIG_IsOK(ecode5)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22326 }
22327 arg5 = static_cast< long >(val5);
22328 }
22329 if (obj5) {
d14a1e28 22330 {
0085ce49
RD
22331 arg6 = wxString_in_helper(obj5);
22332 if (arg6 == NULL) SWIG_fail;
22333 temp6 = true;
d14a1e28 22334 }
0085ce49
RD
22335 }
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22339 wxPyEndAllowThreads(__tstate);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 }
22342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22343 {
22344 if (temp6)
22345 delete arg6;
22346 }
22347 return resultobj;
22348fail:
22349 {
22350 if (temp6)
22351 delete arg6;
22352 }
22353 return NULL;
d14a1e28
RD
22354}
22355
22356
0085ce49
RD
22357SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22358 PyObject *resultobj = 0;
22359 wxToolbook *result = 0 ;
22360
22361 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 result = (wxToolbook *)new wxToolbook();
22365 wxPyEndAllowThreads(__tstate);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 }
22368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22369 return resultobj;
22370fail:
22371 return NULL;
22372}
22373
22374
22375SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22376 PyObject *resultobj = 0;
22377 wxToolbook *arg1 = (wxToolbook *) 0 ;
22378 wxWindow *arg2 = (wxWindow *) 0 ;
22379 int arg3 ;
22380 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22381 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22382 wxSize const &arg5_defvalue = wxDefaultSize ;
22383 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22384 long arg6 = (long) 0 ;
22385 wxString const &arg7_defvalue = wxEmptyString ;
22386 wxString *arg7 = (wxString *) &arg7_defvalue ;
22387 bool result;
22388 void *argp1 = 0 ;
22389 int res1 = 0 ;
22390 void *argp2 = 0 ;
22391 int res2 = 0 ;
22392 int val3 ;
22393 int ecode3 = 0 ;
22394 wxPoint temp4 ;
22395 wxSize temp5 ;
22396 long val6 ;
22397 int ecode6 = 0 ;
22398 bool temp7 = false ;
22399 PyObject * obj0 = 0 ;
22400 PyObject * obj1 = 0 ;
22401 PyObject * obj2 = 0 ;
22402 PyObject * obj3 = 0 ;
22403 PyObject * obj4 = 0 ;
22404 PyObject * obj5 = 0 ;
22405 PyObject * obj6 = 0 ;
22406 char * kwnames[] = {
22407 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22408 };
22409
22410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22412 if (!SWIG_IsOK(res1)) {
22413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22414 }
22415 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22416 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22417 if (!SWIG_IsOK(res2)) {
22418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22419 }
22420 arg2 = reinterpret_cast< wxWindow * >(argp2);
22421 ecode3 = SWIG_AsVal_int(obj2, &val3);
22422 if (!SWIG_IsOK(ecode3)) {
22423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22424 }
22425 arg3 = static_cast< int >(val3);
22426 if (obj3) {
093d3ff1 22427 {
0085ce49
RD
22428 arg4 = &temp4;
22429 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22430 }
0085ce49
RD
22431 }
22432 if (obj4) {
093d3ff1 22433 {
0085ce49
RD
22434 arg5 = &temp5;
22435 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22436 }
0085ce49
RD
22437 }
22438 if (obj5) {
22439 ecode6 = SWIG_AsVal_long(obj5, &val6);
22440 if (!SWIG_IsOK(ecode6)) {
22441 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22442 }
22443 arg6 = static_cast< long >(val6);
22444 }
22445 if (obj6) {
994141e6 22446 {
0085ce49
RD
22447 arg7 = wxString_in_helper(obj6);
22448 if (arg7 == NULL) SWIG_fail;
22449 temp7 = true;
d14a1e28 22450 }
0085ce49
RD
22451 }
22452 {
22453 PyThreadState* __tstate = wxPyBeginAllowThreads();
22454 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22455 wxPyEndAllowThreads(__tstate);
22456 if (PyErr_Occurred()) SWIG_fail;
22457 }
22458 {
22459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22460 }
22461 {
22462 if (temp7)
22463 delete arg7;
22464 }
22465 return resultobj;
22466fail:
22467 {
22468 if (temp7)
22469 delete arg7;
22470 }
22471 return NULL;
22bfe96c
RD
22472}
22473
22474
0085ce49
RD
22475SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22476 PyObject *resultobj = 0;
22477 wxToolbook *arg1 = (wxToolbook *) 0 ;
22478 wxToolBarBase *result = 0 ;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 PyObject *swig_obj[1] ;
22482
22483 if (!args) SWIG_fail;
22484 swig_obj[0] = args;
22485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22486 if (!SWIG_IsOK(res1)) {
22487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22488 }
22489 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 {
22497 resultobj = wxPyMake_wxObject(result, (bool)0);
22498 }
22499 return resultobj;
22500fail:
22501 return NULL;
d14a1e28
RD
22502}
22503
22504
0085ce49
RD
22505SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22506 PyObject *resultobj = 0;
22507 wxToolbook *arg1 = (wxToolbook *) 0 ;
22508 void *argp1 = 0 ;
22509 int res1 = 0 ;
22510 PyObject *swig_obj[1] ;
22511
22512 if (!args) SWIG_fail;
22513 swig_obj[0] = args;
22514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22515 if (!SWIG_IsOK(res1)) {
22516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22517 }
22518 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22519 {
22520 PyThreadState* __tstate = wxPyBeginAllowThreads();
22521 (arg1)->Realize();
22522 wxPyEndAllowThreads(__tstate);
22523 if (PyErr_Occurred()) SWIG_fail;
22524 }
22525 resultobj = SWIG_Py_Void();
22526 return resultobj;
22527fail:
22528 return NULL;
22529}
22530
22531
22532SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22533 PyObject *obj;
22534 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22535 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22536 return SWIG_Py_Void();
22537}
22538
22539SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22540 return SWIG_Python_InitShadowInstance(args);
22541}
22542
22543SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22544 PyObject *resultobj = 0;
22545 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22546 int arg2 = (int) 0 ;
22547 int arg3 = (int) wxNOT_FOUND ;
22548 int arg4 = (int) wxNOT_FOUND ;
22549 wxToolbookEvent *result = 0 ;
22550 int val1 ;
22551 int ecode1 = 0 ;
22552 int val2 ;
22553 int ecode2 = 0 ;
22554 int val3 ;
22555 int ecode3 = 0 ;
22556 int val4 ;
22557 int ecode4 = 0 ;
22558 PyObject * obj0 = 0 ;
22559 PyObject * obj1 = 0 ;
22560 PyObject * obj2 = 0 ;
22561 PyObject * obj3 = 0 ;
22562 char * kwnames[] = {
22563 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22564 };
22565
22566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22567 if (obj0) {
22568 ecode1 = SWIG_AsVal_int(obj0, &val1);
22569 if (!SWIG_IsOK(ecode1)) {
22570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22571 }
22572 arg1 = static_cast< wxEventType >(val1);
22573 }
22574 if (obj1) {
22575 ecode2 = SWIG_AsVal_int(obj1, &val2);
22576 if (!SWIG_IsOK(ecode2)) {
22577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22578 }
22579 arg2 = static_cast< int >(val2);
22580 }
22581 if (obj2) {
22582 ecode3 = SWIG_AsVal_int(obj2, &val3);
22583 if (!SWIG_IsOK(ecode3)) {
22584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22585 }
22586 arg3 = static_cast< int >(val3);
22587 }
22588 if (obj3) {
22589 ecode4 = SWIG_AsVal_int(obj3, &val4);
22590 if (!SWIG_IsOK(ecode4)) {
22591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22592 }
22593 arg4 = static_cast< int >(val4);
22594 }
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22598 wxPyEndAllowThreads(__tstate);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 }
22601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22602 return resultobj;
22603fail:
22604 return NULL;
d14a1e28
RD
22605}
22606
22607
0085ce49
RD
22608SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22609 PyObject *obj;
22610 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22611 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22612 return SWIG_Py_Void();
d14a1e28
RD
22613}
22614
0085ce49
RD
22615SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22616 return SWIG_Python_InitShadowInstance(args);
22617}
d14a1e28 22618
0085ce49
RD
22619SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22620 PyObject *resultobj = 0;
22621 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22622 int result;
22623 void *argp1 = 0 ;
22624 int res1 = 0 ;
22625 PyObject *swig_obj[1] ;
22626
22627 if (!args) SWIG_fail;
22628 swig_obj[0] = args;
22629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22632 }
22633 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22634 {
22635 PyThreadState* __tstate = wxPyBeginAllowThreads();
22636 result = (int)(arg1)->GetId();
22637 wxPyEndAllowThreads(__tstate);
22638 if (PyErr_Occurred()) SWIG_fail;
22639 }
22640 resultobj = SWIG_From_int(static_cast< int >(result));
22641 return resultobj;
22642fail:
22643 return NULL;
d14a1e28
RD
22644}
22645
22646
0085ce49
RD
22647SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22648 PyObject *resultobj = 0;
22649 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22650 wxControl *result = 0 ;
22651 void *argp1 = 0 ;
22652 int res1 = 0 ;
22653 PyObject *swig_obj[1] ;
22654
22655 if (!args) SWIG_fail;
22656 swig_obj[0] = args;
22657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22658 if (!SWIG_IsOK(res1)) {
22659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22660 }
22661 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22662 {
22663 PyThreadState* __tstate = wxPyBeginAllowThreads();
22664 result = (wxControl *)(arg1)->GetControl();
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 {
22669 resultobj = wxPyMake_wxObject(result, 0);
22670 }
22671 return resultobj;
22672fail:
22673 return NULL;
d14a1e28
RD
22674}
22675
22676
0085ce49
RD
22677SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22678 PyObject *resultobj = 0;
22679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22680 wxToolBarBase *result = 0 ;
22681 void *argp1 = 0 ;
22682 int res1 = 0 ;
22683 PyObject *swig_obj[1] ;
22684
22685 if (!args) SWIG_fail;
22686 swig_obj[0] = args;
22687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22688 if (!SWIG_IsOK(res1)) {
22689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22690 }
22691 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = (wxToolBarBase *)(arg1)->GetToolBar();
22695 wxPyEndAllowThreads(__tstate);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 }
22698 {
22699 resultobj = wxPyMake_wxObject(result, (bool)0);
22700 }
22701 return resultobj;
22702fail:
22703 return NULL;
d14a1e28
RD
22704}
22705
22706
0085ce49
RD
22707SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22708 PyObject *resultobj = 0;
22709 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22710 int result;
22711 void *argp1 = 0 ;
22712 int res1 = 0 ;
22713 PyObject *swig_obj[1] ;
22714
22715 if (!args) SWIG_fail;
22716 swig_obj[0] = args;
22717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22720 }
22721 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = (int)(arg1)->IsButton();
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = SWIG_From_int(static_cast< int >(result));
22729 return resultobj;
22730fail:
22731 return NULL;
d14a1e28
RD
22732}
22733
22734
0085ce49
RD
22735SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22736 PyObject *resultobj = 0;
22737 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22738 int result;
22739 void *argp1 = 0 ;
22740 int res1 = 0 ;
22741 PyObject *swig_obj[1] ;
22742
22743 if (!args) SWIG_fail;
22744 swig_obj[0] = args;
22745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22746 if (!SWIG_IsOK(res1)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22748 }
22749 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22750 {
22751 PyThreadState* __tstate = wxPyBeginAllowThreads();
22752 result = (int)(arg1)->IsControl();
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 resultobj = SWIG_From_int(static_cast< int >(result));
22757 return resultobj;
22758fail:
22759 return NULL;
d14a1e28
RD
22760}
22761
22762
0085ce49
RD
22763SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22764 PyObject *resultobj = 0;
22765 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22766 int result;
22767 void *argp1 = 0 ;
22768 int res1 = 0 ;
22769 PyObject *swig_obj[1] ;
22770
22771 if (!args) SWIG_fail;
22772 swig_obj[0] = args;
22773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22774 if (!SWIG_IsOK(res1)) {
22775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22776 }
22777 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22778 {
22779 PyThreadState* __tstate = wxPyBeginAllowThreads();
22780 result = (int)(arg1)->IsSeparator();
22781 wxPyEndAllowThreads(__tstate);
22782 if (PyErr_Occurred()) SWIG_fail;
22783 }
22784 resultobj = SWIG_From_int(static_cast< int >(result));
22785 return resultobj;
22786fail:
22787 return NULL;
d14a1e28
RD
22788}
22789
22790
0085ce49
RD
22791SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22792 PyObject *resultobj = 0;
22793 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22794 int result;
22795 void *argp1 = 0 ;
22796 int res1 = 0 ;
22797 PyObject *swig_obj[1] ;
22798
22799 if (!args) SWIG_fail;
22800 swig_obj[0] = args;
22801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22804 }
22805 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22806 {
22807 PyThreadState* __tstate = wxPyBeginAllowThreads();
22808 result = (int)(arg1)->GetStyle();
22809 wxPyEndAllowThreads(__tstate);
22810 if (PyErr_Occurred()) SWIG_fail;
22811 }
22812 resultobj = SWIG_From_int(static_cast< int >(result));
22813 return resultobj;
22814fail:
22815 return NULL;
d14a1e28
RD
22816}
22817
22818
0085ce49
RD
22819SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22820 PyObject *resultobj = 0;
22821 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22822 wxItemKind result;
22823 void *argp1 = 0 ;
22824 int res1 = 0 ;
22825 PyObject *swig_obj[1] ;
22826
22827 if (!args) SWIG_fail;
22828 swig_obj[0] = args;
22829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22830 if (!SWIG_IsOK(res1)) {
22831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22832 }
22833 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22834 {
22835 PyThreadState* __tstate = wxPyBeginAllowThreads();
22836 result = (wxItemKind)(arg1)->GetKind();
22837 wxPyEndAllowThreads(__tstate);
22838 if (PyErr_Occurred()) SWIG_fail;
22839 }
22840 resultobj = SWIG_From_int(static_cast< int >(result));
22841 return resultobj;
22842fail:
22843 return NULL;
d14a1e28
RD
22844}
22845
22846
0085ce49
RD
22847SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22848 PyObject *resultobj = 0;
22849 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22850 bool result;
22851 void *argp1 = 0 ;
22852 int res1 = 0 ;
22853 PyObject *swig_obj[1] ;
22854
22855 if (!args) SWIG_fail;
22856 swig_obj[0] = args;
22857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22858 if (!SWIG_IsOK(res1)) {
22859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22860 }
22861 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 result = (bool)(arg1)->IsEnabled();
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 {
22869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22870 }
22871 return resultobj;
22872fail:
22873 return NULL;
d14a1e28
RD
22874}
22875
22876
0085ce49
RD
22877SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22878 PyObject *resultobj = 0;
22879 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22880 bool result;
22881 void *argp1 = 0 ;
22882 int res1 = 0 ;
22883 PyObject *swig_obj[1] ;
22884
22885 if (!args) SWIG_fail;
22886 swig_obj[0] = args;
22887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22890 }
22891 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22892 {
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 result = (bool)(arg1)->IsToggled();
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 {
22899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22900 }
22901 return resultobj;
22902fail:
22903 return NULL;
22bfe96c
RD
22904}
22905
22906
0085ce49
RD
22907SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22908 PyObject *resultobj = 0;
22909 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22910 bool result;
22911 void *argp1 = 0 ;
22912 int res1 = 0 ;
22913 PyObject *swig_obj[1] ;
22914
22915 if (!args) SWIG_fail;
22916 swig_obj[0] = args;
22917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22918 if (!SWIG_IsOK(res1)) {
22919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22920 }
22921 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 result = (bool)(arg1)->CanBeToggled();
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 {
22929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22930 }
22931 return resultobj;
22932fail:
22933 return NULL;
d1e20054
RD
22934}
22935
22936
0085ce49
RD
22937SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22938 PyObject *resultobj = 0;
22939 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22940 wxBitmap *result = 0 ;
22941 void *argp1 = 0 ;
22942 int res1 = 0 ;
22943 PyObject *swig_obj[1] ;
22944
22945 if (!args) SWIG_fail;
22946 swig_obj[0] = args;
22947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22948 if (!SWIG_IsOK(res1)) {
22949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22950 }
22951 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22954 {
0085ce49
RD
22955 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22956 result = (wxBitmap *) &_result_ref;
093d3ff1 22957 }
0085ce49
RD
22958 wxPyEndAllowThreads(__tstate);
22959 if (PyErr_Occurred()) SWIG_fail;
22960 }
22961 {
22962 wxBitmap* resultptr = new wxBitmap(*result);
22963 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22964 }
22965 return resultobj;
22966fail:
22967 return NULL;
d1e20054
RD
22968}
22969
22970
0085ce49
RD
22971SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22972 PyObject *resultobj = 0;
22973 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22974 wxBitmap *result = 0 ;
22975 void *argp1 = 0 ;
22976 int res1 = 0 ;
22977 PyObject *swig_obj[1] ;
22978
22979 if (!args) SWIG_fail;
22980 swig_obj[0] = args;
22981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22982 if (!SWIG_IsOK(res1)) {
22983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22984 }
22985 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 22988 {
0085ce49
RD
22989 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22990 result = (wxBitmap *) &_result_ref;
d1e20054 22991 }
0085ce49
RD
22992 wxPyEndAllowThreads(__tstate);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 }
22995 {
22996 wxBitmap* resultptr = new wxBitmap(*result);
22997 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22998 }
22999 return resultobj;
23000fail:
23001 return NULL;
d1e20054
RD
23002}
23003
23004
0085ce49
RD
23005SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23006 PyObject *resultobj = 0;
23007 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23008 wxBitmap result;
23009 void *argp1 = 0 ;
23010 int res1 = 0 ;
23011 PyObject *swig_obj[1] ;
23012
23013 if (!args) SWIG_fail;
23014 swig_obj[0] = args;
23015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23016 if (!SWIG_IsOK(res1)) {
23017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23018 }
23019 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 result = (arg1)->GetBitmap();
23023 wxPyEndAllowThreads(__tstate);
23024 if (PyErr_Occurred()) SWIG_fail;
23025 }
23026 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23027 return resultobj;
23028fail:
23029 return NULL;
b2dc1044
RD
23030}
23031
23032
0085ce49
RD
23033SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23034 PyObject *resultobj = 0;
23035 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23036 wxString result;
23037 void *argp1 = 0 ;
23038 int res1 = 0 ;
23039 PyObject *swig_obj[1] ;
23040
23041 if (!args) SWIG_fail;
23042 swig_obj[0] = args;
23043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23046 }
23047 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 result = (arg1)->GetLabel();
23051 wxPyEndAllowThreads(__tstate);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 }
23054 {
b2dc1044 23055#if wxUSE_UNICODE
0085ce49 23056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23057#else
0085ce49 23058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23059#endif
0085ce49
RD
23060 }
23061 return resultobj;
23062fail:
23063 return NULL;
b2dc1044
RD
23064}
23065
23066
0085ce49
RD
23067SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23068 PyObject *resultobj = 0;
23069 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23070 wxString result;
23071 void *argp1 = 0 ;
23072 int res1 = 0 ;
23073 PyObject *swig_obj[1] ;
23074
23075 if (!args) SWIG_fail;
23076 swig_obj[0] = args;
23077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23078 if (!SWIG_IsOK(res1)) {
23079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23080 }
23081 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 result = (arg1)->GetShortHelp();
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 {
b2dc1044 23089#if wxUSE_UNICODE
0085ce49 23090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23091#else
0085ce49 23092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23093#endif
0085ce49
RD
23094 }
23095 return resultobj;
23096fail:
23097 return NULL;
d14a1e28
RD
23098}
23099
23100
0085ce49
RD
23101SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23102 PyObject *resultobj = 0;
23103 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23104 wxString result;
23105 void *argp1 = 0 ;
23106 int res1 = 0 ;
23107 PyObject *swig_obj[1] ;
23108
23109 if (!args) SWIG_fail;
23110 swig_obj[0] = args;
23111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23112 if (!SWIG_IsOK(res1)) {
23113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23114 }
23115 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23116 {
23117 PyThreadState* __tstate = wxPyBeginAllowThreads();
23118 result = (arg1)->GetLongHelp();
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
23122 {
23123#if wxUSE_UNICODE
23124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23125#else
23126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23127#endif
23128 }
23129 return resultobj;
23130fail:
23131 return NULL;
23132}
23133
23134
23135SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23136 PyObject *resultobj = 0;
23137 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23138 bool arg2 ;
23139 bool result;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 bool val2 ;
23143 int ecode2 = 0 ;
23144 PyObject * obj0 = 0 ;
23145 PyObject * obj1 = 0 ;
23146 char * kwnames[] = {
23147 (char *) "self",(char *) "enable", NULL
23148 };
23149
23150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23152 if (!SWIG_IsOK(res1)) {
23153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23154 }
23155 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23156 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23157 if (!SWIG_IsOK(ecode2)) {
23158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23159 }
23160 arg2 = static_cast< bool >(val2);
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 result = (bool)(arg1)->Enable(arg2);
23164 wxPyEndAllowThreads(__tstate);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 }
23167 {
23168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23169 }
23170 return resultobj;
23171fail:
23172 return NULL;
d14a1e28
RD
23173}
23174
23175
0085ce49
RD
23176SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23177 PyObject *resultobj = 0;
23178 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23179 void *argp1 = 0 ;
23180 int res1 = 0 ;
23181 PyObject *swig_obj[1] ;
23182
23183 if (!args) SWIG_fail;
23184 swig_obj[0] = args;
23185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23186 if (!SWIG_IsOK(res1)) {
23187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23188 }
23189 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 (arg1)->Toggle();
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_Py_Void();
23197 return resultobj;
23198fail:
23199 return NULL;
23200}
23201
23202
23203SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23204 PyObject *resultobj = 0;
23205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23206 bool arg2 ;
23207 bool result;
23208 void *argp1 = 0 ;
23209 int res1 = 0 ;
23210 bool val2 ;
23211 int ecode2 = 0 ;
23212 PyObject * obj0 = 0 ;
23213 PyObject * obj1 = 0 ;
23214 char * kwnames[] = {
23215 (char *) "self",(char *) "toggle", NULL
23216 };
23217
23218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23220 if (!SWIG_IsOK(res1)) {
23221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23222 }
23223 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23224 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23225 if (!SWIG_IsOK(ecode2)) {
23226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23227 }
23228 arg2 = static_cast< bool >(val2);
23229 {
23230 PyThreadState* __tstate = wxPyBeginAllowThreads();
23231 result = (bool)(arg1)->SetToggle(arg2);
23232 wxPyEndAllowThreads(__tstate);
23233 if (PyErr_Occurred()) SWIG_fail;
23234 }
23235 {
23236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23237 }
23238 return resultobj;
23239fail:
23240 return NULL;
23241}
23242
23243
23244SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23245 PyObject *resultobj = 0;
23246 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23247 wxString *arg2 = 0 ;
23248 bool result;
23249 void *argp1 = 0 ;
23250 int res1 = 0 ;
23251 bool temp2 = false ;
23252 PyObject * obj0 = 0 ;
23253 PyObject * obj1 = 0 ;
23254 char * kwnames[] = {
23255 (char *) "self",(char *) "help", NULL
23256 };
23257
23258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23260 if (!SWIG_IsOK(res1)) {
23261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23262 }
23263 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23264 {
23265 arg2 = wxString_in_helper(obj1);
23266 if (arg2 == NULL) SWIG_fail;
23267 temp2 = true;
23268 }
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23272 wxPyEndAllowThreads(__tstate);
23273 if (PyErr_Occurred()) SWIG_fail;
23274 }
23275 {
23276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23277 }
23278 {
23279 if (temp2)
23280 delete arg2;
23281 }
23282 return resultobj;
23283fail:
23284 {
23285 if (temp2)
23286 delete arg2;
23287 }
23288 return NULL;
23289}
23290
23291
23292SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23293 PyObject *resultobj = 0;
23294 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23295 wxString *arg2 = 0 ;
23296 bool result;
23297 void *argp1 = 0 ;
23298 int res1 = 0 ;
23299 bool temp2 = false ;
23300 PyObject * obj0 = 0 ;
23301 PyObject * obj1 = 0 ;
23302 char * kwnames[] = {
23303 (char *) "self",(char *) "help", NULL
23304 };
23305
23306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23308 if (!SWIG_IsOK(res1)) {
23309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23310 }
23311 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23312 {
23313 arg2 = wxString_in_helper(obj1);
23314 if (arg2 == NULL) SWIG_fail;
23315 temp2 = true;
23316 }
23317 {
23318 PyThreadState* __tstate = wxPyBeginAllowThreads();
23319 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 {
23324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23325 }
23326 {
23327 if (temp2)
23328 delete arg2;
23329 }
23330 return resultobj;
23331fail:
23332 {
23333 if (temp2)
23334 delete arg2;
23335 }
23336 return NULL;
23337}
23338
23339
23340SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23341 PyObject *resultobj = 0;
23342 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23343 wxBitmap *arg2 = 0 ;
23344 void *argp1 = 0 ;
23345 int res1 = 0 ;
23346 void *argp2 = 0 ;
23347 int res2 = 0 ;
23348 PyObject * obj0 = 0 ;
23349 PyObject * obj1 = 0 ;
23350 char * kwnames[] = {
23351 (char *) "self",(char *) "bmp", NULL
23352 };
23353
23354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23356 if (!SWIG_IsOK(res1)) {
23357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23358 }
23359 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23361 if (!SWIG_IsOK(res2)) {
23362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23363 }
23364 if (!argp2) {
23365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23366 }
23367 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 resultobj = SWIG_Py_Void();
23375 return resultobj;
23376fail:
23377 return NULL;
23378}
23379
23380
23381SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23382 PyObject *resultobj = 0;
23383 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23384 wxBitmap *arg2 = 0 ;
23385 void *argp1 = 0 ;
23386 int res1 = 0 ;
23387 void *argp2 = 0 ;
23388 int res2 = 0 ;
23389 PyObject * obj0 = 0 ;
23390 PyObject * obj1 = 0 ;
23391 char * kwnames[] = {
23392 (char *) "self",(char *) "bmp", NULL
23393 };
23394
23395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23397 if (!SWIG_IsOK(res1)) {
23398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23399 }
23400 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23402 if (!SWIG_IsOK(res2)) {
23403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23404 }
23405 if (!argp2) {
23406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23407 }
23408 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23409 {
23410 PyThreadState* __tstate = wxPyBeginAllowThreads();
23411 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23412 wxPyEndAllowThreads(__tstate);
23413 if (PyErr_Occurred()) SWIG_fail;
23414 }
23415 resultobj = SWIG_Py_Void();
23416 return resultobj;
23417fail:
23418 return NULL;
23419}
23420
23421
23422SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23423 PyObject *resultobj = 0;
23424 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23425 wxString *arg2 = 0 ;
23426 void *argp1 = 0 ;
23427 int res1 = 0 ;
23428 bool temp2 = false ;
23429 PyObject * obj0 = 0 ;
23430 PyObject * obj1 = 0 ;
23431 char * kwnames[] = {
23432 (char *) "self",(char *) "label", NULL
23433 };
23434
23435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23439 }
23440 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23441 {
23442 arg2 = wxString_in_helper(obj1);
23443 if (arg2 == NULL) SWIG_fail;
23444 temp2 = true;
23445 }
23446 {
23447 PyThreadState* __tstate = wxPyBeginAllowThreads();
23448 (arg1)->SetLabel((wxString const &)*arg2);
23449 wxPyEndAllowThreads(__tstate);
23450 if (PyErr_Occurred()) SWIG_fail;
23451 }
23452 resultobj = SWIG_Py_Void();
23453 {
23454 if (temp2)
23455 delete arg2;
23456 }
23457 return resultobj;
23458fail:
23459 {
23460 if (temp2)
23461 delete arg2;
23462 }
23463 return NULL;
d14a1e28
RD
23464}
23465
23466
0085ce49
RD
23467SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 PyObject *resultobj = 0;
23469 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23470 void *argp1 = 0 ;
23471 int res1 = 0 ;
23472 PyObject *swig_obj[1] ;
23473
23474 if (!args) SWIG_fail;
23475 swig_obj[0] = args;
23476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23477 if (!SWIG_IsOK(res1)) {
23478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23479 }
23480 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23481 {
23482 PyThreadState* __tstate = wxPyBeginAllowThreads();
23483 (arg1)->Detach();
23484 wxPyEndAllowThreads(__tstate);
23485 if (PyErr_Occurred()) SWIG_fail;
23486 }
23487 resultobj = SWIG_Py_Void();
23488 return resultobj;
23489fail:
23490 return NULL;
23491}
23492
23493
23494SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23495 PyObject *resultobj = 0;
23496 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23497 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23498 void *argp1 = 0 ;
23499 int res1 = 0 ;
23500 void *argp2 = 0 ;
23501 int res2 = 0 ;
23502 PyObject * obj0 = 0 ;
23503 PyObject * obj1 = 0 ;
23504 char * kwnames[] = {
23505 (char *) "self",(char *) "tbar", NULL
23506 };
23507
23508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23510 if (!SWIG_IsOK(res1)) {
23511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23512 }
23513 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23514 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23515 if (!SWIG_IsOK(res2)) {
23516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23517 }
23518 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 (arg1)->Attach(arg2);
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = SWIG_Py_Void();
23526 return resultobj;
23527fail:
23528 return NULL;
d14a1e28
RD
23529}
23530
23531
0085ce49
RD
23532SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23533 PyObject *resultobj = 0;
23534 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23535 PyObject *result = 0 ;
23536 void *argp1 = 0 ;
23537 int res1 = 0 ;
23538 PyObject *swig_obj[1] ;
23539
23540 if (!args) SWIG_fail;
23541 swig_obj[0] = args;
23542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23545 }
23546 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23547 {
23548 PyThreadState* __tstate = wxPyBeginAllowThreads();
23549 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 resultobj = result;
23554 return resultobj;
23555fail:
23556 return NULL;
23557}
23558
23559
23560SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23561 PyObject *resultobj = 0;
23562 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23563 PyObject *arg2 = (PyObject *) 0 ;
23564 void *argp1 = 0 ;
23565 int res1 = 0 ;
23566 PyObject * obj0 = 0 ;
23567 PyObject * obj1 = 0 ;
23568 char * kwnames[] = {
23569 (char *) "self",(char *) "clientData", NULL
23570 };
23571
23572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23574 if (!SWIG_IsOK(res1)) {
23575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23576 }
23577 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23578 arg2 = obj1;
23579 {
23580 PyThreadState* __tstate = wxPyBeginAllowThreads();
23581 wxToolBarToolBase_SetClientData(arg1,arg2);
23582 wxPyEndAllowThreads(__tstate);
23583 if (PyErr_Occurred()) SWIG_fail;
23584 }
23585 resultobj = SWIG_Py_Void();
23586 return resultobj;
23587fail:
23588 return NULL;
23589}
23590
23591
23592SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23593 PyObject *obj;
23594 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23595 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23596 return SWIG_Py_Void();
23597}
23598
23599SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23600 PyObject *resultobj = 0;
23601 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23602 int arg2 ;
23603 wxString *arg3 = 0 ;
23604 wxBitmap *arg4 = 0 ;
23605 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23606 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23607 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23608 wxString const &arg7_defvalue = wxPyEmptyString ;
23609 wxString *arg7 = (wxString *) &arg7_defvalue ;
23610 wxString const &arg8_defvalue = wxPyEmptyString ;
23611 wxString *arg8 = (wxString *) &arg8_defvalue ;
23612 PyObject *arg9 = (PyObject *) NULL ;
23613 wxToolBarToolBase *result = 0 ;
23614 void *argp1 = 0 ;
23615 int res1 = 0 ;
23616 int val2 ;
23617 int ecode2 = 0 ;
23618 bool temp3 = false ;
23619 void *argp4 = 0 ;
23620 int res4 = 0 ;
23621 void *argp5 = 0 ;
23622 int res5 = 0 ;
23623 int val6 ;
23624 int ecode6 = 0 ;
23625 bool temp7 = false ;
23626 bool temp8 = false ;
23627 PyObject * obj0 = 0 ;
23628 PyObject * obj1 = 0 ;
23629 PyObject * obj2 = 0 ;
23630 PyObject * obj3 = 0 ;
23631 PyObject * obj4 = 0 ;
23632 PyObject * obj5 = 0 ;
23633 PyObject * obj6 = 0 ;
23634 PyObject * obj7 = 0 ;
23635 PyObject * obj8 = 0 ;
23636 char * kwnames[] = {
23637 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23638 };
23639
23640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23642 if (!SWIG_IsOK(res1)) {
23643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23644 }
23645 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23646 ecode2 = SWIG_AsVal_int(obj1, &val2);
23647 if (!SWIG_IsOK(ecode2)) {
23648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23649 }
23650 arg2 = static_cast< int >(val2);
23651 {
23652 arg3 = wxString_in_helper(obj2);
23653 if (arg3 == NULL) SWIG_fail;
23654 temp3 = true;
23655 }
23656 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23657 if (!SWIG_IsOK(res4)) {
23658 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23659 }
23660 if (!argp4) {
23661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23662 }
23663 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23664 if (obj4) {
23665 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23666 if (!SWIG_IsOK(res5)) {
23667 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23668 }
0085ce49
RD
23669 if (!argp5) {
23670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23671 }
0085ce49
RD
23672 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23673 }
23674 if (obj5) {
23675 ecode6 = SWIG_AsVal_int(obj5, &val6);
23676 if (!SWIG_IsOK(ecode6)) {
23677 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23678 }
23679 arg6 = static_cast< wxItemKind >(val6);
23680 }
23681 if (obj6) {
093d3ff1 23682 {
0085ce49
RD
23683 arg7 = wxString_in_helper(obj6);
23684 if (arg7 == NULL) SWIG_fail;
23685 temp7 = true;
093d3ff1 23686 }
0085ce49
RD
23687 }
23688 if (obj7) {
d14a1e28 23689 {
0085ce49
RD
23690 arg8 = wxString_in_helper(obj7);
23691 if (arg8 == NULL) SWIG_fail;
23692 temp8 = true;
d14a1e28 23693 }
0085ce49
RD
23694 }
23695 if (obj8) {
23696 arg9 = obj8;
23697 }
23698 {
23699 PyThreadState* __tstate = wxPyBeginAllowThreads();
23700 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 {
23705 resultobj = wxPyMake_wxObject(result, (bool)0);
23706 }
23707 {
23708 if (temp3)
23709 delete arg3;
23710 }
23711 {
23712 if (temp7)
23713 delete arg7;
23714 }
23715 {
23716 if (temp8)
23717 delete arg8;
23718 }
23719 return resultobj;
23720fail:
23721 {
23722 if (temp3)
23723 delete arg3;
23724 }
23725 {
23726 if (temp7)
23727 delete arg7;
23728 }
23729 {
23730 if (temp8)
23731 delete arg8;
23732 }
23733 return NULL;
23734}
23735
23736
23737SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23738 PyObject *resultobj = 0;
23739 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23740 size_t arg2 ;
23741 int arg3 ;
23742 wxString *arg4 = 0 ;
23743 wxBitmap *arg5 = 0 ;
23744 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23745 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23746 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23747 wxString const &arg8_defvalue = wxPyEmptyString ;
23748 wxString *arg8 = (wxString *) &arg8_defvalue ;
23749 wxString const &arg9_defvalue = wxPyEmptyString ;
23750 wxString *arg9 = (wxString *) &arg9_defvalue ;
23751 PyObject *arg10 = (PyObject *) NULL ;
23752 wxToolBarToolBase *result = 0 ;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 size_t val2 ;
23756 int ecode2 = 0 ;
23757 int val3 ;
23758 int ecode3 = 0 ;
23759 bool temp4 = false ;
23760 void *argp5 = 0 ;
23761 int res5 = 0 ;
23762 void *argp6 = 0 ;
23763 int res6 = 0 ;
23764 int val7 ;
23765 int ecode7 = 0 ;
23766 bool temp8 = false ;
23767 bool temp9 = false ;
23768 PyObject * obj0 = 0 ;
23769 PyObject * obj1 = 0 ;
23770 PyObject * obj2 = 0 ;
23771 PyObject * obj3 = 0 ;
23772 PyObject * obj4 = 0 ;
23773 PyObject * obj5 = 0 ;
23774 PyObject * obj6 = 0 ;
23775 PyObject * obj7 = 0 ;
23776 PyObject * obj8 = 0 ;
23777 PyObject * obj9 = 0 ;
23778 char * kwnames[] = {
23779 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23780 };
23781
23782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23786 }
23787 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23788 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23789 if (!SWIG_IsOK(ecode2)) {
23790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23791 }
23792 arg2 = static_cast< size_t >(val2);
23793 ecode3 = SWIG_AsVal_int(obj2, &val3);
23794 if (!SWIG_IsOK(ecode3)) {
23795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23796 }
23797 arg3 = static_cast< int >(val3);
23798 {
23799 arg4 = wxString_in_helper(obj3);
23800 if (arg4 == NULL) SWIG_fail;
23801 temp4 = true;
23802 }
23803 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23804 if (!SWIG_IsOK(res5)) {
23805 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23806 }
23807 if (!argp5) {
23808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23809 }
23810 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23811 if (obj5) {
23812 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23813 if (!SWIG_IsOK(res6)) {
23814 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 23815 }
0085ce49
RD
23816 if (!argp6) {
23817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 23818 }
0085ce49
RD
23819 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23820 }
23821 if (obj6) {
23822 ecode7 = SWIG_AsVal_int(obj6, &val7);
23823 if (!SWIG_IsOK(ecode7)) {
23824 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23825 }
23826 arg7 = static_cast< wxItemKind >(val7);
23827 }
23828 if (obj7) {
d14a1e28 23829 {
0085ce49
RD
23830 arg8 = wxString_in_helper(obj7);
23831 if (arg8 == NULL) SWIG_fail;
23832 temp8 = true;
d14a1e28 23833 }
0085ce49
RD
23834 }
23835 if (obj8) {
d14a1e28 23836 {
0085ce49
RD
23837 arg9 = wxString_in_helper(obj8);
23838 if (arg9 == NULL) SWIG_fail;
23839 temp9 = true;
d14a1e28 23840 }
0085ce49
RD
23841 }
23842 if (obj9) {
23843 arg10 = obj9;
23844 }
23845 {
23846 PyThreadState* __tstate = wxPyBeginAllowThreads();
23847 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23848 wxPyEndAllowThreads(__tstate);
23849 if (PyErr_Occurred()) SWIG_fail;
23850 }
23851 {
23852 resultobj = wxPyMake_wxObject(result, (bool)0);
23853 }
23854 {
23855 if (temp4)
23856 delete arg4;
23857 }
23858 {
23859 if (temp8)
23860 delete arg8;
23861 }
23862 {
23863 if (temp9)
23864 delete arg9;
23865 }
23866 return resultobj;
23867fail:
23868 {
23869 if (temp4)
23870 delete arg4;
23871 }
23872 {
23873 if (temp8)
23874 delete arg8;
23875 }
23876 {
23877 if (temp9)
23878 delete arg9;
23879 }
23880 return NULL;
23881}
23882
23883
23884SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj = 0;
23886 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23887 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23888 wxToolBarToolBase *result = 0 ;
23889 void *argp1 = 0 ;
23890 int res1 = 0 ;
23891 void *argp2 = 0 ;
23892 int res2 = 0 ;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 char * kwnames[] = {
23896 (char *) "self",(char *) "tool", NULL
23897 };
23898
23899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23901 if (!SWIG_IsOK(res1)) {
23902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23903 }
23904 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23906 if (!SWIG_IsOK(res2)) {
23907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23908 }
23909 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 {
23917 resultobj = wxPyMake_wxObject(result, (bool)0);
23918 }
23919 return resultobj;
23920fail:
23921 return NULL;
23922}
23923
23924
23925SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23926 PyObject *resultobj = 0;
23927 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23928 size_t arg2 ;
23929 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23930 wxToolBarToolBase *result = 0 ;
23931 void *argp1 = 0 ;
23932 int res1 = 0 ;
23933 size_t val2 ;
23934 int ecode2 = 0 ;
23935 void *argp3 = 0 ;
23936 int res3 = 0 ;
23937 PyObject * obj0 = 0 ;
23938 PyObject * obj1 = 0 ;
23939 PyObject * obj2 = 0 ;
23940 char * kwnames[] = {
23941 (char *) "self",(char *) "pos",(char *) "tool", NULL
23942 };
23943
23944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23946 if (!SWIG_IsOK(res1)) {
23947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23948 }
23949 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23950 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23951 if (!SWIG_IsOK(ecode2)) {
23952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23953 }
23954 arg2 = static_cast< size_t >(val2);
23955 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23956 if (!SWIG_IsOK(res3)) {
23957 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23958 }
23959 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 {
23967 resultobj = wxPyMake_wxObject(result, (bool)0);
23968 }
23969 return resultobj;
23970fail:
23971 return NULL;
23972}
23973
23974
23975SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23976 PyObject *resultobj = 0;
23977 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23978 wxControl *arg2 = (wxControl *) 0 ;
23979 wxToolBarToolBase *result = 0 ;
23980 void *argp1 = 0 ;
23981 int res1 = 0 ;
23982 void *argp2 = 0 ;
23983 int res2 = 0 ;
23984 PyObject * obj0 = 0 ;
23985 PyObject * obj1 = 0 ;
23986 char * kwnames[] = {
23987 (char *) "self",(char *) "control", NULL
23988 };
23989
23990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23992 if (!SWIG_IsOK(res1)) {
23993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23994 }
23995 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23997 if (!SWIG_IsOK(res2)) {
23998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23999 }
24000 arg2 = reinterpret_cast< wxControl * >(argp2);
24001 {
24002 PyThreadState* __tstate = wxPyBeginAllowThreads();
24003 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24004 wxPyEndAllowThreads(__tstate);
24005 if (PyErr_Occurred()) SWIG_fail;
24006 }
24007 {
24008 resultobj = wxPyMake_wxObject(result, (bool)0);
24009 }
24010 return resultobj;
24011fail:
24012 return NULL;
24013}
24014
24015
24016SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24017 PyObject *resultobj = 0;
24018 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24019 size_t arg2 ;
24020 wxControl *arg3 = (wxControl *) 0 ;
24021 wxToolBarToolBase *result = 0 ;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 size_t val2 ;
24025 int ecode2 = 0 ;
24026 void *argp3 = 0 ;
24027 int res3 = 0 ;
24028 PyObject * obj0 = 0 ;
24029 PyObject * obj1 = 0 ;
24030 PyObject * obj2 = 0 ;
24031 char * kwnames[] = {
24032 (char *) "self",(char *) "pos",(char *) "control", NULL
24033 };
24034
24035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24037 if (!SWIG_IsOK(res1)) {
24038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24039 }
24040 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24041 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24042 if (!SWIG_IsOK(ecode2)) {
24043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24044 }
24045 arg2 = static_cast< size_t >(val2);
24046 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24047 if (!SWIG_IsOK(res3)) {
24048 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24049 }
24050 arg3 = reinterpret_cast< wxControl * >(argp3);
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 {
24058 resultobj = wxPyMake_wxObject(result, (bool)0);
24059 }
24060 return resultobj;
24061fail:
24062 return NULL;
24063}
24064
24065
24066SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24067 PyObject *resultobj = 0;
24068 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24069 int arg2 ;
24070 wxControl *result = 0 ;
24071 void *argp1 = 0 ;
24072 int res1 = 0 ;
24073 int val2 ;
24074 int ecode2 = 0 ;
24075 PyObject * obj0 = 0 ;
24076 PyObject * obj1 = 0 ;
24077 char * kwnames[] = {
24078 (char *) "self",(char *) "id", NULL
24079 };
24080
24081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24083 if (!SWIG_IsOK(res1)) {
24084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24085 }
24086 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24087 ecode2 = SWIG_AsVal_int(obj1, &val2);
24088 if (!SWIG_IsOK(ecode2)) {
24089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24090 }
24091 arg2 = static_cast< int >(val2);
24092 {
24093 PyThreadState* __tstate = wxPyBeginAllowThreads();
24094 result = (wxControl *)(arg1)->FindControl(arg2);
24095 wxPyEndAllowThreads(__tstate);
24096 if (PyErr_Occurred()) SWIG_fail;
24097 }
24098 {
24099 resultobj = wxPyMake_wxObject(result, 0);
24100 }
24101 return resultobj;
24102fail:
24103 return NULL;
d14a1e28
RD
24104}
24105
24106
0085ce49
RD
24107SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24108 PyObject *resultobj = 0;
24109 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24110 wxToolBarToolBase *result = 0 ;
24111 void *argp1 = 0 ;
24112 int res1 = 0 ;
24113 PyObject *swig_obj[1] ;
24114
24115 if (!args) SWIG_fail;
24116 swig_obj[0] = args;
24117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24118 if (!SWIG_IsOK(res1)) {
24119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24120 }
24121 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
24128 {
24129 resultobj = wxPyMake_wxObject(result, (bool)0);
24130 }
24131 return resultobj;
24132fail:
24133 return NULL;
24134}
24135
24136
24137SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24138 PyObject *resultobj = 0;
24139 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24140 size_t arg2 ;
24141 wxToolBarToolBase *result = 0 ;
24142 void *argp1 = 0 ;
24143 int res1 = 0 ;
24144 size_t val2 ;
24145 int ecode2 = 0 ;
24146 PyObject * obj0 = 0 ;
24147 PyObject * obj1 = 0 ;
24148 char * kwnames[] = {
24149 (char *) "self",(char *) "pos", NULL
24150 };
24151
24152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24154 if (!SWIG_IsOK(res1)) {
24155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24156 }
24157 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24158 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24159 if (!SWIG_IsOK(ecode2)) {
24160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24161 }
24162 arg2 = static_cast< size_t >(val2);
24163 {
24164 PyThreadState* __tstate = wxPyBeginAllowThreads();
24165 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24166 wxPyEndAllowThreads(__tstate);
24167 if (PyErr_Occurred()) SWIG_fail;
24168 }
24169 {
24170 resultobj = wxPyMake_wxObject(result, (bool)0);
24171 }
24172 return resultobj;
24173fail:
24174 return NULL;
24175}
24176
24177
24178SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24179 PyObject *resultobj = 0;
24180 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24181 int arg2 ;
24182 wxToolBarToolBase *result = 0 ;
24183 void *argp1 = 0 ;
24184 int res1 = 0 ;
24185 int val2 ;
24186 int ecode2 = 0 ;
24187 PyObject * obj0 = 0 ;
24188 PyObject * obj1 = 0 ;
24189 char * kwnames[] = {
24190 (char *) "self",(char *) "id", NULL
24191 };
24192
24193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24195 if (!SWIG_IsOK(res1)) {
24196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24197 }
24198 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24199 ecode2 = SWIG_AsVal_int(obj1, &val2);
24200 if (!SWIG_IsOK(ecode2)) {
24201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24202 }
24203 arg2 = static_cast< int >(val2);
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 {
24211 resultobj = wxPyMake_wxObject(result, (bool)0);
24212 }
24213 return resultobj;
24214fail:
24215 return NULL;
24216}
24217
24218
24219SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24220 PyObject *resultobj = 0;
24221 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24222 size_t arg2 ;
24223 bool result;
24224 void *argp1 = 0 ;
24225 int res1 = 0 ;
24226 size_t val2 ;
24227 int ecode2 = 0 ;
24228 PyObject * obj0 = 0 ;
24229 PyObject * obj1 = 0 ;
24230 char * kwnames[] = {
24231 (char *) "self",(char *) "pos", NULL
24232 };
24233
24234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24236 if (!SWIG_IsOK(res1)) {
24237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24238 }
24239 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24240 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24241 if (!SWIG_IsOK(ecode2)) {
24242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24243 }
24244 arg2 = static_cast< size_t >(val2);
24245 {
24246 PyThreadState* __tstate = wxPyBeginAllowThreads();
24247 result = (bool)(arg1)->DeleteToolByPos(arg2);
24248 wxPyEndAllowThreads(__tstate);
24249 if (PyErr_Occurred()) SWIG_fail;
24250 }
24251 {
24252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24253 }
24254 return resultobj;
24255fail:
24256 return NULL;
24257}
24258
24259
24260SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24261 PyObject *resultobj = 0;
24262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24263 int arg2 ;
24264 bool result;
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
24267 int val2 ;
24268 int ecode2 = 0 ;
24269 PyObject * obj0 = 0 ;
24270 PyObject * obj1 = 0 ;
24271 char * kwnames[] = {
24272 (char *) "self",(char *) "id", NULL
24273 };
24274
24275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24277 if (!SWIG_IsOK(res1)) {
24278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24279 }
24280 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24281 ecode2 = SWIG_AsVal_int(obj1, &val2);
24282 if (!SWIG_IsOK(ecode2)) {
24283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24284 }
24285 arg2 = static_cast< int >(val2);
24286 {
24287 PyThreadState* __tstate = wxPyBeginAllowThreads();
24288 result = (bool)(arg1)->DeleteTool(arg2);
24289 wxPyEndAllowThreads(__tstate);
24290 if (PyErr_Occurred()) SWIG_fail;
24291 }
24292 {
24293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24294 }
24295 return resultobj;
24296fail:
24297 return NULL;
d14a1e28
RD
24298}
24299
24300
0085ce49
RD
24301SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24302 PyObject *resultobj = 0;
24303 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24304 void *argp1 = 0 ;
24305 int res1 = 0 ;
24306 PyObject *swig_obj[1] ;
24307
24308 if (!args) SWIG_fail;
24309 swig_obj[0] = args;
24310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24311 if (!SWIG_IsOK(res1)) {
24312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24313 }
24314 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24315 {
24316 PyThreadState* __tstate = wxPyBeginAllowThreads();
24317 (arg1)->ClearTools();
24318 wxPyEndAllowThreads(__tstate);
24319 if (PyErr_Occurred()) SWIG_fail;
24320 }
24321 resultobj = SWIG_Py_Void();
24322 return resultobj;
24323fail:
24324 return NULL;
d14a1e28
RD
24325}
24326
24327
0085ce49
RD
24328SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24329 PyObject *resultobj = 0;
24330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24331 bool result;
24332 void *argp1 = 0 ;
24333 int res1 = 0 ;
24334 PyObject *swig_obj[1] ;
24335
24336 if (!args) SWIG_fail;
24337 swig_obj[0] = args;
24338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24339 if (!SWIG_IsOK(res1)) {
24340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24341 }
24342 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24343 {
24344 PyThreadState* __tstate = wxPyBeginAllowThreads();
24345 result = (bool)(arg1)->Realize();
24346 wxPyEndAllowThreads(__tstate);
24347 if (PyErr_Occurred()) SWIG_fail;
24348 }
24349 {
24350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24351 }
24352 return resultobj;
24353fail:
24354 return NULL;
24355}
24356
24357
24358SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24359 PyObject *resultobj = 0;
24360 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24361 int arg2 ;
24362 bool arg3 ;
24363 void *argp1 = 0 ;
24364 int res1 = 0 ;
24365 int val2 ;
24366 int ecode2 = 0 ;
24367 bool val3 ;
24368 int ecode3 = 0 ;
24369 PyObject * obj0 = 0 ;
24370 PyObject * obj1 = 0 ;
24371 PyObject * obj2 = 0 ;
24372 char * kwnames[] = {
24373 (char *) "self",(char *) "id",(char *) "enable", NULL
24374 };
24375
24376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24378 if (!SWIG_IsOK(res1)) {
24379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24380 }
24381 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24382 ecode2 = SWIG_AsVal_int(obj1, &val2);
24383 if (!SWIG_IsOK(ecode2)) {
24384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24385 }
24386 arg2 = static_cast< int >(val2);
24387 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24388 if (!SWIG_IsOK(ecode3)) {
24389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24390 }
24391 arg3 = static_cast< bool >(val3);
24392 {
24393 PyThreadState* __tstate = wxPyBeginAllowThreads();
24394 (arg1)->EnableTool(arg2,arg3);
24395 wxPyEndAllowThreads(__tstate);
24396 if (PyErr_Occurred()) SWIG_fail;
24397 }
24398 resultobj = SWIG_Py_Void();
24399 return resultobj;
24400fail:
24401 return NULL;
24402}
24403
24404
24405SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24406 PyObject *resultobj = 0;
24407 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24408 int arg2 ;
24409 bool arg3 ;
24410 void *argp1 = 0 ;
24411 int res1 = 0 ;
24412 int val2 ;
24413 int ecode2 = 0 ;
24414 bool val3 ;
24415 int ecode3 = 0 ;
24416 PyObject * obj0 = 0 ;
24417 PyObject * obj1 = 0 ;
24418 PyObject * obj2 = 0 ;
24419 char * kwnames[] = {
24420 (char *) "self",(char *) "id",(char *) "toggle", NULL
24421 };
24422
24423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24425 if (!SWIG_IsOK(res1)) {
24426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24427 }
24428 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24429 ecode2 = SWIG_AsVal_int(obj1, &val2);
24430 if (!SWIG_IsOK(ecode2)) {
24431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24432 }
24433 arg2 = static_cast< int >(val2);
24434 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24435 if (!SWIG_IsOK(ecode3)) {
24436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24437 }
24438 arg3 = static_cast< bool >(val3);
24439 {
24440 PyThreadState* __tstate = wxPyBeginAllowThreads();
24441 (arg1)->ToggleTool(arg2,arg3);
24442 wxPyEndAllowThreads(__tstate);
24443 if (PyErr_Occurred()) SWIG_fail;
24444 }
24445 resultobj = SWIG_Py_Void();
24446 return resultobj;
24447fail:
24448 return NULL;
24449}
24450
24451
24452SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24453 PyObject *resultobj = 0;
24454 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24455 int arg2 ;
24456 bool arg3 ;
24457 void *argp1 = 0 ;
24458 int res1 = 0 ;
24459 int val2 ;
24460 int ecode2 = 0 ;
24461 bool val3 ;
24462 int ecode3 = 0 ;
24463 PyObject * obj0 = 0 ;
24464 PyObject * obj1 = 0 ;
24465 PyObject * obj2 = 0 ;
24466 char * kwnames[] = {
24467 (char *) "self",(char *) "id",(char *) "toggle", NULL
24468 };
24469
24470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24472 if (!SWIG_IsOK(res1)) {
24473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24474 }
24475 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24476 ecode2 = SWIG_AsVal_int(obj1, &val2);
24477 if (!SWIG_IsOK(ecode2)) {
24478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24479 }
24480 arg2 = static_cast< int >(val2);
24481 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24482 if (!SWIG_IsOK(ecode3)) {
24483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24484 }
24485 arg3 = static_cast< bool >(val3);
24486 {
24487 PyThreadState* __tstate = wxPyBeginAllowThreads();
24488 (arg1)->SetToggle(arg2,arg3);
24489 wxPyEndAllowThreads(__tstate);
24490 if (PyErr_Occurred()) SWIG_fail;
24491 }
24492 resultobj = SWIG_Py_Void();
24493 return resultobj;
24494fail:
24495 return NULL;
24496}
24497
24498
24499SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24500 PyObject *resultobj = 0;
24501 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24502 int arg2 ;
24503 PyObject *result = 0 ;
24504 void *argp1 = 0 ;
24505 int res1 = 0 ;
24506 int val2 ;
24507 int ecode2 = 0 ;
24508 PyObject * obj0 = 0 ;
24509 PyObject * obj1 = 0 ;
24510 char * kwnames[] = {
24511 (char *) "self",(char *) "id", NULL
24512 };
24513
24514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24516 if (!SWIG_IsOK(res1)) {
24517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24518 }
24519 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24520 ecode2 = SWIG_AsVal_int(obj1, &val2);
24521 if (!SWIG_IsOK(ecode2)) {
24522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24523 }
24524 arg2 = static_cast< int >(val2);
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24528 wxPyEndAllowThreads(__tstate);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 resultobj = result;
24532 return resultobj;
24533fail:
24534 return NULL;
24535}
24536
24537
24538SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24539 PyObject *resultobj = 0;
24540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24541 int arg2 ;
24542 PyObject *arg3 = (PyObject *) 0 ;
24543 void *argp1 = 0 ;
24544 int res1 = 0 ;
24545 int val2 ;
24546 int ecode2 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 PyObject * obj2 = 0 ;
24550 char * kwnames[] = {
24551 (char *) "self",(char *) "id",(char *) "clientData", NULL
24552 };
24553
24554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24556 if (!SWIG_IsOK(res1)) {
24557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24558 }
24559 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24560 ecode2 = SWIG_AsVal_int(obj1, &val2);
24561 if (!SWIG_IsOK(ecode2)) {
24562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24563 }
24564 arg2 = static_cast< int >(val2);
24565 arg3 = obj2;
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 resultobj = SWIG_Py_Void();
24573 return resultobj;
24574fail:
24575 return NULL;
24576}
24577
24578
24579SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24580 PyObject *resultobj = 0;
24581 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24582 int arg2 ;
24583 int result;
24584 void *argp1 = 0 ;
24585 int res1 = 0 ;
24586 int val2 ;
24587 int ecode2 = 0 ;
24588 PyObject * obj0 = 0 ;
24589 PyObject * obj1 = 0 ;
24590 char * kwnames[] = {
24591 (char *) "self",(char *) "id", NULL
24592 };
24593
24594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24596 if (!SWIG_IsOK(res1)) {
24597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24598 }
24599 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24600 ecode2 = SWIG_AsVal_int(obj1, &val2);
24601 if (!SWIG_IsOK(ecode2)) {
24602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24603 }
24604 arg2 = static_cast< int >(val2);
24605 {
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24608 wxPyEndAllowThreads(__tstate);
24609 if (PyErr_Occurred()) SWIG_fail;
24610 }
24611 resultobj = SWIG_From_int(static_cast< int >(result));
24612 return resultobj;
24613fail:
24614 return NULL;
24615}
24616
24617
24618SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24619 PyObject *resultobj = 0;
24620 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24621 int arg2 ;
24622 bool result;
24623 void *argp1 = 0 ;
24624 int res1 = 0 ;
24625 int val2 ;
24626 int ecode2 = 0 ;
24627 PyObject * obj0 = 0 ;
24628 PyObject * obj1 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "self",(char *) "id", NULL
24631 };
24632
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24635 if (!SWIG_IsOK(res1)) {
24636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24637 }
24638 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24639 ecode2 = SWIG_AsVal_int(obj1, &val2);
24640 if (!SWIG_IsOK(ecode2)) {
24641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24642 }
24643 arg2 = static_cast< int >(val2);
24644 {
24645 PyThreadState* __tstate = wxPyBeginAllowThreads();
24646 result = (bool)(arg1)->GetToolState(arg2);
24647 wxPyEndAllowThreads(__tstate);
24648 if (PyErr_Occurred()) SWIG_fail;
24649 }
24650 {
24651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24652 }
24653 return resultobj;
24654fail:
24655 return NULL;
24656}
24657
24658
24659SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24660 PyObject *resultobj = 0;
24661 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24662 int arg2 ;
24663 bool result;
24664 void *argp1 = 0 ;
24665 int res1 = 0 ;
24666 int val2 ;
24667 int ecode2 = 0 ;
24668 PyObject * obj0 = 0 ;
24669 PyObject * obj1 = 0 ;
24670 char * kwnames[] = {
24671 (char *) "self",(char *) "id", NULL
24672 };
24673
24674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24676 if (!SWIG_IsOK(res1)) {
24677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24678 }
24679 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24680 ecode2 = SWIG_AsVal_int(obj1, &val2);
24681 if (!SWIG_IsOK(ecode2)) {
24682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24683 }
24684 arg2 = static_cast< int >(val2);
24685 {
24686 PyThreadState* __tstate = wxPyBeginAllowThreads();
24687 result = (bool)(arg1)->GetToolEnabled(arg2);
24688 wxPyEndAllowThreads(__tstate);
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 {
24692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24693 }
24694 return resultobj;
24695fail:
24696 return NULL;
24697}
24698
24699
24700SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24701 PyObject *resultobj = 0;
24702 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24703 int arg2 ;
24704 wxString *arg3 = 0 ;
24705 void *argp1 = 0 ;
24706 int res1 = 0 ;
24707 int val2 ;
24708 int ecode2 = 0 ;
24709 bool temp3 = false ;
24710 PyObject * obj0 = 0 ;
24711 PyObject * obj1 = 0 ;
24712 PyObject * obj2 = 0 ;
24713 char * kwnames[] = {
24714 (char *) "self",(char *) "id",(char *) "helpString", NULL
24715 };
24716
24717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24719 if (!SWIG_IsOK(res1)) {
24720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24721 }
24722 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24723 ecode2 = SWIG_AsVal_int(obj1, &val2);
24724 if (!SWIG_IsOK(ecode2)) {
24725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24726 }
24727 arg2 = static_cast< int >(val2);
24728 {
24729 arg3 = wxString_in_helper(obj2);
24730 if (arg3 == NULL) SWIG_fail;
24731 temp3 = true;
24732 }
24733 {
24734 PyThreadState* __tstate = wxPyBeginAllowThreads();
24735 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24736 wxPyEndAllowThreads(__tstate);
24737 if (PyErr_Occurred()) SWIG_fail;
24738 }
24739 resultobj = SWIG_Py_Void();
24740 {
24741 if (temp3)
24742 delete arg3;
24743 }
24744 return resultobj;
24745fail:
24746 {
24747 if (temp3)
24748 delete arg3;
24749 }
24750 return NULL;
24751}
24752
24753
24754SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24755 PyObject *resultobj = 0;
24756 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24757 int arg2 ;
24758 wxString result;
24759 void *argp1 = 0 ;
24760 int res1 = 0 ;
24761 int val2 ;
24762 int ecode2 = 0 ;
24763 PyObject * obj0 = 0 ;
24764 PyObject * obj1 = 0 ;
24765 char * kwnames[] = {
24766 (char *) "self",(char *) "id", NULL
24767 };
24768
24769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24771 if (!SWIG_IsOK(res1)) {
24772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24773 }
24774 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24775 ecode2 = SWIG_AsVal_int(obj1, &val2);
24776 if (!SWIG_IsOK(ecode2)) {
24777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24778 }
24779 arg2 = static_cast< int >(val2);
24780 {
24781 PyThreadState* __tstate = wxPyBeginAllowThreads();
24782 result = (arg1)->GetToolShortHelp(arg2);
24783 wxPyEndAllowThreads(__tstate);
24784 if (PyErr_Occurred()) SWIG_fail;
24785 }
24786 {
24787#if wxUSE_UNICODE
24788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24789#else
24790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24791#endif
24792 }
24793 return resultobj;
24794fail:
24795 return NULL;
24796}
24797
24798
24799SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24800 PyObject *resultobj = 0;
24801 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24802 int arg2 ;
24803 wxString *arg3 = 0 ;
24804 void *argp1 = 0 ;
24805 int res1 = 0 ;
24806 int val2 ;
24807 int ecode2 = 0 ;
24808 bool temp3 = false ;
24809 PyObject * obj0 = 0 ;
24810 PyObject * obj1 = 0 ;
24811 PyObject * obj2 = 0 ;
24812 char * kwnames[] = {
24813 (char *) "self",(char *) "id",(char *) "helpString", NULL
24814 };
24815
24816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24818 if (!SWIG_IsOK(res1)) {
24819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24820 }
24821 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24822 ecode2 = SWIG_AsVal_int(obj1, &val2);
24823 if (!SWIG_IsOK(ecode2)) {
24824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24825 }
24826 arg2 = static_cast< int >(val2);
24827 {
24828 arg3 = wxString_in_helper(obj2);
24829 if (arg3 == NULL) SWIG_fail;
24830 temp3 = true;
24831 }
24832 {
24833 PyThreadState* __tstate = wxPyBeginAllowThreads();
24834 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24835 wxPyEndAllowThreads(__tstate);
24836 if (PyErr_Occurred()) SWIG_fail;
24837 }
24838 resultobj = SWIG_Py_Void();
24839 {
24840 if (temp3)
24841 delete arg3;
24842 }
24843 return resultobj;
24844fail:
24845 {
24846 if (temp3)
24847 delete arg3;
24848 }
24849 return NULL;
24850}
24851
24852
24853SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24854 PyObject *resultobj = 0;
24855 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24856 int arg2 ;
24857 wxString result;
24858 void *argp1 = 0 ;
24859 int res1 = 0 ;
24860 int val2 ;
24861 int ecode2 = 0 ;
24862 PyObject * obj0 = 0 ;
24863 PyObject * obj1 = 0 ;
24864 char * kwnames[] = {
24865 (char *) "self",(char *) "id", NULL
24866 };
24867
24868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24870 if (!SWIG_IsOK(res1)) {
24871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24872 }
24873 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24874 ecode2 = SWIG_AsVal_int(obj1, &val2);
24875 if (!SWIG_IsOK(ecode2)) {
24876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24877 }
24878 arg2 = static_cast< int >(val2);
24879 {
24880 PyThreadState* __tstate = wxPyBeginAllowThreads();
24881 result = (arg1)->GetToolLongHelp(arg2);
24882 wxPyEndAllowThreads(__tstate);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 }
24885 {
24886#if wxUSE_UNICODE
24887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24888#else
24889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24890#endif
24891 }
24892 return resultobj;
24893fail:
24894 return NULL;
24895}
24896
24897
24898SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24899 PyObject *resultobj = 0;
24900 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24901 int arg2 ;
24902 int arg3 ;
24903 void *argp1 = 0 ;
24904 int res1 = 0 ;
24905 int val2 ;
24906 int ecode2 = 0 ;
24907 int val3 ;
24908 int ecode3 = 0 ;
24909 PyObject * obj0 = 0 ;
24910 PyObject * obj1 = 0 ;
24911 PyObject * obj2 = 0 ;
24912 char * kwnames[] = {
24913 (char *) "self",(char *) "x",(char *) "y", NULL
24914 };
24915
24916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24918 if (!SWIG_IsOK(res1)) {
24919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24920 }
24921 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24922 ecode2 = SWIG_AsVal_int(obj1, &val2);
24923 if (!SWIG_IsOK(ecode2)) {
24924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24925 }
24926 arg2 = static_cast< int >(val2);
24927 ecode3 = SWIG_AsVal_int(obj2, &val3);
24928 if (!SWIG_IsOK(ecode3)) {
24929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24930 }
24931 arg3 = static_cast< int >(val3);
24932 {
24933 PyThreadState* __tstate = wxPyBeginAllowThreads();
24934 (arg1)->SetMargins(arg2,arg3);
24935 wxPyEndAllowThreads(__tstate);
24936 if (PyErr_Occurred()) SWIG_fail;
24937 }
24938 resultobj = SWIG_Py_Void();
24939 return resultobj;
24940fail:
24941 return NULL;
24942}
24943
24944
24945SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj = 0;
24947 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24948 wxSize *arg2 = 0 ;
24949 void *argp1 = 0 ;
24950 int res1 = 0 ;
24951 wxSize temp2 ;
24952 PyObject * obj0 = 0 ;
24953 PyObject * obj1 = 0 ;
24954 char * kwnames[] = {
24955 (char *) "self",(char *) "size", NULL
24956 };
24957
24958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24960 if (!SWIG_IsOK(res1)) {
24961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24962 }
24963 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24964 {
24965 arg2 = &temp2;
24966 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24967 }
24968 {
24969 PyThreadState* __tstate = wxPyBeginAllowThreads();
24970 (arg1)->SetMargins((wxSize const &)*arg2);
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 resultobj = SWIG_Py_Void();
24975 return resultobj;
24976fail:
24977 return NULL;
24978}
24979
24980
24981SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24982 PyObject *resultobj = 0;
24983 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24984 int arg2 ;
24985 void *argp1 = 0 ;
24986 int res1 = 0 ;
24987 int val2 ;
24988 int ecode2 = 0 ;
24989 PyObject * obj0 = 0 ;
24990 PyObject * obj1 = 0 ;
24991 char * kwnames[] = {
24992 (char *) "self",(char *) "packing", NULL
24993 };
24994
24995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24997 if (!SWIG_IsOK(res1)) {
24998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24999 }
25000 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25001 ecode2 = SWIG_AsVal_int(obj1, &val2);
25002 if (!SWIG_IsOK(ecode2)) {
25003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25004 }
25005 arg2 = static_cast< int >(val2);
25006 {
25007 PyThreadState* __tstate = wxPyBeginAllowThreads();
25008 (arg1)->SetToolPacking(arg2);
25009 wxPyEndAllowThreads(__tstate);
25010 if (PyErr_Occurred()) SWIG_fail;
25011 }
25012 resultobj = SWIG_Py_Void();
25013 return resultobj;
25014fail:
25015 return NULL;
25016}
25017
25018
25019SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25020 PyObject *resultobj = 0;
25021 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25022 int arg2 ;
25023 void *argp1 = 0 ;
25024 int res1 = 0 ;
25025 int val2 ;
25026 int ecode2 = 0 ;
25027 PyObject * obj0 = 0 ;
25028 PyObject * obj1 = 0 ;
25029 char * kwnames[] = {
25030 (char *) "self",(char *) "separation", NULL
25031 };
25032
25033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25035 if (!SWIG_IsOK(res1)) {
25036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25037 }
25038 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25039 ecode2 = SWIG_AsVal_int(obj1, &val2);
25040 if (!SWIG_IsOK(ecode2)) {
25041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25042 }
25043 arg2 = static_cast< int >(val2);
25044 {
25045 PyThreadState* __tstate = wxPyBeginAllowThreads();
25046 (arg1)->SetToolSeparation(arg2);
25047 wxPyEndAllowThreads(__tstate);
25048 if (PyErr_Occurred()) SWIG_fail;
25049 }
25050 resultobj = SWIG_Py_Void();
25051 return resultobj;
25052fail:
25053 return NULL;
d14a1e28
RD
25054}
25055
25056
0085ce49
RD
25057SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25058 PyObject *resultobj = 0;
25059 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25060 wxSize result;
25061 void *argp1 = 0 ;
25062 int res1 = 0 ;
25063 PyObject *swig_obj[1] ;
25064
25065 if (!args) SWIG_fail;
25066 swig_obj[0] = args;
25067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25068 if (!SWIG_IsOK(res1)) {
25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25070 }
25071 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
25074 result = (arg1)->GetToolMargins();
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25079 return resultobj;
25080fail:
25081 return NULL;
d14a1e28
RD
25082}
25083
25084
0085ce49
RD
25085SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25086 PyObject *resultobj = 0;
25087 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25088 wxSize result;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 PyObject *swig_obj[1] ;
25092
25093 if (!args) SWIG_fail;
25094 swig_obj[0] = args;
25095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25098 }
25099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 result = (arg1)->GetMargins();
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25107 return resultobj;
25108fail:
25109 return NULL;
d14a1e28
RD
25110}
25111
25112
0085ce49
RD
25113SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25114 PyObject *resultobj = 0;
25115 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25116 int result;
25117 void *argp1 = 0 ;
25118 int res1 = 0 ;
25119 PyObject *swig_obj[1] ;
25120
25121 if (!args) SWIG_fail;
25122 swig_obj[0] = args;
25123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25124 if (!SWIG_IsOK(res1)) {
25125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25126 }
25127 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25128 {
25129 PyThreadState* __tstate = wxPyBeginAllowThreads();
25130 result = (int)(arg1)->GetToolPacking();
25131 wxPyEndAllowThreads(__tstate);
25132 if (PyErr_Occurred()) SWIG_fail;
25133 }
25134 resultobj = SWIG_From_int(static_cast< int >(result));
25135 return resultobj;
25136fail:
25137 return NULL;
d14a1e28
RD
25138}
25139
25140
0085ce49
RD
25141SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25142 PyObject *resultobj = 0;
25143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25144 int result;
25145 void *argp1 = 0 ;
25146 int res1 = 0 ;
25147 PyObject *swig_obj[1] ;
25148
25149 if (!args) SWIG_fail;
25150 swig_obj[0] = args;
25151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25154 }
25155 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = (int)(arg1)->GetToolSeparation();
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_From_int(static_cast< int >(result));
25163 return resultobj;
25164fail:
25165 return NULL;
25166}
25167
25168
25169SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25170 PyObject *resultobj = 0;
25171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25172 int arg2 ;
25173 void *argp1 = 0 ;
25174 int res1 = 0 ;
25175 int val2 ;
25176 int ecode2 = 0 ;
25177 PyObject * obj0 = 0 ;
25178 PyObject * obj1 = 0 ;
25179 char * kwnames[] = {
25180 (char *) "self",(char *) "nRows", NULL
25181 };
25182
25183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25185 if (!SWIG_IsOK(res1)) {
25186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25187 }
25188 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25189 ecode2 = SWIG_AsVal_int(obj1, &val2);
25190 if (!SWIG_IsOK(ecode2)) {
25191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25192 }
25193 arg2 = static_cast< int >(val2);
25194 {
25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
25196 (arg1)->SetRows(arg2);
25197 wxPyEndAllowThreads(__tstate);
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
25200 resultobj = SWIG_Py_Void();
25201 return resultobj;
25202fail:
25203 return NULL;
25204}
25205
25206
25207SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25208 PyObject *resultobj = 0;
25209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25210 int arg2 ;
25211 int arg3 ;
25212 void *argp1 = 0 ;
25213 int res1 = 0 ;
25214 int val2 ;
25215 int ecode2 = 0 ;
25216 int val3 ;
25217 int ecode3 = 0 ;
25218 PyObject * obj0 = 0 ;
25219 PyObject * obj1 = 0 ;
25220 PyObject * obj2 = 0 ;
25221 char * kwnames[] = {
25222 (char *) "self",(char *) "rows",(char *) "cols", NULL
25223 };
25224
25225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25227 if (!SWIG_IsOK(res1)) {
25228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25229 }
25230 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25231 ecode2 = SWIG_AsVal_int(obj1, &val2);
25232 if (!SWIG_IsOK(ecode2)) {
25233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25234 }
25235 arg2 = static_cast< int >(val2);
25236 ecode3 = SWIG_AsVal_int(obj2, &val3);
25237 if (!SWIG_IsOK(ecode3)) {
25238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25239 }
25240 arg3 = static_cast< int >(val3);
25241 {
25242 PyThreadState* __tstate = wxPyBeginAllowThreads();
25243 (arg1)->SetMaxRowsCols(arg2,arg3);
25244 wxPyEndAllowThreads(__tstate);
25245 if (PyErr_Occurred()) SWIG_fail;
25246 }
25247 resultobj = SWIG_Py_Void();
25248 return resultobj;
25249fail:
25250 return NULL;
22bfe96c
RD
25251}
25252
25253
0085ce49
RD
25254SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25255 PyObject *resultobj = 0;
25256 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25257 int result;
25258 void *argp1 = 0 ;
25259 int res1 = 0 ;
25260 PyObject *swig_obj[1] ;
25261
25262 if (!args) SWIG_fail;
25263 swig_obj[0] = args;
25264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25265 if (!SWIG_IsOK(res1)) {
25266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25267 }
25268 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25269 {
25270 PyThreadState* __tstate = wxPyBeginAllowThreads();
25271 result = (int)(arg1)->GetMaxRows();
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 resultobj = SWIG_From_int(static_cast< int >(result));
25276 return resultobj;
25277fail:
25278 return NULL;
d14a1e28
RD
25279}
25280
25281
0085ce49
RD
25282SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25283 PyObject *resultobj = 0;
25284 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25285 int result;
25286 void *argp1 = 0 ;
25287 int res1 = 0 ;
25288 PyObject *swig_obj[1] ;
25289
25290 if (!args) SWIG_fail;
25291 swig_obj[0] = args;
25292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25293 if (!SWIG_IsOK(res1)) {
25294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25295 }
25296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25297 {
25298 PyThreadState* __tstate = wxPyBeginAllowThreads();
25299 result = (int)(arg1)->GetMaxCols();
25300 wxPyEndAllowThreads(__tstate);
25301 if (PyErr_Occurred()) SWIG_fail;
25302 }
25303 resultobj = SWIG_From_int(static_cast< int >(result));
25304 return resultobj;
25305fail:
25306 return NULL;
25307}
25308
25309
25310SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25311 PyObject *resultobj = 0;
25312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25313 wxSize *arg2 = 0 ;
25314 void *argp1 = 0 ;
25315 int res1 = 0 ;
25316 wxSize temp2 ;
25317 PyObject * obj0 = 0 ;
25318 PyObject * obj1 = 0 ;
25319 char * kwnames[] = {
25320 (char *) "self",(char *) "size", NULL
25321 };
25322
25323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25325 if (!SWIG_IsOK(res1)) {
25326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25327 }
25328 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25329 {
25330 arg2 = &temp2;
25331 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25332 }
25333 {
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25336 wxPyEndAllowThreads(__tstate);
25337 if (PyErr_Occurred()) SWIG_fail;
25338 }
25339 resultobj = SWIG_Py_Void();
25340 return resultobj;
25341fail:
25342 return NULL;
d14a1e28
RD
25343}
25344
25345
0085ce49
RD
25346SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25347 PyObject *resultobj = 0;
25348 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25349 wxSize result;
25350 void *argp1 = 0 ;
25351 int res1 = 0 ;
25352 PyObject *swig_obj[1] ;
25353
25354 if (!args) SWIG_fail;
25355 swig_obj[0] = args;
25356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25357 if (!SWIG_IsOK(res1)) {
25358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25359 }
25360 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25361 {
25362 PyThreadState* __tstate = wxPyBeginAllowThreads();
25363 result = (arg1)->GetToolBitmapSize();
25364 wxPyEndAllowThreads(__tstate);
25365 if (PyErr_Occurred()) SWIG_fail;
25366 }
25367 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25368 return resultobj;
25369fail:
25370 return NULL;
d14a1e28
RD
25371}
25372
25373
0085ce49
RD
25374SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25375 PyObject *resultobj = 0;
25376 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25377 wxSize result;
25378 void *argp1 = 0 ;
25379 int res1 = 0 ;
25380 PyObject *swig_obj[1] ;
25381
25382 if (!args) SWIG_fail;
25383 swig_obj[0] = args;
25384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25385 if (!SWIG_IsOK(res1)) {
25386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25387 }
25388 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25389 {
25390 PyThreadState* __tstate = wxPyBeginAllowThreads();
25391 result = (arg1)->GetToolSize();
25392 wxPyEndAllowThreads(__tstate);
25393 if (PyErr_Occurred()) SWIG_fail;
25394 }
25395 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25396 return resultobj;
25397fail:
25398 return NULL;
25399}
25400
25401
25402SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25403 PyObject *resultobj = 0;
25404 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25405 int arg2 ;
25406 int arg3 ;
25407 wxToolBarToolBase *result = 0 ;
25408 void *argp1 = 0 ;
25409 int res1 = 0 ;
25410 int val2 ;
25411 int ecode2 = 0 ;
25412 int val3 ;
25413 int ecode3 = 0 ;
25414 PyObject * obj0 = 0 ;
25415 PyObject * obj1 = 0 ;
25416 PyObject * obj2 = 0 ;
25417 char * kwnames[] = {
25418 (char *) "self",(char *) "x",(char *) "y", NULL
25419 };
25420
25421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25423 if (!SWIG_IsOK(res1)) {
25424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25425 }
25426 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25427 ecode2 = SWIG_AsVal_int(obj1, &val2);
25428 if (!SWIG_IsOK(ecode2)) {
25429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25430 }
25431 arg2 = static_cast< int >(val2);
25432 ecode3 = SWIG_AsVal_int(obj2, &val3);
25433 if (!SWIG_IsOK(ecode3)) {
25434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25435 }
25436 arg3 = static_cast< int >(val3);
25437 {
25438 PyThreadState* __tstate = wxPyBeginAllowThreads();
25439 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25440 wxPyEndAllowThreads(__tstate);
25441 if (PyErr_Occurred()) SWIG_fail;
25442 }
25443 {
25444 resultobj = wxPyMake_wxObject(result, (bool)0);
25445 }
25446 return resultobj;
25447fail:
25448 return NULL;
25449}
25450
25451
25452SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25453 PyObject *resultobj = 0;
25454 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25455 int arg2 ;
25456 wxToolBarToolBase *result = 0 ;
25457 void *argp1 = 0 ;
25458 int res1 = 0 ;
25459 int val2 ;
25460 int ecode2 = 0 ;
25461 PyObject * obj0 = 0 ;
25462 PyObject * obj1 = 0 ;
25463 char * kwnames[] = {
25464 (char *) "self",(char *) "toolid", NULL
25465 };
25466
25467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25469 if (!SWIG_IsOK(res1)) {
25470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25471 }
25472 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25473 ecode2 = SWIG_AsVal_int(obj1, &val2);
25474 if (!SWIG_IsOK(ecode2)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25476 }
25477 arg2 = static_cast< int >(val2);
25478 {
25479 PyThreadState* __tstate = wxPyBeginAllowThreads();
25480 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25481 wxPyEndAllowThreads(__tstate);
25482 if (PyErr_Occurred()) SWIG_fail;
25483 }
25484 {
25485 resultobj = wxPyMake_wxObject(result, (bool)0);
25486 }
25487 return resultobj;
25488fail:
25489 return NULL;
d14a1e28
RD
25490}
25491
25492
0085ce49
RD
25493SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25494 PyObject *resultobj = 0;
25495 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25496 bool result;
25497 void *argp1 = 0 ;
25498 int res1 = 0 ;
25499 PyObject *swig_obj[1] ;
25500
25501 if (!args) SWIG_fail;
25502 swig_obj[0] = args;
25503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25504 if (!SWIG_IsOK(res1)) {
25505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25506 }
25507 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25508 {
25509 PyThreadState* __tstate = wxPyBeginAllowThreads();
25510 result = (bool)(arg1)->IsVertical();
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 {
25515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25516 }
25517 return resultobj;
25518fail:
25519 return NULL;
25520}
25521
25522
25523SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25524 PyObject *resultobj = 0;
25525 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25526 size_t result;
25527 void *argp1 = 0 ;
25528 int res1 = 0 ;
25529 PyObject *swig_obj[1] ;
25530
25531 if (!args) SWIG_fail;
25532 swig_obj[0] = args;
25533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25534 if (!SWIG_IsOK(res1)) {
25535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25536 }
25537 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25538 {
25539 PyThreadState* __tstate = wxPyBeginAllowThreads();
25540 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25541 wxPyEndAllowThreads(__tstate);
25542 if (PyErr_Occurred()) SWIG_fail;
25543 }
25544 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25545 return resultobj;
25546fail:
25547 return NULL;
25548}
25549
25550
25551SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25552 PyObject *obj;
25553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25554 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25555 return SWIG_Py_Void();
25556}
25557
25558SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25559 PyObject *resultobj = 0;
25560 wxWindow *arg1 = (wxWindow *) 0 ;
25561 int arg2 = (int) -1 ;
25562 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25563 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25564 wxSize const &arg4_defvalue = wxDefaultSize ;
25565 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25566 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25567 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25568 wxString *arg6 = (wxString *) &arg6_defvalue ;
25569 wxToolBar *result = 0 ;
25570 void *argp1 = 0 ;
25571 int res1 = 0 ;
25572 int val2 ;
25573 int ecode2 = 0 ;
25574 wxPoint temp3 ;
25575 wxSize temp4 ;
25576 long val5 ;
25577 int ecode5 = 0 ;
25578 bool temp6 = false ;
25579 PyObject * obj0 = 0 ;
25580 PyObject * obj1 = 0 ;
25581 PyObject * obj2 = 0 ;
25582 PyObject * obj3 = 0 ;
25583 PyObject * obj4 = 0 ;
25584 PyObject * obj5 = 0 ;
25585 char * kwnames[] = {
25586 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25587 };
25588
25589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25591 if (!SWIG_IsOK(res1)) {
25592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25593 }
25594 arg1 = reinterpret_cast< wxWindow * >(argp1);
25595 if (obj1) {
25596 ecode2 = SWIG_AsVal_int(obj1, &val2);
25597 if (!SWIG_IsOK(ecode2)) {
25598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25599 }
25600 arg2 = static_cast< int >(val2);
25601 }
25602 if (obj2) {
25603 {
25604 arg3 = &temp3;
25605 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25606 }
25607 }
25608 if (obj3) {
093d3ff1 25609 {
0085ce49
RD
25610 arg4 = &temp4;
25611 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25612 }
0085ce49
RD
25613 }
25614 if (obj4) {
25615 ecode5 = SWIG_AsVal_long(obj4, &val5);
25616 if (!SWIG_IsOK(ecode5)) {
25617 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25618 }
25619 arg5 = static_cast< long >(val5);
25620 }
25621 if (obj5) {
d14a1e28 25622 {
0085ce49
RD
25623 arg6 = wxString_in_helper(obj5);
25624 if (arg6 == NULL) SWIG_fail;
25625 temp6 = true;
d14a1e28 25626 }
0085ce49
RD
25627 }
25628 {
25629 if (!wxPyCheckForApp()) SWIG_fail;
25630 PyThreadState* __tstate = wxPyBeginAllowThreads();
25631 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25632 wxPyEndAllowThreads(__tstate);
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
25635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25636 {
25637 if (temp6)
25638 delete arg6;
25639 }
25640 return resultobj;
25641fail:
25642 {
25643 if (temp6)
25644 delete arg6;
25645 }
25646 return NULL;
d14a1e28
RD
25647}
25648
25649
0085ce49
RD
25650SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25651 PyObject *resultobj = 0;
25652 wxToolBar *result = 0 ;
25653
25654 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25655 {
25656 if (!wxPyCheckForApp()) SWIG_fail;
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 result = (wxToolBar *)new wxToolBar();
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25663 return resultobj;
25664fail:
25665 return NULL;
25666}
25667
25668
25669SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25670 PyObject *resultobj = 0;
25671 wxToolBar *arg1 = (wxToolBar *) 0 ;
25672 wxWindow *arg2 = (wxWindow *) 0 ;
25673 int arg3 = (int) -1 ;
25674 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25675 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25676 wxSize const &arg5_defvalue = wxDefaultSize ;
25677 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25678 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25679 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25680 wxString *arg7 = (wxString *) &arg7_defvalue ;
25681 bool result;
25682 void *argp1 = 0 ;
25683 int res1 = 0 ;
25684 void *argp2 = 0 ;
25685 int res2 = 0 ;
25686 int val3 ;
25687 int ecode3 = 0 ;
25688 wxPoint temp4 ;
25689 wxSize temp5 ;
25690 long val6 ;
25691 int ecode6 = 0 ;
25692 bool temp7 = false ;
25693 PyObject * obj0 = 0 ;
25694 PyObject * obj1 = 0 ;
25695 PyObject * obj2 = 0 ;
25696 PyObject * obj3 = 0 ;
25697 PyObject * obj4 = 0 ;
25698 PyObject * obj5 = 0 ;
25699 PyObject * obj6 = 0 ;
25700 char * kwnames[] = {
25701 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25702 };
25703
25704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25706 if (!SWIG_IsOK(res1)) {
25707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25708 }
25709 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25711 if (!SWIG_IsOK(res2)) {
25712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25713 }
25714 arg2 = reinterpret_cast< wxWindow * >(argp2);
25715 if (obj2) {
25716 ecode3 = SWIG_AsVal_int(obj2, &val3);
25717 if (!SWIG_IsOK(ecode3)) {
25718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25719 }
25720 arg3 = static_cast< int >(val3);
25721 }
25722 if (obj3) {
25723 {
25724 arg4 = &temp4;
25725 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25726 }
0085ce49
RD
25727 }
25728 if (obj4) {
22bfe96c 25729 {
0085ce49
RD
25730 arg5 = &temp5;
25731 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25732 }
0085ce49
RD
25733 }
25734 if (obj5) {
25735 ecode6 = SWIG_AsVal_long(obj5, &val6);
25736 if (!SWIG_IsOK(ecode6)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25738 }
25739 arg6 = static_cast< long >(val6);
25740 }
25741 if (obj6) {
22bfe96c 25742 {
0085ce49
RD
25743 arg7 = wxString_in_helper(obj6);
25744 if (arg7 == NULL) SWIG_fail;
25745 temp7 = true;
22bfe96c 25746 }
0085ce49
RD
25747 }
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 {
25755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25756 }
25757 {
25758 if (temp7)
25759 delete arg7;
25760 }
25761 return resultobj;
25762fail:
25763 {
25764 if (temp7)
25765 delete arg7;
25766 }
25767 return NULL;
25768}
25769
25770
0085ce49
RD
25771SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25772 PyObject *resultobj = 0;
25773 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25774 SwigValueWrapper<wxVisualAttributes > result;
25775 int val1 ;
25776 int ecode1 = 0 ;
25777 PyObject * obj0 = 0 ;
25778 char * kwnames[] = {
25779 (char *) "variant", NULL
25780 };
25781
25782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25783 if (obj0) {
25784 ecode1 = SWIG_AsVal_int(obj0, &val1);
25785 if (!SWIG_IsOK(ecode1)) {
25786 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25787 }
25788 arg1 = static_cast< wxWindowVariant >(val1);
25789 }
25790 {
25791 if (!wxPyCheckForApp()) SWIG_fail;
25792 PyThreadState* __tstate = wxPyBeginAllowThreads();
25793 result = wxToolBar::GetClassDefaultAttributes(arg1);
25794 wxPyEndAllowThreads(__tstate);
25795 if (PyErr_Occurred()) SWIG_fail;
25796 }
25797 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25798 return resultobj;
25799fail:
25800 return NULL;
22bfe96c
RD
25801}
25802
25803
0085ce49
RD
25804SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25805 PyObject *obj;
25806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25807 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25808 return SWIG_Py_Void();
d14a1e28 25809}
0085ce49
RD
25810
25811SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25812 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
25813}
25814
0085ce49
RD
25815SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25816 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25817 return 1;
25818}
b2dc1044 25819
0085ce49
RD
25820
25821SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25822 PyObject *pyobj = 0;
25823
25824 {
b2dc1044 25825#if wxUSE_UNICODE
0085ce49 25826 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25827#else
0085ce49 25828 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25829#endif
0085ce49
RD
25830 }
25831 return pyobj;
25832}
25833
25834
25835SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25836 PyObject *resultobj = 0;
25837 wxColour const &arg1_defvalue = wxNullColour ;
25838 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25839 wxColour const &arg2_defvalue = wxNullColour ;
25840 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25841 wxFont const &arg3_defvalue = wxNullFont ;
25842 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25843 wxListItemAttr *result = 0 ;
25844 wxColour temp1 ;
25845 wxColour temp2 ;
25846 void *argp3 = 0 ;
25847 int res3 = 0 ;
25848 PyObject * obj0 = 0 ;
25849 PyObject * obj1 = 0 ;
25850 PyObject * obj2 = 0 ;
25851 char * kwnames[] = {
25852 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25853 };
25854
25855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25856 if (obj0) {
d14a1e28 25857 {
0085ce49
RD
25858 arg1 = &temp1;
25859 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 25860 }
0085ce49
RD
25861 }
25862 if (obj1) {
d14a1e28 25863 {
0085ce49
RD
25864 arg2 = &temp2;
25865 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 25866 }
0085ce49
RD
25867 }
25868 if (obj2) {
25869 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25870 if (!SWIG_IsOK(res3)) {
25871 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25872 }
0085ce49
RD
25873 if (!argp3) {
25874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25875 }
0085ce49
RD
25876 arg3 = reinterpret_cast< wxFont * >(argp3);
25877 }
25878 {
25879 PyThreadState* __tstate = wxPyBeginAllowThreads();
25880 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25881 wxPyEndAllowThreads(__tstate);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25885 return resultobj;
25886fail:
25887 return NULL;
d14a1e28
RD
25888}
25889
25890
0085ce49
RD
25891SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25892 PyObject *resultobj = 0;
25893 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25894 void *argp1 = 0 ;
25895 int res1 = 0 ;
25896 PyObject *swig_obj[1] ;
25897
25898 if (!args) SWIG_fail;
25899 swig_obj[0] = args;
25900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25901 if (!SWIG_IsOK(res1)) {
25902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25903 }
25904 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25905 {
25906 PyThreadState* __tstate = wxPyBeginAllowThreads();
25907 delete arg1;
d14a1e28 25908
0085ce49
RD
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_Py_Void();
25913 return resultobj;
25914fail:
25915 return NULL;
25916}
25917
25918
25919SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25920 PyObject *resultobj = 0;
25921 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25922 wxColour *arg2 = 0 ;
25923 void *argp1 = 0 ;
25924 int res1 = 0 ;
25925 wxColour temp2 ;
25926 PyObject * obj0 = 0 ;
25927 PyObject * obj1 = 0 ;
25928 char * kwnames[] = {
25929 (char *) "self",(char *) "colText", NULL
25930 };
25931
25932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25934 if (!SWIG_IsOK(res1)) {
25935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25936 }
25937 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25938 {
25939 arg2 = &temp2;
25940 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25941 }
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 (arg1)->SetTextColour((wxColour const &)*arg2);
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 resultobj = SWIG_Py_Void();
25949 return resultobj;
25950fail:
25951 return NULL;
25952}
25953
25954
25955SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25956 PyObject *resultobj = 0;
25957 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25958 wxColour *arg2 = 0 ;
25959 void *argp1 = 0 ;
25960 int res1 = 0 ;
25961 wxColour temp2 ;
25962 PyObject * obj0 = 0 ;
25963 PyObject * obj1 = 0 ;
25964 char * kwnames[] = {
25965 (char *) "self",(char *) "colBack", NULL
25966 };
25967
25968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25972 }
25973 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25974 {
25975 arg2 = &temp2;
25976 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25977 }
25978 {
25979 PyThreadState* __tstate = wxPyBeginAllowThreads();
25980 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25981 wxPyEndAllowThreads(__tstate);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 resultobj = SWIG_Py_Void();
25985 return resultobj;
25986fail:
25987 return NULL;
25988}
25989
25990
25991SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25992 PyObject *resultobj = 0;
25993 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25994 wxFont *arg2 = 0 ;
25995 void *argp1 = 0 ;
25996 int res1 = 0 ;
25997 void *argp2 = 0 ;
25998 int res2 = 0 ;
25999 PyObject * obj0 = 0 ;
26000 PyObject * obj1 = 0 ;
26001 char * kwnames[] = {
26002 (char *) "self",(char *) "font", NULL
26003 };
26004
26005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26007 if (!SWIG_IsOK(res1)) {
26008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26009 }
26010 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26012 if (!SWIG_IsOK(res2)) {
26013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26014 }
26015 if (!argp2) {
26016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26017 }
26018 arg2 = reinterpret_cast< wxFont * >(argp2);
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 (arg1)->SetFont((wxFont const &)*arg2);
26022 wxPyEndAllowThreads(__tstate);
26023 if (PyErr_Occurred()) SWIG_fail;
26024 }
26025 resultobj = SWIG_Py_Void();
26026 return resultobj;
26027fail:
26028 return NULL;
d14a1e28
RD
26029}
26030
26031
0085ce49
RD
26032SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26033 PyObject *resultobj = 0;
26034 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26035 bool result;
26036 void *argp1 = 0 ;
26037 int res1 = 0 ;
26038 PyObject *swig_obj[1] ;
26039
26040 if (!args) SWIG_fail;
26041 swig_obj[0] = args;
26042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26043 if (!SWIG_IsOK(res1)) {
26044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26045 }
26046 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26047 {
26048 PyThreadState* __tstate = wxPyBeginAllowThreads();
26049 result = (bool)(arg1)->HasTextColour();
26050 wxPyEndAllowThreads(__tstate);
26051 if (PyErr_Occurred()) SWIG_fail;
26052 }
26053 {
26054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26055 }
26056 return resultobj;
26057fail:
26058 return NULL;
d14a1e28
RD
26059}
26060
26061
0085ce49
RD
26062SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26063 PyObject *resultobj = 0;
26064 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26065 bool result;
26066 void *argp1 = 0 ;
26067 int res1 = 0 ;
26068 PyObject *swig_obj[1] ;
26069
26070 if (!args) SWIG_fail;
26071 swig_obj[0] = args;
26072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26073 if (!SWIG_IsOK(res1)) {
26074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26075 }
26076 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26077 {
26078 PyThreadState* __tstate = wxPyBeginAllowThreads();
26079 result = (bool)(arg1)->HasBackgroundColour();
26080 wxPyEndAllowThreads(__tstate);
26081 if (PyErr_Occurred()) SWIG_fail;
26082 }
26083 {
26084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26085 }
26086 return resultobj;
26087fail:
26088 return NULL;
d14a1e28
RD
26089}
26090
26091
0085ce49
RD
26092SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26093 PyObject *resultobj = 0;
26094 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26095 bool result;
26096 void *argp1 = 0 ;
26097 int res1 = 0 ;
26098 PyObject *swig_obj[1] ;
26099
26100 if (!args) SWIG_fail;
26101 swig_obj[0] = args;
26102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26103 if (!SWIG_IsOK(res1)) {
26104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26105 }
26106 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26107 {
26108 PyThreadState* __tstate = wxPyBeginAllowThreads();
26109 result = (bool)(arg1)->HasFont();
26110 wxPyEndAllowThreads(__tstate);
26111 if (PyErr_Occurred()) SWIG_fail;
26112 }
26113 {
26114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26115 }
26116 return resultobj;
26117fail:
26118 return NULL;
d14a1e28
RD
26119}
26120
26121
0085ce49
RD
26122SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26123 PyObject *resultobj = 0;
26124 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26125 wxColour result;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 PyObject *swig_obj[1] ;
26129
26130 if (!args) SWIG_fail;
26131 swig_obj[0] = args;
26132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26133 if (!SWIG_IsOK(res1)) {
26134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26135 }
26136 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26137 {
26138 PyThreadState* __tstate = wxPyBeginAllowThreads();
26139 result = (arg1)->GetTextColour();
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26144 return resultobj;
26145fail:
26146 return NULL;
d14a1e28
RD
26147}
26148
26149
0085ce49
RD
26150SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26151 PyObject *resultobj = 0;
26152 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26153 wxColour result;
26154 void *argp1 = 0 ;
26155 int res1 = 0 ;
26156 PyObject *swig_obj[1] ;
26157
26158 if (!args) SWIG_fail;
26159 swig_obj[0] = args;
26160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26161 if (!SWIG_IsOK(res1)) {
26162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26163 }
26164 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26165 {
26166 PyThreadState* __tstate = wxPyBeginAllowThreads();
26167 result = (arg1)->GetBackgroundColour();
26168 wxPyEndAllowThreads(__tstate);
26169 if (PyErr_Occurred()) SWIG_fail;
26170 }
26171 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26172 return resultobj;
26173fail:
26174 return NULL;
d14a1e28
RD
26175}
26176
26177
0085ce49
RD
26178SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26179 PyObject *resultobj = 0;
26180 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26181 wxFont result;
26182 void *argp1 = 0 ;
26183 int res1 = 0 ;
26184 PyObject *swig_obj[1] ;
26185
26186 if (!args) SWIG_fail;
26187 swig_obj[0] = args;
26188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26189 if (!SWIG_IsOK(res1)) {
26190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26191 }
26192 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26193 {
26194 PyThreadState* __tstate = wxPyBeginAllowThreads();
26195 result = (arg1)->GetFont();
26196 wxPyEndAllowThreads(__tstate);
26197 if (PyErr_Occurred()) SWIG_fail;
26198 }
26199 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26200 return resultobj;
26201fail:
26202 return NULL;
26203}
26204
26205
26206SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26207 PyObject *resultobj = 0;
26208 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26209 wxListItemAttr *arg2 = 0 ;
26210 void *argp1 = 0 ;
26211 int res1 = 0 ;
26212 void *argp2 = 0 ;
26213 int res2 = 0 ;
26214 PyObject * obj0 = 0 ;
26215 PyObject * obj1 = 0 ;
26216 char * kwnames[] = {
26217 (char *) "self",(char *) "source", NULL
26218 };
26219
26220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26222 if (!SWIG_IsOK(res1)) {
26223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26224 }
26225 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26227 if (!SWIG_IsOK(res2)) {
26228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26229 }
26230 if (!argp2) {
26231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26232 }
26233 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26234 {
26235 PyThreadState* __tstate = wxPyBeginAllowThreads();
26236 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26237 wxPyEndAllowThreads(__tstate);
26238 if (PyErr_Occurred()) SWIG_fail;
26239 }
26240 resultobj = SWIG_Py_Void();
26241 return resultobj;
26242fail:
26243 return NULL;
d14a1e28
RD
26244}
26245
26246
0085ce49
RD
26247SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26248 PyObject *resultobj = 0;
26249 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26250 void *argp1 = 0 ;
26251 int res1 = 0 ;
26252 PyObject *swig_obj[1] ;
26253
26254 if (!args) SWIG_fail;
26255 swig_obj[0] = args;
26256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26257 if (!SWIG_IsOK(res1)) {
26258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26259 }
26260 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26261 {
26262 PyThreadState* __tstate = wxPyBeginAllowThreads();
26263 wxListItemAttr_Destroy(arg1);
26264 wxPyEndAllowThreads(__tstate);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 resultobj = SWIG_Py_Void();
26268 return resultobj;
26269fail:
26270 return NULL;
d14a1e28
RD
26271}
26272
26273
0085ce49
RD
26274SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26275 PyObject *obj;
26276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26277 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26278 return SWIG_Py_Void();
d14a1e28
RD
26279}
26280
0085ce49
RD
26281SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26282 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26283}
26284
0085ce49
RD
26285SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26286 PyObject *resultobj = 0;
26287 wxListItem *result = 0 ;
26288
26289 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26290 {
26291 PyThreadState* __tstate = wxPyBeginAllowThreads();
26292 result = (wxListItem *)new wxListItem();
26293 wxPyEndAllowThreads(__tstate);
26294 if (PyErr_Occurred()) SWIG_fail;
26295 }
26296 {
26297 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26298 }
26299 return resultobj;
26300fail:
26301 return NULL;
d14a1e28
RD
26302}
26303
26304
0085ce49
RD
26305SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26306 PyObject *resultobj = 0;
26307 wxListItem *arg1 = (wxListItem *) 0 ;
26308 void *argp1 = 0 ;
26309 int res1 = 0 ;
26310 PyObject *swig_obj[1] ;
26311
26312 if (!args) SWIG_fail;
26313 swig_obj[0] = args;
26314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26315 if (!SWIG_IsOK(res1)) {
26316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26317 }
26318 arg1 = reinterpret_cast< wxListItem * >(argp1);
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 delete arg1;
d14a1e28 26322
0085ce49
RD
26323 wxPyEndAllowThreads(__tstate);
26324 if (PyErr_Occurred()) SWIG_fail;
26325 }
26326 resultobj = SWIG_Py_Void();
26327 return resultobj;
26328fail:
26329 return NULL;
d14a1e28
RD
26330}
26331
26332
0085ce49
RD
26333SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26334 PyObject *resultobj = 0;
26335 wxListItem *arg1 = (wxListItem *) 0 ;
26336 void *argp1 = 0 ;
26337 int res1 = 0 ;
26338 PyObject *swig_obj[1] ;
26339
26340 if (!args) SWIG_fail;
26341 swig_obj[0] = args;
26342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26343 if (!SWIG_IsOK(res1)) {
26344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26345 }
26346 arg1 = reinterpret_cast< wxListItem * >(argp1);
26347 {
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 (arg1)->Clear();
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_Py_Void();
26354 return resultobj;
26355fail:
26356 return NULL;
d14a1e28
RD
26357}
26358
26359
0085ce49
RD
26360SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26361 PyObject *resultobj = 0;
26362 wxListItem *arg1 = (wxListItem *) 0 ;
26363 void *argp1 = 0 ;
26364 int res1 = 0 ;
26365 PyObject *swig_obj[1] ;
26366
26367 if (!args) SWIG_fail;
26368 swig_obj[0] = args;
26369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26370 if (!SWIG_IsOK(res1)) {
26371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26372 }
26373 arg1 = reinterpret_cast< wxListItem * >(argp1);
26374 {
26375 PyThreadState* __tstate = wxPyBeginAllowThreads();
26376 (arg1)->ClearAttributes();
26377 wxPyEndAllowThreads(__tstate);
26378 if (PyErr_Occurred()) SWIG_fail;
26379 }
26380 resultobj = SWIG_Py_Void();
26381 return resultobj;
26382fail:
26383 return NULL;
26384}
26385
26386
26387SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26388 PyObject *resultobj = 0;
26389 wxListItem *arg1 = (wxListItem *) 0 ;
26390 long arg2 ;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 long val2 ;
26394 int ecode2 = 0 ;
26395 PyObject * obj0 = 0 ;
26396 PyObject * obj1 = 0 ;
26397 char * kwnames[] = {
26398 (char *) "self",(char *) "mask", NULL
26399 };
26400
26401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26403 if (!SWIG_IsOK(res1)) {
26404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26405 }
26406 arg1 = reinterpret_cast< wxListItem * >(argp1);
26407 ecode2 = SWIG_AsVal_long(obj1, &val2);
26408 if (!SWIG_IsOK(ecode2)) {
26409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26410 }
26411 arg2 = static_cast< long >(val2);
26412 {
26413 PyThreadState* __tstate = wxPyBeginAllowThreads();
26414 (arg1)->SetMask(arg2);
26415 wxPyEndAllowThreads(__tstate);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 resultobj = SWIG_Py_Void();
26419 return resultobj;
26420fail:
26421 return NULL;
26422}
26423
26424
26425SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26426 PyObject *resultobj = 0;
26427 wxListItem *arg1 = (wxListItem *) 0 ;
26428 long arg2 ;
26429 void *argp1 = 0 ;
26430 int res1 = 0 ;
26431 long val2 ;
26432 int ecode2 = 0 ;
26433 PyObject * obj0 = 0 ;
26434 PyObject * obj1 = 0 ;
26435 char * kwnames[] = {
26436 (char *) "self",(char *) "id", NULL
26437 };
26438
26439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26441 if (!SWIG_IsOK(res1)) {
26442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26443 }
26444 arg1 = reinterpret_cast< wxListItem * >(argp1);
26445 ecode2 = SWIG_AsVal_long(obj1, &val2);
26446 if (!SWIG_IsOK(ecode2)) {
26447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26448 }
26449 arg2 = static_cast< long >(val2);
26450 {
26451 PyThreadState* __tstate = wxPyBeginAllowThreads();
26452 (arg1)->SetId(arg2);
26453 wxPyEndAllowThreads(__tstate);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_Py_Void();
26457 return resultobj;
26458fail:
26459 return NULL;
26460}
26461
26462
26463SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj = 0;
26465 wxListItem *arg1 = (wxListItem *) 0 ;
26466 int arg2 ;
26467 void *argp1 = 0 ;
26468 int res1 = 0 ;
26469 int val2 ;
26470 int ecode2 = 0 ;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 char * kwnames[] = {
26474 (char *) "self",(char *) "col", NULL
26475 };
26476
26477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26479 if (!SWIG_IsOK(res1)) {
26480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26481 }
26482 arg1 = reinterpret_cast< wxListItem * >(argp1);
26483 ecode2 = SWIG_AsVal_int(obj1, &val2);
26484 if (!SWIG_IsOK(ecode2)) {
26485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26486 }
26487 arg2 = static_cast< int >(val2);
26488 {
26489 PyThreadState* __tstate = wxPyBeginAllowThreads();
26490 (arg1)->SetColumn(arg2);
26491 wxPyEndAllowThreads(__tstate);
26492 if (PyErr_Occurred()) SWIG_fail;
26493 }
26494 resultobj = SWIG_Py_Void();
26495 return resultobj;
26496fail:
26497 return NULL;
26498}
26499
26500
26501SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26502 PyObject *resultobj = 0;
26503 wxListItem *arg1 = (wxListItem *) 0 ;
26504 long arg2 ;
26505 void *argp1 = 0 ;
26506 int res1 = 0 ;
26507 long val2 ;
26508 int ecode2 = 0 ;
26509 PyObject * obj0 = 0 ;
26510 PyObject * obj1 = 0 ;
26511 char * kwnames[] = {
26512 (char *) "self",(char *) "state", NULL
26513 };
26514
26515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26517 if (!SWIG_IsOK(res1)) {
26518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26519 }
26520 arg1 = reinterpret_cast< wxListItem * >(argp1);
26521 ecode2 = SWIG_AsVal_long(obj1, &val2);
26522 if (!SWIG_IsOK(ecode2)) {
26523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26524 }
26525 arg2 = static_cast< long >(val2);
26526 {
26527 PyThreadState* __tstate = wxPyBeginAllowThreads();
26528 (arg1)->SetState(arg2);
26529 wxPyEndAllowThreads(__tstate);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 }
26532 resultobj = SWIG_Py_Void();
26533 return resultobj;
26534fail:
26535 return NULL;
26536}
26537
26538
26539SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26540 PyObject *resultobj = 0;
26541 wxListItem *arg1 = (wxListItem *) 0 ;
26542 long arg2 ;
26543 void *argp1 = 0 ;
26544 int res1 = 0 ;
26545 long val2 ;
26546 int ecode2 = 0 ;
26547 PyObject * obj0 = 0 ;
26548 PyObject * obj1 = 0 ;
26549 char * kwnames[] = {
26550 (char *) "self",(char *) "stateMask", NULL
26551 };
26552
26553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26555 if (!SWIG_IsOK(res1)) {
26556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26557 }
26558 arg1 = reinterpret_cast< wxListItem * >(argp1);
26559 ecode2 = SWIG_AsVal_long(obj1, &val2);
26560 if (!SWIG_IsOK(ecode2)) {
26561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26562 }
26563 arg2 = static_cast< long >(val2);
26564 {
26565 PyThreadState* __tstate = wxPyBeginAllowThreads();
26566 (arg1)->SetStateMask(arg2);
26567 wxPyEndAllowThreads(__tstate);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 }
26570 resultobj = SWIG_Py_Void();
26571 return resultobj;
26572fail:
26573 return NULL;
26574}
26575
26576
26577SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26578 PyObject *resultobj = 0;
26579 wxListItem *arg1 = (wxListItem *) 0 ;
26580 wxString *arg2 = 0 ;
26581 void *argp1 = 0 ;
26582 int res1 = 0 ;
26583 bool temp2 = false ;
26584 PyObject * obj0 = 0 ;
26585 PyObject * obj1 = 0 ;
26586 char * kwnames[] = {
26587 (char *) "self",(char *) "text", NULL
26588 };
26589
26590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26592 if (!SWIG_IsOK(res1)) {
26593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26594 }
26595 arg1 = reinterpret_cast< wxListItem * >(argp1);
26596 {
26597 arg2 = wxString_in_helper(obj1);
26598 if (arg2 == NULL) SWIG_fail;
26599 temp2 = true;
26600 }
26601 {
26602 PyThreadState* __tstate = wxPyBeginAllowThreads();
26603 (arg1)->SetText((wxString const &)*arg2);
26604 wxPyEndAllowThreads(__tstate);
26605 if (PyErr_Occurred()) SWIG_fail;
26606 }
26607 resultobj = SWIG_Py_Void();
26608 {
26609 if (temp2)
26610 delete arg2;
26611 }
26612 return resultobj;
26613fail:
26614 {
26615 if (temp2)
26616 delete arg2;
26617 }
26618 return NULL;
26619}
26620
26621
26622SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26623 PyObject *resultobj = 0;
26624 wxListItem *arg1 = (wxListItem *) 0 ;
26625 int arg2 ;
26626 void *argp1 = 0 ;
26627 int res1 = 0 ;
26628 int val2 ;
26629 int ecode2 = 0 ;
26630 PyObject * obj0 = 0 ;
26631 PyObject * obj1 = 0 ;
26632 char * kwnames[] = {
26633 (char *) "self",(char *) "image", NULL
26634 };
26635
26636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26638 if (!SWIG_IsOK(res1)) {
26639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26640 }
26641 arg1 = reinterpret_cast< wxListItem * >(argp1);
26642 ecode2 = SWIG_AsVal_int(obj1, &val2);
26643 if (!SWIG_IsOK(ecode2)) {
26644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26645 }
26646 arg2 = static_cast< int >(val2);
26647 {
26648 PyThreadState* __tstate = wxPyBeginAllowThreads();
26649 (arg1)->SetImage(arg2);
26650 wxPyEndAllowThreads(__tstate);
26651 if (PyErr_Occurred()) SWIG_fail;
26652 }
26653 resultobj = SWIG_Py_Void();
26654 return resultobj;
26655fail:
26656 return NULL;
26657}
26658
26659
26660SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26661 PyObject *resultobj = 0;
26662 wxListItem *arg1 = (wxListItem *) 0 ;
26663 long arg2 ;
26664 void *argp1 = 0 ;
26665 int res1 = 0 ;
26666 long val2 ;
26667 int ecode2 = 0 ;
26668 PyObject * obj0 = 0 ;
26669 PyObject * obj1 = 0 ;
26670 char * kwnames[] = {
26671 (char *) "self",(char *) "data", NULL
26672 };
26673
26674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26676 if (!SWIG_IsOK(res1)) {
26677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26678 }
26679 arg1 = reinterpret_cast< wxListItem * >(argp1);
26680 ecode2 = SWIG_AsVal_long(obj1, &val2);
26681 if (!SWIG_IsOK(ecode2)) {
26682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26683 }
26684 arg2 = static_cast< long >(val2);
26685 {
26686 PyThreadState* __tstate = wxPyBeginAllowThreads();
26687 (arg1)->SetData(arg2);
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 resultobj = SWIG_Py_Void();
26692 return resultobj;
26693fail:
26694 return NULL;
26695}
26696
26697
26698SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26699 PyObject *resultobj = 0;
26700 wxListItem *arg1 = (wxListItem *) 0 ;
26701 int arg2 ;
26702 void *argp1 = 0 ;
26703 int res1 = 0 ;
26704 int val2 ;
26705 int ecode2 = 0 ;
26706 PyObject * obj0 = 0 ;
26707 PyObject * obj1 = 0 ;
26708 char * kwnames[] = {
26709 (char *) "self",(char *) "width", NULL
26710 };
26711
26712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26714 if (!SWIG_IsOK(res1)) {
26715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26716 }
26717 arg1 = reinterpret_cast< wxListItem * >(argp1);
26718 ecode2 = SWIG_AsVal_int(obj1, &val2);
26719 if (!SWIG_IsOK(ecode2)) {
26720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26721 }
26722 arg2 = static_cast< int >(val2);
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 (arg1)->SetWidth(arg2);
26726 wxPyEndAllowThreads(__tstate);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 resultobj = SWIG_Py_Void();
26730 return resultobj;
26731fail:
26732 return NULL;
26733}
26734
26735
26736SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26737 PyObject *resultobj = 0;
26738 wxListItem *arg1 = (wxListItem *) 0 ;
26739 wxListColumnFormat arg2 ;
26740 void *argp1 = 0 ;
26741 int res1 = 0 ;
26742 int val2 ;
26743 int ecode2 = 0 ;
26744 PyObject * obj0 = 0 ;
26745 PyObject * obj1 = 0 ;
26746 char * kwnames[] = {
26747 (char *) "self",(char *) "align", NULL
26748 };
26749
26750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26752 if (!SWIG_IsOK(res1)) {
26753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26754 }
26755 arg1 = reinterpret_cast< wxListItem * >(argp1);
26756 ecode2 = SWIG_AsVal_int(obj1, &val2);
26757 if (!SWIG_IsOK(ecode2)) {
26758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26759 }
26760 arg2 = static_cast< wxListColumnFormat >(val2);
26761 {
26762 PyThreadState* __tstate = wxPyBeginAllowThreads();
26763 (arg1)->SetAlign(arg2);
26764 wxPyEndAllowThreads(__tstate);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 resultobj = SWIG_Py_Void();
26768 return resultobj;
26769fail:
26770 return NULL;
26771}
26772
26773
26774SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26775 PyObject *resultobj = 0;
26776 wxListItem *arg1 = (wxListItem *) 0 ;
26777 wxColour *arg2 = 0 ;
26778 void *argp1 = 0 ;
26779 int res1 = 0 ;
26780 wxColour temp2 ;
26781 PyObject * obj0 = 0 ;
26782 PyObject * obj1 = 0 ;
26783 char * kwnames[] = {
26784 (char *) "self",(char *) "colText", NULL
26785 };
26786
26787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26789 if (!SWIG_IsOK(res1)) {
26790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26791 }
26792 arg1 = reinterpret_cast< wxListItem * >(argp1);
26793 {
26794 arg2 = &temp2;
26795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26796 }
26797 {
26798 PyThreadState* __tstate = wxPyBeginAllowThreads();
26799 (arg1)->SetTextColour((wxColour const &)*arg2);
26800 wxPyEndAllowThreads(__tstate);
26801 if (PyErr_Occurred()) SWIG_fail;
26802 }
26803 resultobj = SWIG_Py_Void();
26804 return resultobj;
26805fail:
26806 return NULL;
26807}
26808
26809
26810SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26811 PyObject *resultobj = 0;
26812 wxListItem *arg1 = (wxListItem *) 0 ;
26813 wxColour *arg2 = 0 ;
26814 void *argp1 = 0 ;
26815 int res1 = 0 ;
26816 wxColour temp2 ;
26817 PyObject * obj0 = 0 ;
26818 PyObject * obj1 = 0 ;
26819 char * kwnames[] = {
26820 (char *) "self",(char *) "colBack", NULL
26821 };
26822
26823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26825 if (!SWIG_IsOK(res1)) {
26826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26827 }
26828 arg1 = reinterpret_cast< wxListItem * >(argp1);
26829 {
26830 arg2 = &temp2;
26831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26832 }
26833 {
26834 PyThreadState* __tstate = wxPyBeginAllowThreads();
26835 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26836 wxPyEndAllowThreads(__tstate);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 resultobj = SWIG_Py_Void();
26840 return resultobj;
26841fail:
26842 return NULL;
26843}
26844
26845
26846SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26847 PyObject *resultobj = 0;
26848 wxListItem *arg1 = (wxListItem *) 0 ;
26849 wxFont *arg2 = 0 ;
26850 void *argp1 = 0 ;
26851 int res1 = 0 ;
26852 void *argp2 = 0 ;
26853 int res2 = 0 ;
26854 PyObject * obj0 = 0 ;
26855 PyObject * obj1 = 0 ;
26856 char * kwnames[] = {
26857 (char *) "self",(char *) "font", NULL
26858 };
26859
26860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26862 if (!SWIG_IsOK(res1)) {
26863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26864 }
26865 arg1 = reinterpret_cast< wxListItem * >(argp1);
26866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26867 if (!SWIG_IsOK(res2)) {
26868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26869 }
26870 if (!argp2) {
26871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26872 }
26873 arg2 = reinterpret_cast< wxFont * >(argp2);
26874 {
26875 PyThreadState* __tstate = wxPyBeginAllowThreads();
26876 (arg1)->SetFont((wxFont const &)*arg2);
26877 wxPyEndAllowThreads(__tstate);
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 resultobj = SWIG_Py_Void();
26881 return resultobj;
26882fail:
26883 return NULL;
d14a1e28
RD
26884}
26885
26886
0085ce49
RD
26887SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26888 PyObject *resultobj = 0;
26889 wxListItem *arg1 = (wxListItem *) 0 ;
26890 long result;
26891 void *argp1 = 0 ;
26892 int res1 = 0 ;
26893 PyObject *swig_obj[1] ;
26894
26895 if (!args) SWIG_fail;
26896 swig_obj[0] = args;
26897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26898 if (!SWIG_IsOK(res1)) {
26899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26900 }
26901 arg1 = reinterpret_cast< wxListItem * >(argp1);
26902 {
26903 PyThreadState* __tstate = wxPyBeginAllowThreads();
26904 result = (long)(arg1)->GetMask();
26905 wxPyEndAllowThreads(__tstate);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 resultobj = SWIG_From_long(static_cast< long >(result));
26909 return resultobj;
26910fail:
26911 return NULL;
d14a1e28
RD
26912}
26913
26914
0085ce49
RD
26915SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26916 PyObject *resultobj = 0;
26917 wxListItem *arg1 = (wxListItem *) 0 ;
26918 long result;
26919 void *argp1 = 0 ;
26920 int res1 = 0 ;
26921 PyObject *swig_obj[1] ;
26922
26923 if (!args) SWIG_fail;
26924 swig_obj[0] = args;
26925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26926 if (!SWIG_IsOK(res1)) {
26927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26928 }
26929 arg1 = reinterpret_cast< wxListItem * >(argp1);
26930 {
26931 PyThreadState* __tstate = wxPyBeginAllowThreads();
26932 result = (long)(arg1)->GetId();
26933 wxPyEndAllowThreads(__tstate);
26934 if (PyErr_Occurred()) SWIG_fail;
26935 }
26936 resultobj = SWIG_From_long(static_cast< long >(result));
26937 return resultobj;
26938fail:
26939 return NULL;
d14a1e28
RD
26940}
26941
26942
0085ce49
RD
26943SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26944 PyObject *resultobj = 0;
26945 wxListItem *arg1 = (wxListItem *) 0 ;
26946 int result;
26947 void *argp1 = 0 ;
26948 int res1 = 0 ;
26949 PyObject *swig_obj[1] ;
26950
26951 if (!args) SWIG_fail;
26952 swig_obj[0] = args;
26953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26954 if (!SWIG_IsOK(res1)) {
26955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26956 }
26957 arg1 = reinterpret_cast< wxListItem * >(argp1);
26958 {
26959 PyThreadState* __tstate = wxPyBeginAllowThreads();
26960 result = (int)(arg1)->GetColumn();
26961 wxPyEndAllowThreads(__tstate);
26962 if (PyErr_Occurred()) SWIG_fail;
26963 }
26964 resultobj = SWIG_From_int(static_cast< int >(result));
26965 return resultobj;
26966fail:
26967 return NULL;
22bfe96c
RD
26968}
26969
26970
0085ce49
RD
26971SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26972 PyObject *resultobj = 0;
26973 wxListItem *arg1 = (wxListItem *) 0 ;
26974 long result;
26975 void *argp1 = 0 ;
26976 int res1 = 0 ;
26977 PyObject *swig_obj[1] ;
26978
26979 if (!args) SWIG_fail;
26980 swig_obj[0] = args;
26981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26982 if (!SWIG_IsOK(res1)) {
26983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26984 }
26985 arg1 = reinterpret_cast< wxListItem * >(argp1);
26986 {
26987 PyThreadState* __tstate = wxPyBeginAllowThreads();
26988 result = (long)(arg1)->GetState();
26989 wxPyEndAllowThreads(__tstate);
26990 if (PyErr_Occurred()) SWIG_fail;
26991 }
26992 resultobj = SWIG_From_long(static_cast< long >(result));
26993 return resultobj;
26994fail:
26995 return NULL;
b2dc1044
RD
26996}
26997
26998
0085ce49
RD
26999SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27000 PyObject *resultobj = 0;
27001 wxListItem *arg1 = (wxListItem *) 0 ;
27002 wxString *result = 0 ;
27003 void *argp1 = 0 ;
27004 int res1 = 0 ;
27005 PyObject *swig_obj[1] ;
27006
27007 if (!args) SWIG_fail;
27008 swig_obj[0] = args;
27009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27010 if (!SWIG_IsOK(res1)) {
27011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27012 }
27013 arg1 = reinterpret_cast< wxListItem * >(argp1);
27014 {
27015 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 27016 {
0085ce49
RD
27017 wxString const &_result_ref = (arg1)->GetText();
27018 result = (wxString *) &_result_ref;
27019 }
27020 wxPyEndAllowThreads(__tstate);
27021 if (PyErr_Occurred()) SWIG_fail;
27022 }
27023 {
b2dc1044 27024#if wxUSE_UNICODE
0085ce49 27025 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 27026#else
0085ce49 27027 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 27028#endif
0085ce49
RD
27029 }
27030 return resultobj;
27031fail:
27032 return NULL;
d14a1e28
RD
27033}
27034
27035
0085ce49
RD
27036SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27037 PyObject *resultobj = 0;
27038 wxListItem *arg1 = (wxListItem *) 0 ;
27039 int result;
27040 void *argp1 = 0 ;
27041 int res1 = 0 ;
27042 PyObject *swig_obj[1] ;
27043
27044 if (!args) SWIG_fail;
27045 swig_obj[0] = args;
27046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27047 if (!SWIG_IsOK(res1)) {
27048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27049 }
27050 arg1 = reinterpret_cast< wxListItem * >(argp1);
27051 {
27052 PyThreadState* __tstate = wxPyBeginAllowThreads();
27053 result = (int)(arg1)->GetImage();
27054 wxPyEndAllowThreads(__tstate);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 resultobj = SWIG_From_int(static_cast< int >(result));
27058 return resultobj;
27059fail:
27060 return NULL;
d14a1e28
RD
27061}
27062
27063
0085ce49
RD
27064SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27065 PyObject *resultobj = 0;
27066 wxListItem *arg1 = (wxListItem *) 0 ;
27067 long result;
27068 void *argp1 = 0 ;
27069 int res1 = 0 ;
27070 PyObject *swig_obj[1] ;
27071
27072 if (!args) SWIG_fail;
27073 swig_obj[0] = args;
27074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27075 if (!SWIG_IsOK(res1)) {
27076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27077 }
27078 arg1 = reinterpret_cast< wxListItem * >(argp1);
27079 {
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 result = (long)(arg1)->GetData();
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_From_long(static_cast< long >(result));
27086 return resultobj;
27087fail:
27088 return NULL;
d14a1e28
RD
27089}
27090
27091
0085ce49
RD
27092SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27093 PyObject *resultobj = 0;
27094 wxListItem *arg1 = (wxListItem *) 0 ;
27095 int result;
27096 void *argp1 = 0 ;
27097 int res1 = 0 ;
27098 PyObject *swig_obj[1] ;
27099
27100 if (!args) SWIG_fail;
27101 swig_obj[0] = args;
27102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27103 if (!SWIG_IsOK(res1)) {
27104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27105 }
27106 arg1 = reinterpret_cast< wxListItem * >(argp1);
27107 {
27108 PyThreadState* __tstate = wxPyBeginAllowThreads();
27109 result = (int)(arg1)->GetWidth();
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = SWIG_From_int(static_cast< int >(result));
27114 return resultobj;
27115fail:
27116 return NULL;
d14a1e28
RD
27117}
27118
27119
0085ce49
RD
27120SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27121 PyObject *resultobj = 0;
27122 wxListItem *arg1 = (wxListItem *) 0 ;
27123 wxListColumnFormat result;
27124 void *argp1 = 0 ;
27125 int res1 = 0 ;
27126 PyObject *swig_obj[1] ;
27127
27128 if (!args) SWIG_fail;
27129 swig_obj[0] = args;
27130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27131 if (!SWIG_IsOK(res1)) {
27132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27133 }
27134 arg1 = reinterpret_cast< wxListItem * >(argp1);
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 result = (wxListColumnFormat)(arg1)->GetAlign();
27138 wxPyEndAllowThreads(__tstate);
27139 if (PyErr_Occurred()) SWIG_fail;
27140 }
27141 resultobj = SWIG_From_int(static_cast< int >(result));
27142 return resultobj;
27143fail:
27144 return NULL;
d14a1e28
RD
27145}
27146
27147
0085ce49
RD
27148SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27149 PyObject *resultobj = 0;
27150 wxListItem *arg1 = (wxListItem *) 0 ;
27151 wxListItemAttr *result = 0 ;
27152 void *argp1 = 0 ;
27153 int res1 = 0 ;
27154 PyObject *swig_obj[1] ;
27155
27156 if (!args) SWIG_fail;
27157 swig_obj[0] = args;
27158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27161 }
27162 arg1 = reinterpret_cast< wxListItem * >(argp1);
27163 {
27164 PyThreadState* __tstate = wxPyBeginAllowThreads();
27165 result = (wxListItemAttr *)(arg1)->GetAttributes();
27166 wxPyEndAllowThreads(__tstate);
27167 if (PyErr_Occurred()) SWIG_fail;
27168 }
27169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27170 return resultobj;
27171fail:
27172 return NULL;
d14a1e28
RD
27173}
27174
27175
0085ce49
RD
27176SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27177 PyObject *resultobj = 0;
27178 wxListItem *arg1 = (wxListItem *) 0 ;
27179 bool result;
27180 void *argp1 = 0 ;
27181 int res1 = 0 ;
27182 PyObject *swig_obj[1] ;
27183
27184 if (!args) SWIG_fail;
27185 swig_obj[0] = args;
27186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27187 if (!SWIG_IsOK(res1)) {
27188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27189 }
27190 arg1 = reinterpret_cast< wxListItem * >(argp1);
27191 {
27192 PyThreadState* __tstate = wxPyBeginAllowThreads();
27193 result = (bool)(arg1)->HasAttributes();
27194 wxPyEndAllowThreads(__tstate);
27195 if (PyErr_Occurred()) SWIG_fail;
27196 }
27197 {
27198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27199 }
27200 return resultobj;
27201fail:
27202 return NULL;
22bfe96c
RD
27203}
27204
27205
0085ce49
RD
27206SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27207 PyObject *resultobj = 0;
27208 wxListItem *arg1 = (wxListItem *) 0 ;
27209 wxColour result;
27210 void *argp1 = 0 ;
27211 int res1 = 0 ;
27212 PyObject *swig_obj[1] ;
27213
27214 if (!args) SWIG_fail;
27215 swig_obj[0] = args;
27216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27217 if (!SWIG_IsOK(res1)) {
27218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27219 }
27220 arg1 = reinterpret_cast< wxListItem * >(argp1);
27221 {
27222 PyThreadState* __tstate = wxPyBeginAllowThreads();
27223 result = ((wxListItem const *)arg1)->GetTextColour();
27224 wxPyEndAllowThreads(__tstate);
27225 if (PyErr_Occurred()) SWIG_fail;
27226 }
27227 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27228 return resultobj;
27229fail:
27230 return NULL;
d14a1e28 27231}
0085ce49
RD
27232
27233
27234SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27235 PyObject *resultobj = 0;
27236 wxListItem *arg1 = (wxListItem *) 0 ;
27237 wxColour result;
27238 void *argp1 = 0 ;
27239 int res1 = 0 ;
27240 PyObject *swig_obj[1] ;
27241
27242 if (!args) SWIG_fail;
27243 swig_obj[0] = args;
27244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27245 if (!SWIG_IsOK(res1)) {
27246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27247 }
27248 arg1 = reinterpret_cast< wxListItem * >(argp1);
27249 {
27250 PyThreadState* __tstate = wxPyBeginAllowThreads();
27251 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27252 wxPyEndAllowThreads(__tstate);
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27256 return resultobj;
27257fail:
27258 return NULL;
b2dc1044
RD
27259}
27260
27261
0085ce49
RD
27262SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27263 PyObject *resultobj = 0;
27264 wxListItem *arg1 = (wxListItem *) 0 ;
27265 wxFont result;
27266 void *argp1 = 0 ;
27267 int res1 = 0 ;
27268 PyObject *swig_obj[1] ;
27269
27270 if (!args) SWIG_fail;
27271 swig_obj[0] = args;
27272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27273 if (!SWIG_IsOK(res1)) {
27274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27275 }
27276 arg1 = reinterpret_cast< wxListItem * >(argp1);
27277 {
27278 PyThreadState* __tstate = wxPyBeginAllowThreads();
27279 result = ((wxListItem const *)arg1)->GetFont();
27280 wxPyEndAllowThreads(__tstate);
27281 if (PyErr_Occurred()) SWIG_fail;
27282 }
27283 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27284 return resultobj;
27285fail:
27286 return NULL;
27287}
27288
27289
27290SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27291 PyObject *resultobj = 0;
27292 wxListItem *arg1 = (wxListItem *) 0 ;
27293 long arg2 ;
27294 void *argp1 = 0 ;
27295 int res1 = 0 ;
27296 long val2 ;
27297 int ecode2 = 0 ;
27298 PyObject *swig_obj[2] ;
27299
27300 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27302 if (!SWIG_IsOK(res1)) {
27303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27304 }
27305 arg1 = reinterpret_cast< wxListItem * >(argp1);
27306 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27307 if (!SWIG_IsOK(ecode2)) {
27308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27309 }
27310 arg2 = static_cast< long >(val2);
27311 if (arg1) (arg1)->m_mask = arg2;
27312
27313 resultobj = SWIG_Py_Void();
27314 return resultobj;
27315fail:
27316 return NULL;
b2dc1044
RD
27317}
27318
27319
0085ce49
RD
27320SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27321 PyObject *resultobj = 0;
27322 wxListItem *arg1 = (wxListItem *) 0 ;
27323 long result;
27324 void *argp1 = 0 ;
27325 int res1 = 0 ;
27326 PyObject *swig_obj[1] ;
27327
27328 if (!args) SWIG_fail;
27329 swig_obj[0] = args;
27330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27331 if (!SWIG_IsOK(res1)) {
27332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27333 }
27334 arg1 = reinterpret_cast< wxListItem * >(argp1);
27335 result = (long) ((arg1)->m_mask);
27336 resultobj = SWIG_From_long(static_cast< long >(result));
27337 return resultobj;
27338fail:
27339 return NULL;
27340}
27341
27342
27343SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27344 PyObject *resultobj = 0;
27345 wxListItem *arg1 = (wxListItem *) 0 ;
27346 long arg2 ;
27347 void *argp1 = 0 ;
27348 int res1 = 0 ;
27349 long val2 ;
27350 int ecode2 = 0 ;
27351 PyObject *swig_obj[2] ;
27352
27353 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27355 if (!SWIG_IsOK(res1)) {
27356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27357 }
27358 arg1 = reinterpret_cast< wxListItem * >(argp1);
27359 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27360 if (!SWIG_IsOK(ecode2)) {
27361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27362 }
27363 arg2 = static_cast< long >(val2);
27364 if (arg1) (arg1)->m_itemId = arg2;
27365
27366 resultobj = SWIG_Py_Void();
27367 return resultobj;
27368fail:
27369 return NULL;
d14a1e28
RD
27370}
27371
27372
0085ce49
RD
27373SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27374 PyObject *resultobj = 0;
27375 wxListItem *arg1 = (wxListItem *) 0 ;
27376 long result;
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
27379 PyObject *swig_obj[1] ;
27380
27381 if (!args) SWIG_fail;
27382 swig_obj[0] = args;
27383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27386 }
27387 arg1 = reinterpret_cast< wxListItem * >(argp1);
27388 result = (long) ((arg1)->m_itemId);
27389 resultobj = SWIG_From_long(static_cast< long >(result));
27390 return resultobj;
27391fail:
27392 return NULL;
27393}
27394
27395
27396SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27397 PyObject *resultobj = 0;
27398 wxListItem *arg1 = (wxListItem *) 0 ;
27399 int arg2 ;
27400 void *argp1 = 0 ;
27401 int res1 = 0 ;
27402 int val2 ;
27403 int ecode2 = 0 ;
27404 PyObject *swig_obj[2] ;
27405
27406 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27408 if (!SWIG_IsOK(res1)) {
27409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27410 }
27411 arg1 = reinterpret_cast< wxListItem * >(argp1);
27412 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27413 if (!SWIG_IsOK(ecode2)) {
27414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27415 }
27416 arg2 = static_cast< int >(val2);
27417 if (arg1) (arg1)->m_col = arg2;
27418
27419 resultobj = SWIG_Py_Void();
27420 return resultobj;
27421fail:
27422 return NULL;
d14a1e28
RD
27423}
27424
27425
0085ce49
RD
27426SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27427 PyObject *resultobj = 0;
27428 wxListItem *arg1 = (wxListItem *) 0 ;
27429 int result;
27430 void *argp1 = 0 ;
27431 int res1 = 0 ;
27432 PyObject *swig_obj[1] ;
27433
27434 if (!args) SWIG_fail;
27435 swig_obj[0] = args;
27436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27437 if (!SWIG_IsOK(res1)) {
27438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27439 }
27440 arg1 = reinterpret_cast< wxListItem * >(argp1);
27441 result = (int) ((arg1)->m_col);
27442 resultobj = SWIG_From_int(static_cast< int >(result));
27443 return resultobj;
27444fail:
27445 return NULL;
27446}
27447
27448
27449SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27450 PyObject *resultobj = 0;
27451 wxListItem *arg1 = (wxListItem *) 0 ;
27452 long arg2 ;
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 long val2 ;
27456 int ecode2 = 0 ;
27457 PyObject *swig_obj[2] ;
27458
27459 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27461 if (!SWIG_IsOK(res1)) {
27462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27463 }
27464 arg1 = reinterpret_cast< wxListItem * >(argp1);
27465 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27466 if (!SWIG_IsOK(ecode2)) {
27467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27468 }
27469 arg2 = static_cast< long >(val2);
27470 if (arg1) (arg1)->m_state = arg2;
27471
27472 resultobj = SWIG_Py_Void();
27473 return resultobj;
27474fail:
27475 return NULL;
8fb0e70a
RD
27476}
27477
27478
0085ce49
RD
27479SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27480 PyObject *resultobj = 0;
27481 wxListItem *arg1 = (wxListItem *) 0 ;
27482 long result;
27483 void *argp1 = 0 ;
27484 int res1 = 0 ;
27485 PyObject *swig_obj[1] ;
27486
27487 if (!args) SWIG_fail;
27488 swig_obj[0] = args;
27489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27490 if (!SWIG_IsOK(res1)) {
27491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27492 }
27493 arg1 = reinterpret_cast< wxListItem * >(argp1);
27494 result = (long) ((arg1)->m_state);
27495 resultobj = SWIG_From_long(static_cast< long >(result));
27496 return resultobj;
27497fail:
27498 return NULL;
27499}
27500
27501
27502SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27503 PyObject *resultobj = 0;
27504 wxListItem *arg1 = (wxListItem *) 0 ;
27505 long arg2 ;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 long val2 ;
27509 int ecode2 = 0 ;
27510 PyObject *swig_obj[2] ;
27511
27512 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27514 if (!SWIG_IsOK(res1)) {
27515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27516 }
27517 arg1 = reinterpret_cast< wxListItem * >(argp1);
27518 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27519 if (!SWIG_IsOK(ecode2)) {
27520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27521 }
27522 arg2 = static_cast< long >(val2);
27523 if (arg1) (arg1)->m_stateMask = arg2;
27524
27525 resultobj = SWIG_Py_Void();
27526 return resultobj;
27527fail:
27528 return NULL;
d14a1e28
RD
27529}
27530
27531
0085ce49
RD
27532SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27533 PyObject *resultobj = 0;
27534 wxListItem *arg1 = (wxListItem *) 0 ;
27535 long result;
27536 void *argp1 = 0 ;
27537 int res1 = 0 ;
27538 PyObject *swig_obj[1] ;
27539
27540 if (!args) SWIG_fail;
27541 swig_obj[0] = args;
27542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27543 if (!SWIG_IsOK(res1)) {
27544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27545 }
27546 arg1 = reinterpret_cast< wxListItem * >(argp1);
27547 result = (long) ((arg1)->m_stateMask);
27548 resultobj = SWIG_From_long(static_cast< long >(result));
27549 return resultobj;
27550fail:
27551 return NULL;
27552}
27553
27554
27555SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27556 PyObject *resultobj = 0;
27557 wxListItem *arg1 = (wxListItem *) 0 ;
27558 wxString *arg2 = (wxString *) 0 ;
27559 void *argp1 = 0 ;
27560 int res1 = 0 ;
27561 bool temp2 = false ;
27562 PyObject *swig_obj[2] ;
27563
27564 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27566 if (!SWIG_IsOK(res1)) {
27567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27568 }
27569 arg1 = reinterpret_cast< wxListItem * >(argp1);
27570 {
27571 arg2 = wxString_in_helper(swig_obj[1]);
27572 if (arg2 == NULL) SWIG_fail;
27573 temp2 = true;
27574 }
27575 if (arg1) (arg1)->m_text = *arg2;
27576
27577 resultobj = SWIG_Py_Void();
27578 {
27579 if (temp2)
27580 delete arg2;
27581 }
27582 return resultobj;
27583fail:
27584 {
27585 if (temp2)
27586 delete arg2;
27587 }
27588 return NULL;
d14a1e28
RD
27589}
27590
27591
0085ce49
RD
27592SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27593 PyObject *resultobj = 0;
27594 wxListItem *arg1 = (wxListItem *) 0 ;
27595 wxString *result = 0 ;
27596 void *argp1 = 0 ;
27597 int res1 = 0 ;
27598 PyObject *swig_obj[1] ;
27599
27600 if (!args) SWIG_fail;
27601 swig_obj[0] = args;
27602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27603 if (!SWIG_IsOK(res1)) {
27604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27605 }
27606 arg1 = reinterpret_cast< wxListItem * >(argp1);
27607 result = (wxString *)& ((arg1)->m_text);
27608 {
d14a1e28 27609#if wxUSE_UNICODE
0085ce49 27610 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27611#else
0085ce49 27612 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27613#endif
0085ce49
RD
27614 }
27615 return resultobj;
27616fail:
27617 return NULL;
d14a1e28
RD
27618}
27619
27620
0085ce49
RD
27621SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27622 PyObject *resultobj = 0;
27623 wxListItem *arg1 = (wxListItem *) 0 ;
27624 int arg2 ;
27625 void *argp1 = 0 ;
27626 int res1 = 0 ;
27627 int val2 ;
27628 int ecode2 = 0 ;
27629 PyObject *swig_obj[2] ;
27630
27631 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27633 if (!SWIG_IsOK(res1)) {
27634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27635 }
27636 arg1 = reinterpret_cast< wxListItem * >(argp1);
27637 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27638 if (!SWIG_IsOK(ecode2)) {
27639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27640 }
27641 arg2 = static_cast< int >(val2);
27642 if (arg1) (arg1)->m_image = arg2;
27643
27644 resultobj = SWIG_Py_Void();
27645 return resultobj;
27646fail:
27647 return NULL;
d14a1e28
RD
27648}
27649
27650
0085ce49
RD
27651SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27652 PyObject *resultobj = 0;
27653 wxListItem *arg1 = (wxListItem *) 0 ;
27654 int result;
27655 void *argp1 = 0 ;
27656 int res1 = 0 ;
27657 PyObject *swig_obj[1] ;
27658
27659 if (!args) SWIG_fail;
27660 swig_obj[0] = args;
27661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27662 if (!SWIG_IsOK(res1)) {
27663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27664 }
27665 arg1 = reinterpret_cast< wxListItem * >(argp1);
27666 result = (int) ((arg1)->m_image);
27667 resultobj = SWIG_From_int(static_cast< int >(result));
27668 return resultobj;
27669fail:
27670 return NULL;
27671}
27672
27673
27674SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27675 PyObject *resultobj = 0;
27676 wxListItem *arg1 = (wxListItem *) 0 ;
27677 long arg2 ;
27678 void *argp1 = 0 ;
27679 int res1 = 0 ;
27680 long val2 ;
27681 int ecode2 = 0 ;
27682 PyObject *swig_obj[2] ;
27683
27684 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27686 if (!SWIG_IsOK(res1)) {
27687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27688 }
27689 arg1 = reinterpret_cast< wxListItem * >(argp1);
27690 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27691 if (!SWIG_IsOK(ecode2)) {
27692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27693 }
27694 arg2 = static_cast< long >(val2);
27695 if (arg1) (arg1)->m_data = arg2;
27696
27697 resultobj = SWIG_Py_Void();
27698 return resultobj;
27699fail:
27700 return NULL;
d14a1e28
RD
27701}
27702
27703
0085ce49
RD
27704SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27705 PyObject *resultobj = 0;
27706 wxListItem *arg1 = (wxListItem *) 0 ;
27707 long result;
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 PyObject *swig_obj[1] ;
27711
27712 if (!args) SWIG_fail;
27713 swig_obj[0] = args;
27714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27715 if (!SWIG_IsOK(res1)) {
27716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27717 }
27718 arg1 = reinterpret_cast< wxListItem * >(argp1);
27719 result = (long) ((arg1)->m_data);
27720 resultobj = SWIG_From_long(static_cast< long >(result));
27721 return resultobj;
27722fail:
27723 return NULL;
27724}
27725
27726
27727SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27728 PyObject *resultobj = 0;
27729 wxListItem *arg1 = (wxListItem *) 0 ;
27730 int arg2 ;
27731 void *argp1 = 0 ;
27732 int res1 = 0 ;
27733 int val2 ;
27734 int ecode2 = 0 ;
27735 PyObject *swig_obj[2] ;
27736
27737 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27739 if (!SWIG_IsOK(res1)) {
27740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27741 }
27742 arg1 = reinterpret_cast< wxListItem * >(argp1);
27743 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27744 if (!SWIG_IsOK(ecode2)) {
27745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27746 }
27747 arg2 = static_cast< int >(val2);
27748 if (arg1) (arg1)->m_format = arg2;
27749
27750 resultobj = SWIG_Py_Void();
27751 return resultobj;
27752fail:
27753 return NULL;
d14a1e28
RD
27754}
27755
27756
0085ce49
RD
27757SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27758 PyObject *resultobj = 0;
27759 wxListItem *arg1 = (wxListItem *) 0 ;
27760 int result;
27761 void *argp1 = 0 ;
27762 int res1 = 0 ;
27763 PyObject *swig_obj[1] ;
27764
27765 if (!args) SWIG_fail;
27766 swig_obj[0] = args;
27767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27768 if (!SWIG_IsOK(res1)) {
27769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27770 }
27771 arg1 = reinterpret_cast< wxListItem * >(argp1);
27772 result = (int) ((arg1)->m_format);
27773 resultobj = SWIG_From_int(static_cast< int >(result));
27774 return resultobj;
27775fail:
27776 return NULL;
27777}
27778
27779
27780SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27781 PyObject *resultobj = 0;
27782 wxListItem *arg1 = (wxListItem *) 0 ;
27783 int arg2 ;
27784 void *argp1 = 0 ;
27785 int res1 = 0 ;
27786 int val2 ;
27787 int ecode2 = 0 ;
27788 PyObject *swig_obj[2] ;
27789
27790 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27792 if (!SWIG_IsOK(res1)) {
27793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27794 }
27795 arg1 = reinterpret_cast< wxListItem * >(argp1);
27796 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27797 if (!SWIG_IsOK(ecode2)) {
27798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27799 }
27800 arg2 = static_cast< int >(val2);
27801 if (arg1) (arg1)->m_width = arg2;
27802
27803 resultobj = SWIG_Py_Void();
27804 return resultobj;
27805fail:
27806 return NULL;
d14a1e28
RD
27807}
27808
27809
0085ce49
RD
27810SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27811 PyObject *resultobj = 0;
27812 wxListItem *arg1 = (wxListItem *) 0 ;
27813 int result;
27814 void *argp1 = 0 ;
27815 int res1 = 0 ;
27816 PyObject *swig_obj[1] ;
27817
27818 if (!args) SWIG_fail;
27819 swig_obj[0] = args;
27820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27821 if (!SWIG_IsOK(res1)) {
27822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27823 }
27824 arg1 = reinterpret_cast< wxListItem * >(argp1);
27825 result = (int) ((arg1)->m_width);
27826 resultobj = SWIG_From_int(static_cast< int >(result));
27827 return resultobj;
27828fail:
27829 return NULL;
27830}
27831
27832
27833SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27834 PyObject *obj;
27835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27836 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27837 return SWIG_Py_Void();
27838}
27839
27840SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27841 return SWIG_Python_InitShadowInstance(args);
27842}
27843
27844SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27845 PyObject *resultobj = 0;
27846 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27847 int arg2 = (int) 0 ;
27848 wxListEvent *result = 0 ;
27849 int val1 ;
27850 int ecode1 = 0 ;
27851 int val2 ;
27852 int ecode2 = 0 ;
27853 PyObject * obj0 = 0 ;
27854 PyObject * obj1 = 0 ;
27855 char * kwnames[] = {
27856 (char *) "commandType",(char *) "id", NULL
27857 };
27858
27859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27860 if (obj0) {
27861 ecode1 = SWIG_AsVal_int(obj0, &val1);
27862 if (!SWIG_IsOK(ecode1)) {
27863 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27864 }
27865 arg1 = static_cast< wxEventType >(val1);
27866 }
27867 if (obj1) {
27868 ecode2 = SWIG_AsVal_int(obj1, &val2);
27869 if (!SWIG_IsOK(ecode2)) {
27870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27871 }
27872 arg2 = static_cast< int >(val2);
27873 }
27874 {
27875 PyThreadState* __tstate = wxPyBeginAllowThreads();
27876 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27877 wxPyEndAllowThreads(__tstate);
27878 if (PyErr_Occurred()) SWIG_fail;
27879 }
27880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27881 return resultobj;
27882fail:
27883 return NULL;
27884}
27885
27886
27887SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27888 PyObject *resultobj = 0;
27889 wxListEvent *arg1 = (wxListEvent *) 0 ;
27890 int arg2 ;
27891 void *argp1 = 0 ;
27892 int res1 = 0 ;
27893 int val2 ;
27894 int ecode2 = 0 ;
27895 PyObject *swig_obj[2] ;
27896
27897 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27899 if (!SWIG_IsOK(res1)) {
27900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27901 }
27902 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27903 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27904 if (!SWIG_IsOK(ecode2)) {
27905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27906 }
27907 arg2 = static_cast< int >(val2);
27908 if (arg1) (arg1)->m_code = arg2;
27909
27910 resultobj = SWIG_Py_Void();
27911 return resultobj;
27912fail:
27913 return NULL;
d14a1e28
RD
27914}
27915
27916
0085ce49
RD
27917SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27918 PyObject *resultobj = 0;
27919 wxListEvent *arg1 = (wxListEvent *) 0 ;
27920 int result;
27921 void *argp1 = 0 ;
27922 int res1 = 0 ;
27923 PyObject *swig_obj[1] ;
27924
27925 if (!args) SWIG_fail;
27926 swig_obj[0] = args;
27927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27928 if (!SWIG_IsOK(res1)) {
27929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27930 }
27931 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27932 result = (int) ((arg1)->m_code);
27933 resultobj = SWIG_From_int(static_cast< int >(result));
27934 return resultobj;
27935fail:
27936 return NULL;
27937}
27938
27939
27940SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27941 PyObject *resultobj = 0;
27942 wxListEvent *arg1 = (wxListEvent *) 0 ;
27943 long arg2 ;
27944 void *argp1 = 0 ;
27945 int res1 = 0 ;
27946 long val2 ;
27947 int ecode2 = 0 ;
27948 PyObject *swig_obj[2] ;
27949
27950 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27952 if (!SWIG_IsOK(res1)) {
27953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27954 }
27955 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27956 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27957 if (!SWIG_IsOK(ecode2)) {
27958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27959 }
27960 arg2 = static_cast< long >(val2);
27961 if (arg1) (arg1)->m_oldItemIndex = arg2;
27962
27963 resultobj = SWIG_Py_Void();
27964 return resultobj;
27965fail:
27966 return NULL;
d14a1e28
RD
27967}
27968
27969
0085ce49
RD
27970SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27971 PyObject *resultobj = 0;
27972 wxListEvent *arg1 = (wxListEvent *) 0 ;
27973 long result;
27974 void *argp1 = 0 ;
27975 int res1 = 0 ;
27976 PyObject *swig_obj[1] ;
27977
27978 if (!args) SWIG_fail;
27979 swig_obj[0] = args;
27980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27981 if (!SWIG_IsOK(res1)) {
27982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27983 }
27984 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27985 result = (long) ((arg1)->m_oldItemIndex);
27986 resultobj = SWIG_From_long(static_cast< long >(result));
27987 return resultobj;
27988fail:
27989 return NULL;
27990}
27991
27992
27993SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27994 PyObject *resultobj = 0;
27995 wxListEvent *arg1 = (wxListEvent *) 0 ;
27996 long arg2 ;
27997 void *argp1 = 0 ;
27998 int res1 = 0 ;
27999 long val2 ;
28000 int ecode2 = 0 ;
28001 PyObject *swig_obj[2] ;
28002
28003 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28005 if (!SWIG_IsOK(res1)) {
28006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28007 }
28008 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28009 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28010 if (!SWIG_IsOK(ecode2)) {
28011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28012 }
28013 arg2 = static_cast< long >(val2);
28014 if (arg1) (arg1)->m_itemIndex = arg2;
28015
28016 resultobj = SWIG_Py_Void();
28017 return resultobj;
28018fail:
28019 return NULL;
d14a1e28
RD
28020}
28021
28022
0085ce49
RD
28023SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28024 PyObject *resultobj = 0;
28025 wxListEvent *arg1 = (wxListEvent *) 0 ;
28026 long result;
28027 void *argp1 = 0 ;
28028 int res1 = 0 ;
28029 PyObject *swig_obj[1] ;
28030
28031 if (!args) SWIG_fail;
28032 swig_obj[0] = args;
28033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28034 if (!SWIG_IsOK(res1)) {
28035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28036 }
28037 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28038 result = (long) ((arg1)->m_itemIndex);
28039 resultobj = SWIG_From_long(static_cast< long >(result));
28040 return resultobj;
28041fail:
28042 return NULL;
28043}
28044
28045
28046SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28047 PyObject *resultobj = 0;
28048 wxListEvent *arg1 = (wxListEvent *) 0 ;
28049 int arg2 ;
28050 void *argp1 = 0 ;
28051 int res1 = 0 ;
28052 int val2 ;
28053 int ecode2 = 0 ;
28054 PyObject *swig_obj[2] ;
28055
28056 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28058 if (!SWIG_IsOK(res1)) {
28059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28060 }
28061 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28062 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28063 if (!SWIG_IsOK(ecode2)) {
28064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28065 }
28066 arg2 = static_cast< int >(val2);
28067 if (arg1) (arg1)->m_col = arg2;
28068
28069 resultobj = SWIG_Py_Void();
28070 return resultobj;
28071fail:
28072 return NULL;
7e08d4ef
RD
28073}
28074
28075
0085ce49
RD
28076SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28077 PyObject *resultobj = 0;
28078 wxListEvent *arg1 = (wxListEvent *) 0 ;
28079 int result;
28080 void *argp1 = 0 ;
28081 int res1 = 0 ;
28082 PyObject *swig_obj[1] ;
28083
28084 if (!args) SWIG_fail;
28085 swig_obj[0] = args;
28086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28087 if (!SWIG_IsOK(res1)) {
28088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28089 }
28090 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28091 result = (int) ((arg1)->m_col);
28092 resultobj = SWIG_From_int(static_cast< int >(result));
28093 return resultobj;
28094fail:
28095 return NULL;
28096}
28097
28098
28099SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28100 PyObject *resultobj = 0;
28101 wxListEvent *arg1 = (wxListEvent *) 0 ;
28102 wxPoint *arg2 = (wxPoint *) 0 ;
28103 void *argp1 = 0 ;
28104 int res1 = 0 ;
28105 void *argp2 = 0 ;
28106 int res2 = 0 ;
28107 PyObject *swig_obj[2] ;
28108
28109 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28111 if (!SWIG_IsOK(res1)) {
28112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28113 }
28114 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28115 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28116 if (!SWIG_IsOK(res2)) {
28117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28118 }
28119 arg2 = reinterpret_cast< wxPoint * >(argp2);
28120 if (arg1) (arg1)->m_pointDrag = *arg2;
28121
28122 resultobj = SWIG_Py_Void();
28123 return resultobj;
28124fail:
28125 return NULL;
7e08d4ef
RD
28126}
28127
28128
0085ce49
RD
28129SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28130 PyObject *resultobj = 0;
28131 wxListEvent *arg1 = (wxListEvent *) 0 ;
28132 wxPoint *result = 0 ;
28133 void *argp1 = 0 ;
28134 int res1 = 0 ;
28135 PyObject *swig_obj[1] ;
28136
28137 if (!args) SWIG_fail;
28138 swig_obj[0] = args;
28139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28140 if (!SWIG_IsOK(res1)) {
28141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28142 }
28143 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28144 result = (wxPoint *)& ((arg1)->m_pointDrag);
28145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28146 return resultobj;
28147fail:
28148 return NULL;
28149}
28150
28151
28152SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28153 PyObject *resultobj = 0;
28154 wxListEvent *arg1 = (wxListEvent *) 0 ;
28155 wxListItem *result = 0 ;
28156 void *argp1 = 0 ;
28157 int res1 = 0 ;
28158 PyObject *swig_obj[1] ;
28159
28160 if (!args) SWIG_fail;
28161 swig_obj[0] = args;
28162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28165 }
28166 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28167 result = (wxListItem *)& ((arg1)->m_item);
28168 {
28169 resultobj = wxPyMake_wxObject(result, (bool)0);
28170 }
28171 return resultobj;
28172fail:
28173 return NULL;
7e08d4ef
RD
28174}
28175
28176
0085ce49
RD
28177SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28178 PyObject *resultobj = 0;
28179 wxListEvent *arg1 = (wxListEvent *) 0 ;
28180 int result;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 PyObject *swig_obj[1] ;
28184
28185 if (!args) SWIG_fail;
28186 swig_obj[0] = args;
28187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28188 if (!SWIG_IsOK(res1)) {
28189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28190 }
28191 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 result = (int)(arg1)->GetKeyCode();
28195 wxPyEndAllowThreads(__tstate);
28196 if (PyErr_Occurred()) SWIG_fail;
28197 }
28198 resultobj = SWIG_From_int(static_cast< int >(result));
28199 return resultobj;
28200fail:
28201 return NULL;
7e08d4ef
RD
28202}
28203
28204
0085ce49
RD
28205SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28206 PyObject *resultobj = 0;
28207 wxListEvent *arg1 = (wxListEvent *) 0 ;
28208 long result;
28209 void *argp1 = 0 ;
28210 int res1 = 0 ;
28211 PyObject *swig_obj[1] ;
28212
28213 if (!args) SWIG_fail;
28214 swig_obj[0] = args;
28215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28216 if (!SWIG_IsOK(res1)) {
28217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28218 }
28219 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28220 {
28221 PyThreadState* __tstate = wxPyBeginAllowThreads();
28222 result = (long)(arg1)->GetIndex();
28223 wxPyEndAllowThreads(__tstate);
28224 if (PyErr_Occurred()) SWIG_fail;
28225 }
28226 resultobj = SWIG_From_long(static_cast< long >(result));
28227 return resultobj;
28228fail:
28229 return NULL;
7e08d4ef
RD
28230}
28231
28232
0085ce49
RD
28233SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28234 PyObject *resultobj = 0;
28235 wxListEvent *arg1 = (wxListEvent *) 0 ;
28236 int result;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 PyObject *swig_obj[1] ;
28240
28241 if (!args) SWIG_fail;
28242 swig_obj[0] = args;
28243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28246 }
28247 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 result = (int)(arg1)->GetColumn();
28251 wxPyEndAllowThreads(__tstate);
28252 if (PyErr_Occurred()) SWIG_fail;
28253 }
28254 resultobj = SWIG_From_int(static_cast< int >(result));
28255 return resultobj;
28256fail:
28257 return NULL;
d14a1e28
RD
28258}
28259
28260
0085ce49
RD
28261SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28262 PyObject *resultobj = 0;
28263 wxListEvent *arg1 = (wxListEvent *) 0 ;
28264 wxPoint result;
28265 void *argp1 = 0 ;
28266 int res1 = 0 ;
28267 PyObject *swig_obj[1] ;
28268
28269 if (!args) SWIG_fail;
28270 swig_obj[0] = args;
28271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28272 if (!SWIG_IsOK(res1)) {
28273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28274 }
28275 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28276 {
28277 PyThreadState* __tstate = wxPyBeginAllowThreads();
28278 result = (arg1)->GetPoint();
28279 wxPyEndAllowThreads(__tstate);
28280 if (PyErr_Occurred()) SWIG_fail;
28281 }
28282 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28283 return resultobj;
28284fail:
28285 return NULL;
d14a1e28
RD
28286}
28287
28288
0085ce49
RD
28289SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28290 PyObject *resultobj = 0;
28291 wxListEvent *arg1 = (wxListEvent *) 0 ;
28292 wxString *result = 0 ;
28293 void *argp1 = 0 ;
28294 int res1 = 0 ;
28295 PyObject *swig_obj[1] ;
28296
28297 if (!args) SWIG_fail;
28298 swig_obj[0] = args;
28299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28300 if (!SWIG_IsOK(res1)) {
28301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28302 }
28303 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28304 {
28305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28306 {
0085ce49
RD
28307 wxString const &_result_ref = (arg1)->GetLabel();
28308 result = (wxString *) &_result_ref;
4f89f6a3 28309 }
0085ce49
RD
28310 wxPyEndAllowThreads(__tstate);
28311 if (PyErr_Occurred()) SWIG_fail;
28312 }
28313 {
28314#if wxUSE_UNICODE
28315 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28316#else
28317 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28318#endif
28319 }
28320 return resultobj;
28321fail:
28322 return NULL;
d14a1e28
RD
28323}
28324
28325
0085ce49
RD
28326SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28327 PyObject *resultobj = 0;
28328 wxListEvent *arg1 = (wxListEvent *) 0 ;
28329 wxString *result = 0 ;
28330 void *argp1 = 0 ;
28331 int res1 = 0 ;
28332 PyObject *swig_obj[1] ;
28333
28334 if (!args) SWIG_fail;
28335 swig_obj[0] = args;
28336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28337 if (!SWIG_IsOK(res1)) {
28338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28339 }
28340 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28341 {
28342 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28343 {
0085ce49
RD
28344 wxString const &_result_ref = (arg1)->GetText();
28345 result = (wxString *) &_result_ref;
d14a1e28 28346 }
0085ce49
RD
28347 wxPyEndAllowThreads(__tstate);
28348 if (PyErr_Occurred()) SWIG_fail;
28349 }
28350 {
28351#if wxUSE_UNICODE
28352 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28353#else
28354 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28355#endif
28356 }
28357 return resultobj;
28358fail:
28359 return NULL;
d14a1e28
RD
28360}
28361
28362
0085ce49
RD
28363SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28364 PyObject *resultobj = 0;
28365 wxListEvent *arg1 = (wxListEvent *) 0 ;
28366 int result;
28367 void *argp1 = 0 ;
28368 int res1 = 0 ;
28369 PyObject *swig_obj[1] ;
28370
28371 if (!args) SWIG_fail;
28372 swig_obj[0] = args;
28373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28374 if (!SWIG_IsOK(res1)) {
28375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28376 }
28377 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28378 {
28379 PyThreadState* __tstate = wxPyBeginAllowThreads();
28380 result = (int)(arg1)->GetImage();
28381 wxPyEndAllowThreads(__tstate);
28382 if (PyErr_Occurred()) SWIG_fail;
28383 }
28384 resultobj = SWIG_From_int(static_cast< int >(result));
28385 return resultobj;
28386fail:
28387 return NULL;
d14a1e28
RD
28388}
28389
28390
0085ce49
RD
28391SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28392 PyObject *resultobj = 0;
28393 wxListEvent *arg1 = (wxListEvent *) 0 ;
28394 long result;
28395 void *argp1 = 0 ;
28396 int res1 = 0 ;
28397 PyObject *swig_obj[1] ;
28398
28399 if (!args) SWIG_fail;
28400 swig_obj[0] = args;
28401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28402 if (!SWIG_IsOK(res1)) {
28403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28404 }
28405 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28406 {
28407 PyThreadState* __tstate = wxPyBeginAllowThreads();
28408 result = (long)(arg1)->GetData();
28409 wxPyEndAllowThreads(__tstate);
28410 if (PyErr_Occurred()) SWIG_fail;
28411 }
28412 resultobj = SWIG_From_long(static_cast< long >(result));
28413 return resultobj;
28414fail:
28415 return NULL;
d14a1e28
RD
28416}
28417
28418
0085ce49
RD
28419SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28420 PyObject *resultobj = 0;
28421 wxListEvent *arg1 = (wxListEvent *) 0 ;
28422 long result;
28423 void *argp1 = 0 ;
28424 int res1 = 0 ;
28425 PyObject *swig_obj[1] ;
28426
28427 if (!args) SWIG_fail;
28428 swig_obj[0] = args;
28429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28430 if (!SWIG_IsOK(res1)) {
28431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28432 }
28433 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28434 {
28435 PyThreadState* __tstate = wxPyBeginAllowThreads();
28436 result = (long)(arg1)->GetMask();
28437 wxPyEndAllowThreads(__tstate);
28438 if (PyErr_Occurred()) SWIG_fail;
28439 }
28440 resultobj = SWIG_From_long(static_cast< long >(result));
28441 return resultobj;
28442fail:
28443 return NULL;
d14a1e28
RD
28444}
28445
28446
0085ce49
RD
28447SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28448 PyObject *resultobj = 0;
28449 wxListEvent *arg1 = (wxListEvent *) 0 ;
28450 wxListItem *result = 0 ;
28451 void *argp1 = 0 ;
28452 int res1 = 0 ;
28453 PyObject *swig_obj[1] ;
28454
28455 if (!args) SWIG_fail;
28456 swig_obj[0] = args;
28457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28458 if (!SWIG_IsOK(res1)) {
28459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28460 }
28461 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28462 {
28463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28464 {
0085ce49
RD
28465 wxListItem const &_result_ref = (arg1)->GetItem();
28466 result = (wxListItem *) &_result_ref;
22bfe96c 28467 }
0085ce49
RD
28468 wxPyEndAllowThreads(__tstate);
28469 if (PyErr_Occurred()) SWIG_fail;
28470 }
28471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28472 return resultobj;
28473fail:
28474 return NULL;
22bfe96c
RD
28475}
28476
28477
0085ce49
RD
28478SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28479 PyObject *resultobj = 0;
28480 wxListEvent *arg1 = (wxListEvent *) 0 ;
28481 long result;
28482 void *argp1 = 0 ;
28483 int res1 = 0 ;
28484 PyObject *swig_obj[1] ;
28485
28486 if (!args) SWIG_fail;
28487 swig_obj[0] = args;
28488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28489 if (!SWIG_IsOK(res1)) {
28490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28491 }
28492 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28493 {
28494 PyThreadState* __tstate = wxPyBeginAllowThreads();
28495 result = (long)(arg1)->GetCacheFrom();
28496 wxPyEndAllowThreads(__tstate);
28497 if (PyErr_Occurred()) SWIG_fail;
28498 }
28499 resultobj = SWIG_From_long(static_cast< long >(result));
28500 return resultobj;
28501fail:
28502 return NULL;
d14a1e28
RD
28503}
28504
28505
0085ce49
RD
28506SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28507 PyObject *resultobj = 0;
28508 wxListEvent *arg1 = (wxListEvent *) 0 ;
28509 long result;
28510 void *argp1 = 0 ;
28511 int res1 = 0 ;
28512 PyObject *swig_obj[1] ;
28513
28514 if (!args) SWIG_fail;
28515 swig_obj[0] = args;
28516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28517 if (!SWIG_IsOK(res1)) {
28518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28519 }
28520 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28521 {
28522 PyThreadState* __tstate = wxPyBeginAllowThreads();
28523 result = (long)(arg1)->GetCacheTo();
28524 wxPyEndAllowThreads(__tstate);
28525 if (PyErr_Occurred()) SWIG_fail;
28526 }
28527 resultobj = SWIG_From_long(static_cast< long >(result));
28528 return resultobj;
28529fail:
28530 return NULL;
d14a1e28
RD
28531}
28532
28533
0085ce49
RD
28534SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28535 PyObject *resultobj = 0;
28536 wxListEvent *arg1 = (wxListEvent *) 0 ;
28537 bool result;
28538 void *argp1 = 0 ;
28539 int res1 = 0 ;
28540 PyObject *swig_obj[1] ;
28541
28542 if (!args) SWIG_fail;
28543 swig_obj[0] = args;
28544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28545 if (!SWIG_IsOK(res1)) {
28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28547 }
28548 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28549 {
28550 PyThreadState* __tstate = wxPyBeginAllowThreads();
28551 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28552 wxPyEndAllowThreads(__tstate);
28553 if (PyErr_Occurred()) SWIG_fail;
28554 }
28555 {
28556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28557 }
28558 return resultobj;
28559fail:
28560 return NULL;
28561}
28562
28563
28564SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28565 PyObject *resultobj = 0;
28566 wxListEvent *arg1 = (wxListEvent *) 0 ;
28567 bool arg2 ;
28568 void *argp1 = 0 ;
28569 int res1 = 0 ;
28570 bool val2 ;
28571 int ecode2 = 0 ;
28572 PyObject * obj0 = 0 ;
28573 PyObject * obj1 = 0 ;
28574 char * kwnames[] = {
28575 (char *) "self",(char *) "editCancelled", NULL
28576 };
28577
28578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28580 if (!SWIG_IsOK(res1)) {
28581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28582 }
28583 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28584 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28585 if (!SWIG_IsOK(ecode2)) {
28586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28587 }
28588 arg2 = static_cast< bool >(val2);
28589 {
28590 PyThreadState* __tstate = wxPyBeginAllowThreads();
28591 (arg1)->SetEditCanceled(arg2);
28592 wxPyEndAllowThreads(__tstate);
28593 if (PyErr_Occurred()) SWIG_fail;
28594 }
28595 resultobj = SWIG_Py_Void();
28596 return resultobj;
28597fail:
28598 return NULL;
28599}
28600
28601
28602SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28603 PyObject *obj;
28604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28605 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28606 return SWIG_Py_Void();
28607}
28608
28609SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28610 return SWIG_Python_InitShadowInstance(args);
28611}
28612
28613SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28614 PyObject *resultobj = 0;
28615 wxWindow *arg1 = (wxWindow *) 0 ;
28616 int arg2 = (int) -1 ;
28617 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28618 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28619 wxSize const &arg4_defvalue = wxDefaultSize ;
28620 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28621 long arg5 = (long) wxLC_ICON ;
28622 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28623 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28624 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28625 wxString *arg7 = (wxString *) &arg7_defvalue ;
28626 wxPyListCtrl *result = 0 ;
28627 void *argp1 = 0 ;
28628 int res1 = 0 ;
28629 int val2 ;
28630 int ecode2 = 0 ;
28631 wxPoint temp3 ;
28632 wxSize temp4 ;
28633 long val5 ;
28634 int ecode5 = 0 ;
28635 void *argp6 = 0 ;
28636 int res6 = 0 ;
28637 bool temp7 = false ;
28638 PyObject * obj0 = 0 ;
28639 PyObject * obj1 = 0 ;
28640 PyObject * obj2 = 0 ;
28641 PyObject * obj3 = 0 ;
28642 PyObject * obj4 = 0 ;
28643 PyObject * obj5 = 0 ;
28644 PyObject * obj6 = 0 ;
28645 char * kwnames[] = {
28646 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28647 };
28648
28649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28651 if (!SWIG_IsOK(res1)) {
28652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28653 }
28654 arg1 = reinterpret_cast< wxWindow * >(argp1);
28655 if (obj1) {
28656 ecode2 = SWIG_AsVal_int(obj1, &val2);
28657 if (!SWIG_IsOK(ecode2)) {
28658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28659 }
28660 arg2 = static_cast< int >(val2);
28661 }
28662 if (obj2) {
093d3ff1 28663 {
0085ce49
RD
28664 arg3 = &temp3;
28665 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28666 }
0085ce49
RD
28667 }
28668 if (obj3) {
d14a1e28 28669 {
0085ce49
RD
28670 arg4 = &temp4;
28671 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28672 }
0085ce49
RD
28673 }
28674 if (obj4) {
28675 ecode5 = SWIG_AsVal_long(obj4, &val5);
28676 if (!SWIG_IsOK(ecode5)) {
28677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28678 }
28679 arg5 = static_cast< long >(val5);
28680 }
28681 if (obj5) {
28682 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28683 if (!SWIG_IsOK(res6)) {
28684 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28685 }
0085ce49
RD
28686 if (!argp6) {
28687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28688 }
28689 arg6 = reinterpret_cast< wxValidator * >(argp6);
28690 }
28691 if (obj6) {
093d3ff1 28692 {
0085ce49
RD
28693 arg7 = wxString_in_helper(obj6);
28694 if (arg7 == NULL) SWIG_fail;
28695 temp7 = true;
093d3ff1 28696 }
0085ce49
RD
28697 }
28698 {
28699 if (!wxPyCheckForApp()) SWIG_fail;
28700 PyThreadState* __tstate = wxPyBeginAllowThreads();
28701 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28702 wxPyEndAllowThreads(__tstate);
28703 if (PyErr_Occurred()) SWIG_fail;
28704 }
28705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28706 {
28707 if (temp7)
28708 delete arg7;
28709 }
28710 return resultobj;
28711fail:
28712 {
28713 if (temp7)
28714 delete arg7;
28715 }
28716 return NULL;
d14a1e28
RD
28717}
28718
28719
0085ce49
RD
28720SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28721 PyObject *resultobj = 0;
28722 wxPyListCtrl *result = 0 ;
28723
28724 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28725 {
28726 if (!wxPyCheckForApp()) SWIG_fail;
28727 PyThreadState* __tstate = wxPyBeginAllowThreads();
28728 result = (wxPyListCtrl *)new wxPyListCtrl();
28729 wxPyEndAllowThreads(__tstate);
28730 if (PyErr_Occurred()) SWIG_fail;
28731 }
28732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28733 return resultobj;
28734fail:
28735 return NULL;
28736}
28737
28738
28739SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28740 PyObject *resultobj = 0;
28741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28742 wxWindow *arg2 = (wxWindow *) 0 ;
28743 int arg3 = (int) -1 ;
28744 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28745 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28746 wxSize const &arg5_defvalue = wxDefaultSize ;
28747 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28748 long arg6 = (long) wxLC_ICON ;
28749 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28750 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28751 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28752 wxString *arg8 = (wxString *) &arg8_defvalue ;
28753 bool result;
28754 void *argp1 = 0 ;
28755 int res1 = 0 ;
28756 void *argp2 = 0 ;
28757 int res2 = 0 ;
28758 int val3 ;
28759 int ecode3 = 0 ;
28760 wxPoint temp4 ;
28761 wxSize temp5 ;
28762 long val6 ;
28763 int ecode6 = 0 ;
28764 void *argp7 = 0 ;
28765 int res7 = 0 ;
28766 bool temp8 = false ;
28767 PyObject * obj0 = 0 ;
28768 PyObject * obj1 = 0 ;
28769 PyObject * obj2 = 0 ;
28770 PyObject * obj3 = 0 ;
28771 PyObject * obj4 = 0 ;
28772 PyObject * obj5 = 0 ;
28773 PyObject * obj6 = 0 ;
28774 PyObject * obj7 = 0 ;
28775 char * kwnames[] = {
28776 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28777 };
28778
28779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28781 if (!SWIG_IsOK(res1)) {
28782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28783 }
28784 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28786 if (!SWIG_IsOK(res2)) {
28787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28788 }
28789 arg2 = reinterpret_cast< wxWindow * >(argp2);
28790 if (obj2) {
28791 ecode3 = SWIG_AsVal_int(obj2, &val3);
28792 if (!SWIG_IsOK(ecode3)) {
28793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28794 }
28795 arg3 = static_cast< int >(val3);
28796 }
28797 if (obj3) {
093d3ff1 28798 {
0085ce49
RD
28799 arg4 = &temp4;
28800 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 28801 }
0085ce49
RD
28802 }
28803 if (obj4) {
d14a1e28 28804 {
0085ce49
RD
28805 arg5 = &temp5;
28806 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 28807 }
0085ce49
RD
28808 }
28809 if (obj5) {
28810 ecode6 = SWIG_AsVal_long(obj5, &val6);
28811 if (!SWIG_IsOK(ecode6)) {
28812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28813 }
28814 arg6 = static_cast< long >(val6);
28815 }
28816 if (obj6) {
28817 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28818 if (!SWIG_IsOK(res7)) {
28819 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28820 }
0085ce49
RD
28821 if (!argp7) {
28822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28823 }
0085ce49
RD
28824 arg7 = reinterpret_cast< wxValidator * >(argp7);
28825 }
28826 if (obj7) {
d14a1e28 28827 {
0085ce49
RD
28828 arg8 = wxString_in_helper(obj7);
28829 if (arg8 == NULL) SWIG_fail;
28830 temp8 = true;
d14a1e28 28831 }
0085ce49
RD
28832 }
28833 {
28834 PyThreadState* __tstate = wxPyBeginAllowThreads();
28835 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28836 wxPyEndAllowThreads(__tstate);
28837 if (PyErr_Occurred()) SWIG_fail;
28838 }
28839 {
28840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28841 }
28842 {
28843 if (temp8)
28844 delete arg8;
28845 }
28846 return resultobj;
28847fail:
28848 {
28849 if (temp8)
28850 delete arg8;
28851 }
28852 return NULL;
28853}
28854
28855
28856SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28857 PyObject *resultobj = 0;
28858 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28859 PyObject *arg2 = (PyObject *) 0 ;
28860 PyObject *arg3 = (PyObject *) 0 ;
28861 void *argp1 = 0 ;
28862 int res1 = 0 ;
28863 PyObject * obj0 = 0 ;
28864 PyObject * obj1 = 0 ;
28865 PyObject * obj2 = 0 ;
28866 char * kwnames[] = {
28867 (char *) "self",(char *) "self",(char *) "_class", NULL
28868 };
28869
28870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28872 if (!SWIG_IsOK(res1)) {
28873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28874 }
28875 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28876 arg2 = obj1;
28877 arg3 = obj2;
28878 {
28879 PyThreadState* __tstate = wxPyBeginAllowThreads();
28880 (arg1)->_setCallbackInfo(arg2,arg3);
28881 wxPyEndAllowThreads(__tstate);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 resultobj = SWIG_Py_Void();
28885 return resultobj;
28886fail:
28887 return NULL;
28888}
28889
28890
28891SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28892 PyObject *resultobj = 0;
28893 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28894 int arg2 ;
28895 wxListItem *result = 0 ;
28896 void *argp1 = 0 ;
28897 int res1 = 0 ;
28898 int val2 ;
28899 int ecode2 = 0 ;
28900 PyObject * obj0 = 0 ;
28901 PyObject * obj1 = 0 ;
28902 char * kwnames[] = {
28903 (char *) "self",(char *) "col", NULL
28904 };
28905
28906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28908 if (!SWIG_IsOK(res1)) {
28909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28910 }
28911 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28912 ecode2 = SWIG_AsVal_int(obj1, &val2);
28913 if (!SWIG_IsOK(ecode2)) {
28914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28915 }
28916 arg2 = static_cast< int >(val2);
28917 {
28918 PyThreadState* __tstate = wxPyBeginAllowThreads();
28919 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28920 wxPyEndAllowThreads(__tstate);
28921 if (PyErr_Occurred()) SWIG_fail;
28922 }
28923 {
28924 resultobj = wxPyMake_wxObject(result, (bool)0);
28925 }
28926 return resultobj;
28927fail:
28928 return NULL;
28929}
28930
28931
28932SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28933 PyObject *resultobj = 0;
28934 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28935 int arg2 ;
28936 wxListItem *arg3 = 0 ;
28937 bool result;
28938 void *argp1 = 0 ;
28939 int res1 = 0 ;
28940 int val2 ;
28941 int ecode2 = 0 ;
28942 void *argp3 = 0 ;
28943 int res3 = 0 ;
28944 PyObject * obj0 = 0 ;
28945 PyObject * obj1 = 0 ;
28946 PyObject * obj2 = 0 ;
28947 char * kwnames[] = {
28948 (char *) "self",(char *) "col",(char *) "item", NULL
28949 };
28950
28951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28953 if (!SWIG_IsOK(res1)) {
28954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28955 }
28956 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28957 ecode2 = SWIG_AsVal_int(obj1, &val2);
28958 if (!SWIG_IsOK(ecode2)) {
28959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28960 }
28961 arg2 = static_cast< int >(val2);
28962 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28963 if (!SWIG_IsOK(res3)) {
28964 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28965 }
28966 if (!argp3) {
28967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28968 }
28969 arg3 = reinterpret_cast< wxListItem * >(argp3);
28970 {
28971 PyThreadState* __tstate = wxPyBeginAllowThreads();
28972 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28973 wxPyEndAllowThreads(__tstate);
28974 if (PyErr_Occurred()) SWIG_fail;
28975 }
28976 {
28977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28978 }
28979 return resultobj;
28980fail:
28981 return NULL;
28982}
28983
28984
28985SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28986 PyObject *resultobj = 0;
28987 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28988 int arg2 ;
28989 int result;
28990 void *argp1 = 0 ;
28991 int res1 = 0 ;
28992 int val2 ;
28993 int ecode2 = 0 ;
28994 PyObject * obj0 = 0 ;
28995 PyObject * obj1 = 0 ;
28996 char * kwnames[] = {
28997 (char *) "self",(char *) "col", NULL
28998 };
28999
29000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29002 if (!SWIG_IsOK(res1)) {
29003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29004 }
29005 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29006 ecode2 = SWIG_AsVal_int(obj1, &val2);
29007 if (!SWIG_IsOK(ecode2)) {
29008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29009 }
29010 arg2 = static_cast< int >(val2);
29011 {
29012 PyThreadState* __tstate = wxPyBeginAllowThreads();
29013 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29014 wxPyEndAllowThreads(__tstate);
29015 if (PyErr_Occurred()) SWIG_fail;
29016 }
29017 resultobj = SWIG_From_int(static_cast< int >(result));
29018 return resultobj;
29019fail:
29020 return NULL;
29021}
29022
29023
29024SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29025 PyObject *resultobj = 0;
29026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29027 int arg2 ;
29028 int arg3 ;
29029 bool result;
29030 void *argp1 = 0 ;
29031 int res1 = 0 ;
29032 int val2 ;
29033 int ecode2 = 0 ;
29034 int val3 ;
29035 int ecode3 = 0 ;
29036 PyObject * obj0 = 0 ;
29037 PyObject * obj1 = 0 ;
29038 PyObject * obj2 = 0 ;
29039 char * kwnames[] = {
29040 (char *) "self",(char *) "col",(char *) "width", NULL
29041 };
29042
29043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29045 if (!SWIG_IsOK(res1)) {
29046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29047 }
29048 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29049 ecode2 = SWIG_AsVal_int(obj1, &val2);
29050 if (!SWIG_IsOK(ecode2)) {
29051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29052 }
29053 arg2 = static_cast< int >(val2);
29054 ecode3 = SWIG_AsVal_int(obj2, &val3);
29055 if (!SWIG_IsOK(ecode3)) {
29056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29057 }
29058 arg3 = static_cast< int >(val3);
29059 {
29060 PyThreadState* __tstate = wxPyBeginAllowThreads();
29061 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29062 wxPyEndAllowThreads(__tstate);
29063 if (PyErr_Occurred()) SWIG_fail;
29064 }
29065 {
29066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29067 }
29068 return resultobj;
29069fail:
29070 return NULL;
d14a1e28
RD
29071}
29072
29073
0085ce49
RD
29074SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29075 PyObject *resultobj = 0;
29076 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29077 int result;
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
29080 PyObject *swig_obj[1] ;
29081
29082 if (!args) SWIG_fail;
29083 swig_obj[0] = args;
29084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29085 if (!SWIG_IsOK(res1)) {
29086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29087 }
29088 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29089 {
29090 PyThreadState* __tstate = wxPyBeginAllowThreads();
29091 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29092 wxPyEndAllowThreads(__tstate);
29093 if (PyErr_Occurred()) SWIG_fail;
29094 }
29095 resultobj = SWIG_From_int(static_cast< int >(result));
29096 return resultobj;
29097fail:
29098 return NULL;
d14a1e28
RD
29099}
29100
29101
0085ce49
RD
29102SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29103 PyObject *resultobj = 0;
29104 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29105 wxRect result;
29106 void *argp1 = 0 ;
29107 int res1 = 0 ;
29108 PyObject *swig_obj[1] ;
29109
29110 if (!args) SWIG_fail;
29111 swig_obj[0] = args;
29112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29113 if (!SWIG_IsOK(res1)) {
29114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29115 }
29116 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29117 {
29118 PyThreadState* __tstate = wxPyBeginAllowThreads();
29119 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29124 return resultobj;
29125fail:
29126 return NULL;
d14a1e28
RD
29127}
29128
29129
0085ce49
RD
29130SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29131 PyObject *resultobj = 0;
29132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29133 wxTextCtrl *result = 0 ;
29134 void *argp1 = 0 ;
29135 int res1 = 0 ;
29136 PyObject *swig_obj[1] ;
29137
29138 if (!args) SWIG_fail;
29139 swig_obj[0] = args;
29140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29141 if (!SWIG_IsOK(res1)) {
29142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29143 }
29144 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29145 {
29146 PyThreadState* __tstate = wxPyBeginAllowThreads();
29147 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29148 wxPyEndAllowThreads(__tstate);
29149 if (PyErr_Occurred()) SWIG_fail;
29150 }
29151 {
29152 resultobj = wxPyMake_wxObject(result, 0);
29153 }
29154 return resultobj;
29155fail:
29156 return NULL;
29157}
29158
29159
29160SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29161 PyObject *resultobj = 0;
29162 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29163 long arg2 ;
29164 int arg3 = (int) 0 ;
29165 wxListItem *result = 0 ;
29166 void *argp1 = 0 ;
29167 int res1 = 0 ;
29168 long val2 ;
29169 int ecode2 = 0 ;
29170 int val3 ;
29171 int ecode3 = 0 ;
29172 PyObject * obj0 = 0 ;
29173 PyObject * obj1 = 0 ;
29174 PyObject * obj2 = 0 ;
29175 char * kwnames[] = {
29176 (char *) "self",(char *) "itemId",(char *) "col", NULL
29177 };
29178
29179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29181 if (!SWIG_IsOK(res1)) {
29182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29183 }
29184 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29185 ecode2 = SWIG_AsVal_long(obj1, &val2);
29186 if (!SWIG_IsOK(ecode2)) {
29187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29188 }
29189 arg2 = static_cast< long >(val2);
29190 if (obj2) {
29191 ecode3 = SWIG_AsVal_int(obj2, &val3);
29192 if (!SWIG_IsOK(ecode3)) {
29193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29194 }
29195 arg3 = static_cast< int >(val3);
29196 }
29197 {
29198 PyThreadState* __tstate = wxPyBeginAllowThreads();
29199 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29200 wxPyEndAllowThreads(__tstate);
29201 if (PyErr_Occurred()) SWIG_fail;
29202 }
29203 {
29204 resultobj = wxPyMake_wxObject(result, (bool)0);
29205 }
29206 return resultobj;
29207fail:
29208 return NULL;
29209}
29210
29211
29212SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29213 PyObject *resultobj = 0;
29214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29215 wxListItem *arg2 = 0 ;
29216 bool result;
29217 void *argp1 = 0 ;
29218 int res1 = 0 ;
29219 void *argp2 = 0 ;
29220 int res2 = 0 ;
29221 PyObject * obj0 = 0 ;
29222 PyObject * obj1 = 0 ;
29223 char * kwnames[] = {
29224 (char *) "self",(char *) "info", NULL
29225 };
29226
29227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29229 if (!SWIG_IsOK(res1)) {
29230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29231 }
29232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29233 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29234 if (!SWIG_IsOK(res2)) {
29235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29236 }
29237 if (!argp2) {
29238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29239 }
29240 arg2 = reinterpret_cast< wxListItem * >(argp2);
29241 {
29242 PyThreadState* __tstate = wxPyBeginAllowThreads();
29243 result = (bool)(arg1)->SetItem(*arg2);
29244 wxPyEndAllowThreads(__tstate);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 }
29247 {
29248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29249 }
29250 return resultobj;
29251fail:
29252 return NULL;
29253}
29254
29255
29256SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29257 PyObject *resultobj = 0;
29258 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29259 long arg2 ;
29260 int arg3 ;
29261 wxString *arg4 = 0 ;
29262 int arg5 = (int) -1 ;
29263 long result;
29264 void *argp1 = 0 ;
29265 int res1 = 0 ;
29266 long val2 ;
29267 int ecode2 = 0 ;
29268 int val3 ;
29269 int ecode3 = 0 ;
29270 bool temp4 = false ;
29271 int val5 ;
29272 int ecode5 = 0 ;
29273 PyObject * obj0 = 0 ;
29274 PyObject * obj1 = 0 ;
29275 PyObject * obj2 = 0 ;
29276 PyObject * obj3 = 0 ;
29277 PyObject * obj4 = 0 ;
29278 char * kwnames[] = {
29279 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29280 };
29281
29282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29284 if (!SWIG_IsOK(res1)) {
29285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29286 }
29287 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29288 ecode2 = SWIG_AsVal_long(obj1, &val2);
29289 if (!SWIG_IsOK(ecode2)) {
29290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29291 }
29292 arg2 = static_cast< long >(val2);
29293 ecode3 = SWIG_AsVal_int(obj2, &val3);
29294 if (!SWIG_IsOK(ecode3)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29296 }
29297 arg3 = static_cast< int >(val3);
29298 {
29299 arg4 = wxString_in_helper(obj3);
29300 if (arg4 == NULL) SWIG_fail;
29301 temp4 = true;
29302 }
29303 if (obj4) {
29304 ecode5 = SWIG_AsVal_int(obj4, &val5);
29305 if (!SWIG_IsOK(ecode5)) {
29306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29307 }
29308 arg5 = static_cast< int >(val5);
29309 }
29310 {
29311 PyThreadState* __tstate = wxPyBeginAllowThreads();
29312 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 resultobj = SWIG_From_long(static_cast< long >(result));
29317 {
29318 if (temp4)
29319 delete arg4;
29320 }
29321 return resultobj;
29322fail:
29323 {
29324 if (temp4)
29325 delete arg4;
29326 }
29327 return NULL;
29328}
29329
29330
29331SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29332 PyObject *resultobj = 0;
29333 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29334 long arg2 ;
29335 long arg3 ;
29336 int result;
29337 void *argp1 = 0 ;
29338 int res1 = 0 ;
29339 long val2 ;
29340 int ecode2 = 0 ;
29341 long val3 ;
29342 int ecode3 = 0 ;
29343 PyObject * obj0 = 0 ;
29344 PyObject * obj1 = 0 ;
29345 PyObject * obj2 = 0 ;
29346 char * kwnames[] = {
29347 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29348 };
29349
29350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29352 if (!SWIG_IsOK(res1)) {
29353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29354 }
29355 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29356 ecode2 = SWIG_AsVal_long(obj1, &val2);
29357 if (!SWIG_IsOK(ecode2)) {
29358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29359 }
29360 arg2 = static_cast< long >(val2);
29361 ecode3 = SWIG_AsVal_long(obj2, &val3);
29362 if (!SWIG_IsOK(ecode3)) {
29363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29364 }
29365 arg3 = static_cast< long >(val3);
29366 {
29367 PyThreadState* __tstate = wxPyBeginAllowThreads();
29368 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29369 wxPyEndAllowThreads(__tstate);
29370 if (PyErr_Occurred()) SWIG_fail;
29371 }
29372 resultobj = SWIG_From_int(static_cast< int >(result));
29373 return resultobj;
29374fail:
29375 return NULL;
29376}
29377
29378
29379SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29380 PyObject *resultobj = 0;
29381 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29382 long arg2 ;
29383 long arg3 ;
29384 long arg4 ;
29385 bool result;
29386 void *argp1 = 0 ;
29387 int res1 = 0 ;
29388 long val2 ;
29389 int ecode2 = 0 ;
29390 long val3 ;
29391 int ecode3 = 0 ;
29392 long val4 ;
29393 int ecode4 = 0 ;
29394 PyObject * obj0 = 0 ;
29395 PyObject * obj1 = 0 ;
29396 PyObject * obj2 = 0 ;
29397 PyObject * obj3 = 0 ;
29398 char * kwnames[] = {
29399 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29400 };
29401
29402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29404 if (!SWIG_IsOK(res1)) {
29405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29406 }
29407 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29408 ecode2 = SWIG_AsVal_long(obj1, &val2);
29409 if (!SWIG_IsOK(ecode2)) {
29410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29411 }
29412 arg2 = static_cast< long >(val2);
29413 ecode3 = SWIG_AsVal_long(obj2, &val3);
29414 if (!SWIG_IsOK(ecode3)) {
29415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29416 }
29417 arg3 = static_cast< long >(val3);
29418 ecode4 = SWIG_AsVal_long(obj3, &val4);
29419 if (!SWIG_IsOK(ecode4)) {
29420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29421 }
29422 arg4 = static_cast< long >(val4);
29423 {
29424 PyThreadState* __tstate = wxPyBeginAllowThreads();
29425 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29426 wxPyEndAllowThreads(__tstate);
29427 if (PyErr_Occurred()) SWIG_fail;
29428 }
29429 {
29430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29431 }
29432 return resultobj;
29433fail:
29434 return NULL;
29435}
29436
29437
29438SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29439 PyObject *resultobj = 0;
29440 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29441 long arg2 ;
29442 int arg3 ;
29443 int arg4 = (int) -1 ;
29444 bool result;
29445 void *argp1 = 0 ;
29446 int res1 = 0 ;
29447 long val2 ;
29448 int ecode2 = 0 ;
29449 int val3 ;
29450 int ecode3 = 0 ;
29451 int val4 ;
29452 int ecode4 = 0 ;
29453 PyObject * obj0 = 0 ;
29454 PyObject * obj1 = 0 ;
29455 PyObject * obj2 = 0 ;
29456 PyObject * obj3 = 0 ;
29457 char * kwnames[] = {
29458 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29459 };
29460
29461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29463 if (!SWIG_IsOK(res1)) {
29464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29465 }
29466 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29467 ecode2 = SWIG_AsVal_long(obj1, &val2);
29468 if (!SWIG_IsOK(ecode2)) {
29469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29470 }
29471 arg2 = static_cast< long >(val2);
29472 ecode3 = SWIG_AsVal_int(obj2, &val3);
29473 if (!SWIG_IsOK(ecode3)) {
29474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29475 }
29476 arg3 = static_cast< int >(val3);
29477 if (obj3) {
29478 ecode4 = SWIG_AsVal_int(obj3, &val4);
29479 if (!SWIG_IsOK(ecode4)) {
29480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29481 }
29482 arg4 = static_cast< int >(val4);
29483 }
29484 {
29485 PyThreadState* __tstate = wxPyBeginAllowThreads();
29486 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29487 wxPyEndAllowThreads(__tstate);
29488 if (PyErr_Occurred()) SWIG_fail;
29489 }
29490 {
29491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29492 }
29493 return resultobj;
29494fail:
29495 return NULL;
29496}
29497
29498
29499SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29500 PyObject *resultobj = 0;
29501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29502 long arg2 ;
29503 long arg3 ;
29504 int arg4 ;
29505 bool result;
29506 void *argp1 = 0 ;
29507 int res1 = 0 ;
29508 long val2 ;
29509 int ecode2 = 0 ;
29510 long val3 ;
29511 int ecode3 = 0 ;
29512 int val4 ;
29513 int ecode4 = 0 ;
29514 PyObject * obj0 = 0 ;
29515 PyObject * obj1 = 0 ;
29516 PyObject * obj2 = 0 ;
29517 PyObject * obj3 = 0 ;
29518 char * kwnames[] = {
29519 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29520 };
29521
29522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
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_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29531 }
29532 arg2 = static_cast< long >(val2);
29533 ecode3 = SWIG_AsVal_long(obj2, &val3);
29534 if (!SWIG_IsOK(ecode3)) {
29535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29536 }
29537 arg3 = static_cast< long >(val3);
29538 ecode4 = SWIG_AsVal_int(obj3, &val4);
29539 if (!SWIG_IsOK(ecode4)) {
29540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29541 }
29542 arg4 = static_cast< int >(val4);
29543 {
29544 PyThreadState* __tstate = wxPyBeginAllowThreads();
29545 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29546 wxPyEndAllowThreads(__tstate);
29547 if (PyErr_Occurred()) SWIG_fail;
29548 }
29549 {
29550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29551 }
29552 return resultobj;
29553fail:
29554 return NULL;
29555}
29556
29557
29558SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29559 PyObject *resultobj = 0;
29560 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29561 long arg2 ;
29562 wxString result;
29563 void *argp1 = 0 ;
29564 int res1 = 0 ;
29565 long val2 ;
29566 int ecode2 = 0 ;
29567 PyObject * obj0 = 0 ;
29568 PyObject * obj1 = 0 ;
29569 char * kwnames[] = {
29570 (char *) "self",(char *) "item", NULL
29571 };
29572
29573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29575 if (!SWIG_IsOK(res1)) {
29576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29577 }
29578 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29579 ecode2 = SWIG_AsVal_long(obj1, &val2);
29580 if (!SWIG_IsOK(ecode2)) {
29581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29582 }
29583 arg2 = static_cast< long >(val2);
29584 {
29585 PyThreadState* __tstate = wxPyBeginAllowThreads();
29586 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29587 wxPyEndAllowThreads(__tstate);
29588 if (PyErr_Occurred()) SWIG_fail;
29589 }
29590 {
29591#if wxUSE_UNICODE
29592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29593#else
29594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29595#endif
29596 }
29597 return resultobj;
29598fail:
29599 return NULL;
29600}
29601
29602
29603SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29604 PyObject *resultobj = 0;
29605 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29606 long arg2 ;
29607 wxString *arg3 = 0 ;
29608 void *argp1 = 0 ;
29609 int res1 = 0 ;
29610 long val2 ;
29611 int ecode2 = 0 ;
29612 bool temp3 = false ;
29613 PyObject * obj0 = 0 ;
29614 PyObject * obj1 = 0 ;
29615 PyObject * obj2 = 0 ;
29616 char * kwnames[] = {
29617 (char *) "self",(char *) "item",(char *) "str", NULL
29618 };
29619
29620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29622 if (!SWIG_IsOK(res1)) {
29623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29624 }
29625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29626 ecode2 = SWIG_AsVal_long(obj1, &val2);
29627 if (!SWIG_IsOK(ecode2)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29629 }
29630 arg2 = static_cast< long >(val2);
29631 {
29632 arg3 = wxString_in_helper(obj2);
29633 if (arg3 == NULL) SWIG_fail;
29634 temp3 = true;
29635 }
29636 {
29637 PyThreadState* __tstate = wxPyBeginAllowThreads();
29638 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29639 wxPyEndAllowThreads(__tstate);
29640 if (PyErr_Occurred()) SWIG_fail;
29641 }
29642 resultobj = SWIG_Py_Void();
29643 {
29644 if (temp3)
29645 delete arg3;
29646 }
29647 return resultobj;
29648fail:
29649 {
29650 if (temp3)
29651 delete arg3;
29652 }
29653 return NULL;
29654}
29655
29656
29657SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj = 0;
29659 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29660 long arg2 ;
29661 long result;
29662 void *argp1 = 0 ;
29663 int res1 = 0 ;
29664 long val2 ;
29665 int ecode2 = 0 ;
29666 PyObject * obj0 = 0 ;
29667 PyObject * obj1 = 0 ;
29668 char * kwnames[] = {
29669 (char *) "self",(char *) "item", NULL
29670 };
29671
29672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29674 if (!SWIG_IsOK(res1)) {
29675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29676 }
29677 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29678 ecode2 = SWIG_AsVal_long(obj1, &val2);
29679 if (!SWIG_IsOK(ecode2)) {
29680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29681 }
29682 arg2 = static_cast< long >(val2);
29683 {
29684 PyThreadState* __tstate = wxPyBeginAllowThreads();
29685 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29686 wxPyEndAllowThreads(__tstate);
29687 if (PyErr_Occurred()) SWIG_fail;
29688 }
29689 resultobj = SWIG_From_long(static_cast< long >(result));
29690 return resultobj;
29691fail:
29692 return NULL;
29693}
29694
29695
29696SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29697 PyObject *resultobj = 0;
29698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29699 long arg2 ;
29700 long arg3 ;
29701 bool result;
29702 void *argp1 = 0 ;
29703 int res1 = 0 ;
29704 long val2 ;
29705 int ecode2 = 0 ;
29706 long val3 ;
29707 int ecode3 = 0 ;
29708 PyObject * obj0 = 0 ;
29709 PyObject * obj1 = 0 ;
29710 PyObject * obj2 = 0 ;
29711 char * kwnames[] = {
29712 (char *) "self",(char *) "item",(char *) "data", NULL
29713 };
29714
29715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29717 if (!SWIG_IsOK(res1)) {
29718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29719 }
29720 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29721 ecode2 = SWIG_AsVal_long(obj1, &val2);
29722 if (!SWIG_IsOK(ecode2)) {
29723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29724 }
29725 arg2 = static_cast< long >(val2);
29726 ecode3 = SWIG_AsVal_long(obj2, &val3);
29727 if (!SWIG_IsOK(ecode3)) {
29728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29729 }
29730 arg3 = static_cast< long >(val3);
29731 {
29732 PyThreadState* __tstate = wxPyBeginAllowThreads();
29733 result = (bool)(arg1)->SetItemData(arg2,arg3);
29734 wxPyEndAllowThreads(__tstate);
29735 if (PyErr_Occurred()) SWIG_fail;
29736 }
29737 {
29738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29739 }
29740 return resultobj;
29741fail:
29742 return NULL;
29743}
29744
29745
29746SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29747 PyObject *resultobj = 0;
29748 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29749 long arg2 ;
29750 wxPoint result;
29751 void *argp1 = 0 ;
29752 int res1 = 0 ;
29753 long val2 ;
29754 int ecode2 = 0 ;
29755 PyObject * obj0 = 0 ;
29756 PyObject * obj1 = 0 ;
29757 char * kwnames[] = {
29758 (char *) "self",(char *) "item", NULL
29759 };
29760
29761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29763 if (!SWIG_IsOK(res1)) {
29764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29765 }
29766 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29767 ecode2 = SWIG_AsVal_long(obj1, &val2);
29768 if (!SWIG_IsOK(ecode2)) {
29769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29770 }
29771 arg2 = static_cast< long >(val2);
29772 {
29773 PyThreadState* __tstate = wxPyBeginAllowThreads();
29774 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29775 wxPyEndAllowThreads(__tstate);
29776 if (PyErr_Occurred()) SWIG_fail;
29777 }
29778 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29779 return resultobj;
29780fail:
29781 return NULL;
29782}
29783
29784
29785SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29786 PyObject *resultobj = 0;
29787 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29788 long arg2 ;
29789 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29790 wxRect result;
29791 void *argp1 = 0 ;
29792 int res1 = 0 ;
29793 long val2 ;
29794 int ecode2 = 0 ;
29795 int val3 ;
29796 int ecode3 = 0 ;
29797 PyObject * obj0 = 0 ;
29798 PyObject * obj1 = 0 ;
29799 PyObject * obj2 = 0 ;
29800 char * kwnames[] = {
29801 (char *) "self",(char *) "item",(char *) "code", NULL
29802 };
29803
29804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29806 if (!SWIG_IsOK(res1)) {
29807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29808 }
29809 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29810 ecode2 = SWIG_AsVal_long(obj1, &val2);
29811 if (!SWIG_IsOK(ecode2)) {
29812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29813 }
29814 arg2 = static_cast< long >(val2);
29815 if (obj2) {
29816 ecode3 = SWIG_AsVal_int(obj2, &val3);
29817 if (!SWIG_IsOK(ecode3)) {
29818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29819 }
29820 arg3 = static_cast< int >(val3);
29821 }
29822 {
29823 PyThreadState* __tstate = wxPyBeginAllowThreads();
29824 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29825 wxPyEndAllowThreads(__tstate);
29826 if (PyErr_Occurred()) SWIG_fail;
29827 }
29828 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29829 return resultobj;
29830fail:
29831 return NULL;
29832}
29833
29834
29835SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29836 PyObject *resultobj = 0;
29837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29838 long arg2 ;
29839 wxPoint *arg3 = 0 ;
29840 bool result;
29841 void *argp1 = 0 ;
29842 int res1 = 0 ;
29843 long val2 ;
29844 int ecode2 = 0 ;
29845 wxPoint temp3 ;
29846 PyObject * obj0 = 0 ;
29847 PyObject * obj1 = 0 ;
29848 PyObject * obj2 = 0 ;
29849 char * kwnames[] = {
29850 (char *) "self",(char *) "item",(char *) "pos", NULL
29851 };
29852
29853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29855 if (!SWIG_IsOK(res1)) {
29856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29857 }
29858 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29859 ecode2 = SWIG_AsVal_long(obj1, &val2);
29860 if (!SWIG_IsOK(ecode2)) {
29861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29862 }
29863 arg2 = static_cast< long >(val2);
29864 {
29865 arg3 = &temp3;
29866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29867 }
29868 {
29869 PyThreadState* __tstate = wxPyBeginAllowThreads();
29870 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29871 wxPyEndAllowThreads(__tstate);
29872 if (PyErr_Occurred()) SWIG_fail;
29873 }
29874 {
29875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29876 }
29877 return resultobj;
29878fail:
29879 return NULL;
d14a1e28
RD
29880}
29881
29882
0085ce49
RD
29883SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29884 PyObject *resultobj = 0;
29885 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29886 int result;
29887 void *argp1 = 0 ;
29888 int res1 = 0 ;
29889 PyObject *swig_obj[1] ;
29890
29891 if (!args) SWIG_fail;
29892 swig_obj[0] = args;
29893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29896 }
29897 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29898 {
29899 PyThreadState* __tstate = wxPyBeginAllowThreads();
29900 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 resultobj = SWIG_From_int(static_cast< int >(result));
29905 return resultobj;
29906fail:
29907 return NULL;
d14a1e28
RD
29908}
29909
29910
0085ce49
RD
29911SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29912 PyObject *resultobj = 0;
29913 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29914 int result;
29915 void *argp1 = 0 ;
29916 int res1 = 0 ;
29917 PyObject *swig_obj[1] ;
29918
29919 if (!args) SWIG_fail;
29920 swig_obj[0] = args;
29921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29922 if (!SWIG_IsOK(res1)) {
29923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29924 }
29925 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29926 {
29927 PyThreadState* __tstate = wxPyBeginAllowThreads();
29928 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29929 wxPyEndAllowThreads(__tstate);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 }
29932 resultobj = SWIG_From_int(static_cast< int >(result));
29933 return resultobj;
29934fail:
29935 return NULL;
d14a1e28
RD
29936}
29937
29938
0085ce49
RD
29939SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29940 PyObject *resultobj = 0;
29941 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29942 wxSize result;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 PyObject *swig_obj[1] ;
29946
29947 if (!args) SWIG_fail;
29948 swig_obj[0] = args;
29949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29950 if (!SWIG_IsOK(res1)) {
29951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29952 }
29953 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29954 {
29955 PyThreadState* __tstate = wxPyBeginAllowThreads();
29956 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29957 wxPyEndAllowThreads(__tstate);
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29961 return resultobj;
29962fail:
29963 return NULL;
29964}
29965
29966
29967SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29968 PyObject *resultobj = 0;
29969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29970 int arg2 ;
29971 bool arg3 = (bool) false ;
29972 void *argp1 = 0 ;
29973 int res1 = 0 ;
29974 int val2 ;
29975 int ecode2 = 0 ;
29976 bool val3 ;
29977 int ecode3 = 0 ;
29978 PyObject * obj0 = 0 ;
29979 PyObject * obj1 = 0 ;
29980 PyObject * obj2 = 0 ;
29981 char * kwnames[] = {
29982 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29983 };
29984
29985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29987 if (!SWIG_IsOK(res1)) {
29988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29989 }
29990 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29991 ecode2 = SWIG_AsVal_int(obj1, &val2);
29992 if (!SWIG_IsOK(ecode2)) {
29993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29994 }
29995 arg2 = static_cast< int >(val2);
29996 if (obj2) {
29997 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29998 if (!SWIG_IsOK(ecode3)) {
29999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30000 }
30001 arg3 = static_cast< bool >(val3);
30002 }
30003 {
30004 PyThreadState* __tstate = wxPyBeginAllowThreads();
30005 (arg1)->SetItemSpacing(arg2,arg3);
30006 wxPyEndAllowThreads(__tstate);
30007 if (PyErr_Occurred()) SWIG_fail;
30008 }
30009 resultobj = SWIG_Py_Void();
30010 return resultobj;
30011fail:
30012 return NULL;
22bfe96c
RD
30013}
30014
30015
0085ce49
RD
30016SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30017 PyObject *resultobj = 0;
30018 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30019 int result;
30020 void *argp1 = 0 ;
30021 int res1 = 0 ;
30022 PyObject *swig_obj[1] ;
30023
30024 if (!args) SWIG_fail;
30025 swig_obj[0] = args;
30026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30027 if (!SWIG_IsOK(res1)) {
30028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30029 }
30030 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30031 {
30032 PyThreadState* __tstate = wxPyBeginAllowThreads();
30033 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30034 wxPyEndAllowThreads(__tstate);
30035 if (PyErr_Occurred()) SWIG_fail;
30036 }
30037 resultobj = SWIG_From_int(static_cast< int >(result));
30038 return resultobj;
30039fail:
30040 return NULL;
d14a1e28
RD
30041}
30042
30043
0085ce49
RD
30044SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30045 PyObject *resultobj = 0;
30046 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30047 wxColour result;
30048 void *argp1 = 0 ;
30049 int res1 = 0 ;
30050 PyObject *swig_obj[1] ;
30051
30052 if (!args) SWIG_fail;
30053 swig_obj[0] = args;
30054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30055 if (!SWIG_IsOK(res1)) {
30056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30057 }
30058 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30059 {
30060 PyThreadState* __tstate = wxPyBeginAllowThreads();
30061 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30062 wxPyEndAllowThreads(__tstate);
30063 if (PyErr_Occurred()) SWIG_fail;
30064 }
30065 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30066 return resultobj;
30067fail:
30068 return NULL;
30069}
30070
30071
30072SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30073 PyObject *resultobj = 0;
30074 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30075 wxColour *arg2 = 0 ;
30076 void *argp1 = 0 ;
30077 int res1 = 0 ;
30078 wxColour temp2 ;
30079 PyObject * obj0 = 0 ;
30080 PyObject * obj1 = 0 ;
30081 char * kwnames[] = {
30082 (char *) "self",(char *) "col", NULL
30083 };
30084
30085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30087 if (!SWIG_IsOK(res1)) {
30088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30089 }
30090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30091 {
30092 arg2 = &temp2;
30093 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30094 }
30095 {
30096 PyThreadState* __tstate = wxPyBeginAllowThreads();
30097 (arg1)->SetTextColour((wxColour const &)*arg2);
30098 wxPyEndAllowThreads(__tstate);
30099 if (PyErr_Occurred()) SWIG_fail;
30100 }
30101 resultobj = SWIG_Py_Void();
30102 return resultobj;
30103fail:
30104 return NULL;
d14a1e28
RD
30105}
30106
30107
0085ce49
RD
30108SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30109 PyObject *resultobj = 0;
30110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30111 long result;
30112 void *argp1 = 0 ;
30113 int res1 = 0 ;
30114 PyObject *swig_obj[1] ;
30115
30116 if (!args) SWIG_fail;
30117 swig_obj[0] = args;
30118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30119 if (!SWIG_IsOK(res1)) {
30120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30121 }
30122 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30123 {
30124 PyThreadState* __tstate = wxPyBeginAllowThreads();
30125 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30126 wxPyEndAllowThreads(__tstate);
30127 if (PyErr_Occurred()) SWIG_fail;
30128 }
30129 resultobj = SWIG_From_long(static_cast< long >(result));
30130 return resultobj;
30131fail:
30132 return NULL;
30133}
30134
30135
30136SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30137 PyObject *resultobj = 0;
30138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30139 long arg2 ;
30140 bool arg3 = (bool) true ;
30141 void *argp1 = 0 ;
30142 int res1 = 0 ;
30143 long val2 ;
30144 int ecode2 = 0 ;
30145 bool val3 ;
30146 int ecode3 = 0 ;
30147 PyObject * obj0 = 0 ;
30148 PyObject * obj1 = 0 ;
30149 PyObject * obj2 = 0 ;
30150 char * kwnames[] = {
30151 (char *) "self",(char *) "style",(char *) "add", NULL
30152 };
30153
30154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30156 if (!SWIG_IsOK(res1)) {
30157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30158 }
30159 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30160 ecode2 = SWIG_AsVal_long(obj1, &val2);
30161 if (!SWIG_IsOK(ecode2)) {
30162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30163 }
30164 arg2 = static_cast< long >(val2);
30165 if (obj2) {
30166 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30167 if (!SWIG_IsOK(ecode3)) {
30168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30169 }
30170 arg3 = static_cast< bool >(val3);
30171 }
30172 {
30173 PyThreadState* __tstate = wxPyBeginAllowThreads();
30174 (arg1)->SetSingleStyle(arg2,arg3);
30175 wxPyEndAllowThreads(__tstate);
30176 if (PyErr_Occurred()) SWIG_fail;
30177 }
30178 resultobj = SWIG_Py_Void();
30179 return resultobj;
30180fail:
30181 return NULL;
30182}
30183
30184
30185SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30186 PyObject *resultobj = 0;
30187 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30188 long arg2 ;
30189 int arg3 = (int) wxLIST_NEXT_ALL ;
30190 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30191 long result;
30192 void *argp1 = 0 ;
30193 int res1 = 0 ;
30194 long val2 ;
30195 int ecode2 = 0 ;
30196 int val3 ;
30197 int ecode3 = 0 ;
30198 int val4 ;
30199 int ecode4 = 0 ;
30200 PyObject * obj0 = 0 ;
30201 PyObject * obj1 = 0 ;
30202 PyObject * obj2 = 0 ;
30203 PyObject * obj3 = 0 ;
30204 char * kwnames[] = {
30205 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30206 };
30207
30208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30210 if (!SWIG_IsOK(res1)) {
30211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30212 }
30213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30214 ecode2 = SWIG_AsVal_long(obj1, &val2);
30215 if (!SWIG_IsOK(ecode2)) {
30216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30217 }
30218 arg2 = static_cast< long >(val2);
30219 if (obj2) {
30220 ecode3 = SWIG_AsVal_int(obj2, &val3);
30221 if (!SWIG_IsOK(ecode3)) {
30222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30223 }
30224 arg3 = static_cast< int >(val3);
30225 }
30226 if (obj3) {
30227 ecode4 = SWIG_AsVal_int(obj3, &val4);
30228 if (!SWIG_IsOK(ecode4)) {
30229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30230 }
30231 arg4 = static_cast< int >(val4);
30232 }
30233 {
30234 PyThreadState* __tstate = wxPyBeginAllowThreads();
30235 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30236 wxPyEndAllowThreads(__tstate);
30237 if (PyErr_Occurred()) SWIG_fail;
30238 }
30239 resultobj = SWIG_From_long(static_cast< long >(result));
30240 return resultobj;
30241fail:
30242 return NULL;
30243}
30244
30245
30246SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30247 PyObject *resultobj = 0;
30248 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30249 int arg2 ;
30250 wxImageList *result = 0 ;
30251 void *argp1 = 0 ;
30252 int res1 = 0 ;
30253 int val2 ;
30254 int ecode2 = 0 ;
30255 PyObject * obj0 = 0 ;
30256 PyObject * obj1 = 0 ;
30257 char * kwnames[] = {
30258 (char *) "self",(char *) "which", NULL
30259 };
30260
30261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30263 if (!SWIG_IsOK(res1)) {
30264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30265 }
30266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30267 ecode2 = SWIG_AsVal_int(obj1, &val2);
30268 if (!SWIG_IsOK(ecode2)) {
30269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30270 }
30271 arg2 = static_cast< int >(val2);
30272 {
30273 PyThreadState* __tstate = wxPyBeginAllowThreads();
30274 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30275 wxPyEndAllowThreads(__tstate);
30276 if (PyErr_Occurred()) SWIG_fail;
30277 }
30278 {
30279 resultobj = wxPyMake_wxObject(result, (bool)0);
30280 }
30281 return resultobj;
30282fail:
30283 return NULL;
30284}
30285
30286
30287SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30288 PyObject *resultobj = 0;
30289 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30290 wxImageList *arg2 = (wxImageList *) 0 ;
30291 int arg3 ;
30292 void *argp1 = 0 ;
30293 int res1 = 0 ;
30294 void *argp2 = 0 ;
30295 int res2 = 0 ;
30296 int val3 ;
30297 int ecode3 = 0 ;
30298 PyObject * obj0 = 0 ;
30299 PyObject * obj1 = 0 ;
30300 PyObject * obj2 = 0 ;
30301 char * kwnames[] = {
30302 (char *) "self",(char *) "imageList",(char *) "which", NULL
30303 };
30304
30305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30307 if (!SWIG_IsOK(res1)) {
30308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30309 }
30310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30312 if (!SWIG_IsOK(res2)) {
30313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30314 }
30315 arg2 = reinterpret_cast< wxImageList * >(argp2);
30316 ecode3 = SWIG_AsVal_int(obj2, &val3);
30317 if (!SWIG_IsOK(ecode3)) {
30318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30319 }
30320 arg3 = static_cast< int >(val3);
30321 {
30322 PyThreadState* __tstate = wxPyBeginAllowThreads();
30323 (arg1)->SetImageList(arg2,arg3);
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 resultobj = SWIG_Py_Void();
30328 return resultobj;
30329fail:
30330 return NULL;
30331}
30332
30333
30334SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30335 PyObject *resultobj = 0;
30336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30337 wxImageList *arg2 = (wxImageList *) 0 ;
30338 int arg3 ;
30339 void *argp1 = 0 ;
30340 int res1 = 0 ;
30341 int res2 = 0 ;
30342 int val3 ;
30343 int ecode3 = 0 ;
30344 PyObject * obj0 = 0 ;
30345 PyObject * obj1 = 0 ;
30346 PyObject * obj2 = 0 ;
30347 char * kwnames[] = {
30348 (char *) "self",(char *) "imageList",(char *) "which", NULL
30349 };
30350
30351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30353 if (!SWIG_IsOK(res1)) {
30354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30355 }
30356 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30357 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30358 if (!SWIG_IsOK(res2)) {
30359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30360 }
30361 ecode3 = SWIG_AsVal_int(obj2, &val3);
30362 if (!SWIG_IsOK(ecode3)) {
30363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30364 }
30365 arg3 = static_cast< int >(val3);
30366 {
30367 PyThreadState* __tstate = wxPyBeginAllowThreads();
30368 (arg1)->AssignImageList(arg2,arg3);
30369 wxPyEndAllowThreads(__tstate);
30370 if (PyErr_Occurred()) SWIG_fail;
30371 }
30372 resultobj = SWIG_Py_Void();
30373 return resultobj;
30374fail:
30375 return NULL;
d14a1e28
RD
30376}
30377
30378
0085ce49
RD
30379SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30380 PyObject *resultobj = 0;
30381 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30382 bool result;
30383 void *argp1 = 0 ;
30384 int res1 = 0 ;
30385 PyObject *swig_obj[1] ;
30386
30387 if (!args) SWIG_fail;
30388 swig_obj[0] = args;
30389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30390 if (!SWIG_IsOK(res1)) {
30391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30392 }
30393 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30394 {
30395 PyThreadState* __tstate = wxPyBeginAllowThreads();
30396 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30397 wxPyEndAllowThreads(__tstate);
30398 if (PyErr_Occurred()) SWIG_fail;
30399 }
30400 {
30401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30402 }
30403 return resultobj;
30404fail:
30405 return NULL;
d14a1e28
RD
30406}
30407
30408
0085ce49
RD
30409SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30410 PyObject *resultobj = 0;
30411 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30412 bool result;
30413 void *argp1 = 0 ;
30414 int res1 = 0 ;
30415 PyObject *swig_obj[1] ;
30416
30417 if (!args) SWIG_fail;
30418 swig_obj[0] = args;
30419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30420 if (!SWIG_IsOK(res1)) {
30421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30422 }
30423 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30424 {
30425 PyThreadState* __tstate = wxPyBeginAllowThreads();
30426 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30427 wxPyEndAllowThreads(__tstate);
30428 if (PyErr_Occurred()) SWIG_fail;
30429 }
30430 {
30431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30432 }
30433 return resultobj;
30434fail:
30435 return NULL;
30436}
30437
30438
30439SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30440 PyObject *resultobj = 0;
30441 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30442 long arg2 ;
30443 void *argp1 = 0 ;
30444 int res1 = 0 ;
30445 long val2 ;
30446 int ecode2 = 0 ;
30447 PyObject * obj0 = 0 ;
30448 PyObject * obj1 = 0 ;
30449 char * kwnames[] = {
30450 (char *) "self",(char *) "item", NULL
30451 };
30452
30453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30455 if (!SWIG_IsOK(res1)) {
30456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30457 }
30458 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30459 ecode2 = SWIG_AsVal_long(obj1, &val2);
30460 if (!SWIG_IsOK(ecode2)) {
30461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30462 }
30463 arg2 = static_cast< long >(val2);
30464 {
30465 PyThreadState* __tstate = wxPyBeginAllowThreads();
30466 (arg1)->RefreshItem(arg2);
30467 wxPyEndAllowThreads(__tstate);
30468 if (PyErr_Occurred()) SWIG_fail;
30469 }
30470 resultobj = SWIG_Py_Void();
30471 return resultobj;
30472fail:
30473 return NULL;
30474}
30475
30476
30477SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30478 PyObject *resultobj = 0;
30479 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30480 long arg2 ;
30481 long arg3 ;
30482 void *argp1 = 0 ;
30483 int res1 = 0 ;
30484 long val2 ;
30485 int ecode2 = 0 ;
30486 long val3 ;
30487 int ecode3 = 0 ;
30488 PyObject * obj0 = 0 ;
30489 PyObject * obj1 = 0 ;
30490 PyObject * obj2 = 0 ;
30491 char * kwnames[] = {
30492 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30493 };
30494
30495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30497 if (!SWIG_IsOK(res1)) {
30498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30499 }
30500 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30501 ecode2 = SWIG_AsVal_long(obj1, &val2);
30502 if (!SWIG_IsOK(ecode2)) {
30503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30504 }
30505 arg2 = static_cast< long >(val2);
30506 ecode3 = SWIG_AsVal_long(obj2, &val3);
30507 if (!SWIG_IsOK(ecode3)) {
30508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30509 }
30510 arg3 = static_cast< long >(val3);
30511 {
30512 PyThreadState* __tstate = wxPyBeginAllowThreads();
30513 (arg1)->RefreshItems(arg2,arg3);
30514 wxPyEndAllowThreads(__tstate);
30515 if (PyErr_Occurred()) SWIG_fail;
30516 }
30517 resultobj = SWIG_Py_Void();
30518 return resultobj;
30519fail:
30520 return NULL;
30521}
30522
30523
30524SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30525 PyObject *resultobj = 0;
30526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30527 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30528 bool result;
30529 void *argp1 = 0 ;
30530 int res1 = 0 ;
30531 int val2 ;
30532 int ecode2 = 0 ;
30533 PyObject * obj0 = 0 ;
30534 PyObject * obj1 = 0 ;
30535 char * kwnames[] = {
30536 (char *) "self",(char *) "flag", NULL
30537 };
30538
30539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30541 if (!SWIG_IsOK(res1)) {
30542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30543 }
30544 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30545 if (obj1) {
30546 ecode2 = SWIG_AsVal_int(obj1, &val2);
30547 if (!SWIG_IsOK(ecode2)) {
30548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30549 }
30550 arg2 = static_cast< int >(val2);
30551 }
30552 {
30553 PyThreadState* __tstate = wxPyBeginAllowThreads();
30554 result = (bool)(arg1)->Arrange(arg2);
30555 wxPyEndAllowThreads(__tstate);
30556 if (PyErr_Occurred()) SWIG_fail;
30557 }
30558 {
30559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30560 }
30561 return resultobj;
30562fail:
30563 return NULL;
30564}
30565
30566
30567SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30568 PyObject *resultobj = 0;
30569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30570 long arg2 ;
30571 bool result;
30572 void *argp1 = 0 ;
30573 int res1 = 0 ;
30574 long val2 ;
30575 int ecode2 = 0 ;
30576 PyObject * obj0 = 0 ;
30577 PyObject * obj1 = 0 ;
30578 char * kwnames[] = {
30579 (char *) "self",(char *) "item", NULL
30580 };
30581
30582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30584 if (!SWIG_IsOK(res1)) {
30585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30586 }
30587 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30588 ecode2 = SWIG_AsVal_long(obj1, &val2);
30589 if (!SWIG_IsOK(ecode2)) {
30590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30591 }
30592 arg2 = static_cast< long >(val2);
30593 {
30594 PyThreadState* __tstate = wxPyBeginAllowThreads();
30595 result = (bool)(arg1)->DeleteItem(arg2);
30596 wxPyEndAllowThreads(__tstate);
30597 if (PyErr_Occurred()) SWIG_fail;
30598 }
30599 {
30600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30601 }
30602 return resultobj;
30603fail:
30604 return NULL;
7e08d4ef
RD
30605}
30606
30607
0085ce49
RD
30608SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30609 PyObject *resultobj = 0;
30610 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30611 bool result;
30612 void *argp1 = 0 ;
30613 int res1 = 0 ;
30614 PyObject *swig_obj[1] ;
30615
30616 if (!args) SWIG_fail;
30617 swig_obj[0] = args;
30618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30619 if (!SWIG_IsOK(res1)) {
30620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30621 }
30622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30623 {
30624 PyThreadState* __tstate = wxPyBeginAllowThreads();
30625 result = (bool)(arg1)->DeleteAllItems();
30626 wxPyEndAllowThreads(__tstate);
30627 if (PyErr_Occurred()) SWIG_fail;
30628 }
30629 {
30630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30631 }
30632 return resultobj;
30633fail:
30634 return NULL;
30635}
30636
30637
30638SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30639 PyObject *resultobj = 0;
30640 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30641 int arg2 ;
30642 bool result;
30643 void *argp1 = 0 ;
30644 int res1 = 0 ;
30645 int val2 ;
30646 int ecode2 = 0 ;
30647 PyObject * obj0 = 0 ;
30648 PyObject * obj1 = 0 ;
30649 char * kwnames[] = {
30650 (char *) "self",(char *) "col", NULL
30651 };
30652
30653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30655 if (!SWIG_IsOK(res1)) {
30656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30657 }
30658 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30659 ecode2 = SWIG_AsVal_int(obj1, &val2);
30660 if (!SWIG_IsOK(ecode2)) {
30661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30662 }
30663 arg2 = static_cast< int >(val2);
30664 {
30665 PyThreadState* __tstate = wxPyBeginAllowThreads();
30666 result = (bool)(arg1)->DeleteColumn(arg2);
30667 wxPyEndAllowThreads(__tstate);
30668 if (PyErr_Occurred()) SWIG_fail;
30669 }
30670 {
30671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30672 }
30673 return resultobj;
30674fail:
30675 return NULL;
7e08d4ef
RD
30676}
30677
30678
0085ce49
RD
30679SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30680 PyObject *resultobj = 0;
30681 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30682 bool result;
30683 void *argp1 = 0 ;
30684 int res1 = 0 ;
30685 PyObject *swig_obj[1] ;
30686
30687 if (!args) SWIG_fail;
30688 swig_obj[0] = args;
30689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30690 if (!SWIG_IsOK(res1)) {
30691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30692 }
30693 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30694 {
30695 PyThreadState* __tstate = wxPyBeginAllowThreads();
30696 result = (bool)(arg1)->DeleteAllColumns();
30697 wxPyEndAllowThreads(__tstate);
30698 if (PyErr_Occurred()) SWIG_fail;
30699 }
30700 {
30701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30702 }
30703 return resultobj;
30704fail:
30705 return NULL;
7e08d4ef
RD
30706}
30707
30708
0085ce49
RD
30709SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30710 PyObject *resultobj = 0;
30711 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30712 void *argp1 = 0 ;
30713 int res1 = 0 ;
30714 PyObject *swig_obj[1] ;
30715
30716 if (!args) SWIG_fail;
30717 swig_obj[0] = args;
30718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30719 if (!SWIG_IsOK(res1)) {
30720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30721 }
30722 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30723 {
30724 PyThreadState* __tstate = wxPyBeginAllowThreads();
30725 (arg1)->ClearAll();
30726 wxPyEndAllowThreads(__tstate);
30727 if (PyErr_Occurred()) SWIG_fail;
30728 }
30729 resultobj = SWIG_Py_Void();
30730 return resultobj;
30731fail:
30732 return NULL;
30733}
30734
30735
30736SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30737 PyObject *resultobj = 0;
30738 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30739 long arg2 ;
30740 void *argp1 = 0 ;
30741 int res1 = 0 ;
30742 long val2 ;
30743 int ecode2 = 0 ;
30744 PyObject * obj0 = 0 ;
30745 PyObject * obj1 = 0 ;
30746 char * kwnames[] = {
30747 (char *) "self",(char *) "item", NULL
30748 };
30749
30750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30752 if (!SWIG_IsOK(res1)) {
30753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30754 }
30755 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30756 ecode2 = SWIG_AsVal_long(obj1, &val2);
30757 if (!SWIG_IsOK(ecode2)) {
30758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30759 }
30760 arg2 = static_cast< long >(val2);
30761 {
30762 PyThreadState* __tstate = wxPyBeginAllowThreads();
30763 (arg1)->EditLabel(arg2);
30764 wxPyEndAllowThreads(__tstate);
30765 if (PyErr_Occurred()) SWIG_fail;
30766 }
30767 resultobj = SWIG_Py_Void();
30768 return resultobj;
30769fail:
30770 return NULL;
30771}
30772
30773
30774SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30775 PyObject *resultobj = 0;
30776 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30777 long arg2 ;
30778 bool result;
30779 void *argp1 = 0 ;
30780 int res1 = 0 ;
30781 long val2 ;
30782 int ecode2 = 0 ;
30783 PyObject * obj0 = 0 ;
30784 PyObject * obj1 = 0 ;
30785 char * kwnames[] = {
30786 (char *) "self",(char *) "item", NULL
30787 };
30788
30789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30791 if (!SWIG_IsOK(res1)) {
30792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30793 }
30794 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30795 ecode2 = SWIG_AsVal_long(obj1, &val2);
30796 if (!SWIG_IsOK(ecode2)) {
30797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30798 }
30799 arg2 = static_cast< long >(val2);
30800 {
30801 PyThreadState* __tstate = wxPyBeginAllowThreads();
30802 result = (bool)(arg1)->EnsureVisible(arg2);
30803 wxPyEndAllowThreads(__tstate);
30804 if (PyErr_Occurred()) SWIG_fail;
30805 }
30806 {
30807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30808 }
30809 return resultobj;
30810fail:
30811 return NULL;
30812}
30813
30814
30815SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30816 PyObject *resultobj = 0;
30817 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30818 long arg2 ;
30819 wxString *arg3 = 0 ;
30820 bool arg4 = (bool) false ;
30821 long result;
30822 void *argp1 = 0 ;
30823 int res1 = 0 ;
30824 long val2 ;
30825 int ecode2 = 0 ;
30826 bool temp3 = false ;
30827 bool val4 ;
30828 int ecode4 = 0 ;
30829 PyObject * obj0 = 0 ;
30830 PyObject * obj1 = 0 ;
30831 PyObject * obj2 = 0 ;
30832 PyObject * obj3 = 0 ;
30833 char * kwnames[] = {
30834 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30835 };
30836
30837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30839 if (!SWIG_IsOK(res1)) {
30840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30841 }
30842 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30843 ecode2 = SWIG_AsVal_long(obj1, &val2);
30844 if (!SWIG_IsOK(ecode2)) {
30845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30846 }
30847 arg2 = static_cast< long >(val2);
30848 {
30849 arg3 = wxString_in_helper(obj2);
30850 if (arg3 == NULL) SWIG_fail;
30851 temp3 = true;
30852 }
30853 if (obj3) {
30854 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30855 if (!SWIG_IsOK(ecode4)) {
30856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30857 }
30858 arg4 = static_cast< bool >(val4);
30859 }
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30863 wxPyEndAllowThreads(__tstate);
30864 if (PyErr_Occurred()) SWIG_fail;
30865 }
30866 resultobj = SWIG_From_long(static_cast< long >(result));
30867 {
30868 if (temp3)
30869 delete arg3;
30870 }
30871 return resultobj;
30872fail:
30873 {
30874 if (temp3)
30875 delete arg3;
30876 }
30877 return NULL;
30878}
30879
30880
30881SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30882 PyObject *resultobj = 0;
30883 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30884 long arg2 ;
30885 long arg3 ;
30886 long result;
30887 void *argp1 = 0 ;
30888 int res1 = 0 ;
30889 long val2 ;
30890 int ecode2 = 0 ;
30891 long val3 ;
30892 int ecode3 = 0 ;
30893 PyObject * obj0 = 0 ;
30894 PyObject * obj1 = 0 ;
30895 PyObject * obj2 = 0 ;
30896 char * kwnames[] = {
30897 (char *) "self",(char *) "start",(char *) "data", NULL
30898 };
30899
30900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) 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_FindItemData" "', 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_FindItemData" "', expected argument " "2"" of type '" "long""'");
30909 }
30910 arg2 = static_cast< long >(val2);
30911 ecode3 = SWIG_AsVal_long(obj2, &val3);
30912 if (!SWIG_IsOK(ecode3)) {
30913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30914 }
30915 arg3 = static_cast< long >(val3);
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 result = (long)(arg1)->FindItem(arg2,arg3);
30919 wxPyEndAllowThreads(__tstate);
30920 if (PyErr_Occurred()) SWIG_fail;
30921 }
30922 resultobj = SWIG_From_long(static_cast< long >(result));
30923 return resultobj;
30924fail:
30925 return NULL;
30926}
30927
30928
30929SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30930 PyObject *resultobj = 0;
30931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30932 long arg2 ;
30933 wxPoint *arg3 = 0 ;
30934 int arg4 ;
30935 long result;
30936 void *argp1 = 0 ;
30937 int res1 = 0 ;
30938 long val2 ;
30939 int ecode2 = 0 ;
30940 wxPoint temp3 ;
30941 int val4 ;
30942 int ecode4 = 0 ;
30943 PyObject * obj0 = 0 ;
30944 PyObject * obj1 = 0 ;
30945 PyObject * obj2 = 0 ;
30946 PyObject * obj3 = 0 ;
30947 char * kwnames[] = {
30948 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30949 };
30950
30951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30955 }
30956 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30957 ecode2 = SWIG_AsVal_long(obj1, &val2);
30958 if (!SWIG_IsOK(ecode2)) {
30959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30960 }
30961 arg2 = static_cast< long >(val2);
30962 {
30963 arg3 = &temp3;
30964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30965 }
30966 ecode4 = SWIG_AsVal_int(obj3, &val4);
30967 if (!SWIG_IsOK(ecode4)) {
30968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30969 }
30970 arg4 = static_cast< int >(val4);
30971 {
30972 PyThreadState* __tstate = wxPyBeginAllowThreads();
30973 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30974 wxPyEndAllowThreads(__tstate);
30975 if (PyErr_Occurred()) SWIG_fail;
30976 }
30977 resultobj = SWIG_From_long(static_cast< long >(result));
30978 return resultobj;
30979fail:
30980 return NULL;
30981}
30982
30983
30984SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30985 PyObject *resultobj = 0;
30986 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30987 wxPoint *arg2 = 0 ;
30988 int *arg3 = 0 ;
30989 long result;
30990 void *argp1 = 0 ;
30991 int res1 = 0 ;
30992 wxPoint temp2 ;
30993 int temp3 ;
30994 int res3 = SWIG_TMPOBJ ;
30995 PyObject * obj0 = 0 ;
30996 PyObject * obj1 = 0 ;
30997 char * kwnames[] = {
30998 (char *) "self",(char *) "point", NULL
30999 };
31000
31001 arg3 = &temp3;
31002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",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_HitTest" "', 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);
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 return resultobj;
31026fail:
31027 return NULL;
31028}
31029
31030
704eda0c
RD
31031SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31032 PyObject *resultobj = 0;
31033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31034 wxPoint *arg2 = 0 ;
31035 int *arg3 = 0 ;
31036 long *arg4 = (long *) 0 ;
31037 long result;
31038 void *argp1 = 0 ;
31039 int res1 = 0 ;
31040 wxPoint temp2 ;
31041 int temp3 ;
31042 int res3 = SWIG_TMPOBJ ;
31043 long temp4 ;
31044 int res4 = SWIG_TMPOBJ ;
31045 PyObject * obj0 = 0 ;
31046 PyObject * obj1 = 0 ;
31047 char * kwnames[] = {
31048 (char *) "self",(char *) "point", NULL
31049 };
31050
31051 arg3 = &temp3;
31052 arg4 = &temp4;
31053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31055 if (!SWIG_IsOK(res1)) {
31056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31057 }
31058 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31059 {
31060 arg2 = &temp2;
31061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31062 }
31063 {
31064 PyThreadState* __tstate = wxPyBeginAllowThreads();
31065 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31066 wxPyEndAllowThreads(__tstate);
31067 if (PyErr_Occurred()) SWIG_fail;
31068 }
31069 resultobj = SWIG_From_long(static_cast< long >(result));
31070 if (SWIG_IsTmpObj(res3)) {
31071 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31072 } else {
31073 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31075 }
31076 if (SWIG_IsTmpObj(res4)) {
31077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31078 } else {
31079 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31081 }
31082 return resultobj;
31083fail:
31084 return NULL;
31085}
31086
31087
0085ce49
RD
31088SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31089 PyObject *resultobj = 0;
31090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31091 wxListItem *arg2 = 0 ;
31092 long result;
31093 void *argp1 = 0 ;
31094 int res1 = 0 ;
31095 void *argp2 = 0 ;
31096 int res2 = 0 ;
31097 PyObject * obj0 = 0 ;
31098 PyObject * obj1 = 0 ;
31099 char * kwnames[] = {
31100 (char *) "self",(char *) "info", NULL
31101 };
31102
31103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31105 if (!SWIG_IsOK(res1)) {
31106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31107 }
31108 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31110 if (!SWIG_IsOK(res2)) {
31111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31112 }
31113 if (!argp2) {
31114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31115 }
31116 arg2 = reinterpret_cast< wxListItem * >(argp2);
31117 {
31118 PyThreadState* __tstate = wxPyBeginAllowThreads();
31119 result = (long)(arg1)->InsertItem(*arg2);
31120 wxPyEndAllowThreads(__tstate);
31121 if (PyErr_Occurred()) SWIG_fail;
31122 }
31123 resultobj = SWIG_From_long(static_cast< long >(result));
31124 return resultobj;
31125fail:
31126 return NULL;
31127}
31128
31129
31130SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31131 PyObject *resultobj = 0;
31132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31133 long arg2 ;
31134 wxString *arg3 = 0 ;
31135 int arg4 = (int) -1 ;
31136 long result;
31137 void *argp1 = 0 ;
31138 int res1 = 0 ;
31139 long val2 ;
31140 int ecode2 = 0 ;
31141 bool temp3 = false ;
31142 int val4 ;
31143 int ecode4 = 0 ;
31144 PyObject * obj0 = 0 ;
31145 PyObject * obj1 = 0 ;
31146 PyObject * obj2 = 0 ;
31147 PyObject * obj3 = 0 ;
31148 char * kwnames[] = {
31149 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31150 };
31151
31152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31154 if (!SWIG_IsOK(res1)) {
31155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31156 }
31157 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31158 ecode2 = SWIG_AsVal_long(obj1, &val2);
31159 if (!SWIG_IsOK(ecode2)) {
31160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31161 }
31162 arg2 = static_cast< long >(val2);
31163 {
31164 arg3 = wxString_in_helper(obj2);
31165 if (arg3 == NULL) SWIG_fail;
31166 temp3 = true;
31167 }
31168 if (obj3) {
31169 ecode4 = SWIG_AsVal_int(obj3, &val4);
31170 if (!SWIG_IsOK(ecode4)) {
31171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31172 }
31173 arg4 = static_cast< int >(val4);
31174 }
31175 {
31176 PyThreadState* __tstate = wxPyBeginAllowThreads();
31177 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31178 wxPyEndAllowThreads(__tstate);
31179 if (PyErr_Occurred()) SWIG_fail;
31180 }
31181 resultobj = SWIG_From_long(static_cast< long >(result));
31182 {
31183 if (temp3)
31184 delete arg3;
31185 }
31186 return resultobj;
31187fail:
31188 {
31189 if (temp3)
31190 delete arg3;
31191 }
31192 return NULL;
31193}
31194
31195
31196SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31197 PyObject *resultobj = 0;
31198 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31199 long arg2 ;
31200 int arg3 ;
31201 long result;
31202 void *argp1 = 0 ;
31203 int res1 = 0 ;
31204 long val2 ;
31205 int ecode2 = 0 ;
31206 int val3 ;
31207 int ecode3 = 0 ;
31208 PyObject * obj0 = 0 ;
31209 PyObject * obj1 = 0 ;
31210 PyObject * obj2 = 0 ;
31211 char * kwnames[] = {
31212 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31213 };
31214
31215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) 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_InsertImageItem" "', 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_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31224 }
31225 arg2 = static_cast< long >(val2);
31226 ecode3 = SWIG_AsVal_int(obj2, &val3);
31227 if (!SWIG_IsOK(ecode3)) {
31228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31229 }
31230 arg3 = static_cast< int >(val3);
31231 {
31232 PyThreadState* __tstate = wxPyBeginAllowThreads();
31233 result = (long)(arg1)->InsertItem(arg2,arg3);
31234 wxPyEndAllowThreads(__tstate);
31235 if (PyErr_Occurred()) SWIG_fail;
31236 }
31237 resultobj = SWIG_From_long(static_cast< long >(result));
31238 return resultobj;
31239fail:
31240 return NULL;
31241}
31242
31243
31244SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31245 PyObject *resultobj = 0;
31246 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31247 long arg2 ;
31248 wxString *arg3 = 0 ;
31249 int arg4 ;
31250 long result;
31251 void *argp1 = 0 ;
31252 int res1 = 0 ;
31253 long val2 ;
31254 int ecode2 = 0 ;
31255 bool temp3 = false ;
31256 int val4 ;
31257 int ecode4 = 0 ;
31258 PyObject * obj0 = 0 ;
31259 PyObject * obj1 = 0 ;
31260 PyObject * obj2 = 0 ;
31261 PyObject * obj3 = 0 ;
31262 char * kwnames[] = {
31263 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31264 };
31265
31266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31268 if (!SWIG_IsOK(res1)) {
31269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31270 }
31271 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31272 ecode2 = SWIG_AsVal_long(obj1, &val2);
31273 if (!SWIG_IsOK(ecode2)) {
31274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31275 }
31276 arg2 = static_cast< long >(val2);
31277 {
31278 arg3 = wxString_in_helper(obj2);
31279 if (arg3 == NULL) SWIG_fail;
31280 temp3 = true;
31281 }
31282 ecode4 = SWIG_AsVal_int(obj3, &val4);
31283 if (!SWIG_IsOK(ecode4)) {
31284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31285 }
31286 arg4 = static_cast< int >(val4);
31287 {
31288 PyThreadState* __tstate = wxPyBeginAllowThreads();
31289 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31290 wxPyEndAllowThreads(__tstate);
31291 if (PyErr_Occurred()) SWIG_fail;
31292 }
31293 resultobj = SWIG_From_long(static_cast< long >(result));
31294 {
31295 if (temp3)
31296 delete arg3;
31297 }
31298 return resultobj;
31299fail:
31300 {
31301 if (temp3)
31302 delete arg3;
31303 }
31304 return NULL;
31305}
31306
31307
31308SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj = 0;
31310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31311 long arg2 ;
31312 wxListItem *arg3 = 0 ;
31313 long result;
31314 void *argp1 = 0 ;
31315 int res1 = 0 ;
31316 long val2 ;
31317 int ecode2 = 0 ;
31318 void *argp3 = 0 ;
31319 int res3 = 0 ;
31320 PyObject * obj0 = 0 ;
31321 PyObject * obj1 = 0 ;
31322 PyObject * obj2 = 0 ;
31323 char * kwnames[] = {
31324 (char *) "self",(char *) "col",(char *) "info", NULL
31325 };
31326
31327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31329 if (!SWIG_IsOK(res1)) {
31330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31331 }
31332 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31333 ecode2 = SWIG_AsVal_long(obj1, &val2);
31334 if (!SWIG_IsOK(ecode2)) {
31335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31336 }
31337 arg2 = static_cast< long >(val2);
31338 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31339 if (!SWIG_IsOK(res3)) {
31340 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31341 }
31342 if (!argp3) {
31343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31344 }
31345 arg3 = reinterpret_cast< wxListItem * >(argp3);
31346 {
31347 PyThreadState* __tstate = wxPyBeginAllowThreads();
31348 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31349 wxPyEndAllowThreads(__tstate);
31350 if (PyErr_Occurred()) SWIG_fail;
31351 }
31352 resultobj = SWIG_From_long(static_cast< long >(result));
31353 return resultobj;
31354fail:
31355 return NULL;
31356}
31357
31358
31359SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31360 PyObject *resultobj = 0;
31361 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31362 long arg2 ;
31363 wxString *arg3 = 0 ;
31364 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31365 int arg5 = (int) -1 ;
31366 long result;
31367 void *argp1 = 0 ;
31368 int res1 = 0 ;
31369 long val2 ;
31370 int ecode2 = 0 ;
31371 bool temp3 = false ;
31372 int val4 ;
31373 int ecode4 = 0 ;
31374 int val5 ;
31375 int ecode5 = 0 ;
31376 PyObject * obj0 = 0 ;
31377 PyObject * obj1 = 0 ;
31378 PyObject * obj2 = 0 ;
31379 PyObject * obj3 = 0 ;
31380 PyObject * obj4 = 0 ;
31381 char * kwnames[] = {
31382 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31383 };
31384
31385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31387 if (!SWIG_IsOK(res1)) {
31388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31389 }
31390 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31391 ecode2 = SWIG_AsVal_long(obj1, &val2);
31392 if (!SWIG_IsOK(ecode2)) {
31393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31394 }
31395 arg2 = static_cast< long >(val2);
31396 {
31397 arg3 = wxString_in_helper(obj2);
31398 if (arg3 == NULL) SWIG_fail;
31399 temp3 = true;
31400 }
31401 if (obj3) {
31402 ecode4 = SWIG_AsVal_int(obj3, &val4);
31403 if (!SWIG_IsOK(ecode4)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31405 }
31406 arg4 = static_cast< int >(val4);
31407 }
31408 if (obj4) {
31409 ecode5 = SWIG_AsVal_int(obj4, &val5);
31410 if (!SWIG_IsOK(ecode5)) {
31411 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31412 }
31413 arg5 = static_cast< int >(val5);
31414 }
31415 {
31416 PyThreadState* __tstate = wxPyBeginAllowThreads();
31417 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31418 wxPyEndAllowThreads(__tstate);
31419 if (PyErr_Occurred()) SWIG_fail;
31420 }
31421 resultobj = SWIG_From_long(static_cast< long >(result));
31422 {
31423 if (temp3)
31424 delete arg3;
31425 }
31426 return resultobj;
31427fail:
31428 {
31429 if (temp3)
31430 delete arg3;
31431 }
31432 return NULL;
31433}
31434
31435
31436SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31437 PyObject *resultobj = 0;
31438 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31439 long arg2 ;
31440 void *argp1 = 0 ;
31441 int res1 = 0 ;
31442 long val2 ;
31443 int ecode2 = 0 ;
31444 PyObject * obj0 = 0 ;
31445 PyObject * obj1 = 0 ;
31446 char * kwnames[] = {
31447 (char *) "self",(char *) "count", NULL
31448 };
31449
31450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31452 if (!SWIG_IsOK(res1)) {
31453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31454 }
31455 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31456 ecode2 = SWIG_AsVal_long(obj1, &val2);
31457 if (!SWIG_IsOK(ecode2)) {
31458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31459 }
31460 arg2 = static_cast< long >(val2);
31461 {
31462 PyThreadState* __tstate = wxPyBeginAllowThreads();
31463 (arg1)->SetItemCount(arg2);
31464 wxPyEndAllowThreads(__tstate);
31465 if (PyErr_Occurred()) SWIG_fail;
31466 }
31467 resultobj = SWIG_Py_Void();
31468 return resultobj;
31469fail:
31470 return NULL;
31471}
31472
31473
31474SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31475 PyObject *resultobj = 0;
31476 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31477 int arg2 ;
31478 int arg3 ;
31479 bool result;
31480 void *argp1 = 0 ;
31481 int res1 = 0 ;
31482 int val2 ;
31483 int ecode2 = 0 ;
31484 int val3 ;
31485 int ecode3 = 0 ;
31486 PyObject * obj0 = 0 ;
31487 PyObject * obj1 = 0 ;
31488 PyObject * obj2 = 0 ;
31489 char * kwnames[] = {
31490 (char *) "self",(char *) "dx",(char *) "dy", NULL
31491 };
31492
31493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31495 if (!SWIG_IsOK(res1)) {
31496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31497 }
31498 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31499 ecode2 = SWIG_AsVal_int(obj1, &val2);
31500 if (!SWIG_IsOK(ecode2)) {
31501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31502 }
31503 arg2 = static_cast< int >(val2);
31504 ecode3 = SWIG_AsVal_int(obj2, &val3);
31505 if (!SWIG_IsOK(ecode3)) {
31506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31507 }
31508 arg3 = static_cast< int >(val3);
31509 {
31510 PyThreadState* __tstate = wxPyBeginAllowThreads();
31511 result = (bool)(arg1)->ScrollList(arg2,arg3);
31512 wxPyEndAllowThreads(__tstate);
31513 if (PyErr_Occurred()) SWIG_fail;
31514 }
31515 {
31516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31517 }
31518 return resultobj;
31519fail:
31520 return NULL;
31521}
31522
31523
31524SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31525 PyObject *resultobj = 0;
31526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31527 long arg2 ;
31528 wxColour *arg3 = 0 ;
31529 void *argp1 = 0 ;
31530 int res1 = 0 ;
31531 long val2 ;
31532 int ecode2 = 0 ;
31533 wxColour temp3 ;
31534 PyObject * obj0 = 0 ;
31535 PyObject * obj1 = 0 ;
31536 PyObject * obj2 = 0 ;
31537 char * kwnames[] = {
31538 (char *) "self",(char *) "item",(char *) "col", NULL
31539 };
31540
31541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31543 if (!SWIG_IsOK(res1)) {
31544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31545 }
31546 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31547 ecode2 = SWIG_AsVal_long(obj1, &val2);
31548 if (!SWIG_IsOK(ecode2)) {
31549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31550 }
31551 arg2 = static_cast< long >(val2);
31552 {
31553 arg3 = &temp3;
31554 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31555 }
31556 {
31557 PyThreadState* __tstate = wxPyBeginAllowThreads();
31558 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31559 wxPyEndAllowThreads(__tstate);
31560 if (PyErr_Occurred()) SWIG_fail;
31561 }
31562 resultobj = SWIG_Py_Void();
31563 return resultobj;
31564fail:
31565 return NULL;
31566}
31567
31568
31569SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31570 PyObject *resultobj = 0;
31571 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31572 long arg2 ;
31573 wxColour result;
31574 void *argp1 = 0 ;
31575 int res1 = 0 ;
31576 long val2 ;
31577 int ecode2 = 0 ;
31578 PyObject * obj0 = 0 ;
31579 PyObject * obj1 = 0 ;
31580 char * kwnames[] = {
31581 (char *) "self",(char *) "item", NULL
31582 };
31583
31584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31586 if (!SWIG_IsOK(res1)) {
31587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31588 }
31589 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31590 ecode2 = SWIG_AsVal_long(obj1, &val2);
31591 if (!SWIG_IsOK(ecode2)) {
31592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31593 }
31594 arg2 = static_cast< long >(val2);
31595 {
31596 PyThreadState* __tstate = wxPyBeginAllowThreads();
31597 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31598 wxPyEndAllowThreads(__tstate);
31599 if (PyErr_Occurred()) SWIG_fail;
31600 }
31601 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31602 return resultobj;
31603fail:
31604 return NULL;
31605}
31606
31607
31608SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31609 PyObject *resultobj = 0;
31610 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31611 long arg2 ;
31612 wxColour *arg3 = 0 ;
31613 void *argp1 = 0 ;
31614 int res1 = 0 ;
31615 long val2 ;
31616 int ecode2 = 0 ;
31617 wxColour temp3 ;
31618 PyObject * obj0 = 0 ;
31619 PyObject * obj1 = 0 ;
31620 PyObject * obj2 = 0 ;
31621 char * kwnames[] = {
31622 (char *) "self",(char *) "item",(char *) "col", NULL
31623 };
31624
31625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31627 if (!SWIG_IsOK(res1)) {
31628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31629 }
31630 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31631 ecode2 = SWIG_AsVal_long(obj1, &val2);
31632 if (!SWIG_IsOK(ecode2)) {
31633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31634 }
31635 arg2 = static_cast< long >(val2);
31636 {
31637 arg3 = &temp3;
31638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31639 }
31640 {
31641 PyThreadState* __tstate = wxPyBeginAllowThreads();
31642 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31643 wxPyEndAllowThreads(__tstate);
31644 if (PyErr_Occurred()) SWIG_fail;
31645 }
31646 resultobj = SWIG_Py_Void();
31647 return resultobj;
31648fail:
31649 return NULL;
31650}
31651
31652
31653SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31654 PyObject *resultobj = 0;
31655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31656 long arg2 ;
31657 wxColour result;
31658 void *argp1 = 0 ;
31659 int res1 = 0 ;
31660 long val2 ;
31661 int ecode2 = 0 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char * kwnames[] = {
31665 (char *) "self",(char *) "item", NULL
31666 };
31667
31668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31670 if (!SWIG_IsOK(res1)) {
31671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31672 }
31673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31674 ecode2 = SWIG_AsVal_long(obj1, &val2);
31675 if (!SWIG_IsOK(ecode2)) {
31676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31677 }
31678 arg2 = static_cast< long >(val2);
31679 {
31680 PyThreadState* __tstate = wxPyBeginAllowThreads();
31681 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31682 wxPyEndAllowThreads(__tstate);
31683 if (PyErr_Occurred()) SWIG_fail;
31684 }
31685 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31686 return resultobj;
31687fail:
31688 return NULL;
31689}
31690
31691
31692SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31693 PyObject *resultobj = 0;
31694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31695 long arg2 ;
31696 wxFont *arg3 = 0 ;
31697 void *argp1 = 0 ;
31698 int res1 = 0 ;
31699 long val2 ;
31700 int ecode2 = 0 ;
31701 void *argp3 = 0 ;
31702 int res3 = 0 ;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 PyObject * obj2 = 0 ;
31706 char * kwnames[] = {
31707 (char *) "self",(char *) "item",(char *) "f", NULL
31708 };
31709
31710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31712 if (!SWIG_IsOK(res1)) {
31713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31714 }
31715 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31716 ecode2 = SWIG_AsVal_long(obj1, &val2);
31717 if (!SWIG_IsOK(ecode2)) {
31718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31719 }
31720 arg2 = static_cast< long >(val2);
31721 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31722 if (!SWIG_IsOK(res3)) {
31723 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31724 }
31725 if (!argp3) {
31726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31727 }
31728 arg3 = reinterpret_cast< wxFont * >(argp3);
31729 {
31730 PyThreadState* __tstate = wxPyBeginAllowThreads();
31731 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31732 wxPyEndAllowThreads(__tstate);
31733 if (PyErr_Occurred()) SWIG_fail;
31734 }
31735 resultobj = SWIG_Py_Void();
31736 return resultobj;
31737fail:
31738 return NULL;
31739}
31740
31741
31742SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31743 PyObject *resultobj = 0;
31744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31745 long arg2 ;
31746 wxFont result;
31747 void *argp1 = 0 ;
31748 int res1 = 0 ;
31749 long val2 ;
31750 int ecode2 = 0 ;
31751 PyObject * obj0 = 0 ;
31752 PyObject * obj1 = 0 ;
31753 char * kwnames[] = {
31754 (char *) "self",(char *) "item", NULL
31755 };
31756
31757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31759 if (!SWIG_IsOK(res1)) {
31760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31761 }
31762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31763 ecode2 = SWIG_AsVal_long(obj1, &val2);
31764 if (!SWIG_IsOK(ecode2)) {
31765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31766 }
31767 arg2 = static_cast< long >(val2);
31768 {
31769 PyThreadState* __tstate = wxPyBeginAllowThreads();
31770 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31771 wxPyEndAllowThreads(__tstate);
31772 if (PyErr_Occurred()) SWIG_fail;
31773 }
31774 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31775 return resultobj;
31776fail:
31777 return NULL;
31778}
31779
31780
31781SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31782 PyObject *resultobj = 0;
31783 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31784 PyObject *arg2 = (PyObject *) 0 ;
31785 bool result;
31786 void *argp1 = 0 ;
31787 int res1 = 0 ;
31788 PyObject * obj0 = 0 ;
31789 PyObject * obj1 = 0 ;
31790 char * kwnames[] = {
31791 (char *) "self",(char *) "func", NULL
31792 };
31793
31794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31796 if (!SWIG_IsOK(res1)) {
31797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31798 }
31799 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31800 arg2 = obj1;
31801 {
31802 PyThreadState* __tstate = wxPyBeginAllowThreads();
31803 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31804 wxPyEndAllowThreads(__tstate);
31805 if (PyErr_Occurred()) SWIG_fail;
31806 }
31807 {
31808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31809 }
31810 return resultobj;
31811fail:
31812 return NULL;
7e08d4ef
RD
31813}
31814
31815
0085ce49
RD
31816SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31817 PyObject *resultobj = 0;
31818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31819 wxWindow *result = 0 ;
31820 void *argp1 = 0 ;
31821 int res1 = 0 ;
31822 PyObject *swig_obj[1] ;
31823
31824 if (!args) SWIG_fail;
31825 swig_obj[0] = args;
31826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31827 if (!SWIG_IsOK(res1)) {
31828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31829 }
31830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31831 {
31832 PyThreadState* __tstate = wxPyBeginAllowThreads();
31833 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31834 wxPyEndAllowThreads(__tstate);
31835 if (PyErr_Occurred()) SWIG_fail;
31836 }
31837 {
31838 resultobj = wxPyMake_wxObject(result, 0);
31839 }
31840 return resultobj;
31841fail:
31842 return NULL;
31843}
31844
31845
31846SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31847 PyObject *resultobj = 0;
31848 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31849 SwigValueWrapper<wxVisualAttributes > result;
31850 int val1 ;
31851 int ecode1 = 0 ;
31852 PyObject * obj0 = 0 ;
31853 char * kwnames[] = {
31854 (char *) "variant", NULL
31855 };
31856
31857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31858 if (obj0) {
31859 ecode1 = SWIG_AsVal_int(obj0, &val1);
31860 if (!SWIG_IsOK(ecode1)) {
31861 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31862 }
31863 arg1 = static_cast< wxWindowVariant >(val1);
31864 }
31865 {
31866 if (!wxPyCheckForApp()) SWIG_fail;
31867 PyThreadState* __tstate = wxPyBeginAllowThreads();
31868 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31869 wxPyEndAllowThreads(__tstate);
31870 if (PyErr_Occurred()) SWIG_fail;
31871 }
31872 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31873 return resultobj;
31874fail:
31875 return NULL;
31876}
31877
31878
31879SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31880 PyObject *obj;
31881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31882 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31883 return SWIG_Py_Void();
31884}
31885
31886SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31887 return SWIG_Python_InitShadowInstance(args);
31888}
31889
31890SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31891 PyObject *resultobj = 0;
31892 wxWindow *arg1 = (wxWindow *) 0 ;
31893 int arg2 = (int) -1 ;
31894 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31895 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31896 wxSize const &arg4_defvalue = wxDefaultSize ;
31897 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31898 long arg5 = (long) wxLC_REPORT ;
31899 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31900 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31901 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31902 wxString *arg7 = (wxString *) &arg7_defvalue ;
31903 wxListView *result = 0 ;
31904 void *argp1 = 0 ;
31905 int res1 = 0 ;
31906 int val2 ;
31907 int ecode2 = 0 ;
31908 wxPoint temp3 ;
31909 wxSize temp4 ;
31910 long val5 ;
31911 int ecode5 = 0 ;
31912 void *argp6 = 0 ;
31913 int res6 = 0 ;
31914 bool temp7 = false ;
31915 PyObject * obj0 = 0 ;
31916 PyObject * obj1 = 0 ;
31917 PyObject * obj2 = 0 ;
31918 PyObject * obj3 = 0 ;
31919 PyObject * obj4 = 0 ;
31920 PyObject * obj5 = 0 ;
31921 PyObject * obj6 = 0 ;
31922 char * kwnames[] = {
31923 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31924 };
31925
31926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31928 if (!SWIG_IsOK(res1)) {
31929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31930 }
31931 arg1 = reinterpret_cast< wxWindow * >(argp1);
31932 if (obj1) {
31933 ecode2 = SWIG_AsVal_int(obj1, &val2);
31934 if (!SWIG_IsOK(ecode2)) {
31935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31936 }
31937 arg2 = static_cast< int >(val2);
31938 }
31939 if (obj2) {
7e08d4ef 31940 {
0085ce49
RD
31941 arg3 = &temp3;
31942 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 31943 }
0085ce49
RD
31944 }
31945 if (obj3) {
7e08d4ef 31946 {
0085ce49
RD
31947 arg4 = &temp4;
31948 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31949 }
0085ce49
RD
31950 }
31951 if (obj4) {
31952 ecode5 = SWIG_AsVal_long(obj4, &val5);
31953 if (!SWIG_IsOK(ecode5)) {
31954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31955 }
31956 arg5 = static_cast< long >(val5);
31957 }
31958 if (obj5) {
31959 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31960 if (!SWIG_IsOK(res6)) {
31961 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31962 }
0085ce49
RD
31963 if (!argp6) {
31964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31965 }
0085ce49
RD
31966 arg6 = reinterpret_cast< wxValidator * >(argp6);
31967 }
31968 if (obj6) {
7e08d4ef 31969 {
0085ce49
RD
31970 arg7 = wxString_in_helper(obj6);
31971 if (arg7 == NULL) SWIG_fail;
31972 temp7 = true;
7e08d4ef 31973 }
0085ce49
RD
31974 }
31975 {
31976 if (!wxPyCheckForApp()) SWIG_fail;
31977 PyThreadState* __tstate = wxPyBeginAllowThreads();
31978 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31979 wxPyEndAllowThreads(__tstate);
31980 if (PyErr_Occurred()) SWIG_fail;
31981 }
31982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31983 {
31984 if (temp7)
31985 delete arg7;
31986 }
31987 return resultobj;
31988fail:
31989 {
31990 if (temp7)
31991 delete arg7;
31992 }
31993 return NULL;
7e08d4ef
RD
31994}
31995
31996
0085ce49
RD
31997SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31998 PyObject *resultobj = 0;
31999 wxListView *result = 0 ;
32000
32001 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32002 {
32003 if (!wxPyCheckForApp()) SWIG_fail;
32004 PyThreadState* __tstate = wxPyBeginAllowThreads();
32005 result = (wxListView *)new wxListView();
32006 wxPyEndAllowThreads(__tstate);
32007 if (PyErr_Occurred()) SWIG_fail;
32008 }
32009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32010 return resultobj;
32011fail:
32012 return NULL;
32013}
32014
32015
32016SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32017 PyObject *resultobj = 0;
32018 wxListView *arg1 = (wxListView *) 0 ;
32019 wxWindow *arg2 = (wxWindow *) 0 ;
32020 int arg3 = (int) -1 ;
32021 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32022 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32023 wxSize const &arg5_defvalue = wxDefaultSize ;
32024 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32025 long arg6 = (long) wxLC_REPORT ;
32026 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32027 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32028 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32029 wxString *arg8 = (wxString *) &arg8_defvalue ;
32030 bool result;
32031 void *argp1 = 0 ;
32032 int res1 = 0 ;
32033 void *argp2 = 0 ;
32034 int res2 = 0 ;
32035 int val3 ;
32036 int ecode3 = 0 ;
32037 wxPoint temp4 ;
32038 wxSize temp5 ;
32039 long val6 ;
32040 int ecode6 = 0 ;
32041 void *argp7 = 0 ;
32042 int res7 = 0 ;
32043 bool temp8 = false ;
32044 PyObject * obj0 = 0 ;
32045 PyObject * obj1 = 0 ;
32046 PyObject * obj2 = 0 ;
32047 PyObject * obj3 = 0 ;
32048 PyObject * obj4 = 0 ;
32049 PyObject * obj5 = 0 ;
32050 PyObject * obj6 = 0 ;
32051 PyObject * obj7 = 0 ;
32052 char * kwnames[] = {
32053 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32054 };
32055
32056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32058 if (!SWIG_IsOK(res1)) {
32059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32060 }
32061 arg1 = reinterpret_cast< wxListView * >(argp1);
32062 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32063 if (!SWIG_IsOK(res2)) {
32064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32065 }
32066 arg2 = reinterpret_cast< wxWindow * >(argp2);
32067 if (obj2) {
32068 ecode3 = SWIG_AsVal_int(obj2, &val3);
32069 if (!SWIG_IsOK(ecode3)) {
32070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32071 }
32072 arg3 = static_cast< int >(val3);
32073 }
32074 if (obj3) {
7e08d4ef 32075 {
0085ce49
RD
32076 arg4 = &temp4;
32077 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32078 }
0085ce49
RD
32079 }
32080 if (obj4) {
7e08d4ef 32081 {
0085ce49
RD
32082 arg5 = &temp5;
32083 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 32084 }
0085ce49
RD
32085 }
32086 if (obj5) {
32087 ecode6 = SWIG_AsVal_long(obj5, &val6);
32088 if (!SWIG_IsOK(ecode6)) {
32089 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32090 }
32091 arg6 = static_cast< long >(val6);
32092 }
32093 if (obj6) {
32094 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32095 if (!SWIG_IsOK(res7)) {
32096 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32097 }
0085ce49
RD
32098 if (!argp7) {
32099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32100 }
0085ce49
RD
32101 arg7 = reinterpret_cast< wxValidator * >(argp7);
32102 }
32103 if (obj7) {
7e08d4ef 32104 {
0085ce49
RD
32105 arg8 = wxString_in_helper(obj7);
32106 if (arg8 == NULL) SWIG_fail;
32107 temp8 = true;
7e08d4ef 32108 }
0085ce49
RD
32109 }
32110 {
32111 PyThreadState* __tstate = wxPyBeginAllowThreads();
32112 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32113 wxPyEndAllowThreads(__tstate);
32114 if (PyErr_Occurred()) SWIG_fail;
32115 }
32116 {
32117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32118 }
32119 {
32120 if (temp8)
32121 delete arg8;
32122 }
32123 return resultobj;
32124fail:
32125 {
32126 if (temp8)
32127 delete arg8;
32128 }
32129 return NULL;
32130}
32131
32132
32133SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32134 PyObject *resultobj = 0;
32135 wxListView *arg1 = (wxListView *) 0 ;
32136 long arg2 ;
32137 bool arg3 = (bool) true ;
32138 void *argp1 = 0 ;
32139 int res1 = 0 ;
32140 long val2 ;
32141 int ecode2 = 0 ;
32142 bool val3 ;
32143 int ecode3 = 0 ;
32144 PyObject * obj0 = 0 ;
32145 PyObject * obj1 = 0 ;
32146 PyObject * obj2 = 0 ;
32147 char * kwnames[] = {
32148 (char *) "self",(char *) "n",(char *) "on", NULL
32149 };
32150
32151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32153 if (!SWIG_IsOK(res1)) {
32154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32155 }
32156 arg1 = reinterpret_cast< wxListView * >(argp1);
32157 ecode2 = SWIG_AsVal_long(obj1, &val2);
32158 if (!SWIG_IsOK(ecode2)) {
32159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32160 }
32161 arg2 = static_cast< long >(val2);
32162 if (obj2) {
32163 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32164 if (!SWIG_IsOK(ecode3)) {
32165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32166 }
32167 arg3 = static_cast< bool >(val3);
32168 }
32169 {
32170 PyThreadState* __tstate = wxPyBeginAllowThreads();
32171 (arg1)->Select(arg2,arg3);
32172 wxPyEndAllowThreads(__tstate);
32173 if (PyErr_Occurred()) SWIG_fail;
32174 }
32175 resultobj = SWIG_Py_Void();
32176 return resultobj;
32177fail:
32178 return NULL;
32179}
32180
32181
32182SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32183 PyObject *resultobj = 0;
32184 wxListView *arg1 = (wxListView *) 0 ;
32185 long arg2 ;
32186 void *argp1 = 0 ;
32187 int res1 = 0 ;
32188 long val2 ;
32189 int ecode2 = 0 ;
32190 PyObject * obj0 = 0 ;
32191 PyObject * obj1 = 0 ;
32192 char * kwnames[] = {
32193 (char *) "self",(char *) "index", NULL
32194 };
32195
32196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32198 if (!SWIG_IsOK(res1)) {
32199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32200 }
32201 arg1 = reinterpret_cast< wxListView * >(argp1);
32202 ecode2 = SWIG_AsVal_long(obj1, &val2);
32203 if (!SWIG_IsOK(ecode2)) {
32204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32205 }
32206 arg2 = static_cast< long >(val2);
32207 {
32208 PyThreadState* __tstate = wxPyBeginAllowThreads();
32209 (arg1)->Focus(arg2);
32210 wxPyEndAllowThreads(__tstate);
32211 if (PyErr_Occurred()) SWIG_fail;
32212 }
32213 resultobj = SWIG_Py_Void();
32214 return resultobj;
32215fail:
32216 return NULL;
7e08d4ef
RD
32217}
32218
32219
0085ce49
RD
32220SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32221 PyObject *resultobj = 0;
32222 wxListView *arg1 = (wxListView *) 0 ;
32223 long result;
32224 void *argp1 = 0 ;
32225 int res1 = 0 ;
32226 PyObject *swig_obj[1] ;
32227
32228 if (!args) SWIG_fail;
32229 swig_obj[0] = args;
32230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32231 if (!SWIG_IsOK(res1)) {
32232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32233 }
32234 arg1 = reinterpret_cast< wxListView * >(argp1);
32235 {
32236 PyThreadState* __tstate = wxPyBeginAllowThreads();
32237 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32238 wxPyEndAllowThreads(__tstate);
32239 if (PyErr_Occurred()) SWIG_fail;
32240 }
32241 resultobj = SWIG_From_long(static_cast< long >(result));
32242 return resultobj;
32243fail:
32244 return NULL;
32245}
32246
32247
32248SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32249 PyObject *resultobj = 0;
32250 wxListView *arg1 = (wxListView *) 0 ;
32251 long arg2 ;
32252 long result;
32253 void *argp1 = 0 ;
32254 int res1 = 0 ;
32255 long val2 ;
32256 int ecode2 = 0 ;
32257 PyObject * obj0 = 0 ;
32258 PyObject * obj1 = 0 ;
32259 char * kwnames[] = {
32260 (char *) "self",(char *) "item", NULL
32261 };
32262
32263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32265 if (!SWIG_IsOK(res1)) {
32266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32267 }
32268 arg1 = reinterpret_cast< wxListView * >(argp1);
32269 ecode2 = SWIG_AsVal_long(obj1, &val2);
32270 if (!SWIG_IsOK(ecode2)) {
32271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32272 }
32273 arg2 = static_cast< long >(val2);
32274 {
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = SWIG_From_long(static_cast< long >(result));
32281 return resultobj;
32282fail:
32283 return NULL;
7e08d4ef
RD
32284}
32285
32286
0085ce49
RD
32287SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32288 PyObject *resultobj = 0;
32289 wxListView *arg1 = (wxListView *) 0 ;
32290 long result;
32291 void *argp1 = 0 ;
32292 int res1 = 0 ;
32293 PyObject *swig_obj[1] ;
32294
32295 if (!args) SWIG_fail;
32296 swig_obj[0] = args;
32297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32298 if (!SWIG_IsOK(res1)) {
32299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32300 }
32301 arg1 = reinterpret_cast< wxListView * >(argp1);
32302 {
32303 PyThreadState* __tstate = wxPyBeginAllowThreads();
32304 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 resultobj = SWIG_From_long(static_cast< long >(result));
32309 return resultobj;
32310fail:
32311 return NULL;
32312}
32313
32314
32315SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32316 PyObject *resultobj = 0;
32317 wxListView *arg1 = (wxListView *) 0 ;
32318 long arg2 ;
32319 bool result;
32320 void *argp1 = 0 ;
32321 int res1 = 0 ;
32322 long val2 ;
32323 int ecode2 = 0 ;
32324 PyObject * obj0 = 0 ;
32325 PyObject * obj1 = 0 ;
32326 char * kwnames[] = {
32327 (char *) "self",(char *) "index", NULL
32328 };
32329
32330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32332 if (!SWIG_IsOK(res1)) {
32333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32334 }
32335 arg1 = reinterpret_cast< wxListView * >(argp1);
32336 ecode2 = SWIG_AsVal_long(obj1, &val2);
32337 if (!SWIG_IsOK(ecode2)) {
32338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32339 }
32340 arg2 = static_cast< long >(val2);
32341 {
32342 PyThreadState* __tstate = wxPyBeginAllowThreads();
32343 result = (bool)(arg1)->IsSelected(arg2);
32344 wxPyEndAllowThreads(__tstate);
32345 if (PyErr_Occurred()) SWIG_fail;
32346 }
32347 {
32348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32349 }
32350 return resultobj;
32351fail:
32352 return NULL;
32353}
32354
32355
32356SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32357 PyObject *resultobj = 0;
32358 wxListView *arg1 = (wxListView *) 0 ;
32359 int arg2 ;
32360 int arg3 ;
32361 void *argp1 = 0 ;
32362 int res1 = 0 ;
32363 int val2 ;
32364 int ecode2 = 0 ;
32365 int val3 ;
32366 int ecode3 = 0 ;
32367 PyObject * obj0 = 0 ;
32368 PyObject * obj1 = 0 ;
32369 PyObject * obj2 = 0 ;
32370 char * kwnames[] = {
32371 (char *) "self",(char *) "col",(char *) "image", NULL
32372 };
32373
32374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32376 if (!SWIG_IsOK(res1)) {
32377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32378 }
32379 arg1 = reinterpret_cast< wxListView * >(argp1);
32380 ecode2 = SWIG_AsVal_int(obj1, &val2);
32381 if (!SWIG_IsOK(ecode2)) {
32382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32383 }
32384 arg2 = static_cast< int >(val2);
32385 ecode3 = SWIG_AsVal_int(obj2, &val3);
32386 if (!SWIG_IsOK(ecode3)) {
32387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32388 }
32389 arg3 = static_cast< int >(val3);
32390 {
32391 PyThreadState* __tstate = wxPyBeginAllowThreads();
32392 (arg1)->SetColumnImage(arg2,arg3);
32393 wxPyEndAllowThreads(__tstate);
32394 if (PyErr_Occurred()) SWIG_fail;
32395 }
32396 resultobj = SWIG_Py_Void();
32397 return resultobj;
32398fail:
32399 return NULL;
32400}
32401
32402
32403SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32404 PyObject *resultobj = 0;
32405 wxListView *arg1 = (wxListView *) 0 ;
32406 int arg2 ;
32407 void *argp1 = 0 ;
32408 int res1 = 0 ;
32409 int val2 ;
32410 int ecode2 = 0 ;
32411 PyObject * obj0 = 0 ;
32412 PyObject * obj1 = 0 ;
32413 char * kwnames[] = {
32414 (char *) "self",(char *) "col", NULL
32415 };
32416
32417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32419 if (!SWIG_IsOK(res1)) {
32420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32421 }
32422 arg1 = reinterpret_cast< wxListView * >(argp1);
32423 ecode2 = SWIG_AsVal_int(obj1, &val2);
32424 if (!SWIG_IsOK(ecode2)) {
32425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32426 }
32427 arg2 = static_cast< int >(val2);
32428 {
32429 PyThreadState* __tstate = wxPyBeginAllowThreads();
32430 (arg1)->ClearColumnImage(arg2);
32431 wxPyEndAllowThreads(__tstate);
32432 if (PyErr_Occurred()) SWIG_fail;
32433 }
32434 resultobj = SWIG_Py_Void();
32435 return resultobj;
32436fail:
32437 return NULL;
7e08d4ef
RD
32438}
32439
32440
0085ce49
RD
32441SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32442 PyObject *obj;
32443 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32444 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32445 return SWIG_Py_Void();
7e08d4ef
RD
32446}
32447
0085ce49
RD
32448SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32449 return SWIG_Python_InitShadowInstance(args);
32450}
7e08d4ef 32451
0085ce49
RD
32452SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32453 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32454 return 1;
7e08d4ef
RD
32455}
32456
32457
0085ce49
RD
32458SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32459 PyObject *pyobj = 0;
32460
32461 {
32462#if wxUSE_UNICODE
32463 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32464#else
32465 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32466#endif
32467 }
32468 return pyobj;
7e08d4ef
RD
32469}
32470
32471
0085ce49
RD
32472SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32473 PyObject *resultobj = 0;
32474 wxTreeItemId *result = 0 ;
32475
32476 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
32479 result = (wxTreeItemId *)new wxTreeItemId();
32480 wxPyEndAllowThreads(__tstate);
32481 if (PyErr_Occurred()) SWIG_fail;
32482 }
32483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32484 return resultobj;
32485fail:
32486 return NULL;
d14a1e28
RD
32487}
32488
32489
0085ce49
RD
32490SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32491 PyObject *resultobj = 0;
32492 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32493 void *argp1 = 0 ;
32494 int res1 = 0 ;
32495 PyObject *swig_obj[1] ;
32496
32497 if (!args) SWIG_fail;
32498 swig_obj[0] = args;
32499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32500 if (!SWIG_IsOK(res1)) {
32501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32502 }
32503 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32504 {
32505 PyThreadState* __tstate = wxPyBeginAllowThreads();
32506 delete arg1;
7e08d4ef 32507
0085ce49
RD
32508 wxPyEndAllowThreads(__tstate);
32509 if (PyErr_Occurred()) SWIG_fail;
32510 }
32511 resultobj = SWIG_Py_Void();
32512 return resultobj;
32513fail:
32514 return NULL;
7e08d4ef
RD
32515}
32516
32517
0085ce49
RD
32518SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32519 PyObject *resultobj = 0;
32520 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32521 bool result;
32522 void *argp1 = 0 ;
32523 int res1 = 0 ;
32524 PyObject *swig_obj[1] ;
32525
32526 if (!args) SWIG_fail;
32527 swig_obj[0] = args;
32528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32529 if (!SWIG_IsOK(res1)) {
32530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32531 }
32532 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32533 {
32534 PyThreadState* __tstate = wxPyBeginAllowThreads();
32535 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32536 wxPyEndAllowThreads(__tstate);
32537 if (PyErr_Occurred()) SWIG_fail;
32538 }
32539 {
32540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32541 }
32542 return resultobj;
32543fail:
32544 return NULL;
32545}
32546
32547
32548SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32549 PyObject *resultobj = 0;
32550 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32551 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32552 bool result;
32553 void *argp1 = 0 ;
32554 int res1 = 0 ;
32555 void *argp2 = 0 ;
32556 int res2 = 0 ;
32557 PyObject * obj0 = 0 ;
32558 PyObject * obj1 = 0 ;
32559 char * kwnames[] = {
32560 (char *) "self",(char *) "other", NULL
32561 };
32562
32563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32565 if (!SWIG_IsOK(res1)) {
32566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32567 }
32568 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32570 if (!SWIG_IsOK(res2)) {
32571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32572 }
32573 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32574 {
32575 PyThreadState* __tstate = wxPyBeginAllowThreads();
32576 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32577 wxPyEndAllowThreads(__tstate);
32578 if (PyErr_Occurred()) SWIG_fail;
32579 }
32580 {
32581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32582 }
32583 return resultobj;
32584fail:
32585 return NULL;
32586}
32587
32588
32589SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32590 PyObject *resultobj = 0;
32591 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32592 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32593 bool result;
32594 void *argp1 = 0 ;
32595 int res1 = 0 ;
32596 void *argp2 = 0 ;
32597 int res2 = 0 ;
32598 PyObject * obj0 = 0 ;
32599 PyObject * obj1 = 0 ;
32600 char * kwnames[] = {
32601 (char *) "self",(char *) "other", NULL
32602 };
32603
32604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32606 if (!SWIG_IsOK(res1)) {
32607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32608 }
32609 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32611 if (!SWIG_IsOK(res2)) {
32612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32613 }
32614 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32615 {
32616 PyThreadState* __tstate = wxPyBeginAllowThreads();
32617 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32618 wxPyEndAllowThreads(__tstate);
32619 if (PyErr_Occurred()) SWIG_fail;
32620 }
32621 {
32622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32623 }
32624 return resultobj;
32625fail:
32626 return NULL;
7e08d4ef
RD
32627}
32628
32629
0085ce49
RD
32630SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32631 PyObject *resultobj = 0;
32632 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32633 void *arg2 = (void *) 0 ;
32634 void *argp1 = 0 ;
32635 int res1 = 0 ;
32636 int res2 ;
32637 PyObject *swig_obj[2] ;
32638
32639 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32641 if (!SWIG_IsOK(res1)) {
32642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32643 }
32644 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32645 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32646 if (!SWIG_IsOK(res2)) {
32647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32648 }
32649 if (arg1) (arg1)->m_pItem = arg2;
32650
32651 resultobj = SWIG_Py_Void();
32652 return resultobj;
32653fail:
32654 return NULL;
7e08d4ef
RD
32655}
32656
32657
0085ce49
RD
32658SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32659 PyObject *resultobj = 0;
32660 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32661 void *result = 0 ;
32662 void *argp1 = 0 ;
32663 int res1 = 0 ;
32664 PyObject *swig_obj[1] ;
32665
32666 if (!args) SWIG_fail;
32667 swig_obj[0] = args;
32668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32669 if (!SWIG_IsOK(res1)) {
32670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32671 }
32672 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32673 result = (void *) ((arg1)->m_pItem);
32674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32675 return resultobj;
32676fail:
32677 return NULL;
7e08d4ef
RD
32678}
32679
32680
0085ce49
RD
32681SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32682 PyObject *obj;
32683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32684 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32685 return SWIG_Py_Void();
7e08d4ef
RD
32686}
32687
0085ce49
RD
32688SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32689 return SWIG_Python_InitShadowInstance(args);
32690}
7e08d4ef 32691
0085ce49
RD
32692SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32693 PyObject *resultobj = 0;
32694 PyObject *arg1 = (PyObject *) NULL ;
32695 wxPyTreeItemData *result = 0 ;
32696 PyObject * obj0 = 0 ;
32697 char * kwnames[] = {
32698 (char *) "obj", NULL
32699 };
32700
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32702 if (obj0) {
32703 arg1 = obj0;
32704 }
32705 {
32706 PyThreadState* __tstate = wxPyBeginAllowThreads();
32707 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32708 wxPyEndAllowThreads(__tstate);
32709 if (PyErr_Occurred()) SWIG_fail;
32710 }
32711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32712 return resultobj;
32713fail:
32714 return NULL;
7e08d4ef
RD
32715}
32716
32717
0085ce49
RD
32718SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32719 PyObject *resultobj = 0;
32720 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32721 void *argp1 = 0 ;
32722 int res1 = 0 ;
32723 PyObject *swig_obj[1] ;
32724
32725 if (!args) SWIG_fail;
32726 swig_obj[0] = args;
32727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32728 if (!SWIG_IsOK(res1)) {
32729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32730 }
32731 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32732 {
32733 PyThreadState* __tstate = wxPyBeginAllowThreads();
32734 delete arg1;
1fbf26be 32735
0085ce49
RD
32736 wxPyEndAllowThreads(__tstate);
32737 if (PyErr_Occurred()) SWIG_fail;
32738 }
32739 resultobj = SWIG_Py_Void();
32740 return resultobj;
32741fail:
32742 return NULL;
1fbf26be
RD
32743}
32744
32745
0085ce49
RD
32746SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32747 PyObject *resultobj = 0;
32748 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32749 PyObject *result = 0 ;
32750 void *argp1 = 0 ;
32751 int res1 = 0 ;
32752 PyObject *swig_obj[1] ;
32753
32754 if (!args) SWIG_fail;
32755 swig_obj[0] = args;
32756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32757 if (!SWIG_IsOK(res1)) {
32758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32759 }
32760 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32761 {
32762 PyThreadState* __tstate = wxPyBeginAllowThreads();
32763 result = (PyObject *)(arg1)->GetData();
32764 wxPyEndAllowThreads(__tstate);
32765 if (PyErr_Occurred()) SWIG_fail;
32766 }
32767 resultobj = result;
32768 return resultobj;
32769fail:
32770 return NULL;
32771}
32772
32773
32774SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32775 PyObject *resultobj = 0;
32776 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32777 PyObject *arg2 = (PyObject *) 0 ;
32778 void *argp1 = 0 ;
32779 int res1 = 0 ;
32780 PyObject * obj0 = 0 ;
32781 PyObject * obj1 = 0 ;
32782 char * kwnames[] = {
32783 (char *) "self",(char *) "obj", NULL
32784 };
32785
32786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32788 if (!SWIG_IsOK(res1)) {
32789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32790 }
32791 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32792 arg2 = obj1;
32793 {
32794 PyThreadState* __tstate = wxPyBeginAllowThreads();
32795 (arg1)->SetData(arg2);
32796 wxPyEndAllowThreads(__tstate);
32797 if (PyErr_Occurred()) SWIG_fail;
32798 }
32799 resultobj = SWIG_Py_Void();
32800 return resultobj;
32801fail:
32802 return NULL;
d14a1e28
RD
32803}
32804
32805
0085ce49
RD
32806SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32807 PyObject *resultobj = 0;
32808 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32809 wxTreeItemId *result = 0 ;
32810 void *argp1 = 0 ;
32811 int res1 = 0 ;
32812 PyObject *swig_obj[1] ;
32813
32814 if (!args) SWIG_fail;
32815 swig_obj[0] = args;
32816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32817 if (!SWIG_IsOK(res1)) {
32818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32819 }
32820 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32821 {
32822 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 32823 {
0085ce49
RD
32824 wxTreeItemId const &_result_ref = (arg1)->GetId();
32825 result = (wxTreeItemId *) &_result_ref;
2ef75293 32826 }
0085ce49
RD
32827 wxPyEndAllowThreads(__tstate);
32828 if (PyErr_Occurred()) SWIG_fail;
32829 }
32830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32831 return resultobj;
32832fail:
32833 return NULL;
32834}
32835
32836
32837SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32838 PyObject *resultobj = 0;
32839 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32840 wxTreeItemId *arg2 = 0 ;
32841 void *argp1 = 0 ;
32842 int res1 = 0 ;
32843 void *argp2 = 0 ;
32844 int res2 = 0 ;
32845 PyObject * obj0 = 0 ;
32846 PyObject * obj1 = 0 ;
32847 char * kwnames[] = {
32848 (char *) "self",(char *) "id", NULL
32849 };
32850
32851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32853 if (!SWIG_IsOK(res1)) {
32854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32855 }
32856 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32858 if (!SWIG_IsOK(res2)) {
32859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32860 }
32861 if (!argp2) {
32862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32863 }
32864 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32865 {
32866 PyThreadState* __tstate = wxPyBeginAllowThreads();
32867 (arg1)->SetId((wxTreeItemId const &)*arg2);
32868 wxPyEndAllowThreads(__tstate);
32869 if (PyErr_Occurred()) SWIG_fail;
32870 }
32871 resultobj = SWIG_Py_Void();
32872 return resultobj;
32873fail:
32874 return NULL;
2ef75293
RD
32875}
32876
32877
0085ce49
RD
32878SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32879 PyObject *resultobj = 0;
32880 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32881 void *argp1 = 0 ;
32882 int res1 = 0 ;
32883 PyObject *swig_obj[1] ;
32884
32885 if (!args) SWIG_fail;
32886 swig_obj[0] = args;
32887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32888 if (!SWIG_IsOK(res1)) {
32889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32890 }
32891 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32892 {
32893 PyThreadState* __tstate = wxPyBeginAllowThreads();
32894 wxPyTreeItemData_Destroy(arg1);
32895 wxPyEndAllowThreads(__tstate);
32896 if (PyErr_Occurred()) SWIG_fail;
32897 }
32898 resultobj = SWIG_Py_Void();
32899 return resultobj;
32900fail:
32901 return NULL;
2ef75293
RD
32902}
32903
32904
0085ce49
RD
32905SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32906 PyObject *obj;
32907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32908 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32909 return SWIG_Py_Void();
2ef75293
RD
32910}
32911
0085ce49
RD
32912SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32913 return SWIG_Python_InitShadowInstance(args);
32914}
2ef75293 32915
b02396e8
RD
32916SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32917 {
32918 void *argp = 0;
32919 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32920 if (!SWIG_IsOK(res)) {
32921 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32922 }
32923 if (!argp) {
32924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32925 } else {
32926 wxTreeItemId * temp;
32927 temp = reinterpret_cast< wxTreeItemId * >(argp);
32928 wxNullTreeItemId = *temp;
32929 if (SWIG_IsNewObj(res)) delete temp;
32930 }
32931 }
32932 return 0;
32933fail:
32934 return 1;
32935}
32936
32937
32938SWIGINTERN PyObject *NullTreeItemId_get(void) {
32939 PyObject *pyobj = 0;
32940
32941 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32942 return pyobj;
32943}
32944
32945
32946SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
32947 PyObject *resultobj = 0;
32948 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32949 int arg2 = (int) 0 ;
32950 wxTreeEvent *result = 0 ;
32951 int val1 ;
32952 int ecode1 = 0 ;
32953 int val2 ;
32954 int ecode2 = 0 ;
0085ce49 32955
b02396e8
RD
32956 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32957 if (swig_obj[0]) {
32958 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
0085ce49
RD
32959 if (!SWIG_IsOK(ecode1)) {
32960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32961 }
32962 arg1 = static_cast< wxEventType >(val1);
32963 }
b02396e8
RD
32964 if (swig_obj[1]) {
32965 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
0085ce49
RD
32966 if (!SWIG_IsOK(ecode2)) {
32967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32968 }
32969 arg2 = static_cast< int >(val2);
32970 }
32971 {
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
32973 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32978 return resultobj;
32979fail:
32980 return NULL;
70b7a5fe
RD
32981}
32982
32983
b02396e8
RD
32984SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32985 PyObject *resultobj = 0;
32986 wxEventType arg1 ;
32987 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32988 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32989 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32990 wxTreeEvent *result = 0 ;
32991 int val1 ;
32992 int ecode1 = 0 ;
32993 void *argp2 = 0 ;
32994 int res2 = 0 ;
32995 void *argp3 = 0 ;
32996 int res3 = 0 ;
32997
32998 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32999 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33000 if (!SWIG_IsOK(ecode1)) {
33001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33002 }
33003 arg1 = static_cast< wxEventType >(val1);
33004 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33005 if (!SWIG_IsOK(res2)) {
33006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33007 }
33008 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33009 if (swig_obj[2]) {
33010 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33011 if (!SWIG_IsOK(res3)) {
33012 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33013 }
33014 if (!argp3) {
33015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33016 }
33017 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33018 }
33019 {
33020 PyThreadState* __tstate = wxPyBeginAllowThreads();
33021 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33022 wxPyEndAllowThreads(__tstate);
33023 if (PyErr_Occurred()) SWIG_fail;
33024 }
33025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33026 return resultobj;
33027fail:
33028 return NULL;
33029}
33030
33031
33032SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33033 int argc;
33034 PyObject *argv[4];
33035
33036 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33037 --argc;
33038 if ((argc >= 0) && (argc <= 2)) {
33039 int _v = 0;
33040 if (argc > 1) {
33041 {
33042 {
33043 int res = SWIG_AsVal_int(argv[1], NULL);
33044 _v = SWIG_CheckState(res);
33045 }
33046 }
33047 if (!_v) goto check_1;
33048 }
33049 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33050 }
33051check_1:
33052
33053 if ((argc >= 2) && (argc <= 3)) {
33054 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33055 }
33056
33057fail:
33058 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33059 return NULL;
33060}
33061
33062
0085ce49
RD
33063SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33064 PyObject *resultobj = 0;
33065 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33066 wxTreeItemId result;
33067 void *argp1 = 0 ;
33068 int res1 = 0 ;
33069 PyObject *swig_obj[1] ;
33070
33071 if (!args) SWIG_fail;
33072 swig_obj[0] = args;
33073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33074 if (!SWIG_IsOK(res1)) {
33075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33076 }
33077 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33078 {
33079 PyThreadState* __tstate = wxPyBeginAllowThreads();
33080 result = ((wxTreeEvent const *)arg1)->GetItem();
33081 wxPyEndAllowThreads(__tstate);
33082 if (PyErr_Occurred()) SWIG_fail;
33083 }
33084 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33085 return resultobj;
33086fail:
33087 return NULL;
33088}
33089
33090
33091SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33092 PyObject *resultobj = 0;
33093 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33094 wxTreeItemId *arg2 = 0 ;
33095 void *argp1 = 0 ;
33096 int res1 = 0 ;
33097 void *argp2 = 0 ;
33098 int res2 = 0 ;
33099 PyObject * obj0 = 0 ;
33100 PyObject * obj1 = 0 ;
33101 char * kwnames[] = {
33102 (char *) "self",(char *) "item", NULL
33103 };
33104
33105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33107 if (!SWIG_IsOK(res1)) {
33108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33109 }
33110 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33112 if (!SWIG_IsOK(res2)) {
33113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33114 }
33115 if (!argp2) {
33116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33117 }
33118 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33119 {
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
33121 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33122 wxPyEndAllowThreads(__tstate);
33123 if (PyErr_Occurred()) SWIG_fail;
33124 }
33125 resultobj = SWIG_Py_Void();
33126 return resultobj;
33127fail:
33128 return NULL;
2ef75293
RD
33129}
33130
33131
0085ce49
RD
33132SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33133 PyObject *resultobj = 0;
33134 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33135 wxTreeItemId result;
33136 void *argp1 = 0 ;
33137 int res1 = 0 ;
33138 PyObject *swig_obj[1] ;
33139
33140 if (!args) SWIG_fail;
33141 swig_obj[0] = args;
33142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33143 if (!SWIG_IsOK(res1)) {
33144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33145 }
33146 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33147 {
33148 PyThreadState* __tstate = wxPyBeginAllowThreads();
33149 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33150 wxPyEndAllowThreads(__tstate);
33151 if (PyErr_Occurred()) SWIG_fail;
33152 }
33153 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33154 return resultobj;
33155fail:
33156 return NULL;
33157}
33158
33159
33160SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33161 PyObject *resultobj = 0;
33162 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33163 wxTreeItemId *arg2 = 0 ;
33164 void *argp1 = 0 ;
33165 int res1 = 0 ;
33166 void *argp2 = 0 ;
33167 int res2 = 0 ;
33168 PyObject * obj0 = 0 ;
33169 PyObject * obj1 = 0 ;
33170 char * kwnames[] = {
33171 (char *) "self",(char *) "item", NULL
33172 };
33173
33174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33176 if (!SWIG_IsOK(res1)) {
33177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33178 }
33179 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33181 if (!SWIG_IsOK(res2)) {
33182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33183 }
33184 if (!argp2) {
33185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33186 }
33187 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33188 {
33189 PyThreadState* __tstate = wxPyBeginAllowThreads();
33190 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33191 wxPyEndAllowThreads(__tstate);
33192 if (PyErr_Occurred()) SWIG_fail;
33193 }
33194 resultobj = SWIG_Py_Void();
33195 return resultobj;
33196fail:
33197 return NULL;
2ef75293
RD
33198}
33199
33200
0085ce49
RD
33201SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33202 PyObject *resultobj = 0;
33203 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33204 wxPoint result;
33205 void *argp1 = 0 ;
33206 int res1 = 0 ;
33207 PyObject *swig_obj[1] ;
33208
33209 if (!args) SWIG_fail;
33210 swig_obj[0] = args;
33211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33212 if (!SWIG_IsOK(res1)) {
33213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33214 }
33215 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33216 {
33217 PyThreadState* __tstate = wxPyBeginAllowThreads();
33218 result = ((wxTreeEvent const *)arg1)->GetPoint();
33219 wxPyEndAllowThreads(__tstate);
33220 if (PyErr_Occurred()) SWIG_fail;
33221 }
33222 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33223 return resultobj;
33224fail:
33225 return NULL;
33226}
33227
33228
33229SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33230 PyObject *resultobj = 0;
33231 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33232 wxPoint *arg2 = 0 ;
33233 void *argp1 = 0 ;
33234 int res1 = 0 ;
33235 wxPoint temp2 ;
33236 PyObject * obj0 = 0 ;
33237 PyObject * obj1 = 0 ;
33238 char * kwnames[] = {
33239 (char *) "self",(char *) "pt", NULL
33240 };
33241
33242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33244 if (!SWIG_IsOK(res1)) {
33245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33246 }
33247 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33248 {
33249 arg2 = &temp2;
33250 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33251 }
33252 {
33253 PyThreadState* __tstate = wxPyBeginAllowThreads();
33254 (arg1)->SetPoint((wxPoint const &)*arg2);
33255 wxPyEndAllowThreads(__tstate);
33256 if (PyErr_Occurred()) SWIG_fail;
33257 }
33258 resultobj = SWIG_Py_Void();
33259 return resultobj;
33260fail:
33261 return NULL;
d14a1e28
RD
33262}
33263
33264
0085ce49
RD
33265SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33266 PyObject *resultobj = 0;
33267 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33268 wxKeyEvent *result = 0 ;
33269 void *argp1 = 0 ;
33270 int res1 = 0 ;
33271 PyObject *swig_obj[1] ;
33272
33273 if (!args) SWIG_fail;
33274 swig_obj[0] = args;
33275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33276 if (!SWIG_IsOK(res1)) {
33277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33278 }
33279 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33280 {
33281 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 33282 {
0085ce49
RD
33283 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33284 result = (wxKeyEvent *) &_result_ref;
d14a1e28 33285 }
0085ce49
RD
33286 wxPyEndAllowThreads(__tstate);
33287 if (PyErr_Occurred()) SWIG_fail;
33288 }
33289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33290 return resultobj;
33291fail:
33292 return NULL;
d14a1e28
RD
33293}
33294
33295
0085ce49
RD
33296SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33297 PyObject *resultobj = 0;
33298 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33299 int result;
33300 void *argp1 = 0 ;
33301 int res1 = 0 ;
33302 PyObject *swig_obj[1] ;
33303
33304 if (!args) SWIG_fail;
33305 swig_obj[0] = args;
33306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33307 if (!SWIG_IsOK(res1)) {
33308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33309 }
33310 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33311 {
33312 PyThreadState* __tstate = wxPyBeginAllowThreads();
33313 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33314 wxPyEndAllowThreads(__tstate);
33315 if (PyErr_Occurred()) SWIG_fail;
33316 }
33317 resultobj = SWIG_From_int(static_cast< int >(result));
33318 return resultobj;
33319fail:
33320 return NULL;
33321}
33322
33323
33324SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33325 PyObject *resultobj = 0;
33326 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33327 wxKeyEvent *arg2 = 0 ;
33328 void *argp1 = 0 ;
33329 int res1 = 0 ;
33330 void *argp2 = 0 ;
33331 int res2 = 0 ;
33332 PyObject * obj0 = 0 ;
33333 PyObject * obj1 = 0 ;
33334 char * kwnames[] = {
33335 (char *) "self",(char *) "evt", NULL
33336 };
33337
33338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33340 if (!SWIG_IsOK(res1)) {
33341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33342 }
33343 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33345 if (!SWIG_IsOK(res2)) {
33346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33347 }
33348 if (!argp2) {
33349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33350 }
33351 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33352 {
33353 PyThreadState* __tstate = wxPyBeginAllowThreads();
33354 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33355 wxPyEndAllowThreads(__tstate);
33356 if (PyErr_Occurred()) SWIG_fail;
33357 }
33358 resultobj = SWIG_Py_Void();
33359 return resultobj;
33360fail:
33361 return NULL;
d14a1e28
RD
33362}
33363
33364
0085ce49
RD
33365SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33366 PyObject *resultobj = 0;
33367 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33368 wxString *result = 0 ;
33369 void *argp1 = 0 ;
33370 int res1 = 0 ;
33371 PyObject *swig_obj[1] ;
33372
33373 if (!args) SWIG_fail;
33374 swig_obj[0] = args;
33375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33376 if (!SWIG_IsOK(res1)) {
33377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33378 }
33379 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33380 {
33381 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33382 {
0085ce49
RD
33383 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33384 result = (wxString *) &_result_ref;
093d3ff1 33385 }
0085ce49
RD
33386 wxPyEndAllowThreads(__tstate);
33387 if (PyErr_Occurred()) SWIG_fail;
33388 }
33389 {
33390#if wxUSE_UNICODE
33391 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33392#else
33393 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33394#endif
33395 }
33396 return resultobj;
33397fail:
33398 return NULL;
33399}
33400
33401
33402SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33403 PyObject *resultobj = 0;
33404 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33405 wxString *arg2 = 0 ;
33406 void *argp1 = 0 ;
33407 int res1 = 0 ;
33408 bool temp2 = false ;
33409 PyObject * obj0 = 0 ;
33410 PyObject * obj1 = 0 ;
33411 char * kwnames[] = {
33412 (char *) "self",(char *) "label", NULL
33413 };
33414
33415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33417 if (!SWIG_IsOK(res1)) {
33418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33419 }
33420 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33421 {
33422 arg2 = wxString_in_helper(obj1);
33423 if (arg2 == NULL) SWIG_fail;
33424 temp2 = true;
33425 }
33426 {
33427 PyThreadState* __tstate = wxPyBeginAllowThreads();
33428 (arg1)->SetLabel((wxString const &)*arg2);
33429 wxPyEndAllowThreads(__tstate);
33430 if (PyErr_Occurred()) SWIG_fail;
33431 }
33432 resultobj = SWIG_Py_Void();
33433 {
33434 if (temp2)
33435 delete arg2;
33436 }
33437 return resultobj;
33438fail:
33439 {
33440 if (temp2)
33441 delete arg2;
33442 }
33443 return NULL;
d14a1e28
RD
33444}
33445
33446
0085ce49
RD
33447SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33448 PyObject *resultobj = 0;
33449 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33450 bool result;
33451 void *argp1 = 0 ;
33452 int res1 = 0 ;
33453 PyObject *swig_obj[1] ;
33454
33455 if (!args) SWIG_fail;
33456 swig_obj[0] = args;
33457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33458 if (!SWIG_IsOK(res1)) {
33459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33460 }
33461 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33462 {
33463 PyThreadState* __tstate = wxPyBeginAllowThreads();
33464 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33465 wxPyEndAllowThreads(__tstate);
33466 if (PyErr_Occurred()) SWIG_fail;
33467 }
33468 {
33469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33470 }
33471 return resultobj;
33472fail:
33473 return NULL;
33474}
33475
33476
33477SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33478 PyObject *resultobj = 0;
33479 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33480 bool arg2 ;
33481 void *argp1 = 0 ;
33482 int res1 = 0 ;
33483 bool val2 ;
33484 int ecode2 = 0 ;
33485 PyObject * obj0 = 0 ;
33486 PyObject * obj1 = 0 ;
33487 char * kwnames[] = {
33488 (char *) "self",(char *) "editCancelled", NULL
33489 };
33490
33491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33493 if (!SWIG_IsOK(res1)) {
33494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33495 }
33496 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33497 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33498 if (!SWIG_IsOK(ecode2)) {
33499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33500 }
33501 arg2 = static_cast< bool >(val2);
33502 {
33503 PyThreadState* __tstate = wxPyBeginAllowThreads();
33504 (arg1)->SetEditCanceled(arg2);
33505 wxPyEndAllowThreads(__tstate);
33506 if (PyErr_Occurred()) SWIG_fail;
33507 }
33508 resultobj = SWIG_Py_Void();
33509 return resultobj;
33510fail:
33511 return NULL;
33512}
33513
33514
33515SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33516 PyObject *resultobj = 0;
33517 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33518 wxString *arg2 = 0 ;
33519 void *argp1 = 0 ;
33520 int res1 = 0 ;
33521 bool temp2 = false ;
33522 PyObject * obj0 = 0 ;
33523 PyObject * obj1 = 0 ;
33524 char * kwnames[] = {
33525 (char *) "self",(char *) "toolTip", NULL
33526 };
33527
33528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33530 if (!SWIG_IsOK(res1)) {
33531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33532 }
33533 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33534 {
33535 arg2 = wxString_in_helper(obj1);
33536 if (arg2 == NULL) SWIG_fail;
33537 temp2 = true;
33538 }
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 (arg1)->SetToolTip((wxString const &)*arg2);
33542 wxPyEndAllowThreads(__tstate);
33543 if (PyErr_Occurred()) SWIG_fail;
33544 }
33545 resultobj = SWIG_Py_Void();
33546 {
33547 if (temp2)
33548 delete arg2;
33549 }
33550 return resultobj;
33551fail:
33552 {
33553 if (temp2)
33554 delete arg2;
33555 }
33556 return NULL;
d14a1e28
RD
33557}
33558
33559
0085ce49
RD
33560SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33561 PyObject *resultobj = 0;
33562 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33563 wxString result;
33564 void *argp1 = 0 ;
33565 int res1 = 0 ;
33566 PyObject *swig_obj[1] ;
33567
33568 if (!args) SWIG_fail;
33569 swig_obj[0] = args;
33570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33571 if (!SWIG_IsOK(res1)) {
33572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33573 }
33574 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33575 {
33576 PyThreadState* __tstate = wxPyBeginAllowThreads();
33577 result = (arg1)->GetToolTip();
33578 wxPyEndAllowThreads(__tstate);
33579 if (PyErr_Occurred()) SWIG_fail;
33580 }
33581 {
33582#if wxUSE_UNICODE
33583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33584#else
33585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33586#endif
33587 }
33588 return resultobj;
33589fail:
33590 return NULL;
33591}
33592
33593
33594SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33595 PyObject *obj;
33596 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33597 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33598 return SWIG_Py_Void();
33599}
33600
33601SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33602 return SWIG_Python_InitShadowInstance(args);
33603}
33604
33605SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33606 PyObject *resultobj = 0;
33607 wxWindow *arg1 = (wxWindow *) 0 ;
33608 int arg2 = (int) -1 ;
33609 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33610 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33611 wxSize const &arg4_defvalue = wxDefaultSize ;
33612 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33613 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33614 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33615 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33616 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33617 wxString *arg7 = (wxString *) &arg7_defvalue ;
33618 wxPyTreeCtrl *result = 0 ;
33619 void *argp1 = 0 ;
33620 int res1 = 0 ;
33621 int val2 ;
33622 int ecode2 = 0 ;
33623 wxPoint temp3 ;
33624 wxSize temp4 ;
33625 long val5 ;
33626 int ecode5 = 0 ;
33627 void *argp6 = 0 ;
33628 int res6 = 0 ;
33629 bool temp7 = false ;
33630 PyObject * obj0 = 0 ;
33631 PyObject * obj1 = 0 ;
33632 PyObject * obj2 = 0 ;
33633 PyObject * obj3 = 0 ;
33634 PyObject * obj4 = 0 ;
33635 PyObject * obj5 = 0 ;
33636 PyObject * obj6 = 0 ;
33637 char * kwnames[] = {
33638 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33639 };
33640
33641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33643 if (!SWIG_IsOK(res1)) {
33644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33645 }
33646 arg1 = reinterpret_cast< wxWindow * >(argp1);
33647 if (obj1) {
33648 ecode2 = SWIG_AsVal_int(obj1, &val2);
33649 if (!SWIG_IsOK(ecode2)) {
33650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33651 }
33652 arg2 = static_cast< int >(val2);
33653 }
33654 if (obj2) {
d14a1e28 33655 {
0085ce49
RD
33656 arg3 = &temp3;
33657 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33658 }
0085ce49
RD
33659 }
33660 if (obj3) {
093d3ff1 33661 {
0085ce49
RD
33662 arg4 = &temp4;
33663 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33664 }
0085ce49
RD
33665 }
33666 if (obj4) {
33667 ecode5 = SWIG_AsVal_long(obj4, &val5);
33668 if (!SWIG_IsOK(ecode5)) {
33669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33670 }
33671 arg5 = static_cast< long >(val5);
33672 }
33673 if (obj5) {
33674 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33675 if (!SWIG_IsOK(res6)) {
33676 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33677 }
0085ce49
RD
33678 if (!argp6) {
33679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33680 }
0085ce49
RD
33681 arg6 = reinterpret_cast< wxValidator * >(argp6);
33682 }
33683 if (obj6) {
4f89f6a3 33684 {
0085ce49
RD
33685 arg7 = wxString_in_helper(obj6);
33686 if (arg7 == NULL) SWIG_fail;
33687 temp7 = true;
4f89f6a3 33688 }
0085ce49
RD
33689 }
33690 {
33691 if (!wxPyCheckForApp()) SWIG_fail;
33692 PyThreadState* __tstate = wxPyBeginAllowThreads();
33693 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33694 wxPyEndAllowThreads(__tstate);
33695 if (PyErr_Occurred()) SWIG_fail;
33696 }
33697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33698 {
33699 if (temp7)
33700 delete arg7;
33701 }
33702 return resultobj;
33703fail:
33704 {
33705 if (temp7)
33706 delete arg7;
33707 }
33708 return NULL;
d14a1e28
RD
33709}
33710
33711
0085ce49
RD
33712SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33713 PyObject *resultobj = 0;
33714 wxPyTreeCtrl *result = 0 ;
33715
33716 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33717 {
33718 if (!wxPyCheckForApp()) SWIG_fail;
33719 PyThreadState* __tstate = wxPyBeginAllowThreads();
33720 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33725 return resultobj;
33726fail:
33727 return NULL;
33728}
33729
33730
33731SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33732 PyObject *resultobj = 0;
33733 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33734 wxWindow *arg2 = (wxWindow *) 0 ;
33735 int arg3 = (int) -1 ;
33736 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33737 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33738 wxSize const &arg5_defvalue = wxDefaultSize ;
33739 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33740 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33741 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33742 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33743 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33744 wxString *arg8 = (wxString *) &arg8_defvalue ;
33745 bool result;
33746 void *argp1 = 0 ;
33747 int res1 = 0 ;
33748 void *argp2 = 0 ;
33749 int res2 = 0 ;
33750 int val3 ;
33751 int ecode3 = 0 ;
33752 wxPoint temp4 ;
33753 wxSize temp5 ;
33754 long val6 ;
33755 int ecode6 = 0 ;
33756 void *argp7 = 0 ;
33757 int res7 = 0 ;
33758 bool temp8 = false ;
33759 PyObject * obj0 = 0 ;
33760 PyObject * obj1 = 0 ;
33761 PyObject * obj2 = 0 ;
33762 PyObject * obj3 = 0 ;
33763 PyObject * obj4 = 0 ;
33764 PyObject * obj5 = 0 ;
33765 PyObject * obj6 = 0 ;
33766 PyObject * obj7 = 0 ;
33767 char * kwnames[] = {
33768 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33769 };
33770
33771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33773 if (!SWIG_IsOK(res1)) {
33774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33775 }
33776 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33778 if (!SWIG_IsOK(res2)) {
33779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33780 }
33781 arg2 = reinterpret_cast< wxWindow * >(argp2);
33782 if (obj2) {
33783 ecode3 = SWIG_AsVal_int(obj2, &val3);
33784 if (!SWIG_IsOK(ecode3)) {
33785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33786 }
33787 arg3 = static_cast< int >(val3);
33788 }
33789 if (obj3) {
4f89f6a3 33790 {
0085ce49
RD
33791 arg4 = &temp4;
33792 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 33793 }
0085ce49
RD
33794 }
33795 if (obj4) {
d14a1e28 33796 {
0085ce49
RD
33797 arg5 = &temp5;
33798 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 33799 }
0085ce49
RD
33800 }
33801 if (obj5) {
33802 ecode6 = SWIG_AsVal_long(obj5, &val6);
33803 if (!SWIG_IsOK(ecode6)) {
33804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33805 }
33806 arg6 = static_cast< long >(val6);
33807 }
33808 if (obj6) {
33809 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33810 if (!SWIG_IsOK(res7)) {
33811 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 33812 }
0085ce49
RD
33813 if (!argp7) {
33814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 33815 }
0085ce49
RD
33816 arg7 = reinterpret_cast< wxValidator * >(argp7);
33817 }
33818 if (obj7) {
4276dc52 33819 {
0085ce49
RD
33820 arg8 = wxString_in_helper(obj7);
33821 if (arg8 == NULL) SWIG_fail;
33822 temp8 = true;
4276dc52 33823 }
0085ce49
RD
33824 }
33825 {
33826 PyThreadState* __tstate = wxPyBeginAllowThreads();
33827 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33828 wxPyEndAllowThreads(__tstate);
33829 if (PyErr_Occurred()) SWIG_fail;
33830 }
33831 {
33832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33833 }
33834 {
33835 if (temp8)
33836 delete arg8;
33837 }
33838 return resultobj;
33839fail:
33840 {
33841 if (temp8)
33842 delete arg8;
33843 }
33844 return NULL;
33845}
33846
33847
33848SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33849 PyObject *resultobj = 0;
33850 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33851 PyObject *arg2 = (PyObject *) 0 ;
33852 PyObject *arg3 = (PyObject *) 0 ;
33853 void *argp1 = 0 ;
33854 int res1 = 0 ;
33855 PyObject * obj0 = 0 ;
33856 PyObject * obj1 = 0 ;
33857 PyObject * obj2 = 0 ;
33858 char * kwnames[] = {
33859 (char *) "self",(char *) "self",(char *) "_class", NULL
33860 };
33861
33862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33864 if (!SWIG_IsOK(res1)) {
33865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33866 }
33867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33868 arg2 = obj1;
33869 arg3 = obj2;
33870 {
33871 PyThreadState* __tstate = wxPyBeginAllowThreads();
33872 (arg1)->_setCallbackInfo(arg2,arg3);
33873 wxPyEndAllowThreads(__tstate);
33874 if (PyErr_Occurred()) SWIG_fail;
33875 }
33876 resultobj = SWIG_Py_Void();
33877 return resultobj;
33878fail:
33879 return NULL;
d14a1e28
RD
33880}
33881
33882
0085ce49
RD
33883SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33884 PyObject *resultobj = 0;
33885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33886 unsigned int result;
0085ce49
RD
33887 void *argp1 = 0 ;
33888 int res1 = 0 ;
33889 PyObject *swig_obj[1] ;
33890
33891 if (!args) SWIG_fail;
33892 swig_obj[0] = args;
33893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33894 if (!SWIG_IsOK(res1)) {
33895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33896 }
33897 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33898 {
33899 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33900 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
33901 wxPyEndAllowThreads(__tstate);
33902 if (PyErr_Occurred()) SWIG_fail;
33903 }
e9d6f3a4 33904 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
33905 return resultobj;
33906fail:
33907 return NULL;
d14a1e28
RD
33908}
33909
33910
0085ce49
RD
33911SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33912 PyObject *resultobj = 0;
33913 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33914 unsigned int result;
33915 void *argp1 = 0 ;
33916 int res1 = 0 ;
33917 PyObject *swig_obj[1] ;
33918
33919 if (!args) SWIG_fail;
33920 swig_obj[0] = args;
33921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33922 if (!SWIG_IsOK(res1)) {
33923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33924 }
33925 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33926 {
33927 PyThreadState* __tstate = wxPyBeginAllowThreads();
33928 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33929 wxPyEndAllowThreads(__tstate);
33930 if (PyErr_Occurred()) SWIG_fail;
33931 }
33932 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33933 return resultobj;
33934fail:
33935 return NULL;
33936}
33937
33938
33939SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33940 PyObject *resultobj = 0;
33941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33942 unsigned int arg2 ;
33943 void *argp1 = 0 ;
33944 int res1 = 0 ;
33945 unsigned int val2 ;
33946 int ecode2 = 0 ;
33947 PyObject * obj0 = 0 ;
33948 PyObject * obj1 = 0 ;
33949 char * kwnames[] = {
33950 (char *) "self",(char *) "indent", NULL
33951 };
33952
33953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33955 if (!SWIG_IsOK(res1)) {
33956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33957 }
33958 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33959 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33960 if (!SWIG_IsOK(ecode2)) {
33961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33962 }
33963 arg2 = static_cast< unsigned int >(val2);
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 (arg1)->SetIndent(arg2);
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 resultobj = SWIG_Py_Void();
33971 return resultobj;
33972fail:
33973 return NULL;
d14a1e28
RD
33974}
33975
33976
0085ce49
RD
33977SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33978 PyObject *resultobj = 0;
33979 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33980 unsigned int result;
33981 void *argp1 = 0 ;
33982 int res1 = 0 ;
33983 PyObject *swig_obj[1] ;
33984
33985 if (!args) SWIG_fail;
33986 swig_obj[0] = args;
33987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33988 if (!SWIG_IsOK(res1)) {
33989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33990 }
33991 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33992 {
33993 PyThreadState* __tstate = wxPyBeginAllowThreads();
33994 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33995 wxPyEndAllowThreads(__tstate);
33996 if (PyErr_Occurred()) SWIG_fail;
33997 }
33998 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33999 return resultobj;
34000fail:
34001 return NULL;
34002}
34003
34004
34005SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34006 PyObject *resultobj = 0;
34007 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34008 unsigned int arg2 ;
34009 void *argp1 = 0 ;
34010 int res1 = 0 ;
34011 unsigned int val2 ;
34012 int ecode2 = 0 ;
34013 PyObject * obj0 = 0 ;
34014 PyObject * obj1 = 0 ;
34015 char * kwnames[] = {
34016 (char *) "self",(char *) "spacing", NULL
34017 };
34018
34019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34021 if (!SWIG_IsOK(res1)) {
34022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34023 }
34024 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34025 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34026 if (!SWIG_IsOK(ecode2)) {
34027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34028 }
34029 arg2 = static_cast< unsigned int >(val2);
34030 {
34031 PyThreadState* __tstate = wxPyBeginAllowThreads();
34032 (arg1)->SetSpacing(arg2);
34033 wxPyEndAllowThreads(__tstate);
34034 if (PyErr_Occurred()) SWIG_fail;
34035 }
34036 resultobj = SWIG_Py_Void();
34037 return resultobj;
34038fail:
34039 return NULL;
d14a1e28
RD
34040}
34041
34042
0085ce49
RD
34043SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34044 PyObject *resultobj = 0;
34045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34046 wxImageList *result = 0 ;
34047 void *argp1 = 0 ;
34048 int res1 = 0 ;
34049 PyObject *swig_obj[1] ;
34050
34051 if (!args) SWIG_fail;
34052 swig_obj[0] = args;
34053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34054 if (!SWIG_IsOK(res1)) {
34055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34056 }
34057 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34058 {
34059 PyThreadState* __tstate = wxPyBeginAllowThreads();
34060 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34061 wxPyEndAllowThreads(__tstate);
34062 if (PyErr_Occurred()) SWIG_fail;
34063 }
34064 {
34065 resultobj = wxPyMake_wxObject(result, (bool)0);
34066 }
34067 return resultobj;
34068fail:
34069 return NULL;
d14a1e28
RD
34070}
34071
34072
0085ce49
RD
34073SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34074 PyObject *resultobj = 0;
34075 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34076 wxImageList *result = 0 ;
34077 void *argp1 = 0 ;
34078 int res1 = 0 ;
34079 PyObject *swig_obj[1] ;
34080
34081 if (!args) SWIG_fail;
34082 swig_obj[0] = args;
34083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34084 if (!SWIG_IsOK(res1)) {
34085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34086 }
34087 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34088 {
34089 PyThreadState* __tstate = wxPyBeginAllowThreads();
34090 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34091 wxPyEndAllowThreads(__tstate);
34092 if (PyErr_Occurred()) SWIG_fail;
34093 }
34094 {
34095 resultobj = wxPyMake_wxObject(result, (bool)0);
34096 }
34097 return resultobj;
34098fail:
34099 return NULL;
34100}
34101
34102
34103SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34104 PyObject *resultobj = 0;
34105 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34106 wxImageList *arg2 = (wxImageList *) 0 ;
34107 void *argp1 = 0 ;
34108 int res1 = 0 ;
34109 void *argp2 = 0 ;
34110 int res2 = 0 ;
34111 PyObject * obj0 = 0 ;
34112 PyObject * obj1 = 0 ;
34113 char * kwnames[] = {
34114 (char *) "self",(char *) "imageList", NULL
34115 };
34116
34117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34119 if (!SWIG_IsOK(res1)) {
34120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34121 }
34122 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34124 if (!SWIG_IsOK(res2)) {
34125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34126 }
34127 arg2 = reinterpret_cast< wxImageList * >(argp2);
34128 {
34129 PyThreadState* __tstate = wxPyBeginAllowThreads();
34130 (arg1)->SetImageList(arg2);
34131 wxPyEndAllowThreads(__tstate);
34132 if (PyErr_Occurred()) SWIG_fail;
34133 }
34134 resultobj = SWIG_Py_Void();
34135 return resultobj;
34136fail:
34137 return NULL;
34138}
34139
34140
34141SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34142 PyObject *resultobj = 0;
34143 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34144 wxImageList *arg2 = (wxImageList *) 0 ;
34145 void *argp1 = 0 ;
34146 int res1 = 0 ;
34147 void *argp2 = 0 ;
34148 int res2 = 0 ;
34149 PyObject * obj0 = 0 ;
34150 PyObject * obj1 = 0 ;
34151 char * kwnames[] = {
34152 (char *) "self",(char *) "imageList", NULL
34153 };
34154
34155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34157 if (!SWIG_IsOK(res1)) {
34158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34159 }
34160 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34161 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34162 if (!SWIG_IsOK(res2)) {
34163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34164 }
34165 arg2 = reinterpret_cast< wxImageList * >(argp2);
34166 {
34167 PyThreadState* __tstate = wxPyBeginAllowThreads();
34168 (arg1)->SetStateImageList(arg2);
34169 wxPyEndAllowThreads(__tstate);
34170 if (PyErr_Occurred()) SWIG_fail;
34171 }
34172 resultobj = SWIG_Py_Void();
34173 return resultobj;
34174fail:
34175 return NULL;
34176}
34177
34178
34179SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34180 PyObject *resultobj = 0;
34181 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34182 wxImageList *arg2 = (wxImageList *) 0 ;
34183 void *argp1 = 0 ;
34184 int res1 = 0 ;
34185 int res2 = 0 ;
34186 PyObject * obj0 = 0 ;
34187 PyObject * obj1 = 0 ;
34188 char * kwnames[] = {
34189 (char *) "self",(char *) "imageList", NULL
34190 };
34191
34192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34194 if (!SWIG_IsOK(res1)) {
34195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34196 }
34197 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34198 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34199 if (!SWIG_IsOK(res2)) {
34200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34201 }
34202 {
34203 PyThreadState* __tstate = wxPyBeginAllowThreads();
34204 (arg1)->AssignImageList(arg2);
34205 wxPyEndAllowThreads(__tstate);
34206 if (PyErr_Occurred()) SWIG_fail;
34207 }
34208 resultobj = SWIG_Py_Void();
34209 return resultobj;
34210fail:
34211 return NULL;
34212}
34213
34214
34215SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34216 PyObject *resultobj = 0;
34217 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34218 wxImageList *arg2 = (wxImageList *) 0 ;
34219 void *argp1 = 0 ;
34220 int res1 = 0 ;
34221 int res2 = 0 ;
34222 PyObject * obj0 = 0 ;
34223 PyObject * obj1 = 0 ;
34224 char * kwnames[] = {
34225 (char *) "self",(char *) "imageList", NULL
34226 };
34227
34228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34230 if (!SWIG_IsOK(res1)) {
34231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34232 }
34233 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34234 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34235 if (!SWIG_IsOK(res2)) {
34236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34237 }
34238 {
34239 PyThreadState* __tstate = wxPyBeginAllowThreads();
34240 (arg1)->AssignStateImageList(arg2);
34241 wxPyEndAllowThreads(__tstate);
34242 if (PyErr_Occurred()) SWIG_fail;
34243 }
34244 resultobj = SWIG_Py_Void();
34245 return resultobj;
34246fail:
34247 return NULL;
34248}
34249
34250
34251SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34252 PyObject *resultobj = 0;
34253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34254 wxTreeItemId *arg2 = 0 ;
34255 wxString result;
34256 void *argp1 = 0 ;
34257 int res1 = 0 ;
34258 void *argp2 = 0 ;
34259 int res2 = 0 ;
34260 PyObject * obj0 = 0 ;
34261 PyObject * obj1 = 0 ;
34262 char * kwnames[] = {
34263 (char *) "self",(char *) "item", NULL
34264 };
34265
34266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34268 if (!SWIG_IsOK(res1)) {
34269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34270 }
34271 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34273 if (!SWIG_IsOK(res2)) {
34274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34275 }
34276 if (!argp2) {
34277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34278 }
34279 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34280 {
34281 PyThreadState* __tstate = wxPyBeginAllowThreads();
34282 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34283 wxPyEndAllowThreads(__tstate);
34284 if (PyErr_Occurred()) SWIG_fail;
34285 }
34286 {
d14a1e28 34287#if wxUSE_UNICODE
0085ce49 34288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 34289#else
0085ce49 34290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 34291#endif
0085ce49
RD
34292 }
34293 return resultobj;
34294fail:
34295 return NULL;
34296}
34297
34298
34299SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34300 PyObject *resultobj = 0;
34301 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34302 wxTreeItemId *arg2 = 0 ;
34303 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34304 int result;
34305 void *argp1 = 0 ;
34306 int res1 = 0 ;
34307 void *argp2 = 0 ;
34308 int res2 = 0 ;
34309 int val3 ;
34310 int ecode3 = 0 ;
34311 PyObject * obj0 = 0 ;
34312 PyObject * obj1 = 0 ;
34313 PyObject * obj2 = 0 ;
34314 char * kwnames[] = {
34315 (char *) "self",(char *) "item",(char *) "which", NULL
34316 };
34317
34318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34320 if (!SWIG_IsOK(res1)) {
34321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34322 }
34323 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34325 if (!SWIG_IsOK(res2)) {
34326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34327 }
34328 if (!argp2) {
34329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34330 }
34331 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34332 if (obj2) {
34333 ecode3 = SWIG_AsVal_int(obj2, &val3);
34334 if (!SWIG_IsOK(ecode3)) {
34335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34336 }
34337 arg3 = static_cast< wxTreeItemIcon >(val3);
34338 }
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34342 wxPyEndAllowThreads(__tstate);
34343 if (PyErr_Occurred()) SWIG_fail;
34344 }
34345 resultobj = SWIG_From_int(static_cast< int >(result));
34346 return resultobj;
34347fail:
34348 return NULL;
34349}
34350
34351
34352SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34353 PyObject *resultobj = 0;
34354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34355 wxTreeItemId *arg2 = 0 ;
34356 wxPyTreeItemData *result = 0 ;
34357 void *argp1 = 0 ;
34358 int res1 = 0 ;
34359 void *argp2 = 0 ;
34360 int res2 = 0 ;
34361 PyObject * obj0 = 0 ;
34362 PyObject * obj1 = 0 ;
34363 char * kwnames[] = {
34364 (char *) "self",(char *) "item", NULL
34365 };
34366
34367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34369 if (!SWIG_IsOK(res1)) {
34370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34371 }
34372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34374 if (!SWIG_IsOK(res2)) {
34375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34376 }
34377 if (!argp2) {
34378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34379 }
34380 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34381 {
34382 PyThreadState* __tstate = wxPyBeginAllowThreads();
34383 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34388 return resultobj;
34389fail:
34390 return NULL;
34391}
34392
34393
34394SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34397 wxTreeItemId *arg2 = 0 ;
34398 PyObject *result = 0 ;
34399 void *argp1 = 0 ;
34400 int res1 = 0 ;
34401 void *argp2 = 0 ;
34402 int res2 = 0 ;
34403 PyObject * obj0 = 0 ;
34404 PyObject * obj1 = 0 ;
34405 char * kwnames[] = {
34406 (char *) "self",(char *) "item", NULL
34407 };
34408
34409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34411 if (!SWIG_IsOK(res1)) {
34412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34413 }
34414 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34416 if (!SWIG_IsOK(res2)) {
34417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34418 }
34419 if (!argp2) {
34420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34421 }
34422 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34423 {
34424 PyThreadState* __tstate = wxPyBeginAllowThreads();
34425 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34426 wxPyEndAllowThreads(__tstate);
34427 if (PyErr_Occurred()) SWIG_fail;
34428 }
34429 resultobj = result;
34430 return resultobj;
34431fail:
34432 return NULL;
34433}
34434
34435
34436SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34437 PyObject *resultobj = 0;
34438 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34439 wxTreeItemId *arg2 = 0 ;
34440 wxColour result;
34441 void *argp1 = 0 ;
34442 int res1 = 0 ;
34443 void *argp2 = 0 ;
34444 int res2 = 0 ;
34445 PyObject * obj0 = 0 ;
34446 PyObject * obj1 = 0 ;
34447 char * kwnames[] = {
34448 (char *) "self",(char *) "item", NULL
34449 };
34450
34451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34453 if (!SWIG_IsOK(res1)) {
34454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34455 }
34456 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34458 if (!SWIG_IsOK(res2)) {
34459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34460 }
34461 if (!argp2) {
34462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34463 }
34464 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34468 wxPyEndAllowThreads(__tstate);
34469 if (PyErr_Occurred()) SWIG_fail;
34470 }
34471 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34472 return resultobj;
34473fail:
34474 return NULL;
34475}
34476
34477
34478SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34479 PyObject *resultobj = 0;
34480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34481 wxTreeItemId *arg2 = 0 ;
34482 wxColour result;
34483 void *argp1 = 0 ;
34484 int res1 = 0 ;
34485 void *argp2 = 0 ;
34486 int res2 = 0 ;
34487 PyObject * obj0 = 0 ;
34488 PyObject * obj1 = 0 ;
34489 char * kwnames[] = {
34490 (char *) "self",(char *) "item", NULL
34491 };
34492
34493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34495 if (!SWIG_IsOK(res1)) {
34496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34497 }
34498 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34499 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34500 if (!SWIG_IsOK(res2)) {
34501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34502 }
34503 if (!argp2) {
34504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34505 }
34506 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34507 {
34508 PyThreadState* __tstate = wxPyBeginAllowThreads();
34509 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34510 wxPyEndAllowThreads(__tstate);
34511 if (PyErr_Occurred()) SWIG_fail;
34512 }
34513 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34514 return resultobj;
34515fail:
34516 return NULL;
34517}
34518
34519
34520SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34521 PyObject *resultobj = 0;
34522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34523 wxTreeItemId *arg2 = 0 ;
34524 wxFont result;
34525 void *argp1 = 0 ;
34526 int res1 = 0 ;
34527 void *argp2 = 0 ;
34528 int res2 = 0 ;
34529 PyObject * obj0 = 0 ;
34530 PyObject * obj1 = 0 ;
34531 char * kwnames[] = {
34532 (char *) "self",(char *) "item", NULL
34533 };
34534
34535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34537 if (!SWIG_IsOK(res1)) {
34538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34539 }
34540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34542 if (!SWIG_IsOK(res2)) {
34543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34544 }
34545 if (!argp2) {
34546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34547 }
34548 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34549 {
34550 PyThreadState* __tstate = wxPyBeginAllowThreads();
34551 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34552 wxPyEndAllowThreads(__tstate);
34553 if (PyErr_Occurred()) SWIG_fail;
34554 }
34555 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34556 return resultobj;
34557fail:
34558 return NULL;
34559}
34560
34561
34562SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34563 PyObject *resultobj = 0;
34564 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34565 wxTreeItemId *arg2 = 0 ;
34566 wxString *arg3 = 0 ;
34567 void *argp1 = 0 ;
34568 int res1 = 0 ;
34569 void *argp2 = 0 ;
34570 int res2 = 0 ;
34571 bool temp3 = false ;
34572 PyObject * obj0 = 0 ;
34573 PyObject * obj1 = 0 ;
34574 PyObject * obj2 = 0 ;
34575 char * kwnames[] = {
34576 (char *) "self",(char *) "item",(char *) "text", NULL
34577 };
34578
34579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34581 if (!SWIG_IsOK(res1)) {
34582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34583 }
34584 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34586 if (!SWIG_IsOK(res2)) {
34587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34588 }
34589 if (!argp2) {
34590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34591 }
34592 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34593 {
34594 arg3 = wxString_in_helper(obj2);
34595 if (arg3 == NULL) SWIG_fail;
34596 temp3 = true;
34597 }
34598 {
34599 PyThreadState* __tstate = wxPyBeginAllowThreads();
34600 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34601 wxPyEndAllowThreads(__tstate);
34602 if (PyErr_Occurred()) SWIG_fail;
34603 }
34604 resultobj = SWIG_Py_Void();
34605 {
34606 if (temp3)
34607 delete arg3;
34608 }
34609 return resultobj;
34610fail:
34611 {
34612 if (temp3)
34613 delete arg3;
34614 }
34615 return NULL;
34616}
34617
34618
34619SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34620 PyObject *resultobj = 0;
34621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34622 wxTreeItemId *arg2 = 0 ;
34623 int arg3 ;
34624 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34625 void *argp1 = 0 ;
34626 int res1 = 0 ;
34627 void *argp2 = 0 ;
34628 int res2 = 0 ;
34629 int val3 ;
34630 int ecode3 = 0 ;
34631 int val4 ;
34632 int ecode4 = 0 ;
34633 PyObject * obj0 = 0 ;
34634 PyObject * obj1 = 0 ;
34635 PyObject * obj2 = 0 ;
34636 PyObject * obj3 = 0 ;
34637 char * kwnames[] = {
34638 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34639 };
34640
34641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34643 if (!SWIG_IsOK(res1)) {
34644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34645 }
34646 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34648 if (!SWIG_IsOK(res2)) {
34649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34650 }
34651 if (!argp2) {
34652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34653 }
34654 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34655 ecode3 = SWIG_AsVal_int(obj2, &val3);
34656 if (!SWIG_IsOK(ecode3)) {
34657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34658 }
34659 arg3 = static_cast< int >(val3);
34660 if (obj3) {
34661 ecode4 = SWIG_AsVal_int(obj3, &val4);
34662 if (!SWIG_IsOK(ecode4)) {
34663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34664 }
34665 arg4 = static_cast< wxTreeItemIcon >(val4);
34666 }
34667 {
34668 PyThreadState* __tstate = wxPyBeginAllowThreads();
34669 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34670 wxPyEndAllowThreads(__tstate);
34671 if (PyErr_Occurred()) SWIG_fail;
34672 }
34673 resultobj = SWIG_Py_Void();
34674 return resultobj;
34675fail:
34676 return NULL;
34677}
34678
34679
34680SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34681 PyObject *resultobj = 0;
34682 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34683 wxTreeItemId *arg2 = 0 ;
34684 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34685 void *argp1 = 0 ;
34686 int res1 = 0 ;
34687 void *argp2 = 0 ;
34688 int res2 = 0 ;
34689 int res3 = 0 ;
34690 PyObject * obj0 = 0 ;
34691 PyObject * obj1 = 0 ;
34692 PyObject * obj2 = 0 ;
34693 char * kwnames[] = {
34694 (char *) "self",(char *) "item",(char *) "data", NULL
34695 };
34696
34697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34699 if (!SWIG_IsOK(res1)) {
34700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34701 }
34702 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34704 if (!SWIG_IsOK(res2)) {
34705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34706 }
34707 if (!argp2) {
34708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34709 }
34710 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34711 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34712 if (!SWIG_IsOK(res3)) {
34713 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34714 }
34715 {
34716 PyThreadState* __tstate = wxPyBeginAllowThreads();
34717 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34718 wxPyEndAllowThreads(__tstate);
34719 if (PyErr_Occurred()) SWIG_fail;
34720 }
34721 resultobj = SWIG_Py_Void();
34722 return resultobj;
34723fail:
34724 return NULL;
34725}
34726
34727
34728SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34729 PyObject *resultobj = 0;
34730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34731 wxTreeItemId *arg2 = 0 ;
34732 PyObject *arg3 = (PyObject *) 0 ;
34733 void *argp1 = 0 ;
34734 int res1 = 0 ;
34735 void *argp2 = 0 ;
34736 int res2 = 0 ;
34737 PyObject * obj0 = 0 ;
34738 PyObject * obj1 = 0 ;
34739 PyObject * obj2 = 0 ;
34740 char * kwnames[] = {
34741 (char *) "self",(char *) "item",(char *) "obj", NULL
34742 };
34743
34744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34746 if (!SWIG_IsOK(res1)) {
34747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34748 }
34749 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34751 if (!SWIG_IsOK(res2)) {
34752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34753 }
34754 if (!argp2) {
34755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34756 }
34757 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34758 arg3 = obj2;
34759 {
34760 PyThreadState* __tstate = wxPyBeginAllowThreads();
34761 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34762 wxPyEndAllowThreads(__tstate);
34763 if (PyErr_Occurred()) SWIG_fail;
34764 }
34765 resultobj = SWIG_Py_Void();
34766 return resultobj;
34767fail:
34768 return NULL;
34769}
34770
34771
34772SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34773 PyObject *resultobj = 0;
34774 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34775 wxTreeItemId *arg2 = 0 ;
34776 bool arg3 = (bool) true ;
34777 void *argp1 = 0 ;
34778 int res1 = 0 ;
34779 void *argp2 = 0 ;
34780 int res2 = 0 ;
34781 bool val3 ;
34782 int ecode3 = 0 ;
34783 PyObject * obj0 = 0 ;
34784 PyObject * obj1 = 0 ;
34785 PyObject * obj2 = 0 ;
34786 char * kwnames[] = {
34787 (char *) "self",(char *) "item",(char *) "has", NULL
34788 };
34789
34790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34792 if (!SWIG_IsOK(res1)) {
34793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34794 }
34795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34797 if (!SWIG_IsOK(res2)) {
34798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34799 }
34800 if (!argp2) {
34801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34802 }
34803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34804 if (obj2) {
34805 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34806 if (!SWIG_IsOK(ecode3)) {
34807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34808 }
34809 arg3 = static_cast< bool >(val3);
34810 }
34811 {
34812 PyThreadState* __tstate = wxPyBeginAllowThreads();
34813 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34814 wxPyEndAllowThreads(__tstate);
34815 if (PyErr_Occurred()) SWIG_fail;
34816 }
34817 resultobj = SWIG_Py_Void();
34818 return resultobj;
34819fail:
34820 return NULL;
34821}
34822
34823
34824SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34825 PyObject *resultobj = 0;
34826 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34827 wxTreeItemId *arg2 = 0 ;
34828 bool arg3 = (bool) true ;
34829 void *argp1 = 0 ;
34830 int res1 = 0 ;
34831 void *argp2 = 0 ;
34832 int res2 = 0 ;
34833 bool val3 ;
34834 int ecode3 = 0 ;
34835 PyObject * obj0 = 0 ;
34836 PyObject * obj1 = 0 ;
34837 PyObject * obj2 = 0 ;
34838 char * kwnames[] = {
34839 (char *) "self",(char *) "item",(char *) "bold", NULL
34840 };
34841
34842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34844 if (!SWIG_IsOK(res1)) {
34845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34846 }
34847 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34849 if (!SWIG_IsOK(res2)) {
34850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34851 }
34852 if (!argp2) {
34853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34854 }
34855 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34856 if (obj2) {
34857 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34858 if (!SWIG_IsOK(ecode3)) {
34859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34860 }
34861 arg3 = static_cast< bool >(val3);
34862 }
34863 {
34864 PyThreadState* __tstate = wxPyBeginAllowThreads();
34865 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34866 wxPyEndAllowThreads(__tstate);
34867 if (PyErr_Occurred()) SWIG_fail;
34868 }
34869 resultobj = SWIG_Py_Void();
34870 return resultobj;
34871fail:
34872 return NULL;
34873}
34874
34875
34876SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34877 PyObject *resultobj = 0;
34878 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34879 wxTreeItemId *arg2 = 0 ;
34880 bool arg3 = (bool) true ;
34881 void *argp1 = 0 ;
34882 int res1 = 0 ;
34883 void *argp2 = 0 ;
34884 int res2 = 0 ;
34885 bool val3 ;
34886 int ecode3 = 0 ;
34887 PyObject * obj0 = 0 ;
34888 PyObject * obj1 = 0 ;
34889 PyObject * obj2 = 0 ;
34890 char * kwnames[] = {
34891 (char *) "self",(char *) "item",(char *) "highlight", NULL
34892 };
34893
34894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",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_SetItemDropHighlight" "', 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_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34903 }
34904 if (!argp2) {
34905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34906 }
34907 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34908 if (obj2) {
34909 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34910 if (!SWIG_IsOK(ecode3)) {
34911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34912 }
34913 arg3 = static_cast< bool >(val3);
34914 }
34915 {
34916 PyThreadState* __tstate = wxPyBeginAllowThreads();
34917 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34918 wxPyEndAllowThreads(__tstate);
34919 if (PyErr_Occurred()) SWIG_fail;
34920 }
34921 resultobj = SWIG_Py_Void();
34922 return resultobj;
34923fail:
34924 return NULL;
34925}
34926
34927
34928SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34929 PyObject *resultobj = 0;
34930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34931 wxTreeItemId *arg2 = 0 ;
34932 wxColour *arg3 = 0 ;
34933 void *argp1 = 0 ;
34934 int res1 = 0 ;
34935 void *argp2 = 0 ;
34936 int res2 = 0 ;
34937 wxColour temp3 ;
34938 PyObject * obj0 = 0 ;
34939 PyObject * obj1 = 0 ;
34940 PyObject * obj2 = 0 ;
34941 char * kwnames[] = {
34942 (char *) "self",(char *) "item",(char *) "col", NULL
34943 };
34944
34945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34947 if (!SWIG_IsOK(res1)) {
34948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34949 }
34950 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34952 if (!SWIG_IsOK(res2)) {
34953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34954 }
34955 if (!argp2) {
34956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34957 }
34958 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34959 {
34960 arg3 = &temp3;
34961 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34962 }
34963 {
34964 PyThreadState* __tstate = wxPyBeginAllowThreads();
34965 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34966 wxPyEndAllowThreads(__tstate);
34967 if (PyErr_Occurred()) SWIG_fail;
34968 }
34969 resultobj = SWIG_Py_Void();
34970 return resultobj;
34971fail:
34972 return NULL;
34973}
34974
34975
34976SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34977 PyObject *resultobj = 0;
34978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34979 wxTreeItemId *arg2 = 0 ;
34980 wxColour *arg3 = 0 ;
34981 void *argp1 = 0 ;
34982 int res1 = 0 ;
34983 void *argp2 = 0 ;
34984 int res2 = 0 ;
34985 wxColour temp3 ;
34986 PyObject * obj0 = 0 ;
34987 PyObject * obj1 = 0 ;
34988 PyObject * obj2 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "item",(char *) "col", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34997 }
34998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35000 if (!SWIG_IsOK(res2)) {
35001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 if (!argp2) {
35004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35005 }
35006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35007 {
35008 arg3 = &temp3;
35009 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35010 }
35011 {
35012 PyThreadState* __tstate = wxPyBeginAllowThreads();
35013 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35014 wxPyEndAllowThreads(__tstate);
35015 if (PyErr_Occurred()) SWIG_fail;
35016 }
35017 resultobj = SWIG_Py_Void();
35018 return resultobj;
35019fail:
35020 return NULL;
35021}
35022
35023
35024SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35025 PyObject *resultobj = 0;
35026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35027 wxTreeItemId *arg2 = 0 ;
35028 wxFont *arg3 = 0 ;
35029 void *argp1 = 0 ;
35030 int res1 = 0 ;
35031 void *argp2 = 0 ;
35032 int res2 = 0 ;
35033 void *argp3 = 0 ;
35034 int res3 = 0 ;
35035 PyObject * obj0 = 0 ;
35036 PyObject * obj1 = 0 ;
35037 PyObject * obj2 = 0 ;
35038 char * kwnames[] = {
35039 (char *) "self",(char *) "item",(char *) "font", NULL
35040 };
35041
35042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35044 if (!SWIG_IsOK(res1)) {
35045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35046 }
35047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35049 if (!SWIG_IsOK(res2)) {
35050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35051 }
35052 if (!argp2) {
35053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35054 }
35055 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35056 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35057 if (!SWIG_IsOK(res3)) {
35058 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35059 }
35060 if (!argp3) {
35061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35062 }
35063 arg3 = reinterpret_cast< wxFont * >(argp3);
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35067 wxPyEndAllowThreads(__tstate);
35068 if (PyErr_Occurred()) SWIG_fail;
35069 }
35070 resultobj = SWIG_Py_Void();
35071 return resultobj;
35072fail:
35073 return NULL;
35074}
35075
35076
35077SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35078 PyObject *resultobj = 0;
35079 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35080 wxTreeItemId *arg2 = 0 ;
35081 bool result;
35082 void *argp1 = 0 ;
35083 int res1 = 0 ;
35084 void *argp2 = 0 ;
35085 int res2 = 0 ;
35086 PyObject * obj0 = 0 ;
35087 PyObject * obj1 = 0 ;
35088 char * kwnames[] = {
35089 (char *) "self",(char *) "item", NULL
35090 };
35091
35092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35094 if (!SWIG_IsOK(res1)) {
35095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35096 }
35097 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35099 if (!SWIG_IsOK(res2)) {
35100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35101 }
35102 if (!argp2) {
35103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35104 }
35105 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35106 {
35107 PyThreadState* __tstate = wxPyBeginAllowThreads();
35108 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35109 wxPyEndAllowThreads(__tstate);
35110 if (PyErr_Occurred()) SWIG_fail;
35111 }
35112 {
35113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35114 }
35115 return resultobj;
35116fail:
35117 return NULL;
35118}
35119
35120
35121SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35122 PyObject *resultobj = 0;
35123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35124 wxTreeItemId *arg2 = 0 ;
35125 bool result;
35126 void *argp1 = 0 ;
35127 int res1 = 0 ;
35128 void *argp2 = 0 ;
35129 int res2 = 0 ;
35130 PyObject * obj0 = 0 ;
35131 PyObject * obj1 = 0 ;
35132 char * kwnames[] = {
35133 (char *) "self",(char *) "item", NULL
35134 };
35135
35136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35138 if (!SWIG_IsOK(res1)) {
35139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35140 }
35141 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35143 if (!SWIG_IsOK(res2)) {
35144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35145 }
35146 if (!argp2) {
35147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35148 }
35149 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35150 {
35151 PyThreadState* __tstate = wxPyBeginAllowThreads();
35152 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35153 wxPyEndAllowThreads(__tstate);
35154 if (PyErr_Occurred()) SWIG_fail;
35155 }
35156 {
35157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35158 }
35159 return resultobj;
35160fail:
35161 return NULL;
35162}
35163
35164
35165SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35166 PyObject *resultobj = 0;
35167 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35168 wxTreeItemId *arg2 = 0 ;
35169 bool result;
35170 void *argp1 = 0 ;
35171 int res1 = 0 ;
35172 void *argp2 = 0 ;
35173 int res2 = 0 ;
35174 PyObject * obj0 = 0 ;
35175 PyObject * obj1 = 0 ;
35176 char * kwnames[] = {
35177 (char *) "self",(char *) "item", NULL
35178 };
35179
35180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35182 if (!SWIG_IsOK(res1)) {
35183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35184 }
35185 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35187 if (!SWIG_IsOK(res2)) {
35188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35189 }
35190 if (!argp2) {
35191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35192 }
35193 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35194 {
35195 PyThreadState* __tstate = wxPyBeginAllowThreads();
35196 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35197 wxPyEndAllowThreads(__tstate);
35198 if (PyErr_Occurred()) SWIG_fail;
35199 }
35200 {
35201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35202 }
35203 return resultobj;
35204fail:
35205 return NULL;
35206}
35207
35208
35209SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35210 PyObject *resultobj = 0;
35211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35212 wxTreeItemId *arg2 = 0 ;
35213 bool result;
35214 void *argp1 = 0 ;
35215 int res1 = 0 ;
35216 void *argp2 = 0 ;
35217 int res2 = 0 ;
35218 PyObject * obj0 = 0 ;
35219 PyObject * obj1 = 0 ;
35220 char * kwnames[] = {
35221 (char *) "self",(char *) "item", NULL
35222 };
35223
35224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35226 if (!SWIG_IsOK(res1)) {
35227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35228 }
35229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35231 if (!SWIG_IsOK(res2)) {
35232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35233 }
35234 if (!argp2) {
35235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35236 }
35237 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35238 {
35239 PyThreadState* __tstate = wxPyBeginAllowThreads();
35240 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35241 wxPyEndAllowThreads(__tstate);
35242 if (PyErr_Occurred()) SWIG_fail;
35243 }
35244 {
35245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35246 }
35247 return resultobj;
35248fail:
35249 return NULL;
35250}
35251
35252
35253SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35254 PyObject *resultobj = 0;
35255 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35256 wxTreeItemId *arg2 = 0 ;
35257 bool result;
35258 void *argp1 = 0 ;
35259 int res1 = 0 ;
35260 void *argp2 = 0 ;
35261 int res2 = 0 ;
35262 PyObject * obj0 = 0 ;
35263 PyObject * obj1 = 0 ;
35264 char * kwnames[] = {
35265 (char *) "self",(char *) "item", NULL
35266 };
35267
35268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35270 if (!SWIG_IsOK(res1)) {
35271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35272 }
35273 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35275 if (!SWIG_IsOK(res2)) {
35276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35277 }
35278 if (!argp2) {
35279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35280 }
35281 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35282 {
35283 PyThreadState* __tstate = wxPyBeginAllowThreads();
35284 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35285 wxPyEndAllowThreads(__tstate);
35286 if (PyErr_Occurred()) SWIG_fail;
35287 }
35288 {
35289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35290 }
35291 return resultobj;
35292fail:
35293 return NULL;
35294}
35295
35296
35297SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj = 0;
35299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35300 wxTreeItemId *arg2 = 0 ;
35301 bool arg3 = (bool) true ;
35302 size_t result;
35303 void *argp1 = 0 ;
35304 int res1 = 0 ;
35305 void *argp2 = 0 ;
35306 int res2 = 0 ;
35307 bool val3 ;
35308 int ecode3 = 0 ;
35309 PyObject * obj0 = 0 ;
35310 PyObject * obj1 = 0 ;
35311 PyObject * obj2 = 0 ;
35312 char * kwnames[] = {
35313 (char *) "self",(char *) "item",(char *) "recursively", NULL
35314 };
35315
35316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35318 if (!SWIG_IsOK(res1)) {
35319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35320 }
35321 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35323 if (!SWIG_IsOK(res2)) {
35324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35325 }
35326 if (!argp2) {
35327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35328 }
35329 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35330 if (obj2) {
35331 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35332 if (!SWIG_IsOK(ecode3)) {
35333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35334 }
35335 arg3 = static_cast< bool >(val3);
35336 }
35337 {
35338 PyThreadState* __tstate = wxPyBeginAllowThreads();
35339 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35340 wxPyEndAllowThreads(__tstate);
35341 if (PyErr_Occurred()) SWIG_fail;
35342 }
35343 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35344 return resultobj;
35345fail:
35346 return NULL;
d14a1e28
RD
35347}
35348
35349
0085ce49
RD
35350SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35351 PyObject *resultobj = 0;
35352 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35353 wxTreeItemId result;
35354 void *argp1 = 0 ;
35355 int res1 = 0 ;
35356 PyObject *swig_obj[1] ;
35357
35358 if (!args) SWIG_fail;
35359 swig_obj[0] = args;
35360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35361 if (!SWIG_IsOK(res1)) {
35362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35363 }
35364 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35365 {
35366 PyThreadState* __tstate = wxPyBeginAllowThreads();
35367 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35368 wxPyEndAllowThreads(__tstate);
35369 if (PyErr_Occurred()) SWIG_fail;
35370 }
35371 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35372 return resultobj;
35373fail:
35374 return NULL;
d14a1e28
RD
35375}
35376
35377
0085ce49
RD
35378SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35379 PyObject *resultobj = 0;
35380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35381 wxTreeItemId result;
35382 void *argp1 = 0 ;
35383 int res1 = 0 ;
35384 PyObject *swig_obj[1] ;
35385
35386 if (!args) SWIG_fail;
35387 swig_obj[0] = args;
35388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35389 if (!SWIG_IsOK(res1)) {
35390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35391 }
35392 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35393 {
35394 PyThreadState* __tstate = wxPyBeginAllowThreads();
35395 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35396 wxPyEndAllowThreads(__tstate);
35397 if (PyErr_Occurred()) SWIG_fail;
35398 }
35399 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35400 return resultobj;
35401fail:
35402 return NULL;
d14a1e28
RD
35403}
35404
35405
0085ce49
RD
35406SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35407 PyObject *resultobj = 0;
35408 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35409 PyObject *result = 0 ;
35410 void *argp1 = 0 ;
35411 int res1 = 0 ;
35412 PyObject *swig_obj[1] ;
35413
35414 if (!args) SWIG_fail;
35415 swig_obj[0] = args;
35416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35417 if (!SWIG_IsOK(res1)) {
35418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35419 }
35420 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35421 {
35422 PyThreadState* __tstate = wxPyBeginAllowThreads();
35423 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35424 wxPyEndAllowThreads(__tstate);
35425 if (PyErr_Occurred()) SWIG_fail;
35426 }
35427 resultobj = result;
35428 return resultobj;
35429fail:
35430 return NULL;
35431}
35432
35433
35434SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35435 PyObject *resultobj = 0;
35436 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35437 wxTreeItemId *arg2 = 0 ;
35438 wxTreeItemId result;
35439 void *argp1 = 0 ;
35440 int res1 = 0 ;
35441 void *argp2 = 0 ;
35442 int res2 = 0 ;
35443 PyObject * obj0 = 0 ;
35444 PyObject * obj1 = 0 ;
35445 char * kwnames[] = {
35446 (char *) "self",(char *) "item", NULL
35447 };
35448
35449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35451 if (!SWIG_IsOK(res1)) {
35452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35453 }
35454 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35456 if (!SWIG_IsOK(res2)) {
35457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35458 }
35459 if (!argp2) {
35460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35461 }
35462 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35463 {
35464 PyThreadState* __tstate = wxPyBeginAllowThreads();
35465 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35466 wxPyEndAllowThreads(__tstate);
35467 if (PyErr_Occurred()) SWIG_fail;
35468 }
35469 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35470 return resultobj;
35471fail:
35472 return NULL;
35473}
35474
35475
35476SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35477 PyObject *resultobj = 0;
35478 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35479 wxTreeItemId *arg2 = 0 ;
35480 PyObject *result = 0 ;
35481 void *argp1 = 0 ;
35482 int res1 = 0 ;
35483 void *argp2 = 0 ;
35484 int res2 = 0 ;
35485 PyObject * obj0 = 0 ;
35486 PyObject * obj1 = 0 ;
35487 char * kwnames[] = {
35488 (char *) "self",(char *) "item", NULL
35489 };
35490
35491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35493 if (!SWIG_IsOK(res1)) {
35494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35495 }
35496 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35498 if (!SWIG_IsOK(res2)) {
35499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35500 }
35501 if (!argp2) {
35502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35503 }
35504 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35505 {
35506 PyThreadState* __tstate = wxPyBeginAllowThreads();
35507 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35508 wxPyEndAllowThreads(__tstate);
35509 if (PyErr_Occurred()) SWIG_fail;
35510 }
35511 resultobj = result;
35512 return resultobj;
35513fail:
35514 return NULL;
35515}
35516
35517
35518SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35519 PyObject *resultobj = 0;
35520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35521 wxTreeItemId *arg2 = 0 ;
35522 void *arg3 = (void *) 0 ;
35523 PyObject *result = 0 ;
35524 void *argp1 = 0 ;
35525 int res1 = 0 ;
35526 void *argp2 = 0 ;
35527 int res2 = 0 ;
35528 int res3 ;
35529 PyObject * obj0 = 0 ;
35530 PyObject * obj1 = 0 ;
35531 PyObject * obj2 = 0 ;
35532 char * kwnames[] = {
35533 (char *) "self",(char *) "item",(char *) "cookie", NULL
35534 };
35535
35536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35538 if (!SWIG_IsOK(res1)) {
35539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35540 }
35541 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35543 if (!SWIG_IsOK(res2)) {
35544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35545 }
35546 if (!argp2) {
35547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35548 }
35549 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35550 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35551 if (!SWIG_IsOK(res3)) {
35552 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35553 }
35554 {
35555 PyThreadState* __tstate = wxPyBeginAllowThreads();
35556 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35557 wxPyEndAllowThreads(__tstate);
35558 if (PyErr_Occurred()) SWIG_fail;
35559 }
35560 resultobj = result;
35561 return resultobj;
35562fail:
35563 return NULL;
35564}
35565
35566
35567SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35568 PyObject *resultobj = 0;
35569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35570 wxTreeItemId *arg2 = 0 ;
35571 wxTreeItemId result;
35572 void *argp1 = 0 ;
35573 int res1 = 0 ;
35574 void *argp2 = 0 ;
35575 int res2 = 0 ;
35576 PyObject * obj0 = 0 ;
35577 PyObject * obj1 = 0 ;
35578 char * kwnames[] = {
35579 (char *) "self",(char *) "item", NULL
35580 };
35581
35582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35584 if (!SWIG_IsOK(res1)) {
35585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35586 }
35587 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35589 if (!SWIG_IsOK(res2)) {
35590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35591 }
35592 if (!argp2) {
35593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35594 }
35595 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35596 {
35597 PyThreadState* __tstate = wxPyBeginAllowThreads();
35598 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35599 wxPyEndAllowThreads(__tstate);
35600 if (PyErr_Occurred()) SWIG_fail;
35601 }
35602 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35603 return resultobj;
35604fail:
35605 return NULL;
35606}
35607
35608
35609SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35610 PyObject *resultobj = 0;
35611 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35612 wxTreeItemId *arg2 = 0 ;
35613 wxTreeItemId result;
35614 void *argp1 = 0 ;
35615 int res1 = 0 ;
35616 void *argp2 = 0 ;
35617 int res2 = 0 ;
35618 PyObject * obj0 = 0 ;
35619 PyObject * obj1 = 0 ;
35620 char * kwnames[] = {
35621 (char *) "self",(char *) "item", NULL
35622 };
35623
35624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35626 if (!SWIG_IsOK(res1)) {
35627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35628 }
35629 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35631 if (!SWIG_IsOK(res2)) {
35632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35633 }
35634 if (!argp2) {
35635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35636 }
35637 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35638 {
35639 PyThreadState* __tstate = wxPyBeginAllowThreads();
35640 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35641 wxPyEndAllowThreads(__tstate);
35642 if (PyErr_Occurred()) SWIG_fail;
35643 }
35644 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35645 return resultobj;
35646fail:
35647 return NULL;
35648}
35649
35650
35651SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35652 PyObject *resultobj = 0;
35653 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35654 wxTreeItemId *arg2 = 0 ;
35655 wxTreeItemId result;
35656 void *argp1 = 0 ;
35657 int res1 = 0 ;
35658 void *argp2 = 0 ;
35659 int res2 = 0 ;
35660 PyObject * obj0 = 0 ;
35661 PyObject * obj1 = 0 ;
35662 char * kwnames[] = {
35663 (char *) "self",(char *) "item", NULL
35664 };
35665
35666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35668 if (!SWIG_IsOK(res1)) {
35669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35670 }
35671 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35673 if (!SWIG_IsOK(res2)) {
35674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35675 }
35676 if (!argp2) {
35677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35678 }
35679 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35680 {
35681 PyThreadState* __tstate = wxPyBeginAllowThreads();
35682 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35683 wxPyEndAllowThreads(__tstate);
35684 if (PyErr_Occurred()) SWIG_fail;
35685 }
35686 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35687 return resultobj;
35688fail:
35689 return NULL;
d14a1e28
RD
35690}
35691
35692
0085ce49
RD
35693SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35694 PyObject *resultobj = 0;
35695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35696 wxTreeItemId result;
35697 void *argp1 = 0 ;
35698 int res1 = 0 ;
35699 PyObject *swig_obj[1] ;
35700
35701 if (!args) SWIG_fail;
35702 swig_obj[0] = args;
35703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35704 if (!SWIG_IsOK(res1)) {
35705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35706 }
35707 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35708 {
35709 PyThreadState* __tstate = wxPyBeginAllowThreads();
35710 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35711 wxPyEndAllowThreads(__tstate);
35712 if (PyErr_Occurred()) SWIG_fail;
35713 }
35714 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35715 return resultobj;
35716fail:
35717 return NULL;
35718}
35719
35720
35721SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35722 PyObject *resultobj = 0;
35723 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35724 wxTreeItemId *arg2 = 0 ;
35725 wxTreeItemId result;
35726 void *argp1 = 0 ;
35727 int res1 = 0 ;
35728 void *argp2 = 0 ;
35729 int res2 = 0 ;
35730 PyObject * obj0 = 0 ;
35731 PyObject * obj1 = 0 ;
35732 char * kwnames[] = {
35733 (char *) "self",(char *) "item", NULL
35734 };
35735
35736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35738 if (!SWIG_IsOK(res1)) {
35739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35740 }
35741 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35743 if (!SWIG_IsOK(res2)) {
35744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35745 }
35746 if (!argp2) {
35747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35748 }
35749 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35750 {
35751 PyThreadState* __tstate = wxPyBeginAllowThreads();
35752 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35753 wxPyEndAllowThreads(__tstate);
35754 if (PyErr_Occurred()) SWIG_fail;
35755 }
35756 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35757 return resultobj;
35758fail:
35759 return NULL;
35760}
35761
35762
35763SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35764 PyObject *resultobj = 0;
35765 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35766 wxTreeItemId *arg2 = 0 ;
35767 wxTreeItemId result;
35768 void *argp1 = 0 ;
35769 int res1 = 0 ;
35770 void *argp2 = 0 ;
35771 int res2 = 0 ;
35772 PyObject * obj0 = 0 ;
35773 PyObject * obj1 = 0 ;
35774 char * kwnames[] = {
35775 (char *) "self",(char *) "item", NULL
35776 };
35777
35778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35780 if (!SWIG_IsOK(res1)) {
35781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35782 }
35783 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35785 if (!SWIG_IsOK(res2)) {
35786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35787 }
35788 if (!argp2) {
35789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35790 }
35791 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35792 {
35793 PyThreadState* __tstate = wxPyBeginAllowThreads();
35794 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35799 return resultobj;
35800fail:
35801 return NULL;
35802}
35803
35804
35805SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35806 PyObject *resultobj = 0;
35807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35808 wxString *arg2 = 0 ;
35809 int arg3 = (int) -1 ;
35810 int arg4 = (int) -1 ;
35811 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35812 wxTreeItemId result;
35813 void *argp1 = 0 ;
35814 int res1 = 0 ;
35815 bool temp2 = false ;
35816 int val3 ;
35817 int ecode3 = 0 ;
35818 int val4 ;
35819 int ecode4 = 0 ;
35820 int res5 = 0 ;
35821 PyObject * obj0 = 0 ;
35822 PyObject * obj1 = 0 ;
35823 PyObject * obj2 = 0 ;
35824 PyObject * obj3 = 0 ;
35825 PyObject * obj4 = 0 ;
35826 char * kwnames[] = {
35827 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35828 };
35829
35830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35832 if (!SWIG_IsOK(res1)) {
35833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35834 }
35835 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35836 {
35837 arg2 = wxString_in_helper(obj1);
35838 if (arg2 == NULL) SWIG_fail;
35839 temp2 = true;
35840 }
35841 if (obj2) {
35842 ecode3 = SWIG_AsVal_int(obj2, &val3);
35843 if (!SWIG_IsOK(ecode3)) {
35844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35845 }
35846 arg3 = static_cast< int >(val3);
35847 }
35848 if (obj3) {
35849 ecode4 = SWIG_AsVal_int(obj3, &val4);
35850 if (!SWIG_IsOK(ecode4)) {
35851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35852 }
35853 arg4 = static_cast< int >(val4);
35854 }
35855 if (obj4) {
35856 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35857 if (!SWIG_IsOK(res5)) {
35858 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 35859 }
0085ce49
RD
35860 }
35861 {
35862 PyThreadState* __tstate = wxPyBeginAllowThreads();
35863 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35864 wxPyEndAllowThreads(__tstate);
35865 if (PyErr_Occurred()) SWIG_fail;
35866 }
35867 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35868 {
35869 if (temp2)
35870 delete arg2;
35871 }
35872 return resultobj;
35873fail:
35874 {
35875 if (temp2)
35876 delete arg2;
35877 }
35878 return NULL;
35879}
35880
35881
35882SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35883 PyObject *resultobj = 0;
35884 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35885 wxTreeItemId *arg2 = 0 ;
35886 wxString *arg3 = 0 ;
35887 int arg4 = (int) -1 ;
35888 int arg5 = (int) -1 ;
35889 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35890 wxTreeItemId result;
35891 void *argp1 = 0 ;
35892 int res1 = 0 ;
35893 void *argp2 = 0 ;
35894 int res2 = 0 ;
35895 bool temp3 = false ;
35896 int val4 ;
35897 int ecode4 = 0 ;
35898 int val5 ;
35899 int ecode5 = 0 ;
35900 int res6 = 0 ;
35901 PyObject * obj0 = 0 ;
35902 PyObject * obj1 = 0 ;
35903 PyObject * obj2 = 0 ;
35904 PyObject * obj3 = 0 ;
35905 PyObject * obj4 = 0 ;
35906 PyObject * obj5 = 0 ;
35907 char * kwnames[] = {
35908 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35909 };
35910
35911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35913 if (!SWIG_IsOK(res1)) {
35914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35915 }
35916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35918 if (!SWIG_IsOK(res2)) {
35919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35920 }
35921 if (!argp2) {
35922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35923 }
35924 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35925 {
35926 arg3 = wxString_in_helper(obj2);
35927 if (arg3 == NULL) SWIG_fail;
35928 temp3 = true;
35929 }
35930 if (obj3) {
35931 ecode4 = SWIG_AsVal_int(obj3, &val4);
35932 if (!SWIG_IsOK(ecode4)) {
35933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35934 }
35935 arg4 = static_cast< int >(val4);
35936 }
35937 if (obj4) {
35938 ecode5 = SWIG_AsVal_int(obj4, &val5);
35939 if (!SWIG_IsOK(ecode5)) {
35940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35941 }
35942 arg5 = static_cast< int >(val5);
35943 }
35944 if (obj5) {
35945 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35946 if (!SWIG_IsOK(res6)) {
35947 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35948 }
0085ce49
RD
35949 }
35950 {
35951 PyThreadState* __tstate = wxPyBeginAllowThreads();
35952 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35953 wxPyEndAllowThreads(__tstate);
35954 if (PyErr_Occurred()) SWIG_fail;
35955 }
35956 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35957 {
35958 if (temp3)
35959 delete arg3;
35960 }
35961 return resultobj;
35962fail:
35963 {
35964 if (temp3)
35965 delete arg3;
35966 }
35967 return NULL;
35968}
35969
35970
35971SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35972 PyObject *resultobj = 0;
35973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35974 wxTreeItemId *arg2 = 0 ;
35975 wxTreeItemId *arg3 = 0 ;
35976 wxString *arg4 = 0 ;
35977 int arg5 = (int) -1 ;
35978 int arg6 = (int) -1 ;
35979 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35980 wxTreeItemId result;
35981 void *argp1 = 0 ;
35982 int res1 = 0 ;
35983 void *argp2 = 0 ;
35984 int res2 = 0 ;
35985 void *argp3 = 0 ;
35986 int res3 = 0 ;
35987 bool temp4 = false ;
35988 int val5 ;
35989 int ecode5 = 0 ;
35990 int val6 ;
35991 int ecode6 = 0 ;
35992 int res7 = 0 ;
35993 PyObject * obj0 = 0 ;
35994 PyObject * obj1 = 0 ;
35995 PyObject * obj2 = 0 ;
35996 PyObject * obj3 = 0 ;
35997 PyObject * obj4 = 0 ;
35998 PyObject * obj5 = 0 ;
35999 PyObject * obj6 = 0 ;
36000 char * kwnames[] = {
36001 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36002 };
36003
36004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36006 if (!SWIG_IsOK(res1)) {
36007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36008 }
36009 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36010 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36011 if (!SWIG_IsOK(res2)) {
36012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36013 }
36014 if (!argp2) {
36015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36016 }
36017 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36018 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36019 if (!SWIG_IsOK(res3)) {
36020 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36021 }
36022 if (!argp3) {
36023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36024 }
36025 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36026 {
36027 arg4 = wxString_in_helper(obj3);
36028 if (arg4 == NULL) SWIG_fail;
36029 temp4 = true;
36030 }
36031 if (obj4) {
36032 ecode5 = SWIG_AsVal_int(obj4, &val5);
36033 if (!SWIG_IsOK(ecode5)) {
36034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36035 }
36036 arg5 = static_cast< int >(val5);
36037 }
36038 if (obj5) {
36039 ecode6 = SWIG_AsVal_int(obj5, &val6);
36040 if (!SWIG_IsOK(ecode6)) {
36041 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36042 }
36043 arg6 = static_cast< int >(val6);
36044 }
36045 if (obj6) {
36046 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36047 if (!SWIG_IsOK(res7)) {
36048 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36049 }
0085ce49
RD
36050 }
36051 {
36052 PyThreadState* __tstate = wxPyBeginAllowThreads();
36053 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36054 wxPyEndAllowThreads(__tstate);
36055 if (PyErr_Occurred()) SWIG_fail;
36056 }
36057 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36058 {
36059 if (temp4)
36060 delete arg4;
36061 }
36062 return resultobj;
36063fail:
36064 {
36065 if (temp4)
36066 delete arg4;
36067 }
36068 return NULL;
36069}
36070
36071
36072SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36073 PyObject *resultobj = 0;
36074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36075 wxTreeItemId *arg2 = 0 ;
36076 size_t arg3 ;
36077 wxString *arg4 = 0 ;
36078 int arg5 = (int) -1 ;
36079 int arg6 = (int) -1 ;
36080 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36081 wxTreeItemId result;
36082 void *argp1 = 0 ;
36083 int res1 = 0 ;
36084 void *argp2 = 0 ;
36085 int res2 = 0 ;
36086 size_t val3 ;
36087 int ecode3 = 0 ;
36088 bool temp4 = false ;
36089 int val5 ;
36090 int ecode5 = 0 ;
36091 int val6 ;
36092 int ecode6 = 0 ;
36093 int res7 = 0 ;
36094 PyObject * obj0 = 0 ;
36095 PyObject * obj1 = 0 ;
36096 PyObject * obj2 = 0 ;
36097 PyObject * obj3 = 0 ;
36098 PyObject * obj4 = 0 ;
36099 PyObject * obj5 = 0 ;
36100 PyObject * obj6 = 0 ;
36101 char * kwnames[] = {
36102 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36103 };
36104
36105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36107 if (!SWIG_IsOK(res1)) {
36108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36109 }
36110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36112 if (!SWIG_IsOK(res2)) {
36113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36114 }
36115 if (!argp2) {
36116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36117 }
36118 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36119 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36120 if (!SWIG_IsOK(ecode3)) {
36121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36122 }
36123 arg3 = static_cast< size_t >(val3);
36124 {
36125 arg4 = wxString_in_helper(obj3);
36126 if (arg4 == NULL) SWIG_fail;
36127 temp4 = true;
36128 }
36129 if (obj4) {
36130 ecode5 = SWIG_AsVal_int(obj4, &val5);
36131 if (!SWIG_IsOK(ecode5)) {
36132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36133 }
36134 arg5 = static_cast< int >(val5);
36135 }
36136 if (obj5) {
36137 ecode6 = SWIG_AsVal_int(obj5, &val6);
36138 if (!SWIG_IsOK(ecode6)) {
36139 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36140 }
36141 arg6 = static_cast< int >(val6);
36142 }
36143 if (obj6) {
36144 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36145 if (!SWIG_IsOK(res7)) {
36146 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 36147 }
0085ce49
RD
36148 }
36149 {
36150 PyThreadState* __tstate = wxPyBeginAllowThreads();
36151 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36152 wxPyEndAllowThreads(__tstate);
36153 if (PyErr_Occurred()) SWIG_fail;
36154 }
36155 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36156 {
36157 if (temp4)
36158 delete arg4;
36159 }
36160 return resultobj;
36161fail:
36162 {
36163 if (temp4)
36164 delete arg4;
36165 }
36166 return NULL;
36167}
36168
36169
36170SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36171 PyObject *resultobj = 0;
36172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36173 wxTreeItemId *arg2 = 0 ;
36174 wxString *arg3 = 0 ;
36175 int arg4 = (int) -1 ;
36176 int arg5 = (int) -1 ;
36177 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36178 wxTreeItemId result;
36179 void *argp1 = 0 ;
36180 int res1 = 0 ;
36181 void *argp2 = 0 ;
36182 int res2 = 0 ;
36183 bool temp3 = false ;
36184 int val4 ;
36185 int ecode4 = 0 ;
36186 int val5 ;
36187 int ecode5 = 0 ;
36188 int res6 = 0 ;
36189 PyObject * obj0 = 0 ;
36190 PyObject * obj1 = 0 ;
36191 PyObject * obj2 = 0 ;
36192 PyObject * obj3 = 0 ;
36193 PyObject * obj4 = 0 ;
36194 PyObject * obj5 = 0 ;
36195 char * kwnames[] = {
36196 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36197 };
36198
36199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36201 if (!SWIG_IsOK(res1)) {
36202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36203 }
36204 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36206 if (!SWIG_IsOK(res2)) {
36207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36208 }
36209 if (!argp2) {
36210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36211 }
36212 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36213 {
36214 arg3 = wxString_in_helper(obj2);
36215 if (arg3 == NULL) SWIG_fail;
36216 temp3 = true;
36217 }
36218 if (obj3) {
36219 ecode4 = SWIG_AsVal_int(obj3, &val4);
36220 if (!SWIG_IsOK(ecode4)) {
36221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36222 }
36223 arg4 = static_cast< int >(val4);
36224 }
36225 if (obj4) {
36226 ecode5 = SWIG_AsVal_int(obj4, &val5);
36227 if (!SWIG_IsOK(ecode5)) {
36228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36229 }
36230 arg5 = static_cast< int >(val5);
36231 }
36232 if (obj5) {
36233 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36234 if (!SWIG_IsOK(res6)) {
36235 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36236 }
0085ce49
RD
36237 }
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36245 {
36246 if (temp3)
36247 delete arg3;
36248 }
36249 return resultobj;
36250fail:
36251 {
36252 if (temp3)
36253 delete arg3;
36254 }
36255 return NULL;
36256}
36257
36258
36259SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36260 PyObject *resultobj = 0;
36261 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36262 wxTreeItemId *arg2 = 0 ;
36263 void *argp1 = 0 ;
36264 int res1 = 0 ;
36265 void *argp2 = 0 ;
36266 int res2 = 0 ;
36267 PyObject * obj0 = 0 ;
36268 PyObject * obj1 = 0 ;
36269 char * kwnames[] = {
36270 (char *) "self",(char *) "item", NULL
36271 };
36272
36273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36275 if (!SWIG_IsOK(res1)) {
36276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36277 }
36278 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36280 if (!SWIG_IsOK(res2)) {
36281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36282 }
36283 if (!argp2) {
36284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36285 }
36286 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36287 {
36288 PyThreadState* __tstate = wxPyBeginAllowThreads();
36289 (arg1)->Delete((wxTreeItemId const &)*arg2);
36290 wxPyEndAllowThreads(__tstate);
36291 if (PyErr_Occurred()) SWIG_fail;
36292 }
36293 resultobj = SWIG_Py_Void();
36294 return resultobj;
36295fail:
36296 return NULL;
36297}
36298
36299
36300SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36301 PyObject *resultobj = 0;
36302 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36303 wxTreeItemId *arg2 = 0 ;
36304 void *argp1 = 0 ;
36305 int res1 = 0 ;
36306 void *argp2 = 0 ;
36307 int res2 = 0 ;
36308 PyObject * obj0 = 0 ;
36309 PyObject * obj1 = 0 ;
36310 char * kwnames[] = {
36311 (char *) "self",(char *) "item", NULL
36312 };
36313
36314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36316 if (!SWIG_IsOK(res1)) {
36317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36318 }
36319 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36321 if (!SWIG_IsOK(res2)) {
36322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36323 }
36324 if (!argp2) {
36325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36326 }
36327 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36328 {
36329 PyThreadState* __tstate = wxPyBeginAllowThreads();
36330 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36331 wxPyEndAllowThreads(__tstate);
36332 if (PyErr_Occurred()) SWIG_fail;
36333 }
36334 resultobj = SWIG_Py_Void();
36335 return resultobj;
36336fail:
36337 return NULL;
3a04f143
RD
36338}
36339
36340
0085ce49
RD
36341SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36342 PyObject *resultobj = 0;
36343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36344 void *argp1 = 0 ;
36345 int res1 = 0 ;
36346 PyObject *swig_obj[1] ;
36347
36348 if (!args) SWIG_fail;
36349 swig_obj[0] = args;
36350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36351 if (!SWIG_IsOK(res1)) {
36352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36353 }
36354 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36355 {
36356 PyThreadState* __tstate = wxPyBeginAllowThreads();
36357 (arg1)->DeleteAllItems();
36358 wxPyEndAllowThreads(__tstate);
36359 if (PyErr_Occurred()) SWIG_fail;
36360 }
36361 resultobj = SWIG_Py_Void();
36362 return resultobj;
36363fail:
36364 return NULL;
36365}
36366
36367
36368SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36369 PyObject *resultobj = 0;
36370 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36371 wxTreeItemId *arg2 = 0 ;
36372 void *argp1 = 0 ;
36373 int res1 = 0 ;
36374 void *argp2 = 0 ;
36375 int res2 = 0 ;
36376 PyObject * obj0 = 0 ;
36377 PyObject * obj1 = 0 ;
36378 char * kwnames[] = {
36379 (char *) "self",(char *) "item", NULL
36380 };
36381
36382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36384 if (!SWIG_IsOK(res1)) {
36385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36386 }
36387 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36389 if (!SWIG_IsOK(res2)) {
36390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36391 }
36392 if (!argp2) {
36393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36394 }
36395 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36396 {
36397 PyThreadState* __tstate = wxPyBeginAllowThreads();
36398 (arg1)->Expand((wxTreeItemId const &)*arg2);
36399 wxPyEndAllowThreads(__tstate);
36400 if (PyErr_Occurred()) SWIG_fail;
36401 }
36402 resultobj = SWIG_Py_Void();
36403 return resultobj;
36404fail:
36405 return NULL;
36406}
36407
36408
453fb36b
RD
36409SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36410 PyObject *resultobj = 0;
36411 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36412 wxTreeItemId *arg2 = 0 ;
36413 void *argp1 = 0 ;
36414 int res1 = 0 ;
36415 void *argp2 = 0 ;
36416 int res2 = 0 ;
36417 PyObject * obj0 = 0 ;
36418 PyObject * obj1 = 0 ;
36419 char * kwnames[] = {
36420 (char *) "self",(char *) "item", NULL
36421 };
36422
36423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36425 if (!SWIG_IsOK(res1)) {
36426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36427 }
36428 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36429 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36430 if (!SWIG_IsOK(res2)) {
36431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36432 }
36433 if (!argp2) {
36434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36435 }
36436 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36437 {
36438 PyThreadState* __tstate = wxPyBeginAllowThreads();
36439 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36440 wxPyEndAllowThreads(__tstate);
36441 if (PyErr_Occurred()) SWIG_fail;
36442 }
36443 resultobj = SWIG_Py_Void();
36444 return resultobj;
36445fail:
36446 return NULL;
36447}
36448
36449
36450SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36451 PyObject *resultobj = 0;
36452 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36453 void *argp1 = 0 ;
36454 int res1 = 0 ;
36455 PyObject *swig_obj[1] ;
36456
36457 if (!args) SWIG_fail;
36458 swig_obj[0] = args;
36459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36460 if (!SWIG_IsOK(res1)) {
36461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36462 }
36463 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 (arg1)->ExpandAll();
36467 wxPyEndAllowThreads(__tstate);
36468 if (PyErr_Occurred()) SWIG_fail;
36469 }
36470 resultobj = SWIG_Py_Void();
36471 return resultobj;
36472fail:
36473 return NULL;
36474}
36475
36476
0085ce49
RD
36477SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36478 PyObject *resultobj = 0;
36479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36480 wxTreeItemId *arg2 = 0 ;
36481 void *argp1 = 0 ;
36482 int res1 = 0 ;
36483 void *argp2 = 0 ;
36484 int res2 = 0 ;
36485 PyObject * obj0 = 0 ;
36486 PyObject * obj1 = 0 ;
36487 char * kwnames[] = {
36488 (char *) "self",(char *) "item", NULL
36489 };
36490
36491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36493 if (!SWIG_IsOK(res1)) {
36494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36495 }
36496 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36498 if (!SWIG_IsOK(res2)) {
36499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36500 }
36501 if (!argp2) {
36502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36503 }
36504 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36505 {
36506 PyThreadState* __tstate = wxPyBeginAllowThreads();
36507 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36508 wxPyEndAllowThreads(__tstate);
36509 if (PyErr_Occurred()) SWIG_fail;
36510 }
36511 resultobj = SWIG_Py_Void();
36512 return resultobj;
36513fail:
36514 return NULL;
36515}
36516
36517
36518SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36519 PyObject *resultobj = 0;
36520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36521 wxTreeItemId *arg2 = 0 ;
36522 void *argp1 = 0 ;
36523 int res1 = 0 ;
36524 void *argp2 = 0 ;
36525 int res2 = 0 ;
36526 PyObject * obj0 = 0 ;
36527 PyObject * obj1 = 0 ;
36528 char * kwnames[] = {
36529 (char *) "self",(char *) "item", NULL
36530 };
36531
36532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36534 if (!SWIG_IsOK(res1)) {
36535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36536 }
36537 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36539 if (!SWIG_IsOK(res2)) {
36540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36541 }
36542 if (!argp2) {
36543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36544 }
36545 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36546 {
36547 PyThreadState* __tstate = wxPyBeginAllowThreads();
36548 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36549 wxPyEndAllowThreads(__tstate);
36550 if (PyErr_Occurred()) SWIG_fail;
36551 }
36552 resultobj = SWIG_Py_Void();
36553 return resultobj;
36554fail:
36555 return NULL;
36556}
36557
36558
36559SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36560 PyObject *resultobj = 0;
36561 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36562 wxTreeItemId *arg2 = 0 ;
36563 void *argp1 = 0 ;
36564 int res1 = 0 ;
36565 void *argp2 = 0 ;
36566 int res2 = 0 ;
36567 PyObject * obj0 = 0 ;
36568 PyObject * obj1 = 0 ;
36569 char * kwnames[] = {
36570 (char *) "self",(char *) "item", NULL
36571 };
36572
36573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36575 if (!SWIG_IsOK(res1)) {
36576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36577 }
36578 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36580 if (!SWIG_IsOK(res2)) {
36581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36582 }
36583 if (!argp2) {
36584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36585 }
36586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36587 {
36588 PyThreadState* __tstate = wxPyBeginAllowThreads();
36589 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36590 wxPyEndAllowThreads(__tstate);
36591 if (PyErr_Occurred()) SWIG_fail;
36592 }
36593 resultobj = SWIG_Py_Void();
36594 return resultobj;
36595fail:
36596 return NULL;
d14a1e28
RD
36597}
36598
36599
0085ce49
RD
36600SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36601 PyObject *resultobj = 0;
36602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36603 void *argp1 = 0 ;
36604 int res1 = 0 ;
36605 PyObject *swig_obj[1] ;
36606
36607 if (!args) SWIG_fail;
36608 swig_obj[0] = args;
36609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36610 if (!SWIG_IsOK(res1)) {
36611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36612 }
36613 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36614 {
36615 PyThreadState* __tstate = wxPyBeginAllowThreads();
36616 (arg1)->Unselect();
36617 wxPyEndAllowThreads(__tstate);
36618 if (PyErr_Occurred()) SWIG_fail;
36619 }
36620 resultobj = SWIG_Py_Void();
36621 return resultobj;
36622fail:
36623 return NULL;
36624}
36625
36626
36627SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36628 PyObject *resultobj = 0;
36629 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36630 wxTreeItemId *arg2 = 0 ;
36631 void *argp1 = 0 ;
36632 int res1 = 0 ;
36633 void *argp2 = 0 ;
36634 int res2 = 0 ;
36635 PyObject * obj0 = 0 ;
36636 PyObject * obj1 = 0 ;
36637 char * kwnames[] = {
36638 (char *) "self",(char *) "item", NULL
36639 };
36640
36641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36643 if (!SWIG_IsOK(res1)) {
36644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36645 }
36646 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36648 if (!SWIG_IsOK(res2)) {
36649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36650 }
36651 if (!argp2) {
36652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36653 }
36654 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36655 {
36656 PyThreadState* __tstate = wxPyBeginAllowThreads();
36657 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36658 wxPyEndAllowThreads(__tstate);
36659 if (PyErr_Occurred()) SWIG_fail;
36660 }
36661 resultobj = SWIG_Py_Void();
36662 return resultobj;
36663fail:
36664 return NULL;
d14a1e28
RD
36665}
36666
36667
0085ce49
RD
36668SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36669 PyObject *resultobj = 0;
36670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36671 void *argp1 = 0 ;
36672 int res1 = 0 ;
36673 PyObject *swig_obj[1] ;
36674
36675 if (!args) SWIG_fail;
36676 swig_obj[0] = args;
36677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36678 if (!SWIG_IsOK(res1)) {
36679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36680 }
36681 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36682 {
36683 PyThreadState* __tstate = wxPyBeginAllowThreads();
36684 (arg1)->UnselectAll();
36685 wxPyEndAllowThreads(__tstate);
36686 if (PyErr_Occurred()) SWIG_fail;
36687 }
36688 resultobj = SWIG_Py_Void();
36689 return resultobj;
36690fail:
36691 return NULL;
36692}
36693
36694
36695SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36696 PyObject *resultobj = 0;
36697 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36698 wxTreeItemId *arg2 = 0 ;
36699 bool arg3 = (bool) true ;
36700 void *argp1 = 0 ;
36701 int res1 = 0 ;
36702 void *argp2 = 0 ;
36703 int res2 = 0 ;
36704 bool val3 ;
36705 int ecode3 = 0 ;
36706 PyObject * obj0 = 0 ;
36707 PyObject * obj1 = 0 ;
36708 PyObject * obj2 = 0 ;
36709 char * kwnames[] = {
36710 (char *) "self",(char *) "item",(char *) "select", NULL
36711 };
36712
36713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36715 if (!SWIG_IsOK(res1)) {
36716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36717 }
36718 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36720 if (!SWIG_IsOK(res2)) {
36721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36722 }
36723 if (!argp2) {
36724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36725 }
36726 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36727 if (obj2) {
36728 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36729 if (!SWIG_IsOK(ecode3)) {
36730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36731 }
36732 arg3 = static_cast< bool >(val3);
36733 }
36734 {
36735 PyThreadState* __tstate = wxPyBeginAllowThreads();
36736 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_Py_Void();
36741 return resultobj;
36742fail:
36743 return NULL;
36744}
36745
36746
36747SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36748 PyObject *resultobj = 0;
36749 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36750 wxTreeItemId *arg2 = 0 ;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 void *argp2 = 0 ;
36754 int res2 = 0 ;
36755 PyObject * obj0 = 0 ;
36756 PyObject * obj1 = 0 ;
36757 char * kwnames[] = {
36758 (char *) "self",(char *) "item", NULL
36759 };
36760
36761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36763 if (!SWIG_IsOK(res1)) {
36764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36765 }
36766 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36768 if (!SWIG_IsOK(res2)) {
36769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36770 }
36771 if (!argp2) {
36772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36773 }
36774 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36775 {
36776 PyThreadState* __tstate = wxPyBeginAllowThreads();
36777 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36778 wxPyEndAllowThreads(__tstate);
36779 if (PyErr_Occurred()) SWIG_fail;
36780 }
36781 resultobj = SWIG_Py_Void();
36782 return resultobj;
36783fail:
36784 return NULL;
36785}
36786
36787
36788SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36789 PyObject *resultobj = 0;
36790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36791 wxTreeItemId *arg2 = 0 ;
36792 void *argp1 = 0 ;
36793 int res1 = 0 ;
36794 void *argp2 = 0 ;
36795 int res2 = 0 ;
36796 PyObject * obj0 = 0 ;
36797 PyObject * obj1 = 0 ;
36798 char * kwnames[] = {
36799 (char *) "self",(char *) "item", NULL
36800 };
36801
36802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36804 if (!SWIG_IsOK(res1)) {
36805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36806 }
36807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36809 if (!SWIG_IsOK(res2)) {
36810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36811 }
36812 if (!argp2) {
36813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36814 }
36815 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36816 {
36817 PyThreadState* __tstate = wxPyBeginAllowThreads();
36818 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36819 wxPyEndAllowThreads(__tstate);
36820 if (PyErr_Occurred()) SWIG_fail;
36821 }
36822 resultobj = SWIG_Py_Void();
36823 return resultobj;
36824fail:
36825 return NULL;
36826}
36827
36828
36829SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36830 PyObject *resultobj = 0;
36831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36832 wxTreeItemId *arg2 = 0 ;
36833 void *argp1 = 0 ;
36834 int res1 = 0 ;
36835 void *argp2 = 0 ;
36836 int res2 = 0 ;
36837 PyObject * obj0 = 0 ;
36838 PyObject * obj1 = 0 ;
36839 char * kwnames[] = {
36840 (char *) "self",(char *) "item", NULL
36841 };
36842
36843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36845 if (!SWIG_IsOK(res1)) {
36846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36847 }
36848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36850 if (!SWIG_IsOK(res2)) {
36851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36852 }
36853 if (!argp2) {
36854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36855 }
36856 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36857 {
36858 PyThreadState* __tstate = wxPyBeginAllowThreads();
36859 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36860 wxPyEndAllowThreads(__tstate);
36861 if (PyErr_Occurred()) SWIG_fail;
36862 }
36863 resultobj = SWIG_Py_Void();
36864 return resultobj;
36865fail:
36866 return NULL;
36867}
36868
36869
36870SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36871 PyObject *resultobj = 0;
36872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36873 wxTreeItemId *arg2 = 0 ;
36874 void *argp1 = 0 ;
36875 int res1 = 0 ;
36876 void *argp2 = 0 ;
36877 int res2 = 0 ;
36878 PyObject * obj0 = 0 ;
36879 PyObject * obj1 = 0 ;
36880 char * kwnames[] = {
36881 (char *) "self",(char *) "item", NULL
36882 };
36883
36884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36886 if (!SWIG_IsOK(res1)) {
36887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36888 }
36889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36891 if (!SWIG_IsOK(res2)) {
36892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36893 }
36894 if (!argp2) {
36895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36896 }
36897 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36898 {
36899 PyThreadState* __tstate = wxPyBeginAllowThreads();
36900 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36901 wxPyEndAllowThreads(__tstate);
36902 if (PyErr_Occurred()) SWIG_fail;
36903 }
36904 resultobj = SWIG_Py_Void();
36905 return resultobj;
36906fail:
36907 return NULL;
d14a1e28
RD
36908}
36909
36910
0085ce49
RD
36911SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36912 PyObject *resultobj = 0;
36913 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36914 wxTextCtrl *result = 0 ;
36915 void *argp1 = 0 ;
36916 int res1 = 0 ;
36917 PyObject *swig_obj[1] ;
36918
36919 if (!args) SWIG_fail;
36920 swig_obj[0] = args;
36921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36922 if (!SWIG_IsOK(res1)) {
36923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36924 }
36925 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36926 {
36927 PyThreadState* __tstate = wxPyBeginAllowThreads();
36928 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36929 wxPyEndAllowThreads(__tstate);
36930 if (PyErr_Occurred()) SWIG_fail;
36931 }
36932 {
36933 resultobj = wxPyMake_wxObject(result, 0);
36934 }
36935 return resultobj;
36936fail:
36937 return NULL;
36938}
36939
36940
36941SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36942 PyObject *resultobj = 0;
36943 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36944 wxTreeItemId *arg2 = 0 ;
36945 void *argp1 = 0 ;
36946 int res1 = 0 ;
36947 void *argp2 = 0 ;
36948 int res2 = 0 ;
36949 PyObject * obj0 = 0 ;
36950 PyObject * obj1 = 0 ;
36951 char * kwnames[] = {
36952 (char *) "self",(char *) "item", NULL
36953 };
36954
36955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36957 if (!SWIG_IsOK(res1)) {
36958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36959 }
36960 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36962 if (!SWIG_IsOK(res2)) {
36963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36964 }
36965 if (!argp2) {
36966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36967 }
36968 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36969 {
36970 PyThreadState* __tstate = wxPyBeginAllowThreads();
36971 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36972 wxPyEndAllowThreads(__tstate);
36973 if (PyErr_Occurred()) SWIG_fail;
36974 }
36975 resultobj = SWIG_Py_Void();
36976 return resultobj;
36977fail:
36978 return NULL;
36979}
36980
36981
36982SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36983 PyObject *resultobj = 0;
36984 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36985 wxPoint *arg2 = 0 ;
36986 int *arg3 = 0 ;
36987 wxTreeItemId result;
36988 void *argp1 = 0 ;
36989 int res1 = 0 ;
36990 wxPoint temp2 ;
36991 int temp3 ;
36992 int res3 = SWIG_TMPOBJ ;
36993 PyObject * obj0 = 0 ;
36994 PyObject * obj1 = 0 ;
36995 char * kwnames[] = {
36996 (char *) "self",(char *) "point", NULL
36997 };
36998
36999 arg3 = &temp3;
37000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37002 if (!SWIG_IsOK(res1)) {
37003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37004 }
37005 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37006 {
37007 arg2 = &temp2;
37008 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37009 }
37010 {
37011 PyThreadState* __tstate = wxPyBeginAllowThreads();
37012 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37013 wxPyEndAllowThreads(__tstate);
37014 if (PyErr_Occurred()) SWIG_fail;
37015 }
37016 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37017 if (SWIG_IsTmpObj(res3)) {
37018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37019 } else {
37020 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37022 }
37023 return resultobj;
37024fail:
37025 return NULL;
37026}
37027
37028
37029SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37030 PyObject *resultobj = 0;
37031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37032 wxTreeItemId *arg2 = 0 ;
37033 bool arg3 = (bool) false ;
37034 PyObject *result = 0 ;
37035 void *argp1 = 0 ;
37036 int res1 = 0 ;
37037 void *argp2 = 0 ;
37038 int res2 = 0 ;
37039 bool val3 ;
37040 int ecode3 = 0 ;
37041 PyObject * obj0 = 0 ;
37042 PyObject * obj1 = 0 ;
37043 PyObject * obj2 = 0 ;
37044 char * kwnames[] = {
37045 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37046 };
37047
37048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37050 if (!SWIG_IsOK(res1)) {
37051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37052 }
37053 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37055 if (!SWIG_IsOK(res2)) {
37056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37057 }
37058 if (!argp2) {
37059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37060 }
37061 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37062 if (obj2) {
37063 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37064 if (!SWIG_IsOK(ecode3)) {
37065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37066 }
37067 arg3 = static_cast< bool >(val3);
37068 }
37069 {
37070 PyThreadState* __tstate = wxPyBeginAllowThreads();
37071 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37072 wxPyEndAllowThreads(__tstate);
37073 if (PyErr_Occurred()) SWIG_fail;
37074 }
37075 resultobj = result;
37076 return resultobj;
37077fail:
37078 return NULL;
37079}
37080
37081
37082SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37083 PyObject *resultobj = 0;
37084 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37085 SwigValueWrapper<wxVisualAttributes > result;
37086 int val1 ;
37087 int ecode1 = 0 ;
37088 PyObject * obj0 = 0 ;
37089 char * kwnames[] = {
37090 (char *) "variant", NULL
37091 };
37092
37093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37094 if (obj0) {
37095 ecode1 = SWIG_AsVal_int(obj0, &val1);
37096 if (!SWIG_IsOK(ecode1)) {
37097 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37098 }
37099 arg1 = static_cast< wxWindowVariant >(val1);
37100 }
37101 {
37102 if (!wxPyCheckForApp()) SWIG_fail;
37103 PyThreadState* __tstate = wxPyBeginAllowThreads();
37104 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37105 wxPyEndAllowThreads(__tstate);
37106 if (PyErr_Occurred()) SWIG_fail;
37107 }
37108 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37109 return resultobj;
37110fail:
37111 return NULL;
d14a1e28
RD
37112}
37113
37114
2131d850
RD
37115SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37116 PyObject *resultobj = 0;
37117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37118 bool arg2 ;
37119 void *argp1 = 0 ;
37120 int res1 = 0 ;
37121 bool val2 ;
37122 int ecode2 = 0 ;
37123 PyObject * obj0 = 0 ;
37124 PyObject * obj1 = 0 ;
37125 char * kwnames[] = {
37126 (char *) "self",(char *) "q", NULL
37127 };
37128
37129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37131 if (!SWIG_IsOK(res1)) {
37132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37133 }
37134 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37135 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37136 if (!SWIG_IsOK(ecode2)) {
37137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37138 }
37139 arg2 = static_cast< bool >(val2);
37140 {
37141 PyThreadState* __tstate = wxPyBeginAllowThreads();
37142 (arg1)->SetQuickBestSize(arg2);
37143 wxPyEndAllowThreads(__tstate);
37144 if (PyErr_Occurred()) SWIG_fail;
37145 }
37146 resultobj = SWIG_Py_Void();
37147 return resultobj;
37148fail:
37149 return NULL;
37150}
37151
37152
37153SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37154 PyObject *resultobj = 0;
37155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37156 bool result;
37157 void *argp1 = 0 ;
37158 int res1 = 0 ;
37159 PyObject *swig_obj[1] ;
37160
37161 if (!args) SWIG_fail;
37162 swig_obj[0] = args;
37163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37164 if (!SWIG_IsOK(res1)) {
37165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37166 }
37167 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37168 {
37169 PyThreadState* __tstate = wxPyBeginAllowThreads();
37170 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37171 wxPyEndAllowThreads(__tstate);
37172 if (PyErr_Occurred()) SWIG_fail;
37173 }
37174 {
37175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37176 }
37177 return resultobj;
37178fail:
37179 return NULL;
37180}
37181
37182
0085ce49
RD
37183SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37184 PyObject *obj;
37185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37186 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37187 return SWIG_Py_Void();
d14a1e28
RD
37188}
37189
0085ce49
RD
37190SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37191 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
37192}
37193
0085ce49
RD
37194SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37195 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37196 return 1;
d14a1e28
RD
37197}
37198
37199
0085ce49
RD
37200SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37201 PyObject *pyobj = 0;
37202
37203 {
37204#if wxUSE_UNICODE
37205 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37206#else
37207 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37208#endif
37209 }
37210 return pyobj;
37211}
37212
37213
37214SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37215 PyObject *resultobj = 0;
37216 wxWindow *arg1 = (wxWindow *) 0 ;
37217 int arg2 = (int) (int)-1 ;
37218 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37219 wxString *arg3 = (wxString *) &arg3_defvalue ;
37220 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37221 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37222 wxSize const &arg5_defvalue = wxDefaultSize ;
37223 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37224 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37225 wxString const &arg7_defvalue = wxPyEmptyString ;
37226 wxString *arg7 = (wxString *) &arg7_defvalue ;
37227 int arg8 = (int) 0 ;
37228 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37229 wxString *arg9 = (wxString *) &arg9_defvalue ;
37230 wxGenericDirCtrl *result = 0 ;
37231 void *argp1 = 0 ;
37232 int res1 = 0 ;
37233 int val2 ;
37234 int ecode2 = 0 ;
37235 bool temp3 = false ;
37236 wxPoint temp4 ;
37237 wxSize temp5 ;
37238 long val6 ;
37239 int ecode6 = 0 ;
37240 bool temp7 = false ;
37241 int val8 ;
37242 int ecode8 = 0 ;
37243 bool temp9 = false ;
37244 PyObject * obj0 = 0 ;
37245 PyObject * obj1 = 0 ;
37246 PyObject * obj2 = 0 ;
37247 PyObject * obj3 = 0 ;
37248 PyObject * obj4 = 0 ;
37249 PyObject * obj5 = 0 ;
37250 PyObject * obj6 = 0 ;
37251 PyObject * obj7 = 0 ;
37252 PyObject * obj8 = 0 ;
37253 char * kwnames[] = {
37254 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37255 };
37256
37257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37259 if (!SWIG_IsOK(res1)) {
37260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37261 }
37262 arg1 = reinterpret_cast< wxWindow * >(argp1);
37263 if (obj1) {
37264 ecode2 = SWIG_AsVal_int(obj1, &val2);
37265 if (!SWIG_IsOK(ecode2)) {
37266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37267 }
37268 arg2 = static_cast< int >(val2);
37269 }
37270 if (obj2) {
d14a1e28 37271 {
0085ce49
RD
37272 arg3 = wxString_in_helper(obj2);
37273 if (arg3 == NULL) SWIG_fail;
37274 temp3 = true;
d14a1e28 37275 }
0085ce49
RD
37276 }
37277 if (obj3) {
4f89f6a3 37278 {
0085ce49
RD
37279 arg4 = &temp4;
37280 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 37281 }
0085ce49
RD
37282 }
37283 if (obj4) {
093d3ff1 37284 {
0085ce49
RD
37285 arg5 = &temp5;
37286 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37287 }
0085ce49
RD
37288 }
37289 if (obj5) {
37290 ecode6 = SWIG_AsVal_long(obj5, &val6);
37291 if (!SWIG_IsOK(ecode6)) {
37292 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37293 }
37294 arg6 = static_cast< long >(val6);
37295 }
37296 if (obj6) {
093d3ff1 37297 {
0085ce49
RD
37298 arg7 = wxString_in_helper(obj6);
37299 if (arg7 == NULL) SWIG_fail;
37300 temp7 = true;
093d3ff1 37301 }
0085ce49
RD
37302 }
37303 if (obj7) {
37304 ecode8 = SWIG_AsVal_int(obj7, &val8);
37305 if (!SWIG_IsOK(ecode8)) {
37306 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37307 }
37308 arg8 = static_cast< int >(val8);
37309 }
37310 if (obj8) {
d14a1e28 37311 {
0085ce49
RD
37312 arg9 = wxString_in_helper(obj8);
37313 if (arg9 == NULL) SWIG_fail;
37314 temp9 = true;
d14a1e28 37315 }
0085ce49
RD
37316 }
37317 {
37318 if (!wxPyCheckForApp()) SWIG_fail;
37319 PyThreadState* __tstate = wxPyBeginAllowThreads();
37320 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37321 wxPyEndAllowThreads(__tstate);
37322 if (PyErr_Occurred()) SWIG_fail;
37323 }
37324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37325 {
37326 if (temp3)
37327 delete arg3;
37328 }
37329 {
37330 if (temp7)
37331 delete arg7;
37332 }
37333 {
37334 if (temp9)
37335 delete arg9;
37336 }
37337 return resultobj;
37338fail:
37339 {
37340 if (temp3)
37341 delete arg3;
37342 }
37343 {
37344 if (temp7)
37345 delete arg7;
37346 }
37347 {
37348 if (temp9)
37349 delete arg9;
37350 }
37351 return NULL;
d14a1e28
RD
37352}
37353
37354
0085ce49
RD
37355SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37356 PyObject *resultobj = 0;
37357 wxGenericDirCtrl *result = 0 ;
37358
37359 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37360 {
37361 if (!wxPyCheckForApp()) SWIG_fail;
37362 PyThreadState* __tstate = wxPyBeginAllowThreads();
37363 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37364 wxPyEndAllowThreads(__tstate);
37365 if (PyErr_Occurred()) SWIG_fail;
37366 }
37367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37368 return resultobj;
37369fail:
37370 return NULL;
37371}
37372
37373
37374SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37375 PyObject *resultobj = 0;
37376 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37377 wxWindow *arg2 = (wxWindow *) 0 ;
37378 int arg3 = (int) (int)-1 ;
37379 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37380 wxString *arg4 = (wxString *) &arg4_defvalue ;
37381 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37382 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37383 wxSize const &arg6_defvalue = wxDefaultSize ;
37384 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37385 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37386 wxString const &arg8_defvalue = wxPyEmptyString ;
37387 wxString *arg8 = (wxString *) &arg8_defvalue ;
37388 int arg9 = (int) 0 ;
37389 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37390 wxString *arg10 = (wxString *) &arg10_defvalue ;
37391 bool result;
37392 void *argp1 = 0 ;
37393 int res1 = 0 ;
37394 void *argp2 = 0 ;
37395 int res2 = 0 ;
37396 int val3 ;
37397 int ecode3 = 0 ;
37398 bool temp4 = false ;
37399 wxPoint temp5 ;
37400 wxSize temp6 ;
37401 long val7 ;
37402 int ecode7 = 0 ;
37403 bool temp8 = false ;
37404 int val9 ;
37405 int ecode9 = 0 ;
37406 bool temp10 = false ;
37407 PyObject * obj0 = 0 ;
37408 PyObject * obj1 = 0 ;
37409 PyObject * obj2 = 0 ;
37410 PyObject * obj3 = 0 ;
37411 PyObject * obj4 = 0 ;
37412 PyObject * obj5 = 0 ;
37413 PyObject * obj6 = 0 ;
37414 PyObject * obj7 = 0 ;
37415 PyObject * obj8 = 0 ;
37416 PyObject * obj9 = 0 ;
37417 char * kwnames[] = {
37418 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37419 };
37420
37421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37423 if (!SWIG_IsOK(res1)) {
37424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37425 }
37426 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37427 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37428 if (!SWIG_IsOK(res2)) {
37429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37430 }
37431 arg2 = reinterpret_cast< wxWindow * >(argp2);
37432 if (obj2) {
37433 ecode3 = SWIG_AsVal_int(obj2, &val3);
37434 if (!SWIG_IsOK(ecode3)) {
37435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37436 }
37437 arg3 = static_cast< int >(val3);
37438 }
37439 if (obj3) {
093d3ff1 37440 {
0085ce49
RD
37441 arg4 = wxString_in_helper(obj3);
37442 if (arg4 == NULL) SWIG_fail;
37443 temp4 = true;
093d3ff1 37444 }
0085ce49
RD
37445 }
37446 if (obj4) {
093d3ff1 37447 {
0085ce49
RD
37448 arg5 = &temp5;
37449 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37450 }
0085ce49
RD
37451 }
37452 if (obj5) {
d14a1e28 37453 {
0085ce49
RD
37454 arg6 = &temp6;
37455 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 37456 }
0085ce49
RD
37457 }
37458 if (obj6) {
37459 ecode7 = SWIG_AsVal_long(obj6, &val7);
37460 if (!SWIG_IsOK(ecode7)) {
37461 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37462 }
37463 arg7 = static_cast< long >(val7);
37464 }
37465 if (obj7) {
093d3ff1 37466 {
0085ce49
RD
37467 arg8 = wxString_in_helper(obj7);
37468 if (arg8 == NULL) SWIG_fail;
37469 temp8 = true;
093d3ff1 37470 }
0085ce49
RD
37471 }
37472 if (obj8) {
37473 ecode9 = SWIG_AsVal_int(obj8, &val9);
37474 if (!SWIG_IsOK(ecode9)) {
37475 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37476 }
37477 arg9 = static_cast< int >(val9);
37478 }
37479 if (obj9) {
093d3ff1 37480 {
0085ce49
RD
37481 arg10 = wxString_in_helper(obj9);
37482 if (arg10 == NULL) SWIG_fail;
37483 temp10 = true;
093d3ff1 37484 }
0085ce49
RD
37485 }
37486 {
37487 PyThreadState* __tstate = wxPyBeginAllowThreads();
37488 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37489 wxPyEndAllowThreads(__tstate);
37490 if (PyErr_Occurred()) SWIG_fail;
37491 }
37492 {
37493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37494 }
37495 {
37496 if (temp4)
37497 delete arg4;
37498 }
37499 {
37500 if (temp8)
37501 delete arg8;
37502 }
37503 {
37504 if (temp10)
37505 delete arg10;
37506 }
37507 return resultobj;
37508fail:
37509 {
37510 if (temp4)
37511 delete arg4;
37512 }
37513 {
37514 if (temp8)
37515 delete arg8;
37516 }
37517 {
37518 if (temp10)
37519 delete arg10;
37520 }
37521 return NULL;
37522}
37523
37524
37525SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37526 PyObject *resultobj = 0;
37527 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37528 wxString *arg2 = 0 ;
37529 bool result;
37530 void *argp1 = 0 ;
37531 int res1 = 0 ;
37532 bool temp2 = false ;
37533 PyObject * obj0 = 0 ;
37534 PyObject * obj1 = 0 ;
37535 char * kwnames[] = {
37536 (char *) "self",(char *) "path", NULL
37537 };
37538
37539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37541 if (!SWIG_IsOK(res1)) {
37542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37543 }
37544 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37545 {
37546 arg2 = wxString_in_helper(obj1);
37547 if (arg2 == NULL) SWIG_fail;
37548 temp2 = true;
37549 }
37550 {
37551 PyThreadState* __tstate = wxPyBeginAllowThreads();
37552 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37553 wxPyEndAllowThreads(__tstate);
37554 if (PyErr_Occurred()) SWIG_fail;
37555 }
37556 {
37557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37558 }
37559 {
37560 if (temp2)
37561 delete arg2;
37562 }
37563 return resultobj;
37564fail:
37565 {
37566 if (temp2)
37567 delete arg2;
37568 }
37569 return NULL;
d14a1e28
RD
37570}
37571
37572
704eda0c
RD
37573SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37574 PyObject *resultobj = 0;
37575 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37576 wxString *arg2 = 0 ;
37577 bool result;
37578 void *argp1 = 0 ;
37579 int res1 = 0 ;
37580 bool temp2 = false ;
37581 PyObject * obj0 = 0 ;
37582 PyObject * obj1 = 0 ;
37583 char * kwnames[] = {
37584 (char *) "self",(char *) "path", NULL
37585 };
37586
37587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37589 if (!SWIG_IsOK(res1)) {
37590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37591 }
37592 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37593 {
37594 arg2 = wxString_in_helper(obj1);
37595 if (arg2 == NULL) SWIG_fail;
37596 temp2 = true;
37597 }
37598 {
37599 PyThreadState* __tstate = wxPyBeginAllowThreads();
37600 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37601 wxPyEndAllowThreads(__tstate);
37602 if (PyErr_Occurred()) SWIG_fail;
37603 }
37604 {
37605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37606 }
37607 {
37608 if (temp2)
37609 delete arg2;
37610 }
37611 return resultobj;
37612fail:
37613 {
37614 if (temp2)
37615 delete arg2;
37616 }
37617 return NULL;
37618}
37619
37620
0085ce49
RD
37621SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37622 PyObject *resultobj = 0;
37623 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37624 wxString result;
37625 void *argp1 = 0 ;
37626 int res1 = 0 ;
37627 PyObject *swig_obj[1] ;
37628
37629 if (!args) SWIG_fail;
37630 swig_obj[0] = args;
37631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37632 if (!SWIG_IsOK(res1)) {
37633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37634 }
37635 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37636 {
37637 PyThreadState* __tstate = wxPyBeginAllowThreads();
37638 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37639 wxPyEndAllowThreads(__tstate);
37640 if (PyErr_Occurred()) SWIG_fail;
37641 }
37642 {
37643#if wxUSE_UNICODE
37644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37645#else
37646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37647#endif
37648 }
37649 return resultobj;
37650fail:
37651 return NULL;
37652}
37653
37654
37655SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37656 PyObject *resultobj = 0;
37657 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37658 wxString *arg2 = 0 ;
37659 void *argp1 = 0 ;
37660 int res1 = 0 ;
37661 bool temp2 = false ;
37662 PyObject * obj0 = 0 ;
37663 PyObject * obj1 = 0 ;
37664 char * kwnames[] = {
37665 (char *) "self",(char *) "path", NULL
37666 };
37667
37668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37670 if (!SWIG_IsOK(res1)) {
37671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37672 }
37673 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37674 {
37675 arg2 = wxString_in_helper(obj1);
37676 if (arg2 == NULL) SWIG_fail;
37677 temp2 = true;
37678 }
37679 {
37680 PyThreadState* __tstate = wxPyBeginAllowThreads();
37681 (arg1)->SetDefaultPath((wxString const &)*arg2);
37682 wxPyEndAllowThreads(__tstate);
37683 if (PyErr_Occurred()) SWIG_fail;
37684 }
37685 resultobj = SWIG_Py_Void();
37686 {
37687 if (temp2)
37688 delete arg2;
37689 }
37690 return resultobj;
37691fail:
37692 {
37693 if (temp2)
37694 delete arg2;
37695 }
37696 return NULL;
d14a1e28
RD
37697}
37698
37699
0085ce49
RD
37700SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37701 PyObject *resultobj = 0;
37702 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37703 wxString result;
37704 void *argp1 = 0 ;
37705 int res1 = 0 ;
37706 PyObject *swig_obj[1] ;
37707
37708 if (!args) SWIG_fail;
37709 swig_obj[0] = args;
37710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37711 if (!SWIG_IsOK(res1)) {
37712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37713 }
37714 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37715 {
37716 PyThreadState* __tstate = wxPyBeginAllowThreads();
37717 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37718 wxPyEndAllowThreads(__tstate);
37719 if (PyErr_Occurred()) SWIG_fail;
37720 }
37721 {
37722#if wxUSE_UNICODE
37723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37724#else
37725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37726#endif
37727 }
37728 return resultobj;
37729fail:
37730 return NULL;
d14a1e28
RD
37731}
37732
37733
0085ce49
RD
37734SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37735 PyObject *resultobj = 0;
37736 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37737 wxString result;
37738 void *argp1 = 0 ;
37739 int res1 = 0 ;
37740 PyObject *swig_obj[1] ;
37741
37742 if (!args) SWIG_fail;
37743 swig_obj[0] = args;
37744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37745 if (!SWIG_IsOK(res1)) {
37746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37747 }
37748 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37749 {
37750 PyThreadState* __tstate = wxPyBeginAllowThreads();
37751 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37752 wxPyEndAllowThreads(__tstate);
37753 if (PyErr_Occurred()) SWIG_fail;
37754 }
37755 {
37756#if wxUSE_UNICODE
37757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37758#else
37759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37760#endif
37761 }
37762 return resultobj;
37763fail:
37764 return NULL;
37765}
37766
37767
37768SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37769 PyObject *resultobj = 0;
37770 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37771 wxString *arg2 = 0 ;
37772 void *argp1 = 0 ;
37773 int res1 = 0 ;
37774 bool temp2 = false ;
37775 PyObject * obj0 = 0 ;
37776 PyObject * obj1 = 0 ;
37777 char * kwnames[] = {
37778 (char *) "self",(char *) "path", NULL
37779 };
37780
37781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37783 if (!SWIG_IsOK(res1)) {
37784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37785 }
37786 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37787 {
37788 arg2 = wxString_in_helper(obj1);
37789 if (arg2 == NULL) SWIG_fail;
37790 temp2 = true;
37791 }
37792 {
37793 PyThreadState* __tstate = wxPyBeginAllowThreads();
37794 (arg1)->SetPath((wxString const &)*arg2);
37795 wxPyEndAllowThreads(__tstate);
37796 if (PyErr_Occurred()) SWIG_fail;
37797 }
37798 resultobj = SWIG_Py_Void();
37799 {
37800 if (temp2)
37801 delete arg2;
37802 }
37803 return resultobj;
37804fail:
37805 {
37806 if (temp2)
37807 delete arg2;
37808 }
37809 return NULL;
37810}
37811
37812
37813SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37814 PyObject *resultobj = 0;
37815 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37816 bool arg2 ;
37817 void *argp1 = 0 ;
37818 int res1 = 0 ;
37819 bool val2 ;
37820 int ecode2 = 0 ;
37821 PyObject * obj0 = 0 ;
37822 PyObject * obj1 = 0 ;
37823 char * kwnames[] = {
37824 (char *) "self",(char *) "show", NULL
37825 };
37826
37827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37829 if (!SWIG_IsOK(res1)) {
37830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37831 }
37832 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37833 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37834 if (!SWIG_IsOK(ecode2)) {
37835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37836 }
37837 arg2 = static_cast< bool >(val2);
37838 {
37839 PyThreadState* __tstate = wxPyBeginAllowThreads();
37840 (arg1)->ShowHidden(arg2);
37841 wxPyEndAllowThreads(__tstate);
37842 if (PyErr_Occurred()) SWIG_fail;
37843 }
37844 resultobj = SWIG_Py_Void();
37845 return resultobj;
37846fail:
37847 return NULL;
d14a1e28
RD
37848}
37849
37850
0085ce49
RD
37851SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37852 PyObject *resultobj = 0;
37853 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37854 bool result;
37855 void *argp1 = 0 ;
37856 int res1 = 0 ;
37857 PyObject *swig_obj[1] ;
37858
37859 if (!args) SWIG_fail;
37860 swig_obj[0] = args;
37861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37862 if (!SWIG_IsOK(res1)) {
37863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37864 }
37865 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37866 {
37867 PyThreadState* __tstate = wxPyBeginAllowThreads();
37868 result = (bool)(arg1)->GetShowHidden();
37869 wxPyEndAllowThreads(__tstate);
37870 if (PyErr_Occurred()) SWIG_fail;
37871 }
37872 {
37873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37874 }
37875 return resultobj;
37876fail:
37877 return NULL;
d14a1e28
RD
37878}
37879
37880
0085ce49
RD
37881SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37882 PyObject *resultobj = 0;
37883 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37884 wxString result;
37885 void *argp1 = 0 ;
37886 int res1 = 0 ;
37887 PyObject *swig_obj[1] ;
37888
37889 if (!args) SWIG_fail;
37890 swig_obj[0] = args;
37891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37892 if (!SWIG_IsOK(res1)) {
37893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37894 }
37895 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37896 {
37897 PyThreadState* __tstate = wxPyBeginAllowThreads();
37898 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37899 wxPyEndAllowThreads(__tstate);
37900 if (PyErr_Occurred()) SWIG_fail;
37901 }
37902 {
37903#if wxUSE_UNICODE
37904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37905#else
37906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37907#endif
37908 }
37909 return resultobj;
37910fail:
37911 return NULL;
37912}
37913
37914
37915SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37916 PyObject *resultobj = 0;
37917 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37918 wxString *arg2 = 0 ;
37919 void *argp1 = 0 ;
37920 int res1 = 0 ;
37921 bool temp2 = false ;
37922 PyObject * obj0 = 0 ;
37923 PyObject * obj1 = 0 ;
37924 char * kwnames[] = {
37925 (char *) "self",(char *) "filter", NULL
37926 };
37927
37928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37930 if (!SWIG_IsOK(res1)) {
37931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37932 }
37933 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37934 {
37935 arg2 = wxString_in_helper(obj1);
37936 if (arg2 == NULL) SWIG_fail;
37937 temp2 = true;
37938 }
37939 {
37940 PyThreadState* __tstate = wxPyBeginAllowThreads();
37941 (arg1)->SetFilter((wxString const &)*arg2);
37942 wxPyEndAllowThreads(__tstate);
37943 if (PyErr_Occurred()) SWIG_fail;
37944 }
37945 resultobj = SWIG_Py_Void();
37946 {
37947 if (temp2)
37948 delete arg2;
37949 }
37950 return resultobj;
37951fail:
37952 {
37953 if (temp2)
37954 delete arg2;
37955 }
37956 return NULL;
d14a1e28
RD
37957}
37958
37959
0085ce49
RD
37960SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37961 PyObject *resultobj = 0;
37962 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37963 int result;
37964 void *argp1 = 0 ;
37965 int res1 = 0 ;
37966 PyObject *swig_obj[1] ;
37967
37968 if (!args) SWIG_fail;
37969 swig_obj[0] = args;
37970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37971 if (!SWIG_IsOK(res1)) {
37972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37973 }
37974 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37975 {
37976 PyThreadState* __tstate = wxPyBeginAllowThreads();
37977 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37978 wxPyEndAllowThreads(__tstate);
37979 if (PyErr_Occurred()) SWIG_fail;
37980 }
37981 resultobj = SWIG_From_int(static_cast< int >(result));
37982 return resultobj;
37983fail:
37984 return NULL;
37985}
37986
37987
37988SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37989 PyObject *resultobj = 0;
37990 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37991 int arg2 ;
37992 void *argp1 = 0 ;
37993 int res1 = 0 ;
37994 int val2 ;
37995 int ecode2 = 0 ;
37996 PyObject * obj0 = 0 ;
37997 PyObject * obj1 = 0 ;
37998 char * kwnames[] = {
37999 (char *) "self",(char *) "n", NULL
38000 };
38001
38002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38004 if (!SWIG_IsOK(res1)) {
38005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38006 }
38007 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38008 ecode2 = SWIG_AsVal_int(obj1, &val2);
38009 if (!SWIG_IsOK(ecode2)) {
38010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38011 }
38012 arg2 = static_cast< int >(val2);
38013 {
38014 PyThreadState* __tstate = wxPyBeginAllowThreads();
38015 (arg1)->SetFilterIndex(arg2);
38016 wxPyEndAllowThreads(__tstate);
38017 if (PyErr_Occurred()) SWIG_fail;
38018 }
38019 resultobj = SWIG_Py_Void();
38020 return resultobj;
38021fail:
38022 return NULL;
d14a1e28
RD
38023}
38024
38025
0085ce49
RD
38026SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38027 PyObject *resultobj = 0;
38028 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38029 wxTreeItemId result;
38030 void *argp1 = 0 ;
38031 int res1 = 0 ;
38032 PyObject *swig_obj[1] ;
38033
38034 if (!args) SWIG_fail;
38035 swig_obj[0] = args;
38036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38037 if (!SWIG_IsOK(res1)) {
38038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38039 }
38040 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38041 {
38042 PyThreadState* __tstate = wxPyBeginAllowThreads();
38043 result = (arg1)->GetRootId();
38044 wxPyEndAllowThreads(__tstate);
38045 if (PyErr_Occurred()) SWIG_fail;
38046 }
38047 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38048 return resultobj;
38049fail:
38050 return NULL;
d14a1e28
RD
38051}
38052
38053
0085ce49
RD
38054SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38055 PyObject *resultobj = 0;
38056 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38057 wxPyTreeCtrl *result = 0 ;
38058 void *argp1 = 0 ;
38059 int res1 = 0 ;
38060 PyObject *swig_obj[1] ;
38061
38062 if (!args) SWIG_fail;
38063 swig_obj[0] = args;
38064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38065 if (!SWIG_IsOK(res1)) {
38066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38067 }
38068 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38069 {
38070 PyThreadState* __tstate = wxPyBeginAllowThreads();
38071 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38072 wxPyEndAllowThreads(__tstate);
38073 if (PyErr_Occurred()) SWIG_fail;
38074 }
38075 {
38076 resultobj = wxPyMake_wxObject(result, 0);
38077 }
38078 return resultobj;
38079fail:
38080 return NULL;
d14a1e28
RD
38081}
38082
38083
0085ce49
RD
38084SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38085 PyObject *resultobj = 0;
38086 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38087 wxDirFilterListCtrl *result = 0 ;
38088 void *argp1 = 0 ;
38089 int res1 = 0 ;
38090 PyObject *swig_obj[1] ;
38091
38092 if (!args) SWIG_fail;
38093 swig_obj[0] = args;
38094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38095 if (!SWIG_IsOK(res1)) {
38096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38097 }
38098 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38099 {
38100 PyThreadState* __tstate = wxPyBeginAllowThreads();
38101 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38102 wxPyEndAllowThreads(__tstate);
38103 if (PyErr_Occurred()) SWIG_fail;
38104 }
38105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38106 return resultobj;
38107fail:
38108 return NULL;
38109}
38110
38111
38112SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38113 PyObject *resultobj = 0;
38114 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38115 wxTreeItemId arg2 ;
38116 wxString *arg3 = 0 ;
38117 bool *arg4 = 0 ;
38118 wxTreeItemId result;
38119 void *argp1 = 0 ;
38120 int res1 = 0 ;
38121 void *argp2 ;
38122 int res2 = 0 ;
38123 bool temp3 = false ;
38124 bool temp4 ;
38125 int res4 = SWIG_TMPOBJ ;
38126 PyObject * obj0 = 0 ;
38127 PyObject * obj1 = 0 ;
38128 PyObject * obj2 = 0 ;
38129 char * kwnames[] = {
38130 (char *) "self",(char *) "parentId",(char *) "path", NULL
38131 };
38132
38133 arg4 = &temp4;
38134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38136 if (!SWIG_IsOK(res1)) {
38137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38138 }
38139 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38140 {
38141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38142 if (!SWIG_IsOK(res2)) {
38143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38144 }
38145 if (!argp2) {
38146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38147 } else {
38148 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38149 arg2 = *temp;
38150 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 38151 }
0085ce49
RD
38152 }
38153 {
38154 arg3 = wxString_in_helper(obj2);
38155 if (arg3 == NULL) SWIG_fail;
38156 temp3 = true;
38157 }
38158 {
38159 PyThreadState* __tstate = wxPyBeginAllowThreads();
38160 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38161 wxPyEndAllowThreads(__tstate);
38162 if (PyErr_Occurred()) SWIG_fail;
38163 }
38164 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38165 if (SWIG_IsTmpObj(res4)) {
38166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38167 } else {
38168 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38170 }
38171 {
38172 if (temp3)
38173 delete arg3;
38174 }
38175 return resultobj;
38176fail:
38177 {
38178 if (temp3)
38179 delete arg3;
38180 }
38181 return NULL;
d14a1e28
RD
38182}
38183
38184
0085ce49
RD
38185SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38186 PyObject *resultobj = 0;
38187 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38188 void *argp1 = 0 ;
38189 int res1 = 0 ;
38190 PyObject *swig_obj[1] ;
38191
38192 if (!args) SWIG_fail;
38193 swig_obj[0] = args;
38194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38195 if (!SWIG_IsOK(res1)) {
38196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38197 }
38198 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38199 {
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
38201 (arg1)->DoResize();
38202 wxPyEndAllowThreads(__tstate);
38203 if (PyErr_Occurred()) SWIG_fail;
38204 }
38205 resultobj = SWIG_Py_Void();
38206 return resultobj;
38207fail:
38208 return NULL;
d14a1e28
RD
38209}
38210
38211
0085ce49
RD
38212SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38213 PyObject *resultobj = 0;
38214 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 PyObject *swig_obj[1] ;
38218
38219 if (!args) SWIG_fail;
38220 swig_obj[0] = args;
38221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38222 if (!SWIG_IsOK(res1)) {
38223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38224 }
38225 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38226 {
38227 PyThreadState* __tstate = wxPyBeginAllowThreads();
38228 (arg1)->ReCreateTree();
38229 wxPyEndAllowThreads(__tstate);
38230 if (PyErr_Occurred()) SWIG_fail;
38231 }
38232 resultobj = SWIG_Py_Void();
38233 return resultobj;
38234fail:
38235 return NULL;
38236}
38237
38238
38239SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38240 PyObject *obj;
38241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38242 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38243 return SWIG_Py_Void();
38244}
38245
38246SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38247 return SWIG_Python_InitShadowInstance(args);
38248}
38249
38250SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38251 PyObject *resultobj = 0;
38252 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38253 int arg2 = (int) (int)-1 ;
38254 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38255 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38256 wxSize const &arg4_defvalue = wxDefaultSize ;
38257 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38258 long arg5 = (long) 0 ;
38259 wxDirFilterListCtrl *result = 0 ;
38260 void *argp1 = 0 ;
38261 int res1 = 0 ;
38262 int val2 ;
38263 int ecode2 = 0 ;
38264 wxPoint temp3 ;
38265 wxSize temp4 ;
38266 long val5 ;
38267 int ecode5 = 0 ;
38268 PyObject * obj0 = 0 ;
38269 PyObject * obj1 = 0 ;
38270 PyObject * obj2 = 0 ;
38271 PyObject * obj3 = 0 ;
38272 PyObject * obj4 = 0 ;
38273 char * kwnames[] = {
38274 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38275 };
38276
38277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38279 if (!SWIG_IsOK(res1)) {
38280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38281 }
38282 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38283 if (obj1) {
38284 ecode2 = SWIG_AsVal_int(obj1, &val2);
38285 if (!SWIG_IsOK(ecode2)) {
38286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38287 }
38288 arg2 = static_cast< int >(val2);
38289 }
38290 if (obj2) {
d14a1e28 38291 {
0085ce49
RD
38292 arg3 = &temp3;
38293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38294 }
0085ce49
RD
38295 }
38296 if (obj3) {
d14a1e28 38297 {
0085ce49
RD
38298 arg4 = &temp4;
38299 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38300 }
0085ce49
RD
38301 }
38302 if (obj4) {
38303 ecode5 = SWIG_AsVal_long(obj4, &val5);
38304 if (!SWIG_IsOK(ecode5)) {
38305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38306 }
38307 arg5 = static_cast< long >(val5);
38308 }
38309 {
38310 if (!wxPyCheckForApp()) SWIG_fail;
38311 PyThreadState* __tstate = wxPyBeginAllowThreads();
38312 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38313 wxPyEndAllowThreads(__tstate);
38314 if (PyErr_Occurred()) SWIG_fail;
38315 }
38316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38317 return resultobj;
38318fail:
38319 return NULL;
d14a1e28
RD
38320}
38321
38322
0085ce49
RD
38323SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38324 PyObject *resultobj = 0;
38325 wxDirFilterListCtrl *result = 0 ;
38326
38327 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38328 {
38329 if (!wxPyCheckForApp()) SWIG_fail;
38330 PyThreadState* __tstate = wxPyBeginAllowThreads();
38331 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38332 wxPyEndAllowThreads(__tstate);
38333 if (PyErr_Occurred()) SWIG_fail;
38334 }
38335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38336 return resultobj;
38337fail:
38338 return NULL;
38339}
38340
38341
38342SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38343 PyObject *resultobj = 0;
38344 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38345 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38346 int arg3 = (int) (int)-1 ;
38347 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38348 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38349 wxSize const &arg5_defvalue = wxDefaultSize ;
38350 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38351 long arg6 = (long) 0 ;
38352 bool result;
38353 void *argp1 = 0 ;
38354 int res1 = 0 ;
38355 void *argp2 = 0 ;
38356 int res2 = 0 ;
38357 int val3 ;
38358 int ecode3 = 0 ;
38359 wxPoint temp4 ;
38360 wxSize temp5 ;
38361 long val6 ;
38362 int ecode6 = 0 ;
38363 PyObject * obj0 = 0 ;
38364 PyObject * obj1 = 0 ;
38365 PyObject * obj2 = 0 ;
38366 PyObject * obj3 = 0 ;
38367 PyObject * obj4 = 0 ;
38368 PyObject * obj5 = 0 ;
38369 char * kwnames[] = {
38370 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38371 };
38372
38373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38375 if (!SWIG_IsOK(res1)) {
38376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38377 }
38378 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38380 if (!SWIG_IsOK(res2)) {
38381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38382 }
38383 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38384 if (obj2) {
38385 ecode3 = SWIG_AsVal_int(obj2, &val3);
38386 if (!SWIG_IsOK(ecode3)) {
38387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38388 }
38389 arg3 = static_cast< int >(val3);
38390 }
38391 if (obj3) {
093d3ff1 38392 {
0085ce49
RD
38393 arg4 = &temp4;
38394 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38395 }
0085ce49
RD
38396 }
38397 if (obj4) {
d14a1e28 38398 {
0085ce49
RD
38399 arg5 = &temp5;
38400 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 38401 }
0085ce49
RD
38402 }
38403 if (obj5) {
38404 ecode6 = SWIG_AsVal_long(obj5, &val6);
38405 if (!SWIG_IsOK(ecode6)) {
38406 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38407 }
38408 arg6 = static_cast< long >(val6);
38409 }
38410 {
38411 PyThreadState* __tstate = wxPyBeginAllowThreads();
38412 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38413 wxPyEndAllowThreads(__tstate);
38414 if (PyErr_Occurred()) SWIG_fail;
38415 }
38416 {
38417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38418 }
38419 return resultobj;
38420fail:
38421 return NULL;
38422}
38423
38424
38425SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38426 PyObject *resultobj = 0;
38427 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38428 wxString *arg2 = 0 ;
38429 int arg3 ;
38430 void *argp1 = 0 ;
38431 int res1 = 0 ;
38432 bool temp2 = false ;
38433 int val3 ;
38434 int ecode3 = 0 ;
38435 PyObject * obj0 = 0 ;
38436 PyObject * obj1 = 0 ;
38437 PyObject * obj2 = 0 ;
38438 char * kwnames[] = {
38439 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38440 };
38441
38442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38444 if (!SWIG_IsOK(res1)) {
38445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38446 }
38447 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38448 {
38449 arg2 = wxString_in_helper(obj1);
38450 if (arg2 == NULL) SWIG_fail;
38451 temp2 = true;
38452 }
38453 ecode3 = SWIG_AsVal_int(obj2, &val3);
38454 if (!SWIG_IsOK(ecode3)) {
38455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38456 }
38457 arg3 = static_cast< int >(val3);
38458 {
38459 PyThreadState* __tstate = wxPyBeginAllowThreads();
38460 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38461 wxPyEndAllowThreads(__tstate);
38462 if (PyErr_Occurred()) SWIG_fail;
38463 }
38464 resultobj = SWIG_Py_Void();
38465 {
38466 if (temp2)
38467 delete arg2;
38468 }
38469 return resultobj;
38470fail:
38471 {
38472 if (temp2)
38473 delete arg2;
38474 }
38475 return NULL;
38476}
38477
38478
38479SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38480 PyObject *obj;
38481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38482 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38483 return SWIG_Py_Void();
38484}
38485
38486SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38487 return SWIG_Python_InitShadowInstance(args);
38488}
38489
38490SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38491 PyObject *resultobj = 0;
38492 wxWindow *arg1 = (wxWindow *) 0 ;
38493 int arg2 = (int) (int)-1 ;
38494 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38495 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38496 wxSize const &arg4_defvalue = wxDefaultSize ;
38497 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38498 long arg5 = (long) 0 ;
38499 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38500 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38501 wxString const &arg7_defvalue = wxPyControlNameStr ;
38502 wxString *arg7 = (wxString *) &arg7_defvalue ;
38503 wxPyControl *result = 0 ;
38504 void *argp1 = 0 ;
38505 int res1 = 0 ;
38506 int val2 ;
38507 int ecode2 = 0 ;
38508 wxPoint temp3 ;
38509 wxSize temp4 ;
38510 long val5 ;
38511 int ecode5 = 0 ;
38512 void *argp6 = 0 ;
38513 int res6 = 0 ;
38514 bool temp7 = false ;
38515 PyObject * obj0 = 0 ;
38516 PyObject * obj1 = 0 ;
38517 PyObject * obj2 = 0 ;
38518 PyObject * obj3 = 0 ;
38519 PyObject * obj4 = 0 ;
38520 PyObject * obj5 = 0 ;
38521 PyObject * obj6 = 0 ;
38522 char * kwnames[] = {
38523 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38524 };
38525
38526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38528 if (!SWIG_IsOK(res1)) {
38529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38530 }
38531 arg1 = reinterpret_cast< wxWindow * >(argp1);
38532 if (obj1) {
38533 ecode2 = SWIG_AsVal_int(obj1, &val2);
38534 if (!SWIG_IsOK(ecode2)) {
38535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38536 }
38537 arg2 = static_cast< int >(val2);
38538 }
38539 if (obj2) {
093d3ff1 38540 {
0085ce49
RD
38541 arg3 = &temp3;
38542 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 38543 }
0085ce49
RD
38544 }
38545 if (obj3) {
d14a1e28 38546 {
0085ce49
RD
38547 arg4 = &temp4;
38548 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38549 }
0085ce49
RD
38550 }
38551 if (obj4) {
38552 ecode5 = SWIG_AsVal_long(obj4, &val5);
38553 if (!SWIG_IsOK(ecode5)) {
38554 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38555 }
38556 arg5 = static_cast< long >(val5);
38557 }
38558 if (obj5) {
38559 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38560 if (!SWIG_IsOK(res6)) {
38561 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38562 }
38563 if (!argp6) {
38564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38565 }
0085ce49
RD
38566 arg6 = reinterpret_cast< wxValidator * >(argp6);
38567 }
38568 if (obj6) {
d14a1e28 38569 {
0085ce49
RD
38570 arg7 = wxString_in_helper(obj6);
38571 if (arg7 == NULL) SWIG_fail;
38572 temp7 = true;
d14a1e28 38573 }
0085ce49
RD
38574 }
38575 {
38576 if (!wxPyCheckForApp()) SWIG_fail;
38577 PyThreadState* __tstate = wxPyBeginAllowThreads();
38578 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38579 wxPyEndAllowThreads(__tstate);
38580 if (PyErr_Occurred()) SWIG_fail;
38581 }
38582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38583 {
38584 if (temp7)
38585 delete arg7;
38586 }
38587 return resultobj;
38588fail:
38589 {
38590 if (temp7)
38591 delete arg7;
38592 }
38593 return NULL;
d14a1e28
RD
38594}
38595
38596
0085ce49
RD
38597SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38598 PyObject *resultobj = 0;
38599 wxPyControl *result = 0 ;
38600
38601 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38602 {
38603 if (!wxPyCheckForApp()) SWIG_fail;
38604 PyThreadState* __tstate = wxPyBeginAllowThreads();
38605 result = (wxPyControl *)new wxPyControl();
38606 wxPyEndAllowThreads(__tstate);
38607 if (PyErr_Occurred()) SWIG_fail;
38608 }
38609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38610 return resultobj;
38611fail:
38612 return NULL;
38613}
38614
38615
38616SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38617 PyObject *resultobj = 0;
38618 wxPyControl *arg1 = (wxPyControl *) 0 ;
38619 PyObject *arg2 = (PyObject *) 0 ;
38620 PyObject *arg3 = (PyObject *) 0 ;
38621 void *argp1 = 0 ;
38622 int res1 = 0 ;
38623 PyObject * obj0 = 0 ;
38624 PyObject * obj1 = 0 ;
38625 PyObject * obj2 = 0 ;
38626 char * kwnames[] = {
38627 (char *) "self",(char *) "self",(char *) "_class", NULL
38628 };
38629
38630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38632 if (!SWIG_IsOK(res1)) {
38633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38634 }
38635 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38636 arg2 = obj1;
38637 arg3 = obj2;
38638 {
38639 PyThreadState* __tstate = wxPyBeginAllowThreads();
38640 (arg1)->_setCallbackInfo(arg2,arg3);
38641 wxPyEndAllowThreads(__tstate);
38642 if (PyErr_Occurred()) SWIG_fail;
38643 }
38644 resultobj = SWIG_Py_Void();
38645 return resultobj;
38646fail:
38647 return NULL;
38648}
38649
38650
38651SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38652 PyObject *resultobj = 0;
38653 wxPyControl *arg1 = (wxPyControl *) 0 ;
38654 wxSize *arg2 = 0 ;
38655 void *argp1 = 0 ;
38656 int res1 = 0 ;
38657 wxSize temp2 ;
38658 PyObject * obj0 = 0 ;
38659 PyObject * obj1 = 0 ;
38660 char * kwnames[] = {
38661 (char *) "self",(char *) "size", NULL
38662 };
38663
38664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38666 if (!SWIG_IsOK(res1)) {
38667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38668 }
38669 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38670 {
38671 arg2 = &temp2;
38672 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38673 }
38674 {
38675 PyThreadState* __tstate = wxPyBeginAllowThreads();
38676 (arg1)->SetBestSize((wxSize const &)*arg2);
38677 wxPyEndAllowThreads(__tstate);
38678 if (PyErr_Occurred()) SWIG_fail;
38679 }
38680 resultobj = SWIG_Py_Void();
38681 return resultobj;
38682fail:
38683 return NULL;
38684}
38685
38686
38687SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38688 PyObject *resultobj = 0;
38689 wxPyControl *arg1 = (wxPyControl *) 0 ;
38690 wxDC *arg2 = (wxDC *) 0 ;
38691 bool result;
38692 void *argp1 = 0 ;
38693 int res1 = 0 ;
38694 void *argp2 = 0 ;
38695 int res2 = 0 ;
38696 PyObject * obj0 = 0 ;
38697 PyObject * obj1 = 0 ;
38698 char * kwnames[] = {
38699 (char *) "self",(char *) "dc", NULL
38700 };
38701
38702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38704 if (!SWIG_IsOK(res1)) {
38705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38706 }
38707 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38708 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38709 if (!SWIG_IsOK(res2)) {
38710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38711 }
38712 arg2 = reinterpret_cast< wxDC * >(argp2);
38713 {
38714 PyThreadState* __tstate = wxPyBeginAllowThreads();
38715 result = (bool)(arg1)->DoEraseBackground(arg2);
38716 wxPyEndAllowThreads(__tstate);
38717 if (PyErr_Occurred()) SWIG_fail;
38718 }
38719 {
38720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38721 }
38722 return resultobj;
38723fail:
38724 return NULL;
38725}
38726
38727
38728SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38729 PyObject *resultobj = 0;
38730 wxPyControl *arg1 = (wxPyControl *) 0 ;
38731 int arg2 ;
38732 int arg3 ;
38733 int arg4 ;
38734 int arg5 ;
38735 void *argp1 = 0 ;
38736 int res1 = 0 ;
38737 int val2 ;
38738 int ecode2 = 0 ;
38739 int val3 ;
38740 int ecode3 = 0 ;
38741 int val4 ;
38742 int ecode4 = 0 ;
38743 int val5 ;
38744 int ecode5 = 0 ;
38745 PyObject * obj0 = 0 ;
38746 PyObject * obj1 = 0 ;
38747 PyObject * obj2 = 0 ;
38748 PyObject * obj3 = 0 ;
38749 PyObject * obj4 = 0 ;
38750 char * kwnames[] = {
38751 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38752 };
38753
38754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38756 if (!SWIG_IsOK(res1)) {
38757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38758 }
38759 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38760 ecode2 = SWIG_AsVal_int(obj1, &val2);
38761 if (!SWIG_IsOK(ecode2)) {
38762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38763 }
38764 arg2 = static_cast< int >(val2);
38765 ecode3 = SWIG_AsVal_int(obj2, &val3);
38766 if (!SWIG_IsOK(ecode3)) {
38767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38768 }
38769 arg3 = static_cast< int >(val3);
38770 ecode4 = SWIG_AsVal_int(obj3, &val4);
38771 if (!SWIG_IsOK(ecode4)) {
38772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38773 }
38774 arg4 = static_cast< int >(val4);
38775 ecode5 = SWIG_AsVal_int(obj4, &val5);
38776 if (!SWIG_IsOK(ecode5)) {
38777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38778 }
38779 arg5 = static_cast< int >(val5);
38780 {
38781 PyThreadState* __tstate = wxPyBeginAllowThreads();
38782 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38783 wxPyEndAllowThreads(__tstate);
38784 if (PyErr_Occurred()) SWIG_fail;
38785 }
38786 resultobj = SWIG_Py_Void();
38787 return resultobj;
38788fail:
38789 return NULL;
38790}
38791
38792
38793SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38794 PyObject *resultobj = 0;
38795 wxPyControl *arg1 = (wxPyControl *) 0 ;
38796 int arg2 ;
38797 int arg3 ;
38798 int arg4 ;
38799 int arg5 ;
38800 int arg6 = (int) wxSIZE_AUTO ;
38801 void *argp1 = 0 ;
38802 int res1 = 0 ;
38803 int val2 ;
38804 int ecode2 = 0 ;
38805 int val3 ;
38806 int ecode3 = 0 ;
38807 int val4 ;
38808 int ecode4 = 0 ;
38809 int val5 ;
38810 int ecode5 = 0 ;
38811 int val6 ;
38812 int ecode6 = 0 ;
38813 PyObject * obj0 = 0 ;
38814 PyObject * obj1 = 0 ;
38815 PyObject * obj2 = 0 ;
38816 PyObject * obj3 = 0 ;
38817 PyObject * obj4 = 0 ;
38818 PyObject * obj5 = 0 ;
38819 char * kwnames[] = {
38820 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38821 };
38822
38823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38825 if (!SWIG_IsOK(res1)) {
38826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38827 }
38828 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38829 ecode2 = SWIG_AsVal_int(obj1, &val2);
38830 if (!SWIG_IsOK(ecode2)) {
38831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38832 }
38833 arg2 = static_cast< int >(val2);
38834 ecode3 = SWIG_AsVal_int(obj2, &val3);
38835 if (!SWIG_IsOK(ecode3)) {
38836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38837 }
38838 arg3 = static_cast< int >(val3);
38839 ecode4 = SWIG_AsVal_int(obj3, &val4);
38840 if (!SWIG_IsOK(ecode4)) {
38841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38842 }
38843 arg4 = static_cast< int >(val4);
38844 ecode5 = SWIG_AsVal_int(obj4, &val5);
38845 if (!SWIG_IsOK(ecode5)) {
38846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38847 }
38848 arg5 = static_cast< int >(val5);
38849 if (obj5) {
38850 ecode6 = SWIG_AsVal_int(obj5, &val6);
38851 if (!SWIG_IsOK(ecode6)) {
38852 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38853 }
38854 arg6 = static_cast< int >(val6);
38855 }
38856 {
38857 PyThreadState* __tstate = wxPyBeginAllowThreads();
38858 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38859 wxPyEndAllowThreads(__tstate);
38860 if (PyErr_Occurred()) SWIG_fail;
38861 }
38862 resultobj = SWIG_Py_Void();
38863 return resultobj;
38864fail:
38865 return NULL;
38866}
38867
38868
38869SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38870 PyObject *resultobj = 0;
38871 wxPyControl *arg1 = (wxPyControl *) 0 ;
38872 int arg2 ;
38873 int arg3 ;
38874 void *argp1 = 0 ;
38875 int res1 = 0 ;
38876 int val2 ;
38877 int ecode2 = 0 ;
38878 int val3 ;
38879 int ecode3 = 0 ;
38880 PyObject * obj0 = 0 ;
38881 PyObject * obj1 = 0 ;
38882 PyObject * obj2 = 0 ;
38883 char * kwnames[] = {
38884 (char *) "self",(char *) "width",(char *) "height", NULL
38885 };
38886
38887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38889 if (!SWIG_IsOK(res1)) {
38890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38891 }
38892 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38893 ecode2 = SWIG_AsVal_int(obj1, &val2);
38894 if (!SWIG_IsOK(ecode2)) {
38895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38896 }
38897 arg2 = static_cast< int >(val2);
38898 ecode3 = SWIG_AsVal_int(obj2, &val3);
38899 if (!SWIG_IsOK(ecode3)) {
38900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38901 }
38902 arg3 = static_cast< int >(val3);
38903 {
38904 PyThreadState* __tstate = wxPyBeginAllowThreads();
38905 (arg1)->DoSetClientSize(arg2,arg3);
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 resultobj = SWIG_Py_Void();
38910 return resultobj;
38911fail:
38912 return NULL;
38913}
38914
38915
38916SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38917 PyObject *resultobj = 0;
38918 wxPyControl *arg1 = (wxPyControl *) 0 ;
38919 int arg2 ;
38920 int arg3 ;
38921 void *argp1 = 0 ;
38922 int res1 = 0 ;
38923 int val2 ;
38924 int ecode2 = 0 ;
38925 int val3 ;
38926 int ecode3 = 0 ;
38927 PyObject * obj0 = 0 ;
38928 PyObject * obj1 = 0 ;
38929 PyObject * obj2 = 0 ;
38930 char * kwnames[] = {
38931 (char *) "self",(char *) "x",(char *) "y", NULL
38932 };
38933
38934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38936 if (!SWIG_IsOK(res1)) {
38937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38938 }
38939 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38940 ecode2 = SWIG_AsVal_int(obj1, &val2);
38941 if (!SWIG_IsOK(ecode2)) {
38942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38943 }
38944 arg2 = static_cast< int >(val2);
38945 ecode3 = SWIG_AsVal_int(obj2, &val3);
38946 if (!SWIG_IsOK(ecode3)) {
38947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38948 }
38949 arg3 = static_cast< int >(val3);
38950 {
38951 PyThreadState* __tstate = wxPyBeginAllowThreads();
38952 (arg1)->DoSetVirtualSize(arg2,arg3);
38953 wxPyEndAllowThreads(__tstate);
38954 if (PyErr_Occurred()) SWIG_fail;
38955 }
38956 resultobj = SWIG_Py_Void();
38957 return resultobj;
38958fail:
38959 return NULL;
38960}
38961
38962
38963SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38964 PyObject *resultobj = 0;
38965 wxPyControl *arg1 = (wxPyControl *) 0 ;
38966 int *arg2 = (int *) 0 ;
38967 int *arg3 = (int *) 0 ;
38968 void *argp1 = 0 ;
38969 int res1 = 0 ;
38970 int temp2 ;
38971 int res2 = SWIG_TMPOBJ ;
38972 int temp3 ;
38973 int res3 = SWIG_TMPOBJ ;
38974 PyObject *swig_obj[1] ;
38975
38976 arg2 = &temp2;
38977 arg3 = &temp3;
38978 if (!args) SWIG_fail;
38979 swig_obj[0] = args;
38980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38981 if (!SWIG_IsOK(res1)) {
38982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38983 }
38984 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38985 {
38986 PyThreadState* __tstate = wxPyBeginAllowThreads();
38987 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38988 wxPyEndAllowThreads(__tstate);
38989 if (PyErr_Occurred()) SWIG_fail;
38990 }
38991 resultobj = SWIG_Py_Void();
38992 if (SWIG_IsTmpObj(res2)) {
38993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38994 } else {
38995 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38997 }
38998 if (SWIG_IsTmpObj(res3)) {
38999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39000 } else {
39001 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39003 }
39004 return resultobj;
39005fail:
39006 return NULL;
39007}
39008
39009
39010SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39011 PyObject *resultobj = 0;
39012 wxPyControl *arg1 = (wxPyControl *) 0 ;
39013 int *arg2 = (int *) 0 ;
39014 int *arg3 = (int *) 0 ;
39015 void *argp1 = 0 ;
39016 int res1 = 0 ;
39017 int temp2 ;
39018 int res2 = SWIG_TMPOBJ ;
39019 int temp3 ;
39020 int res3 = SWIG_TMPOBJ ;
39021 PyObject *swig_obj[1] ;
39022
39023 arg2 = &temp2;
39024 arg3 = &temp3;
39025 if (!args) SWIG_fail;
39026 swig_obj[0] = args;
39027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39028 if (!SWIG_IsOK(res1)) {
39029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39030 }
39031 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39032 {
39033 PyThreadState* __tstate = wxPyBeginAllowThreads();
39034 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39035 wxPyEndAllowThreads(__tstate);
39036 if (PyErr_Occurred()) SWIG_fail;
39037 }
39038 resultobj = SWIG_Py_Void();
39039 if (SWIG_IsTmpObj(res2)) {
39040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39041 } else {
39042 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39044 }
39045 if (SWIG_IsTmpObj(res3)) {
39046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39047 } else {
39048 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39050 }
39051 return resultobj;
39052fail:
39053 return NULL;
39054}
39055
39056
39057SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39058 PyObject *resultobj = 0;
39059 wxPyControl *arg1 = (wxPyControl *) 0 ;
39060 int *arg2 = (int *) 0 ;
39061 int *arg3 = (int *) 0 ;
39062 void *argp1 = 0 ;
39063 int res1 = 0 ;
39064 int temp2 ;
39065 int res2 = SWIG_TMPOBJ ;
39066 int temp3 ;
39067 int res3 = SWIG_TMPOBJ ;
39068 PyObject *swig_obj[1] ;
39069
39070 arg2 = &temp2;
39071 arg3 = &temp3;
39072 if (!args) SWIG_fail;
39073 swig_obj[0] = args;
39074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39075 if (!SWIG_IsOK(res1)) {
39076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39077 }
39078 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39079 {
39080 PyThreadState* __tstate = wxPyBeginAllowThreads();
39081 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39082 wxPyEndAllowThreads(__tstate);
39083 if (PyErr_Occurred()) SWIG_fail;
39084 }
39085 resultobj = SWIG_Py_Void();
39086 if (SWIG_IsTmpObj(res2)) {
39087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39088 } else {
39089 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39091 }
39092 if (SWIG_IsTmpObj(res3)) {
39093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39094 } else {
39095 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39097 }
39098 return resultobj;
39099fail:
39100 return NULL;
d14a1e28
RD
39101}
39102
39103
0085ce49
RD
39104SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39105 PyObject *resultobj = 0;
39106 wxPyControl *arg1 = (wxPyControl *) 0 ;
39107 wxSize result;
39108 void *argp1 = 0 ;
39109 int res1 = 0 ;
39110 PyObject *swig_obj[1] ;
39111
39112 if (!args) SWIG_fail;
39113 swig_obj[0] = args;
39114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39115 if (!SWIG_IsOK(res1)) {
39116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39117 }
39118 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39119 {
39120 PyThreadState* __tstate = wxPyBeginAllowThreads();
39121 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39122 wxPyEndAllowThreads(__tstate);
39123 if (PyErr_Occurred()) SWIG_fail;
39124 }
39125 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39126 return resultobj;
39127fail:
39128 return NULL;
d14a1e28
RD
39129}
39130
39131
0085ce49
RD
39132SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39133 PyObject *resultobj = 0;
39134 wxPyControl *arg1 = (wxPyControl *) 0 ;
39135 wxSize result;
39136 void *argp1 = 0 ;
39137 int res1 = 0 ;
39138 PyObject *swig_obj[1] ;
39139
39140 if (!args) SWIG_fail;
39141 swig_obj[0] = args;
39142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39143 if (!SWIG_IsOK(res1)) {
39144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39145 }
39146 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39147 {
39148 PyThreadState* __tstate = wxPyBeginAllowThreads();
39149 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39150 wxPyEndAllowThreads(__tstate);
39151 if (PyErr_Occurred()) SWIG_fail;
39152 }
39153 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39154 return resultobj;
39155fail:
39156 return NULL;
d14a1e28
RD
39157}
39158
39159
0085ce49
RD
39160SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39161 PyObject *resultobj = 0;
39162 wxPyControl *arg1 = (wxPyControl *) 0 ;
39163 SwigValueWrapper<wxVisualAttributes > result;
39164 void *argp1 = 0 ;
39165 int res1 = 0 ;
39166 PyObject *swig_obj[1] ;
39167
39168 if (!args) SWIG_fail;
39169 swig_obj[0] = args;
39170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39171 if (!SWIG_IsOK(res1)) {
39172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39173 }
39174 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39175 {
39176 PyThreadState* __tstate = wxPyBeginAllowThreads();
39177 result = (arg1)->GetDefaultAttributes();
39178 wxPyEndAllowThreads(__tstate);
39179 if (PyErr_Occurred()) SWIG_fail;
39180 }
39181 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39182 return resultobj;
39183fail:
39184 return NULL;
d14a1e28
RD
39185}
39186
39187
0085ce49
RD
39188SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39189 PyObject *resultobj = 0;
39190 wxPyControl *arg1 = (wxPyControl *) 0 ;
39191 void *argp1 = 0 ;
39192 int res1 = 0 ;
39193 PyObject *swig_obj[1] ;
39194
39195 if (!args) SWIG_fail;
39196 swig_obj[0] = args;
39197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39198 if (!SWIG_IsOK(res1)) {
39199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39200 }
39201 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39202 {
39203 PyThreadState* __tstate = wxPyBeginAllowThreads();
39204 (arg1)->OnInternalIdle();
39205 wxPyEndAllowThreads(__tstate);
39206 if (PyErr_Occurred()) SWIG_fail;
39207 }
39208 resultobj = SWIG_Py_Void();
39209 return resultobj;
39210fail:
39211 return NULL;
39212}
39213
39214
39215SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39216 PyObject *obj;
39217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39218 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39219 return SWIG_Py_Void();
39220}
39221
39222SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39223 return SWIG_Python_InitShadowInstance(args);
39224}
39225
39226SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39227 PyObject *resultobj = 0;
39228 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39229 int arg2 = (int) 0 ;
39230 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39231 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39232 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
0085ce49
RD
39233 wxHelpEvent *result = 0 ;
39234 int val1 ;
39235 int ecode1 = 0 ;
39236 int val2 ;
39237 int ecode2 = 0 ;
39238 wxPoint temp3 ;
704eda0c
RD
39239 int val4 ;
39240 int ecode4 = 0 ;
0085ce49
RD
39241 PyObject * obj0 = 0 ;
39242 PyObject * obj1 = 0 ;
39243 PyObject * obj2 = 0 ;
704eda0c 39244 PyObject * obj3 = 0 ;
0085ce49 39245 char * kwnames[] = {
704eda0c 39246 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
0085ce49
RD
39247 };
39248
704eda0c 39249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
39250 if (obj0) {
39251 ecode1 = SWIG_AsVal_int(obj0, &val1);
39252 if (!SWIG_IsOK(ecode1)) {
39253 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39254 }
39255 arg1 = static_cast< wxEventType >(val1);
39256 }
39257 if (obj1) {
39258 ecode2 = SWIG_AsVal_int(obj1, &val2);
39259 if (!SWIG_IsOK(ecode2)) {
39260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39261 }
39262 arg2 = static_cast< int >(val2);
39263 }
39264 if (obj2) {
d14a1e28 39265 {
0085ce49
RD
39266 arg3 = &temp3;
39267 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39268 }
0085ce49 39269 }
704eda0c
RD
39270 if (obj3) {
39271 ecode4 = SWIG_AsVal_int(obj3, &val4);
39272 if (!SWIG_IsOK(ecode4)) {
39273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39274 }
39275 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39276 }
0085ce49
RD
39277 {
39278 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39279 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
0085ce49
RD
39280 wxPyEndAllowThreads(__tstate);
39281 if (PyErr_Occurred()) SWIG_fail;
39282 }
39283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39284 return resultobj;
39285fail:
39286 return NULL;
d14a1e28
RD
39287}
39288
39289
0085ce49
RD
39290SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39291 PyObject *resultobj = 0;
39292 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39293 wxPoint result;
39294 void *argp1 = 0 ;
39295 int res1 = 0 ;
39296 PyObject *swig_obj[1] ;
39297
39298 if (!args) SWIG_fail;
39299 swig_obj[0] = args;
39300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39301 if (!SWIG_IsOK(res1)) {
39302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39303 }
39304 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39305 {
39306 PyThreadState* __tstate = wxPyBeginAllowThreads();
39307 result = ((wxHelpEvent const *)arg1)->GetPosition();
39308 wxPyEndAllowThreads(__tstate);
39309 if (PyErr_Occurred()) SWIG_fail;
39310 }
39311 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39312 return resultobj;
39313fail:
39314 return NULL;
39315}
39316
39317
39318SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39319 PyObject *resultobj = 0;
39320 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39321 wxPoint *arg2 = 0 ;
39322 void *argp1 = 0 ;
39323 int res1 = 0 ;
39324 wxPoint temp2 ;
39325 PyObject * obj0 = 0 ;
39326 PyObject * obj1 = 0 ;
39327 char * kwnames[] = {
39328 (char *) "self",(char *) "pos", NULL
39329 };
39330
39331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39333 if (!SWIG_IsOK(res1)) {
39334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39335 }
39336 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39337 {
39338 arg2 = &temp2;
39339 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39340 }
39341 {
39342 PyThreadState* __tstate = wxPyBeginAllowThreads();
39343 (arg1)->SetPosition((wxPoint const &)*arg2);
39344 wxPyEndAllowThreads(__tstate);
39345 if (PyErr_Occurred()) SWIG_fail;
39346 }
39347 resultobj = SWIG_Py_Void();
39348 return resultobj;
39349fail:
39350 return NULL;
d14a1e28
RD
39351}
39352
39353
0085ce49
RD
39354SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39355 PyObject *resultobj = 0;
39356 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39357 wxString *result = 0 ;
39358 void *argp1 = 0 ;
39359 int res1 = 0 ;
39360 PyObject *swig_obj[1] ;
39361
39362 if (!args) SWIG_fail;
39363 swig_obj[0] = args;
39364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39365 if (!SWIG_IsOK(res1)) {
39366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39367 }
39368 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39369 {
39370 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 39371 {
0085ce49
RD
39372 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39373 result = (wxString *) &_result_ref;
093d3ff1 39374 }
0085ce49
RD
39375 wxPyEndAllowThreads(__tstate);
39376 if (PyErr_Occurred()) SWIG_fail;
39377 }
39378 {
39379#if wxUSE_UNICODE
39380 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39381#else
39382 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39383#endif
39384 }
39385 return resultobj;
39386fail:
39387 return NULL;
39388}
39389
39390
39391SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39392 PyObject *resultobj = 0;
39393 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39394 wxString *arg2 = 0 ;
39395 void *argp1 = 0 ;
39396 int res1 = 0 ;
39397 bool temp2 = false ;
39398 PyObject * obj0 = 0 ;
39399 PyObject * obj1 = 0 ;
39400 char * kwnames[] = {
39401 (char *) "self",(char *) "link", NULL
39402 };
39403
39404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39406 if (!SWIG_IsOK(res1)) {
39407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39408 }
39409 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39410 {
39411 arg2 = wxString_in_helper(obj1);
39412 if (arg2 == NULL) SWIG_fail;
39413 temp2 = true;
39414 }
39415 {
39416 PyThreadState* __tstate = wxPyBeginAllowThreads();
39417 (arg1)->SetLink((wxString const &)*arg2);
39418 wxPyEndAllowThreads(__tstate);
39419 if (PyErr_Occurred()) SWIG_fail;
39420 }
39421 resultobj = SWIG_Py_Void();
39422 {
39423 if (temp2)
39424 delete arg2;
39425 }
39426 return resultobj;
39427fail:
39428 {
39429 if (temp2)
39430 delete arg2;
39431 }
39432 return NULL;
d14a1e28
RD
39433}
39434
39435
0085ce49
RD
39436SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39437 PyObject *resultobj = 0;
39438 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39439 wxString *result = 0 ;
39440 void *argp1 = 0 ;
39441 int res1 = 0 ;
39442 PyObject *swig_obj[1] ;
39443
39444 if (!args) SWIG_fail;
39445 swig_obj[0] = args;
39446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39447 if (!SWIG_IsOK(res1)) {
39448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39449 }
39450 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39451 {
39452 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 39453 {
0085ce49
RD
39454 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39455 result = (wxString *) &_result_ref;
d14a1e28 39456 }
0085ce49
RD
39457 wxPyEndAllowThreads(__tstate);
39458 if (PyErr_Occurred()) SWIG_fail;
39459 }
39460 {
39461#if wxUSE_UNICODE
39462 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39463#else
39464 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39465#endif
39466 }
39467 return resultobj;
39468fail:
39469 return NULL;
39470}
39471
39472
39473SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39474 PyObject *resultobj = 0;
39475 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39476 wxString *arg2 = 0 ;
39477 void *argp1 = 0 ;
39478 int res1 = 0 ;
39479 bool temp2 = false ;
39480 PyObject * obj0 = 0 ;
39481 PyObject * obj1 = 0 ;
39482 char * kwnames[] = {
39483 (char *) "self",(char *) "target", NULL
39484 };
39485
39486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39488 if (!SWIG_IsOK(res1)) {
39489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39490 }
39491 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39492 {
39493 arg2 = wxString_in_helper(obj1);
39494 if (arg2 == NULL) SWIG_fail;
39495 temp2 = true;
39496 }
39497 {
39498 PyThreadState* __tstate = wxPyBeginAllowThreads();
39499 (arg1)->SetTarget((wxString const &)*arg2);
39500 wxPyEndAllowThreads(__tstate);
39501 if (PyErr_Occurred()) SWIG_fail;
39502 }
39503 resultobj = SWIG_Py_Void();
39504 {
39505 if (temp2)
39506 delete arg2;
39507 }
39508 return resultobj;
39509fail:
39510 {
39511 if (temp2)
39512 delete arg2;
39513 }
39514 return NULL;
d14a1e28
RD
39515}
39516
39517
704eda0c
RD
39518SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39519 PyObject *resultobj = 0;
39520 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39521 wxHelpEvent::Origin result;
39522 void *argp1 = 0 ;
39523 int res1 = 0 ;
39524 PyObject *swig_obj[1] ;
39525
39526 if (!args) SWIG_fail;
39527 swig_obj[0] = args;
39528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39529 if (!SWIG_IsOK(res1)) {
39530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39531 }
39532 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39533 {
39534 PyThreadState* __tstate = wxPyBeginAllowThreads();
39535 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39536 wxPyEndAllowThreads(__tstate);
39537 if (PyErr_Occurred()) SWIG_fail;
39538 }
39539 resultobj = SWIG_From_int(static_cast< int >(result));
39540 return resultobj;
39541fail:
39542 return NULL;
39543}
39544
39545
39546SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39547 PyObject *resultobj = 0;
39548 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39549 wxHelpEvent::Origin arg2 ;
39550 void *argp1 = 0 ;
39551 int res1 = 0 ;
39552 int val2 ;
39553 int ecode2 = 0 ;
39554 PyObject * obj0 = 0 ;
39555 PyObject * obj1 = 0 ;
39556 char * kwnames[] = {
39557 (char *) "self",(char *) "origin", NULL
39558 };
39559
39560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39562 if (!SWIG_IsOK(res1)) {
39563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39564 }
39565 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39566 ecode2 = SWIG_AsVal_int(obj1, &val2);
39567 if (!SWIG_IsOK(ecode2)) {
39568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39569 }
39570 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39571 {
39572 PyThreadState* __tstate = wxPyBeginAllowThreads();
39573 (arg1)->SetOrigin(arg2);
39574 wxPyEndAllowThreads(__tstate);
39575 if (PyErr_Occurred()) SWIG_fail;
39576 }
39577 resultobj = SWIG_Py_Void();
39578 return resultobj;
39579fail:
39580 return NULL;
39581}
39582
39583
0085ce49
RD
39584SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39585 PyObject *obj;
39586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39587 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39588 return SWIG_Py_Void();
d14a1e28
RD
39589}
39590
0085ce49
RD
39591SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39592 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39593}
39594
0085ce49
RD
39595SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39596 PyObject *resultobj = 0;
39597 wxWindow *arg1 = (wxWindow *) NULL ;
39598 bool arg2 = (bool) true ;
39599 wxContextHelp *result = 0 ;
39600 void *argp1 = 0 ;
39601 int res1 = 0 ;
39602 bool val2 ;
39603 int ecode2 = 0 ;
39604 PyObject * obj0 = 0 ;
39605 PyObject * obj1 = 0 ;
39606 char * kwnames[] = {
39607 (char *) "window",(char *) "doNow", NULL
39608 };
39609
39610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39611 if (obj0) {
39612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39613 if (!SWIG_IsOK(res1)) {
39614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 39615 }
0085ce49
RD
39616 arg1 = reinterpret_cast< wxWindow * >(argp1);
39617 }
39618 if (obj1) {
39619 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39620 if (!SWIG_IsOK(ecode2)) {
39621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39622 }
39623 arg2 = static_cast< bool >(val2);
39624 }
39625 {
39626 if (!wxPyCheckForApp()) SWIG_fail;
39627 PyThreadState* __tstate = wxPyBeginAllowThreads();
39628 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39629 wxPyEndAllowThreads(__tstate);
39630 if (PyErr_Occurred()) SWIG_fail;
39631 }
39632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39633 return resultobj;
39634fail:
39635 return NULL;
d14a1e28
RD
39636}
39637
39638
0085ce49
RD
39639SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39640 PyObject *resultobj = 0;
39641 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39642 void *argp1 = 0 ;
39643 int res1 = 0 ;
39644 PyObject *swig_obj[1] ;
39645
39646 if (!args) SWIG_fail;
39647 swig_obj[0] = args;
39648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39649 if (!SWIG_IsOK(res1)) {
39650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39651 }
39652 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39653 {
39654 PyThreadState* __tstate = wxPyBeginAllowThreads();
39655 delete arg1;
3a04f143 39656
0085ce49
RD
39657 wxPyEndAllowThreads(__tstate);
39658 if (PyErr_Occurred()) SWIG_fail;
39659 }
39660 resultobj = SWIG_Py_Void();
39661 return resultobj;
39662fail:
39663 return NULL;
39664}
39665
39666
39667SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39668 PyObject *resultobj = 0;
39669 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39670 wxWindow *arg2 = (wxWindow *) NULL ;
39671 bool result;
39672 void *argp1 = 0 ;
39673 int res1 = 0 ;
39674 void *argp2 = 0 ;
39675 int res2 = 0 ;
39676 PyObject * obj0 = 0 ;
39677 PyObject * obj1 = 0 ;
39678 char * kwnames[] = {
39679 (char *) "self",(char *) "window", NULL
39680 };
39681
39682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39684 if (!SWIG_IsOK(res1)) {
39685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39686 }
39687 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39688 if (obj1) {
39689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39690 if (!SWIG_IsOK(res2)) {
39691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 39692 }
0085ce49
RD
39693 arg2 = reinterpret_cast< wxWindow * >(argp2);
39694 }
39695 {
39696 PyThreadState* __tstate = wxPyBeginAllowThreads();
39697 result = (bool)(arg1)->BeginContextHelp(arg2);
39698 wxPyEndAllowThreads(__tstate);
39699 if (PyErr_Occurred()) SWIG_fail;
39700 }
39701 {
39702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39703 }
39704 return resultobj;
39705fail:
39706 return NULL;
3a04f143
RD
39707}
39708
39709
0085ce49
RD
39710SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39711 PyObject *resultobj = 0;
39712 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39713 bool result;
39714 void *argp1 = 0 ;
39715 int res1 = 0 ;
39716 PyObject *swig_obj[1] ;
39717
39718 if (!args) SWIG_fail;
39719 swig_obj[0] = args;
39720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39721 if (!SWIG_IsOK(res1)) {
39722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39723 }
39724 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39725 {
39726 PyThreadState* __tstate = wxPyBeginAllowThreads();
39727 result = (bool)(arg1)->EndContextHelp();
39728 wxPyEndAllowThreads(__tstate);
39729 if (PyErr_Occurred()) SWIG_fail;
39730 }
39731 {
39732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39733 }
39734 return resultobj;
39735fail:
39736 return NULL;
39737}
39738
39739
39740SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39741 PyObject *obj;
39742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39743 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39744 return SWIG_Py_Void();
39745}
39746
39747SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39748 return SWIG_Python_InitShadowInstance(args);
39749}
39750
39751SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39752 PyObject *resultobj = 0;
39753 wxWindow *arg1 = (wxWindow *) 0 ;
39754 int arg2 = (int) wxID_CONTEXT_HELP ;
39755 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39756 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39757 wxSize const &arg4_defvalue = wxDefaultSize ;
39758 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39759 long arg5 = (long) wxBU_AUTODRAW ;
39760 wxContextHelpButton *result = 0 ;
39761 void *argp1 = 0 ;
39762 int res1 = 0 ;
39763 int val2 ;
39764 int ecode2 = 0 ;
39765 wxPoint temp3 ;
39766 wxSize temp4 ;
39767 long val5 ;
39768 int ecode5 = 0 ;
39769 PyObject * obj0 = 0 ;
39770 PyObject * obj1 = 0 ;
39771 PyObject * obj2 = 0 ;
39772 PyObject * obj3 = 0 ;
39773 PyObject * obj4 = 0 ;
39774 char * kwnames[] = {
39775 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39776 };
39777
39778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39780 if (!SWIG_IsOK(res1)) {
39781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39782 }
39783 arg1 = reinterpret_cast< wxWindow * >(argp1);
39784 if (obj1) {
39785 ecode2 = SWIG_AsVal_int(obj1, &val2);
39786 if (!SWIG_IsOK(ecode2)) {
39787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39788 }
39789 arg2 = static_cast< int >(val2);
39790 }
39791 if (obj2) {
d14a1e28 39792 {
0085ce49
RD
39793 arg3 = &temp3;
39794 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39795 }
0085ce49
RD
39796 }
39797 if (obj3) {
4f89f6a3 39798 {
0085ce49
RD
39799 arg4 = &temp4;
39800 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 39801 }
0085ce49
RD
39802 }
39803 if (obj4) {
39804 ecode5 = SWIG_AsVal_long(obj4, &val5);
39805 if (!SWIG_IsOK(ecode5)) {
39806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39807 }
39808 arg5 = static_cast< long >(val5);
39809 }
39810 {
39811 if (!wxPyCheckForApp()) SWIG_fail;
39812 PyThreadState* __tstate = wxPyBeginAllowThreads();
39813 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39814 wxPyEndAllowThreads(__tstate);
39815 if (PyErr_Occurred()) SWIG_fail;
39816 }
39817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39818 return resultobj;
39819fail:
39820 return NULL;
d14a1e28
RD
39821}
39822
39823
0085ce49
RD
39824SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39825 PyObject *obj;
39826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39827 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39828 return SWIG_Py_Void();
d14a1e28
RD
39829}
39830
0085ce49
RD
39831SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39832 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39833}
39834
f52cbe90
RD
39835SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39836 PyObject *resultobj = 0;
39837 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39838 void *argp1 = 0 ;
39839 int res1 = 0 ;
39840 PyObject *swig_obj[1] ;
39841
39842 if (!args) SWIG_fail;
39843 swig_obj[0] = args;
39844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39845 if (!SWIG_IsOK(res1)) {
39846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39847 }
39848 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39849 {
39850 PyThreadState* __tstate = wxPyBeginAllowThreads();
39851 delete arg1;
39852
39853 wxPyEndAllowThreads(__tstate);
39854 if (PyErr_Occurred()) SWIG_fail;
39855 }
39856 resultobj = SWIG_Py_Void();
39857 return resultobj;
39858fail:
39859 return NULL;
39860}
39861
39862
0085ce49
RD
39863SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39864 PyObject *resultobj = 0;
39865 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39866 wxHelpProvider *result = 0 ;
39867 int res1 = 0 ;
39868 PyObject * obj0 = 0 ;
39869 char * kwnames[] = {
39870 (char *) "helpProvider", NULL
39871 };
39872
39873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39874 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39875 if (!SWIG_IsOK(res1)) {
39876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39877 }
39878 {
39879 PyThreadState* __tstate = wxPyBeginAllowThreads();
39880 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39881 wxPyEndAllowThreads(__tstate);
39882 if (PyErr_Occurred()) SWIG_fail;
39883 }
39884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39885 return resultobj;
39886fail:
39887 return NULL;
d14a1e28
RD
39888}
39889
39890
0085ce49
RD
39891SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39892 PyObject *resultobj = 0;
39893 wxHelpProvider *result = 0 ;
39894
39895 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39896 {
39897 PyThreadState* __tstate = wxPyBeginAllowThreads();
39898 result = (wxHelpProvider *)wxHelpProvider::Get();
39899 wxPyEndAllowThreads(__tstate);
39900 if (PyErr_Occurred()) SWIG_fail;
39901 }
39902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39903 return resultobj;
39904fail:
39905 return NULL;
39906}
39907
39908
39909SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39910 PyObject *resultobj = 0;
39911 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39912 wxWindow *arg2 = (wxWindow *) 0 ;
39913 wxString result;
39914 void *argp1 = 0 ;
39915 int res1 = 0 ;
39916 void *argp2 = 0 ;
39917 int res2 = 0 ;
39918 PyObject * obj0 = 0 ;
39919 PyObject * obj1 = 0 ;
39920 char * kwnames[] = {
39921 (char *) "self",(char *) "window", NULL
39922 };
39923
39924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39926 if (!SWIG_IsOK(res1)) {
39927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39928 }
39929 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39930 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39931 if (!SWIG_IsOK(res2)) {
39932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39933 }
39934 arg2 = reinterpret_cast< wxWindow * >(argp2);
39935 {
39936 PyThreadState* __tstate = wxPyBeginAllowThreads();
39937 result = (arg1)->GetHelp((wxWindow const *)arg2);
39938 wxPyEndAllowThreads(__tstate);
39939 if (PyErr_Occurred()) SWIG_fail;
39940 }
39941 {
39942#if wxUSE_UNICODE
39943 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39944#else
39945 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39946#endif
39947 }
39948 return resultobj;
39949fail:
39950 return NULL;
39951}
39952
39953
39954SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39955 PyObject *resultobj = 0;
39956 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39957 wxWindow *arg2 = (wxWindow *) 0 ;
39958 bool result;
39959 void *argp1 = 0 ;
39960 int res1 = 0 ;
39961 void *argp2 = 0 ;
39962 int res2 = 0 ;
39963 PyObject * obj0 = 0 ;
39964 PyObject * obj1 = 0 ;
39965 char * kwnames[] = {
39966 (char *) "self",(char *) "window", NULL
39967 };
39968
39969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39971 if (!SWIG_IsOK(res1)) {
39972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39973 }
39974 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39976 if (!SWIG_IsOK(res2)) {
39977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39978 }
39979 arg2 = reinterpret_cast< wxWindow * >(argp2);
39980 {
39981 PyThreadState* __tstate = wxPyBeginAllowThreads();
39982 result = (bool)(arg1)->ShowHelp(arg2);
39983 wxPyEndAllowThreads(__tstate);
39984 if (PyErr_Occurred()) SWIG_fail;
39985 }
39986 {
39987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39988 }
39989 return resultobj;
39990fail:
39991 return NULL;
39992}
39993
39994
b850e7f3
RD
39995SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39996 PyObject *resultobj = 0;
39997 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39998 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39999 wxPoint *arg3 = 0 ;
40000 wxHelpEvent::Origin arg4 ;
40001 bool result;
40002 void *argp1 = 0 ;
40003 int res1 = 0 ;
40004 void *argp2 = 0 ;
40005 int res2 = 0 ;
40006 wxPoint temp3 ;
40007 int val4 ;
40008 int ecode4 = 0 ;
40009 PyObject * obj0 = 0 ;
40010 PyObject * obj1 = 0 ;
40011 PyObject * obj2 = 0 ;
40012 PyObject * obj3 = 0 ;
40013 char * kwnames[] = {
40014 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40015 };
40016
40017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40019 if (!SWIG_IsOK(res1)) {
40020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40021 }
40022 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40024 if (!SWIG_IsOK(res2)) {
40025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40026 }
40027 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40028 {
40029 arg3 = &temp3;
40030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40031 }
40032 ecode4 = SWIG_AsVal_int(obj3, &val4);
40033 if (!SWIG_IsOK(ecode4)) {
40034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40035 }
40036 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40037 {
40038 PyThreadState* __tstate = wxPyBeginAllowThreads();
40039 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40040 wxPyEndAllowThreads(__tstate);
40041 if (PyErr_Occurred()) SWIG_fail;
40042 }
40043 {
40044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40045 }
40046 return resultobj;
40047fail:
40048 return NULL;
40049}
40050
40051
0085ce49
RD
40052SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40053 PyObject *resultobj = 0;
40054 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40055 wxWindow *arg2 = (wxWindow *) 0 ;
40056 wxString *arg3 = 0 ;
40057 void *argp1 = 0 ;
40058 int res1 = 0 ;
40059 void *argp2 = 0 ;
40060 int res2 = 0 ;
40061 bool temp3 = false ;
40062 PyObject * obj0 = 0 ;
40063 PyObject * obj1 = 0 ;
40064 PyObject * obj2 = 0 ;
40065 char * kwnames[] = {
40066 (char *) "self",(char *) "window",(char *) "text", NULL
40067 };
40068
40069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40071 if (!SWIG_IsOK(res1)) {
40072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40073 }
40074 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40076 if (!SWIG_IsOK(res2)) {
40077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40078 }
40079 arg2 = reinterpret_cast< wxWindow * >(argp2);
40080 {
40081 arg3 = wxString_in_helper(obj2);
40082 if (arg3 == NULL) SWIG_fail;
40083 temp3 = true;
40084 }
40085 {
40086 PyThreadState* __tstate = wxPyBeginAllowThreads();
40087 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40088 wxPyEndAllowThreads(__tstate);
40089 if (PyErr_Occurred()) SWIG_fail;
40090 }
40091 resultobj = SWIG_Py_Void();
40092 {
40093 if (temp3)
40094 delete arg3;
40095 }
40096 return resultobj;
40097fail:
40098 {
40099 if (temp3)
40100 delete arg3;
40101 }
40102 return NULL;
40103}
40104
40105
40106SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40107 PyObject *resultobj = 0;
40108 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40109 int arg2 ;
40110 wxString *arg3 = 0 ;
40111 void *argp1 = 0 ;
40112 int res1 = 0 ;
40113 int val2 ;
40114 int ecode2 = 0 ;
40115 bool temp3 = false ;
40116 PyObject * obj0 = 0 ;
40117 PyObject * obj1 = 0 ;
40118 PyObject * obj2 = 0 ;
40119 char * kwnames[] = {
40120 (char *) "self",(char *) "id",(char *) "text", NULL
40121 };
40122
40123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) 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_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40127 }
40128 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40129 ecode2 = SWIG_AsVal_int(obj1, &val2);
40130 if (!SWIG_IsOK(ecode2)) {
40131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40132 }
40133 arg2 = static_cast< int >(val2);
40134 {
40135 arg3 = wxString_in_helper(obj2);
40136 if (arg3 == NULL) SWIG_fail;
40137 temp3 = true;
40138 }
40139 {
40140 PyThreadState* __tstate = wxPyBeginAllowThreads();
40141 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40142 wxPyEndAllowThreads(__tstate);
40143 if (PyErr_Occurred()) SWIG_fail;
40144 }
40145 resultobj = SWIG_Py_Void();
40146 {
40147 if (temp3)
40148 delete arg3;
40149 }
40150 return resultobj;
40151fail:
40152 {
40153 if (temp3)
40154 delete arg3;
40155 }
40156 return NULL;
40157}
40158
40159
40160SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40161 PyObject *resultobj = 0;
40162 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40163 wxWindow *arg2 = (wxWindow *) 0 ;
40164 void *argp1 = 0 ;
40165 int res1 = 0 ;
40166 void *argp2 = 0 ;
40167 int res2 = 0 ;
40168 PyObject * obj0 = 0 ;
40169 PyObject * obj1 = 0 ;
40170 char * kwnames[] = {
40171 (char *) "self",(char *) "window", NULL
40172 };
40173
40174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40176 if (!SWIG_IsOK(res1)) {
40177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40178 }
40179 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40181 if (!SWIG_IsOK(res2)) {
40182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40183 }
40184 arg2 = reinterpret_cast< wxWindow * >(argp2);
40185 {
40186 PyThreadState* __tstate = wxPyBeginAllowThreads();
40187 (arg1)->RemoveHelp(arg2);
40188 wxPyEndAllowThreads(__tstate);
40189 if (PyErr_Occurred()) SWIG_fail;
40190 }
40191 resultobj = SWIG_Py_Void();
40192 return resultobj;
40193fail:
40194 return NULL;
d14a1e28
RD
40195}
40196
40197
0085ce49
RD
40198SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40199 PyObject *resultobj = 0;
40200 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40201 void *argp1 = 0 ;
40202 int res1 = 0 ;
40203 PyObject *swig_obj[1] ;
40204
40205 if (!args) SWIG_fail;
40206 swig_obj[0] = args;
40207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40208 if (!SWIG_IsOK(res1)) {
40209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40210 }
40211 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40212 {
40213 PyThreadState* __tstate = wxPyBeginAllowThreads();
40214 wxHelpProvider_Destroy(arg1);
40215 wxPyEndAllowThreads(__tstate);
40216 if (PyErr_Occurred()) SWIG_fail;
40217 }
40218 resultobj = SWIG_Py_Void();
40219 return resultobj;
40220fail:
40221 return NULL;
22bfe96c
RD
40222}
40223
40224
0085ce49
RD
40225SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40226 PyObject *obj;
40227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40228 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40229 return SWIG_Py_Void();
b2dc1044
RD
40230}
40231
0085ce49
RD
40232SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40233 PyObject *resultobj = 0;
40234 wxSimpleHelpProvider *result = 0 ;
40235
40236 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40237 {
40238 PyThreadState* __tstate = wxPyBeginAllowThreads();
40239 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40240 wxPyEndAllowThreads(__tstate);
40241 if (PyErr_Occurred()) SWIG_fail;
40242 }
40243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40244 return resultobj;
40245fail:
40246 return NULL;
40247}
40248
40249
40250SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40251 PyObject *obj;
40252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40253 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40254 return SWIG_Py_Void();
40255}
40256
40257SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40258 return SWIG_Python_InitShadowInstance(args);
40259}
40260
40261SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40262 PyObject *resultobj = 0;
40263 wxBitmap *arg1 = 0 ;
40264 wxCursor const &arg2_defvalue = wxNullCursor ;
40265 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40266 wxGenericDragImage *result = 0 ;
40267 void *argp1 = 0 ;
40268 int res1 = 0 ;
40269 void *argp2 = 0 ;
40270 int res2 = 0 ;
40271 PyObject * obj0 = 0 ;
40272 PyObject * obj1 = 0 ;
40273 char * kwnames[] = {
40274 (char *) "image",(char *) "cursor", NULL
40275 };
40276
40277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40278 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40279 if (!SWIG_IsOK(res1)) {
40280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40281 }
40282 if (!argp1) {
40283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40284 }
40285 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40286 if (obj1) {
40287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40288 if (!SWIG_IsOK(res2)) {
40289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40290 }
0085ce49
RD
40291 if (!argp2) {
40292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40293 }
0085ce49
RD
40294 arg2 = reinterpret_cast< wxCursor * >(argp2);
40295 }
40296 {
40297 if (!wxPyCheckForApp()) SWIG_fail;
40298 PyThreadState* __tstate = wxPyBeginAllowThreads();
40299 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40300 wxPyEndAllowThreads(__tstate);
40301 if (PyErr_Occurred()) SWIG_fail;
40302 }
40303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40304 return resultobj;
40305fail:
40306 return NULL;
40307}
40308
40309
40310SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40311 PyObject *resultobj = 0;
40312 wxIcon *arg1 = 0 ;
40313 wxCursor const &arg2_defvalue = wxNullCursor ;
40314 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40315 wxGenericDragImage *result = 0 ;
40316 void *argp1 = 0 ;
40317 int res1 = 0 ;
40318 void *argp2 = 0 ;
40319 int res2 = 0 ;
40320 PyObject * obj0 = 0 ;
40321 PyObject * obj1 = 0 ;
40322 char * kwnames[] = {
40323 (char *) "image",(char *) "cursor", NULL
40324 };
40325
40326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40327 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40328 if (!SWIG_IsOK(res1)) {
40329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40330 }
40331 if (!argp1) {
40332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40333 }
40334 arg1 = reinterpret_cast< wxIcon * >(argp1);
40335 if (obj1) {
40336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40337 if (!SWIG_IsOK(res2)) {
40338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40339 }
0085ce49
RD
40340 if (!argp2) {
40341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40342 }
0085ce49
RD
40343 arg2 = reinterpret_cast< wxCursor * >(argp2);
40344 }
40345 {
40346 if (!wxPyCheckForApp()) SWIG_fail;
40347 PyThreadState* __tstate = wxPyBeginAllowThreads();
40348 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40349 wxPyEndAllowThreads(__tstate);
40350 if (PyErr_Occurred()) SWIG_fail;
40351 }
40352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40353 return resultobj;
40354fail:
40355 return NULL;
40356}
40357
40358
40359SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40360 PyObject *resultobj = 0;
40361 wxString *arg1 = 0 ;
40362 wxCursor const &arg2_defvalue = wxNullCursor ;
40363 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40364 wxGenericDragImage *result = 0 ;
40365 bool temp1 = false ;
40366 void *argp2 = 0 ;
40367 int res2 = 0 ;
40368 PyObject * obj0 = 0 ;
40369 PyObject * obj1 = 0 ;
40370 char * kwnames[] = {
40371 (char *) "str",(char *) "cursor", NULL
40372 };
40373
40374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40375 {
40376 arg1 = wxString_in_helper(obj0);
40377 if (arg1 == NULL) SWIG_fail;
40378 temp1 = true;
40379 }
40380 if (obj1) {
40381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40382 if (!SWIG_IsOK(res2)) {
40383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40384 }
0085ce49
RD
40385 if (!argp2) {
40386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40387 }
40388 arg2 = reinterpret_cast< wxCursor * >(argp2);
40389 }
40390 {
40391 if (!wxPyCheckForApp()) SWIG_fail;
40392 PyThreadState* __tstate = wxPyBeginAllowThreads();
40393 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40394 wxPyEndAllowThreads(__tstate);
40395 if (PyErr_Occurred()) SWIG_fail;
40396 }
40397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40398 {
40399 if (temp1)
40400 delete arg1;
40401 }
40402 return resultobj;
40403fail:
40404 {
40405 if (temp1)
40406 delete arg1;
40407 }
40408 return NULL;
40409}
40410
40411
40412SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40413 PyObject *resultobj = 0;
40414 wxPyTreeCtrl *arg1 = 0 ;
40415 wxTreeItemId *arg2 = 0 ;
40416 wxGenericDragImage *result = 0 ;
40417 void *argp1 = 0 ;
40418 int res1 = 0 ;
40419 void *argp2 = 0 ;
40420 int res2 = 0 ;
40421 PyObject * obj0 = 0 ;
40422 PyObject * obj1 = 0 ;
40423 char * kwnames[] = {
40424 (char *) "treeCtrl",(char *) "id", NULL
40425 };
40426
40427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40428 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40429 if (!SWIG_IsOK(res1)) {
40430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40431 }
40432 if (!argp1) {
40433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40434 }
40435 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40437 if (!SWIG_IsOK(res2)) {
40438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40439 }
40440 if (!argp2) {
40441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40442 }
40443 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40444 {
40445 if (!wxPyCheckForApp()) SWIG_fail;
40446 PyThreadState* __tstate = wxPyBeginAllowThreads();
40447 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40448 wxPyEndAllowThreads(__tstate);
40449 if (PyErr_Occurred()) SWIG_fail;
40450 }
40451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40452 return resultobj;
40453fail:
40454 return NULL;
40455}
40456
40457
40458SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40459 PyObject *resultobj = 0;
40460 wxPyListCtrl *arg1 = 0 ;
40461 long arg2 ;
40462 wxGenericDragImage *result = 0 ;
40463 void *argp1 = 0 ;
40464 int res1 = 0 ;
40465 long val2 ;
40466 int ecode2 = 0 ;
40467 PyObject * obj0 = 0 ;
40468 PyObject * obj1 = 0 ;
40469 char * kwnames[] = {
40470 (char *) "listCtrl",(char *) "id", NULL
40471 };
40472
40473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40474 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40475 if (!SWIG_IsOK(res1)) {
40476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40477 }
40478 if (!argp1) {
40479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40480 }
40481 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40482 ecode2 = SWIG_AsVal_long(obj1, &val2);
40483 if (!SWIG_IsOK(ecode2)) {
40484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40485 }
40486 arg2 = static_cast< long >(val2);
40487 {
40488 if (!wxPyCheckForApp()) SWIG_fail;
40489 PyThreadState* __tstate = wxPyBeginAllowThreads();
40490 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40491 wxPyEndAllowThreads(__tstate);
40492 if (PyErr_Occurred()) SWIG_fail;
40493 }
40494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40495 return resultobj;
40496fail:
40497 return NULL;
7e08d4ef
RD
40498}
40499
40500
0085ce49
RD
40501SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40502 PyObject *resultobj = 0;
40503 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40504 void *argp1 = 0 ;
40505 int res1 = 0 ;
40506 PyObject *swig_obj[1] ;
40507
40508 if (!args) SWIG_fail;
40509 swig_obj[0] = args;
40510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40511 if (!SWIG_IsOK(res1)) {
40512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40513 }
40514 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40515 {
40516 PyThreadState* __tstate = wxPyBeginAllowThreads();
40517 delete arg1;
d14a1e28 40518
0085ce49
RD
40519 wxPyEndAllowThreads(__tstate);
40520 if (PyErr_Occurred()) SWIG_fail;
40521 }
40522 resultobj = SWIG_Py_Void();
40523 return resultobj;
40524fail:
40525 return NULL;
40526}
40527
40528
40529SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40530 PyObject *resultobj = 0;
40531 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40532 wxBitmap *arg2 = (wxBitmap *) 0 ;
40533 void *argp1 = 0 ;
40534 int res1 = 0 ;
40535 void *argp2 = 0 ;
40536 int res2 = 0 ;
40537 PyObject * obj0 = 0 ;
40538 PyObject * obj1 = 0 ;
40539 char * kwnames[] = {
40540 (char *) "self",(char *) "bitmap", NULL
40541 };
40542
40543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40545 if (!SWIG_IsOK(res1)) {
40546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40547 }
40548 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40549 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40550 if (!SWIG_IsOK(res2)) {
40551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40552 }
40553 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40554 {
40555 PyThreadState* __tstate = wxPyBeginAllowThreads();
40556 (arg1)->SetBackingBitmap(arg2);
40557 wxPyEndAllowThreads(__tstate);
40558 if (PyErr_Occurred()) SWIG_fail;
40559 }
40560 resultobj = SWIG_Py_Void();
40561 return resultobj;
40562fail:
40563 return NULL;
40564}
40565
40566
40567SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40568 PyObject *resultobj = 0;
40569 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40570 wxPoint *arg2 = 0 ;
40571 wxWindow *arg3 = (wxWindow *) 0 ;
40572 bool arg4 = (bool) false ;
40573 wxRect *arg5 = (wxRect *) NULL ;
40574 bool result;
40575 void *argp1 = 0 ;
40576 int res1 = 0 ;
40577 wxPoint temp2 ;
40578 void *argp3 = 0 ;
40579 int res3 = 0 ;
40580 bool val4 ;
40581 int ecode4 = 0 ;
40582 void *argp5 = 0 ;
40583 int res5 = 0 ;
40584 PyObject * obj0 = 0 ;
40585 PyObject * obj1 = 0 ;
40586 PyObject * obj2 = 0 ;
40587 PyObject * obj3 = 0 ;
40588 PyObject * obj4 = 0 ;
40589 char * kwnames[] = {
40590 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40591 };
40592
40593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40595 if (!SWIG_IsOK(res1)) {
40596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40597 }
40598 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40599 {
40600 arg2 = &temp2;
40601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40602 }
40603 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40604 if (!SWIG_IsOK(res3)) {
40605 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40606 }
40607 arg3 = reinterpret_cast< wxWindow * >(argp3);
40608 if (obj3) {
40609 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40610 if (!SWIG_IsOK(ecode4)) {
40611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40612 }
40613 arg4 = static_cast< bool >(val4);
40614 }
40615 if (obj4) {
40616 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40617 if (!SWIG_IsOK(res5)) {
40618 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 40619 }
0085ce49
RD
40620 arg5 = reinterpret_cast< wxRect * >(argp5);
40621 }
40622 {
40623 PyThreadState* __tstate = wxPyBeginAllowThreads();
40624 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40625 wxPyEndAllowThreads(__tstate);
40626 if (PyErr_Occurred()) SWIG_fail;
40627 }
40628 {
40629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40630 }
40631 return resultobj;
40632fail:
40633 return NULL;
40634}
40635
40636
40637SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40638 PyObject *resultobj = 0;
40639 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40640 wxPoint *arg2 = 0 ;
40641 wxWindow *arg3 = (wxWindow *) 0 ;
40642 wxWindow *arg4 = (wxWindow *) 0 ;
40643 bool result;
40644 void *argp1 = 0 ;
40645 int res1 = 0 ;
40646 wxPoint temp2 ;
40647 void *argp3 = 0 ;
40648 int res3 = 0 ;
40649 void *argp4 = 0 ;
40650 int res4 = 0 ;
40651 PyObject * obj0 = 0 ;
40652 PyObject * obj1 = 0 ;
40653 PyObject * obj2 = 0 ;
40654 PyObject * obj3 = 0 ;
40655 char * kwnames[] = {
40656 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40657 };
40658
40659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40661 if (!SWIG_IsOK(res1)) {
40662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40663 }
40664 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40665 {
40666 arg2 = &temp2;
40667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40668 }
40669 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40670 if (!SWIG_IsOK(res3)) {
40671 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40672 }
40673 arg3 = reinterpret_cast< wxWindow * >(argp3);
40674 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40675 if (!SWIG_IsOK(res4)) {
40676 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40677 }
40678 arg4 = reinterpret_cast< wxWindow * >(argp4);
40679 {
40680 PyThreadState* __tstate = wxPyBeginAllowThreads();
40681 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40682 wxPyEndAllowThreads(__tstate);
40683 if (PyErr_Occurred()) SWIG_fail;
40684 }
40685 {
40686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40687 }
40688 return resultobj;
40689fail:
40690 return NULL;
d14a1e28
RD
40691}
40692
40693
0085ce49
RD
40694SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40695 PyObject *resultobj = 0;
40696 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40697 bool result;
40698 void *argp1 = 0 ;
40699 int res1 = 0 ;
40700 PyObject *swig_obj[1] ;
40701
40702 if (!args) SWIG_fail;
40703 swig_obj[0] = args;
40704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40705 if (!SWIG_IsOK(res1)) {
40706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40707 }
40708 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40709 {
40710 PyThreadState* __tstate = wxPyBeginAllowThreads();
40711 result = (bool)(arg1)->EndDrag();
40712 wxPyEndAllowThreads(__tstate);
40713 if (PyErr_Occurred()) SWIG_fail;
40714 }
40715 {
40716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40717 }
40718 return resultobj;
40719fail:
40720 return NULL;
40721}
40722
40723
40724SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40725 PyObject *resultobj = 0;
40726 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40727 wxPoint *arg2 = 0 ;
40728 bool result;
40729 void *argp1 = 0 ;
40730 int res1 = 0 ;
40731 wxPoint temp2 ;
40732 PyObject * obj0 = 0 ;
40733 PyObject * obj1 = 0 ;
40734 char * kwnames[] = {
40735 (char *) "self",(char *) "pt", NULL
40736 };
40737
40738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40740 if (!SWIG_IsOK(res1)) {
40741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40742 }
40743 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40744 {
40745 arg2 = &temp2;
40746 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40747 }
40748 {
40749 PyThreadState* __tstate = wxPyBeginAllowThreads();
40750 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40751 wxPyEndAllowThreads(__tstate);
40752 if (PyErr_Occurred()) SWIG_fail;
40753 }
40754 {
40755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40756 }
40757 return resultobj;
40758fail:
40759 return NULL;
d14a1e28
RD
40760}
40761
40762
0085ce49
RD
40763SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40764 PyObject *resultobj = 0;
40765 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40766 bool result;
40767 void *argp1 = 0 ;
40768 int res1 = 0 ;
40769 PyObject *swig_obj[1] ;
40770
40771 if (!args) SWIG_fail;
40772 swig_obj[0] = args;
40773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40774 if (!SWIG_IsOK(res1)) {
40775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40776 }
40777 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40778 {
40779 PyThreadState* __tstate = wxPyBeginAllowThreads();
40780 result = (bool)(arg1)->Show();
40781 wxPyEndAllowThreads(__tstate);
40782 if (PyErr_Occurred()) SWIG_fail;
40783 }
40784 {
40785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40786 }
40787 return resultobj;
40788fail:
40789 return NULL;
d14a1e28
RD
40790}
40791
40792
0085ce49
RD
40793SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40794 PyObject *resultobj = 0;
40795 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40796 bool result;
40797 void *argp1 = 0 ;
40798 int res1 = 0 ;
40799 PyObject *swig_obj[1] ;
40800
40801 if (!args) SWIG_fail;
40802 swig_obj[0] = args;
40803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40804 if (!SWIG_IsOK(res1)) {
40805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40806 }
40807 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40808 {
40809 PyThreadState* __tstate = wxPyBeginAllowThreads();
40810 result = (bool)(arg1)->Hide();
40811 wxPyEndAllowThreads(__tstate);
40812 if (PyErr_Occurred()) SWIG_fail;
40813 }
40814 {
40815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40816 }
40817 return resultobj;
40818fail:
40819 return NULL;
40820}
40821
40822
40823SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40824 PyObject *resultobj = 0;
40825 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40826 wxPoint *arg2 = 0 ;
40827 wxRect result;
40828 void *argp1 = 0 ;
40829 int res1 = 0 ;
40830 wxPoint temp2 ;
40831 PyObject * obj0 = 0 ;
40832 PyObject * obj1 = 0 ;
40833 char * kwnames[] = {
40834 (char *) "self",(char *) "pos", NULL
40835 };
40836
40837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40839 if (!SWIG_IsOK(res1)) {
40840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40841 }
40842 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40843 {
40844 arg2 = &temp2;
40845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40846 }
40847 {
40848 PyThreadState* __tstate = wxPyBeginAllowThreads();
40849 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40850 wxPyEndAllowThreads(__tstate);
40851 if (PyErr_Occurred()) SWIG_fail;
40852 }
40853 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40854 return resultobj;
40855fail:
40856 return NULL;
40857}
40858
40859
40860SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40861 PyObject *resultobj = 0;
40862 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40863 wxDC *arg2 = 0 ;
40864 wxPoint *arg3 = 0 ;
40865 bool result;
40866 void *argp1 = 0 ;
40867 int res1 = 0 ;
40868 void *argp2 = 0 ;
40869 int res2 = 0 ;
40870 wxPoint temp3 ;
40871 PyObject * obj0 = 0 ;
40872 PyObject * obj1 = 0 ;
40873 PyObject * obj2 = 0 ;
40874 char * kwnames[] = {
40875 (char *) "self",(char *) "dc",(char *) "pos", NULL
40876 };
40877
40878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40880 if (!SWIG_IsOK(res1)) {
40881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40882 }
40883 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40885 if (!SWIG_IsOK(res2)) {
40886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40887 }
40888 if (!argp2) {
40889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40890 }
40891 arg2 = reinterpret_cast< wxDC * >(argp2);
40892 {
40893 arg3 = &temp3;
40894 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40895 }
40896 {
40897 PyThreadState* __tstate = wxPyBeginAllowThreads();
40898 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40899 wxPyEndAllowThreads(__tstate);
40900 if (PyErr_Occurred()) SWIG_fail;
40901 }
40902 {
40903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40904 }
40905 return resultobj;
40906fail:
40907 return NULL;
40908}
40909
40910
40911SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40912 PyObject *resultobj = 0;
40913 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40914 wxDC *arg2 = 0 ;
40915 wxMemoryDC *arg3 = 0 ;
40916 wxRect *arg4 = 0 ;
40917 wxRect *arg5 = 0 ;
40918 bool result;
40919 void *argp1 = 0 ;
40920 int res1 = 0 ;
40921 void *argp2 = 0 ;
40922 int res2 = 0 ;
40923 void *argp3 = 0 ;
40924 int res3 = 0 ;
40925 wxRect temp4 ;
40926 wxRect temp5 ;
40927 PyObject * obj0 = 0 ;
40928 PyObject * obj1 = 0 ;
40929 PyObject * obj2 = 0 ;
40930 PyObject * obj3 = 0 ;
40931 PyObject * obj4 = 0 ;
40932 char * kwnames[] = {
40933 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40934 };
40935
40936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40938 if (!SWIG_IsOK(res1)) {
40939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40940 }
40941 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40943 if (!SWIG_IsOK(res2)) {
40944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40945 }
40946 if (!argp2) {
40947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40948 }
40949 arg2 = reinterpret_cast< wxDC * >(argp2);
40950 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40951 if (!SWIG_IsOK(res3)) {
40952 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40953 }
40954 if (!argp3) {
40955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40956 }
40957 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40958 {
40959 arg4 = &temp4;
40960 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40961 }
40962 {
40963 arg5 = &temp5;
40964 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40965 }
40966 {
40967 PyThreadState* __tstate = wxPyBeginAllowThreads();
40968 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40969 wxPyEndAllowThreads(__tstate);
40970 if (PyErr_Occurred()) SWIG_fail;
40971 }
40972 {
40973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40974 }
40975 return resultobj;
40976fail:
40977 return NULL;
40978}
40979
40980
40981SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40982 PyObject *resultobj = 0;
40983 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40984 wxPoint *arg2 = 0 ;
40985 wxPoint *arg3 = 0 ;
40986 bool arg4 ;
40987 bool arg5 ;
40988 bool result;
40989 void *argp1 = 0 ;
40990 int res1 = 0 ;
40991 wxPoint temp2 ;
40992 wxPoint temp3 ;
40993 bool val4 ;
40994 int ecode4 = 0 ;
40995 bool val5 ;
40996 int ecode5 = 0 ;
40997 PyObject * obj0 = 0 ;
40998 PyObject * obj1 = 0 ;
40999 PyObject * obj2 = 0 ;
41000 PyObject * obj3 = 0 ;
41001 PyObject * obj4 = 0 ;
41002 char * kwnames[] = {
41003 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41004 };
41005
41006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41008 if (!SWIG_IsOK(res1)) {
41009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41010 }
41011 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41012 {
41013 arg2 = &temp2;
41014 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41015 }
41016 {
41017 arg3 = &temp3;
41018 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41019 }
41020 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41021 if (!SWIG_IsOK(ecode4)) {
41022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41023 }
41024 arg4 = static_cast< bool >(val4);
41025 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41026 if (!SWIG_IsOK(ecode5)) {
41027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41028 }
41029 arg5 = static_cast< bool >(val5);
41030 {
41031 PyThreadState* __tstate = wxPyBeginAllowThreads();
41032 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41033 wxPyEndAllowThreads(__tstate);
41034 if (PyErr_Occurred()) SWIG_fail;
41035 }
41036 {
41037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41038 }
41039 return resultobj;
41040fail:
41041 return NULL;
d14a1e28
RD
41042}
41043
41044
0085ce49
RD
41045SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41046 PyObject *obj;
41047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41048 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41049 return SWIG_Py_Void();
d14a1e28
RD
41050}
41051
0085ce49
RD
41052SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41053 return SWIG_Python_InitShadowInstance(args);
41054}
d14a1e28 41055
0085ce49
RD
41056SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41057 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41058 return 1;
d14a1e28
RD
41059}
41060
41061
0085ce49
RD
41062SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41063 PyObject *pyobj = 0;
41064
41065 {
41066#if wxUSE_UNICODE
41067 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41068#else
41069 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41070#endif
41071 }
41072 return pyobj;
41073}
41074
41075
41076SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41077 PyObject *resultobj = 0;
41078 wxWindow *arg1 = (wxWindow *) 0 ;
41079 int arg2 = (int) -1 ;
41080 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41081 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41082 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41083 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41084 wxSize const &arg5_defvalue = wxDefaultSize ;
41085 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41086 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41087 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41088 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41089 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41090 wxString *arg8 = (wxString *) &arg8_defvalue ;
41091 wxDatePickerCtrl *result = 0 ;
41092 void *argp1 = 0 ;
41093 int res1 = 0 ;
41094 int val2 ;
41095 int ecode2 = 0 ;
41096 void *argp3 = 0 ;
41097 int res3 = 0 ;
41098 wxPoint temp4 ;
41099 wxSize temp5 ;
41100 long val6 ;
41101 int ecode6 = 0 ;
41102 void *argp7 = 0 ;
41103 int res7 = 0 ;
41104 bool temp8 = false ;
41105 PyObject * obj0 = 0 ;
41106 PyObject * obj1 = 0 ;
41107 PyObject * obj2 = 0 ;
41108 PyObject * obj3 = 0 ;
41109 PyObject * obj4 = 0 ;
41110 PyObject * obj5 = 0 ;
41111 PyObject * obj6 = 0 ;
41112 PyObject * obj7 = 0 ;
41113 char * kwnames[] = {
41114 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41115 };
41116
41117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41119 if (!SWIG_IsOK(res1)) {
41120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41121 }
41122 arg1 = reinterpret_cast< wxWindow * >(argp1);
41123 if (obj1) {
41124 ecode2 = SWIG_AsVal_int(obj1, &val2);
41125 if (!SWIG_IsOK(ecode2)) {
41126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41127 }
41128 arg2 = static_cast< int >(val2);
41129 }
41130 if (obj2) {
41131 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41132 if (!SWIG_IsOK(res3)) {
41133 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41134 }
0085ce49
RD
41135 if (!argp3) {
41136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41137 }
0085ce49
RD
41138 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41139 }
41140 if (obj3) {
d14a1e28 41141 {
0085ce49
RD
41142 arg4 = &temp4;
41143 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 41144 }
0085ce49
RD
41145 }
41146 if (obj4) {
d14a1e28 41147 {
0085ce49
RD
41148 arg5 = &temp5;
41149 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41150 }
0085ce49
RD
41151 }
41152 if (obj5) {
41153 ecode6 = SWIG_AsVal_long(obj5, &val6);
41154 if (!SWIG_IsOK(ecode6)) {
41155 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41156 }
41157 arg6 = static_cast< long >(val6);
41158 }
41159 if (obj6) {
41160 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41161 if (!SWIG_IsOK(res7)) {
41162 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41163 }
41164 if (!argp7) {
41165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 41166 }
0085ce49
RD
41167 arg7 = reinterpret_cast< wxValidator * >(argp7);
41168 }
41169 if (obj7) {
d14a1e28 41170 {
0085ce49
RD
41171 arg8 = wxString_in_helper(obj7);
41172 if (arg8 == NULL) SWIG_fail;
41173 temp8 = true;
d14a1e28 41174 }
0085ce49
RD
41175 }
41176 {
41177 if (!wxPyCheckForApp()) SWIG_fail;
41178 PyThreadState* __tstate = wxPyBeginAllowThreads();
41179 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41180 wxPyEndAllowThreads(__tstate);
41181 if (PyErr_Occurred()) SWIG_fail;
41182 }
41183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41184 {
41185 if (temp8)
41186 delete arg8;
41187 }
41188 return resultobj;
41189fail:
41190 {
41191 if (temp8)
41192 delete arg8;
41193 }
41194 return NULL;
d14a1e28
RD
41195}
41196
41197
0085ce49
RD
41198SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41199 PyObject *resultobj = 0;
41200 wxDatePickerCtrl *result = 0 ;
41201
41202 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41203 {
41204 if (!wxPyCheckForApp()) SWIG_fail;
41205 PyThreadState* __tstate = wxPyBeginAllowThreads();
41206 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41207 wxPyEndAllowThreads(__tstate);
41208 if (PyErr_Occurred()) SWIG_fail;
41209 }
41210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41211 return resultobj;
41212fail:
41213 return NULL;
41214}
41215
41216
41217SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41218 PyObject *resultobj = 0;
41219 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41220 wxWindow *arg2 = (wxWindow *) 0 ;
41221 int arg3 = (int) -1 ;
41222 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41223 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41224 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41225 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41226 wxSize const &arg6_defvalue = wxDefaultSize ;
41227 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41228 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41229 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41230 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41231 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41232 wxString *arg9 = (wxString *) &arg9_defvalue ;
41233 bool result;
41234 void *argp1 = 0 ;
41235 int res1 = 0 ;
41236 void *argp2 = 0 ;
41237 int res2 = 0 ;
41238 int val3 ;
41239 int ecode3 = 0 ;
41240 void *argp4 = 0 ;
41241 int res4 = 0 ;
41242 wxPoint temp5 ;
41243 wxSize temp6 ;
41244 long val7 ;
41245 int ecode7 = 0 ;
41246 void *argp8 = 0 ;
41247 int res8 = 0 ;
41248 bool temp9 = false ;
41249 PyObject * obj0 = 0 ;
41250 PyObject * obj1 = 0 ;
41251 PyObject * obj2 = 0 ;
41252 PyObject * obj3 = 0 ;
41253 PyObject * obj4 = 0 ;
41254 PyObject * obj5 = 0 ;
41255 PyObject * obj6 = 0 ;
41256 PyObject * obj7 = 0 ;
41257 PyObject * obj8 = 0 ;
41258 char * kwnames[] = {
41259 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41260 };
41261
41262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41264 if (!SWIG_IsOK(res1)) {
41265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41266 }
41267 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41269 if (!SWIG_IsOK(res2)) {
41270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41271 }
41272 arg2 = reinterpret_cast< wxWindow * >(argp2);
41273 if (obj2) {
41274 ecode3 = SWIG_AsVal_int(obj2, &val3);
41275 if (!SWIG_IsOK(ecode3)) {
41276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41277 }
41278 arg3 = static_cast< int >(val3);
41279 }
41280 if (obj3) {
41281 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41282 if (!SWIG_IsOK(res4)) {
41283 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41284 }
0085ce49
RD
41285 if (!argp4) {
41286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41287 }
0085ce49
RD
41288 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41289 }
41290 if (obj4) {
d14a1e28 41291 {
0085ce49
RD
41292 arg5 = &temp5;
41293 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41294 }
0085ce49
RD
41295 }
41296 if (obj5) {
d14a1e28 41297 {
0085ce49
RD
41298 arg6 = &temp6;
41299 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41300 }
41301 }
41302 if (obj6) {
41303 ecode7 = SWIG_AsVal_long(obj6, &val7);
41304 if (!SWIG_IsOK(ecode7)) {
41305 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41306 }
41307 arg7 = static_cast< long >(val7);
41308 }
41309 if (obj7) {
41310 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41311 if (!SWIG_IsOK(res8)) {
41312 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41313 }
41314 if (!argp8) {
41315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 41316 }
0085ce49
RD
41317 arg8 = reinterpret_cast< wxValidator * >(argp8);
41318 }
41319 if (obj8) {
d14a1e28 41320 {
0085ce49
RD
41321 arg9 = wxString_in_helper(obj8);
41322 if (arg9 == NULL) SWIG_fail;
41323 temp9 = true;
d14a1e28 41324 }
0085ce49
RD
41325 }
41326 {
41327 PyThreadState* __tstate = wxPyBeginAllowThreads();
41328 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41329 wxPyEndAllowThreads(__tstate);
41330 if (PyErr_Occurred()) SWIG_fail;
41331 }
41332 {
41333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41334 }
41335 {
41336 if (temp9)
41337 delete arg9;
41338 }
41339 return resultobj;
41340fail:
41341 {
41342 if (temp9)
41343 delete arg9;
41344 }
41345 return NULL;
41346}
41347
41348
41349SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41350 PyObject *resultobj = 0;
41351 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41352 wxDateTime *arg2 = 0 ;
41353 void *argp1 = 0 ;
41354 int res1 = 0 ;
41355 void *argp2 = 0 ;
41356 int res2 = 0 ;
41357 PyObject * obj0 = 0 ;
41358 PyObject * obj1 = 0 ;
41359 char * kwnames[] = {
41360 (char *) "self",(char *) "dt", NULL
41361 };
41362
41363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41365 if (!SWIG_IsOK(res1)) {
41366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41367 }
41368 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41370 if (!SWIG_IsOK(res2)) {
41371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41372 }
41373 if (!argp2) {
41374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41375 }
41376 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41377 {
41378 PyThreadState* __tstate = wxPyBeginAllowThreads();
41379 (arg1)->SetValue((wxDateTime const &)*arg2);
41380 wxPyEndAllowThreads(__tstate);
41381 if (PyErr_Occurred()) SWIG_fail;
41382 }
41383 resultobj = SWIG_Py_Void();
41384 return resultobj;
41385fail:
41386 return NULL;
d14a1e28
RD
41387}
41388
41389
0085ce49
RD
41390SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41391 PyObject *resultobj = 0;
41392 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41393 wxDateTime result;
41394 void *argp1 = 0 ;
41395 int res1 = 0 ;
41396 PyObject *swig_obj[1] ;
41397
41398 if (!args) SWIG_fail;
41399 swig_obj[0] = args;
41400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41401 if (!SWIG_IsOK(res1)) {
41402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41403 }
41404 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41405 {
41406 PyThreadState* __tstate = wxPyBeginAllowThreads();
41407 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41408 wxPyEndAllowThreads(__tstate);
41409 if (PyErr_Occurred()) SWIG_fail;
41410 }
41411 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41412 return resultobj;
41413fail:
41414 return NULL;
41415}
41416
41417
41418SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41419 PyObject *resultobj = 0;
41420 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41421 wxDateTime *arg2 = 0 ;
41422 wxDateTime *arg3 = 0 ;
41423 void *argp1 = 0 ;
41424 int res1 = 0 ;
41425 void *argp2 = 0 ;
41426 int res2 = 0 ;
41427 void *argp3 = 0 ;
41428 int res3 = 0 ;
41429 PyObject * obj0 = 0 ;
41430 PyObject * obj1 = 0 ;
41431 PyObject * obj2 = 0 ;
41432 char * kwnames[] = {
41433 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41434 };
41435
41436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41438 if (!SWIG_IsOK(res1)) {
41439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41440 }
41441 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41443 if (!SWIG_IsOK(res2)) {
41444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41445 }
41446 if (!argp2) {
41447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41448 }
41449 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41450 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41451 if (!SWIG_IsOK(res3)) {
41452 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41453 }
41454 if (!argp3) {
41455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41456 }
41457 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41458 {
41459 PyThreadState* __tstate = wxPyBeginAllowThreads();
41460 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41461 wxPyEndAllowThreads(__tstate);
41462 if (PyErr_Occurred()) SWIG_fail;
41463 }
41464 resultobj = SWIG_Py_Void();
41465 return resultobj;
41466fail:
41467 return NULL;
d14a1e28
RD
41468}
41469
41470
0085ce49
RD
41471SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41472 PyObject *resultobj = 0;
41473 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41474 wxDateTime result;
41475 void *argp1 = 0 ;
41476 int res1 = 0 ;
41477 PyObject *swig_obj[1] ;
41478
41479 if (!args) SWIG_fail;
41480 swig_obj[0] = args;
41481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41482 if (!SWIG_IsOK(res1)) {
41483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41484 }
41485 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41486 {
41487 PyThreadState* __tstate = wxPyBeginAllowThreads();
41488 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41489 wxPyEndAllowThreads(__tstate);
41490 if (PyErr_Occurred()) SWIG_fail;
41491 }
41492 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41493 return resultobj;
41494fail:
41495 return NULL;
d14a1e28
RD
41496}
41497
41498
0085ce49
RD
41499SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41500 PyObject *resultobj = 0;
41501 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41502 wxDateTime result;
41503 void *argp1 = 0 ;
41504 int res1 = 0 ;
41505 PyObject *swig_obj[1] ;
41506
41507 if (!args) SWIG_fail;
41508 swig_obj[0] = args;
41509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41510 if (!SWIG_IsOK(res1)) {
41511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41512 }
41513 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41514 {
41515 PyThreadState* __tstate = wxPyBeginAllowThreads();
41516 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41517 wxPyEndAllowThreads(__tstate);
41518 if (PyErr_Occurred()) SWIG_fail;
41519 }
41520 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41521 return resultobj;
41522fail:
41523 return NULL;
d14a1e28
RD
41524}
41525
41526
0085ce49
RD
41527SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41528 PyObject *obj;
41529 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41530 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41531 return SWIG_Py_Void();
d14a1e28
RD
41532}
41533
0085ce49
RD
41534SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41535 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
41536}
41537
704eda0c
RD
41538SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41539 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41540 return 1;
41541}
41542
41543
41544SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41545 PyObject *pyobj = 0;
41546
41547 {
41548#if wxUSE_UNICODE
41549 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41550#else
41551 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41552#endif
41553 }
41554 return pyobj;
41555}
41556
41557
41558SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41559 PyObject *resultobj = 0;
41560 wxWindow *arg1 = (wxWindow *) 0 ;
41561 int arg2 ;
41562 wxString *arg3 = 0 ;
41563 wxString *arg4 = 0 ;
41564 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41565 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41566 wxSize const &arg6_defvalue = wxDefaultSize ;
41567 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41568 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41569 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41570 wxString *arg8 = (wxString *) &arg8_defvalue ;
41571 wxHyperlinkCtrl *result = 0 ;
41572 void *argp1 = 0 ;
41573 int res1 = 0 ;
41574 int val2 ;
41575 int ecode2 = 0 ;
41576 bool temp3 = false ;
41577 bool temp4 = false ;
41578 wxPoint temp5 ;
41579 wxSize temp6 ;
41580 long val7 ;
41581 int ecode7 = 0 ;
41582 bool temp8 = false ;
41583 PyObject * obj0 = 0 ;
41584 PyObject * obj1 = 0 ;
41585 PyObject * obj2 = 0 ;
41586 PyObject * obj3 = 0 ;
41587 PyObject * obj4 = 0 ;
41588 PyObject * obj5 = 0 ;
41589 PyObject * obj6 = 0 ;
41590 PyObject * obj7 = 0 ;
41591 char * kwnames[] = {
41592 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41593 };
41594
41595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41597 if (!SWIG_IsOK(res1)) {
41598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41599 }
41600 arg1 = reinterpret_cast< wxWindow * >(argp1);
41601 ecode2 = SWIG_AsVal_int(obj1, &val2);
41602 if (!SWIG_IsOK(ecode2)) {
41603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41604 }
41605 arg2 = static_cast< int >(val2);
41606 {
41607 arg3 = wxString_in_helper(obj2);
41608 if (arg3 == NULL) SWIG_fail;
41609 temp3 = true;
41610 }
41611 {
41612 arg4 = wxString_in_helper(obj3);
41613 if (arg4 == NULL) SWIG_fail;
41614 temp4 = true;
41615 }
41616 if (obj4) {
41617 {
41618 arg5 = &temp5;
41619 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41620 }
41621 }
41622 if (obj5) {
41623 {
41624 arg6 = &temp6;
41625 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41626 }
41627 }
41628 if (obj6) {
41629 ecode7 = SWIG_AsVal_long(obj6, &val7);
41630 if (!SWIG_IsOK(ecode7)) {
41631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41632 }
41633 arg7 = static_cast< long >(val7);
41634 }
41635 if (obj7) {
41636 {
41637 arg8 = wxString_in_helper(obj7);
41638 if (arg8 == NULL) SWIG_fail;
41639 temp8 = true;
41640 }
41641 }
41642 {
41643 if (!wxPyCheckForApp()) SWIG_fail;
41644 PyThreadState* __tstate = wxPyBeginAllowThreads();
41645 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41646 wxPyEndAllowThreads(__tstate);
41647 if (PyErr_Occurred()) SWIG_fail;
41648 }
41649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41650 {
41651 if (temp3)
41652 delete arg3;
41653 }
41654 {
41655 if (temp4)
41656 delete arg4;
41657 }
41658 {
41659 if (temp8)
41660 delete arg8;
41661 }
41662 return resultobj;
41663fail:
41664 {
41665 if (temp3)
41666 delete arg3;
41667 }
41668 {
41669 if (temp4)
41670 delete arg4;
41671 }
41672 {
41673 if (temp8)
41674 delete arg8;
41675 }
41676 return NULL;
41677}
41678
41679
41680SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41681 PyObject *resultobj = 0;
41682 wxHyperlinkCtrl *result = 0 ;
41683
41684 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41685 {
41686 if (!wxPyCheckForApp()) SWIG_fail;
41687 PyThreadState* __tstate = wxPyBeginAllowThreads();
41688 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41689 wxPyEndAllowThreads(__tstate);
41690 if (PyErr_Occurred()) SWIG_fail;
41691 }
41692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41693 return resultobj;
41694fail:
41695 return NULL;
41696}
41697
41698
41699SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41700 PyObject *resultobj = 0;
41701 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41702 wxWindow *arg2 = (wxWindow *) 0 ;
41703 int arg3 ;
41704 wxString *arg4 = 0 ;
41705 wxString *arg5 = 0 ;
41706 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41707 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41708 wxSize const &arg7_defvalue = wxDefaultSize ;
41709 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41710 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41711 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41712 wxString *arg9 = (wxString *) &arg9_defvalue ;
41713 bool result;
41714 void *argp1 = 0 ;
41715 int res1 = 0 ;
41716 void *argp2 = 0 ;
41717 int res2 = 0 ;
41718 int val3 ;
41719 int ecode3 = 0 ;
41720 bool temp4 = false ;
41721 bool temp5 = false ;
41722 wxPoint temp6 ;
41723 wxSize temp7 ;
41724 long val8 ;
41725 int ecode8 = 0 ;
41726 bool temp9 = false ;
41727 PyObject * obj0 = 0 ;
41728 PyObject * obj1 = 0 ;
41729 PyObject * obj2 = 0 ;
41730 PyObject * obj3 = 0 ;
41731 PyObject * obj4 = 0 ;
41732 PyObject * obj5 = 0 ;
41733 PyObject * obj6 = 0 ;
41734 PyObject * obj7 = 0 ;
41735 PyObject * obj8 = 0 ;
41736 char * kwnames[] = {
41737 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41738 };
41739
41740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41742 if (!SWIG_IsOK(res1)) {
41743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41744 }
41745 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41747 if (!SWIG_IsOK(res2)) {
41748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41749 }
41750 arg2 = reinterpret_cast< wxWindow * >(argp2);
41751 ecode3 = SWIG_AsVal_int(obj2, &val3);
41752 if (!SWIG_IsOK(ecode3)) {
41753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41754 }
41755 arg3 = static_cast< int >(val3);
41756 {
41757 arg4 = wxString_in_helper(obj3);
41758 if (arg4 == NULL) SWIG_fail;
41759 temp4 = true;
41760 }
41761 {
41762 arg5 = wxString_in_helper(obj4);
41763 if (arg5 == NULL) SWIG_fail;
41764 temp5 = true;
41765 }
41766 if (obj5) {
41767 {
41768 arg6 = &temp6;
41769 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41770 }
41771 }
41772 if (obj6) {
41773 {
41774 arg7 = &temp7;
41775 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41776 }
41777 }
41778 if (obj7) {
41779 ecode8 = SWIG_AsVal_long(obj7, &val8);
41780 if (!SWIG_IsOK(ecode8)) {
41781 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41782 }
41783 arg8 = static_cast< long >(val8);
41784 }
41785 if (obj8) {
41786 {
41787 arg9 = wxString_in_helper(obj8);
41788 if (arg9 == NULL) SWIG_fail;
41789 temp9 = true;
41790 }
41791 }
41792 {
41793 PyThreadState* __tstate = wxPyBeginAllowThreads();
41794 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41795 wxPyEndAllowThreads(__tstate);
41796 if (PyErr_Occurred()) SWIG_fail;
41797 }
41798 {
41799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41800 }
41801 {
41802 if (temp4)
41803 delete arg4;
41804 }
41805 {
41806 if (temp5)
41807 delete arg5;
41808 }
41809 {
41810 if (temp9)
41811 delete arg9;
41812 }
41813 return resultobj;
41814fail:
41815 {
41816 if (temp4)
41817 delete arg4;
41818 }
41819 {
41820 if (temp5)
41821 delete arg5;
41822 }
41823 {
41824 if (temp9)
41825 delete arg9;
41826 }
41827 return NULL;
41828}
41829
41830
41831SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41832 PyObject *resultobj = 0;
41833 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41834 wxColour result;
41835 void *argp1 = 0 ;
41836 int res1 = 0 ;
41837 PyObject *swig_obj[1] ;
41838
41839 if (!args) SWIG_fail;
41840 swig_obj[0] = args;
41841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41842 if (!SWIG_IsOK(res1)) {
41843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41844 }
41845 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41846 {
41847 PyThreadState* __tstate = wxPyBeginAllowThreads();
41848 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41849 wxPyEndAllowThreads(__tstate);
41850 if (PyErr_Occurred()) SWIG_fail;
41851 }
41852 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41853 return resultobj;
41854fail:
41855 return NULL;
41856}
41857
41858
41859SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41860 PyObject *resultobj = 0;
41861 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41862 wxColour *arg2 = 0 ;
41863 void *argp1 = 0 ;
41864 int res1 = 0 ;
41865 wxColour temp2 ;
41866 PyObject * obj0 = 0 ;
41867 PyObject * obj1 = 0 ;
41868 char * kwnames[] = {
41869 (char *) "self",(char *) "colour", NULL
41870 };
41871
41872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41874 if (!SWIG_IsOK(res1)) {
41875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41876 }
41877 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41878 {
41879 arg2 = &temp2;
41880 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41881 }
41882 {
41883 PyThreadState* __tstate = wxPyBeginAllowThreads();
41884 (arg1)->SetHoverColour((wxColour const &)*arg2);
41885 wxPyEndAllowThreads(__tstate);
41886 if (PyErr_Occurred()) SWIG_fail;
41887 }
41888 resultobj = SWIG_Py_Void();
41889 return resultobj;
41890fail:
41891 return NULL;
41892}
41893
41894
41895SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41896 PyObject *resultobj = 0;
41897 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41898 wxColour result;
41899 void *argp1 = 0 ;
41900 int res1 = 0 ;
41901 PyObject *swig_obj[1] ;
41902
41903 if (!args) SWIG_fail;
41904 swig_obj[0] = args;
41905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41906 if (!SWIG_IsOK(res1)) {
41907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41908 }
41909 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41910 {
41911 PyThreadState* __tstate = wxPyBeginAllowThreads();
41912 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41913 wxPyEndAllowThreads(__tstate);
41914 if (PyErr_Occurred()) SWIG_fail;
41915 }
41916 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41917 return resultobj;
41918fail:
41919 return NULL;
41920}
41921
41922
41923SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41924 PyObject *resultobj = 0;
41925 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41926 wxColour *arg2 = 0 ;
41927 void *argp1 = 0 ;
41928 int res1 = 0 ;
41929 wxColour temp2 ;
41930 PyObject * obj0 = 0 ;
41931 PyObject * obj1 = 0 ;
41932 char * kwnames[] = {
41933 (char *) "self",(char *) "colour", NULL
41934 };
41935
41936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41938 if (!SWIG_IsOK(res1)) {
41939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41940 }
41941 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41942 {
41943 arg2 = &temp2;
41944 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41945 }
41946 {
41947 PyThreadState* __tstate = wxPyBeginAllowThreads();
41948 (arg1)->SetNormalColour((wxColour const &)*arg2);
41949 wxPyEndAllowThreads(__tstate);
41950 if (PyErr_Occurred()) SWIG_fail;
41951 }
41952 resultobj = SWIG_Py_Void();
41953 return resultobj;
41954fail:
41955 return NULL;
41956}
41957
41958
41959SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41960 PyObject *resultobj = 0;
41961 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41962 wxColour result;
41963 void *argp1 = 0 ;
41964 int res1 = 0 ;
41965 PyObject *swig_obj[1] ;
41966
41967 if (!args) SWIG_fail;
41968 swig_obj[0] = args;
41969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41970 if (!SWIG_IsOK(res1)) {
41971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41972 }
41973 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41974 {
41975 PyThreadState* __tstate = wxPyBeginAllowThreads();
41976 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41977 wxPyEndAllowThreads(__tstate);
41978 if (PyErr_Occurred()) SWIG_fail;
41979 }
41980 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41981 return resultobj;
41982fail:
41983 return NULL;
41984}
41985
41986
41987SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41988 PyObject *resultobj = 0;
41989 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41990 wxColour *arg2 = 0 ;
41991 void *argp1 = 0 ;
41992 int res1 = 0 ;
41993 wxColour temp2 ;
41994 PyObject * obj0 = 0 ;
41995 PyObject * obj1 = 0 ;
41996 char * kwnames[] = {
41997 (char *) "self",(char *) "colour", NULL
41998 };
41999
42000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42002 if (!SWIG_IsOK(res1)) {
42003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42004 }
42005 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42006 {
42007 arg2 = &temp2;
42008 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42009 }
42010 {
42011 PyThreadState* __tstate = wxPyBeginAllowThreads();
42012 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42013 wxPyEndAllowThreads(__tstate);
42014 if (PyErr_Occurred()) SWIG_fail;
42015 }
42016 resultobj = SWIG_Py_Void();
42017 return resultobj;
42018fail:
42019 return NULL;
42020}
42021
42022
42023SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42024 PyObject *resultobj = 0;
42025 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42026 wxString result;
42027 void *argp1 = 0 ;
42028 int res1 = 0 ;
42029 PyObject *swig_obj[1] ;
42030
42031 if (!args) SWIG_fail;
42032 swig_obj[0] = args;
42033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42034 if (!SWIG_IsOK(res1)) {
42035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42036 }
42037 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42038 {
42039 PyThreadState* __tstate = wxPyBeginAllowThreads();
42040 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42041 wxPyEndAllowThreads(__tstate);
42042 if (PyErr_Occurred()) SWIG_fail;
42043 }
42044 {
42045#if wxUSE_UNICODE
42046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42047#else
42048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42049#endif
42050 }
42051 return resultobj;
42052fail:
42053 return NULL;
42054}
42055
42056
42057SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42058 PyObject *resultobj = 0;
42059 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42060 wxString *arg2 = 0 ;
42061 void *argp1 = 0 ;
42062 int res1 = 0 ;
42063 bool temp2 = false ;
42064 PyObject * obj0 = 0 ;
42065 PyObject * obj1 = 0 ;
42066 char * kwnames[] = {
42067 (char *) "self",(char *) "url", NULL
42068 };
42069
42070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42072 if (!SWIG_IsOK(res1)) {
42073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42074 }
42075 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42076 {
42077 arg2 = wxString_in_helper(obj1);
42078 if (arg2 == NULL) SWIG_fail;
42079 temp2 = true;
42080 }
42081 {
42082 PyThreadState* __tstate = wxPyBeginAllowThreads();
42083 (arg1)->SetURL((wxString const &)*arg2);
42084 wxPyEndAllowThreads(__tstate);
42085 if (PyErr_Occurred()) SWIG_fail;
42086 }
42087 resultobj = SWIG_Py_Void();
42088 {
42089 if (temp2)
42090 delete arg2;
42091 }
42092 return resultobj;
42093fail:
42094 {
42095 if (temp2)
42096 delete arg2;
42097 }
42098 return NULL;
42099}
42100
42101
42102SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42103 PyObject *resultobj = 0;
42104 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42105 bool arg2 = (bool) true ;
42106 void *argp1 = 0 ;
42107 int res1 = 0 ;
42108 bool val2 ;
42109 int ecode2 = 0 ;
42110 PyObject * obj0 = 0 ;
42111 PyObject * obj1 = 0 ;
42112 char * kwnames[] = {
42113 (char *) "self",(char *) "visited", NULL
42114 };
42115
42116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42118 if (!SWIG_IsOK(res1)) {
42119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42120 }
42121 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42122 if (obj1) {
42123 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42124 if (!SWIG_IsOK(ecode2)) {
42125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42126 }
42127 arg2 = static_cast< bool >(val2);
42128 }
42129 {
42130 PyThreadState* __tstate = wxPyBeginAllowThreads();
42131 (arg1)->SetVisited(arg2);
42132 wxPyEndAllowThreads(__tstate);
42133 if (PyErr_Occurred()) SWIG_fail;
42134 }
42135 resultobj = SWIG_Py_Void();
42136 return resultobj;
42137fail:
42138 return NULL;
42139}
42140
42141
42142SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42143 PyObject *resultobj = 0;
42144 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42145 bool result;
42146 void *argp1 = 0 ;
42147 int res1 = 0 ;
42148 PyObject *swig_obj[1] ;
42149
42150 if (!args) SWIG_fail;
42151 swig_obj[0] = args;
42152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42153 if (!SWIG_IsOK(res1)) {
42154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42155 }
42156 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42157 {
42158 PyThreadState* __tstate = wxPyBeginAllowThreads();
42159 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42160 wxPyEndAllowThreads(__tstate);
42161 if (PyErr_Occurred()) SWIG_fail;
42162 }
42163 {
42164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42165 }
42166 return resultobj;
42167fail:
42168 return NULL;
42169}
42170
42171
42172SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42173 PyObject *obj;
42174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42175 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42176 return SWIG_Py_Void();
42177}
42178
42179SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42180 return SWIG_Python_InitShadowInstance(args);
42181}
42182
42183SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42184 PyObject *resultobj = 0;
42185 wxObject *arg1 = (wxObject *) 0 ;
42186 int arg2 ;
42187 wxString *arg3 = 0 ;
42188 wxHyperlinkEvent *result = 0 ;
42189 void *argp1 = 0 ;
42190 int res1 = 0 ;
42191 int val2 ;
42192 int ecode2 = 0 ;
42193 bool temp3 = false ;
42194 PyObject * obj0 = 0 ;
42195 PyObject * obj1 = 0 ;
42196 PyObject * obj2 = 0 ;
42197 char * kwnames[] = {
42198 (char *) "generator",(char *) "id",(char *) "url", NULL
42199 };
42200
42201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42203 if (!SWIG_IsOK(res1)) {
42204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42205 }
42206 arg1 = reinterpret_cast< wxObject * >(argp1);
42207 ecode2 = SWIG_AsVal_int(obj1, &val2);
42208 if (!SWIG_IsOK(ecode2)) {
42209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42210 }
42211 arg2 = static_cast< int >(val2);
42212 {
42213 arg3 = wxString_in_helper(obj2);
42214 if (arg3 == NULL) SWIG_fail;
42215 temp3 = true;
42216 }
42217 {
42218 PyThreadState* __tstate = wxPyBeginAllowThreads();
42219 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42220 wxPyEndAllowThreads(__tstate);
42221 if (PyErr_Occurred()) SWIG_fail;
42222 }
42223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42224 {
42225 if (temp3)
42226 delete arg3;
42227 }
42228 return resultobj;
42229fail:
42230 {
42231 if (temp3)
42232 delete arg3;
42233 }
42234 return NULL;
42235}
42236
42237
42238SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42239 PyObject *resultobj = 0;
42240 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42241 wxString result;
42242 void *argp1 = 0 ;
42243 int res1 = 0 ;
42244 PyObject *swig_obj[1] ;
42245
42246 if (!args) SWIG_fail;
42247 swig_obj[0] = args;
42248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42249 if (!SWIG_IsOK(res1)) {
42250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42251 }
42252 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42253 {
42254 PyThreadState* __tstate = wxPyBeginAllowThreads();
42255 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42256 wxPyEndAllowThreads(__tstate);
42257 if (PyErr_Occurred()) SWIG_fail;
42258 }
42259 {
42260#if wxUSE_UNICODE
42261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42262#else
42263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42264#endif
42265 }
42266 return resultobj;
42267fail:
42268 return NULL;
42269}
42270
42271
42272SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42273 PyObject *resultobj = 0;
42274 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42275 wxString *arg2 = 0 ;
42276 void *argp1 = 0 ;
42277 int res1 = 0 ;
42278 bool temp2 = false ;
42279 PyObject * obj0 = 0 ;
42280 PyObject * obj1 = 0 ;
42281 char * kwnames[] = {
42282 (char *) "self",(char *) "url", NULL
42283 };
42284
42285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42287 if (!SWIG_IsOK(res1)) {
42288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42289 }
42290 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42291 {
42292 arg2 = wxString_in_helper(obj1);
42293 if (arg2 == NULL) SWIG_fail;
42294 temp2 = true;
42295 }
42296 {
42297 PyThreadState* __tstate = wxPyBeginAllowThreads();
42298 (arg1)->SetURL((wxString const &)*arg2);
42299 wxPyEndAllowThreads(__tstate);
42300 if (PyErr_Occurred()) SWIG_fail;
42301 }
42302 resultobj = SWIG_Py_Void();
42303 {
42304 if (temp2)
42305 delete arg2;
42306 }
42307 return resultobj;
42308fail:
42309 {
42310 if (temp2)
42311 delete arg2;
42312 }
42313 return NULL;
42314}
42315
42316
42317SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42318 PyObject *obj;
42319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42320 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42321 return SWIG_Py_Void();
42322}
42323
42324SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42325 return SWIG_Python_InitShadowInstance(args);
42326}
42327
b850e7f3
RD
42328SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42329 PyObject *resultobj = 0;
42330 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42331 wxWindow *arg2 = (wxWindow *) 0 ;
42332 int arg3 ;
42333 wxString const &arg4_defvalue = wxEmptyString ;
42334 wxString *arg4 = (wxString *) &arg4_defvalue ;
42335 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42336 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42337 wxSize const &arg6_defvalue = wxDefaultSize ;
42338 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42339 long arg7 = (long) 0 ;
42340 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42341 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42342 wxString const &arg9_defvalue = wxButtonNameStr ;
42343 wxString *arg9 = (wxString *) &arg9_defvalue ;
42344 bool result;
42345 void *argp1 = 0 ;
42346 int res1 = 0 ;
42347 void *argp2 = 0 ;
42348 int res2 = 0 ;
42349 int val3 ;
42350 int ecode3 = 0 ;
42351 bool temp4 = false ;
42352 wxPoint temp5 ;
42353 wxSize temp6 ;
42354 long val7 ;
42355 int ecode7 = 0 ;
42356 void *argp8 = 0 ;
42357 int res8 = 0 ;
42358 bool temp9 = false ;
42359 PyObject * obj0 = 0 ;
42360 PyObject * obj1 = 0 ;
42361 PyObject * obj2 = 0 ;
42362 PyObject * obj3 = 0 ;
42363 PyObject * obj4 = 0 ;
42364 PyObject * obj5 = 0 ;
42365 PyObject * obj6 = 0 ;
42366 PyObject * obj7 = 0 ;
42367 PyObject * obj8 = 0 ;
42368 char * kwnames[] = {
42369 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42370 };
42371
42372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42374 if (!SWIG_IsOK(res1)) {
42375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42376 }
42377 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42378 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42379 if (!SWIG_IsOK(res2)) {
42380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42381 }
42382 arg2 = reinterpret_cast< wxWindow * >(argp2);
42383 ecode3 = SWIG_AsVal_int(obj2, &val3);
42384 if (!SWIG_IsOK(ecode3)) {
42385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42386 }
42387 arg3 = static_cast< int >(val3);
42388 if (obj3) {
42389 {
42390 arg4 = wxString_in_helper(obj3);
42391 if (arg4 == NULL) SWIG_fail;
42392 temp4 = true;
42393 }
42394 }
42395 if (obj4) {
42396 {
42397 arg5 = &temp5;
42398 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42399 }
42400 }
42401 if (obj5) {
42402 {
42403 arg6 = &temp6;
42404 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42405 }
42406 }
42407 if (obj6) {
42408 ecode7 = SWIG_AsVal_long(obj6, &val7);
42409 if (!SWIG_IsOK(ecode7)) {
42410 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42411 }
42412 arg7 = static_cast< long >(val7);
42413 }
42414 if (obj7) {
42415 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42416 if (!SWIG_IsOK(res8)) {
42417 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42418 }
42419 if (!argp8) {
42420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42421 }
42422 arg8 = reinterpret_cast< wxValidator * >(argp8);
42423 }
42424 if (obj8) {
42425 {
42426 arg9 = wxString_in_helper(obj8);
42427 if (arg9 == NULL) SWIG_fail;
42428 temp9 = true;
42429 }
42430 }
42431 {
42432 PyThreadState* __tstate = wxPyBeginAllowThreads();
42433 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42434 wxPyEndAllowThreads(__tstate);
42435 if (PyErr_Occurred()) SWIG_fail;
42436 }
42437 {
42438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42439 }
42440 {
42441 if (temp4)
42442 delete arg4;
42443 }
42444 {
42445 if (temp9)
42446 delete arg9;
42447 }
42448 return resultobj;
42449fail:
42450 {
42451 if (temp4)
42452 delete arg4;
42453 }
42454 {
42455 if (temp9)
42456 delete arg9;
42457 }
42458 return NULL;
42459}
42460
42461
42462SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42463 PyObject *resultobj = 0;
42464 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42465 int arg2 ;
42466 void *argp1 = 0 ;
42467 int res1 = 0 ;
42468 int val2 ;
42469 int ecode2 = 0 ;
42470 PyObject * obj0 = 0 ;
42471 PyObject * obj1 = 0 ;
42472 char * kwnames[] = {
42473 (char *) "self",(char *) "newmargin", NULL
42474 };
42475
42476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42478 if (!SWIG_IsOK(res1)) {
42479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42480 }
42481 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42482 ecode2 = SWIG_AsVal_int(obj1, &val2);
42483 if (!SWIG_IsOK(ecode2)) {
42484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42485 }
42486 arg2 = static_cast< int >(val2);
42487 {
42488 PyThreadState* __tstate = wxPyBeginAllowThreads();
42489 (arg1)->SetInternalMargin(arg2);
42490 wxPyEndAllowThreads(__tstate);
42491 if (PyErr_Occurred()) SWIG_fail;
42492 }
42493 resultobj = SWIG_Py_Void();
42494 return resultobj;
42495fail:
42496 return NULL;
42497}
42498
42499
42500SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42501 PyObject *resultobj = 0;
42502 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42503 int result;
42504 void *argp1 = 0 ;
42505 int res1 = 0 ;
42506 PyObject *swig_obj[1] ;
42507
42508 if (!args) SWIG_fail;
42509 swig_obj[0] = args;
42510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42511 if (!SWIG_IsOK(res1)) {
42512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42513 }
42514 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42515 {
42516 PyThreadState* __tstate = wxPyBeginAllowThreads();
42517 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42518 wxPyEndAllowThreads(__tstate);
42519 if (PyErr_Occurred()) SWIG_fail;
42520 }
42521 resultobj = SWIG_From_int(static_cast< int >(result));
42522 return resultobj;
42523fail:
42524 return NULL;
42525}
42526
42527
42528SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42529 PyObject *resultobj = 0;
42530 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42531 int arg2 ;
42532 void *argp1 = 0 ;
42533 int res1 = 0 ;
42534 int val2 ;
42535 int ecode2 = 0 ;
42536 PyObject * obj0 = 0 ;
42537 PyObject * obj1 = 0 ;
42538 char * kwnames[] = {
42539 (char *) "self",(char *) "prop", NULL
42540 };
42541
42542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42544 if (!SWIG_IsOK(res1)) {
42545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42546 }
42547 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42548 ecode2 = SWIG_AsVal_int(obj1, &val2);
42549 if (!SWIG_IsOK(ecode2)) {
42550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42551 }
42552 arg2 = static_cast< int >(val2);
42553 {
42554 PyThreadState* __tstate = wxPyBeginAllowThreads();
42555 (arg1)->SetTextCtrlProportion(arg2);
42556 wxPyEndAllowThreads(__tstate);
42557 if (PyErr_Occurred()) SWIG_fail;
42558 }
42559 resultobj = SWIG_Py_Void();
42560 return resultobj;
42561fail:
42562 return NULL;
42563}
42564
42565
42566SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42567 PyObject *resultobj = 0;
42568 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42569 int result;
42570 void *argp1 = 0 ;
42571 int res1 = 0 ;
42572 PyObject *swig_obj[1] ;
42573
42574 if (!args) SWIG_fail;
42575 swig_obj[0] = args;
42576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42577 if (!SWIG_IsOK(res1)) {
42578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42579 }
42580 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42581 {
42582 PyThreadState* __tstate = wxPyBeginAllowThreads();
42583 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42584 wxPyEndAllowThreads(__tstate);
42585 if (PyErr_Occurred()) SWIG_fail;
42586 }
42587 resultobj = SWIG_From_int(static_cast< int >(result));
42588 return resultobj;
42589fail:
42590 return NULL;
42591}
42592
42593
10044bf1
RD
42594SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42595 PyObject *resultobj = 0;
42596 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42597 int arg2 ;
42598 void *argp1 = 0 ;
42599 int res1 = 0 ;
42600 int val2 ;
42601 int ecode2 = 0 ;
42602 PyObject * obj0 = 0 ;
42603 PyObject * obj1 = 0 ;
42604 char * kwnames[] = {
42605 (char *) "self",(char *) "prop", NULL
42606 };
42607
42608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42610 if (!SWIG_IsOK(res1)) {
42611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42612 }
42613 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42614 ecode2 = SWIG_AsVal_int(obj1, &val2);
42615 if (!SWIG_IsOK(ecode2)) {
42616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42617 }
42618 arg2 = static_cast< int >(val2);
42619 {
42620 PyThreadState* __tstate = wxPyBeginAllowThreads();
42621 (arg1)->SetPickerCtrlProportion(arg2);
42622 wxPyEndAllowThreads(__tstate);
42623 if (PyErr_Occurred()) SWIG_fail;
42624 }
42625 resultobj = SWIG_Py_Void();
42626 return resultobj;
42627fail:
42628 return NULL;
42629}
42630
42631
42632SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42633 PyObject *resultobj = 0;
42634 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42635 int result;
42636 void *argp1 = 0 ;
42637 int res1 = 0 ;
42638 PyObject *swig_obj[1] ;
42639
42640 if (!args) SWIG_fail;
42641 swig_obj[0] = args;
42642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42643 if (!SWIG_IsOK(res1)) {
42644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42645 }
42646 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42647 {
42648 PyThreadState* __tstate = wxPyBeginAllowThreads();
42649 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42650 wxPyEndAllowThreads(__tstate);
42651 if (PyErr_Occurred()) SWIG_fail;
42652 }
42653 resultobj = SWIG_From_int(static_cast< int >(result));
42654 return resultobj;
42655fail:
42656 return NULL;
42657}
42658
42659
b02396e8
RD
42660SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42661 PyObject *resultobj = 0;
42662 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42663 bool result;
42664 void *argp1 = 0 ;
42665 int res1 = 0 ;
42666 PyObject *swig_obj[1] ;
42667
42668 if (!args) SWIG_fail;
42669 swig_obj[0] = args;
42670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42671 if (!SWIG_IsOK(res1)) {
42672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42673 }
42674 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42675 {
42676 PyThreadState* __tstate = wxPyBeginAllowThreads();
42677 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42678 wxPyEndAllowThreads(__tstate);
42679 if (PyErr_Occurred()) SWIG_fail;
42680 }
42681 {
42682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42683 }
42684 return resultobj;
42685fail:
42686 return NULL;
42687}
42688
42689
42690SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42691 PyObject *resultobj = 0;
42692 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42693 bool arg2 = (bool) true ;
42694 void *argp1 = 0 ;
42695 int res1 = 0 ;
42696 bool val2 ;
42697 int ecode2 = 0 ;
42698 PyObject * obj0 = 0 ;
42699 PyObject * obj1 = 0 ;
42700 char * kwnames[] = {
42701 (char *) "self",(char *) "grow", NULL
42702 };
42703
42704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42706 if (!SWIG_IsOK(res1)) {
42707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42708 }
42709 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42710 if (obj1) {
42711 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42712 if (!SWIG_IsOK(ecode2)) {
42713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42714 }
42715 arg2 = static_cast< bool >(val2);
42716 }
42717 {
42718 PyThreadState* __tstate = wxPyBeginAllowThreads();
42719 (arg1)->SetTextCtrlGrowable(arg2);
42720 wxPyEndAllowThreads(__tstate);
42721 if (PyErr_Occurred()) SWIG_fail;
42722 }
42723 resultobj = SWIG_Py_Void();
42724 return resultobj;
42725fail:
42726 return NULL;
42727}
42728
42729
42730SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42731 PyObject *resultobj = 0;
42732 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42733 bool result;
42734 void *argp1 = 0 ;
42735 int res1 = 0 ;
42736 PyObject *swig_obj[1] ;
42737
42738 if (!args) SWIG_fail;
42739 swig_obj[0] = args;
42740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42741 if (!SWIG_IsOK(res1)) {
42742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42743 }
42744 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42745 {
42746 PyThreadState* __tstate = wxPyBeginAllowThreads();
42747 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42748 wxPyEndAllowThreads(__tstate);
42749 if (PyErr_Occurred()) SWIG_fail;
42750 }
42751 {
42752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42753 }
42754 return resultobj;
42755fail:
42756 return NULL;
42757}
42758
42759
42760SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42761 PyObject *resultobj = 0;
42762 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42763 bool arg2 = (bool) true ;
42764 void *argp1 = 0 ;
42765 int res1 = 0 ;
42766 bool val2 ;
42767 int ecode2 = 0 ;
42768 PyObject * obj0 = 0 ;
42769 PyObject * obj1 = 0 ;
42770 char * kwnames[] = {
42771 (char *) "self",(char *) "grow", NULL
42772 };
42773
42774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42776 if (!SWIG_IsOK(res1)) {
42777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42778 }
42779 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42780 if (obj1) {
42781 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42782 if (!SWIG_IsOK(ecode2)) {
42783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42784 }
42785 arg2 = static_cast< bool >(val2);
42786 }
42787 {
42788 PyThreadState* __tstate = wxPyBeginAllowThreads();
42789 (arg1)->SetPickerCtrlGrowable(arg2);
42790 wxPyEndAllowThreads(__tstate);
42791 if (PyErr_Occurred()) SWIG_fail;
42792 }
42793 resultobj = SWIG_Py_Void();
42794 return resultobj;
42795fail:
42796 return NULL;
42797}
42798
42799
b850e7f3
RD
42800SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42801 PyObject *resultobj = 0;
42802 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42803 bool result;
42804 void *argp1 = 0 ;
42805 int res1 = 0 ;
42806 PyObject *swig_obj[1] ;
42807
42808 if (!args) SWIG_fail;
42809 swig_obj[0] = args;
42810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42811 if (!SWIG_IsOK(res1)) {
42812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42813 }
42814 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42815 {
42816 PyThreadState* __tstate = wxPyBeginAllowThreads();
42817 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42818 wxPyEndAllowThreads(__tstate);
42819 if (PyErr_Occurred()) SWIG_fail;
42820 }
42821 {
42822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42823 }
42824 return resultobj;
42825fail:
42826 return NULL;
42827}
42828
42829
42830SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42831 PyObject *resultobj = 0;
42832 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42833 wxTextCtrl *result = 0 ;
42834 void *argp1 = 0 ;
42835 int res1 = 0 ;
42836 PyObject *swig_obj[1] ;
42837
42838 if (!args) SWIG_fail;
42839 swig_obj[0] = args;
42840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42841 if (!SWIG_IsOK(res1)) {
42842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42843 }
42844 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42845 {
42846 PyThreadState* __tstate = wxPyBeginAllowThreads();
42847 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42848 wxPyEndAllowThreads(__tstate);
42849 if (PyErr_Occurred()) SWIG_fail;
42850 }
42851 {
42852 resultobj = wxPyMake_wxObject(result, 0);
42853 }
42854 return resultobj;
42855fail:
42856 return NULL;
42857}
42858
42859
42860SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42861 PyObject *resultobj = 0;
42862 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42863 wxControl *result = 0 ;
42864 void *argp1 = 0 ;
42865 int res1 = 0 ;
42866 PyObject *swig_obj[1] ;
42867
42868 if (!args) SWIG_fail;
42869 swig_obj[0] = args;
42870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42871 if (!SWIG_IsOK(res1)) {
42872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42873 }
42874 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42875 {
42876 PyThreadState* __tstate = wxPyBeginAllowThreads();
42877 result = (wxControl *)(arg1)->GetPickerCtrl();
42878 wxPyEndAllowThreads(__tstate);
42879 if (PyErr_Occurred()) SWIG_fail;
42880 }
42881 {
42882 resultobj = wxPyMake_wxObject(result, 0);
42883 }
42884 return resultobj;
42885fail:
42886 return NULL;
42887}
42888
42889
42890SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42891 PyObject *obj;
42892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42893 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42894 return SWIG_Py_Void();
42895}
42896
42897SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42898 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42899 return 1;
42900}
42901
42902
42903SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42904 PyObject *pyobj = 0;
42905
42906 {
42907#if wxUSE_UNICODE
42908 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42909#else
42910 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42911#endif
42912 }
42913 return pyobj;
42914}
42915
42916
42917SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42918 PyObject *resultobj = 0;
42919 wxWindow *arg1 = (wxWindow *) 0 ;
42920 int arg2 = (int) -1 ;
42921 wxColour const &arg3_defvalue = *wxBLACK ;
42922 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42923 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42924 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42925 wxSize const &arg5_defvalue = wxDefaultSize ;
42926 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42927 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42928 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42929 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42930 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42931 wxString *arg8 = (wxString *) &arg8_defvalue ;
42932 wxColourPickerCtrl *result = 0 ;
42933 void *argp1 = 0 ;
42934 int res1 = 0 ;
42935 int val2 ;
42936 int ecode2 = 0 ;
42937 wxColour temp3 ;
42938 wxPoint temp4 ;
42939 wxSize temp5 ;
42940 long val6 ;
42941 int ecode6 = 0 ;
42942 void *argp7 = 0 ;
42943 int res7 = 0 ;
42944 bool temp8 = false ;
42945 PyObject * obj0 = 0 ;
42946 PyObject * obj1 = 0 ;
42947 PyObject * obj2 = 0 ;
42948 PyObject * obj3 = 0 ;
42949 PyObject * obj4 = 0 ;
42950 PyObject * obj5 = 0 ;
42951 PyObject * obj6 = 0 ;
42952 PyObject * obj7 = 0 ;
42953 char * kwnames[] = {
42954 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42955 };
42956
42957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42959 if (!SWIG_IsOK(res1)) {
42960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42961 }
42962 arg1 = reinterpret_cast< wxWindow * >(argp1);
42963 if (obj1) {
42964 ecode2 = SWIG_AsVal_int(obj1, &val2);
42965 if (!SWIG_IsOK(ecode2)) {
42966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42967 }
42968 arg2 = static_cast< int >(val2);
42969 }
42970 if (obj2) {
42971 {
42972 arg3 = &temp3;
42973 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42974 }
42975 }
42976 if (obj3) {
42977 {
42978 arg4 = &temp4;
42979 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42980 }
42981 }
42982 if (obj4) {
42983 {
42984 arg5 = &temp5;
42985 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42986 }
42987 }
42988 if (obj5) {
42989 ecode6 = SWIG_AsVal_long(obj5, &val6);
42990 if (!SWIG_IsOK(ecode6)) {
42991 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42992 }
42993 arg6 = static_cast< long >(val6);
42994 }
42995 if (obj6) {
42996 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42997 if (!SWIG_IsOK(res7)) {
42998 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42999 }
43000 if (!argp7) {
43001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43002 }
43003 arg7 = reinterpret_cast< wxValidator * >(argp7);
43004 }
43005 if (obj7) {
43006 {
43007 arg8 = wxString_in_helper(obj7);
43008 if (arg8 == NULL) SWIG_fail;
43009 temp8 = true;
43010 }
43011 }
43012 {
43013 if (!wxPyCheckForApp()) SWIG_fail;
43014 PyThreadState* __tstate = wxPyBeginAllowThreads();
43015 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43016 wxPyEndAllowThreads(__tstate);
43017 if (PyErr_Occurred()) SWIG_fail;
43018 }
43019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43020 {
43021 if (temp8)
43022 delete arg8;
43023 }
43024 return resultobj;
43025fail:
43026 {
43027 if (temp8)
43028 delete arg8;
43029 }
43030 return NULL;
43031}
43032
43033
43034SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43035 PyObject *resultobj = 0;
43036 wxColourPickerCtrl *result = 0 ;
43037
43038 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43039 {
43040 if (!wxPyCheckForApp()) SWIG_fail;
43041 PyThreadState* __tstate = wxPyBeginAllowThreads();
43042 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43043 wxPyEndAllowThreads(__tstate);
43044 if (PyErr_Occurred()) SWIG_fail;
43045 }
43046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43047 return resultobj;
43048fail:
43049 return NULL;
43050}
43051
43052
43053SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43054 PyObject *resultobj = 0;
43055 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43056 wxWindow *arg2 = (wxWindow *) 0 ;
43057 int arg3 ;
43058 wxColour const &arg4_defvalue = *wxBLACK ;
43059 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43060 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43061 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43062 wxSize const &arg6_defvalue = wxDefaultSize ;
43063 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43064 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43065 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43066 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43067 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43068 wxString *arg9 = (wxString *) &arg9_defvalue ;
43069 bool result;
43070 void *argp1 = 0 ;
43071 int res1 = 0 ;
43072 void *argp2 = 0 ;
43073 int res2 = 0 ;
43074 int val3 ;
43075 int ecode3 = 0 ;
43076 wxColour temp4 ;
43077 wxPoint temp5 ;
43078 wxSize temp6 ;
43079 long val7 ;
43080 int ecode7 = 0 ;
43081 void *argp8 = 0 ;
43082 int res8 = 0 ;
43083 bool temp9 = false ;
43084 PyObject * obj0 = 0 ;
43085 PyObject * obj1 = 0 ;
43086 PyObject * obj2 = 0 ;
43087 PyObject * obj3 = 0 ;
43088 PyObject * obj4 = 0 ;
43089 PyObject * obj5 = 0 ;
43090 PyObject * obj6 = 0 ;
43091 PyObject * obj7 = 0 ;
43092 PyObject * obj8 = 0 ;
43093 char * kwnames[] = {
43094 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43095 };
43096
43097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43099 if (!SWIG_IsOK(res1)) {
43100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43101 }
43102 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43103 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43104 if (!SWIG_IsOK(res2)) {
43105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43106 }
43107 arg2 = reinterpret_cast< wxWindow * >(argp2);
43108 ecode3 = SWIG_AsVal_int(obj2, &val3);
43109 if (!SWIG_IsOK(ecode3)) {
43110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43111 }
43112 arg3 = static_cast< int >(val3);
43113 if (obj3) {
43114 {
43115 arg4 = &temp4;
43116 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43117 }
43118 }
43119 if (obj4) {
43120 {
43121 arg5 = &temp5;
43122 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43123 }
43124 }
43125 if (obj5) {
43126 {
43127 arg6 = &temp6;
43128 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43129 }
43130 }
43131 if (obj6) {
43132 ecode7 = SWIG_AsVal_long(obj6, &val7);
43133 if (!SWIG_IsOK(ecode7)) {
43134 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43135 }
43136 arg7 = static_cast< long >(val7);
43137 }
43138 if (obj7) {
43139 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43140 if (!SWIG_IsOK(res8)) {
43141 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43142 }
43143 if (!argp8) {
43144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43145 }
43146 arg8 = reinterpret_cast< wxValidator * >(argp8);
43147 }
43148 if (obj8) {
43149 {
43150 arg9 = wxString_in_helper(obj8);
43151 if (arg9 == NULL) SWIG_fail;
43152 temp9 = true;
43153 }
43154 }
43155 {
43156 PyThreadState* __tstate = wxPyBeginAllowThreads();
43157 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43158 wxPyEndAllowThreads(__tstate);
43159 if (PyErr_Occurred()) SWIG_fail;
43160 }
43161 {
43162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43163 }
43164 {
43165 if (temp9)
43166 delete arg9;
43167 }
43168 return resultobj;
43169fail:
43170 {
43171 if (temp9)
43172 delete arg9;
43173 }
43174 return NULL;
43175}
43176
43177
43178SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43179 PyObject *resultobj = 0;
43180 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43181 wxColour result;
43182 void *argp1 = 0 ;
43183 int res1 = 0 ;
43184 PyObject *swig_obj[1] ;
43185
43186 if (!args) SWIG_fail;
43187 swig_obj[0] = args;
43188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43189 if (!SWIG_IsOK(res1)) {
43190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43191 }
43192 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43193 {
43194 PyThreadState* __tstate = wxPyBeginAllowThreads();
43195 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43196 wxPyEndAllowThreads(__tstate);
43197 if (PyErr_Occurred()) SWIG_fail;
43198 }
43199 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43200 return resultobj;
43201fail:
43202 return NULL;
43203}
43204
43205
43206SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43207 PyObject *resultobj = 0;
43208 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43209 wxColour *arg2 = 0 ;
43210 void *argp1 = 0 ;
43211 int res1 = 0 ;
43212 wxColour temp2 ;
43213 PyObject * obj0 = 0 ;
43214 PyObject * obj1 = 0 ;
43215 char * kwnames[] = {
43216 (char *) "self",(char *) "col", NULL
43217 };
43218
43219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43221 if (!SWIG_IsOK(res1)) {
43222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43223 }
43224 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43225 {
43226 arg2 = &temp2;
43227 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43228 }
43229 {
43230 PyThreadState* __tstate = wxPyBeginAllowThreads();
43231 (arg1)->SetColour((wxColour const &)*arg2);
43232 wxPyEndAllowThreads(__tstate);
43233 if (PyErr_Occurred()) SWIG_fail;
43234 }
43235 resultobj = SWIG_Py_Void();
43236 return resultobj;
43237fail:
43238 return NULL;
43239}
43240
43241
43242SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43243 PyObject *obj;
43244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43245 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43246 return SWIG_Py_Void();
43247}
43248
43249SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43250 return SWIG_Python_InitShadowInstance(args);
43251}
43252
43253SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43254 PyObject *resultobj = 0;
43255 wxObject *arg1 = (wxObject *) 0 ;
43256 int arg2 ;
43257 wxColour *arg3 = 0 ;
43258 wxColourPickerEvent *result = 0 ;
43259 void *argp1 = 0 ;
43260 int res1 = 0 ;
43261 int val2 ;
43262 int ecode2 = 0 ;
43263 wxColour temp3 ;
43264 PyObject * obj0 = 0 ;
43265 PyObject * obj1 = 0 ;
43266 PyObject * obj2 = 0 ;
43267 char * kwnames[] = {
43268 (char *) "generator",(char *) "id",(char *) "col", NULL
43269 };
43270
43271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43273 if (!SWIG_IsOK(res1)) {
43274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43275 }
43276 arg1 = reinterpret_cast< wxObject * >(argp1);
43277 ecode2 = SWIG_AsVal_int(obj1, &val2);
43278 if (!SWIG_IsOK(ecode2)) {
43279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43280 }
43281 arg2 = static_cast< int >(val2);
43282 {
43283 arg3 = &temp3;
43284 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43285 }
43286 {
43287 PyThreadState* __tstate = wxPyBeginAllowThreads();
43288 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43289 wxPyEndAllowThreads(__tstate);
43290 if (PyErr_Occurred()) SWIG_fail;
43291 }
43292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43293 return resultobj;
43294fail:
43295 return NULL;
43296}
43297
43298
43299SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43300 PyObject *resultobj = 0;
43301 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43302 wxColour result;
43303 void *argp1 = 0 ;
43304 int res1 = 0 ;
43305 PyObject *swig_obj[1] ;
43306
43307 if (!args) SWIG_fail;
43308 swig_obj[0] = args;
43309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43310 if (!SWIG_IsOK(res1)) {
43311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43312 }
43313 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43314 {
43315 PyThreadState* __tstate = wxPyBeginAllowThreads();
43316 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43317 wxPyEndAllowThreads(__tstate);
43318 if (PyErr_Occurred()) SWIG_fail;
43319 }
43320 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43321 return resultobj;
43322fail:
43323 return NULL;
43324}
43325
43326
43327SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43328 PyObject *resultobj = 0;
43329 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43330 wxColour *arg2 = 0 ;
43331 void *argp1 = 0 ;
43332 int res1 = 0 ;
43333 wxColour temp2 ;
43334 PyObject * obj0 = 0 ;
43335 PyObject * obj1 = 0 ;
43336 char * kwnames[] = {
43337 (char *) "self",(char *) "c", NULL
43338 };
43339
43340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43342 if (!SWIG_IsOK(res1)) {
43343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43344 }
43345 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43346 {
43347 arg2 = &temp2;
43348 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43349 }
43350 {
43351 PyThreadState* __tstate = wxPyBeginAllowThreads();
43352 (arg1)->SetColour((wxColour const &)*arg2);
43353 wxPyEndAllowThreads(__tstate);
43354 if (PyErr_Occurred()) SWIG_fail;
43355 }
43356 resultobj = SWIG_Py_Void();
43357 return resultobj;
43358fail:
43359 return NULL;
43360}
43361
43362
43363SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43364 PyObject *obj;
43365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43366 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43367 return SWIG_Py_Void();
43368}
43369
43370SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43371 return SWIG_Python_InitShadowInstance(args);
43372}
43373
43374SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43375 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43376 return 1;
43377}
43378
43379
43380SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43381 PyObject *pyobj = 0;
43382
43383 {
43384#if wxUSE_UNICODE
43385 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43386#else
43387 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43388#endif
43389 }
43390 return pyobj;
43391}
43392
43393
43394SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43395 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43396 return 1;
43397}
43398
43399
43400SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43401 PyObject *pyobj = 0;
43402
43403 {
43404#if wxUSE_UNICODE
43405 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43406#else
43407 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43408#endif
43409 }
43410 return pyobj;
43411}
43412
43413
43414SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43415 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43416 return 1;
43417}
43418
43419
43420SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43421 PyObject *pyobj = 0;
43422
43423 {
43424#if wxUSE_UNICODE
43425 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43426#else
43427 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43428#endif
43429 }
43430 return pyobj;
43431}
43432
43433
43434SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43435 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43436 return 1;
43437}
43438
43439
43440SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43441 PyObject *pyobj = 0;
43442
43443 {
43444#if wxUSE_UNICODE
43445 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43446#else
43447 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43448#endif
43449 }
43450 return pyobj;
43451}
43452
43453
43454SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43455 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43456 return 1;
43457}
43458
43459
43460SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43461 PyObject *pyobj = 0;
43462
43463 {
43464#if wxUSE_UNICODE
43465 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43466#else
43467 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43468#endif
43469 }
43470 return pyobj;
43471}
43472
43473
43474SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43475 PyObject *resultobj = 0;
43476 wxWindow *arg1 = (wxWindow *) 0 ;
43477 int arg2 = (int) -1 ;
43478 wxString const &arg3_defvalue = wxPyEmptyString ;
43479 wxString *arg3 = (wxString *) &arg3_defvalue ;
43480 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43481 wxString *arg4 = (wxString *) &arg4_defvalue ;
43482 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43483 wxString *arg5 = (wxString *) &arg5_defvalue ;
43484 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43485 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43486 wxSize const &arg7_defvalue = wxDefaultSize ;
43487 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43488 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43489 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43490 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43491 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43492 wxString *arg10 = (wxString *) &arg10_defvalue ;
43493 wxFilePickerCtrl *result = 0 ;
43494 void *argp1 = 0 ;
43495 int res1 = 0 ;
43496 int val2 ;
43497 int ecode2 = 0 ;
43498 bool temp3 = false ;
43499 bool temp4 = false ;
43500 bool temp5 = false ;
43501 wxPoint temp6 ;
43502 wxSize temp7 ;
43503 long val8 ;
43504 int ecode8 = 0 ;
43505 void *argp9 = 0 ;
43506 int res9 = 0 ;
43507 bool temp10 = false ;
43508 PyObject * obj0 = 0 ;
43509 PyObject * obj1 = 0 ;
43510 PyObject * obj2 = 0 ;
43511 PyObject * obj3 = 0 ;
43512 PyObject * obj4 = 0 ;
43513 PyObject * obj5 = 0 ;
43514 PyObject * obj6 = 0 ;
43515 PyObject * obj7 = 0 ;
43516 PyObject * obj8 = 0 ;
43517 PyObject * obj9 = 0 ;
43518 char * kwnames[] = {
43519 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43520 };
43521
43522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43524 if (!SWIG_IsOK(res1)) {
43525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43526 }
43527 arg1 = reinterpret_cast< wxWindow * >(argp1);
43528 if (obj1) {
43529 ecode2 = SWIG_AsVal_int(obj1, &val2);
43530 if (!SWIG_IsOK(ecode2)) {
43531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43532 }
43533 arg2 = static_cast< int >(val2);
43534 }
43535 if (obj2) {
43536 {
43537 arg3 = wxString_in_helper(obj2);
43538 if (arg3 == NULL) SWIG_fail;
43539 temp3 = true;
43540 }
43541 }
43542 if (obj3) {
43543 {
43544 arg4 = wxString_in_helper(obj3);
43545 if (arg4 == NULL) SWIG_fail;
43546 temp4 = true;
43547 }
43548 }
43549 if (obj4) {
43550 {
43551 arg5 = wxString_in_helper(obj4);
43552 if (arg5 == NULL) SWIG_fail;
43553 temp5 = true;
43554 }
43555 }
43556 if (obj5) {
43557 {
43558 arg6 = &temp6;
43559 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43560 }
43561 }
43562 if (obj6) {
43563 {
43564 arg7 = &temp7;
43565 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43566 }
43567 }
43568 if (obj7) {
43569 ecode8 = SWIG_AsVal_long(obj7, &val8);
43570 if (!SWIG_IsOK(ecode8)) {
43571 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43572 }
43573 arg8 = static_cast< long >(val8);
43574 }
43575 if (obj8) {
43576 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43577 if (!SWIG_IsOK(res9)) {
43578 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43579 }
43580 if (!argp9) {
43581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43582 }
43583 arg9 = reinterpret_cast< wxValidator * >(argp9);
43584 }
43585 if (obj9) {
43586 {
43587 arg10 = wxString_in_helper(obj9);
43588 if (arg10 == NULL) SWIG_fail;
43589 temp10 = true;
43590 }
43591 }
43592 {
43593 if (!wxPyCheckForApp()) SWIG_fail;
43594 PyThreadState* __tstate = wxPyBeginAllowThreads();
43595 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);
43596 wxPyEndAllowThreads(__tstate);
43597 if (PyErr_Occurred()) SWIG_fail;
43598 }
43599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43600 {
43601 if (temp3)
43602 delete arg3;
43603 }
43604 {
43605 if (temp4)
43606 delete arg4;
43607 }
43608 {
43609 if (temp5)
43610 delete arg5;
43611 }
43612 {
43613 if (temp10)
43614 delete arg10;
43615 }
43616 return resultobj;
43617fail:
43618 {
43619 if (temp3)
43620 delete arg3;
43621 }
43622 {
43623 if (temp4)
43624 delete arg4;
43625 }
43626 {
43627 if (temp5)
43628 delete arg5;
43629 }
43630 {
43631 if (temp10)
43632 delete arg10;
43633 }
43634 return NULL;
43635}
43636
43637
43638SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43639 PyObject *resultobj = 0;
43640 wxFilePickerCtrl *result = 0 ;
43641
43642 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43643 {
43644 if (!wxPyCheckForApp()) SWIG_fail;
43645 PyThreadState* __tstate = wxPyBeginAllowThreads();
43646 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43647 wxPyEndAllowThreads(__tstate);
43648 if (PyErr_Occurred()) SWIG_fail;
43649 }
43650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43651 return resultobj;
43652fail:
43653 return NULL;
43654}
43655
43656
43657SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43658 PyObject *resultobj = 0;
43659 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43660 wxWindow *arg2 = (wxWindow *) 0 ;
43661 int arg3 = (int) -1 ;
43662 wxString const &arg4_defvalue = wxPyEmptyString ;
43663 wxString *arg4 = (wxString *) &arg4_defvalue ;
43664 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43665 wxString *arg5 = (wxString *) &arg5_defvalue ;
43666 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43667 wxString *arg6 = (wxString *) &arg6_defvalue ;
43668 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43669 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43670 wxSize const &arg8_defvalue = wxDefaultSize ;
43671 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43672 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43673 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43674 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43675 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43676 wxString *arg11 = (wxString *) &arg11_defvalue ;
43677 bool result;
43678 void *argp1 = 0 ;
43679 int res1 = 0 ;
43680 void *argp2 = 0 ;
43681 int res2 = 0 ;
43682 int val3 ;
43683 int ecode3 = 0 ;
43684 bool temp4 = false ;
43685 bool temp5 = false ;
43686 bool temp6 = false ;
43687 wxPoint temp7 ;
43688 wxSize temp8 ;
43689 long val9 ;
43690 int ecode9 = 0 ;
43691 void *argp10 = 0 ;
43692 int res10 = 0 ;
43693 bool temp11 = false ;
43694 PyObject * obj0 = 0 ;
43695 PyObject * obj1 = 0 ;
43696 PyObject * obj2 = 0 ;
43697 PyObject * obj3 = 0 ;
43698 PyObject * obj4 = 0 ;
43699 PyObject * obj5 = 0 ;
43700 PyObject * obj6 = 0 ;
43701 PyObject * obj7 = 0 ;
43702 PyObject * obj8 = 0 ;
43703 PyObject * obj9 = 0 ;
43704 PyObject * obj10 = 0 ;
43705 char * kwnames[] = {
43706 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43707 };
43708
43709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43711 if (!SWIG_IsOK(res1)) {
43712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43713 }
43714 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43716 if (!SWIG_IsOK(res2)) {
43717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43718 }
43719 arg2 = reinterpret_cast< wxWindow * >(argp2);
43720 if (obj2) {
43721 ecode3 = SWIG_AsVal_int(obj2, &val3);
43722 if (!SWIG_IsOK(ecode3)) {
43723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43724 }
43725 arg3 = static_cast< int >(val3);
43726 }
43727 if (obj3) {
43728 {
43729 arg4 = wxString_in_helper(obj3);
43730 if (arg4 == NULL) SWIG_fail;
43731 temp4 = true;
43732 }
43733 }
43734 if (obj4) {
43735 {
43736 arg5 = wxString_in_helper(obj4);
43737 if (arg5 == NULL) SWIG_fail;
43738 temp5 = true;
43739 }
43740 }
43741 if (obj5) {
43742 {
43743 arg6 = wxString_in_helper(obj5);
43744 if (arg6 == NULL) SWIG_fail;
43745 temp6 = true;
43746 }
43747 }
43748 if (obj6) {
43749 {
43750 arg7 = &temp7;
43751 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43752 }
43753 }
43754 if (obj7) {
43755 {
43756 arg8 = &temp8;
43757 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43758 }
43759 }
43760 if (obj8) {
43761 ecode9 = SWIG_AsVal_long(obj8, &val9);
43762 if (!SWIG_IsOK(ecode9)) {
43763 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43764 }
43765 arg9 = static_cast< long >(val9);
43766 }
43767 if (obj9) {
43768 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43769 if (!SWIG_IsOK(res10)) {
43770 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43771 }
43772 if (!argp10) {
43773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43774 }
43775 arg10 = reinterpret_cast< wxValidator * >(argp10);
43776 }
43777 if (obj10) {
43778 {
43779 arg11 = wxString_in_helper(obj10);
43780 if (arg11 == NULL) SWIG_fail;
43781 temp11 = true;
43782 }
43783 }
43784 {
43785 PyThreadState* __tstate = wxPyBeginAllowThreads();
43786 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);
43787 wxPyEndAllowThreads(__tstate);
43788 if (PyErr_Occurred()) SWIG_fail;
43789 }
43790 {
43791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43792 }
43793 {
43794 if (temp4)
43795 delete arg4;
43796 }
43797 {
43798 if (temp5)
43799 delete arg5;
43800 }
43801 {
43802 if (temp6)
43803 delete arg6;
43804 }
43805 {
43806 if (temp11)
43807 delete arg11;
43808 }
43809 return resultobj;
43810fail:
43811 {
43812 if (temp4)
43813 delete arg4;
43814 }
43815 {
43816 if (temp5)
43817 delete arg5;
43818 }
43819 {
43820 if (temp6)
43821 delete arg6;
43822 }
43823 {
43824 if (temp11)
43825 delete arg11;
43826 }
43827 return NULL;
43828}
43829
43830
43831SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43832 PyObject *resultobj = 0;
43833 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43834 wxString result;
43835 void *argp1 = 0 ;
43836 int res1 = 0 ;
43837 PyObject *swig_obj[1] ;
43838
43839 if (!args) SWIG_fail;
43840 swig_obj[0] = args;
43841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43842 if (!SWIG_IsOK(res1)) {
43843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43844 }
43845 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43846 {
43847 PyThreadState* __tstate = wxPyBeginAllowThreads();
43848 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43849 wxPyEndAllowThreads(__tstate);
43850 if (PyErr_Occurred()) SWIG_fail;
43851 }
43852 {
43853#if wxUSE_UNICODE
43854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43855#else
43856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43857#endif
43858 }
43859 return resultobj;
43860fail:
43861 return NULL;
43862}
43863
43864
43865SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43866 PyObject *resultobj = 0;
43867 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43868 wxString *arg2 = 0 ;
43869 void *argp1 = 0 ;
43870 int res1 = 0 ;
43871 bool temp2 = false ;
43872 PyObject * obj0 = 0 ;
43873 PyObject * obj1 = 0 ;
43874 char * kwnames[] = {
43875 (char *) "self",(char *) "str", NULL
43876 };
43877
43878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43880 if (!SWIG_IsOK(res1)) {
43881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43882 }
43883 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43884 {
43885 arg2 = wxString_in_helper(obj1);
43886 if (arg2 == NULL) SWIG_fail;
43887 temp2 = true;
43888 }
43889 {
43890 PyThreadState* __tstate = wxPyBeginAllowThreads();
43891 (arg1)->SetPath((wxString const &)*arg2);
43892 wxPyEndAllowThreads(__tstate);
43893 if (PyErr_Occurred()) SWIG_fail;
43894 }
43895 resultobj = SWIG_Py_Void();
43896 {
43897 if (temp2)
43898 delete arg2;
43899 }
43900 return resultobj;
43901fail:
43902 {
43903 if (temp2)
43904 delete arg2;
43905 }
43906 return NULL;
43907}
43908
43909
b02396e8
RD
43910SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43911 PyObject *resultobj = 0;
43912 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43913 wxString *arg2 = 0 ;
43914 bool result;
43915 void *argp1 = 0 ;
43916 int res1 = 0 ;
43917 bool temp2 = false ;
43918 PyObject * obj0 = 0 ;
43919 PyObject * obj1 = 0 ;
43920 char * kwnames[] = {
43921 (char *) "self",(char *) "path", NULL
43922 };
43923
43924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43926 if (!SWIG_IsOK(res1)) {
43927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43928 }
43929 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43930 {
43931 arg2 = wxString_in_helper(obj1);
43932 if (arg2 == NULL) SWIG_fail;
43933 temp2 = true;
43934 }
43935 {
43936 PyThreadState* __tstate = wxPyBeginAllowThreads();
43937 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43938 wxPyEndAllowThreads(__tstate);
43939 if (PyErr_Occurred()) SWIG_fail;
43940 }
43941 {
43942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43943 }
43944 {
43945 if (temp2)
43946 delete arg2;
43947 }
43948 return resultobj;
43949fail:
43950 {
43951 if (temp2)
43952 delete arg2;
43953 }
43954 return NULL;
43955}
43956
43957
43958SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43959 PyObject *resultobj = 0;
43960 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43961 wxString result;
43962 void *argp1 = 0 ;
43963 int res1 = 0 ;
43964 PyObject *swig_obj[1] ;
43965
43966 if (!args) SWIG_fail;
43967 swig_obj[0] = args;
43968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43969 if (!SWIG_IsOK(res1)) {
43970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43971 }
43972 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43973 {
43974 PyThreadState* __tstate = wxPyBeginAllowThreads();
43975 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43976 wxPyEndAllowThreads(__tstate);
43977 if (PyErr_Occurred()) SWIG_fail;
43978 }
43979 {
43980#if wxUSE_UNICODE
43981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43982#else
43983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43984#endif
43985 }
43986 return resultobj;
43987fail:
43988 return NULL;
43989}
43990
43991
b850e7f3
RD
43992SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43993 PyObject *obj;
43994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43995 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43996 return SWIG_Py_Void();
43997}
43998
43999SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44000 return SWIG_Python_InitShadowInstance(args);
44001}
44002
44003SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44004 PyObject *resultobj = 0;
44005 wxWindow *arg1 = (wxWindow *) 0 ;
44006 int arg2 = (int) -1 ;
44007 wxString const &arg3_defvalue = wxPyEmptyString ;
44008 wxString *arg3 = (wxString *) &arg3_defvalue ;
44009 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44010 wxString *arg4 = (wxString *) &arg4_defvalue ;
44011 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44012 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44013 wxSize const &arg6_defvalue = wxDefaultSize ;
44014 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44015 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44016 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44017 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44018 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44019 wxString *arg9 = (wxString *) &arg9_defvalue ;
44020 wxDirPickerCtrl *result = 0 ;
44021 void *argp1 = 0 ;
44022 int res1 = 0 ;
44023 int val2 ;
44024 int ecode2 = 0 ;
44025 bool temp3 = false ;
44026 bool temp4 = false ;
44027 wxPoint temp5 ;
44028 wxSize temp6 ;
44029 long val7 ;
44030 int ecode7 = 0 ;
44031 void *argp8 = 0 ;
44032 int res8 = 0 ;
44033 bool temp9 = false ;
44034 PyObject * obj0 = 0 ;
44035 PyObject * obj1 = 0 ;
44036 PyObject * obj2 = 0 ;
44037 PyObject * obj3 = 0 ;
44038 PyObject * obj4 = 0 ;
44039 PyObject * obj5 = 0 ;
44040 PyObject * obj6 = 0 ;
44041 PyObject * obj7 = 0 ;
44042 PyObject * obj8 = 0 ;
44043 char * kwnames[] = {
44044 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44045 };
44046
44047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44049 if (!SWIG_IsOK(res1)) {
44050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44051 }
44052 arg1 = reinterpret_cast< wxWindow * >(argp1);
44053 if (obj1) {
44054 ecode2 = SWIG_AsVal_int(obj1, &val2);
44055 if (!SWIG_IsOK(ecode2)) {
44056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44057 }
44058 arg2 = static_cast< int >(val2);
44059 }
44060 if (obj2) {
44061 {
44062 arg3 = wxString_in_helper(obj2);
44063 if (arg3 == NULL) SWIG_fail;
44064 temp3 = true;
44065 }
44066 }
44067 if (obj3) {
44068 {
44069 arg4 = wxString_in_helper(obj3);
44070 if (arg4 == NULL) SWIG_fail;
44071 temp4 = true;
44072 }
44073 }
44074 if (obj4) {
44075 {
44076 arg5 = &temp5;
44077 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44078 }
44079 }
44080 if (obj5) {
44081 {
44082 arg6 = &temp6;
44083 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44084 }
44085 }
44086 if (obj6) {
44087 ecode7 = SWIG_AsVal_long(obj6, &val7);
44088 if (!SWIG_IsOK(ecode7)) {
44089 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44090 }
44091 arg7 = static_cast< long >(val7);
44092 }
44093 if (obj7) {
44094 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44095 if (!SWIG_IsOK(res8)) {
44096 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44097 }
44098 if (!argp8) {
44099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44100 }
44101 arg8 = reinterpret_cast< wxValidator * >(argp8);
44102 }
44103 if (obj8) {
44104 {
44105 arg9 = wxString_in_helper(obj8);
44106 if (arg9 == NULL) SWIG_fail;
44107 temp9 = true;
44108 }
44109 }
44110 {
44111 if (!wxPyCheckForApp()) SWIG_fail;
44112 PyThreadState* __tstate = wxPyBeginAllowThreads();
44113 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);
44114 wxPyEndAllowThreads(__tstate);
44115 if (PyErr_Occurred()) SWIG_fail;
44116 }
44117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44118 {
44119 if (temp3)
44120 delete arg3;
44121 }
44122 {
44123 if (temp4)
44124 delete arg4;
44125 }
44126 {
44127 if (temp9)
44128 delete arg9;
44129 }
44130 return resultobj;
44131fail:
44132 {
44133 if (temp3)
44134 delete arg3;
44135 }
44136 {
44137 if (temp4)
44138 delete arg4;
44139 }
44140 {
44141 if (temp9)
44142 delete arg9;
44143 }
44144 return NULL;
44145}
44146
44147
44148SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44149 PyObject *resultobj = 0;
44150 wxDirPickerCtrl *result = 0 ;
44151
44152 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44153 {
44154 if (!wxPyCheckForApp()) SWIG_fail;
44155 PyThreadState* __tstate = wxPyBeginAllowThreads();
44156 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44157 wxPyEndAllowThreads(__tstate);
44158 if (PyErr_Occurred()) SWIG_fail;
44159 }
44160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44161 return resultobj;
44162fail:
44163 return NULL;
44164}
44165
44166
44167SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44168 PyObject *resultobj = 0;
44169 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44170 wxWindow *arg2 = (wxWindow *) 0 ;
44171 int arg3 = (int) -1 ;
44172 wxString const &arg4_defvalue = wxPyEmptyString ;
44173 wxString *arg4 = (wxString *) &arg4_defvalue ;
44174 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44175 wxString *arg5 = (wxString *) &arg5_defvalue ;
44176 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44177 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44178 wxSize const &arg7_defvalue = wxDefaultSize ;
44179 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44180 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44181 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44182 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44183 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44184 wxString *arg10 = (wxString *) &arg10_defvalue ;
44185 bool result;
44186 void *argp1 = 0 ;
44187 int res1 = 0 ;
44188 void *argp2 = 0 ;
44189 int res2 = 0 ;
44190 int val3 ;
44191 int ecode3 = 0 ;
44192 bool temp4 = false ;
44193 bool temp5 = false ;
44194 wxPoint temp6 ;
44195 wxSize temp7 ;
44196 long val8 ;
44197 int ecode8 = 0 ;
44198 void *argp9 = 0 ;
44199 int res9 = 0 ;
44200 bool temp10 = false ;
44201 PyObject * obj0 = 0 ;
44202 PyObject * obj1 = 0 ;
44203 PyObject * obj2 = 0 ;
44204 PyObject * obj3 = 0 ;
44205 PyObject * obj4 = 0 ;
44206 PyObject * obj5 = 0 ;
44207 PyObject * obj6 = 0 ;
44208 PyObject * obj7 = 0 ;
44209 PyObject * obj8 = 0 ;
44210 PyObject * obj9 = 0 ;
44211 char * kwnames[] = {
44212 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44213 };
44214
44215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44217 if (!SWIG_IsOK(res1)) {
44218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44219 }
44220 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44221 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44222 if (!SWIG_IsOK(res2)) {
44223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44224 }
44225 arg2 = reinterpret_cast< wxWindow * >(argp2);
44226 if (obj2) {
44227 ecode3 = SWIG_AsVal_int(obj2, &val3);
44228 if (!SWIG_IsOK(ecode3)) {
44229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44230 }
44231 arg3 = static_cast< int >(val3);
44232 }
44233 if (obj3) {
44234 {
44235 arg4 = wxString_in_helper(obj3);
44236 if (arg4 == NULL) SWIG_fail;
44237 temp4 = true;
44238 }
44239 }
44240 if (obj4) {
44241 {
44242 arg5 = wxString_in_helper(obj4);
44243 if (arg5 == NULL) SWIG_fail;
44244 temp5 = true;
44245 }
44246 }
44247 if (obj5) {
44248 {
44249 arg6 = &temp6;
44250 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44251 }
44252 }
44253 if (obj6) {
44254 {
44255 arg7 = &temp7;
44256 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44257 }
44258 }
44259 if (obj7) {
44260 ecode8 = SWIG_AsVal_long(obj7, &val8);
44261 if (!SWIG_IsOK(ecode8)) {
44262 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44263 }
44264 arg8 = static_cast< long >(val8);
44265 }
44266 if (obj8) {
44267 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44268 if (!SWIG_IsOK(res9)) {
44269 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44270 }
44271 if (!argp9) {
44272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44273 }
44274 arg9 = reinterpret_cast< wxValidator * >(argp9);
44275 }
44276 if (obj9) {
44277 {
44278 arg10 = wxString_in_helper(obj9);
44279 if (arg10 == NULL) SWIG_fail;
44280 temp10 = true;
44281 }
44282 }
44283 {
44284 PyThreadState* __tstate = wxPyBeginAllowThreads();
44285 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);
44286 wxPyEndAllowThreads(__tstate);
44287 if (PyErr_Occurred()) SWIG_fail;
44288 }
44289 {
44290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44291 }
44292 {
44293 if (temp4)
44294 delete arg4;
44295 }
44296 {
44297 if (temp5)
44298 delete arg5;
44299 }
44300 {
44301 if (temp10)
44302 delete arg10;
44303 }
44304 return resultobj;
44305fail:
44306 {
44307 if (temp4)
44308 delete arg4;
44309 }
44310 {
44311 if (temp5)
44312 delete arg5;
44313 }
44314 {
44315 if (temp10)
44316 delete arg10;
44317 }
44318 return NULL;
44319}
44320
44321
44322SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44323 PyObject *resultobj = 0;
44324 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44325 wxString result;
44326 void *argp1 = 0 ;
44327 int res1 = 0 ;
44328 PyObject *swig_obj[1] ;
44329
44330 if (!args) SWIG_fail;
44331 swig_obj[0] = args;
44332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44333 if (!SWIG_IsOK(res1)) {
44334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44335 }
44336 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44337 {
44338 PyThreadState* __tstate = wxPyBeginAllowThreads();
44339 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44340 wxPyEndAllowThreads(__tstate);
44341 if (PyErr_Occurred()) SWIG_fail;
44342 }
44343 {
44344#if wxUSE_UNICODE
44345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44346#else
44347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44348#endif
44349 }
44350 return resultobj;
44351fail:
44352 return NULL;
44353}
44354
44355
44356SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44357 PyObject *resultobj = 0;
44358 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44359 wxString *arg2 = 0 ;
44360 void *argp1 = 0 ;
44361 int res1 = 0 ;
44362 bool temp2 = false ;
44363 PyObject * obj0 = 0 ;
44364 PyObject * obj1 = 0 ;
44365 char * kwnames[] = {
44366 (char *) "self",(char *) "str", NULL
44367 };
44368
44369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44371 if (!SWIG_IsOK(res1)) {
44372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44373 }
44374 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44375 {
44376 arg2 = wxString_in_helper(obj1);
44377 if (arg2 == NULL) SWIG_fail;
44378 temp2 = true;
44379 }
44380 {
44381 PyThreadState* __tstate = wxPyBeginAllowThreads();
44382 (arg1)->SetPath((wxString const &)*arg2);
44383 wxPyEndAllowThreads(__tstate);
44384 if (PyErr_Occurred()) SWIG_fail;
44385 }
44386 resultobj = SWIG_Py_Void();
44387 {
44388 if (temp2)
44389 delete arg2;
44390 }
44391 return resultobj;
44392fail:
44393 {
44394 if (temp2)
44395 delete arg2;
44396 }
44397 return NULL;
44398}
44399
44400
b02396e8
RD
44401SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44402 PyObject *resultobj = 0;
44403 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44404 wxString *arg2 = 0 ;
44405 bool result;
44406 void *argp1 = 0 ;
44407 int res1 = 0 ;
44408 bool temp2 = false ;
44409 PyObject * obj0 = 0 ;
44410 PyObject * obj1 = 0 ;
44411 char * kwnames[] = {
44412 (char *) "self",(char *) "path", NULL
44413 };
44414
44415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44417 if (!SWIG_IsOK(res1)) {
44418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44419 }
44420 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44421 {
44422 arg2 = wxString_in_helper(obj1);
44423 if (arg2 == NULL) SWIG_fail;
44424 temp2 = true;
44425 }
44426 {
44427 PyThreadState* __tstate = wxPyBeginAllowThreads();
44428 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44429 wxPyEndAllowThreads(__tstate);
44430 if (PyErr_Occurred()) SWIG_fail;
44431 }
44432 {
44433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44434 }
44435 {
44436 if (temp2)
44437 delete arg2;
44438 }
44439 return resultobj;
44440fail:
44441 {
44442 if (temp2)
44443 delete arg2;
44444 }
44445 return NULL;
44446}
44447
44448
44449SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44450 PyObject *resultobj = 0;
44451 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44452 wxString result;
44453 void *argp1 = 0 ;
44454 int res1 = 0 ;
44455 PyObject *swig_obj[1] ;
44456
44457 if (!args) SWIG_fail;
44458 swig_obj[0] = args;
44459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44460 if (!SWIG_IsOK(res1)) {
44461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44462 }
44463 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44464 {
44465 PyThreadState* __tstate = wxPyBeginAllowThreads();
44466 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44467 wxPyEndAllowThreads(__tstate);
44468 if (PyErr_Occurred()) SWIG_fail;
44469 }
44470 {
44471#if wxUSE_UNICODE
44472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44473#else
44474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44475#endif
44476 }
44477 return resultobj;
44478fail:
44479 return NULL;
44480}
44481
44482
b850e7f3
RD
44483SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44484 PyObject *obj;
44485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44486 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44487 return SWIG_Py_Void();
44488}
44489
44490SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44491 return SWIG_Python_InitShadowInstance(args);
44492}
44493
44494SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44495 PyObject *resultobj = 0;
44496 wxEventType arg1 ;
44497 wxObject *arg2 = (wxObject *) 0 ;
44498 int arg3 ;
44499 wxString *arg4 = 0 ;
44500 wxFileDirPickerEvent *result = 0 ;
44501 int val1 ;
44502 int ecode1 = 0 ;
44503 void *argp2 = 0 ;
44504 int res2 = 0 ;
44505 int val3 ;
44506 int ecode3 = 0 ;
44507 bool temp4 = false ;
44508 PyObject * obj0 = 0 ;
44509 PyObject * obj1 = 0 ;
44510 PyObject * obj2 = 0 ;
44511 PyObject * obj3 = 0 ;
44512 char * kwnames[] = {
44513 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44514 };
44515
44516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44517 ecode1 = SWIG_AsVal_int(obj0, &val1);
44518 if (!SWIG_IsOK(ecode1)) {
44519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44520 }
44521 arg1 = static_cast< wxEventType >(val1);
44522 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44523 if (!SWIG_IsOK(res2)) {
44524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44525 }
44526 arg2 = reinterpret_cast< wxObject * >(argp2);
44527 ecode3 = SWIG_AsVal_int(obj2, &val3);
44528 if (!SWIG_IsOK(ecode3)) {
44529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44530 }
44531 arg3 = static_cast< int >(val3);
44532 {
44533 arg4 = wxString_in_helper(obj3);
44534 if (arg4 == NULL) SWIG_fail;
44535 temp4 = true;
44536 }
44537 {
44538 PyThreadState* __tstate = wxPyBeginAllowThreads();
44539 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44540 wxPyEndAllowThreads(__tstate);
44541 if (PyErr_Occurred()) SWIG_fail;
44542 }
44543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44544 {
44545 if (temp4)
44546 delete arg4;
44547 }
44548 return resultobj;
44549fail:
44550 {
44551 if (temp4)
44552 delete arg4;
44553 }
44554 return NULL;
44555}
44556
44557
44558SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44559 PyObject *resultobj = 0;
44560 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44561 wxString result;
44562 void *argp1 = 0 ;
44563 int res1 = 0 ;
44564 PyObject *swig_obj[1] ;
44565
44566 if (!args) SWIG_fail;
44567 swig_obj[0] = args;
44568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44569 if (!SWIG_IsOK(res1)) {
44570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44571 }
44572 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44573 {
44574 PyThreadState* __tstate = wxPyBeginAllowThreads();
44575 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44576 wxPyEndAllowThreads(__tstate);
44577 if (PyErr_Occurred()) SWIG_fail;
44578 }
44579 {
44580#if wxUSE_UNICODE
44581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44582#else
44583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44584#endif
44585 }
44586 return resultobj;
44587fail:
44588 return NULL;
44589}
44590
44591
44592SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44593 PyObject *resultobj = 0;
44594 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44595 wxString *arg2 = 0 ;
44596 void *argp1 = 0 ;
44597 int res1 = 0 ;
44598 bool temp2 = false ;
44599 PyObject * obj0 = 0 ;
44600 PyObject * obj1 = 0 ;
44601 char * kwnames[] = {
44602 (char *) "self",(char *) "p", NULL
44603 };
44604
44605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44607 if (!SWIG_IsOK(res1)) {
44608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44609 }
44610 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44611 {
44612 arg2 = wxString_in_helper(obj1);
44613 if (arg2 == NULL) SWIG_fail;
44614 temp2 = true;
44615 }
44616 {
44617 PyThreadState* __tstate = wxPyBeginAllowThreads();
44618 (arg1)->SetPath((wxString const &)*arg2);
44619 wxPyEndAllowThreads(__tstate);
44620 if (PyErr_Occurred()) SWIG_fail;
44621 }
44622 resultobj = SWIG_Py_Void();
44623 {
44624 if (temp2)
44625 delete arg2;
44626 }
44627 return resultobj;
44628fail:
44629 {
44630 if (temp2)
44631 delete arg2;
44632 }
44633 return NULL;
44634}
44635
44636
44637SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44638 PyObject *obj;
44639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44640 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44641 return SWIG_Py_Void();
44642}
44643
44644SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44645 return SWIG_Python_InitShadowInstance(args);
44646}
44647
44648SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44649 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44650 return 1;
44651}
44652
44653
44654SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44655 PyObject *pyobj = 0;
44656
44657 {
44658#if wxUSE_UNICODE
44659 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44660#else
44661 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44662#endif
44663 }
44664 return pyobj;
44665}
44666
44667
44668SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44669 PyObject *resultobj = 0;
44670 wxWindow *arg1 = (wxWindow *) 0 ;
44671 int arg2 = (int) -1 ;
44672 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44673 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44674 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44675 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44676 wxSize const &arg5_defvalue = wxDefaultSize ;
44677 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44678 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44679 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44680 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44681 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44682 wxString *arg8 = (wxString *) &arg8_defvalue ;
44683 wxFontPickerCtrl *result = 0 ;
44684 void *argp1 = 0 ;
44685 int res1 = 0 ;
44686 int val2 ;
44687 int ecode2 = 0 ;
44688 void *argp3 = 0 ;
44689 int res3 = 0 ;
44690 wxPoint temp4 ;
44691 wxSize temp5 ;
44692 long val6 ;
44693 int ecode6 = 0 ;
44694 void *argp7 = 0 ;
44695 int res7 = 0 ;
44696 bool temp8 = false ;
44697 PyObject * obj0 = 0 ;
44698 PyObject * obj1 = 0 ;
44699 PyObject * obj2 = 0 ;
44700 PyObject * obj3 = 0 ;
44701 PyObject * obj4 = 0 ;
44702 PyObject * obj5 = 0 ;
44703 PyObject * obj6 = 0 ;
44704 PyObject * obj7 = 0 ;
44705 char * kwnames[] = {
44706 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44707 };
44708
44709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44711 if (!SWIG_IsOK(res1)) {
44712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44713 }
44714 arg1 = reinterpret_cast< wxWindow * >(argp1);
44715 if (obj1) {
44716 ecode2 = SWIG_AsVal_int(obj1, &val2);
44717 if (!SWIG_IsOK(ecode2)) {
44718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44719 }
44720 arg2 = static_cast< int >(val2);
44721 }
44722 if (obj2) {
44723 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44724 if (!SWIG_IsOK(res3)) {
44725 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44726 }
44727 if (!argp3) {
44728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44729 }
44730 arg3 = reinterpret_cast< wxFont * >(argp3);
44731 }
44732 if (obj3) {
44733 {
44734 arg4 = &temp4;
44735 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44736 }
44737 }
44738 if (obj4) {
44739 {
44740 arg5 = &temp5;
44741 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44742 }
44743 }
44744 if (obj5) {
44745 ecode6 = SWIG_AsVal_long(obj5, &val6);
44746 if (!SWIG_IsOK(ecode6)) {
44747 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44748 }
44749 arg6 = static_cast< long >(val6);
44750 }
44751 if (obj6) {
44752 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44753 if (!SWIG_IsOK(res7)) {
44754 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44755 }
44756 if (!argp7) {
44757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44758 }
44759 arg7 = reinterpret_cast< wxValidator * >(argp7);
44760 }
44761 if (obj7) {
44762 {
44763 arg8 = wxString_in_helper(obj7);
44764 if (arg8 == NULL) SWIG_fail;
44765 temp8 = true;
44766 }
44767 }
44768 {
44769 if (!wxPyCheckForApp()) SWIG_fail;
44770 PyThreadState* __tstate = wxPyBeginAllowThreads();
44771 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44772 wxPyEndAllowThreads(__tstate);
44773 if (PyErr_Occurred()) SWIG_fail;
44774 }
44775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44776 {
44777 if (temp8)
44778 delete arg8;
44779 }
44780 return resultobj;
44781fail:
44782 {
44783 if (temp8)
44784 delete arg8;
44785 }
44786 return NULL;
44787}
44788
44789
44790SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44791 PyObject *resultobj = 0;
44792 wxFontPickerCtrl *result = 0 ;
44793
44794 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44795 {
44796 if (!wxPyCheckForApp()) SWIG_fail;
44797 PyThreadState* __tstate = wxPyBeginAllowThreads();
44798 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44799 wxPyEndAllowThreads(__tstate);
44800 if (PyErr_Occurred()) SWIG_fail;
44801 }
44802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44803 return resultobj;
44804fail:
44805 return NULL;
44806}
44807
44808
44809SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44810 PyObject *resultobj = 0;
44811 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44812 wxWindow *arg2 = (wxWindow *) 0 ;
44813 int arg3 = (int) -1 ;
44814 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44815 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44816 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44817 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44818 wxSize const &arg6_defvalue = wxDefaultSize ;
44819 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44820 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44821 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44822 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44823 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44824 wxString *arg9 = (wxString *) &arg9_defvalue ;
44825 bool result;
44826 void *argp1 = 0 ;
44827 int res1 = 0 ;
44828 void *argp2 = 0 ;
44829 int res2 = 0 ;
44830 int val3 ;
44831 int ecode3 = 0 ;
44832 void *argp4 = 0 ;
44833 int res4 = 0 ;
44834 wxPoint temp5 ;
44835 wxSize temp6 ;
44836 long val7 ;
44837 int ecode7 = 0 ;
44838 void *argp8 = 0 ;
44839 int res8 = 0 ;
44840 bool temp9 = false ;
44841 PyObject * obj0 = 0 ;
44842 PyObject * obj1 = 0 ;
44843 PyObject * obj2 = 0 ;
44844 PyObject * obj3 = 0 ;
44845 PyObject * obj4 = 0 ;
44846 PyObject * obj5 = 0 ;
44847 PyObject * obj6 = 0 ;
44848 PyObject * obj7 = 0 ;
44849 PyObject * obj8 = 0 ;
44850 char * kwnames[] = {
44851 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44852 };
44853
44854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44856 if (!SWIG_IsOK(res1)) {
44857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44858 }
44859 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44861 if (!SWIG_IsOK(res2)) {
44862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44863 }
44864 arg2 = reinterpret_cast< wxWindow * >(argp2);
44865 if (obj2) {
44866 ecode3 = SWIG_AsVal_int(obj2, &val3);
44867 if (!SWIG_IsOK(ecode3)) {
44868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44869 }
44870 arg3 = static_cast< int >(val3);
44871 }
44872 if (obj3) {
44873 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44874 if (!SWIG_IsOK(res4)) {
44875 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44876 }
44877 if (!argp4) {
44878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44879 }
44880 arg4 = reinterpret_cast< wxFont * >(argp4);
44881 }
44882 if (obj4) {
44883 {
44884 arg5 = &temp5;
44885 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44886 }
44887 }
44888 if (obj5) {
44889 {
44890 arg6 = &temp6;
44891 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44892 }
44893 }
44894 if (obj6) {
44895 ecode7 = SWIG_AsVal_long(obj6, &val7);
44896 if (!SWIG_IsOK(ecode7)) {
44897 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44898 }
44899 arg7 = static_cast< long >(val7);
44900 }
44901 if (obj7) {
44902 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44903 if (!SWIG_IsOK(res8)) {
44904 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44905 }
44906 if (!argp8) {
44907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44908 }
44909 arg8 = reinterpret_cast< wxValidator * >(argp8);
44910 }
44911 if (obj8) {
44912 {
44913 arg9 = wxString_in_helper(obj8);
44914 if (arg9 == NULL) SWIG_fail;
44915 temp9 = true;
44916 }
44917 }
44918 {
44919 PyThreadState* __tstate = wxPyBeginAllowThreads();
44920 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44921 wxPyEndAllowThreads(__tstate);
44922 if (PyErr_Occurred()) SWIG_fail;
44923 }
44924 {
44925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44926 }
44927 {
44928 if (temp9)
44929 delete arg9;
44930 }
44931 return resultobj;
44932fail:
44933 {
44934 if (temp9)
44935 delete arg9;
44936 }
44937 return NULL;
44938}
44939
44940
44941SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44942 PyObject *resultobj = 0;
44943 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44944 wxFont result;
44945 void *argp1 = 0 ;
44946 int res1 = 0 ;
44947 PyObject *swig_obj[1] ;
44948
44949 if (!args) SWIG_fail;
44950 swig_obj[0] = args;
44951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44952 if (!SWIG_IsOK(res1)) {
44953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44954 }
44955 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44956 {
44957 PyThreadState* __tstate = wxPyBeginAllowThreads();
44958 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44959 wxPyEndAllowThreads(__tstate);
44960 if (PyErr_Occurred()) SWIG_fail;
44961 }
44962 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44963 return resultobj;
44964fail:
44965 return NULL;
44966}
44967
44968
44969SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44970 PyObject *resultobj = 0;
44971 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44972 wxFont *arg2 = 0 ;
44973 void *argp1 = 0 ;
44974 int res1 = 0 ;
44975 void *argp2 = 0 ;
44976 int res2 = 0 ;
44977 PyObject * obj0 = 0 ;
44978 PyObject * obj1 = 0 ;
44979 char * kwnames[] = {
44980 (char *) "self",(char *) "f", NULL
44981 };
44982
44983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44985 if (!SWIG_IsOK(res1)) {
44986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44987 }
44988 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44990 if (!SWIG_IsOK(res2)) {
44991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44992 }
44993 if (!argp2) {
44994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44995 }
44996 arg2 = reinterpret_cast< wxFont * >(argp2);
44997 {
44998 PyThreadState* __tstate = wxPyBeginAllowThreads();
44999 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45000 wxPyEndAllowThreads(__tstate);
45001 if (PyErr_Occurred()) SWIG_fail;
45002 }
45003 resultobj = SWIG_Py_Void();
45004 return resultobj;
45005fail:
45006 return NULL;
45007}
45008
45009
45010SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45011 PyObject *resultobj = 0;
45012 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45013 unsigned int arg2 ;
45014 void *argp1 = 0 ;
45015 int res1 = 0 ;
45016 unsigned int val2 ;
45017 int ecode2 = 0 ;
45018 PyObject * obj0 = 0 ;
45019 PyObject * obj1 = 0 ;
45020 char * kwnames[] = {
45021 (char *) "self",(char *) "max", NULL
45022 };
45023
45024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45026 if (!SWIG_IsOK(res1)) {
45027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45028 }
45029 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45030 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45031 if (!SWIG_IsOK(ecode2)) {
45032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45033 }
45034 arg2 = static_cast< unsigned int >(val2);
45035 {
45036 PyThreadState* __tstate = wxPyBeginAllowThreads();
45037 (arg1)->SetMaxPointSize(arg2);
45038 wxPyEndAllowThreads(__tstate);
45039 if (PyErr_Occurred()) SWIG_fail;
45040 }
45041 resultobj = SWIG_Py_Void();
45042 return resultobj;
45043fail:
45044 return NULL;
45045}
45046
45047
45048SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45049 PyObject *resultobj = 0;
45050 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45051 unsigned int result;
45052 void *argp1 = 0 ;
45053 int res1 = 0 ;
45054 PyObject *swig_obj[1] ;
45055
45056 if (!args) SWIG_fail;
45057 swig_obj[0] = args;
45058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45059 if (!SWIG_IsOK(res1)) {
45060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45061 }
45062 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45063 {
45064 PyThreadState* __tstate = wxPyBeginAllowThreads();
45065 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45066 wxPyEndAllowThreads(__tstate);
45067 if (PyErr_Occurred()) SWIG_fail;
45068 }
45069 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45070 return resultobj;
45071fail:
45072 return NULL;
45073}
45074
45075
45076SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45077 PyObject *obj;
45078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45079 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45080 return SWIG_Py_Void();
45081}
45082
45083SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45084 return SWIG_Python_InitShadowInstance(args);
45085}
45086
45087SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45088 PyObject *resultobj = 0;
45089 wxObject *arg1 = (wxObject *) 0 ;
45090 int arg2 ;
45091 wxFont *arg3 = 0 ;
45092 wxFontPickerEvent *result = 0 ;
45093 void *argp1 = 0 ;
45094 int res1 = 0 ;
45095 int val2 ;
45096 int ecode2 = 0 ;
45097 void *argp3 = 0 ;
45098 int res3 = 0 ;
45099 PyObject * obj0 = 0 ;
45100 PyObject * obj1 = 0 ;
45101 PyObject * obj2 = 0 ;
45102 char * kwnames[] = {
45103 (char *) "generator",(char *) "id",(char *) "f", NULL
45104 };
45105
45106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45108 if (!SWIG_IsOK(res1)) {
45109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45110 }
45111 arg1 = reinterpret_cast< wxObject * >(argp1);
45112 ecode2 = SWIG_AsVal_int(obj1, &val2);
45113 if (!SWIG_IsOK(ecode2)) {
45114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45115 }
45116 arg2 = static_cast< int >(val2);
45117 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45118 if (!SWIG_IsOK(res3)) {
45119 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45120 }
45121 if (!argp3) {
45122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45123 }
45124 arg3 = reinterpret_cast< wxFont * >(argp3);
45125 {
45126 PyThreadState* __tstate = wxPyBeginAllowThreads();
45127 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45128 wxPyEndAllowThreads(__tstate);
45129 if (PyErr_Occurred()) SWIG_fail;
45130 }
45131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45132 return resultobj;
45133fail:
45134 return NULL;
45135}
45136
45137
45138SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45139 PyObject *resultobj = 0;
45140 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45141 wxFont result;
45142 void *argp1 = 0 ;
45143 int res1 = 0 ;
45144 PyObject *swig_obj[1] ;
45145
45146 if (!args) SWIG_fail;
45147 swig_obj[0] = args;
45148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45149 if (!SWIG_IsOK(res1)) {
45150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45151 }
45152 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45153 {
45154 PyThreadState* __tstate = wxPyBeginAllowThreads();
45155 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45156 wxPyEndAllowThreads(__tstate);
45157 if (PyErr_Occurred()) SWIG_fail;
45158 }
45159 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45160 return resultobj;
45161fail:
45162 return NULL;
45163}
45164
45165
45166SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45167 PyObject *resultobj = 0;
45168 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45169 wxFont *arg2 = 0 ;
45170 void *argp1 = 0 ;
45171 int res1 = 0 ;
45172 void *argp2 = 0 ;
45173 int res2 = 0 ;
45174 PyObject * obj0 = 0 ;
45175 PyObject * obj1 = 0 ;
45176 char * kwnames[] = {
45177 (char *) "self",(char *) "c", NULL
45178 };
45179
45180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45182 if (!SWIG_IsOK(res1)) {
45183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45184 }
45185 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45187 if (!SWIG_IsOK(res2)) {
45188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45189 }
45190 if (!argp2) {
45191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45192 }
45193 arg2 = reinterpret_cast< wxFont * >(argp2);
45194 {
45195 PyThreadState* __tstate = wxPyBeginAllowThreads();
45196 (arg1)->SetFont((wxFont const &)*arg2);
45197 wxPyEndAllowThreads(__tstate);
45198 if (PyErr_Occurred()) SWIG_fail;
45199 }
45200 resultobj = SWIG_Py_Void();
45201 return resultobj;
45202fail:
45203 return NULL;
45204}
45205
45206
45207SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45208 PyObject *obj;
45209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45210 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45211 return SWIG_Py_Void();
45212}
45213
45214SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45215 return SWIG_Python_InitShadowInstance(args);
45216}
45217
45218static PyMethodDef SwigMethods[] = {
45219 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45220 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45221 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45223 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45224 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45225 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45226 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45227 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45228 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45229 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45230 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45231 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45232 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45233 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45234 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45235 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45240 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45241 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45242 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45243 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45244 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45245 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45247 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45249 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45250 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45251 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45252 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45254 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45255 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45256 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45257 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45258 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45260 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45262 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45263 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45264 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45265 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45266 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45267 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45268 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45269 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45270 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45271 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45272 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45273 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45274 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45275 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45276 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45277 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45279 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45280 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45281 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45282 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45283 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45284 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45285 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45286 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45287 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45288 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45289 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45290 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45291 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45292 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45293 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45294 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45295 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45296 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45297 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45299 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45301 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45302 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45303 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
ae5bc7f3 45304 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
45305 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45306 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45308 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45310 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45312 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45313 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45315 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45317 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45318 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45319 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45320 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45321 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45322 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45323 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45324 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45325 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45326 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45327 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45329 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45333 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45334 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45336 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45338 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45342 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45343 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45345 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45351 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45356 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45361 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45367 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45368 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45370 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45371 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45374 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45375 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45376 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45378 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45379 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45380 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45381 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45389 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45390 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45391 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45392 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45393 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45394 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45395 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45397 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45398 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45399 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45400 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45401 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45402 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45403 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45404 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45405 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45406 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45408 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45409 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45411 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45413 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45418 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45419 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45420 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45421 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45422 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45423 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45424 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45425 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45430 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45431 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45432 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45440 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45446 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45447 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45448 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45449 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45450 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45451 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45452 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45453 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45454 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45455 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45457 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45458 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45459 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45461 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45466 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45467 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45469 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45470 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45471 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45472 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45473 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45475 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45477 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45478 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45479 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45480 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45481 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45484 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45485 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45486 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45487 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45489 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45490 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45491 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45495 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45496 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45498 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45499 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45501 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45503 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45507 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45508 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45511 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45512 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45514 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45516 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45517 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45519 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45522 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45523 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45525 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45533 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45534 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45541 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45542 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45544 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45546 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45549 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45550 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45552 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45554 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45557 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45558 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45563 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45564 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45565 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45566 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45568 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45569 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45570 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45571 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45572 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45573 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45576 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45577 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45579 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45582 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45584 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45585 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45586 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45588 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45589 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45594 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45599 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 45600 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
45601 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
45603 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45605 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
45606 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45609 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45613 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45614 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45616 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45618 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45620 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45622 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45623 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45625 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45627 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45629 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45630 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45632 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45633 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45635 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45636 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45638 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45640 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45641 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45642 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45644 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45645 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45647 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45649 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45650 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45651 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45653 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45654 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45656 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45664 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45665 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45666 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45668 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45669 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45671 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45673 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45674 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45675 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45676 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45678 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45679 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45680 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45681 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45682 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45683 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45684 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45685 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45686 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45687 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45688 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45689 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45690 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45691 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45692 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45693 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45694 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45695 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45696 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45698 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45705 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45707 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45709 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45717 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45722 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45723 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45740 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45741 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45742 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45743 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45746 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45747 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45749 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45750 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45753 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45754 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45755 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45757 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45758 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45760 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45761 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45763 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45765 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45767 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45768 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45769 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45770 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45771 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45772 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45774 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45775 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45776 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45777 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45778 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45779 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45780 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45794 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45795 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45796 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45797 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45798 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45799 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45800 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45801 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45802 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45803 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45804 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45805 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45806 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45807 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45808 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45809 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45810 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45811 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45812 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45813 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45814 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45815 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45816 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45817 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45818 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45819 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45820 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45821 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45822 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45823 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45824 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45825 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45826 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45827 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45828 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45829 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45831 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45832 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45833 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45834 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45835 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45836 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45837 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45838 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45839 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45840 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45841 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45842 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45843 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45844 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45845 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45846 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45847 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45848 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45849 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45850 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45851 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45852 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45853 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45854 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45856 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45857 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45859 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45866 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45867 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45868 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45883 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45884 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45885 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45887 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45888 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45890 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45896 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45897 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45902 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45904 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45905 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45911 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45912 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45928 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45930 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45931 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45933 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45937 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45939 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45942 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45943 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45944 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45945 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45946 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45947 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45950 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45951 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45952 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45953 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45955 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45956 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45958 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45960 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45961 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45962 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
0085ce49
RD
45963 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45964 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45966 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45968 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45970 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45971 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45973 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45975 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45978 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45979 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45980 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45982 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45985 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45986 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45988 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45990 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45991 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46019 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46020 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46021 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46028 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46038 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
46039 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
0085ce49
RD
46041 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46045 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46047 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46053 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46057 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
0085ce49
RD
46059 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46060 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46061 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46063 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46065 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46066 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46067 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46069 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46070 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46073 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46074 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46076 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46078 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46079 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46080 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46082 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46083 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46084 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46085 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46087 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46090 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46091 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46093 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46101 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46102 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46103 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46104 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46105 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46106 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46107 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46108 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46109 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46111 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46113 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46115 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46116 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46117 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46118 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46119 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46120 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46122 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46124 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46125 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46126 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46128 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46129 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
46130 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46132 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46134 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46135 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46139 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46140 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46141 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46142 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46143 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46149 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46153 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46155 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46156 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46161 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46162 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46164 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46167 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46169 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46170 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46171 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46172 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46174 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46176 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46178 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46180 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46182 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46183 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46185 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46186 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46187 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46189 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46191 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46192 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46195 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46196 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
10044bf1
RD
46197 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46199 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46200 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46202 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46203 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46204 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46205 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46206 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46207 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46209 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46211 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46213 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46214 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46216 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46217 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46218 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46219 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46221 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46223 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46224 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46226 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46227 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46228 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46230 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46232 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46233 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46234 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46235 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46236 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46237 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46239 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46241 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46242 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46244 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46246 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46249 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46250 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46251 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46253 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46254 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46255 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
0085ce49
RD
46256 { NULL, NULL, 0, NULL }
46257};
46258
46259
46260/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46261
46262static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46263 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46264}
46265static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46266 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46267}
46268static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46269 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46270}
46271static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46272 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46273}
46274static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46275 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46276}
46277static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46278 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46279}
46280static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46281 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46282}
46283static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46284 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46285}
b850e7f3
RD
46286static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46287 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46288}
46289static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46290 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46291}
46292static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46293 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46294}
0085ce49
RD
46295static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46296 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46297}
46298static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46299 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46300}
46301static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46302 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46303}
0085ce49
RD
46304static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46305 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46306}
34e0a3bb
RD
46307static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46308 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46309}
2131d850
RD
46310static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46311 return (void *)((wxEvent *) ((wxPyEvent *) x));
46312}
0085ce49
RD
46313static void *_p_wxListEventTo_p_wxEvent(void *x) {
46314 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46315}
46316static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46317 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46318}
46319static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46320 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46321}
46322static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46323 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46324}
46325static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46326 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46327}
46328static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46329 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46330}
46331static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46332 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46333}
46334static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46335 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46336}
46337static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46338 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46339}
46340static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46341 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46342}
46343static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46344 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46345}
46346static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46347 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46348}
46349static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46350 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46351}
46352static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46353 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46354}
46355static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46356 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46357}
46358static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46359 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46360}
46361static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46362 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46363}
46364static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46365 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46366}
34e0a3bb
RD
46367static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46368 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46369}
0085ce49
RD
46370static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46371 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46372}
46373static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46374 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46375}
46376static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46377 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46378}
46379static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46380 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46381}
46382static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46383 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46384}
704eda0c
RD
46385static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46386 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46387}
0085ce49
RD
46388static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46389 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46390}
46391static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46392 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46393}
46394static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46395 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46396}
46397static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46398 return (void *)((wxEvent *) ((wxShowEvent *) x));
46399}
46400static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46401 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46402}
46403static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46404 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46405}
46406static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46407 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46408}
46409static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46410 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46411}
46412static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46413 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46414}
46415static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46416 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46417}
46418static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46419 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46420}
b850e7f3
RD
46421static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46422 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46423}
46424static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46425 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46426}
46427static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46428 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46429}
46430static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46431 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46432}
0085ce49
RD
46433static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46434 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46435}
46436static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46437 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46438}
46439static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46440 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46441}
46442static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46443 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46444}
46445static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46446 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46447}
46448static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46449 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46450}
46451static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46452 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46453}
46454static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46455 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46456}
46457static void *_p_wxToolBarTo_p_wxControl(void *x) {
46458 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46459}
b850e7f3
RD
46460static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46461 return (void *)((wxControl *) ((wxPickerBase *) x));
46462}
0085ce49
RD
46463static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46464 return (void *)((wxControl *) ((wxToggleButton *) x));
46465}
46466static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46467 return (void *)((wxControl *) ((wxRadioButton *) x));
46468}
46469static void *_p_wxToolbookTo_p_wxControl(void *x) {
46470 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46471}
46472static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46473 return (void *)((wxControl *) ((wxToolBarBase *) x));
46474}
46475static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46476 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46477}
46478static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46479 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46480}
46481static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46482 return (void *)((wxControl *) ((wxComboBox *) x));
46483}
46484static void *_p_wxPyControlTo_p_wxControl(void *x) {
46485 return (void *)((wxControl *) ((wxPyControl *) x));
46486}
46487static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46488 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46489}
46490static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46491 return (void *)((wxControl *) ((wxScrollBar *) x));
46492}
46493static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46494 return (void *)((wxControl *) ((wxControlWithItems *) x));
46495}
46496static void *_p_wxGaugeTo_p_wxControl(void *x) {
46497 return (void *)((wxControl *) ((wxGauge *) x));
46498}
46499static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46500 return (void *)((wxControl *) ((wxStaticLine *) x));
46501}
46502static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46503 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46504}
46505static void *_p_wxListbookTo_p_wxControl(void *x) {
46506 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46507}
704eda0c
RD
46508static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46509 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46510}
0085ce49
RD
46511static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46512 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46513}
46514static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46515 return (void *)((wxControl *) ((wxCheckBox *) x));
46516}
46517static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46518 return (void *)((wxControl *) ((wxRadioBox *) x));
46519}
46520static void *_p_wxChoiceTo_p_wxControl(void *x) {
46521 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46522}
46523static void *_p_wxListBoxTo_p_wxControl(void *x) {
46524 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46525}
46526static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46527 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46528}
46529static void *_p_wxListViewTo_p_wxControl(void *x) {
46530 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46531}
46532static void *_p_wxNotebookTo_p_wxControl(void *x) {
46533 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46534}
46535static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46536 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46537}
46538static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46539 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46540}
46541static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46542 return (void *)((wxControl *) ((wxStaticText *) x));
46543}
46544static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46545 return (void *)((wxControl *) ((wxStaticBox *) x));
46546}
46547static void *_p_wxSliderTo_p_wxControl(void *x) {
46548 return (void *)((wxControl *) ((wxSlider *) x));
46549}
46550static void *_p_wxTreebookTo_p_wxControl(void *x) {
46551 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46552}
46553static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46554 return (void *)((wxControl *) ((wxSpinButton *) x));
46555}
46556static void *_p_wxButtonTo_p_wxControl(void *x) {
46557 return (void *)((wxControl *) ((wxButton *) x));
46558}
46559static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46560 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46561}
46562static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46563 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46564}
46565static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46566 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46567}
b850e7f3
RD
46568static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46569 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46570}
46571static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46572 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46573}
46574static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46575 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46576}
46577static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46578 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46579}
0085ce49
RD
46580static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46581 return (void *)((wxControl *) ((wxTextCtrl *) x));
46582}
46583static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46584 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46585}
46586static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46587 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46588}
46589static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46590 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46591}
46592static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46593 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46594}
46595static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46596 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46597}
46598static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46599 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46600}
46601static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46602 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46603}
46604static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46605 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46606}
46607static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46608 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46609}
46610static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46611 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46612}
46613static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46614 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46615}
46616static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46617 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46618}
46619static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46620 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46621}
46622static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46623 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46624}
46625static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46626 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46627}
46628static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46629 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46630}
46631static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46632 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46633}
46634static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46635 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46636}
46637static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46638 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46639}
46640static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46641 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46642}
46643static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46644 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46645}
b850e7f3
RD
46646static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46647 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46648}
0085ce49
RD
46649static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46650 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46651}
46652static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46653 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46654}
46655static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46656 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46657}
46658static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46659 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46660}
46661static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46662 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46663}
46664static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46665 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46666}
46667static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46668 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46669}
46670static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46671 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46672}
46673static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46674 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46675}
46676static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46677 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46678}
46679static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46680 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46681}
46682static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46683 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46684}
46685static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46686 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46687}
46688static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46689 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46690}
46691static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46692 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46693}
46694static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46695 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46696}
46697static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46698 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46699}
46700static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46701 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46702}
46703static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46704 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46705}
704eda0c
RD
46706static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46707 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46708}
0085ce49
RD
46709static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46710 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46711}
46712static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46713 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46714}
46715static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46716 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46717}
46718static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46719 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46720}
46721static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46722 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46723}
46724static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46725 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46726}
46727static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46728 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46729}
46730static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46731 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46732}
46733static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46734 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46735}
46736static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46737 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46738}
46739static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46740 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46741}
46742static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46743 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46744}
46745static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46746 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46747}
46748static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46749 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46750}
46751static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46752 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46753}
46754static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46755 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46756}
46757static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46758 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46759}
46760static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46761 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46762}
46763static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46764 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46765}
b850e7f3
RD
46766static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46767 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46768}
46769static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46770 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46771}
46772static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46773 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46774}
46775static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46776 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46777}
0085ce49
RD
46778static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46779 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46780}
46781static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46782 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46783}
46784static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46785 return (void *)((wxButton *) ((wxBitmapButton *) x));
46786}
46787static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46788 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46789}
46790static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46791 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46792}
46793static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46794 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46795}
46796static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46797 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46798}
46799static void *_p_wxToolbookTo_p_wxObject(void *x) {
46800 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46801}
0085ce49
RD
46802static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46803 return (void *)((wxObject *) ((wxSizerItem *) x));
46804}
34e0a3bb
RD
46805static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46806 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46807}
0085ce49
RD
46808static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46809 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46810}
46811static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46812 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46813}
46814static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46815 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46816}
46817static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46818 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46819}
46820static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46821 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46822}
46823static void *_p_wxSizerTo_p_wxObject(void *x) {
46824 return (void *)((wxObject *) ((wxSizer *) x));
46825}
46826static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46827 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46828}
46829static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46830 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46831}
46832static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46833 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46834}
46835static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46836 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46837}
46838static void *_p_wxEventTo_p_wxObject(void *x) {
46839 return (void *)((wxObject *) ((wxEvent *) x));
46840}
46841static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46842 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46843}
46844static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46845 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46846}
46847static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46848 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46849}
46850static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46851 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46852}
b850e7f3
RD
46853static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46854 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46855}
0085ce49
RD
46856static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46857 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46858}
46859static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46860 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46861}
2131d850
RD
46862static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46863 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46864}
0085ce49
RD
46865static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46866 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46867}
46868static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46869 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46870}
46871static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46872 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46873}
46874static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46875 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46876}
46877static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46878 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46879}
46880static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46881 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46882}
46883static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46884 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46885}
46886static void *_p_wxControlTo_p_wxObject(void *x) {
46887 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46888}
46889static void *_p_wxPyControlTo_p_wxObject(void *x) {
46890 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46891}
46892static void *_p_wxGaugeTo_p_wxObject(void *x) {
46893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46894}
46895static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46896 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46897}
46898static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46899 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46900}
46901static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46902 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46903}
46904static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46905 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46906}
b850e7f3
RD
46907static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46908 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46909}
46910static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46911 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46912}
46913static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46914 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46915}
0085ce49
RD
46916static void *_p_wxChoiceTo_p_wxObject(void *x) {
46917 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46918}
46919static void *_p_wxFSFileTo_p_wxObject(void *x) {
46920 return (void *)((wxObject *) ((wxFSFile *) x));
46921}
46922static void *_p_wxPySizerTo_p_wxObject(void *x) {
46923 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46924}
46925static void *_p_wxTreebookTo_p_wxObject(void *x) {
46926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46927}
46928static void *_p_wxListViewTo_p_wxObject(void *x) {
46929 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46930}
704eda0c
RD
46931static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46932 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46933}
0085ce49
RD
46934static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46935 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46936}
46937static void *_p_wxNotebookTo_p_wxObject(void *x) {
46938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46939}
46940static void *_p_wxPyEventTo_p_wxObject(void *x) {
46941 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46942}
46943static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46944 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46945}
46946static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46947 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46948}
46949static void *_p_wxListbookTo_p_wxObject(void *x) {
46950 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46951}
46952static void *_p_wxShowEventTo_p_wxObject(void *x) {
46953 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46954}
46955static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46956 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46957}
46958static void *_p_wxSliderTo_p_wxObject(void *x) {
46959 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46960}
46961static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46962 return (void *)((wxObject *) ((wxMenuItem *) x));
46963}
46964static void *_p_wxDateEventTo_p_wxObject(void *x) {
46965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46966}
46967static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46968 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46969}
46970static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46971 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46972}
46973static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46974 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46975}
46976static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46977 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46978}
46979static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46980 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46981}
46982static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46983 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46984}
46985static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46986 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46987}
46988static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46989 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46990}
46991static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46993}
46994static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46995 return (void *)((wxObject *) ((wxContextHelp *) x));
46996}
46997static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46999}
47000static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47001 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47002}
47003static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47004 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47005}
47006static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47007 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47008}
47009static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47010 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47011}
47012static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47013 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47014}
47015static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47016 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47017}
47018static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47019 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47020}
47021static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47022 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47023}
47024static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47025 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47026}
47027static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47028 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47029}
47030static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47031 return (void *)((wxObject *) ((wxImageHandler *) x));
47032}
47033static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47034 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47035}
47036static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47037 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47038}
47039static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47040 return (void *)((wxObject *) ((wxEvtHandler *) x));
47041}
34e0a3bb
RD
47042static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47043 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47044}
0085ce49
RD
47045static void *_p_wxListEventTo_p_wxObject(void *x) {
47046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47047}
47048static void *_p_wxListBoxTo_p_wxObject(void *x) {
47049 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47050}
47051static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47052 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47053}
47054static void *_p_wxButtonTo_p_wxObject(void *x) {
47055 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47056}
47057static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47058 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47059}
47060static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47061 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47062}
47063static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47064 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47065}
47066static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47067 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47068}
47069static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47070 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47071}
47072static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47073 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47074}
47075static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47076 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47077}
47078static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47079 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47080}
47081static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47082 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47083}
47084static void *_p_wxListItemTo_p_wxObject(void *x) {
47085 return (void *)((wxObject *) ((wxListItem *) x));
47086}
47087static void *_p_wxImageTo_p_wxObject(void *x) {
47088 return (void *)((wxObject *) ((wxImage *) x));
47089}
47090static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47091 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47092}
47093static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47094 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47095}
47096static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47097 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47098}
47099static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47100 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47101}
47102static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47103 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47104}
47105static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47106 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47107}
47108static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47109 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47110}
47111static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47112 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47113}
47114static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47115 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47116}
47117static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47118 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47119}
47120static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47121 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47122}
47123static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47124 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47125}
47126static void *_p_wxWindowTo_p_wxObject(void *x) {
47127 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47128}
47129static void *_p_wxMenuTo_p_wxObject(void *x) {
47130 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47131}
47132static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47133 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47134}
47135static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47136 return (void *)((wxObject *) ((wxFileSystem *) x));
47137}
47138static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47139 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47140}
47141static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47142 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47143}
47144static void *_p_wxPyAppTo_p_wxObject(void *x) {
47145 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47146}
47147static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47148 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47149}
47150static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47151 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47152}
47153static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47154 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47155}
47156static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47157 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47158}
47159static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47160 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47161}
47162static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47164}
47165static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47166 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47167}
47168static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47170}
47171static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47172 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47173}
47174static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47175 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47176}
47177static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47178 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47179}
47180static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47181 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47182}
b850e7f3
RD
47183static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47185}
47186static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47187 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47188}
47189static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47191}
47192static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47193 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47194}
0085ce49
RD
47195static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47196 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47197}
704eda0c
RD
47198static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47199 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47200}
0085ce49
RD
47201static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47202 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47203}
47204static void *_p_wxToolBarTo_p_wxObject(void *x) {
47205 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47206}
47207static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47208 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47209}
47210static void *_p_wxValidatorTo_p_wxObject(void *x) {
47211 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47212}
47213static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47214 return (void *)((wxWindow *) ((wxMenuBar *) x));
47215}
47216static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47217 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47218}
47219static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47220 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47221}
b850e7f3
RD
47222static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47223 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47224}
0085ce49
RD
47225static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47226 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47227}
47228static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47229 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47230}
47231static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47232 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47233}
47234static void *_p_wxControlTo_p_wxWindow(void *x) {
47235 return (void *)((wxWindow *) ((wxControl *) x));
47236}
47237static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47238 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47239}
47240static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47241 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47242}
47243static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47244 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47245}
47246static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47247 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47248}
47249static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47250 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47251}
47252static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47253 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47254}
47255static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47256 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47257}
47258static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47259 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47260}
47261static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47262 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47263}
47264static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47265 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47266}
47267static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47268 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47269}
47270static void *_p_wxListbookTo_p_wxWindow(void *x) {
47271 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47272}
704eda0c
RD
47273static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47274 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47275}
0085ce49
RD
47276static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47277 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47278}
47279static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47280 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47281}
47282static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47283 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47284}
47285static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47286 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47287}
47288static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47289 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47290}
47291static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47292 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47293}
47294static void *_p_wxListViewTo_p_wxWindow(void *x) {
47295 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47296}
47297static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47298 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47299}
47300static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47301 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47302}
47303static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47304 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47305}
47306static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47307 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47308}
47309static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47310 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47311}
47312static void *_p_wxSliderTo_p_wxWindow(void *x) {
47313 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47314}
47315static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47316 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47317}
47318static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47319 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47320}
47321static void *_p_wxButtonTo_p_wxWindow(void *x) {
47322 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47323}
47324static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47325 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47326}
47327static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47328 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47329}
47330static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47331 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47332}
b850e7f3
RD
47333static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47334 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47335}
47336static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47337 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47338}
47339static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47340 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47341}
47342static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47343 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47344}
0085ce49
RD
47345static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47346 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47347}
47348static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47349 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47350}
47351static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47352 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47353}
47354static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47355 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47356}
47357static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47358 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47359}
47360static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47361 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47362}
47363static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47364 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47365}
704eda0c
RD
47366static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47367 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47368}
2131d850
RD
47369static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47370 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47371}
b850e7f3
RD
47372static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47373 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47374}
47375static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47376 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47377}
47378static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47379 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47380}
0085ce49
RD
47381static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47382 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47383}
47384static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47385 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47386}
47387static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47388 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47389}
47390static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47391 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47392}
47393static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47394 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47395}
0085ce49
RD
47396static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47397 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47398}
2131d850
RD
47399static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47400 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47401}
0085ce49
RD
47402static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47403 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47404}
47405static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47406 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47407}
47408static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47409 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47410}
47411static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47412 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47413}
47414static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47415 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47416}
47417static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47418 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47419}
47420static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47421 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47422}
47423static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47424 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47425}
47426static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47427 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47428}
47429static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47430 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47431}
47432static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47433 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47434}
47435static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47436 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47437}
47438static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47439 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47440}
47441static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47442 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47443}
47444static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47445 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47446}
47447static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47448 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47449}
47450static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47451 return (void *)((wxValidator *) ((wxPyValidator *) x));
47452}
47453static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47454static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47455static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47456static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47457static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47458static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47459static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47460static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47461static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47462static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47463static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47464static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47465static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47466static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47467static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47468static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47469static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47470static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47471static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47472static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47473static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47474static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47475static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47476static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47477static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47478static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47479static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47480static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47481static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47482static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47483static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47484static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47485static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47486static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47487static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47488static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47489static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47490static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47491static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47492static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47493static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47494static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47495static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47496static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47497static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
47498static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47499static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47500static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47501static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47502static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47503static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47504static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47505static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 47506static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47507static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47508static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47509static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47510static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47511static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47512static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 47513static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47514static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47515static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47516static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47517static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47518static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47519static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47520static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47521static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47522static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47523static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47524static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47525static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47526static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47527static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47528static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47529static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47530static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47531static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
0085ce49 47532static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47533static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47534static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47535static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47536static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47537static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47538static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47539static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47540static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47541static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47542static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47543static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47544static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47545static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47546static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47547static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47548static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47549static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47550static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47551static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47552static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47553static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47554static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47555static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47556static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47557static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47558static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47559static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 47560static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 47561static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
47562static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47563static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47564static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47565static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47566static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47567static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47568static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47569static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47570static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47571static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
47572static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47573static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47574static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47575static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47576static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47577static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47578static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47579static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47580static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47581static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47582static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0085ce49
RD
47583static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47584static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47585static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47586static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47587static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47588static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47589static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47590static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47591static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47592static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47593static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47594static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47595static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47596static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47597static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47598static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47599static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47600static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47601static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47602static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47603static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47604static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47605static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47606static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47607static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47608static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47609static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47610static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47611static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47612static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47613static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47614static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47615static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47616static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47617static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47618static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47619static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47620static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47621static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47622static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47623static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47624static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47625static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47626static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47627static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47628
47629static swig_type_info *swig_type_initial[] = {
47630 &_swigt__p_bool,
47631 &_swigt__p_char,
47632 &_swigt__p_form_ops_t,
47633 &_swigt__p_int,
47634 &_swigt__p_long,
47635 &_swigt__p_unsigned_char,
47636 &_swigt__p_unsigned_int,
47637 &_swigt__p_unsigned_long,
47638 &_swigt__p_void,
47639 &_swigt__p_wxANIHandler,
47640 &_swigt__p_wxAcceleratorTable,
47641 &_swigt__p_wxActivateEvent,
47642 &_swigt__p_wxArrayInt,
47643 &_swigt__p_wxArrayString,
47644 &_swigt__p_wxBMPHandler,
47645 &_swigt__p_wxBitmap,
47646 &_swigt__p_wxBitmapButton,
47647 &_swigt__p_wxBookCtrlBase,
47648 &_swigt__p_wxBookCtrlBaseEvent,
47649 &_swigt__p_wxBoxSizer,
47650 &_swigt__p_wxButton,
47651 &_swigt__p_wxCURHandler,
47652 &_swigt__p_wxCheckBox,
47653 &_swigt__p_wxCheckListBox,
47654 &_swigt__p_wxChildFocusEvent,
47655 &_swigt__p_wxChoice,
47656 &_swigt__p_wxChoicebook,
47657 &_swigt__p_wxChoicebookEvent,
2131d850 47658 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
47659 &_swigt__p_wxCloseEvent,
47660 &_swigt__p_wxColour,
b850e7f3
RD
47661 &_swigt__p_wxColourPickerCtrl,
47662 &_swigt__p_wxColourPickerEvent,
0085ce49
RD
47663 &_swigt__p_wxComboBox,
47664 &_swigt__p_wxCommandEvent,
47665 &_swigt__p_wxContextHelp,
47666 &_swigt__p_wxContextHelpButton,
47667 &_swigt__p_wxContextMenuEvent,
47668 &_swigt__p_wxControl,
47669 &_swigt__p_wxControlWithItems,
47670 &_swigt__p_wxCursor,
47671 &_swigt__p_wxDC,
47672 &_swigt__p_wxDateEvent,
47673 &_swigt__p_wxDatePickerCtrl,
47674 &_swigt__p_wxDateTime,
47675 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47676 &_swigt__p_wxDirPickerCtrl,
0085ce49
RD
47677 &_swigt__p_wxDisplayChangedEvent,
47678 &_swigt__p_wxDropFilesEvent,
47679 &_swigt__p_wxDuplexMode,
47680 &_swigt__p_wxEraseEvent,
47681 &_swigt__p_wxEvent,
47682 &_swigt__p_wxEvtHandler,
47683 &_swigt__p_wxFSFile,
b850e7f3
RD
47684 &_swigt__p_wxFileDirPickerEvent,
47685 &_swigt__p_wxFilePickerCtrl,
0085ce49
RD
47686 &_swigt__p_wxFileSystem,
47687 &_swigt__p_wxFlexGridSizer,
47688 &_swigt__p_wxFocusEvent,
47689 &_swigt__p_wxFont,
b850e7f3
RD
47690 &_swigt__p_wxFontPickerCtrl,
47691 &_swigt__p_wxFontPickerEvent,
0085ce49
RD
47692 &_swigt__p_wxGBSizerItem,
47693 &_swigt__p_wxGIFHandler,
47694 &_swigt__p_wxGauge,
47695 &_swigt__p_wxGenericDirCtrl,
47696 &_swigt__p_wxGenericDragImage,
47697 &_swigt__p_wxGridBagSizer,
47698 &_swigt__p_wxGridSizer,
47699 &_swigt__p_wxHelpEvent,
47700 &_swigt__p_wxHelpProvider,
704eda0c
RD
47701 &_swigt__p_wxHyperlinkCtrl,
47702 &_swigt__p_wxHyperlinkEvent,
0085ce49
RD
47703 &_swigt__p_wxICOHandler,
47704 &_swigt__p_wxIcon,
47705 &_swigt__p_wxIconizeEvent,
47706 &_swigt__p_wxIdleEvent,
47707 &_swigt__p_wxImage,
47708 &_swigt__p_wxImageHandler,
47709 &_swigt__p_wxImageList,
47710 &_swigt__p_wxIndividualLayoutConstraint,
47711 &_swigt__p_wxInitDialogEvent,
47712 &_swigt__p_wxItemContainer,
47713 &_swigt__p_wxJPEGHandler,
47714 &_swigt__p_wxKeyEvent,
47715 &_swigt__p_wxLayoutConstraints,
47716 &_swigt__p_wxListBox,
47717 &_swigt__p_wxListEvent,
47718 &_swigt__p_wxListItem,
47719 &_swigt__p_wxListItemAttr,
47720 &_swigt__p_wxListView,
47721 &_swigt__p_wxListbook,
47722 &_swigt__p_wxListbookEvent,
47723 &_swigt__p_wxMaximizeEvent,
47724 &_swigt__p_wxMemoryDC,
47725 &_swigt__p_wxMenu,
47726 &_swigt__p_wxMenuBar,
47727 &_swigt__p_wxMenuEvent,
47728 &_swigt__p_wxMenuItem,
47729 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 47730 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
47731 &_swigt__p_wxMouseEvent,
47732 &_swigt__p_wxMoveEvent,
47733 &_swigt__p_wxNavigationKeyEvent,
47734 &_swigt__p_wxNcPaintEvent,
47735 &_swigt__p_wxNotebook,
47736 &_swigt__p_wxNotebookEvent,
47737 &_swigt__p_wxNotifyEvent,
47738 &_swigt__p_wxObject,
47739 &_swigt__p_wxPCXHandler,
47740 &_swigt__p_wxPNGHandler,
47741 &_swigt__p_wxPNMHandler,
47742 &_swigt__p_wxPaintEvent,
47743 &_swigt__p_wxPaletteChangedEvent,
47744 &_swigt__p_wxPaperSize,
b850e7f3 47745 &_swigt__p_wxPickerBase,
0085ce49
RD
47746 &_swigt__p_wxPoint,
47747 &_swigt__p_wxPyApp,
47748 &_swigt__p_wxPyCommandEvent,
47749 &_swigt__p_wxPyControl,
47750 &_swigt__p_wxPyEvent,
47751 &_swigt__p_wxPyImageHandler,
47752 &_swigt__p_wxPyListCtrl,
47753 &_swigt__p_wxPySizer,
47754 &_swigt__p_wxPyTreeCtrl,
47755 &_swigt__p_wxPyTreeItemData,
47756 &_swigt__p_wxPyValidator,
47757 &_swigt__p_wxQueryNewPaletteEvent,
47758 &_swigt__p_wxRadioBox,
47759 &_swigt__p_wxRadioButton,
47760 &_swigt__p_wxRect,
47761 &_swigt__p_wxScrollBar,
47762 &_swigt__p_wxScrollEvent,
47763 &_swigt__p_wxScrollWinEvent,
47764 &_swigt__p_wxSetCursorEvent,
47765 &_swigt__p_wxShowEvent,
47766 &_swigt__p_wxSimpleHelpProvider,
47767 &_swigt__p_wxSize,
47768 &_swigt__p_wxSizeEvent,
47769 &_swigt__p_wxSizer,
47770 &_swigt__p_wxSizerItem,
47771 &_swigt__p_wxSlider,
47772 &_swigt__p_wxSpinButton,
47773 &_swigt__p_wxSpinCtrl,
47774 &_swigt__p_wxSpinEvent,
47775 &_swigt__p_wxStaticBitmap,
47776 &_swigt__p_wxStaticBox,
47777 &_swigt__p_wxStaticBoxSizer,
47778 &_swigt__p_wxStaticLine,
47779 &_swigt__p_wxStaticText,
47780 &_swigt__p_wxStdDialogButtonSizer,
47781 &_swigt__p_wxString,
47782 &_swigt__p_wxSysColourChangedEvent,
47783 &_swigt__p_wxTIFFHandler,
47784 &_swigt__p_wxTextAttr,
47785 &_swigt__p_wxTextCtrl,
47786 &_swigt__p_wxTextUrlEvent,
47787 &_swigt__p_wxToggleButton,
47788 &_swigt__p_wxToolBar,
47789 &_swigt__p_wxToolBarBase,
47790 &_swigt__p_wxToolBarToolBase,
47791 &_swigt__p_wxToolbook,
47792 &_swigt__p_wxToolbookEvent,
0085ce49
RD
47793 &_swigt__p_wxTreeEvent,
47794 &_swigt__p_wxTreeItemId,
47795 &_swigt__p_wxTreebook,
47796 &_swigt__p_wxTreebookEvent,
47797 &_swigt__p_wxUpdateUIEvent,
47798 &_swigt__p_wxValidator,
47799 &_swigt__p_wxVisualAttributes,
47800 &_swigt__p_wxWindow,
b850e7f3 47801 &_swigt__p_wxWindowBase,
0085ce49
RD
47802 &_swigt__p_wxWindowCreateEvent,
47803 &_swigt__p_wxWindowDestroyEvent,
47804 &_swigt__p_wxXPMHandler,
47805};
47806
47807static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47808static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47809static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47810static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47811static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47812static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47813static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47814static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47815static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47816static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47817static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47818static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47819static 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}};
47820static 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}};
47821static 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}};
47822static 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}};
47823static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47824static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47825static 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}};
47826static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47827static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47828static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47829static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47830static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47831static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47832static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47833static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47834static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47835static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47836static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47837static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47838static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47839static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47840static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47841static 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
47842static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47843static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47844static 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
47845static 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}};
47846static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47847static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47848static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47849static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47850static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47851static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47852static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47853static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47854static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47855static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47856static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47857static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47858static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47859static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47860static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47861static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47862static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47863static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47864static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47865static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47866static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47867static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47868static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47869static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47870static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47871static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47872static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47873static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47874static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47875static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47876static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47877static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47878static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47879static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47880static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47881static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47882static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47883static 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}};
47884static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47885static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47886static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47887static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47888static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47889static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47890static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47891static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47892static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47893static 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
47894static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47895static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47896static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47897static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47898static 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}};
47899static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47900static 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}};
47901static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47902static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47903static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47904static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47905static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47906static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47907static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47908static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47909static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47910static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47911static 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}};
47912static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47913static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47914static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47915static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47916static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47917static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47918static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47919static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47920static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47921static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47922static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47923static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47924static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47925static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47926static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47927static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47928static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47929static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47930static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47931static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47932static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47933static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47934static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47935static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47936static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47937static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47938static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47939static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47940static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47941static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47942static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49 47943static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47944static 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
47945static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47946static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47947static 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}};
47948static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47949static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47950static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47951static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47952static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47953static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47954static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47955static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47956static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47957static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47958static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47959static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47960static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47961static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47962static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47963static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47964static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47965static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47966static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47967static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47968static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47969static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47970static 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}};
47971static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47972static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47973static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47974static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47975static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47976static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47977static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47978static 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}};
47979static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47980static 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}};
47981static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47982
47983static swig_cast_info *swig_cast_initial[] = {
47984 _swigc__p_bool,
47985 _swigc__p_char,
47986 _swigc__p_form_ops_t,
47987 _swigc__p_int,
47988 _swigc__p_long,
47989 _swigc__p_unsigned_char,
47990 _swigc__p_unsigned_int,
47991 _swigc__p_unsigned_long,
47992 _swigc__p_void,
47993 _swigc__p_wxANIHandler,
47994 _swigc__p_wxAcceleratorTable,
47995 _swigc__p_wxActivateEvent,
47996 _swigc__p_wxArrayInt,
47997 _swigc__p_wxArrayString,
47998 _swigc__p_wxBMPHandler,
47999 _swigc__p_wxBitmap,
48000 _swigc__p_wxBitmapButton,
48001 _swigc__p_wxBookCtrlBase,
48002 _swigc__p_wxBookCtrlBaseEvent,
48003 _swigc__p_wxBoxSizer,
48004 _swigc__p_wxButton,
48005 _swigc__p_wxCURHandler,
48006 _swigc__p_wxCheckBox,
48007 _swigc__p_wxCheckListBox,
48008 _swigc__p_wxChildFocusEvent,
48009 _swigc__p_wxChoice,
48010 _swigc__p_wxChoicebook,
48011 _swigc__p_wxChoicebookEvent,
2131d850 48012 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
48013 _swigc__p_wxCloseEvent,
48014 _swigc__p_wxColour,
b850e7f3
RD
48015 _swigc__p_wxColourPickerCtrl,
48016 _swigc__p_wxColourPickerEvent,
0085ce49
RD
48017 _swigc__p_wxComboBox,
48018 _swigc__p_wxCommandEvent,
48019 _swigc__p_wxContextHelp,
48020 _swigc__p_wxContextHelpButton,
48021 _swigc__p_wxContextMenuEvent,
48022 _swigc__p_wxControl,
48023 _swigc__p_wxControlWithItems,
48024 _swigc__p_wxCursor,
48025 _swigc__p_wxDC,
48026 _swigc__p_wxDateEvent,
48027 _swigc__p_wxDatePickerCtrl,
48028 _swigc__p_wxDateTime,
48029 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48030 _swigc__p_wxDirPickerCtrl,
0085ce49
RD
48031 _swigc__p_wxDisplayChangedEvent,
48032 _swigc__p_wxDropFilesEvent,
48033 _swigc__p_wxDuplexMode,
48034 _swigc__p_wxEraseEvent,
48035 _swigc__p_wxEvent,
48036 _swigc__p_wxEvtHandler,
48037 _swigc__p_wxFSFile,
b850e7f3
RD
48038 _swigc__p_wxFileDirPickerEvent,
48039 _swigc__p_wxFilePickerCtrl,
0085ce49
RD
48040 _swigc__p_wxFileSystem,
48041 _swigc__p_wxFlexGridSizer,
48042 _swigc__p_wxFocusEvent,
48043 _swigc__p_wxFont,
b850e7f3
RD
48044 _swigc__p_wxFontPickerCtrl,
48045 _swigc__p_wxFontPickerEvent,
0085ce49
RD
48046 _swigc__p_wxGBSizerItem,
48047 _swigc__p_wxGIFHandler,
48048 _swigc__p_wxGauge,
48049 _swigc__p_wxGenericDirCtrl,
48050 _swigc__p_wxGenericDragImage,
48051 _swigc__p_wxGridBagSizer,
48052 _swigc__p_wxGridSizer,
48053 _swigc__p_wxHelpEvent,
48054 _swigc__p_wxHelpProvider,
704eda0c
RD
48055 _swigc__p_wxHyperlinkCtrl,
48056 _swigc__p_wxHyperlinkEvent,
0085ce49
RD
48057 _swigc__p_wxICOHandler,
48058 _swigc__p_wxIcon,
48059 _swigc__p_wxIconizeEvent,
48060 _swigc__p_wxIdleEvent,
48061 _swigc__p_wxImage,
48062 _swigc__p_wxImageHandler,
48063 _swigc__p_wxImageList,
48064 _swigc__p_wxIndividualLayoutConstraint,
48065 _swigc__p_wxInitDialogEvent,
48066 _swigc__p_wxItemContainer,
48067 _swigc__p_wxJPEGHandler,
48068 _swigc__p_wxKeyEvent,
48069 _swigc__p_wxLayoutConstraints,
48070 _swigc__p_wxListBox,
48071 _swigc__p_wxListEvent,
48072 _swigc__p_wxListItem,
48073 _swigc__p_wxListItemAttr,
48074 _swigc__p_wxListView,
48075 _swigc__p_wxListbook,
48076 _swigc__p_wxListbookEvent,
48077 _swigc__p_wxMaximizeEvent,
48078 _swigc__p_wxMemoryDC,
48079 _swigc__p_wxMenu,
48080 _swigc__p_wxMenuBar,
48081 _swigc__p_wxMenuEvent,
48082 _swigc__p_wxMenuItem,
48083 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48084 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
48085 _swigc__p_wxMouseEvent,
48086 _swigc__p_wxMoveEvent,
48087 _swigc__p_wxNavigationKeyEvent,
48088 _swigc__p_wxNcPaintEvent,
48089 _swigc__p_wxNotebook,
48090 _swigc__p_wxNotebookEvent,
48091 _swigc__p_wxNotifyEvent,
48092 _swigc__p_wxObject,
48093 _swigc__p_wxPCXHandler,
48094 _swigc__p_wxPNGHandler,
48095 _swigc__p_wxPNMHandler,
48096 _swigc__p_wxPaintEvent,
48097 _swigc__p_wxPaletteChangedEvent,
48098 _swigc__p_wxPaperSize,
b850e7f3 48099 _swigc__p_wxPickerBase,
0085ce49
RD
48100 _swigc__p_wxPoint,
48101 _swigc__p_wxPyApp,
48102 _swigc__p_wxPyCommandEvent,
48103 _swigc__p_wxPyControl,
48104 _swigc__p_wxPyEvent,
48105 _swigc__p_wxPyImageHandler,
48106 _swigc__p_wxPyListCtrl,
48107 _swigc__p_wxPySizer,
48108 _swigc__p_wxPyTreeCtrl,
48109 _swigc__p_wxPyTreeItemData,
48110 _swigc__p_wxPyValidator,
48111 _swigc__p_wxQueryNewPaletteEvent,
48112 _swigc__p_wxRadioBox,
48113 _swigc__p_wxRadioButton,
48114 _swigc__p_wxRect,
48115 _swigc__p_wxScrollBar,
48116 _swigc__p_wxScrollEvent,
48117 _swigc__p_wxScrollWinEvent,
48118 _swigc__p_wxSetCursorEvent,
48119 _swigc__p_wxShowEvent,
48120 _swigc__p_wxSimpleHelpProvider,
48121 _swigc__p_wxSize,
48122 _swigc__p_wxSizeEvent,
48123 _swigc__p_wxSizer,
48124 _swigc__p_wxSizerItem,
48125 _swigc__p_wxSlider,
48126 _swigc__p_wxSpinButton,
48127 _swigc__p_wxSpinCtrl,
48128 _swigc__p_wxSpinEvent,
48129 _swigc__p_wxStaticBitmap,
48130 _swigc__p_wxStaticBox,
48131 _swigc__p_wxStaticBoxSizer,
48132 _swigc__p_wxStaticLine,
48133 _swigc__p_wxStaticText,
48134 _swigc__p_wxStdDialogButtonSizer,
48135 _swigc__p_wxString,
48136 _swigc__p_wxSysColourChangedEvent,
48137 _swigc__p_wxTIFFHandler,
48138 _swigc__p_wxTextAttr,
48139 _swigc__p_wxTextCtrl,
48140 _swigc__p_wxTextUrlEvent,
48141 _swigc__p_wxToggleButton,
48142 _swigc__p_wxToolBar,
48143 _swigc__p_wxToolBarBase,
48144 _swigc__p_wxToolBarToolBase,
48145 _swigc__p_wxToolbook,
48146 _swigc__p_wxToolbookEvent,
0085ce49
RD
48147 _swigc__p_wxTreeEvent,
48148 _swigc__p_wxTreeItemId,
48149 _swigc__p_wxTreebook,
48150 _swigc__p_wxTreebookEvent,
48151 _swigc__p_wxUpdateUIEvent,
48152 _swigc__p_wxValidator,
48153 _swigc__p_wxVisualAttributes,
48154 _swigc__p_wxWindow,
b850e7f3 48155 _swigc__p_wxWindowBase,
0085ce49
RD
48156 _swigc__p_wxWindowCreateEvent,
48157 _swigc__p_wxWindowDestroyEvent,
48158 _swigc__p_wxXPMHandler,
48159};
48160
48161
48162/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48163
48164static swig_const_info swig_const_table[] = {
48165{0, 0, 0, 0.0, 0, 0}};
48166
48167#ifdef __cplusplus
48168}
48169#endif
48170/* -----------------------------------------------------------------------------
48171 * Type initialization:
48172 * This problem is tough by the requirement that no dynamic
48173 * memory is used. Also, since swig_type_info structures store pointers to
48174 * swig_cast_info structures and swig_cast_info structures store pointers back
48175 * to swig_type_info structures, we need some lookup code at initialization.
48176 * The idea is that swig generates all the structures that are needed.
48177 * The runtime then collects these partially filled structures.
48178 * The SWIG_InitializeModule function takes these initial arrays out of
48179 * swig_module, and does all the lookup, filling in the swig_module.types
48180 * array with the correct data and linking the correct swig_cast_info
48181 * structures together.
48182 *
48183 * The generated swig_type_info structures are assigned staticly to an initial
48184 * array. We just loop though that array, and handle each type individually.
48185 * First we lookup if this type has been already loaded, and if so, use the
48186 * loaded structure instead of the generated one. Then we have to fill in the
48187 * cast linked list. The cast data is initially stored in something like a
48188 * two-dimensional array. Each row corresponds to a type (there are the same
48189 * number of rows as there are in the swig_type_initial array). Each entry in
48190 * a column is one of the swig_cast_info structures for that type.
48191 * The cast_initial array is actually an array of arrays, because each row has
48192 * a variable number of columns. So to actually build the cast linked list,
48193 * we find the array of casts associated with the type, and loop through it
48194 * adding the casts to the list. The one last trick we need to do is making
48195 * sure the type pointer in the swig_cast_info struct is correct.
48196 *
48197 * First off, we lookup the cast->type name to see if it is already loaded.
48198 * There are three cases to handle:
48199 * 1) If the cast->type has already been loaded AND the type we are adding
48200 * casting info to has not been loaded (it is in this module), THEN we
48201 * replace the cast->type pointer with the type pointer that has already
48202 * been loaded.
48203 * 2) If BOTH types (the one we are adding casting info to, and the
48204 * cast->type) are loaded, THEN the cast info has already been loaded by
48205 * the previous module so we just ignore it.
48206 * 3) Finally, if cast->type has not already been loaded, then we add that
48207 * swig_cast_info to the linked list (because the cast->type) pointer will
48208 * be correct.
48209 * ----------------------------------------------------------------------------- */
48210
48211#ifdef __cplusplus
48212extern "C" {
48213#if 0
48214} /* c-mode */
48215#endif
48216#endif
48217
48218#if 0
48219#define SWIGRUNTIME_DEBUG
48220#endif
48221
48222SWIGRUNTIME void
48223SWIG_InitializeModule(void *clientdata) {
48224 size_t i;
48225 swig_module_info *module_head;
48226 static int init_run = 0;
48227
48228 clientdata = clientdata;
48229
48230 if (init_run) return;
48231 init_run = 1;
48232
48233 /* Initialize the swig_module */
48234 swig_module.type_initial = swig_type_initial;
48235 swig_module.cast_initial = swig_cast_initial;
48236
48237 /* Try and load any already created modules */
48238 module_head = SWIG_GetModule(clientdata);
48239 if (module_head) {
48240 swig_module.next = module_head->next;
48241 module_head->next = &swig_module;
48242 } else {
48243 /* This is the first module loaded */
48244 swig_module.next = &swig_module;
48245 SWIG_SetModule(clientdata, &swig_module);
48246 }
48247
48248 /* Now work on filling in swig_module.types */
48249#ifdef SWIGRUNTIME_DEBUG
48250 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48251#endif
48252 for (i = 0; i < swig_module.size; ++i) {
48253 swig_type_info *type = 0;
48254 swig_type_info *ret;
48255 swig_cast_info *cast;
d14a1e28 48256
0085ce49
RD
48257#ifdef SWIGRUNTIME_DEBUG
48258 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48259#endif
d14a1e28 48260
0085ce49
RD
48261 /* if there is another module already loaded */
48262 if (swig_module.next != &swig_module) {
48263 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 48264 }
0085ce49
RD
48265 if (type) {
48266 /* Overwrite clientdata field */
48267#ifdef SWIGRUNTIME_DEBUG
48268 printf("SWIG_InitializeModule: found type %s\n", type->name);
48269#endif
48270 if (swig_module.type_initial[i]->clientdata) {
48271 type->clientdata = swig_module.type_initial[i]->clientdata;
48272#ifdef SWIGRUNTIME_DEBUG
48273 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48274#endif
48275 }
48276 } else {
48277 type = swig_module.type_initial[i];
093d3ff1 48278 }
d14a1e28 48279
0085ce49
RD
48280 /* Insert casting types */
48281 cast = swig_module.cast_initial[i];
48282 while (cast->type) {
48283 /* Don't need to add information already in the list */
48284 ret = 0;
48285#ifdef SWIGRUNTIME_DEBUG
48286 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48287#endif
48288 if (swig_module.next != &swig_module) {
48289 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48290#ifdef SWIGRUNTIME_DEBUG
48291 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48292#endif
48293 }
48294 if (ret) {
48295 if (type == swig_module.type_initial[i]) {
48296#ifdef SWIGRUNTIME_DEBUG
48297 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48298#endif
48299 cast->type = ret;
48300 ret = 0;
48301 } else {
48302 /* Check for casting already in the list */
48303 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48304#ifdef SWIGRUNTIME_DEBUG
48305 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48306#endif
48307 if (!ocast) ret = 0;
48308 }
48309 }
48310
48311 if (!ret) {
48312#ifdef SWIGRUNTIME_DEBUG
48313 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48314#endif
48315 if (type->cast) {
48316 type->cast->prev = cast;
48317 cast->next = type->cast;
48318 }
48319 type->cast = cast;
48320 }
48321 cast++;
093d3ff1 48322 }
0085ce49
RD
48323 /* Set entry in modules->types array equal to the type */
48324 swig_module.types[i] = type;
48325 }
48326 swig_module.types[i] = 0;
48327
48328#ifdef SWIGRUNTIME_DEBUG
48329 printf("**** SWIG_InitializeModule: Cast List ******\n");
48330 for (i = 0; i < swig_module.size; ++i) {
48331 int j = 0;
48332 swig_cast_info *cast = swig_module.cast_initial[i];
48333 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48334 while (cast->type) {
48335 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48336 cast++;
48337 ++j;
48338 }
48339 printf("---- Total casts: %d\n",j);
48340 }
48341 printf("**** SWIG_InitializeModule: Cast List ******\n");
48342#endif
48343}
48344
48345/* This function will propagate the clientdata field of type to
48346* any new swig_type_info structures that have been added into the list
48347* of equivalent types. It is like calling
48348* SWIG_TypeClientData(type, clientdata) a second time.
48349*/
48350SWIGRUNTIME void
48351SWIG_PropagateClientData(void) {
48352 size_t i;
48353 swig_cast_info *equiv;
48354 static int init_run = 0;
48355
48356 if (init_run) return;
48357 init_run = 1;
48358
48359 for (i = 0; i < swig_module.size; i++) {
48360 if (swig_module.types[i]->clientdata) {
48361 equiv = swig_module.types[i]->cast;
48362 while (equiv) {
48363 if (!equiv->converter) {
48364 if (equiv->type && !equiv->type->clientdata)
48365 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48366 }
48367 equiv = equiv->next;
48368 }
093d3ff1 48369 }
0085ce49
RD
48370 }
48371}
48372
48373#ifdef __cplusplus
48374#if 0
48375{
48376 /* c-mode */
48377#endif
48378}
48379#endif
48380
48381
48382
48383#ifdef __cplusplus
48384extern "C" {
48385#endif
48386
48387 /* Python-specific SWIG API */
48388#define SWIG_newvarlink() SWIG_Python_newvarlink()
48389#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48390#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48391
48392 /* -----------------------------------------------------------------------------
48393 * global variable support code.
48394 * ----------------------------------------------------------------------------- */
48395
48396 typedef struct swig_globalvar {
48397 char *name; /* Name of global variable */
48398 PyObject *(*get_attr)(void); /* Return the current value */
48399 int (*set_attr)(PyObject *); /* Set the value */
48400 struct swig_globalvar *next;
48401 } swig_globalvar;
48402
48403 typedef struct swig_varlinkobject {
48404 PyObject_HEAD
48405 swig_globalvar *vars;
48406 } swig_varlinkobject;
48407
48408 SWIGINTERN PyObject *
48409 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48410 return PyString_FromString("<Swig global variables>");
48411 }
48412
48413 SWIGINTERN PyObject *
48414 swig_varlink_str(swig_varlinkobject *v) {
48415 PyObject *str = PyString_FromString("(");
48416 swig_globalvar *var;
48417 for (var = v->vars; var; var=var->next) {
48418 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48419 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48420 }
48421 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48422 return str;
48423 }
48424
48425 SWIGINTERN int
48426 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48427 PyObject *str = swig_varlink_str(v);
48428 fprintf(fp,"Swig global variables ");
48429 fprintf(fp,"%s\n", PyString_AsString(str));
48430 Py_DECREF(str);
48431 return 0;
48432 }
48433
48434 SWIGINTERN void
48435 swig_varlink_dealloc(swig_varlinkobject *v) {
48436 swig_globalvar *var = v->vars;
48437 while (var) {
48438 swig_globalvar *n = var->next;
48439 free(var->name);
48440 free(var);
48441 var = n;
093d3ff1 48442 }
0085ce49
RD
48443 }
48444
48445 SWIGINTERN PyObject *
48446 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48447 PyObject *res = NULL;
48448 swig_globalvar *var = v->vars;
48449 while (var) {
48450 if (strcmp(var->name,n) == 0) {
48451 res = (*var->get_attr)();
48452 break;
48453 }
48454 var = var->next;
093d3ff1 48455 }
0085ce49
RD
48456 if (res == NULL && !PyErr_Occurred()) {
48457 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 48458 }
0085ce49
RD
48459 return res;
48460 }
48461
48462 SWIGINTERN int
48463 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48464 int res = 1;
48465 swig_globalvar *var = v->vars;
48466 while (var) {
48467 if (strcmp(var->name,n) == 0) {
48468 res = (*var->set_attr)(p);
48469 break;
48470 }
48471 var = var->next;
093d3ff1 48472 }
0085ce49
RD
48473 if (res == 1 && !PyErr_Occurred()) {
48474 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48475 }
0085ce49
RD
48476 return res;
48477 }
48478
48479 SWIGINTERN PyTypeObject*
48480 swig_varlink_type(void) {
48481 static char varlink__doc__[] = "Swig var link object";
48482 static PyTypeObject varlink_type;
48483 static int type_init = 0;
48484 if (!type_init) {
48485 const PyTypeObject tmp
48486 = {
48487 PyObject_HEAD_INIT(NULL)
48488 0, /* Number of items in variable part (ob_size) */
48489 (char *)"swigvarlink", /* Type name (tp_name) */
48490 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48491 0, /* Itemsize (tp_itemsize) */
48492 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48493 (printfunc) swig_varlink_print, /* Print (tp_print) */
48494 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48495 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48496 0, /* tp_compare */
48497 (reprfunc) swig_varlink_repr, /* tp_repr */
48498 0, /* tp_as_number */
48499 0, /* tp_as_sequence */
48500 0, /* tp_as_mapping */
48501 0, /* tp_hash */
48502 0, /* tp_call */
48503 (reprfunc)swig_varlink_str, /* tp_str */
48504 0, /* tp_getattro */
48505 0, /* tp_setattro */
48506 0, /* tp_as_buffer */
48507 0, /* tp_flags */
48508 varlink__doc__, /* tp_doc */
48509 0, /* tp_traverse */
48510 0, /* tp_clear */
48511 0, /* tp_richcompare */
48512 0, /* tp_weaklistoffset */
48513#if PY_VERSION_HEX >= 0x02020000
48514 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48515#endif
48516#if PY_VERSION_HEX >= 0x02030000
48517 0, /* tp_del */
48518#endif
48519#ifdef COUNT_ALLOCS
48520 0,0,0,0 /* tp_alloc -> tp_next */
48521#endif
48522 };
48523 varlink_type = tmp;
48524 varlink_type.ob_type = &PyType_Type;
48525 type_init = 1;
53aa7709 48526 }
0085ce49
RD
48527 return &varlink_type;
48528 }
48529
48530 /* Create a variable linking object for use later */
48531 SWIGINTERN PyObject *
48532 SWIG_Python_newvarlink(void) {
48533 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48534 if (result) {
48535 result->vars = 0;
48536 }
48537 return ((PyObject*) result);
48538 }
48539
48540 SWIGINTERN void
48541 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48542 swig_varlinkobject *v = (swig_varlinkobject *) p;
48543 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48544 if (gv) {
48545 size_t size = strlen(name)+1;
48546 gv->name = (char *)malloc(size);
48547 if (gv->name) {
48548 strncpy(gv->name,name,size);
48549 gv->get_attr = get_attr;
48550 gv->set_attr = set_attr;
48551 gv->next = v->vars;
48552 }
53aa7709 48553 }
0085ce49
RD
48554 v->vars = gv;
48555 }
48556
48557 SWIGINTERN PyObject *
48558 SWIG_globals() {
48559 static PyObject *_SWIG_globals = 0;
48560 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48561 return _SWIG_globals;
48562 }
48563
48564 /* -----------------------------------------------------------------------------
48565 * constants/methods manipulation
48566 * ----------------------------------------------------------------------------- */
48567
48568 /* Install Constants */
48569 SWIGINTERN void
48570 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48571 PyObject *obj = 0;
48572 size_t i;
48573 for (i = 0; constants[i].type; ++i) {
48574 switch(constants[i].type) {
48575 case SWIG_PY_POINTER:
48576 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48577 break;
48578 case SWIG_PY_BINARY:
48579 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48580 break;
48581 default:
48582 obj = 0;
48583 break;
48584 }
48585 if (obj) {
48586 PyDict_SetItemString(d, constants[i].name, obj);
48587 Py_DECREF(obj);
48588 }
53aa7709 48589 }
0085ce49
RD
48590 }
48591
48592 /* -----------------------------------------------------------------------------*/
48593 /* Fix SwigMethods to carry the callback ptrs when needed */
48594 /* -----------------------------------------------------------------------------*/
48595
48596 SWIGINTERN void
48597 SWIG_Python_FixMethods(PyMethodDef *methods,
48598 swig_const_info *const_table,
48599 swig_type_info **types,
48600 swig_type_info **types_initial) {
48601 size_t i;
48602 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 48603 const char *c = methods[i].ml_doc;
0085ce49
RD
48604 if (c && (c = strstr(c, "swig_ptr: "))) {
48605 int j;
48606 swig_const_info *ci = 0;
453fb36b 48607 const char *name = c + 10;
0085ce49
RD
48608 for (j = 0; const_table[j].type; ++j) {
48609 if (strncmp(const_table[j].name, name,
48610 strlen(const_table[j].name)) == 0) {
48611 ci = &(const_table[j]);
48612 break;
48613 }
48614 }
48615 if (ci) {
48616 size_t shift = (ci->ptype) - types;
48617 swig_type_info *ty = types_initial[shift];
48618 size_t ldoc = (c - methods[i].ml_doc);
48619 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48620 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48621 if (ndoc) {
48622 char *buff = ndoc;
48623 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48624 if (ptr) {
48625 strncpy(buff, methods[i].ml_doc, ldoc);
48626 buff += ldoc;
48627 strncpy(buff, "swig_ptr: ", 10);
48628 buff += 10;
48629 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48630 methods[i].ml_doc = ndoc;
48631 }
48632 }
48633 }
48634 }
53aa7709 48635 }
0085ce49
RD
48636 }
48637
48638#ifdef __cplusplus
48639}
48640#endif
48641
48642/* -----------------------------------------------------------------------------*
48643 * Partial Init method
48644 * -----------------------------------------------------------------------------*/
48645
48646#ifdef __cplusplus
48647extern "C"
48648#endif
48649SWIGEXPORT void SWIG_init(void) {
48650 PyObject *m, *d;
48651
48652 /* Fix SwigMethods to carry the callback ptrs when needed */
48653 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48654
48655 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48656 d = PyModule_GetDict(m);
48657
48658 SWIG_InitializeModule(0);
48659 SWIG_InstallConstants(d,swig_const_table);
48660
48661
48662 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48663 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48664 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48665 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48666 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48667 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48668 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48669 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48670 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48671 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48672 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48673 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48674 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48675 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48676 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48677 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48678 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48679 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48680 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48681 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48682 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48683 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
48684 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48685 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48686 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48687 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48688 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48689 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48690 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48691 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48692 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48693 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48694 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48695 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48696 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48697 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48698 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48699 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48700 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48701 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48702 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48703 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48704 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48705 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48706 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
48707 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48708 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48709 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48710 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48711 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48712 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48713 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48714 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48715 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48716 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48717 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48718 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48719 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48720 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48721 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48722 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48723 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48724 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48725 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48726 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48727 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48728 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48729 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48730 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48731 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48732 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48733 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 48734 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
0085ce49
RD
48735 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48736 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48737 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48738 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48739 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48740 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48741 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48742 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48743 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48744 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48745 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48746 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48747 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48748 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48749 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48750 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48751 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48752 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48753 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48754 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48755 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48756 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48757 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48758 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48759 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48760 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48761 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48762 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48763 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48764 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48765 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48766 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48767 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48768 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48769 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48770 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48771 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48772 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48773 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48774 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48775 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48776 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
0085ce49
RD
48777 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48778 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48779 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48780 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48781 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48782 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48783 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48784 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48785 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48786 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48787 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48788 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
0085ce49
RD
48789 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48790 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48791 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48792 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48793 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48794 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48795 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48796 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48797 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48798 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48799 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48800 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48801 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48802 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48803 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48804 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48805 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48806 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48807 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48808 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48809 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48810 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48811 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48812 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48813 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48814 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48815 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48816 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48817 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48818 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48819 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48820 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48821 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48822 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48823 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48824 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48825 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48826 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48827 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
6a223074 48828 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
0085ce49
RD
48829 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48830 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48831 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48832 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48833 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48834 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48835 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48836 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48837 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48838 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48839 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48840 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48841 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48842 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48843 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48844 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48845 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48846 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48847 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48848 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48849 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48850 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48851 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48852 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48853 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48854 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48855 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48856 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48857 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48858 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48859 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48860 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48861 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48862 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48863 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48864 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48865 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48866 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48867 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48868 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48869 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48870 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48871 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48872 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48873 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48874 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48875 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48876 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
0085ce49
RD
48877 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48878 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48879 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48880 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48881 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48882 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48883 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48884 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48885 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48886 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48887 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48888 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48889 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48890 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48891 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48892 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48893 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48894 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48895 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48896 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48897 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48898 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48899 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48900 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48901 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48902 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48903 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48904 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48905 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48906 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48907 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48908 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48909 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48910 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48911 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48912 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48913 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48914 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48915 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48916 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48917 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48918 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48919
48920 // Map renamed classes back to their common name for OOR
48921 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48922
48923 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48924 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48925 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48926 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48927 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48928 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48929 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48930 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48931 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48932 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48933 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48934 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48935 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48936 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48937 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
48938 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48939 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48940 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48941 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48942 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48943 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48944 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48945 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48946 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48947 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48948 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48949 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48950 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48951 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48952 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48953 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48954 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48955 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48956 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48957 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48958 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48959 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48960 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48961 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48962 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48963 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48964 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48965 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48966 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48967 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48968 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48969 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48970 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48971 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48972 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48973 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48974 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48975 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48976 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48977 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48978 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
0085ce49
RD
48979
48980 // Map renamed classes back to their common name for OOR
48981 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48982 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48983
48984 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48985 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48986 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48987 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48988 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48989 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
0085ce49
RD
48990 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48991 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48992 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48993 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48994 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
0085ce49
RD
48995
48996 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48997
48998 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48999 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49000 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49001 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49002 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49003 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49004 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49005 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
49006 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49007 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49008 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
49009 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49010 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49011 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49012 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49013 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49014 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49015 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49016 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49017 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49018 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49019 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49020 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49021 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49022 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49023 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49024 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49025 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49026 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49027 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49028 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49029 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49030 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49031 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49032 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49033 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49034 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49035 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49036 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49037 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49038 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49039 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49040 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d14a1e28
RD
49041}
49042