]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
Add a grid sizer demo, and document the props accepted by SetSizerProps.
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
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
d55e5bfc 1000
1bd55598
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)
d55e5bfc 1004
1bd55598
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)
d55e5bfc 1008
1bd55598
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)
d55e5bfc 1012
1bd55598
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
d55e5bfc 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
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
1bd55598
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
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
36ed4f51 1032
1bd55598 1033/* Error manipulation */
36ed4f51 1034
1bd55598
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;
d55e5bfc
RD
1041}
1042
1bd55598
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;
36ed4f51 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
36ed4f51 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
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;
c370783e 1088 } else {
1bd55598
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);
c370783e 1100 }
1bd55598
RD
1101 return result;
1102#endif
d55e5bfc 1103}
36ed4f51 1104
1bd55598 1105/* Unpack the argument tuple */
36ed4f51 1106
1bd55598
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*/
36ed4f51
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
36ed4f51 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 */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
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 */
36ed4f51 1632#endif
1bd55598
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 */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
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 */
d55e5bfc 1672#endif
36ed4f51 1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
36ed4f51
RD
1685}
1686
1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
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 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51
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;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
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 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
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))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
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))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
1bd55598
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);
36ed4f51
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
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 */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
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 }
36ed4f51 1865 }
1bd55598 1866 return (PyObject *) sobj;
36ed4f51
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
1bd55598
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 }
36ed4f51
RD
1880}
1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51
RD
1884 * ----------------------------------------------------------------------------- */
1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
36ed4f51 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
36ed4f51 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
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);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
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;
36ed4f51
RD
1947 }
1948}
1949
1bd55598
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 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51
RD
1963}
1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
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 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
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 }
36ed4f51
RD
2042 }
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
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);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
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;
36ed4f51
RD
2069 }
2070}
2071
1bd55598 2072/* Convert a packed value value */
36ed4f51 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
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 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
36ed4f51 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
36ed4f51 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
36ed4f51 2096
1bd55598
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 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
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);
36ed4f51 2126 }
1bd55598
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;
36ed4f51 2140 }
1bd55598
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;
36ed4f51 2147 }
1bd55598
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
36ed4f51
RD
2158}
2159
1bd55598
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 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
36ed4f51 2180
1bd55598
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]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
36ed4f51 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
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;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
36ed4f51
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
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) {
36ed4f51
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 }
36ed4f51 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 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");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 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));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
36ed4f51 2284
1bd55598
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);
1bd55598 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);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
36ed4f51 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
36ed4f51 2321
1bd55598
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]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
2520#define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521#define SWIGTYPE_p_wxFSFile swig_types[55]
2522#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523#define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524#define SWIGTYPE_p_wxFileSystem swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530#define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531#define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532#define SWIGTYPE_p_wxGauge swig_types[66]
2533#define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534#define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535#define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536#define SWIGTYPE_p_wxGridSizer swig_types[70]
2537#define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538#define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544#define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545#define SWIGTYPE_p_wxImage swig_types[79]
2546#define SWIGTYPE_p_wxImageHandler swig_types[80]
2547#define SWIGTYPE_p_wxImageList swig_types[81]
2548#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549#define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550#define SWIGTYPE_p_wxItemContainer swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554#define SWIGTYPE_p_wxListBox swig_types[88]
2555#define SWIGTYPE_p_wxListEvent swig_types[89]
2556#define SWIGTYPE_p_wxListItem swig_types[90]
2557#define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558#define SWIGTYPE_p_wxListView swig_types[92]
2559#define SWIGTYPE_p_wxListbook swig_types[93]
2560#define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561#define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562#define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563#define SWIGTYPE_p_wxMenu swig_types[97]
2564#define SWIGTYPE_p_wxMenuBar swig_types[98]
2565#define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566#define SWIGTYPE_p_wxMenuItem swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572#define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotebook swig_types[107]
2574#define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575#define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576#define SWIGTYPE_p_wxObject swig_types[110]
2577#define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578#define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580#define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaperSize swig_types[116]
2583#define SWIGTYPE_p_wxPickerBase swig_types[117]
2584#define SWIGTYPE_p_wxPoint swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyControl swig_types[121]
2588#define SWIGTYPE_p_wxPyEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRadioBox swig_types[130]
2597#define SWIGTYPE_p_wxRadioButton swig_types[131]
2598#define SWIGTYPE_p_wxRect swig_types[132]
2599#define SWIGTYPE_p_wxScrollBar swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
3f7f284d
RD
2602#define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603#define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604#define SWIGTYPE_p_wxShowEvent swig_types[138]
2605#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606#define SWIGTYPE_p_wxSize swig_types[140]
2607#define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608#define SWIGTYPE_p_wxSizer swig_types[142]
2609#define SWIGTYPE_p_wxSizerItem swig_types[143]
2610#define SWIGTYPE_p_wxSlider swig_types[144]
2611#define SWIGTYPE_p_wxSpinButton swig_types[145]
2612#define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613#define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614#define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615#define SWIGTYPE_p_wxStaticBox swig_types[149]
2616#define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617#define SWIGTYPE_p_wxStaticLine swig_types[151]
2618#define SWIGTYPE_p_wxStaticText swig_types[152]
2619#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620#define SWIGTYPE_p_wxString swig_types[154]
2621#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622#define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623#define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624#define SWIGTYPE_p_wxTextAttr swig_types[158]
2625#define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626#define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627#define SWIGTYPE_p_wxToggleButton swig_types[161]
2628#define SWIGTYPE_p_wxToolBar swig_types[162]
2629#define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630#define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631#define SWIGTYPE_p_wxToolbook swig_types[165]
2632#define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633#define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634#define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635#define SWIGTYPE_p_wxTreebook swig_types[169]
2636#define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637#define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638#define SWIGTYPE_p_wxValidator swig_types[172]
2639#define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640#define SWIGTYPE_p_wxWindow swig_types[174]
2641#define SWIGTYPE_p_wxWindowBase swig_types[175]
2642#define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644#define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645static swig_type_info *swig_types[180];
2646static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
32fe5131
RD
2647#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2649
2650/* -------- TYPES TABLE (END) -------- */
2651
1bd55598
RD
2652#if (PY_VERSION_HEX <= 0x02000000)
2653# if !defined(SWIG_PYTHON_CLASSIC)
2654# error "This python version requires to use swig with the '-classic' option"
2655# endif
2656#endif
2657#if (PY_VERSION_HEX <= 0x02020000)
2658# error "This python version requires to use swig with the '-nomodern' option"
2659#endif
2660#if (PY_VERSION_HEX <= 0x02020000)
2661# error "This python version requires to use swig with the '-nomodernargs' option"
2662#endif
2663#ifndef METH_O
2664# error "This python version requires to use swig with the '-nofastunpack' option"
2665#endif
36ed4f51
RD
2666
2667/*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670#define SWIG_init init_controls_
2671
2672#define SWIG_name "_controls_"
2673
1bd55598
RD
2674#define SWIGVERSION 0x010329
2675
2676
2677#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681#include <stdexcept>
2682
2683
2684namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727}
2728
2729
2730namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741}
2742
2743
36ed4f51
RD
2744#include "wx/wxPython/wxPython.h"
2745#include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
1bd55598 2755 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2756
2757
1bd55598
RD
2758SWIGINTERNINLINE PyObject *
2759SWIG_From_int (int value)
2760{
2761 return SWIG_From_long (value);
2762}
36ed4f51
RD
2763
2764
1bd55598
RD
2765#include <limits.h>
2766#ifndef LLONG_MIN
2767# define LLONG_MIN LONG_LONG_MIN
2768#endif
2769#ifndef LLONG_MAX
2770# define LLONG_MAX LONG_LONG_MAX
2771#endif
2772#ifndef ULLONG_MAX
2773# define ULLONG_MAX ULONG_LONG_MAX
2774#endif
36ed4f51
RD
2775
2776
2777SWIGINTERN int
1bd55598 2778SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2779{
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
1bd55598 2782 return SWIG_OK;
36ed4f51 2783 }
1bd55598 2784 return SWIG_TypeError;
36ed4f51
RD
2785}
2786
2787
36ed4f51 2788SWIGINTERN int
1bd55598
RD
2789SWIG_AsVal_int (PyObject * obj, int *val)
2790{
36ed4f51 2791 long v;
1bd55598
RD
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
36ed4f51 2796 } else {
1bd55598 2797 if (val) *val = static_cast< int >(v);
36ed4f51 2798 }
1bd55598
RD
2799 }
2800 return res;
d55e5bfc
RD
2801}
2802
c370783e 2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2804
36ed4f51 2805SWIGINTERN int
1bd55598 2806SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2807{
c370783e
RD
2808 if (obj == Py_True) {
2809 if (val) *val = true;
1bd55598
RD
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
c370783e 2812 if (val) *val = false;
1bd55598 2813 return SWIG_OK;
36ed4f51 2814 } else {
1bd55598
RD
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
c370783e 2819 }
d55e5bfc
RD
2820}
2821
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
3f7f284d 2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
d55e5bfc
RD
2829
2830#include <wx/checklst.h>
d55e5bfc
RD
2831
2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2833SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2834 if (clientData)
2835 {
d55e5bfc
RD
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
e9d6f3a4
RD
2838 }
2839 else
d55e5bfc
RD
2840 self->Insert(item, pos);
2841 }
50f151d7
RD
2842
2843SWIGINTERN int
2844SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845{
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853}
2854
2855
2856SWIGINTERN int
2857SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858{
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869}
2870
1bd55598 2871SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
7e08d4ef
RD
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
e9d6f3a4 2880 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2881 return tup;
2882 }
1bd55598 2883SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
1bd55598 2889SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
1bd55598 2895SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2902SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2903 self->AppendText(text);
2904 }
1bd55598 2905SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2906 return self->GetValue().Mid(from, to - from);
2907 }
2908 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2909 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2910 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2911 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2912 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2913
1c71765a
RD
2914SWIGINTERNINLINE PyObject*
2915SWIG_From_unsigned_SS_long (unsigned long value)
2916{
2917 return (value > LONG_MAX) ?
2918 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2919}
2920
2921
2922SWIGINTERNINLINE PyObject *
2923SWIG_From_size_t (size_t value)
2924{
2925 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2926}
2927
2928
50f151d7
RD
2929SWIGINTERNINLINE PyObject *
2930SWIG_From_unsigned_SS_int (unsigned int value)
2931{
2932 return SWIG_From_unsigned_SS_long (value);
2933}
2934
2935
d55e5bfc
RD
2936#include <wx/slider.h>
2937
2938
2939 static const wxString wxPySliderNameStr(wxSliderNameStr);
2940 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2941
2942#if !wxUSE_TOGGLEBTN
2943// implement dummy items for platforms that don't have this class
2944
2945#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2946
2947class wxToggleButton : public wxControl
2948{
2949public:
2950 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2951 const wxPoint&, const wxSize&, long,
2952 const wxValidator&, const wxString&)
2953 { wxPyRaiseNotImplemented(); }
2954
2955 wxToggleButton()
2956 { wxPyRaiseNotImplemented(); }
2957};
2958#endif
2959
51b83b37 2960 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2961
7e08d4ef 2962SWIGINTERNINLINE int
1bd55598 2963SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2964{
7e08d4ef 2965 unsigned long v;
1bd55598
RD
2966 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2967 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2968 return res;
7e08d4ef 2969}
7e08d4ef 2970
d55e5bfc 2971 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2972SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2973 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2974 if (udata) {
2975 Py_INCREF(udata->m_obj);
2976 return udata->m_obj;
2977 } else {
2978 Py_INCREF(Py_None);
2979 return Py_None;
2980 }
2981 }
1bd55598 2982SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2983 self->SetClientData(new wxPyUserData(clientData));
2984 }
1bd55598 2985SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2986 wxPyUserData* udata = NULL;
2987 if (clientData && clientData != Py_None)
2988 udata = new wxPyUserData(clientData);
2989 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2990 shortHelp, longHelp, udata);
2991 }
1bd55598 2992SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2993 wxPyUserData* udata = NULL;
2994 if (clientData && clientData != Py_None)
2995 udata = new wxPyUserData(clientData);
2996 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2997 shortHelp, longHelp, udata);
2998 }
1bd55598 2999SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
3000 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3001 if (udata) {
3002 Py_INCREF(udata->m_obj);
3003 return udata->m_obj;
3004 } else {
3005 Py_INCREF(Py_None);
3006 return Py_None;
3007 }
3008 }
1bd55598 3009SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3010 self->SetToolClientData(id, new wxPyUserData(clientData));
3011 }
3012
3013#include <wx/listctrl.h>
3014
fef4c27a 3015 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3016SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3017 // Python aware sorting function for wxPyListCtrl
3018 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3019 int retval = 0;
3020 PyObject* func = (PyObject*)funcPtr;
5a446332 3021 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3022
3023 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3024 PyObject* result = PyEval_CallObject(func, args);
3025 Py_DECREF(args);
3026 if (result) {
3027 retval = PyInt_AsLong(result);
3028 Py_DECREF(result);
3029 }
3030
3031 wxPyEndBlockThreads(blocked);
3032 return retval;
3033 }
3034
3035 // C++ Version of a Python aware class
3036class wxPyListCtrl : public wxListCtrl {
32fe5131 3037 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3038public:
3039 wxPyListCtrl() : wxListCtrl() {}
3040 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3041 const wxPoint& pos,
3042 const wxSize& size,
3043 long style,
3044 const wxValidator& validator,
3045 const wxString& name) :
3046 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3047
3048 bool Create(wxWindow* parent, wxWindowID id,
3049 const wxPoint& pos,
3050 const wxSize& size,
3051 long style,
3052 const wxValidator& validator,
3053 const wxString& name) {
3054 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3055 }
3056
3057 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3058 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3059
84f85550
RD
3060 // use the virtual version to avoid a confusing assert in the base class
3061 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3062 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3063
d55e5bfc
RD
3064 PYPRIVATE;
3065};
3066
3067IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3068
3069IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3070IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3071IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
c25f90f6 3072IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
7e08d4ef 3073
d55e5bfc 3074
1bd55598 3075SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3076 wxListItem item;
3077 item.SetMask( wxLIST_MASK_STATE |
3078 wxLIST_MASK_TEXT |
3079 wxLIST_MASK_IMAGE |
3080 wxLIST_MASK_DATA |
3081 wxLIST_SET_ITEM |
3082 wxLIST_MASK_WIDTH |
3083 wxLIST_MASK_FORMAT
3084 );
3085 if (self->GetColumn(col, item))
3086 return new wxListItem(item);
3087 else
3088 return NULL;
3089 }
1bd55598 3090SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3091 wxListItem* info = new wxListItem;
3092 info->m_itemId = itemId;
3093 info->m_col = col;
3094 info->m_mask = 0xFFFF;
3095 self->GetItem(*info);
3096 return info;
3097 }
1bd55598 3098SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3099 wxPoint pos;
3100 self->GetItemPosition(item, pos);
3101 return pos;
3102 }
1bd55598 3103SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3104 wxRect rect;
3105 self->GetItemRect(item, rect, code);
3106 return rect;
3107 }
1bd55598 3108SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3109 if (!PyCallable_Check(func))
b411df4a 3110 return false;
d55e5bfc
RD
3111 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3112 }
1bd55598 3113SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc 3114
6a223074
RD
3115 return self;
3116
d55e5bfc
RD
3117
3118
d55e5bfc
RD
3119 }
3120
3121#include <wx/treectrl.h>
3122#include "wx/wxPython/pytree.h"
3123
3124 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3125SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3126SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3127SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3128
3129 static wxTreeItemId wxNullTreeItemId;
3130
d55e5bfc
RD
3131 // C++ version of Python aware wxTreeCtrl
3132class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3133 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3134public:
3135 wxPyTreeCtrl() : wxTreeCtrl() {}
3136 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3137 const wxPoint& pos,
3138 const wxSize& size,
3139 long style,
3140 const wxValidator& validator,
3141 const wxString& name) :
3142 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3143
3144 bool Create(wxWindow *parent, wxWindowID id,
3145 const wxPoint& pos,
3146 const wxSize& size,
3147 long style,
3148 const wxValidator& validator,
3149 const wxString& name) {
3150 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3151 }
3152
3153
3154 int OnCompareItems(const wxTreeItemId& item1,
3155 const wxTreeItemId& item2) {
3156 int rval = 0;
3157 bool found;
5a446332 3158 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3159 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3160 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3161 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3162 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3163 Py_DECREF(o1);
3164 Py_DECREF(o2);
3165 }
3166 wxPyEndBlockThreads(blocked);
3167 if (! found)
3168 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3169 return rval;
3170 }
3171 PYPRIVATE;
3172};
3173
3174IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3175
3176
1bd55598 3177SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data;
3185 }
1bd55598 3186SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3187 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3188 if (data == NULL) {
3189 data = new wxPyTreeItemData();
3190 data->SetId(item); // set the id
3191 self->SetItemData(item, data);
3192 }
3193 return data->GetData();
3194 }
1bd55598 3195SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3196 data->SetId(item); // set the id
3197 self->SetItemData(item, data);
3198 }
1bd55598 3199SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3200 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3201 if (data == NULL) {
3202 data = new wxPyTreeItemData(obj);
3203 data->SetId(item); // set the id
3204 self->SetItemData(item, data);
3205 } else
3206 data->SetData(obj);
3207 }
1bd55598 3208SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3209 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3210 PyObject* rval = PyList_New(0);
3211 wxArrayTreeItemIds array;
3212 size_t num, x;
3213 num = self->GetSelections(array);
3214 for (x=0; x < num; x++) {
3215 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3216 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3217 PyList_Append(rval, item);
68e533f8 3218 Py_DECREF(item);
d55e5bfc
RD
3219 }
3220 wxPyEndBlockThreads(blocked);
3221 return rval;
3222 }
1bd55598 3223SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3224 void* cookie = 0;
3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3227 PyObject* tup = PyTuple_New(2);
b411df4a 3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
1bd55598 3233SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3234 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3235 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3236 PyObject* tup = PyTuple_New(2);
b411df4a 3237 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3238 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3239 wxPyEndBlockThreads(blocked);
3240 return tup;
3241 }
1bd55598 3242SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3243 wxRect rect;
3244 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3245 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3246 wxRect* r = new wxRect(rect);
b411df4a 3247 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3248 wxPyEndBlockThreads(blocked);
3249 return val;
3250 }
3251 else
3252 RETURN_NONE();
3253 }
3254 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3255
32fe5131 3256SWIGINTERNINLINE PyObject*
1bd55598 3257 SWIG_From_bool (bool value)
c370783e 3258{
1bd55598 3259 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3260}
3261
d55e5bfc
RD
3262 // C++ version of Python aware wxControl
3263class wxPyControl : public wxControl
3264{
3265 DECLARE_DYNAMIC_CLASS(wxPyControl)
3266public:
3267 wxPyControl() : wxControl() {}
3268 wxPyControl(wxWindow* parent, const wxWindowID id,
3269 const wxPoint& pos = wxDefaultPosition,
3270 const wxSize& size = wxDefaultSize,
3271 long style = 0,
3272 const wxValidator& validator=wxDefaultValidator,
3273 const wxString& name = wxPyControlNameStr)
3274 : wxControl(parent, id, pos, size, style, validator, name) {}
3275
3276
976dbff5
RD
3277 bool DoEraseBackground(wxDC* dc) {
3278#ifdef __WXMSW__
3279 return wxWindow::DoEraseBackground(dc->GetHDC());
3280#else
3281 dc->SetBackground(wxBrush(GetBackgroundColour()));
3282 dc->Clear();
3283 return true;
3284#endif
3285 }
3286
d55e5bfc
RD
3287 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3288 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3289 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3291
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3295
3296 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3297 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3298
3299 DEC_PYCALLBACK__(InitDialog);
3300 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3301 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3302 DEC_PYCALLBACK_BOOL_(Validate);
3303
3304 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3306 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3307
3308 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3309 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3310
a5ee0656 3311 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3312 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3313
51b83b37
RD
3314 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3315
8d38bd1d
RD
3316 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3317
d55e5bfc
RD
3318 PYPRIVATE;
3319};
3320
3321IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3322
3323IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3324IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3325IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3326IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3327
3328IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3329IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3330IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3331
3332IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3333IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3334
3335IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3336IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3337IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3338IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3339
3340IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3341IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3342IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3343
3344IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3345IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3346
a5ee0656 3347IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3348IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3349
51b83b37 3350IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3351
3352IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3353
d55e5bfc
RD
3354
3355
1bd55598 3356SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3357
3358#include <wx/generic/dragimgg.h>
3359
53aa7709 3360 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3361SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3362 wxDateTime rv;
3363 self->GetRange(&rv, NULL);
3364 return rv;
3365 }
1bd55598 3366SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3367 wxDateTime rv;
3368 self->GetRange(NULL, &rv);
3369 return rv;
3370 }
704eda0c 3371 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3372 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3373 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3374 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3375 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3376 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3377 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3378 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3379 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3f7f284d 3380 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
62358578
RD
3381
3382#if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3383// define a dummy class for builds that don't have wxSearchCtrl
3384
3385enum {
4ed51f4d
RD
3386 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3387 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
62358578
RD
3388};
3389
3390class wxSearchCtrl : public wxTextCtrl
3391{
3392public:
3393 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3394 wxSearchCtrl(wxWindow*, wxWindowID,
3395 const wxString&,
3396 const wxPoint&,
3397 const wxSize&,
3398 long style,
3399 const wxValidator&,
3400 const wxString& name)
3401 { wxPyRaiseNotImplemented(); }
3402
3403 bool Create( wxWindow*, wxWindowID,
3404 const wxString&,
3405 const wxPoint&,
3406 const wxSize&,
3407 long style,
3408 const wxValidator&,
3409 const wxString& name) {}
3410
3411 virtual void SetMenu( wxMenu* ) {}
3412 virtual wxMenu* GetMenu() { return NULL; }
3413
3414 // get/set search options
3415 // ----------------------
3416 virtual void ShowSearchButton( bool ) {}
3417 virtual bool IsSearchButtonVisible() const { return false; }
3418
3419 virtual void ShowCancelButton( bool ) {}
3420 virtual bool IsCancelButtonVisible() const { return false; }
3421};
3422#endif
3423
3f7f284d
RD
3424SWIGINTERN void wxSearchCtrl_SetSearchBitmap(wxSearchCtrl *self,wxBitmap const &){}
3425SWIGINTERN void wxSearchCtrl_SetSearchMenuBitmap(wxSearchCtrl *self,wxBitmap const &){}
3426SWIGINTERN void wxSearchCtrl_SetCancelBitmap(wxSearchCtrl *self,wxBitmap const &){}
d55e5bfc
RD
3427#ifdef __cplusplus
3428extern "C" {
3429#endif
1bd55598
RD
3430SWIGINTERN int ButtonNameStr_set(PyObject *) {
3431 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3432 return 1;
d55e5bfc
RD
3433}
3434
3435
1bd55598
RD
3436SWIGINTERN PyObject *ButtonNameStr_get(void) {
3437 PyObject *pyobj = 0;
3438
3439 {
d55e5bfc 3440#if wxUSE_UNICODE
1bd55598 3441 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3442#else
1bd55598 3443 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3444#endif
1bd55598
RD
3445 }
3446 return pyobj;
3447}
3448
3449
3450SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3451 PyObject *resultobj = 0;
3452 wxWindow *arg1 = (wxWindow *) 0 ;
3453 int arg2 = (int) -1 ;
3454 wxString const &arg3_defvalue = wxPyEmptyString ;
3455 wxString *arg3 = (wxString *) &arg3_defvalue ;
3456 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3457 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3458 wxSize const &arg5_defvalue = wxDefaultSize ;
3459 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3460 long arg6 = (long) 0 ;
3461 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3462 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3463 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3464 wxString *arg8 = (wxString *) &arg8_defvalue ;
3465 wxButton *result = 0 ;
3466 void *argp1 = 0 ;
3467 int res1 = 0 ;
3468 int val2 ;
3469 int ecode2 = 0 ;
3470 bool temp3 = false ;
3471 wxPoint temp4 ;
3472 wxSize temp5 ;
3473 long val6 ;
3474 int ecode6 = 0 ;
3475 void *argp7 = 0 ;
3476 int res7 = 0 ;
3477 bool temp8 = false ;
3478 PyObject * obj0 = 0 ;
3479 PyObject * obj1 = 0 ;
3480 PyObject * obj2 = 0 ;
3481 PyObject * obj3 = 0 ;
3482 PyObject * obj4 = 0 ;
3483 PyObject * obj5 = 0 ;
3484 PyObject * obj6 = 0 ;
3485 PyObject * obj7 = 0 ;
3486 char * kwnames[] = {
3487 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3488 };
3489
3490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3492 if (!SWIG_IsOK(res1)) {
3493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3494 }
3495 arg1 = reinterpret_cast< wxWindow * >(argp1);
3496 if (obj1) {
3497 ecode2 = SWIG_AsVal_int(obj1, &val2);
3498 if (!SWIG_IsOK(ecode2)) {
3499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3500 }
3501 arg2 = static_cast< int >(val2);
3502 }
3503 if (obj2) {
d55e5bfc 3504 {
1bd55598
RD
3505 arg3 = wxString_in_helper(obj2);
3506 if (arg3 == NULL) SWIG_fail;
3507 temp3 = true;
d55e5bfc 3508 }
1bd55598
RD
3509 }
3510 if (obj3) {
d55e5bfc 3511 {
1bd55598
RD
3512 arg4 = &temp4;
3513 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3514 }
1bd55598
RD
3515 }
3516 if (obj4) {
d55e5bfc 3517 {
1bd55598
RD
3518 arg5 = &temp5;
3519 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3520 }
1bd55598
RD
3521 }
3522 if (obj5) {
3523 ecode6 = SWIG_AsVal_long(obj5, &val6);
3524 if (!SWIG_IsOK(ecode6)) {
3525 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3526 }
3527 arg6 = static_cast< long >(val6);
3528 }
3529 if (obj6) {
3530 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3531 if (!SWIG_IsOK(res7)) {
3532 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3533 }
1bd55598
RD
3534 if (!argp7) {
3535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3536 }
1bd55598
RD
3537 arg7 = reinterpret_cast< wxValidator * >(argp7);
3538 }
3539 if (obj7) {
d55e5bfc 3540 {
1bd55598
RD
3541 arg8 = wxString_in_helper(obj7);
3542 if (arg8 == NULL) SWIG_fail;
3543 temp8 = true;
d55e5bfc 3544 }
1bd55598
RD
3545 }
3546 {
3547 if (!wxPyCheckForApp()) SWIG_fail;
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3550 wxPyEndAllowThreads(__tstate);
3551 if (PyErr_Occurred()) SWIG_fail;
3552 }
3553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3554 {
3555 if (temp3)
3556 delete arg3;
3557 }
3558 {
3559 if (temp8)
3560 delete arg8;
3561 }
3562 return resultobj;
3563fail:
3564 {
3565 if (temp3)
3566 delete arg3;
3567 }
3568 {
3569 if (temp8)
3570 delete arg8;
3571 }
3572 return NULL;
d55e5bfc
RD
3573}
3574
3575
1bd55598
RD
3576SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3577 PyObject *resultobj = 0;
3578 wxButton *result = 0 ;
3579
3580 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3581 {
3582 if (!wxPyCheckForApp()) SWIG_fail;
3583 PyThreadState* __tstate = wxPyBeginAllowThreads();
3584 result = (wxButton *)new wxButton();
3585 wxPyEndAllowThreads(__tstate);
3586 if (PyErr_Occurred()) SWIG_fail;
3587 }
3588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3589 return resultobj;
3590fail:
3591 return NULL;
3592}
3593
3594
3595SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3596 PyObject *resultobj = 0;
3597 wxButton *arg1 = (wxButton *) 0 ;
3598 wxWindow *arg2 = (wxWindow *) 0 ;
3599 int arg3 = (int) -1 ;
3600 wxString const &arg4_defvalue = wxPyEmptyString ;
3601 wxString *arg4 = (wxString *) &arg4_defvalue ;
3602 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3603 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3604 wxSize const &arg6_defvalue = wxDefaultSize ;
3605 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3606 long arg7 = (long) 0 ;
3607 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3608 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3609 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3610 wxString *arg9 = (wxString *) &arg9_defvalue ;
3611 bool result;
3612 void *argp1 = 0 ;
3613 int res1 = 0 ;
3614 void *argp2 = 0 ;
3615 int res2 = 0 ;
3616 int val3 ;
3617 int ecode3 = 0 ;
3618 bool temp4 = false ;
3619 wxPoint temp5 ;
3620 wxSize temp6 ;
3621 long val7 ;
3622 int ecode7 = 0 ;
3623 void *argp8 = 0 ;
3624 int res8 = 0 ;
3625 bool temp9 = false ;
3626 PyObject * obj0 = 0 ;
3627 PyObject * obj1 = 0 ;
3628 PyObject * obj2 = 0 ;
3629 PyObject * obj3 = 0 ;
3630 PyObject * obj4 = 0 ;
3631 PyObject * obj5 = 0 ;
3632 PyObject * obj6 = 0 ;
3633 PyObject * obj7 = 0 ;
3634 PyObject * obj8 = 0 ;
3635 char * kwnames[] = {
3636 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3637 };
3638
3639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3641 if (!SWIG_IsOK(res1)) {
3642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3643 }
3644 arg1 = reinterpret_cast< wxButton * >(argp1);
3645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3646 if (!SWIG_IsOK(res2)) {
3647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3648 }
3649 arg2 = reinterpret_cast< wxWindow * >(argp2);
3650 if (obj2) {
3651 ecode3 = SWIG_AsVal_int(obj2, &val3);
3652 if (!SWIG_IsOK(ecode3)) {
3653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3654 }
3655 arg3 = static_cast< int >(val3);
3656 }
3657 if (obj3) {
d55e5bfc 3658 {
1bd55598
RD
3659 arg4 = wxString_in_helper(obj3);
3660 if (arg4 == NULL) SWIG_fail;
3661 temp4 = true;
d55e5bfc 3662 }
1bd55598
RD
3663 }
3664 if (obj4) {
d55e5bfc 3665 {
1bd55598
RD
3666 arg5 = &temp5;
3667 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3668 }
1bd55598
RD
3669 }
3670 if (obj5) {
d55e5bfc 3671 {
1bd55598
RD
3672 arg6 = &temp6;
3673 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3674 }
1bd55598
RD
3675 }
3676 if (obj6) {
3677 ecode7 = SWIG_AsVal_long(obj6, &val7);
3678 if (!SWIG_IsOK(ecode7)) {
3679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3680 }
3681 arg7 = static_cast< long >(val7);
3682 }
3683 if (obj7) {
3684 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3685 if (!SWIG_IsOK(res8)) {
3686 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3687 }
1bd55598
RD
3688 if (!argp8) {
3689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3690 }
1bd55598
RD
3691 arg8 = reinterpret_cast< wxValidator * >(argp8);
3692 }
3693 if (obj8) {
d55e5bfc 3694 {
1bd55598
RD
3695 arg9 = wxString_in_helper(obj8);
3696 if (arg9 == NULL) SWIG_fail;
3697 temp9 = true;
d55e5bfc 3698 }
1bd55598
RD
3699 }
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 {
3707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3708 }
3709 {
3710 if (temp4)
3711 delete arg4;
3712 }
3713 {
3714 if (temp9)
3715 delete arg9;
3716 }
3717 return resultobj;
3718fail:
3719 {
3720 if (temp4)
3721 delete arg4;
3722 }
3723 {
3724 if (temp9)
3725 delete arg9;
3726 }
3727 return NULL;
d55e5bfc
RD
3728}
3729
3730
1bd55598
RD
3731SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3732 PyObject *resultobj = 0;
3733 wxButton *arg1 = (wxButton *) 0 ;
3734 void *argp1 = 0 ;
3735 int res1 = 0 ;
3736 PyObject *swig_obj[1] ;
3737
3738 if (!args) SWIG_fail;
3739 swig_obj[0] = args;
3740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3741 if (!SWIG_IsOK(res1)) {
3742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3743 }
3744 arg1 = reinterpret_cast< wxButton * >(argp1);
3745 {
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
3747 (arg1)->SetDefault();
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_Py_Void();
3752 return resultobj;
3753fail:
3754 return NULL;
d55e5bfc
RD
3755}
3756
3757
1bd55598
RD
3758SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3759 PyObject *resultobj = 0;
3760 wxSize result;
3761
3762 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 result = wxButton::GetDefaultSize();
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3770 return resultobj;
3771fail:
3772 return NULL;
3773}
3774
3775
3776SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3777 PyObject *resultobj = 0;
3778 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3779 SwigValueWrapper<wxVisualAttributes > result;
3780 int val1 ;
3781 int ecode1 = 0 ;
3782 PyObject * obj0 = 0 ;
3783 char * kwnames[] = {
3784 (char *) "variant", NULL
3785 };
3786
3787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3788 if (obj0) {
3789 ecode1 = SWIG_AsVal_int(obj0, &val1);
3790 if (!SWIG_IsOK(ecode1)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3792 }
3793 arg1 = static_cast< wxWindowVariant >(val1);
3794 }
3795 {
3796 if (!wxPyCheckForApp()) SWIG_fail;
3797 PyThreadState* __tstate = wxPyBeginAllowThreads();
3798 result = wxButton::GetClassDefaultAttributes(arg1);
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3803 return resultobj;
3804fail:
3805 return NULL;
3806}
3807
3808
3809SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3810 PyObject *obj;
3811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3812 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3813 return SWIG_Py_Void();
3814}
3815
3816SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3817 return SWIG_Python_InitShadowInstance(args);
3818}
3819
3820SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3821 PyObject *resultobj = 0;
3822 wxWindow *arg1 = (wxWindow *) 0 ;
3823 int arg2 = (int) -1 ;
3824 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3825 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3826 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3827 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3828 wxSize const &arg5_defvalue = wxDefaultSize ;
3829 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3830 long arg6 = (long) wxBU_AUTODRAW ;
3831 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3832 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3833 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3834 wxString *arg8 = (wxString *) &arg8_defvalue ;
3835 wxBitmapButton *result = 0 ;
3836 void *argp1 = 0 ;
3837 int res1 = 0 ;
3838 int val2 ;
3839 int ecode2 = 0 ;
3840 void *argp3 = 0 ;
3841 int res3 = 0 ;
3842 wxPoint temp4 ;
3843 wxSize temp5 ;
3844 long val6 ;
3845 int ecode6 = 0 ;
3846 void *argp7 = 0 ;
3847 int res7 = 0 ;
3848 bool temp8 = false ;
3849 PyObject * obj0 = 0 ;
3850 PyObject * obj1 = 0 ;
3851 PyObject * obj2 = 0 ;
3852 PyObject * obj3 = 0 ;
3853 PyObject * obj4 = 0 ;
3854 PyObject * obj5 = 0 ;
3855 PyObject * obj6 = 0 ;
3856 PyObject * obj7 = 0 ;
3857 char * kwnames[] = {
3858 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3859 };
3860
3861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3863 if (!SWIG_IsOK(res1)) {
3864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3865 }
3866 arg1 = reinterpret_cast< wxWindow * >(argp1);
3867 if (obj1) {
3868 ecode2 = SWIG_AsVal_int(obj1, &val2);
3869 if (!SWIG_IsOK(ecode2)) {
3870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3871 }
3872 arg2 = static_cast< int >(val2);
3873 }
3874 if (obj2) {
3875 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3876 if (!SWIG_IsOK(res3)) {
3877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3878 }
3879 if (!argp3) {
3880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3881 }
3882 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3883 }
3884 if (obj3) {
d55e5bfc 3885 {
1bd55598
RD
3886 arg4 = &temp4;
3887 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3888 }
1bd55598
RD
3889 }
3890 if (obj4) {
d55e5bfc 3891 {
1bd55598
RD
3892 arg5 = &temp5;
3893 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3894 }
1bd55598
RD
3895 }
3896 if (obj5) {
3897 ecode6 = SWIG_AsVal_long(obj5, &val6);
3898 if (!SWIG_IsOK(ecode6)) {
3899 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3900 }
3901 arg6 = static_cast< long >(val6);
3902 }
3903 if (obj6) {
3904 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3905 if (!SWIG_IsOK(res7)) {
3906 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3907 }
1bd55598
RD
3908 if (!argp7) {
3909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3910 }
1bd55598
RD
3911 arg7 = reinterpret_cast< wxValidator * >(argp7);
3912 }
3913 if (obj7) {
f20a2e1f 3914 {
1bd55598
RD
3915 arg8 = wxString_in_helper(obj7);
3916 if (arg8 == NULL) SWIG_fail;
3917 temp8 = true;
f20a2e1f 3918 }
1bd55598
RD
3919 }
3920 {
3921 if (!wxPyCheckForApp()) SWIG_fail;
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3928 {
3929 if (temp8)
3930 delete arg8;
3931 }
3932 return resultobj;
3933fail:
3934 {
3935 if (temp8)
3936 delete arg8;
3937 }
3938 return NULL;
f20a2e1f
RD
3939}
3940
3941
1bd55598
RD
3942SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3943 PyObject *resultobj = 0;
3944 wxBitmapButton *result = 0 ;
3945
3946 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3947 {
3948 if (!wxPyCheckForApp()) SWIG_fail;
3949 PyThreadState* __tstate = wxPyBeginAllowThreads();
3950 result = (wxBitmapButton *)new wxBitmapButton();
3951 wxPyEndAllowThreads(__tstate);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3955 return resultobj;
3956fail:
3957 return NULL;
3958}
3959
3960
3961SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3962 PyObject *resultobj = 0;
3963 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3964 wxWindow *arg2 = (wxWindow *) 0 ;
3965 int arg3 = (int) -1 ;
3966 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3967 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3968 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3969 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3970 wxSize const &arg6_defvalue = wxDefaultSize ;
3971 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3972 long arg7 = (long) wxBU_AUTODRAW ;
3973 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3974 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3975 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3976 wxString *arg9 = (wxString *) &arg9_defvalue ;
3977 bool result;
3978 void *argp1 = 0 ;
3979 int res1 = 0 ;
3980 void *argp2 = 0 ;
3981 int res2 = 0 ;
3982 int val3 ;
3983 int ecode3 = 0 ;
3984 void *argp4 = 0 ;
3985 int res4 = 0 ;
3986 wxPoint temp5 ;
3987 wxSize temp6 ;
3988 long val7 ;
3989 int ecode7 = 0 ;
3990 void *argp8 = 0 ;
3991 int res8 = 0 ;
3992 bool temp9 = false ;
3993 PyObject * obj0 = 0 ;
3994 PyObject * obj1 = 0 ;
3995 PyObject * obj2 = 0 ;
3996 PyObject * obj3 = 0 ;
3997 PyObject * obj4 = 0 ;
3998 PyObject * obj5 = 0 ;
3999 PyObject * obj6 = 0 ;
4000 PyObject * obj7 = 0 ;
4001 PyObject * obj8 = 0 ;
4002 char * kwnames[] = {
4003 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4004 };
4005
4006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4008 if (!SWIG_IsOK(res1)) {
4009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4010 }
4011 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4013 if (!SWIG_IsOK(res2)) {
4014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4015 }
4016 arg2 = reinterpret_cast< wxWindow * >(argp2);
4017 if (obj2) {
4018 ecode3 = SWIG_AsVal_int(obj2, &val3);
4019 if (!SWIG_IsOK(ecode3)) {
4020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4021 }
4022 arg3 = static_cast< int >(val3);
4023 }
4024 if (obj3) {
4025 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4026 if (!SWIG_IsOK(res4)) {
4027 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 4028 }
1bd55598
RD
4029 if (!argp4) {
4030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 4031 }
1bd55598
RD
4032 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4033 }
4034 if (obj4) {
d55e5bfc 4035 {
1bd55598
RD
4036 arg5 = &temp5;
4037 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4038 }
1bd55598
RD
4039 }
4040 if (obj5) {
d55e5bfc 4041 {
1bd55598
RD
4042 arg6 = &temp6;
4043 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4044 }
4045 }
4046 if (obj6) {
4047 ecode7 = SWIG_AsVal_long(obj6, &val7);
4048 if (!SWIG_IsOK(ecode7)) {
4049 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4050 }
4051 arg7 = static_cast< long >(val7);
4052 }
4053 if (obj7) {
4054 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4055 if (!SWIG_IsOK(res8)) {
4056 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4057 }
4058 if (!argp8) {
4059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4060 }
1bd55598
RD
4061 arg8 = reinterpret_cast< wxValidator * >(argp8);
4062 }
4063 if (obj8) {
d55e5bfc 4064 {
1bd55598
RD
4065 arg9 = wxString_in_helper(obj8);
4066 if (arg9 == NULL) SWIG_fail;
4067 temp9 = true;
d55e5bfc 4068 }
1bd55598
RD
4069 }
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 {
4077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4078 }
4079 {
4080 if (temp9)
4081 delete arg9;
4082 }
4083 return resultobj;
4084fail:
4085 {
4086 if (temp9)
4087 delete arg9;
4088 }
4089 return NULL;
d55e5bfc
RD
4090}
4091
4092
1bd55598
RD
4093SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *resultobj = 0;
4095 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4096 wxBitmap result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 PyObject *swig_obj[1] ;
4100
4101 if (!args) SWIG_fail;
4102 swig_obj[0] = args;
4103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4104 if (!SWIG_IsOK(res1)) {
4105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4106 }
4107 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (arg1)->GetBitmapLabel();
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4115 return resultobj;
4116fail:
4117 return NULL;
d55e5bfc
RD
4118}
4119
4120
1bd55598
RD
4121SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4124 wxBitmap result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 PyObject *swig_obj[1] ;
4128
4129 if (!args) SWIG_fail;
4130 swig_obj[0] = args;
4131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4134 }
4135 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (arg1)->GetBitmapDisabled();
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4143 return resultobj;
4144fail:
4145 return NULL;
d55e5bfc
RD
4146}
4147
4148
1bd55598
RD
4149SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4150 PyObject *resultobj = 0;
4151 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4152 wxBitmap result;
4153 void *argp1 = 0 ;
4154 int res1 = 0 ;
4155 PyObject *swig_obj[1] ;
4156
4157 if (!args) SWIG_fail;
4158 swig_obj[0] = args;
4159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4162 }
4163 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (arg1)->GetBitmapFocus();
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4171 return resultobj;
4172fail:
4173 return NULL;
d55e5bfc
RD
4174}
4175
4176
1bd55598
RD
4177SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4178 PyObject *resultobj = 0;
4179 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4180 wxBitmap result;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 PyObject *swig_obj[1] ;
4184
4185 if (!args) SWIG_fail;
4186 swig_obj[0] = args;
4187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4188 if (!SWIG_IsOK(res1)) {
4189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4190 }
4191 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 result = (arg1)->GetBitmapSelected();
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4199 return resultobj;
4200fail:
4201 return NULL;
d55e5bfc
RD
4202}
4203
4204
1bd55598
RD
4205SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4206 PyObject *resultobj = 0;
4207 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4208 wxBitmap result;
4209 void *argp1 = 0 ;
4210 int res1 = 0 ;
4211 PyObject *swig_obj[1] ;
4212
4213 if (!args) SWIG_fail;
4214 swig_obj[0] = args;
4215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4216 if (!SWIG_IsOK(res1)) {
4217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4218 }
4219 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4220 {
4221 PyThreadState* __tstate = wxPyBeginAllowThreads();
4222 result = (arg1)->GetBitmapHover();
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4227 return resultobj;
4228fail:
4229 return NULL;
4230}
4231
4232
4233SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4234 PyObject *resultobj = 0;
4235 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4236 wxBitmap *arg2 = 0 ;
4237 void *argp1 = 0 ;
4238 int res1 = 0 ;
4239 void *argp2 = 0 ;
4240 int res2 = 0 ;
4241 PyObject * obj0 = 0 ;
4242 PyObject * obj1 = 0 ;
4243 char * kwnames[] = {
4244 (char *) "self",(char *) "bitmap", NULL
4245 };
4246
4247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4249 if (!SWIG_IsOK(res1)) {
4250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4251 }
4252 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4254 if (!SWIG_IsOK(res2)) {
4255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4256 }
4257 if (!argp2) {
4258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4259 }
4260 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = SWIG_Py_Void();
4268 return resultobj;
4269fail:
4270 return NULL;
4271}
4272
4273
4274SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj = 0;
4276 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4277 wxBitmap *arg2 = 0 ;
4278 void *argp1 = 0 ;
4279 int res1 = 0 ;
4280 void *argp2 = 0 ;
4281 int res2 = 0 ;
4282 PyObject * obj0 = 0 ;
4283 PyObject * obj1 = 0 ;
4284 char * kwnames[] = {
4285 (char *) "self",(char *) "bitmap", NULL
4286 };
4287
4288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4290 if (!SWIG_IsOK(res1)) {
4291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4292 }
4293 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4295 if (!SWIG_IsOK(res2)) {
4296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4297 }
4298 if (!argp2) {
4299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4300 }
4301 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4302 {
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
4304 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 resultobj = SWIG_Py_Void();
4309 return resultobj;
4310fail:
4311 return NULL;
4312}
4313
4314
4315SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj = 0;
4317 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4318 wxBitmap *arg2 = 0 ;
4319 void *argp1 = 0 ;
4320 int res1 = 0 ;
4321 void *argp2 = 0 ;
4322 int res2 = 0 ;
4323 PyObject * obj0 = 0 ;
4324 PyObject * obj1 = 0 ;
4325 char * kwnames[] = {
4326 (char *) "self",(char *) "bitmap", NULL
4327 };
4328
4329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4331 if (!SWIG_IsOK(res1)) {
4332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4333 }
4334 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4336 if (!SWIG_IsOK(res2)) {
4337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4338 }
4339 if (!argp2) {
4340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4341 }
4342 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_Py_Void();
4350 return resultobj;
4351fail:
4352 return NULL;
4353}
4354
4355
4356SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj = 0;
4358 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4359 wxBitmap *arg2 = 0 ;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 void *argp2 = 0 ;
4363 int res2 = 0 ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 char * kwnames[] = {
4367 (char *) "self",(char *) "bitmap", NULL
4368 };
4369
4370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4372 if (!SWIG_IsOK(res1)) {
4373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4374 }
4375 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4377 if (!SWIG_IsOK(res2)) {
4378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4379 }
4380 if (!argp2) {
4381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4382 }
4383 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4384 {
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 resultobj = SWIG_Py_Void();
4391 return resultobj;
4392fail:
4393 return NULL;
4394}
4395
4396
4397SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4398 PyObject *resultobj = 0;
4399 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4400 wxBitmap *arg2 = 0 ;
4401 void *argp1 = 0 ;
4402 int res1 = 0 ;
4403 void *argp2 = 0 ;
4404 int res2 = 0 ;
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 char * kwnames[] = {
4408 (char *) "self",(char *) "hover", NULL
4409 };
4410
4411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4415 }
4416 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4418 if (!SWIG_IsOK(res2)) {
4419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4420 }
4421 if (!argp2) {
4422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4423 }
4424 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_Py_Void();
4432 return resultobj;
4433fail:
4434 return NULL;
4435}
4436
4437
4438SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4439 PyObject *resultobj = 0;
4440 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4441 int arg2 ;
4442 int arg3 ;
4443 void *argp1 = 0 ;
4444 int res1 = 0 ;
4445 int val2 ;
4446 int ecode2 = 0 ;
4447 int val3 ;
4448 int ecode3 = 0 ;
4449 PyObject * obj0 = 0 ;
4450 PyObject * obj1 = 0 ;
4451 PyObject * obj2 = 0 ;
4452 char * kwnames[] = {
4453 (char *) "self",(char *) "x",(char *) "y", NULL
4454 };
4455
4456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4458 if (!SWIG_IsOK(res1)) {
4459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4460 }
4461 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4462 ecode2 = SWIG_AsVal_int(obj1, &val2);
4463 if (!SWIG_IsOK(ecode2)) {
4464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4465 }
4466 arg2 = static_cast< int >(val2);
4467 ecode3 = SWIG_AsVal_int(obj2, &val3);
4468 if (!SWIG_IsOK(ecode3)) {
4469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4470 }
4471 arg3 = static_cast< int >(val3);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 (arg1)->SetMargins(arg2,arg3);
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_Py_Void();
4479 return resultobj;
4480fail:
4481 return NULL;
d55e5bfc
RD
4482}
4483
4484
1bd55598
RD
4485SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *resultobj = 0;
4487 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4488 int result;
4489 void *argp1 = 0 ;
4490 int res1 = 0 ;
4491 PyObject *swig_obj[1] ;
4492
4493 if (!args) SWIG_fail;
4494 swig_obj[0] = args;
4495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4498 }
4499 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_From_int(static_cast< int >(result));
4507 return resultobj;
4508fail:
4509 return NULL;
d55e5bfc
RD
4510}
4511
4512
1bd55598
RD
4513SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4514 PyObject *resultobj = 0;
4515 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4516 int result;
4517 void *argp1 = 0 ;
4518 int res1 = 0 ;
4519 PyObject *swig_obj[1] ;
4520
4521 if (!args) SWIG_fail;
4522 swig_obj[0] = args;
4523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4524 if (!SWIG_IsOK(res1)) {
4525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4526 }
4527 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4531 wxPyEndAllowThreads(__tstate);
4532 if (PyErr_Occurred()) SWIG_fail;
4533 }
4534 resultobj = SWIG_From_int(static_cast< int >(result));
4535 return resultobj;
4536fail:
4537 return NULL;
b1fcee84
RD
4538}
4539
4540
1bd55598
RD
4541SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4542 PyObject *obj;
4543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4544 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4545 return SWIG_Py_Void();
d55e5bfc
RD
4546}
4547
1bd55598
RD
4548SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4549 return SWIG_Python_InitShadowInstance(args);
4550}
d55e5bfc 4551
1bd55598
RD
4552SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4553 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4554 return 1;
d55e5bfc
RD
4555}
4556
4557
1bd55598
RD
4558SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4559 PyObject *pyobj = 0;
4560
4561 {
4562#if wxUSE_UNICODE
4563 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4564#else
4565 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4566#endif
4567 }
4568 return pyobj;
4569}
4570
4571
4572SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj = 0;
4574 wxWindow *arg1 = (wxWindow *) 0 ;
4575 int arg2 = (int) -1 ;
4576 wxString const &arg3_defvalue = wxPyEmptyString ;
4577 wxString *arg3 = (wxString *) &arg3_defvalue ;
4578 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4579 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4580 wxSize const &arg5_defvalue = wxDefaultSize ;
4581 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4582 long arg6 = (long) 0 ;
4583 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4584 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4585 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4586 wxString *arg8 = (wxString *) &arg8_defvalue ;
4587 wxCheckBox *result = 0 ;
4588 void *argp1 = 0 ;
4589 int res1 = 0 ;
4590 int val2 ;
4591 int ecode2 = 0 ;
4592 bool temp3 = false ;
4593 wxPoint temp4 ;
4594 wxSize temp5 ;
4595 long val6 ;
4596 int ecode6 = 0 ;
4597 void *argp7 = 0 ;
4598 int res7 = 0 ;
4599 bool temp8 = false ;
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 PyObject * obj2 = 0 ;
4603 PyObject * obj3 = 0 ;
4604 PyObject * obj4 = 0 ;
4605 PyObject * obj5 = 0 ;
4606 PyObject * obj6 = 0 ;
4607 PyObject * obj7 = 0 ;
4608 char * kwnames[] = {
4609 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4610 };
4611
4612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4614 if (!SWIG_IsOK(res1)) {
4615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4616 }
4617 arg1 = reinterpret_cast< wxWindow * >(argp1);
4618 if (obj1) {
4619 ecode2 = SWIG_AsVal_int(obj1, &val2);
4620 if (!SWIG_IsOK(ecode2)) {
4621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4622 }
4623 arg2 = static_cast< int >(val2);
4624 }
4625 if (obj2) {
d55e5bfc 4626 {
1bd55598
RD
4627 arg3 = wxString_in_helper(obj2);
4628 if (arg3 == NULL) SWIG_fail;
4629 temp3 = true;
d55e5bfc 4630 }
1bd55598
RD
4631 }
4632 if (obj3) {
4633 {
4634 arg4 = &temp4;
4635 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4636 }
1bd55598
RD
4637 }
4638 if (obj4) {
d55e5bfc 4639 {
1bd55598
RD
4640 arg5 = &temp5;
4641 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4642 }
1bd55598
RD
4643 }
4644 if (obj5) {
4645 ecode6 = SWIG_AsVal_long(obj5, &val6);
4646 if (!SWIG_IsOK(ecode6)) {
4647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4648 }
4649 arg6 = static_cast< long >(val6);
4650 }
4651 if (obj6) {
4652 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4653 if (!SWIG_IsOK(res7)) {
4654 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4655 }
1bd55598
RD
4656 if (!argp7) {
4657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4658 }
4659 arg7 = reinterpret_cast< wxValidator * >(argp7);
4660 }
4661 if (obj7) {
b1fcee84 4662 {
1bd55598
RD
4663 arg8 = wxString_in_helper(obj7);
4664 if (arg8 == NULL) SWIG_fail;
4665 temp8 = true;
b1fcee84 4666 }
1bd55598
RD
4667 }
4668 {
4669 if (!wxPyCheckForApp()) SWIG_fail;
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4676 {
4677 if (temp3)
4678 delete arg3;
4679 }
4680 {
4681 if (temp8)
4682 delete arg8;
4683 }
4684 return resultobj;
4685fail:
4686 {
4687 if (temp3)
4688 delete arg3;
4689 }
4690 {
4691 if (temp8)
4692 delete arg8;
4693 }
4694 return NULL;
b1fcee84
RD
4695}
4696
4697
1bd55598
RD
4698SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4699 PyObject *resultobj = 0;
4700 wxCheckBox *result = 0 ;
4701
4702 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4703 {
4704 if (!wxPyCheckForApp()) SWIG_fail;
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 result = (wxCheckBox *)new wxCheckBox();
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4711 return resultobj;
4712fail:
4713 return NULL;
4714}
4715
4716
4717SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj = 0;
4719 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4720 wxWindow *arg2 = (wxWindow *) 0 ;
4721 int arg3 = (int) -1 ;
4722 wxString const &arg4_defvalue = wxPyEmptyString ;
4723 wxString *arg4 = (wxString *) &arg4_defvalue ;
4724 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4725 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4726 wxSize const &arg6_defvalue = wxDefaultSize ;
4727 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4728 long arg7 = (long) 0 ;
4729 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4730 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4731 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4732 wxString *arg9 = (wxString *) &arg9_defvalue ;
4733 bool result;
4734 void *argp1 = 0 ;
4735 int res1 = 0 ;
4736 void *argp2 = 0 ;
4737 int res2 = 0 ;
4738 int val3 ;
4739 int ecode3 = 0 ;
4740 bool temp4 = false ;
4741 wxPoint temp5 ;
4742 wxSize temp6 ;
4743 long val7 ;
4744 int ecode7 = 0 ;
4745 void *argp8 = 0 ;
4746 int res8 = 0 ;
4747 bool temp9 = false ;
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 PyObject * obj2 = 0 ;
4751 PyObject * obj3 = 0 ;
4752 PyObject * obj4 = 0 ;
4753 PyObject * obj5 = 0 ;
4754 PyObject * obj6 = 0 ;
4755 PyObject * obj7 = 0 ;
4756 PyObject * obj8 = 0 ;
4757 char * kwnames[] = {
4758 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4759 };
4760
4761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4763 if (!SWIG_IsOK(res1)) {
4764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4765 }
4766 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4768 if (!SWIG_IsOK(res2)) {
4769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4770 }
4771 arg2 = reinterpret_cast< wxWindow * >(argp2);
4772 if (obj2) {
4773 ecode3 = SWIG_AsVal_int(obj2, &val3);
4774 if (!SWIG_IsOK(ecode3)) {
4775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4776 }
4777 arg3 = static_cast< int >(val3);
4778 }
4779 if (obj3) {
36ed4f51 4780 {
1bd55598
RD
4781 arg4 = wxString_in_helper(obj3);
4782 if (arg4 == NULL) SWIG_fail;
4783 temp4 = true;
36ed4f51 4784 }
1bd55598
RD
4785 }
4786 if (obj4) {
36ed4f51 4787 {
1bd55598
RD
4788 arg5 = &temp5;
4789 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4790 }
1bd55598
RD
4791 }
4792 if (obj5) {
d55e5bfc 4793 {
1bd55598
RD
4794 arg6 = &temp6;
4795 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4796 }
1bd55598
RD
4797 }
4798 if (obj6) {
4799 ecode7 = SWIG_AsVal_long(obj6, &val7);
4800 if (!SWIG_IsOK(ecode7)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4802 }
4803 arg7 = static_cast< long >(val7);
4804 }
4805 if (obj7) {
4806 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4807 if (!SWIG_IsOK(res8)) {
4808 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4809 }
1bd55598
RD
4810 if (!argp8) {
4811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4812 }
4813 arg8 = reinterpret_cast< wxValidator * >(argp8);
4814 }
4815 if (obj8) {
36ed4f51 4816 {
1bd55598
RD
4817 arg9 = wxString_in_helper(obj8);
4818 if (arg9 == NULL) SWIG_fail;
4819 temp9 = true;
36ed4f51 4820 }
1bd55598
RD
4821 }
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 {
4829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4830 }
4831 {
4832 if (temp4)
4833 delete arg4;
4834 }
4835 {
4836 if (temp9)
4837 delete arg9;
4838 }
4839 return resultobj;
4840fail:
4841 {
4842 if (temp4)
4843 delete arg4;
4844 }
4845 {
4846 if (temp9)
4847 delete arg9;
4848 }
4849 return NULL;
d55e5bfc
RD
4850}
4851
4852
1bd55598
RD
4853SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4854 PyObject *resultobj = 0;
4855 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4856 bool result;
4857 void *argp1 = 0 ;
4858 int res1 = 0 ;
4859 PyObject *swig_obj[1] ;
4860
4861 if (!args) SWIG_fail;
4862 swig_obj[0] = args;
4863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4864 if (!SWIG_IsOK(res1)) {
4865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4866 }
4867 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (bool)(arg1)->GetValue();
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 {
4875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4876 }
4877 return resultobj;
4878fail:
4879 return NULL;
d55e5bfc
RD
4880}
4881
4882
1bd55598
RD
4883SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4884 PyObject *resultobj = 0;
4885 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4886 bool result;
4887 void *argp1 = 0 ;
4888 int res1 = 0 ;
4889 PyObject *swig_obj[1] ;
4890
4891 if (!args) SWIG_fail;
4892 swig_obj[0] = args;
4893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4894 if (!SWIG_IsOK(res1)) {
4895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4896 }
4897 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 result = (bool)(arg1)->IsChecked();
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 {
4905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4906 }
4907 return resultobj;
4908fail:
4909 return NULL;
4910}
4911
4912
4913SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj = 0;
4915 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4916 bool arg2 ;
4917 void *argp1 = 0 ;
4918 int res1 = 0 ;
4919 bool val2 ;
4920 int ecode2 = 0 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char * kwnames[] = {
4924 (char *) "self",(char *) "state", NULL
4925 };
4926
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4931 }
4932 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4933 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4934 if (!SWIG_IsOK(ecode2)) {
4935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4936 }
4937 arg2 = static_cast< bool >(val2);
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 (arg1)->SetValue(arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_Py_Void();
4945 return resultobj;
4946fail:
4947 return NULL;
d55e5bfc 4948}
1bd55598
RD
4949
4950
4951SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4952 PyObject *resultobj = 0;
4953 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4954 wxCheckBoxState result;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 PyObject *swig_obj[1] ;
4958
4959 if (!args) SWIG_fail;
4960 swig_obj[0] = args;
4961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4964 }
4965 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_From_int(static_cast< int >(result));
4973 return resultobj;
4974fail:
4975 return NULL;
4976}
4977
4978
4979SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4980 PyObject *resultobj = 0;
4981 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4982 wxCheckBoxState arg2 ;
4983 void *argp1 = 0 ;
4984 int res1 = 0 ;
4985 int val2 ;
4986 int ecode2 = 0 ;
4987 PyObject * obj0 = 0 ;
4988 PyObject * obj1 = 0 ;
4989 char * kwnames[] = {
4990 (char *) "self",(char *) "state", NULL
4991 };
4992
4993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4995 if (!SWIG_IsOK(res1)) {
4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4997 }
4998 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4999 ecode2 = SWIG_AsVal_int(obj1, &val2);
5000 if (!SWIG_IsOK(ecode2)) {
5001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5002 }
5003 arg2 = static_cast< wxCheckBoxState >(val2);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 (arg1)->Set3StateValue(arg2);
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_Py_Void();
5011 return resultobj;
5012fail:
5013 return NULL;
d55e5bfc
RD
5014}
5015
5016
1bd55598
RD
5017SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5020 bool result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5030 }
5031 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042fail:
5043 return NULL;
d55e5bfc
RD
5044}
5045
5046
1bd55598
RD
5047SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *resultobj = 0;
5049 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5050 bool result;
5051 void *argp1 = 0 ;
5052 int res1 = 0 ;
5053 PyObject *swig_obj[1] ;
5054
5055 if (!args) SWIG_fail;
5056 swig_obj[0] = args;
5057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5058 if (!SWIG_IsOK(res1)) {
5059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5060 }
5061 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 {
5069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5070 }
5071 return resultobj;
5072fail:
5073 return NULL;
d55e5bfc
RD
5074}
5075
5076
1bd55598
RD
5077SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj = 0;
5079 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5080 SwigValueWrapper<wxVisualAttributes > result;
5081 int val1 ;
5082 int ecode1 = 0 ;
5083 PyObject * obj0 = 0 ;
5084 char * kwnames[] = {
5085 (char *) "variant", NULL
5086 };
5087
5088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5089 if (obj0) {
5090 ecode1 = SWIG_AsVal_int(obj0, &val1);
5091 if (!SWIG_IsOK(ecode1)) {
5092 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5093 }
5094 arg1 = static_cast< wxWindowVariant >(val1);
5095 }
5096 {
5097 if (!wxPyCheckForApp()) SWIG_fail;
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5104 return resultobj;
5105fail:
5106 return NULL;
d55e5bfc
RD
5107}
5108
5109
1bd55598
RD
5110SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5111 PyObject *obj;
5112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5113 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5114 return SWIG_Py_Void();
d55e5bfc
RD
5115}
5116
1bd55598
RD
5117SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5118 return SWIG_Python_InitShadowInstance(args);
5119}
d55e5bfc 5120
1bd55598
RD
5121SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5122 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5123 return 1;
d55e5bfc
RD
5124}
5125
5126
1bd55598
RD
5127SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5128 PyObject *pyobj = 0;
5129
5130 {
5131#if wxUSE_UNICODE
5132 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5133#else
5134 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5135#endif
5136 }
5137 return pyobj;
5138}
5139
5140
5141SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5142 PyObject *resultobj = 0;
5143 wxWindow *arg1 = (wxWindow *) 0 ;
5144 int arg2 = (int) -1 ;
5145 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5146 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5147 wxSize const &arg4_defvalue = wxDefaultSize ;
5148 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5149 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5150 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5151 long arg6 = (long) 0 ;
5152 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5153 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5154 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5155 wxString *arg8 = (wxString *) &arg8_defvalue ;
5156 wxChoice *result = 0 ;
5157 void *argp1 = 0 ;
5158 int res1 = 0 ;
5159 int val2 ;
5160 int ecode2 = 0 ;
5161 wxPoint temp3 ;
5162 wxSize temp4 ;
5163 bool temp5 = false ;
5164 long val6 ;
5165 int ecode6 = 0 ;
5166 void *argp7 = 0 ;
5167 int res7 = 0 ;
5168 bool temp8 = false ;
5169 PyObject * obj0 = 0 ;
5170 PyObject * obj1 = 0 ;
5171 PyObject * obj2 = 0 ;
5172 PyObject * obj3 = 0 ;
5173 PyObject * obj4 = 0 ;
5174 PyObject * obj5 = 0 ;
5175 PyObject * obj6 = 0 ;
5176 PyObject * obj7 = 0 ;
5177 char * kwnames[] = {
5178 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5179 };
5180
5181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5183 if (!SWIG_IsOK(res1)) {
5184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5185 }
5186 arg1 = reinterpret_cast< wxWindow * >(argp1);
5187 if (obj1) {
5188 ecode2 = SWIG_AsVal_int(obj1, &val2);
5189 if (!SWIG_IsOK(ecode2)) {
5190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5191 }
5192 arg2 = static_cast< int >(val2);
5193 }
5194 if (obj2) {
36ed4f51 5195 {
1bd55598
RD
5196 arg3 = &temp3;
5197 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5198 }
1bd55598
RD
5199 }
5200 if (obj3) {
d55e5bfc 5201 {
1bd55598
RD
5202 arg4 = &temp4;
5203 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5204 }
1bd55598
RD
5205 }
5206 if (obj4) {
d55e5bfc 5207 {
1bd55598
RD
5208 if (! PySequence_Check(obj4)) {
5209 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5210 SWIG_fail;
5211 }
5212 arg5 = new wxArrayString;
5213 temp5 = true;
5214 int i, len=PySequence_Length(obj4);
5215 for (i=0; i<len; i++) {
5216 PyObject* item = PySequence_GetItem(obj4, i);
5217 wxString* s = wxString_in_helper(item);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 arg5->Add(*s);
5220 delete s;
5221 Py_DECREF(item);
5222 }
d55e5bfc 5223 }
1bd55598
RD
5224 }
5225 if (obj5) {
5226 ecode6 = SWIG_AsVal_long(obj5, &val6);
5227 if (!SWIG_IsOK(ecode6)) {
5228 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5229 }
5230 arg6 = static_cast< long >(val6);
5231 }
5232 if (obj6) {
5233 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5234 if (!SWIG_IsOK(res7)) {
5235 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5236 }
1bd55598
RD
5237 if (!argp7) {
5238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5239 }
5240 arg7 = reinterpret_cast< wxValidator * >(argp7);
5241 }
5242 if (obj7) {
d55e5bfc 5243 {
1bd55598
RD
5244 arg8 = wxString_in_helper(obj7);
5245 if (arg8 == NULL) SWIG_fail;
5246 temp8 = true;
d55e5bfc 5247 }
1bd55598
RD
5248 }
5249 {
5250 if (!wxPyCheckForApp()) SWIG_fail;
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5257 {
5258 if (temp5) delete arg5;
5259 }
5260 {
5261 if (temp8)
5262 delete arg8;
5263 }
5264 return resultobj;
5265fail:
5266 {
5267 if (temp5) delete arg5;
5268 }
5269 {
5270 if (temp8)
5271 delete arg8;
5272 }
5273 return NULL;
d55e5bfc
RD
5274}
5275
5276
1bd55598
RD
5277SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *resultobj = 0;
5279 wxChoice *result = 0 ;
5280
5281 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5282 {
5283 if (!wxPyCheckForApp()) SWIG_fail;
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 result = (wxChoice *)new wxChoice();
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5290 return resultobj;
5291fail:
5292 return NULL;
5293}
5294
5295
5296SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5297 PyObject *resultobj = 0;
5298 wxChoice *arg1 = (wxChoice *) 0 ;
5299 wxWindow *arg2 = (wxWindow *) 0 ;
5300 int arg3 = (int) -1 ;
5301 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5302 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5303 wxSize const &arg5_defvalue = wxDefaultSize ;
5304 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5305 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5306 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5307 long arg7 = (long) 0 ;
5308 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5309 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5310 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5311 wxString *arg9 = (wxString *) &arg9_defvalue ;
5312 bool result;
5313 void *argp1 = 0 ;
5314 int res1 = 0 ;
5315 void *argp2 = 0 ;
5316 int res2 = 0 ;
5317 int val3 ;
5318 int ecode3 = 0 ;
5319 wxPoint temp4 ;
5320 wxSize temp5 ;
5321 bool temp6 = false ;
5322 long val7 ;
5323 int ecode7 = 0 ;
5324 void *argp8 = 0 ;
5325 int res8 = 0 ;
5326 bool temp9 = false ;
5327 PyObject * obj0 = 0 ;
5328 PyObject * obj1 = 0 ;
5329 PyObject * obj2 = 0 ;
5330 PyObject * obj3 = 0 ;
5331 PyObject * obj4 = 0 ;
5332 PyObject * obj5 = 0 ;
5333 PyObject * obj6 = 0 ;
5334 PyObject * obj7 = 0 ;
5335 PyObject * obj8 = 0 ;
5336 char * kwnames[] = {
5337 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5338 };
5339
5340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5342 if (!SWIG_IsOK(res1)) {
5343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5344 }
5345 arg1 = reinterpret_cast< wxChoice * >(argp1);
5346 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5347 if (!SWIG_IsOK(res2)) {
5348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5349 }
5350 arg2 = reinterpret_cast< wxWindow * >(argp2);
5351 if (obj2) {
5352 ecode3 = SWIG_AsVal_int(obj2, &val3);
5353 if (!SWIG_IsOK(ecode3)) {
5354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5355 }
5356 arg3 = static_cast< int >(val3);
5357 }
5358 if (obj3) {
d55e5bfc 5359 {
1bd55598
RD
5360 arg4 = &temp4;
5361 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5362 }
1bd55598
RD
5363 }
5364 if (obj4) {
d55e5bfc 5365 {
1bd55598
RD
5366 arg5 = &temp5;
5367 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5368 }
1bd55598
RD
5369 }
5370 if (obj5) {
d55e5bfc 5371 {
1bd55598
RD
5372 if (! PySequence_Check(obj5)) {
5373 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5374 SWIG_fail;
5375 }
5376 arg6 = new wxArrayString;
5377 temp6 = true;
5378 int i, len=PySequence_Length(obj5);
5379 for (i=0; i<len; i++) {
5380 PyObject* item = PySequence_GetItem(obj5, i);
5381 wxString* s = wxString_in_helper(item);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 arg6->Add(*s);
5384 delete s;
5385 Py_DECREF(item);
5386 }
5387 }
5388 }
5389 if (obj6) {
5390 ecode7 = SWIG_AsVal_long(obj6, &val7);
5391 if (!SWIG_IsOK(ecode7)) {
5392 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5393 }
5394 arg7 = static_cast< long >(val7);
5395 }
5396 if (obj7) {
5397 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5398 if (!SWIG_IsOK(res8)) {
5399 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5400 }
1bd55598
RD
5401 if (!argp8) {
5402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5403 }
5404 arg8 = reinterpret_cast< wxValidator * >(argp8);
5405 }
5406 if (obj8) {
d55e5bfc 5407 {
1bd55598
RD
5408 arg9 = wxString_in_helper(obj8);
5409 if (arg9 == NULL) SWIG_fail;
5410 temp9 = true;
d55e5bfc 5411 }
1bd55598
RD
5412 }
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
5420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5421 }
5422 {
5423 if (temp6) delete arg6;
5424 }
5425 {
5426 if (temp9)
5427 delete arg9;
5428 }
5429 return resultobj;
5430fail:
5431 {
5432 if (temp6) delete arg6;
5433 }
5434 {
5435 if (temp9)
5436 delete arg9;
5437 }
5438 return NULL;
d55e5bfc
RD
5439}
5440
5441
1bd55598
RD
5442SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5443 PyObject *resultobj = 0;
5444 wxChoice *arg1 = (wxChoice *) 0 ;
5445 int result;
5446 void *argp1 = 0 ;
5447 int res1 = 0 ;
5448 PyObject *swig_obj[1] ;
5449
5450 if (!args) SWIG_fail;
5451 swig_obj[0] = args;
5452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5453 if (!SWIG_IsOK(res1)) {
5454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5455 }
5456 arg1 = reinterpret_cast< wxChoice * >(argp1);
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 resultobj = SWIG_From_int(static_cast< int >(result));
5464 return resultobj;
5465fail:
5466 return NULL;
5467}
5468
5469
5470SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj = 0;
5472 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5473 SwigValueWrapper<wxVisualAttributes > result;
5474 int val1 ;
5475 int ecode1 = 0 ;
5476 PyObject * obj0 = 0 ;
5477 char * kwnames[] = {
5478 (char *) "variant", NULL
5479 };
5480
5481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5482 if (obj0) {
5483 ecode1 = SWIG_AsVal_int(obj0, &val1);
5484 if (!SWIG_IsOK(ecode1)) {
5485 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5486 }
5487 arg1 = static_cast< wxWindowVariant >(val1);
5488 }
5489 {
5490 if (!wxPyCheckForApp()) SWIG_fail;
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = wxChoice::GetClassDefaultAttributes(arg1);
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5497 return resultobj;
5498fail:
5499 return NULL;
f20a2e1f
RD
5500}
5501
5502
1bd55598
RD
5503SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5504 PyObject *obj;
5505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5506 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5507 return SWIG_Py_Void();
d55e5bfc 5508}
1bd55598
RD
5509
5510SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5511 return SWIG_Python_InitShadowInstance(args);
5512}
5513
5514SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5515 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5516 return 1;
d55e5bfc
RD
5517}
5518
5519
1bd55598
RD
5520SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5521 PyObject *pyobj = 0;
5522
5523 {
d55e5bfc 5524#if wxUSE_UNICODE
1bd55598 5525 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5526#else
1bd55598 5527 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5528#endif
1bd55598
RD
5529 }
5530 return pyobj;
5531}
5532
5533
5534SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj = 0;
5536 wxWindow *arg1 = (wxWindow *) 0 ;
5537 int arg2 = (int) -1 ;
5538 wxString const &arg3_defvalue = wxPyEmptyString ;
5539 wxString *arg3 = (wxString *) &arg3_defvalue ;
5540 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5541 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5542 wxSize const &arg5_defvalue = wxDefaultSize ;
5543 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5544 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5545 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5546 long arg7 = (long) 0 ;
5547 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5548 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5549 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5550 wxString *arg9 = (wxString *) &arg9_defvalue ;
5551 wxComboBox *result = 0 ;
5552 void *argp1 = 0 ;
5553 int res1 = 0 ;
5554 int val2 ;
5555 int ecode2 = 0 ;
5556 bool temp3 = false ;
5557 wxPoint temp4 ;
5558 wxSize temp5 ;
5559 bool temp6 = false ;
5560 long val7 ;
5561 int ecode7 = 0 ;
5562 void *argp8 = 0 ;
5563 int res8 = 0 ;
5564 bool temp9 = false ;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 PyObject * obj2 = 0 ;
5568 PyObject * obj3 = 0 ;
5569 PyObject * obj4 = 0 ;
5570 PyObject * obj5 = 0 ;
5571 PyObject * obj6 = 0 ;
5572 PyObject * obj7 = 0 ;
5573 PyObject * obj8 = 0 ;
5574 char * kwnames[] = {
5575 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5576 };
5577
5578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5582 }
5583 arg1 = reinterpret_cast< wxWindow * >(argp1);
5584 if (obj1) {
5585 ecode2 = SWIG_AsVal_int(obj1, &val2);
5586 if (!SWIG_IsOK(ecode2)) {
5587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5588 }
5589 arg2 = static_cast< int >(val2);
5590 }
5591 if (obj2) {
d55e5bfc 5592 {
1bd55598
RD
5593 arg3 = wxString_in_helper(obj2);
5594 if (arg3 == NULL) SWIG_fail;
5595 temp3 = true;
d55e5bfc 5596 }
1bd55598
RD
5597 }
5598 if (obj3) {
d55e5bfc 5599 {
1bd55598
RD
5600 arg4 = &temp4;
5601 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5602 }
1bd55598
RD
5603 }
5604 if (obj4) {
d55e5bfc 5605 {
1bd55598
RD
5606 arg5 = &temp5;
5607 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5608 }
1bd55598
RD
5609 }
5610 if (obj5) {
d55e5bfc 5611 {
1bd55598
RD
5612 if (! PySequence_Check(obj5)) {
5613 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5614 SWIG_fail;
5615 }
5616 arg6 = new wxArrayString;
5617 temp6 = true;
5618 int i, len=PySequence_Length(obj5);
5619 for (i=0; i<len; i++) {
5620 PyObject* item = PySequence_GetItem(obj5, i);
5621 wxString* s = wxString_in_helper(item);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 arg6->Add(*s);
5624 delete s;
5625 Py_DECREF(item);
5626 }
d55e5bfc 5627 }
1bd55598
RD
5628 }
5629 if (obj6) {
5630 ecode7 = SWIG_AsVal_long(obj6, &val7);
5631 if (!SWIG_IsOK(ecode7)) {
5632 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5633 }
5634 arg7 = static_cast< long >(val7);
5635 }
5636 if (obj7) {
5637 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5638 if (!SWIG_IsOK(res8)) {
5639 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5640 }
5641 if (!argp8) {
5642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5643 }
5644 arg8 = reinterpret_cast< wxValidator * >(argp8);
5645 }
5646 if (obj8) {
d55e5bfc 5647 {
1bd55598
RD
5648 arg9 = wxString_in_helper(obj8);
5649 if (arg9 == NULL) SWIG_fail;
5650 temp9 = true;
d55e5bfc 5651 }
1bd55598
RD
5652 }
5653 {
5654 if (!wxPyCheckForApp()) SWIG_fail;
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 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);
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5661 {
5662 if (temp3)
5663 delete arg3;
5664 }
5665 {
5666 if (temp6) delete arg6;
5667 }
5668 {
5669 if (temp9)
5670 delete arg9;
5671 }
5672 return resultobj;
5673fail:
5674 {
5675 if (temp3)
5676 delete arg3;
5677 }
5678 {
5679 if (temp6) delete arg6;
5680 }
5681 {
5682 if (temp9)
5683 delete arg9;
5684 }
5685 return NULL;
d55e5bfc
RD
5686}
5687
5688
1bd55598
RD
5689SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5690 PyObject *resultobj = 0;
5691 wxComboBox *result = 0 ;
5692
5693 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5694 {
5695 if (!wxPyCheckForApp()) SWIG_fail;
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (wxComboBox *)new wxComboBox();
5698 wxPyEndAllowThreads(__tstate);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 }
5701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5702 return resultobj;
5703fail:
5704 return NULL;
5705}
5706
5707
5708SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5709 PyObject *resultobj = 0;
5710 wxComboBox *arg1 = (wxComboBox *) 0 ;
5711 wxWindow *arg2 = (wxWindow *) 0 ;
5712 int arg3 = (int) -1 ;
5713 wxString const &arg4_defvalue = wxPyEmptyString ;
5714 wxString *arg4 = (wxString *) &arg4_defvalue ;
5715 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5716 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5717 wxSize const &arg6_defvalue = wxDefaultSize ;
5718 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5719 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5720 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5721 long arg8 = (long) 0 ;
5722 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5723 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5724 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5725 wxString *arg10 = (wxString *) &arg10_defvalue ;
5726 bool result;
5727 void *argp1 = 0 ;
5728 int res1 = 0 ;
5729 void *argp2 = 0 ;
5730 int res2 = 0 ;
5731 int val3 ;
5732 int ecode3 = 0 ;
5733 bool temp4 = false ;
5734 wxPoint temp5 ;
5735 wxSize temp6 ;
5736 bool temp7 = false ;
5737 long val8 ;
5738 int ecode8 = 0 ;
5739 void *argp9 = 0 ;
5740 int res9 = 0 ;
5741 bool temp10 = false ;
5742 PyObject * obj0 = 0 ;
5743 PyObject * obj1 = 0 ;
5744 PyObject * obj2 = 0 ;
5745 PyObject * obj3 = 0 ;
5746 PyObject * obj4 = 0 ;
5747 PyObject * obj5 = 0 ;
5748 PyObject * obj6 = 0 ;
5749 PyObject * obj7 = 0 ;
5750 PyObject * obj8 = 0 ;
5751 PyObject * obj9 = 0 ;
5752 char * kwnames[] = {
5753 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5754 };
5755
5756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5758 if (!SWIG_IsOK(res1)) {
5759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5760 }
5761 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5763 if (!SWIG_IsOK(res2)) {
5764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5765 }
5766 arg2 = reinterpret_cast< wxWindow * >(argp2);
5767 if (obj2) {
5768 ecode3 = SWIG_AsVal_int(obj2, &val3);
5769 if (!SWIG_IsOK(ecode3)) {
5770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5771 }
5772 arg3 = static_cast< int >(val3);
5773 }
5774 if (obj3) {
d55e5bfc 5775 {
1bd55598
RD
5776 arg4 = wxString_in_helper(obj3);
5777 if (arg4 == NULL) SWIG_fail;
5778 temp4 = true;
d55e5bfc 5779 }
1bd55598
RD
5780 }
5781 if (obj4) {
d55e5bfc 5782 {
1bd55598
RD
5783 arg5 = &temp5;
5784 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5785 }
1bd55598
RD
5786 }
5787 if (obj5) {
d55e5bfc 5788 {
1bd55598
RD
5789 arg6 = &temp6;
5790 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5791 }
1bd55598
RD
5792 }
5793 if (obj6) {
d55e5bfc 5794 {
1bd55598
RD
5795 if (! PySequence_Check(obj6)) {
5796 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5797 SWIG_fail;
5798 }
5799 arg7 = new wxArrayString;
5800 temp7 = true;
5801 int i, len=PySequence_Length(obj6);
5802 for (i=0; i<len; i++) {
5803 PyObject* item = PySequence_GetItem(obj6, i);
5804 wxString* s = wxString_in_helper(item);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 arg7->Add(*s);
5807 delete s;
5808 Py_DECREF(item);
5809 }
d55e5bfc 5810 }
1bd55598
RD
5811 }
5812 if (obj7) {
5813 ecode8 = SWIG_AsVal_long(obj7, &val8);
5814 if (!SWIG_IsOK(ecode8)) {
5815 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5816 }
5817 arg8 = static_cast< long >(val8);
5818 }
5819 if (obj8) {
5820 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5821 if (!SWIG_IsOK(res9)) {
5822 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5823 }
1bd55598
RD
5824 if (!argp9) {
5825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5826 }
1bd55598
RD
5827 arg9 = reinterpret_cast< wxValidator * >(argp9);
5828 }
5829 if (obj9) {
d55e5bfc 5830 {
1bd55598
RD
5831 arg10 = wxString_in_helper(obj9);
5832 if (arg10 == NULL) SWIG_fail;
5833 temp10 = true;
d55e5bfc 5834 }
1bd55598
RD
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 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);
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5844 }
5845 {
5846 if (temp4)
5847 delete arg4;
5848 }
5849 {
5850 if (temp7) delete arg7;
5851 }
5852 {
5853 if (temp10)
5854 delete arg10;
5855 }
5856 return resultobj;
5857fail:
5858 {
5859 if (temp4)
5860 delete arg4;
5861 }
5862 {
5863 if (temp7) delete arg7;
5864 }
5865 {
5866 if (temp10)
5867 delete arg10;
5868 }
5869 return NULL;
d55e5bfc
RD
5870}
5871
5872
1bd55598
RD
5873SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxComboBox *arg1 = (wxComboBox *) 0 ;
5876 wxString result;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 PyObject *swig_obj[1] ;
5880
5881 if (!args) SWIG_fail;
5882 swig_obj[0] = args;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5886 }
5887 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = ((wxComboBox const *)arg1)->GetValue();
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 {
d55e5bfc 5895#if wxUSE_UNICODE
1bd55598 5896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5897#else
1bd55598 5898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5899#endif
1bd55598
RD
5900 }
5901 return resultobj;
5902fail:
5903 return NULL;
5904}
5905
5906
5907SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj = 0;
5909 wxComboBox *arg1 = (wxComboBox *) 0 ;
5910 wxString *arg2 = 0 ;
5911 void *argp1 = 0 ;
5912 int res1 = 0 ;
5913 bool temp2 = false ;
5914 PyObject * obj0 = 0 ;
5915 PyObject * obj1 = 0 ;
5916 char * kwnames[] = {
5917 (char *) "self",(char *) "value", NULL
5918 };
5919
5920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5922 if (!SWIG_IsOK(res1)) {
5923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5924 }
5925 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5926 {
5927 arg2 = wxString_in_helper(obj1);
5928 if (arg2 == NULL) SWIG_fail;
5929 temp2 = true;
5930 }
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 (arg1)->SetValue((wxString const &)*arg2);
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 resultobj = SWIG_Py_Void();
5938 {
5939 if (temp2)
5940 delete arg2;
5941 }
5942 return resultobj;
5943fail:
5944 {
5945 if (temp2)
5946 delete arg2;
5947 }
5948 return NULL;
d55e5bfc
RD
5949}
5950
5951
1bd55598
RD
5952SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5953 PyObject *resultobj = 0;
5954 wxComboBox *arg1 = (wxComboBox *) 0 ;
5955 void *argp1 = 0 ;
5956 int res1 = 0 ;
5957 PyObject *swig_obj[1] ;
5958
5959 if (!args) SWIG_fail;
5960 swig_obj[0] = args;
5961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5962 if (!SWIG_IsOK(res1)) {
5963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5964 }
5965 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 (arg1)->Copy();
5969 wxPyEndAllowThreads(__tstate);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 resultobj = SWIG_Py_Void();
5973 return resultobj;
5974fail:
5975 return NULL;
d55e5bfc
RD
5976}
5977
5978
1bd55598
RD
5979SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5980 PyObject *resultobj = 0;
5981 wxComboBox *arg1 = (wxComboBox *) 0 ;
5982 void *argp1 = 0 ;
5983 int res1 = 0 ;
5984 PyObject *swig_obj[1] ;
5985
5986 if (!args) SWIG_fail;
5987 swig_obj[0] = args;
5988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5989 if (!SWIG_IsOK(res1)) {
5990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5991 }
5992 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5993 {
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 (arg1)->Cut();
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_Py_Void();
6000 return resultobj;
6001fail:
6002 return NULL;
d55e5bfc
RD
6003}
6004
6005
1bd55598
RD
6006SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6007 PyObject *resultobj = 0;
6008 wxComboBox *arg1 = (wxComboBox *) 0 ;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 PyObject *swig_obj[1] ;
6012
6013 if (!args) SWIG_fail;
6014 swig_obj[0] = args;
6015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6016 if (!SWIG_IsOK(res1)) {
6017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6018 }
6019 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 (arg1)->Paste();
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_Py_Void();
6027 return resultobj;
6028fail:
6029 return NULL;
6030}
6031
6032
6033SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj = 0;
6035 wxComboBox *arg1 = (wxComboBox *) 0 ;
6036 long arg2 ;
6037 void *argp1 = 0 ;
6038 int res1 = 0 ;
6039 long val2 ;
6040 int ecode2 = 0 ;
6041 PyObject * obj0 = 0 ;
6042 PyObject * obj1 = 0 ;
6043 char * kwnames[] = {
6044 (char *) "self",(char *) "pos", NULL
6045 };
6046
6047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6049 if (!SWIG_IsOK(res1)) {
6050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6051 }
6052 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6053 ecode2 = SWIG_AsVal_long(obj1, &val2);
6054 if (!SWIG_IsOK(ecode2)) {
6055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6056 }
6057 arg2 = static_cast< long >(val2);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 (arg1)->SetInsertionPoint(arg2);
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_Py_Void();
6065 return resultobj;
6066fail:
6067 return NULL;
d55e5bfc
RD
6068}
6069
6070
1bd55598
RD
6071SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6072 PyObject *resultobj = 0;
6073 wxComboBox *arg1 = (wxComboBox *) 0 ;
6074 long result;
6075 void *argp1 = 0 ;
6076 int res1 = 0 ;
6077 PyObject *swig_obj[1] ;
6078
6079 if (!args) SWIG_fail;
6080 swig_obj[0] = args;
6081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6082 if (!SWIG_IsOK(res1)) {
6083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6084 }
6085 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = SWIG_From_long(static_cast< long >(result));
6093 return resultobj;
6094fail:
6095 return NULL;
d55e5bfc
RD
6096}
6097
6098
1bd55598
RD
6099SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6100 PyObject *resultobj = 0;
6101 wxComboBox *arg1 = (wxComboBox *) 0 ;
6102 long result;
6103 void *argp1 = 0 ;
6104 int res1 = 0 ;
6105 PyObject *swig_obj[1] ;
6106
6107 if (!args) SWIG_fail;
6108 swig_obj[0] = args;
6109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6110 if (!SWIG_IsOK(res1)) {
6111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6112 }
6113 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6114 {
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = SWIG_From_long(static_cast< long >(result));
6121 return resultobj;
6122fail:
6123 return NULL;
6124}
6125
6126
6127SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj = 0;
6129 wxComboBox *arg1 = (wxComboBox *) 0 ;
6130 long arg2 ;
6131 long arg3 ;
6132 wxString *arg4 = 0 ;
6133 void *argp1 = 0 ;
6134 int res1 = 0 ;
6135 long val2 ;
6136 int ecode2 = 0 ;
6137 long val3 ;
6138 int ecode3 = 0 ;
6139 bool temp4 = false ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 PyObject * obj2 = 0 ;
6143 PyObject * obj3 = 0 ;
6144 char * kwnames[] = {
2131d850 6145 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6146 };
6147
6148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6150 if (!SWIG_IsOK(res1)) {
6151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6152 }
6153 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6154 ecode2 = SWIG_AsVal_long(obj1, &val2);
6155 if (!SWIG_IsOK(ecode2)) {
6156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6157 }
6158 arg2 = static_cast< long >(val2);
6159 ecode3 = SWIG_AsVal_long(obj2, &val3);
6160 if (!SWIG_IsOK(ecode3)) {
6161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6162 }
6163 arg3 = static_cast< long >(val3);
6164 {
6165 arg4 = wxString_in_helper(obj3);
6166 if (arg4 == NULL) SWIG_fail;
6167 temp4 = true;
6168 }
6169 {
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6172 wxPyEndAllowThreads(__tstate);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_Py_Void();
6176 {
6177 if (temp4)
6178 delete arg4;
6179 }
6180 return resultobj;
6181fail:
6182 {
6183 if (temp4)
6184 delete arg4;
6185 }
6186 return NULL;
6187}
6188
6189
6190SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj = 0;
6192 wxComboBox *arg1 = (wxComboBox *) 0 ;
6193 long arg2 ;
6194 long arg3 ;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 long val2 ;
6198 int ecode2 = 0 ;
6199 long val3 ;
6200 int ecode3 = 0 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 PyObject * obj2 = 0 ;
6204 char * kwnames[] = {
2131d850 6205 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6206 };
6207
6208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6210 if (!SWIG_IsOK(res1)) {
6211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6212 }
6213 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6214 ecode2 = SWIG_AsVal_long(obj1, &val2);
6215 if (!SWIG_IsOK(ecode2)) {
6216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6217 }
6218 arg2 = static_cast< long >(val2);
6219 ecode3 = SWIG_AsVal_long(obj2, &val3);
6220 if (!SWIG_IsOK(ecode3)) {
6221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6222 }
6223 arg3 = static_cast< long >(val3);
6224 {
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 (arg1)->SetSelection(arg2,arg3);
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_Py_Void();
6231 return resultobj;
6232fail:
6233 return NULL;
d55e5bfc
RD
6234}
6235
6236
1bd55598
RD
6237SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6238 PyObject *resultobj = 0;
6239 wxComboBox *arg1 = (wxComboBox *) 0 ;
6240 int result;
6241 void *argp1 = 0 ;
6242 int res1 = 0 ;
6243 PyObject *swig_obj[1] ;
6244
6245 if (!args) SWIG_fail;
6246 swig_obj[0] = args;
6247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6248 if (!SWIG_IsOK(res1)) {
6249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6250 }
6251 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6252 {
6253 PyThreadState* __tstate = wxPyBeginAllowThreads();
6254 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = SWIG_From_int(static_cast< int >(result));
6259 return resultobj;
6260fail:
6261 return NULL;
6262}
6263
6264
6265SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj = 0;
6267 wxComboBox *arg1 = (wxComboBox *) 0 ;
6268 wxString *arg2 = 0 ;
6269 bool result;
6270 void *argp1 = 0 ;
6271 int res1 = 0 ;
6272 bool temp2 = false ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "self",(char *) "string", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6283 }
6284 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6285 {
6286 arg2 = wxString_in_helper(obj1);
6287 if (arg2 == NULL) SWIG_fail;
6288 temp2 = true;
6289 }
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 {
6297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6298 }
6299 {
6300 if (temp2)
6301 delete arg2;
6302 }
6303 return resultobj;
6304fail:
6305 {
6306 if (temp2)
6307 delete arg2;
6308 }
6309 return NULL;
6310}
6311
6312
6313SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6314 PyObject *resultobj = 0;
6315 wxComboBox *arg1 = (wxComboBox *) 0 ;
6316 bool arg2 ;
6317 void *argp1 = 0 ;
6318 int res1 = 0 ;
6319 bool val2 ;
6320 int ecode2 = 0 ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char * kwnames[] = {
6324 (char *) "self",(char *) "editable", NULL
6325 };
6326
6327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6329 if (!SWIG_IsOK(res1)) {
6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6331 }
6332 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6333 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6334 if (!SWIG_IsOK(ecode2)) {
6335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6336 }
6337 arg2 = static_cast< bool >(val2);
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 (arg1)->SetEditable(arg2);
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 resultobj = SWIG_Py_Void();
6345 return resultobj;
6346fail:
6347 return NULL;
d55e5bfc
RD
6348}
6349
6350
1bd55598
RD
6351SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6352 PyObject *resultobj = 0;
6353 wxComboBox *arg1 = (wxComboBox *) 0 ;
6354 void *argp1 = 0 ;
6355 int res1 = 0 ;
6356 PyObject *swig_obj[1] ;
6357
6358 if (!args) SWIG_fail;
6359 swig_obj[0] = args;
6360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6361 if (!SWIG_IsOK(res1)) {
6362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6363 }
6364 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 (arg1)->SetInsertionPointEnd();
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 resultobj = SWIG_Py_Void();
6372 return resultobj;
6373fail:
6374 return NULL;
6375}
6376
6377
6378SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6379 PyObject *resultobj = 0;
6380 wxComboBox *arg1 = (wxComboBox *) 0 ;
6381 long arg2 ;
6382 long arg3 ;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 long val2 ;
6386 int ecode2 = 0 ;
6387 long val3 ;
6388 int ecode3 = 0 ;
6389 PyObject * obj0 = 0 ;
6390 PyObject * obj1 = 0 ;
6391 PyObject * obj2 = 0 ;
6392 char * kwnames[] = {
2131d850 6393 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6394 };
6395
6396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6400 }
6401 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6402 ecode2 = SWIG_AsVal_long(obj1, &val2);
6403 if (!SWIG_IsOK(ecode2)) {
6404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6405 }
6406 arg2 = static_cast< long >(val2);
6407 ecode3 = SWIG_AsVal_long(obj2, &val3);
6408 if (!SWIG_IsOK(ecode3)) {
6409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6410 }
6411 arg3 = static_cast< long >(val3);
6412 {
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 (arg1)->Remove(arg2,arg3);
6415 wxPyEndAllowThreads(__tstate);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 resultobj = SWIG_Py_Void();
6419 return resultobj;
6420fail:
6421 return NULL;
d55e5bfc
RD
6422}
6423
6424
1bd55598
RD
6425SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6426 PyObject *resultobj = 0;
6427 wxComboBox *arg1 = (wxComboBox *) 0 ;
6428 bool result;
6429 void *argp1 = 0 ;
6430 int res1 = 0 ;
6431 PyObject *swig_obj[1] ;
6432
6433 if (!args) SWIG_fail;
6434 swig_obj[0] = args;
6435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6438 }
6439 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6440 {
6441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6442 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6443 wxPyEndAllowThreads(__tstate);
6444 if (PyErr_Occurred()) SWIG_fail;
6445 }
6446 {
6447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6448 }
6449 return resultobj;
6450fail:
6451 return NULL;
d55e5bfc
RD
6452}
6453
6454
1bd55598
RD
6455SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6456 PyObject *resultobj = 0;
6457 wxComboBox *arg1 = (wxComboBox *) 0 ;
6458 void *argp1 = 0 ;
6459 int res1 = 0 ;
6460 PyObject *swig_obj[1] ;
6461
6462 if (!args) SWIG_fail;
6463 swig_obj[0] = args;
6464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6465 if (!SWIG_IsOK(res1)) {
6466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6467 }
6468 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 (arg1)->Undo();
6472 wxPyEndAllowThreads(__tstate);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 resultobj = SWIG_Py_Void();
6476 return resultobj;
6477fail:
6478 return NULL;
d55e5bfc
RD
6479}
6480
6481
1bd55598
RD
6482SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6483 PyObject *resultobj = 0;
6484 wxComboBox *arg1 = (wxComboBox *) 0 ;
6485 void *argp1 = 0 ;
6486 int res1 = 0 ;
6487 PyObject *swig_obj[1] ;
6488
6489 if (!args) SWIG_fail;
6490 swig_obj[0] = args;
6491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6492 if (!SWIG_IsOK(res1)) {
6493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6494 }
6495 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6496 {
6497 PyThreadState* __tstate = wxPyBeginAllowThreads();
6498 (arg1)->Redo();
6499 wxPyEndAllowThreads(__tstate);
6500 if (PyErr_Occurred()) SWIG_fail;
6501 }
6502 resultobj = SWIG_Py_Void();
6503 return resultobj;
6504fail:
6505 return NULL;
d55e5bfc
RD
6506}
6507
6508
1bd55598
RD
6509SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6510 PyObject *resultobj = 0;
6511 wxComboBox *arg1 = (wxComboBox *) 0 ;
6512 void *argp1 = 0 ;
6513 int res1 = 0 ;
6514 PyObject *swig_obj[1] ;
6515
6516 if (!args) SWIG_fail;
6517 swig_obj[0] = args;
6518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6519 if (!SWIG_IsOK(res1)) {
6520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6521 }
6522 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6523 {
6524 PyThreadState* __tstate = wxPyBeginAllowThreads();
6525 (arg1)->SelectAll();
6526 wxPyEndAllowThreads(__tstate);
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_Py_Void();
6530 return resultobj;
6531fail:
6532 return NULL;
943e8dfd
RD
6533}
6534
6535
1bd55598
RD
6536SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6537 PyObject *resultobj = 0;
6538 wxComboBox *arg1 = (wxComboBox *) 0 ;
6539 bool result;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6549 }
6550 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 {
6558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6559 }
6560 return resultobj;
6561fail:
6562 return NULL;
121b9a67
RD
6563}
6564
6565
1bd55598
RD
6566SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6567 PyObject *resultobj = 0;
6568 wxComboBox *arg1 = (wxComboBox *) 0 ;
6569 bool result;
6570 void *argp1 = 0 ;
6571 int res1 = 0 ;
6572 PyObject *swig_obj[1] ;
6573
6574 if (!args) SWIG_fail;
6575 swig_obj[0] = args;
6576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6579 }
6580 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6581 {
6582 PyThreadState* __tstate = wxPyBeginAllowThreads();
6583 result = (bool)((wxComboBox const *)arg1)->CanCut();
6584 wxPyEndAllowThreads(__tstate);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 {
6588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6589 }
6590 return resultobj;
6591fail:
6592 return NULL;
121b9a67
RD
6593}
6594
6595
1bd55598
RD
6596SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6597 PyObject *resultobj = 0;
6598 wxComboBox *arg1 = (wxComboBox *) 0 ;
6599 bool result;
6600 void *argp1 = 0 ;
6601 int res1 = 0 ;
6602 PyObject *swig_obj[1] ;
6603
6604 if (!args) SWIG_fail;
6605 swig_obj[0] = args;
6606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6607 if (!SWIG_IsOK(res1)) {
6608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6609 }
6610 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6611 {
6612 PyThreadState* __tstate = wxPyBeginAllowThreads();
6613 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6614 wxPyEndAllowThreads(__tstate);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 {
6618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6619 }
6620 return resultobj;
6621fail:
6622 return NULL;
d55e5bfc
RD
6623}
6624
6625
1bd55598
RD
6626SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6627 PyObject *resultobj = 0;
6628 wxComboBox *arg1 = (wxComboBox *) 0 ;
6629 bool result;
6630 void *argp1 = 0 ;
6631 int res1 = 0 ;
6632 PyObject *swig_obj[1] ;
6633
6634 if (!args) SWIG_fail;
6635 swig_obj[0] = args;
6636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6637 if (!SWIG_IsOK(res1)) {
6638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6639 }
6640 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6641 {
6642 PyThreadState* __tstate = wxPyBeginAllowThreads();
6643 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6644 wxPyEndAllowThreads(__tstate);
6645 if (PyErr_Occurred()) SWIG_fail;
6646 }
6647 {
6648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6649 }
6650 return resultobj;
6651fail:
6652 return NULL;
d55e5bfc
RD
6653}
6654
6655
1bd55598
RD
6656SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6657 PyObject *resultobj = 0;
6658 wxComboBox *arg1 = (wxComboBox *) 0 ;
6659 bool result;
6660 void *argp1 = 0 ;
6661 int res1 = 0 ;
6662 PyObject *swig_obj[1] ;
6663
6664 if (!args) SWIG_fail;
6665 swig_obj[0] = args;
6666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6667 if (!SWIG_IsOK(res1)) {
6668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6669 }
6670 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6671 {
6672 PyThreadState* __tstate = wxPyBeginAllowThreads();
6673 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 {
6678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6679 }
6680 return resultobj;
6681fail:
6682 return NULL;
d55e5bfc
RD
6683}
6684
6685
1bd55598
RD
6686SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj = 0;
6688 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6689 SwigValueWrapper<wxVisualAttributes > result;
6690 int val1 ;
6691 int ecode1 = 0 ;
6692 PyObject * obj0 = 0 ;
6693 char * kwnames[] = {
6694 (char *) "variant", NULL
6695 };
6696
6697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6698 if (obj0) {
6699 ecode1 = SWIG_AsVal_int(obj0, &val1);
6700 if (!SWIG_IsOK(ecode1)) {
6701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6702 }
6703 arg1 = static_cast< wxWindowVariant >(val1);
6704 }
6705 {
6706 if (!wxPyCheckForApp()) SWIG_fail;
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = wxComboBox::GetClassDefaultAttributes(arg1);
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6713 return resultobj;
6714fail:
6715 return NULL;
5cbf236d
RD
6716}
6717
6718
1bd55598
RD
6719SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6720 PyObject *obj;
6721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6722 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6723 return SWIG_Py_Void();
5cbf236d
RD
6724}
6725
1bd55598
RD
6726SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6727 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6728}
6729
1bd55598
RD
6730SWIGINTERN int GaugeNameStr_set(PyObject *) {
6731 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6732 return 1;
5cbf236d
RD
6733}
6734
6735
1bd55598
RD
6736SWIGINTERN PyObject *GaugeNameStr_get(void) {
6737 PyObject *pyobj = 0;
6738
6739 {
6740#if wxUSE_UNICODE
6741 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6742#else
6743 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6744#endif
6745 }
6746 return pyobj;
6747}
6748
6749
6750SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6751 PyObject *resultobj = 0;
6752 wxWindow *arg1 = (wxWindow *) 0 ;
6753 int arg2 = (int) -1 ;
6754 int arg3 = (int) 100 ;
6755 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6756 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6757 wxSize const &arg5_defvalue = wxDefaultSize ;
6758 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6759 long arg6 = (long) wxGA_HORIZONTAL ;
6760 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6761 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6762 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6763 wxString *arg8 = (wxString *) &arg8_defvalue ;
6764 wxGauge *result = 0 ;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 int val2 ;
6768 int ecode2 = 0 ;
6769 int val3 ;
6770 int ecode3 = 0 ;
6771 wxPoint temp4 ;
6772 wxSize temp5 ;
6773 long val6 ;
6774 int ecode6 = 0 ;
6775 void *argp7 = 0 ;
6776 int res7 = 0 ;
6777 bool temp8 = false ;
6778 PyObject * obj0 = 0 ;
6779 PyObject * obj1 = 0 ;
6780 PyObject * obj2 = 0 ;
6781 PyObject * obj3 = 0 ;
6782 PyObject * obj4 = 0 ;
6783 PyObject * obj5 = 0 ;
6784 PyObject * obj6 = 0 ;
6785 PyObject * obj7 = 0 ;
6786 char * kwnames[] = {
6787 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6788 };
6789
6790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6792 if (!SWIG_IsOK(res1)) {
6793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6794 }
6795 arg1 = reinterpret_cast< wxWindow * >(argp1);
6796 if (obj1) {
6797 ecode2 = SWIG_AsVal_int(obj1, &val2);
6798 if (!SWIG_IsOK(ecode2)) {
6799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6800 }
6801 arg2 = static_cast< int >(val2);
6802 }
6803 if (obj2) {
6804 ecode3 = SWIG_AsVal_int(obj2, &val3);
6805 if (!SWIG_IsOK(ecode3)) {
6806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6807 }
6808 arg3 = static_cast< int >(val3);
6809 }
6810 if (obj3) {
5cbf236d 6811 {
1bd55598
RD
6812 arg4 = &temp4;
6813 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6814 }
1bd55598
RD
6815 }
6816 if (obj4) {
5cbf236d 6817 {
1bd55598
RD
6818 arg5 = &temp5;
6819 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6820 }
1bd55598
RD
6821 }
6822 if (obj5) {
6823 ecode6 = SWIG_AsVal_long(obj5, &val6);
6824 if (!SWIG_IsOK(ecode6)) {
6825 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6826 }
6827 arg6 = static_cast< long >(val6);
6828 }
6829 if (obj6) {
6830 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6831 if (!SWIG_IsOK(res7)) {
6832 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6833 }
6834 if (!argp7) {
6835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6836 }
1bd55598
RD
6837 arg7 = reinterpret_cast< wxValidator * >(argp7);
6838 }
6839 if (obj7) {
5cbf236d 6840 {
1bd55598
RD
6841 arg8 = wxString_in_helper(obj7);
6842 if (arg8 == NULL) SWIG_fail;
6843 temp8 = true;
5cbf236d 6844 }
1bd55598
RD
6845 }
6846 {
6847 if (!wxPyCheckForApp()) SWIG_fail;
6848 PyThreadState* __tstate = wxPyBeginAllowThreads();
6849 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6854 {
6855 if (temp8)
6856 delete arg8;
6857 }
6858 return resultobj;
6859fail:
6860 {
6861 if (temp8)
6862 delete arg8;
6863 }
6864 return NULL;
5cbf236d
RD
6865}
6866
6867
1bd55598
RD
6868SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6869 PyObject *resultobj = 0;
6870 wxGauge *result = 0 ;
6871
6872 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6873 {
6874 if (!wxPyCheckForApp()) SWIG_fail;
6875 PyThreadState* __tstate = wxPyBeginAllowThreads();
6876 result = (wxGauge *)new wxGauge();
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6881 return resultobj;
6882fail:
6883 return NULL;
6884}
6885
6886
6887SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6888 PyObject *resultobj = 0;
6889 wxGauge *arg1 = (wxGauge *) 0 ;
6890 wxWindow *arg2 = (wxWindow *) 0 ;
6891 int arg3 = (int) -1 ;
6892 int arg4 = (int) 100 ;
6893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6895 wxSize const &arg6_defvalue = wxDefaultSize ;
6896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6897 long arg7 = (long) wxGA_HORIZONTAL ;
6898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6900 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6901 wxString *arg9 = (wxString *) &arg9_defvalue ;
6902 bool result;
6903 void *argp1 = 0 ;
6904 int res1 = 0 ;
6905 void *argp2 = 0 ;
6906 int res2 = 0 ;
6907 int val3 ;
6908 int ecode3 = 0 ;
6909 int val4 ;
6910 int ecode4 = 0 ;
6911 wxPoint temp5 ;
6912 wxSize temp6 ;
6913 long val7 ;
6914 int ecode7 = 0 ;
6915 void *argp8 = 0 ;
6916 int res8 = 0 ;
6917 bool temp9 = false ;
6918 PyObject * obj0 = 0 ;
6919 PyObject * obj1 = 0 ;
6920 PyObject * obj2 = 0 ;
6921 PyObject * obj3 = 0 ;
6922 PyObject * obj4 = 0 ;
6923 PyObject * obj5 = 0 ;
6924 PyObject * obj6 = 0 ;
6925 PyObject * obj7 = 0 ;
6926 PyObject * obj8 = 0 ;
6927 char * kwnames[] = {
6928 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6929 };
6930
6931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6933 if (!SWIG_IsOK(res1)) {
6934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6935 }
6936 arg1 = reinterpret_cast< wxGauge * >(argp1);
6937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6938 if (!SWIG_IsOK(res2)) {
6939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6940 }
6941 arg2 = reinterpret_cast< wxWindow * >(argp2);
6942 if (obj2) {
6943 ecode3 = SWIG_AsVal_int(obj2, &val3);
6944 if (!SWIG_IsOK(ecode3)) {
6945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6946 }
6947 arg3 = static_cast< int >(val3);
6948 }
6949 if (obj3) {
6950 ecode4 = SWIG_AsVal_int(obj3, &val4);
6951 if (!SWIG_IsOK(ecode4)) {
6952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6953 }
6954 arg4 = static_cast< int >(val4);
6955 }
6956 if (obj4) {
5cbf236d 6957 {
1bd55598
RD
6958 arg5 = &temp5;
6959 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6960 }
1bd55598
RD
6961 }
6962 if (obj5) {
5cbf236d 6963 {
1bd55598
RD
6964 arg6 = &temp6;
6965 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6966 }
1bd55598
RD
6967 }
6968 if (obj6) {
6969 ecode7 = SWIG_AsVal_long(obj6, &val7);
6970 if (!SWIG_IsOK(ecode7)) {
6971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6972 }
6973 arg7 = static_cast< long >(val7);
6974 }
6975 if (obj7) {
6976 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6977 if (!SWIG_IsOK(res8)) {
6978 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6979 }
1bd55598
RD
6980 if (!argp8) {
6981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6982 }
6983 arg8 = reinterpret_cast< wxValidator * >(argp8);
6984 }
6985 if (obj8) {
5cbf236d 6986 {
1bd55598
RD
6987 arg9 = wxString_in_helper(obj8);
6988 if (arg9 == NULL) SWIG_fail;
6989 temp9 = true;
5cbf236d 6990 }
1bd55598
RD
6991 }
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 {
6999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7000 }
7001 {
7002 if (temp9)
7003 delete arg9;
7004 }
7005 return resultobj;
7006fail:
7007 {
7008 if (temp9)
7009 delete arg9;
7010 }
7011 return NULL;
7012}
7013
7014
7015SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj = 0;
7017 wxGauge *arg1 = (wxGauge *) 0 ;
7018 int arg2 ;
7019 void *argp1 = 0 ;
7020 int res1 = 0 ;
7021 int val2 ;
7022 int ecode2 = 0 ;
7023 PyObject * obj0 = 0 ;
7024 PyObject * obj1 = 0 ;
7025 char * kwnames[] = {
7026 (char *) "self",(char *) "range", NULL
7027 };
7028
7029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7031 if (!SWIG_IsOK(res1)) {
7032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7033 }
7034 arg1 = reinterpret_cast< wxGauge * >(argp1);
7035 ecode2 = SWIG_AsVal_int(obj1, &val2);
7036 if (!SWIG_IsOK(ecode2)) {
7037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7038 }
7039 arg2 = static_cast< int >(val2);
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 (arg1)->SetRange(arg2);
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 resultobj = SWIG_Py_Void();
7047 return resultobj;
7048fail:
7049 return NULL;
5cbf236d
RD
7050}
7051
7052
1bd55598
RD
7053SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7054 PyObject *resultobj = 0;
7055 wxGauge *arg1 = (wxGauge *) 0 ;
7056 int result;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 PyObject *swig_obj[1] ;
7060
7061 if (!args) SWIG_fail;
7062 swig_obj[0] = args;
7063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7066 }
7067 arg1 = reinterpret_cast< wxGauge * >(argp1);
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = (int)((wxGauge const *)arg1)->GetRange();
7071 wxPyEndAllowThreads(__tstate);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 resultobj = SWIG_From_int(static_cast< int >(result));
7075 return resultobj;
7076fail:
7077 return NULL;
7078}
7079
7080
7081SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj = 0;
7083 wxGauge *arg1 = (wxGauge *) 0 ;
7084 int arg2 ;
7085 void *argp1 = 0 ;
7086 int res1 = 0 ;
7087 int val2 ;
7088 int ecode2 = 0 ;
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 char * kwnames[] = {
7092 (char *) "self",(char *) "pos", NULL
7093 };
7094
7095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7097 if (!SWIG_IsOK(res1)) {
7098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7099 }
7100 arg1 = reinterpret_cast< wxGauge * >(argp1);
7101 ecode2 = SWIG_AsVal_int(obj1, &val2);
7102 if (!SWIG_IsOK(ecode2)) {
7103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7104 }
7105 arg2 = static_cast< int >(val2);
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 (arg1)->SetValue(arg2);
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 resultobj = SWIG_Py_Void();
7113 return resultobj;
7114fail:
7115 return NULL;
5cbf236d
RD
7116}
7117
7118
1bd55598
RD
7119SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7120 PyObject *resultobj = 0;
7121 wxGauge *arg1 = (wxGauge *) 0 ;
7122 int result;
7123 void *argp1 = 0 ;
7124 int res1 = 0 ;
7125 PyObject *swig_obj[1] ;
7126
7127 if (!args) SWIG_fail;
7128 swig_obj[0] = args;
7129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7130 if (!SWIG_IsOK(res1)) {
7131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7132 }
7133 arg1 = reinterpret_cast< wxGauge * >(argp1);
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 result = (int)((wxGauge const *)arg1)->GetValue();
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = SWIG_From_int(static_cast< int >(result));
7141 return resultobj;
7142fail:
7143 return NULL;
f20a2e1f
RD
7144}
7145
7146
0d2c9713
RD
7147SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7148 PyObject *resultobj = 0;
7149 wxGauge *arg1 = (wxGauge *) 0 ;
7150 void *argp1 = 0 ;
7151 int res1 = 0 ;
7152 PyObject *swig_obj[1] ;
7153
7154 if (!args) SWIG_fail;
7155 swig_obj[0] = args;
7156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7157 if (!SWIG_IsOK(res1)) {
7158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7159 }
7160 arg1 = reinterpret_cast< wxGauge * >(argp1);
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 (arg1)->Pulse();
7164 wxPyEndAllowThreads(__tstate);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = SWIG_Py_Void();
7168 return resultobj;
7169fail:
7170 return NULL;
7171}
7172
7173
1bd55598
RD
7174SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7175 PyObject *resultobj = 0;
7176 wxGauge *arg1 = (wxGauge *) 0 ;
7177 bool result;
7178 void *argp1 = 0 ;
7179 int res1 = 0 ;
7180 PyObject *swig_obj[1] ;
7181
7182 if (!args) SWIG_fail;
7183 swig_obj[0] = args;
7184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7185 if (!SWIG_IsOK(res1)) {
7186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7187 }
7188 arg1 = reinterpret_cast< wxGauge * >(argp1);
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 result = (bool)((wxGauge const *)arg1)->IsVertical();
7192 wxPyEndAllowThreads(__tstate);
7193 if (PyErr_Occurred()) SWIG_fail;
7194 }
7195 {
7196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7197 }
7198 return resultobj;
7199fail:
7200 return NULL;
7201}
7202
7203
7204SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj = 0;
7206 wxGauge *arg1 = (wxGauge *) 0 ;
7207 int arg2 ;
7208 void *argp1 = 0 ;
7209 int res1 = 0 ;
7210 int val2 ;
7211 int ecode2 = 0 ;
7212 PyObject * obj0 = 0 ;
7213 PyObject * obj1 = 0 ;
7214 char * kwnames[] = {
7215 (char *) "self",(char *) "w", NULL
7216 };
7217
7218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7220 if (!SWIG_IsOK(res1)) {
7221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7222 }
7223 arg1 = reinterpret_cast< wxGauge * >(argp1);
7224 ecode2 = SWIG_AsVal_int(obj1, &val2);
7225 if (!SWIG_IsOK(ecode2)) {
7226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7227 }
7228 arg2 = static_cast< int >(val2);
7229 {
7230 PyThreadState* __tstate = wxPyBeginAllowThreads();
7231 (arg1)->SetShadowWidth(arg2);
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 resultobj = SWIG_Py_Void();
7236 return resultobj;
7237fail:
7238 return NULL;
d55e5bfc
RD
7239}
7240
7241
1bd55598
RD
7242SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7243 PyObject *resultobj = 0;
7244 wxGauge *arg1 = (wxGauge *) 0 ;
7245 int result;
7246 void *argp1 = 0 ;
7247 int res1 = 0 ;
7248 PyObject *swig_obj[1] ;
7249
7250 if (!args) SWIG_fail;
7251 swig_obj[0] = args;
7252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7253 if (!SWIG_IsOK(res1)) {
7254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7255 }
7256 arg1 = reinterpret_cast< wxGauge * >(argp1);
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7260 wxPyEndAllowThreads(__tstate);
7261 if (PyErr_Occurred()) SWIG_fail;
7262 }
7263 resultobj = SWIG_From_int(static_cast< int >(result));
7264 return resultobj;
7265fail:
7266 return NULL;
7267}
7268
7269
7270SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7271 PyObject *resultobj = 0;
7272 wxGauge *arg1 = (wxGauge *) 0 ;
7273 int arg2 ;
7274 void *argp1 = 0 ;
7275 int res1 = 0 ;
7276 int val2 ;
7277 int ecode2 = 0 ;
7278 PyObject * obj0 = 0 ;
7279 PyObject * obj1 = 0 ;
7280 char * kwnames[] = {
7281 (char *) "self",(char *) "w", NULL
7282 };
7283
7284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7286 if (!SWIG_IsOK(res1)) {
7287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7288 }
7289 arg1 = reinterpret_cast< wxGauge * >(argp1);
7290 ecode2 = SWIG_AsVal_int(obj1, &val2);
7291 if (!SWIG_IsOK(ecode2)) {
7292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7293 }
7294 arg2 = static_cast< int >(val2);
7295 {
7296 PyThreadState* __tstate = wxPyBeginAllowThreads();
7297 (arg1)->SetBezelFace(arg2);
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 resultobj = SWIG_Py_Void();
7302 return resultobj;
7303fail:
7304 return NULL;
d55e5bfc
RD
7305}
7306
7307
1bd55598
RD
7308SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7309 PyObject *resultobj = 0;
7310 wxGauge *arg1 = (wxGauge *) 0 ;
7311 int result;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314 PyObject *swig_obj[1] ;
7315
7316 if (!args) SWIG_fail;
7317 swig_obj[0] = args;
7318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7319 if (!SWIG_IsOK(res1)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7321 }
7322 arg1 = reinterpret_cast< wxGauge * >(argp1);
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 resultobj = SWIG_From_int(static_cast< int >(result));
7330 return resultobj;
7331fail:
7332 return NULL;
7333}
7334
7335
7336SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7337 PyObject *resultobj = 0;
7338 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7339 SwigValueWrapper<wxVisualAttributes > result;
7340 int val1 ;
7341 int ecode1 = 0 ;
7342 PyObject * obj0 = 0 ;
7343 char * kwnames[] = {
7344 (char *) "variant", NULL
7345 };
7346
7347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7348 if (obj0) {
7349 ecode1 = SWIG_AsVal_int(obj0, &val1);
7350 if (!SWIG_IsOK(ecode1)) {
7351 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7352 }
7353 arg1 = static_cast< wxWindowVariant >(val1);
7354 }
7355 {
7356 if (!wxPyCheckForApp()) SWIG_fail;
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
7358 result = wxGauge::GetClassDefaultAttributes(arg1);
7359 wxPyEndAllowThreads(__tstate);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7363 return resultobj;
7364fail:
7365 return NULL;
d55e5bfc
RD
7366}
7367
7368
1bd55598
RD
7369SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7370 PyObject *obj;
7371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7372 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7373 return SWIG_Py_Void();
d55e5bfc
RD
7374}
7375
1bd55598
RD
7376SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7377 return SWIG_Python_InitShadowInstance(args);
7378}
d55e5bfc 7379
1bd55598
RD
7380SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7381 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7382 return 1;
d55e5bfc
RD
7383}
7384
7385
1bd55598
RD
7386SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7387 PyObject *pyobj = 0;
7388
7389 {
7390#if wxUSE_UNICODE
7391 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7392#else
7393 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394#endif
7395 }
7396 return pyobj;
d55e5bfc
RD
7397}
7398
7399
1bd55598
RD
7400SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7401 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7402 return 1;
d55e5bfc
RD
7403}
7404
7405
1bd55598
RD
7406SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7407 PyObject *pyobj = 0;
7408
7409 {
7410#if wxUSE_UNICODE
7411 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7412#else
7413 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414#endif
7415 }
7416 return pyobj;
d55e5bfc
RD
7417}
7418
7419
1bd55598
RD
7420SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7421 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7422 return 1;
d55e5bfc
RD
7423}
7424
7425
1bd55598
RD
7426SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7427 PyObject *pyobj = 0;
7428
7429 {
7430#if wxUSE_UNICODE
7431 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7432#else
7433 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434#endif
7435 }
7436 return pyobj;
7437}
7438
7439
3f7f284d
RD
7440SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7441 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7442 return 1;
7443}
7444
7445
7446SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7447 PyObject *pyobj = 0;
7448
7449 {
7450#if wxUSE_UNICODE
7451 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7452#else
7453 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7454#endif
7455 }
7456 return pyobj;
7457}
7458
7459
1bd55598
RD
7460SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj = 0;
7462 wxWindow *arg1 = (wxWindow *) 0 ;
7463 int arg2 = (int) -1 ;
7464 wxString const &arg3_defvalue = wxPyEmptyString ;
7465 wxString *arg3 = (wxString *) &arg3_defvalue ;
7466 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7467 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7468 wxSize const &arg5_defvalue = wxDefaultSize ;
7469 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7470 long arg6 = (long) 0 ;
7471 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7472 wxString *arg7 = (wxString *) &arg7_defvalue ;
7473 wxStaticBox *result = 0 ;
7474 void *argp1 = 0 ;
7475 int res1 = 0 ;
7476 int val2 ;
7477 int ecode2 = 0 ;
7478 bool temp3 = false ;
7479 wxPoint temp4 ;
7480 wxSize temp5 ;
7481 long val6 ;
7482 int ecode6 = 0 ;
7483 bool temp7 = false ;
7484 PyObject * obj0 = 0 ;
7485 PyObject * obj1 = 0 ;
7486 PyObject * obj2 = 0 ;
7487 PyObject * obj3 = 0 ;
7488 PyObject * obj4 = 0 ;
7489 PyObject * obj5 = 0 ;
7490 PyObject * obj6 = 0 ;
7491 char * kwnames[] = {
7492 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7493 };
7494
7495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7497 if (!SWIG_IsOK(res1)) {
7498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7499 }
7500 arg1 = reinterpret_cast< wxWindow * >(argp1);
7501 if (obj1) {
7502 ecode2 = SWIG_AsVal_int(obj1, &val2);
7503 if (!SWIG_IsOK(ecode2)) {
7504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7505 }
7506 arg2 = static_cast< int >(val2);
7507 }
7508 if (obj2) {
36ed4f51 7509 {
1bd55598
RD
7510 arg3 = wxString_in_helper(obj2);
7511 if (arg3 == NULL) SWIG_fail;
7512 temp3 = true;
36ed4f51 7513 }
1bd55598
RD
7514 }
7515 if (obj3) {
d55e5bfc 7516 {
1bd55598
RD
7517 arg4 = &temp4;
7518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7519 }
1bd55598
RD
7520 }
7521 if (obj4) {
d55e5bfc 7522 {
1bd55598
RD
7523 arg5 = &temp5;
7524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7525 }
1bd55598
RD
7526 }
7527 if (obj5) {
7528 ecode6 = SWIG_AsVal_long(obj5, &val6);
7529 if (!SWIG_IsOK(ecode6)) {
7530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7531 }
7532 arg6 = static_cast< long >(val6);
7533 }
7534 if (obj6) {
36ed4f51 7535 {
1bd55598
RD
7536 arg7 = wxString_in_helper(obj6);
7537 if (arg7 == NULL) SWIG_fail;
7538 temp7 = true;
36ed4f51 7539 }
1bd55598
RD
7540 }
7541 {
7542 if (!wxPyCheckForApp()) SWIG_fail;
7543 PyThreadState* __tstate = wxPyBeginAllowThreads();
7544 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7545 wxPyEndAllowThreads(__tstate);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 }
7548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7549 {
7550 if (temp3)
7551 delete arg3;
7552 }
7553 {
7554 if (temp7)
7555 delete arg7;
7556 }
7557 return resultobj;
7558fail:
7559 {
7560 if (temp3)
7561 delete arg3;
7562 }
7563 {
7564 if (temp7)
7565 delete arg7;
7566 }
7567 return NULL;
7568}
d55e5bfc 7569
1bd55598
RD
7570
7571SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7572 PyObject *resultobj = 0;
7573 wxStaticBox *result = 0 ;
7574
7575 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7576 {
7577 if (!wxPyCheckForApp()) SWIG_fail;
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 result = (wxStaticBox *)new wxStaticBox();
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7584 return resultobj;
7585fail:
7586 return NULL;
7587}
7588
7589
7590SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj = 0;
7592 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7593 wxWindow *arg2 = (wxWindow *) 0 ;
7594 int arg3 = (int) -1 ;
7595 wxString const &arg4_defvalue = wxPyEmptyString ;
7596 wxString *arg4 = (wxString *) &arg4_defvalue ;
7597 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7598 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7599 wxSize const &arg6_defvalue = wxDefaultSize ;
7600 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7601 long arg7 = (long) 0 ;
7602 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7603 wxString *arg8 = (wxString *) &arg8_defvalue ;
7604 bool result;
7605 void *argp1 = 0 ;
7606 int res1 = 0 ;
7607 void *argp2 = 0 ;
7608 int res2 = 0 ;
7609 int val3 ;
7610 int ecode3 = 0 ;
7611 bool temp4 = false ;
7612 wxPoint temp5 ;
7613 wxSize temp6 ;
7614 long val7 ;
7615 int ecode7 = 0 ;
7616 bool temp8 = false ;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 PyObject * obj2 = 0 ;
7620 PyObject * obj3 = 0 ;
7621 PyObject * obj4 = 0 ;
7622 PyObject * obj5 = 0 ;
7623 PyObject * obj6 = 0 ;
7624 PyObject * obj7 = 0 ;
7625 char * kwnames[] = {
7626 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7627 };
7628
7629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7631 if (!SWIG_IsOK(res1)) {
7632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7633 }
7634 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7636 if (!SWIG_IsOK(res2)) {
7637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7638 }
7639 arg2 = reinterpret_cast< wxWindow * >(argp2);
7640 if (obj2) {
7641 ecode3 = SWIG_AsVal_int(obj2, &val3);
7642 if (!SWIG_IsOK(ecode3)) {
7643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7644 }
7645 arg3 = static_cast< int >(val3);
7646 }
7647 if (obj3) {
36ed4f51 7648 {
1bd55598
RD
7649 arg4 = wxString_in_helper(obj3);
7650 if (arg4 == NULL) SWIG_fail;
7651 temp4 = true;
36ed4f51 7652 }
1bd55598
RD
7653 }
7654 if (obj4) {
d55e5bfc 7655 {
1bd55598
RD
7656 arg5 = &temp5;
7657 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7658 }
1bd55598
RD
7659 }
7660 if (obj5) {
d55e5bfc 7661 {
1bd55598
RD
7662 arg6 = &temp6;
7663 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7664 }
1bd55598
RD
7665 }
7666 if (obj6) {
7667 ecode7 = SWIG_AsVal_long(obj6, &val7);
7668 if (!SWIG_IsOK(ecode7)) {
7669 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7670 }
7671 arg7 = static_cast< long >(val7);
7672 }
7673 if (obj7) {
36ed4f51 7674 {
1bd55598
RD
7675 arg8 = wxString_in_helper(obj7);
7676 if (arg8 == NULL) SWIG_fail;
7677 temp8 = true;
36ed4f51 7678 }
1bd55598
RD
7679 }
7680 {
7681 PyThreadState* __tstate = wxPyBeginAllowThreads();
7682 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7683 wxPyEndAllowThreads(__tstate);
7684 if (PyErr_Occurred()) SWIG_fail;
7685 }
7686 {
7687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7688 }
7689 {
7690 if (temp4)
7691 delete arg4;
7692 }
7693 {
7694 if (temp8)
7695 delete arg8;
7696 }
7697 return resultobj;
7698fail:
7699 {
7700 if (temp4)
7701 delete arg4;
7702 }
7703 {
7704 if (temp8)
7705 delete arg8;
7706 }
7707 return NULL;
d55e5bfc
RD
7708}
7709
7710
1bd55598
RD
7711SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7712 PyObject *resultobj = 0;
7713 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7714 SwigValueWrapper<wxVisualAttributes > result;
7715 int val1 ;
7716 int ecode1 = 0 ;
7717 PyObject * obj0 = 0 ;
7718 char * kwnames[] = {
7719 (char *) "variant", NULL
7720 };
7721
7722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7723 if (obj0) {
7724 ecode1 = SWIG_AsVal_int(obj0, &val1);
7725 if (!SWIG_IsOK(ecode1)) {
7726 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7727 }
7728 arg1 = static_cast< wxWindowVariant >(val1);
7729 }
7730 {
7731 if (!wxPyCheckForApp()) SWIG_fail;
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7738 return resultobj;
7739fail:
7740 return NULL;
7741}
7742
7743
7744SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7745 PyObject *obj;
7746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7747 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7748 return SWIG_Py_Void();
7749}
7750
7751SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7752 return SWIG_Python_InitShadowInstance(args);
7753}
7754
7755SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj = 0;
7757 wxWindow *arg1 = (wxWindow *) 0 ;
7758 int arg2 = (int) -1 ;
7759 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7760 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7761 wxSize const &arg4_defvalue = wxDefaultSize ;
7762 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7763 long arg5 = (long) wxLI_HORIZONTAL ;
3f7f284d 7764 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
1bd55598
RD
7765 wxString *arg6 = (wxString *) &arg6_defvalue ;
7766 wxStaticLine *result = 0 ;
7767 void *argp1 = 0 ;
7768 int res1 = 0 ;
7769 int val2 ;
7770 int ecode2 = 0 ;
7771 wxPoint temp3 ;
7772 wxSize temp4 ;
7773 long val5 ;
7774 int ecode5 = 0 ;
7775 bool temp6 = false ;
7776 PyObject * obj0 = 0 ;
7777 PyObject * obj1 = 0 ;
7778 PyObject * obj2 = 0 ;
7779 PyObject * obj3 = 0 ;
7780 PyObject * obj4 = 0 ;
7781 PyObject * obj5 = 0 ;
7782 char * kwnames[] = {
7783 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7784 };
7785
7786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7790 }
7791 arg1 = reinterpret_cast< wxWindow * >(argp1);
7792 if (obj1) {
7793 ecode2 = SWIG_AsVal_int(obj1, &val2);
7794 if (!SWIG_IsOK(ecode2)) {
7795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7796 }
7797 arg2 = static_cast< int >(val2);
7798 }
7799 if (obj2) {
7800 {
7801 arg3 = &temp3;
7802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7803 }
1bd55598
RD
7804 }
7805 if (obj3) {
f20a2e1f 7806 {
1bd55598
RD
7807 arg4 = &temp4;
7808 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7809 }
1bd55598
RD
7810 }
7811 if (obj4) {
7812 ecode5 = SWIG_AsVal_long(obj4, &val5);
7813 if (!SWIG_IsOK(ecode5)) {
7814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7815 }
7816 arg5 = static_cast< long >(val5);
7817 }
7818 if (obj5) {
f20a2e1f 7819 {
1bd55598
RD
7820 arg6 = wxString_in_helper(obj5);
7821 if (arg6 == NULL) SWIG_fail;
7822 temp6 = true;
f20a2e1f 7823 }
1bd55598
RD
7824 }
7825 {
7826 if (!wxPyCheckForApp()) SWIG_fail;
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7833 {
7834 if (temp6)
7835 delete arg6;
7836 }
7837 return resultobj;
7838fail:
7839 {
7840 if (temp6)
7841 delete arg6;
7842 }
7843 return NULL;
d55e5bfc
RD
7844}
7845
7846
1bd55598
RD
7847SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7848 PyObject *resultobj = 0;
7849 wxStaticLine *result = 0 ;
7850
7851 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7852 {
7853 if (!wxPyCheckForApp()) SWIG_fail;
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 result = (wxStaticLine *)new wxStaticLine();
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7860 return resultobj;
7861fail:
7862 return NULL;
7863}
7864
7865
7866SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7867 PyObject *resultobj = 0;
7868 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7869 wxWindow *arg2 = (wxWindow *) 0 ;
7870 int arg3 = (int) -1 ;
7871 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7872 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7873 wxSize const &arg5_defvalue = wxDefaultSize ;
7874 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7875 long arg6 = (long) wxLI_HORIZONTAL ;
3f7f284d 7876 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
1bd55598
RD
7877 wxString *arg7 = (wxString *) &arg7_defvalue ;
7878 bool result;
7879 void *argp1 = 0 ;
7880 int res1 = 0 ;
7881 void *argp2 = 0 ;
7882 int res2 = 0 ;
7883 int val3 ;
7884 int ecode3 = 0 ;
7885 wxPoint temp4 ;
7886 wxSize temp5 ;
7887 long val6 ;
7888 int ecode6 = 0 ;
7889 bool temp7 = false ;
7890 PyObject * obj0 = 0 ;
7891 PyObject * obj1 = 0 ;
7892 PyObject * obj2 = 0 ;
7893 PyObject * obj3 = 0 ;
7894 PyObject * obj4 = 0 ;
7895 PyObject * obj5 = 0 ;
7896 PyObject * obj6 = 0 ;
7897 char * kwnames[] = {
7898 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7899 };
7900
7901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7905 }
7906 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7908 if (!SWIG_IsOK(res2)) {
7909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7910 }
7911 arg2 = reinterpret_cast< wxWindow * >(argp2);
7912 if (obj2) {
7913 ecode3 = SWIG_AsVal_int(obj2, &val3);
7914 if (!SWIG_IsOK(ecode3)) {
7915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7916 }
7917 arg3 = static_cast< int >(val3);
7918 }
7919 if (obj3) {
d55e5bfc 7920 {
1bd55598
RD
7921 arg4 = &temp4;
7922 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7923 }
1bd55598
RD
7924 }
7925 if (obj4) {
d55e5bfc 7926 {
1bd55598
RD
7927 arg5 = &temp5;
7928 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7929 }
7930 }
7931 if (obj5) {
7932 ecode6 = SWIG_AsVal_long(obj5, &val6);
7933 if (!SWIG_IsOK(ecode6)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7935 }
7936 arg6 = static_cast< long >(val6);
7937 }
7938 if (obj6) {
7939 {
7940 arg7 = wxString_in_helper(obj6);
7941 if (arg7 == NULL) SWIG_fail;
7942 temp7 = true;
d55e5bfc 7943 }
1bd55598
RD
7944 }
7945 {
7946 PyThreadState* __tstate = wxPyBeginAllowThreads();
7947 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7948 wxPyEndAllowThreads(__tstate);
7949 if (PyErr_Occurred()) SWIG_fail;
7950 }
7951 {
7952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7953 }
7954 {
7955 if (temp7)
7956 delete arg7;
7957 }
7958 return resultobj;
7959fail:
7960 {
7961 if (temp7)
7962 delete arg7;
7963 }
7964 return NULL;
d55e5bfc
RD
7965}
7966
7967
1bd55598
RD
7968SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7969 PyObject *resultobj = 0;
7970 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7971 bool result;
7972 void *argp1 = 0 ;
7973 int res1 = 0 ;
7974 PyObject *swig_obj[1] ;
7975
7976 if (!args) SWIG_fail;
7977 swig_obj[0] = args;
7978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7979 if (!SWIG_IsOK(res1)) {
7980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7981 }
7982 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7983 {
7984 PyThreadState* __tstate = wxPyBeginAllowThreads();
7985 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 {
7990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7991 }
7992 return resultobj;
7993fail:
7994 return NULL;
d55e5bfc
RD
7995}
7996
7997
1bd55598
RD
7998SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7999 PyObject *resultobj = 0;
8000 int result;
8001
8002 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 result = (int)wxStaticLine::GetDefaultSize();
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_From_int(static_cast< int >(result));
8010 return resultobj;
8011fail:
8012 return NULL;
8013}
8014
8015
8016SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8017 PyObject *resultobj = 0;
8018 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8019 SwigValueWrapper<wxVisualAttributes > result;
8020 int val1 ;
8021 int ecode1 = 0 ;
8022 PyObject * obj0 = 0 ;
8023 char * kwnames[] = {
8024 (char *) "variant", NULL
8025 };
8026
8027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8028 if (obj0) {
8029 ecode1 = SWIG_AsVal_int(obj0, &val1);
8030 if (!SWIG_IsOK(ecode1)) {
8031 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8032 }
8033 arg1 = static_cast< wxWindowVariant >(val1);
8034 }
8035 {
8036 if (!wxPyCheckForApp()) SWIG_fail;
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8043 return resultobj;
8044fail:
8045 return NULL;
8046}
8047
8048
8049SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8050 PyObject *obj;
8051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8052 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8053 return SWIG_Py_Void();
8054}
8055
8056SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8057 return SWIG_Python_InitShadowInstance(args);
8058}
8059
8060SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj = 0;
8062 wxWindow *arg1 = (wxWindow *) 0 ;
8063 int arg2 = (int) -1 ;
8064 wxString const &arg3_defvalue = wxPyEmptyString ;
8065 wxString *arg3 = (wxString *) &arg3_defvalue ;
8066 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8067 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8068 wxSize const &arg5_defvalue = wxDefaultSize ;
8069 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8070 long arg6 = (long) 0 ;
8071 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8072 wxString *arg7 = (wxString *) &arg7_defvalue ;
8073 wxStaticText *result = 0 ;
8074 void *argp1 = 0 ;
8075 int res1 = 0 ;
8076 int val2 ;
8077 int ecode2 = 0 ;
8078 bool temp3 = false ;
8079 wxPoint temp4 ;
8080 wxSize temp5 ;
8081 long val6 ;
8082 int ecode6 = 0 ;
8083 bool temp7 = false ;
8084 PyObject * obj0 = 0 ;
8085 PyObject * obj1 = 0 ;
8086 PyObject * obj2 = 0 ;
8087 PyObject * obj3 = 0 ;
8088 PyObject * obj4 = 0 ;
8089 PyObject * obj5 = 0 ;
8090 PyObject * obj6 = 0 ;
8091 char * kwnames[] = {
8092 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8093 };
8094
8095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8099 }
8100 arg1 = reinterpret_cast< wxWindow * >(argp1);
8101 if (obj1) {
8102 ecode2 = SWIG_AsVal_int(obj1, &val2);
8103 if (!SWIG_IsOK(ecode2)) {
8104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8105 }
8106 arg2 = static_cast< int >(val2);
8107 }
8108 if (obj2) {
d55e5bfc 8109 {
1bd55598
RD
8110 arg3 = wxString_in_helper(obj2);
8111 if (arg3 == NULL) SWIG_fail;
8112 temp3 = true;
d55e5bfc 8113 }
1bd55598
RD
8114 }
8115 if (obj3) {
d55e5bfc 8116 {
1bd55598
RD
8117 arg4 = &temp4;
8118 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8119 }
1bd55598
RD
8120 }
8121 if (obj4) {
d55e5bfc 8122 {
1bd55598
RD
8123 arg5 = &temp5;
8124 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8125 }
1bd55598
RD
8126 }
8127 if (obj5) {
8128 ecode6 = SWIG_AsVal_long(obj5, &val6);
8129 if (!SWIG_IsOK(ecode6)) {
8130 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8131 }
8132 arg6 = static_cast< long >(val6);
8133 }
8134 if (obj6) {
d55e5bfc 8135 {
1bd55598
RD
8136 arg7 = wxString_in_helper(obj6);
8137 if (arg7 == NULL) SWIG_fail;
8138 temp7 = true;
d55e5bfc 8139 }
1bd55598
RD
8140 }
8141 {
8142 if (!wxPyCheckForApp()) SWIG_fail;
8143 PyThreadState* __tstate = wxPyBeginAllowThreads();
8144 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8149 {
8150 if (temp3)
8151 delete arg3;
8152 }
8153 {
8154 if (temp7)
8155 delete arg7;
8156 }
8157 return resultobj;
8158fail:
8159 {
8160 if (temp3)
8161 delete arg3;
8162 }
8163 {
8164 if (temp7)
8165 delete arg7;
8166 }
8167 return NULL;
d55e5bfc
RD
8168}
8169
8170
1bd55598
RD
8171SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8172 PyObject *resultobj = 0;
8173 wxStaticText *result = 0 ;
8174
8175 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8176 {
8177 if (!wxPyCheckForApp()) SWIG_fail;
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = (wxStaticText *)new wxStaticText();
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8184 return resultobj;
8185fail:
8186 return NULL;
8187}
8188
8189
8190SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj = 0;
8192 wxStaticText *arg1 = (wxStaticText *) 0 ;
8193 wxWindow *arg2 = (wxWindow *) 0 ;
8194 int arg3 = (int) -1 ;
8195 wxString const &arg4_defvalue = wxPyEmptyString ;
8196 wxString *arg4 = (wxString *) &arg4_defvalue ;
8197 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8198 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8199 wxSize const &arg6_defvalue = wxDefaultSize ;
8200 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8201 long arg7 = (long) 0 ;
8202 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8203 wxString *arg8 = (wxString *) &arg8_defvalue ;
8204 bool result;
8205 void *argp1 = 0 ;
8206 int res1 = 0 ;
8207 void *argp2 = 0 ;
8208 int res2 = 0 ;
8209 int val3 ;
8210 int ecode3 = 0 ;
8211 bool temp4 = false ;
8212 wxPoint temp5 ;
8213 wxSize temp6 ;
8214 long val7 ;
8215 int ecode7 = 0 ;
8216 bool temp8 = false ;
8217 PyObject * obj0 = 0 ;
8218 PyObject * obj1 = 0 ;
8219 PyObject * obj2 = 0 ;
8220 PyObject * obj3 = 0 ;
8221 PyObject * obj4 = 0 ;
8222 PyObject * obj5 = 0 ;
8223 PyObject * obj6 = 0 ;
8224 PyObject * obj7 = 0 ;
8225 char * kwnames[] = {
8226 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8227 };
8228
8229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8231 if (!SWIG_IsOK(res1)) {
8232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8233 }
8234 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8236 if (!SWIG_IsOK(res2)) {
8237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8238 }
8239 arg2 = reinterpret_cast< wxWindow * >(argp2);
8240 if (obj2) {
8241 ecode3 = SWIG_AsVal_int(obj2, &val3);
8242 if (!SWIG_IsOK(ecode3)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8244 }
8245 arg3 = static_cast< int >(val3);
8246 }
8247 if (obj3) {
d55e5bfc 8248 {
1bd55598
RD
8249 arg4 = wxString_in_helper(obj3);
8250 if (arg4 == NULL) SWIG_fail;
8251 temp4 = true;
d55e5bfc 8252 }
1bd55598
RD
8253 }
8254 if (obj4) {
d55e5bfc 8255 {
1bd55598
RD
8256 arg5 = &temp5;
8257 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8258 }
1bd55598
RD
8259 }
8260 if (obj5) {
d55e5bfc 8261 {
1bd55598
RD
8262 arg6 = &temp6;
8263 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8264 }
1bd55598
RD
8265 }
8266 if (obj6) {
8267 ecode7 = SWIG_AsVal_long(obj6, &val7);
8268 if (!SWIG_IsOK(ecode7)) {
8269 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8270 }
8271 arg7 = static_cast< long >(val7);
8272 }
8273 if (obj7) {
d55e5bfc 8274 {
1bd55598
RD
8275 arg8 = wxString_in_helper(obj7);
8276 if (arg8 == NULL) SWIG_fail;
8277 temp8 = true;
d55e5bfc 8278 }
1bd55598
RD
8279 }
8280 {
8281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8282 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8283 wxPyEndAllowThreads(__tstate);
8284 if (PyErr_Occurred()) SWIG_fail;
8285 }
8286 {
8287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8288 }
8289 {
8290 if (temp4)
8291 delete arg4;
8292 }
8293 {
8294 if (temp8)
8295 delete arg8;
8296 }
8297 return resultobj;
8298fail:
8299 {
8300 if (temp4)
8301 delete arg4;
8302 }
8303 {
8304 if (temp8)
8305 delete arg8;
8306 }
8307 return NULL;
8308}
8309
8310
8311SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj = 0;
8313 wxStaticText *arg1 = (wxStaticText *) 0 ;
8314 int arg2 ;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 int val2 ;
8318 int ecode2 = 0 ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "width", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8329 }
8330 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8331 ecode2 = SWIG_AsVal_int(obj1, &val2);
8332 if (!SWIG_IsOK(ecode2)) {
8333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8334 }
8335 arg2 = static_cast< int >(val2);
8336 {
8337 PyThreadState* __tstate = wxPyBeginAllowThreads();
8338 (arg1)->Wrap(arg2);
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_Py_Void();
8343 return resultobj;
8344fail:
8345 return NULL;
8346}
8347
8348
8349SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj = 0;
8351 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8352 SwigValueWrapper<wxVisualAttributes > result;
8353 int val1 ;
8354 int ecode1 = 0 ;
8355 PyObject * obj0 = 0 ;
8356 char * kwnames[] = {
8357 (char *) "variant", NULL
8358 };
8359
8360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8361 if (obj0) {
8362 ecode1 = SWIG_AsVal_int(obj0, &val1);
8363 if (!SWIG_IsOK(ecode1)) {
8364 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8365 }
8366 arg1 = static_cast< wxWindowVariant >(val1);
8367 }
8368 {
8369 if (!wxPyCheckForApp()) SWIG_fail;
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 result = wxStaticText::GetClassDefaultAttributes(arg1);
8372 wxPyEndAllowThreads(__tstate);
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8376 return resultobj;
8377fail:
8378 return NULL;
8379}
8380
8381
8382SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8383 PyObject *obj;
8384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8385 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8386 return SWIG_Py_Void();
8387}
8388
8389SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8390 return SWIG_Python_InitShadowInstance(args);
8391}
8392
8393SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj = 0;
8395 wxWindow *arg1 = (wxWindow *) 0 ;
8396 int arg2 = (int) -1 ;
8397 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8398 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8399 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8400 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8401 wxSize const &arg5_defvalue = wxDefaultSize ;
8402 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8403 long arg6 = (long) 0 ;
8404 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8405 wxString *arg7 = (wxString *) &arg7_defvalue ;
8406 wxStaticBitmap *result = 0 ;
8407 void *argp1 = 0 ;
8408 int res1 = 0 ;
8409 int val2 ;
8410 int ecode2 = 0 ;
8411 void *argp3 = 0 ;
8412 int res3 = 0 ;
8413 wxPoint temp4 ;
8414 wxSize temp5 ;
8415 long val6 ;
8416 int ecode6 = 0 ;
8417 bool temp7 = false ;
8418 PyObject * obj0 = 0 ;
8419 PyObject * obj1 = 0 ;
8420 PyObject * obj2 = 0 ;
8421 PyObject * obj3 = 0 ;
8422 PyObject * obj4 = 0 ;
8423 PyObject * obj5 = 0 ;
8424 PyObject * obj6 = 0 ;
8425 char * kwnames[] = {
8426 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8427 };
8428
8429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8431 if (!SWIG_IsOK(res1)) {
8432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8433 }
8434 arg1 = reinterpret_cast< wxWindow * >(argp1);
8435 if (obj1) {
8436 ecode2 = SWIG_AsVal_int(obj1, &val2);
8437 if (!SWIG_IsOK(ecode2)) {
8438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8439 }
8440 arg2 = static_cast< int >(val2);
8441 }
8442 if (obj2) {
8443 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8444 if (!SWIG_IsOK(res3)) {
8445 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8446 }
1bd55598
RD
8447 if (!argp3) {
8448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8449 }
1bd55598
RD
8450 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8451 }
8452 if (obj3) {
d55e5bfc 8453 {
1bd55598
RD
8454 arg4 = &temp4;
8455 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8456 }
1bd55598
RD
8457 }
8458 if (obj4) {
f20a2e1f 8459 {
1bd55598
RD
8460 arg5 = &temp5;
8461 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8462 }
1bd55598
RD
8463 }
8464 if (obj5) {
8465 ecode6 = SWIG_AsVal_long(obj5, &val6);
8466 if (!SWIG_IsOK(ecode6)) {
8467 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8468 }
8469 arg6 = static_cast< long >(val6);
8470 }
8471 if (obj6) {
f20a2e1f 8472 {
1bd55598
RD
8473 arg7 = wxString_in_helper(obj6);
8474 if (arg7 == NULL) SWIG_fail;
8475 temp7 = true;
f20a2e1f 8476 }
1bd55598
RD
8477 }
8478 {
8479 if (!wxPyCheckForApp()) SWIG_fail;
8480 PyThreadState* __tstate = wxPyBeginAllowThreads();
8481 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8482 wxPyEndAllowThreads(__tstate);
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8486 {
8487 if (temp7)
8488 delete arg7;
8489 }
8490 return resultobj;
8491fail:
8492 {
8493 if (temp7)
8494 delete arg7;
8495 }
8496 return NULL;
f20a2e1f
RD
8497}
8498
8499
1bd55598
RD
8500SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8501 PyObject *resultobj = 0;
8502 wxStaticBitmap *result = 0 ;
8503
8504 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8505 {
8506 if (!wxPyCheckForApp()) SWIG_fail;
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 result = (wxStaticBitmap *)new wxStaticBitmap();
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8513 return resultobj;
8514fail:
8515 return NULL;
8516}
8517
8518
8519SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj = 0;
8521 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8522 wxWindow *arg2 = (wxWindow *) 0 ;
8523 int arg3 = (int) -1 ;
8524 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8525 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8526 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8527 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8528 wxSize const &arg6_defvalue = wxDefaultSize ;
8529 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8530 long arg7 = (long) 0 ;
8531 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8532 wxString *arg8 = (wxString *) &arg8_defvalue ;
8533 bool result;
8534 void *argp1 = 0 ;
8535 int res1 = 0 ;
8536 void *argp2 = 0 ;
8537 int res2 = 0 ;
8538 int val3 ;
8539 int ecode3 = 0 ;
8540 void *argp4 = 0 ;
8541 int res4 = 0 ;
8542 wxPoint temp5 ;
8543 wxSize temp6 ;
8544 long val7 ;
8545 int ecode7 = 0 ;
8546 bool temp8 = false ;
8547 PyObject * obj0 = 0 ;
8548 PyObject * obj1 = 0 ;
8549 PyObject * obj2 = 0 ;
8550 PyObject * obj3 = 0 ;
8551 PyObject * obj4 = 0 ;
8552 PyObject * obj5 = 0 ;
8553 PyObject * obj6 = 0 ;
8554 PyObject * obj7 = 0 ;
8555 char * kwnames[] = {
8556 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8557 };
8558
8559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8561 if (!SWIG_IsOK(res1)) {
8562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8563 }
8564 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8566 if (!SWIG_IsOK(res2)) {
8567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8568 }
8569 arg2 = reinterpret_cast< wxWindow * >(argp2);
8570 if (obj2) {
8571 ecode3 = SWIG_AsVal_int(obj2, &val3);
8572 if (!SWIG_IsOK(ecode3)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8574 }
8575 arg3 = static_cast< int >(val3);
8576 }
8577 if (obj3) {
8578 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8579 if (!SWIG_IsOK(res4)) {
8580 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8581 }
1bd55598
RD
8582 if (!argp4) {
8583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8584 }
1bd55598
RD
8585 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8586 }
8587 if (obj4) {
d55e5bfc 8588 {
1bd55598
RD
8589 arg5 = &temp5;
8590 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8591 }
1bd55598
RD
8592 }
8593 if (obj5) {
d55e5bfc 8594 {
1bd55598
RD
8595 arg6 = &temp6;
8596 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8597 }
1bd55598
RD
8598 }
8599 if (obj6) {
8600 ecode7 = SWIG_AsVal_long(obj6, &val7);
8601 if (!SWIG_IsOK(ecode7)) {
8602 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8603 }
8604 arg7 = static_cast< long >(val7);
8605 }
8606 if (obj7) {
d55e5bfc 8607 {
1bd55598
RD
8608 arg8 = wxString_in_helper(obj7);
8609 if (arg8 == NULL) SWIG_fail;
8610 temp8 = true;
d55e5bfc 8611 }
1bd55598
RD
8612 }
8613 {
8614 PyThreadState* __tstate = wxPyBeginAllowThreads();
8615 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8616 wxPyEndAllowThreads(__tstate);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 {
8620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8621 }
8622 {
8623 if (temp8)
8624 delete arg8;
8625 }
8626 return resultobj;
8627fail:
8628 {
8629 if (temp8)
8630 delete arg8;
8631 }
8632 return NULL;
d55e5bfc
RD
8633}
8634
8635
1bd55598
RD
8636SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8637 PyObject *resultobj = 0;
8638 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8639 wxBitmap result;
8640 void *argp1 = 0 ;
8641 int res1 = 0 ;
8642 PyObject *swig_obj[1] ;
8643
8644 if (!args) SWIG_fail;
8645 swig_obj[0] = args;
8646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8647 if (!SWIG_IsOK(res1)) {
8648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8649 }
8650 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 result = (arg1)->GetBitmap();
8654 wxPyEndAllowThreads(__tstate);
8655 if (PyErr_Occurred()) SWIG_fail;
8656 }
8657 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8658 return resultobj;
8659fail:
8660 return NULL;
8661}
8662
8663
8664SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8665 PyObject *resultobj = 0;
8666 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8667 wxBitmap *arg2 = 0 ;
8668 void *argp1 = 0 ;
8669 int res1 = 0 ;
8670 void *argp2 = 0 ;
8671 int res2 = 0 ;
8672 PyObject * obj0 = 0 ;
8673 PyObject * obj1 = 0 ;
8674 char * kwnames[] = {
8675 (char *) "self",(char *) "bitmap", NULL
8676 };
8677
8678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8680 if (!SWIG_IsOK(res1)) {
8681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8682 }
8683 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8685 if (!SWIG_IsOK(res2)) {
8686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8687 }
8688 if (!argp2) {
8689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8690 }
8691 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8692 {
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8695 wxPyEndAllowThreads(__tstate);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 resultobj = SWIG_Py_Void();
8699 return resultobj;
8700fail:
8701 return NULL;
8702}
8703
8704
8705SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8706 PyObject *resultobj = 0;
8707 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8708 wxIcon *arg2 = 0 ;
8709 void *argp1 = 0 ;
8710 int res1 = 0 ;
8711 void *argp2 = 0 ;
8712 int res2 = 0 ;
8713 PyObject * obj0 = 0 ;
8714 PyObject * obj1 = 0 ;
8715 char * kwnames[] = {
8716 (char *) "self",(char *) "icon", NULL
8717 };
8718
8719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8721 if (!SWIG_IsOK(res1)) {
8722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8723 }
8724 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8726 if (!SWIG_IsOK(res2)) {
8727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8728 }
8729 if (!argp2) {
8730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8731 }
8732 arg2 = reinterpret_cast< wxIcon * >(argp2);
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 (arg1)->SetIcon((wxIcon const &)*arg2);
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 resultobj = SWIG_Py_Void();
8740 return resultobj;
8741fail:
8742 return NULL;
8743}
8744
8745
8746SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8747 PyObject *resultobj = 0;
8748 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8749 SwigValueWrapper<wxVisualAttributes > result;
8750 int val1 ;
8751 int ecode1 = 0 ;
8752 PyObject * obj0 = 0 ;
8753 char * kwnames[] = {
8754 (char *) "variant", NULL
8755 };
8756
8757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8758 if (obj0) {
8759 ecode1 = SWIG_AsVal_int(obj0, &val1);
8760 if (!SWIG_IsOK(ecode1)) {
8761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8762 }
8763 arg1 = static_cast< wxWindowVariant >(val1);
8764 }
8765 {
8766 if (!wxPyCheckForApp()) SWIG_fail;
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8773 return resultobj;
8774fail:
8775 return NULL;
d55e5bfc
RD
8776}
8777
8778
1bd55598
RD
8779SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8780 PyObject *obj;
8781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8782 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8783 return SWIG_Py_Void();
d55e5bfc
RD
8784}
8785
1bd55598
RD
8786SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8787 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8788}
8789
1bd55598
RD
8790SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8791 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8792 return 1;
f20a2e1f
RD
8793}
8794
8795
1bd55598
RD
8796SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8797 PyObject *pyobj = 0;
8798
8799 {
8800#if wxUSE_UNICODE
8801 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8802#else
8803 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8804#endif
8805 }
8806 return pyobj;
8807}
8808
8809
8810SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8811 PyObject *resultobj = 0;
8812 wxWindow *arg1 = (wxWindow *) 0 ;
8813 int arg2 = (int) -1 ;
8814 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8815 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8816 wxSize const &arg4_defvalue = wxDefaultSize ;
8817 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8818 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8819 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8820 long arg6 = (long) 0 ;
8821 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8822 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8823 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8824 wxString *arg8 = (wxString *) &arg8_defvalue ;
8825 wxListBox *result = 0 ;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 int val2 ;
8829 int ecode2 = 0 ;
8830 wxPoint temp3 ;
8831 wxSize temp4 ;
8832 bool temp5 = false ;
8833 long val6 ;
8834 int ecode6 = 0 ;
8835 void *argp7 = 0 ;
8836 int res7 = 0 ;
8837 bool temp8 = false ;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 PyObject * obj2 = 0 ;
8841 PyObject * obj3 = 0 ;
8842 PyObject * obj4 = 0 ;
8843 PyObject * obj5 = 0 ;
8844 PyObject * obj6 = 0 ;
8845 PyObject * obj7 = 0 ;
8846 char * kwnames[] = {
8847 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8848 };
8849
8850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8852 if (!SWIG_IsOK(res1)) {
8853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8854 }
8855 arg1 = reinterpret_cast< wxWindow * >(argp1);
8856 if (obj1) {
8857 ecode2 = SWIG_AsVal_int(obj1, &val2);
8858 if (!SWIG_IsOK(ecode2)) {
8859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8860 }
8861 arg2 = static_cast< int >(val2);
8862 }
8863 if (obj2) {
d55e5bfc 8864 {
1bd55598
RD
8865 arg3 = &temp3;
8866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8867 }
1bd55598
RD
8868 }
8869 if (obj3) {
d55e5bfc 8870 {
1bd55598
RD
8871 arg4 = &temp4;
8872 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8873 }
1bd55598
RD
8874 }
8875 if (obj4) {
d55e5bfc 8876 {
1bd55598
RD
8877 if (! PySequence_Check(obj4)) {
8878 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8879 SWIG_fail;
8880 }
8881 arg5 = new wxArrayString;
8882 temp5 = true;
8883 int i, len=PySequence_Length(obj4);
8884 for (i=0; i<len; i++) {
8885 PyObject* item = PySequence_GetItem(obj4, i);
8886 wxString* s = wxString_in_helper(item);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 arg5->Add(*s);
8889 delete s;
8890 Py_DECREF(item);
8891 }
d55e5bfc 8892 }
1bd55598
RD
8893 }
8894 if (obj5) {
8895 ecode6 = SWIG_AsVal_long(obj5, &val6);
8896 if (!SWIG_IsOK(ecode6)) {
8897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8898 }
8899 arg6 = static_cast< long >(val6);
8900 }
8901 if (obj6) {
8902 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8903 if (!SWIG_IsOK(res7)) {
8904 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8905 }
1bd55598
RD
8906 if (!argp7) {
8907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8908 }
1bd55598
RD
8909 arg7 = reinterpret_cast< wxValidator * >(argp7);
8910 }
8911 if (obj7) {
d55e5bfc 8912 {
1bd55598
RD
8913 arg8 = wxString_in_helper(obj7);
8914 if (arg8 == NULL) SWIG_fail;
8915 temp8 = true;
d55e5bfc 8916 }
1bd55598
RD
8917 }
8918 {
8919 if (!wxPyCheckForApp()) SWIG_fail;
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8922 wxPyEndAllowThreads(__tstate);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 }
8925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8926 {
8927 if (temp5) delete arg5;
8928 }
8929 {
8930 if (temp8)
8931 delete arg8;
8932 }
8933 return resultobj;
8934fail:
8935 {
8936 if (temp5) delete arg5;
8937 }
8938 {
8939 if (temp8)
8940 delete arg8;
8941 }
8942 return NULL;
d55e5bfc
RD
8943}
8944
8945
1bd55598
RD
8946SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8947 PyObject *resultobj = 0;
8948 wxListBox *result = 0 ;
8949
8950 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8951 {
8952 if (!wxPyCheckForApp()) SWIG_fail;
8953 PyThreadState* __tstate = wxPyBeginAllowThreads();
8954 result = (wxListBox *)new wxListBox();
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8959 return resultobj;
8960fail:
8961 return NULL;
8962}
8963
8964
8965SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj = 0;
8967 wxListBox *arg1 = (wxListBox *) 0 ;
8968 wxWindow *arg2 = (wxWindow *) 0 ;
8969 int arg3 = (int) -1 ;
8970 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8971 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8972 wxSize const &arg5_defvalue = wxDefaultSize ;
8973 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8974 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8975 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8976 long arg7 = (long) 0 ;
8977 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8978 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8979 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8980 wxString *arg9 = (wxString *) &arg9_defvalue ;
8981 bool result;
8982 void *argp1 = 0 ;
8983 int res1 = 0 ;
8984 void *argp2 = 0 ;
8985 int res2 = 0 ;
8986 int val3 ;
8987 int ecode3 = 0 ;
8988 wxPoint temp4 ;
8989 wxSize temp5 ;
8990 bool temp6 = false ;
8991 long val7 ;
8992 int ecode7 = 0 ;
8993 void *argp8 = 0 ;
8994 int res8 = 0 ;
8995 bool temp9 = false ;
8996 PyObject * obj0 = 0 ;
8997 PyObject * obj1 = 0 ;
8998 PyObject * obj2 = 0 ;
8999 PyObject * obj3 = 0 ;
9000 PyObject * obj4 = 0 ;
9001 PyObject * obj5 = 0 ;
9002 PyObject * obj6 = 0 ;
9003 PyObject * obj7 = 0 ;
9004 PyObject * obj8 = 0 ;
9005 char * kwnames[] = {
9006 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9007 };
9008
9009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9011 if (!SWIG_IsOK(res1)) {
9012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9013 }
9014 arg1 = reinterpret_cast< wxListBox * >(argp1);
9015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9016 if (!SWIG_IsOK(res2)) {
9017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9018 }
9019 arg2 = reinterpret_cast< wxWindow * >(argp2);
9020 if (obj2) {
9021 ecode3 = SWIG_AsVal_int(obj2, &val3);
9022 if (!SWIG_IsOK(ecode3)) {
9023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9024 }
9025 arg3 = static_cast< int >(val3);
9026 }
9027 if (obj3) {
d55e5bfc 9028 {
1bd55598
RD
9029 arg4 = &temp4;
9030 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9031 }
1bd55598
RD
9032 }
9033 if (obj4) {
d55e5bfc 9034 {
1bd55598
RD
9035 arg5 = &temp5;
9036 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9037 }
1bd55598
RD
9038 }
9039 if (obj5) {
943e8dfd 9040 {
1bd55598
RD
9041 if (! PySequence_Check(obj5)) {
9042 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9043 SWIG_fail;
9044 }
9045 arg6 = new wxArrayString;
9046 temp6 = true;
9047 int i, len=PySequence_Length(obj5);
9048 for (i=0; i<len; i++) {
9049 PyObject* item = PySequence_GetItem(obj5, i);
9050 wxString* s = wxString_in_helper(item);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 arg6->Add(*s);
9053 delete s;
9054 Py_DECREF(item);
9055 }
943e8dfd 9056 }
1bd55598
RD
9057 }
9058 if (obj6) {
9059 ecode7 = SWIG_AsVal_long(obj6, &val7);
9060 if (!SWIG_IsOK(ecode7)) {
9061 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9062 }
9063 arg7 = static_cast< long >(val7);
9064 }
9065 if (obj7) {
9066 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9067 if (!SWIG_IsOK(res8)) {
9068 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9069 }
1bd55598
RD
9070 if (!argp8) {
9071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9072 }
1bd55598
RD
9073 arg8 = reinterpret_cast< wxValidator * >(argp8);
9074 }
9075 if (obj8) {
f20a2e1f 9076 {
1bd55598
RD
9077 arg9 = wxString_in_helper(obj8);
9078 if (arg9 == NULL) SWIG_fail;
9079 temp9 = true;
f20a2e1f 9080 }
1bd55598
RD
9081 }
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 {
9089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9090 }
9091 {
9092 if (temp6) delete arg6;
9093 }
9094 {
9095 if (temp9)
9096 delete arg9;
9097 }
9098 return resultobj;
9099fail:
9100 {
9101 if (temp6) delete arg6;
9102 }
9103 {
9104 if (temp9)
9105 delete arg9;
9106 }
9107 return NULL;
9108}
9109
9110
9111SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj = 0;
9113 wxListBox *arg1 = (wxListBox *) 0 ;
9114 wxString *arg2 = 0 ;
9115 int arg3 ;
9116 PyObject *arg4 = (PyObject *) NULL ;
9117 void *argp1 = 0 ;
9118 int res1 = 0 ;
9119 bool temp2 = false ;
9120 int val3 ;
9121 int ecode3 = 0 ;
9122 PyObject * obj0 = 0 ;
9123 PyObject * obj1 = 0 ;
9124 PyObject * obj2 = 0 ;
9125 PyObject * obj3 = 0 ;
9126 char * kwnames[] = {
9127 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9128 };
9129
9130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9134 }
9135 arg1 = reinterpret_cast< wxListBox * >(argp1);
9136 {
9137 arg2 = wxString_in_helper(obj1);
9138 if (arg2 == NULL) SWIG_fail;
9139 temp2 = true;
9140 }
9141 ecode3 = SWIG_AsVal_int(obj2, &val3);
9142 if (!SWIG_IsOK(ecode3)) {
9143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9144 }
9145 arg3 = static_cast< int >(val3);
9146 if (obj3) {
9147 arg4 = obj3;
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9152 wxPyEndAllowThreads(__tstate);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 }
9155 resultobj = SWIG_Py_Void();
9156 {
9157 if (temp2)
9158 delete arg2;
9159 }
9160 return resultobj;
9161fail:
9162 {
9163 if (temp2)
9164 delete arg2;
9165 }
9166 return NULL;
9167}
9168
9169
9170SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj = 0;
9172 wxListBox *arg1 = (wxListBox *) 0 ;
9173 wxArrayString *arg2 = 0 ;
50f151d7 9174 unsigned int arg3 ;
1bd55598
RD
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 bool temp2 = false ;
50f151d7 9178 unsigned int val3 ;
1bd55598
RD
9179 int ecode3 = 0 ;
9180 PyObject * obj0 = 0 ;
9181 PyObject * obj1 = 0 ;
9182 PyObject * obj2 = 0 ;
9183 char * kwnames[] = {
9184 (char *) "self",(char *) "items",(char *) "pos", NULL
9185 };
9186
9187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9189 if (!SWIG_IsOK(res1)) {
9190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9191 }
9192 arg1 = reinterpret_cast< wxListBox * >(argp1);
9193 {
9194 if (! PySequence_Check(obj1)) {
9195 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9196 SWIG_fail;
9197 }
9198 arg2 = new wxArrayString;
9199 temp2 = true;
9200 int i, len=PySequence_Length(obj1);
9201 for (i=0; i<len; i++) {
9202 PyObject* item = PySequence_GetItem(obj1, i);
9203 wxString* s = wxString_in_helper(item);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 arg2->Add(*s);
9206 delete s;
9207 Py_DECREF(item);
f20a2e1f 9208 }
1bd55598 9209 }
50f151d7 9210 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9211 if (!SWIG_IsOK(ecode3)) {
50f151d7 9212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9213 }
50f151d7 9214 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9215 {
9216 PyThreadState* __tstate = wxPyBeginAllowThreads();
9217 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_Py_Void();
9222 {
9223 if (temp2) delete arg2;
9224 }
9225 return resultobj;
9226fail:
9227 {
9228 if (temp2) delete arg2;
9229 }
9230 return NULL;
f20a2e1f
RD
9231}
9232
9233
1bd55598
RD
9234SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj = 0;
9236 wxListBox *arg1 = (wxListBox *) 0 ;
9237 wxArrayString *arg2 = 0 ;
9238 void *argp1 = 0 ;
9239 int res1 = 0 ;
9240 bool temp2 = false ;
9241 PyObject * obj0 = 0 ;
9242 PyObject * obj1 = 0 ;
9243 char * kwnames[] = {
9244 (char *) "self",(char *) "items", NULL
9245 };
9246
9247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9251 }
9252 arg1 = reinterpret_cast< wxListBox * >(argp1);
9253 {
9254 if (! PySequence_Check(obj1)) {
9255 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9256 SWIG_fail;
9257 }
9258 arg2 = new wxArrayString;
9259 temp2 = true;
9260 int i, len=PySequence_Length(obj1);
9261 for (i=0; i<len; i++) {
9262 PyObject* item = PySequence_GetItem(obj1, i);
9263 wxString* s = wxString_in_helper(item);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 arg2->Add(*s);
9266 delete s;
9267 Py_DECREF(item);
bfddbb17 9268 }
1bd55598
RD
9269 }
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 (arg1)->Set((wxArrayString const &)*arg2);
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 resultobj = SWIG_Py_Void();
9277 {
9278 if (temp2) delete arg2;
9279 }
9280 return resultobj;
9281fail:
9282 {
9283 if (temp2) delete arg2;
9284 }
9285 return NULL;
9286}
9287
9288
9289SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9290 PyObject *resultobj = 0;
9291 wxListBox *arg1 = (wxListBox *) 0 ;
9292 int arg2 ;
9293 bool result;
9294 void *argp1 = 0 ;
9295 int res1 = 0 ;
9296 int val2 ;
9297 int ecode2 = 0 ;
9298 PyObject * obj0 = 0 ;
9299 PyObject * obj1 = 0 ;
9300 char * kwnames[] = {
9301 (char *) "self",(char *) "n", NULL
9302 };
9303
9304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9306 if (!SWIG_IsOK(res1)) {
9307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9308 }
9309 arg1 = reinterpret_cast< wxListBox * >(argp1);
9310 ecode2 = SWIG_AsVal_int(obj1, &val2);
9311 if (!SWIG_IsOK(ecode2)) {
9312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9313 }
9314 arg2 = static_cast< int >(val2);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 {
9322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9323 }
9324 return resultobj;
9325fail:
9326 return NULL;
9327}
9328
9329
9330SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj = 0;
9332 wxListBox *arg1 = (wxListBox *) 0 ;
9333 int arg2 ;
9334 bool arg3 = (bool) true ;
9335 void *argp1 = 0 ;
9336 int res1 = 0 ;
9337 int val2 ;
9338 int ecode2 = 0 ;
9339 bool val3 ;
9340 int ecode3 = 0 ;
9341 PyObject * obj0 = 0 ;
9342 PyObject * obj1 = 0 ;
9343 PyObject * obj2 = 0 ;
9344 char * kwnames[] = {
9345 (char *) "self",(char *) "n",(char *) "select", NULL
9346 };
9347
9348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9350 if (!SWIG_IsOK(res1)) {
9351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9352 }
9353 arg1 = reinterpret_cast< wxListBox * >(argp1);
9354 ecode2 = SWIG_AsVal_int(obj1, &val2);
9355 if (!SWIG_IsOK(ecode2)) {
9356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9357 }
9358 arg2 = static_cast< int >(val2);
9359 if (obj2) {
9360 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9361 if (!SWIG_IsOK(ecode3)) {
9362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9363 }
9364 arg3 = static_cast< bool >(val3);
9365 }
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 (arg1)->SetSelection(arg2,arg3);
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_Py_Void();
9373 return resultobj;
9374fail:
9375 return NULL;
9376}
9377
9378
9379SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj = 0;
9381 wxListBox *arg1 = (wxListBox *) 0 ;
9382 int arg2 ;
9383 void *argp1 = 0 ;
9384 int res1 = 0 ;
9385 int val2 ;
9386 int ecode2 = 0 ;
9387 PyObject * obj0 = 0 ;
9388 PyObject * obj1 = 0 ;
9389 char * kwnames[] = {
9390 (char *) "self",(char *) "n", NULL
9391 };
9392
9393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9395 if (!SWIG_IsOK(res1)) {
9396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9397 }
9398 arg1 = reinterpret_cast< wxListBox * >(argp1);
9399 ecode2 = SWIG_AsVal_int(obj1, &val2);
9400 if (!SWIG_IsOK(ecode2)) {
9401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9402 }
9403 arg2 = static_cast< int >(val2);
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 (arg1)->Select(arg2);
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 resultobj = SWIG_Py_Void();
9411 return resultobj;
9412fail:
9413 return NULL;
9414}
9415
9416
9417SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj = 0;
9419 wxListBox *arg1 = (wxListBox *) 0 ;
9420 int arg2 ;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 int val2 ;
9424 int ecode2 = 0 ;
9425 PyObject * obj0 = 0 ;
9426 PyObject * obj1 = 0 ;
9427 char * kwnames[] = {
9428 (char *) "self",(char *) "n", NULL
9429 };
9430
9431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9433 if (!SWIG_IsOK(res1)) {
9434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9435 }
9436 arg1 = reinterpret_cast< wxListBox * >(argp1);
9437 ecode2 = SWIG_AsVal_int(obj1, &val2);
9438 if (!SWIG_IsOK(ecode2)) {
9439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9440 }
9441 arg2 = static_cast< int >(val2);
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 (arg1)->Deselect(arg2);
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 resultobj = SWIG_Py_Void();
9449 return resultobj;
9450fail:
9451 return NULL;
9452}
9453
9454
9455SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj = 0;
9457 wxListBox *arg1 = (wxListBox *) 0 ;
9458 int arg2 = (int) -1 ;
9459 void *argp1 = 0 ;
9460 int res1 = 0 ;
9461 int val2 ;
9462 int ecode2 = 0 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 char * kwnames[] = {
9466 (char *) "self",(char *) "itemToLeaveSelected", NULL
9467 };
9468
9469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9473 }
9474 arg1 = reinterpret_cast< wxListBox * >(argp1);
9475 if (obj1) {
9476 ecode2 = SWIG_AsVal_int(obj1, &val2);
9477 if (!SWIG_IsOK(ecode2)) {
9478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9479 }
9480 arg2 = static_cast< int >(val2);
9481 }
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 (arg1)->DeselectAll(arg2);
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 resultobj = SWIG_Py_Void();
9489 return resultobj;
9490fail:
9491 return NULL;
9492}
9493
9494
9495SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj = 0;
9497 wxListBox *arg1 = (wxListBox *) 0 ;
9498 wxString *arg2 = 0 ;
9499 bool arg3 = (bool) true ;
9500 bool result;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 bool temp2 = false ;
9504 bool val3 ;
9505 int ecode3 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 PyObject * obj2 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "s",(char *) "select", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9517 }
9518 arg1 = reinterpret_cast< wxListBox * >(argp1);
9519 {
9520 arg2 = wxString_in_helper(obj1);
9521 if (arg2 == NULL) SWIG_fail;
9522 temp2 = true;
9523 }
9524 if (obj2) {
9525 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9526 if (!SWIG_IsOK(ecode3)) {
9527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9528 }
9529 arg3 = static_cast< bool >(val3);
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 {
9538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9539 }
9540 {
9541 if (temp2)
9542 delete arg2;
9543 }
9544 return resultobj;
9545fail:
9546 {
9547 if (temp2)
9548 delete arg2;
9549 }
9550 return NULL;
d55e5bfc
RD
9551}
9552
9553
1bd55598
RD
9554SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9555 PyObject *resultobj = 0;
9556 wxListBox *arg1 = (wxListBox *) 0 ;
9557 PyObject *result = 0 ;
9558 void *argp1 = 0 ;
9559 int res1 = 0 ;
9560 PyObject *swig_obj[1] ;
9561
9562 if (!args) SWIG_fail;
9563 swig_obj[0] = args;
9564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9565 if (!SWIG_IsOK(res1)) {
9566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9567 }
9568 arg1 = reinterpret_cast< wxListBox * >(argp1);
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 result = (PyObject *)wxListBox_GetSelections(arg1);
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 resultobj = result;
9576 return resultobj;
9577fail:
9578 return NULL;
9579}
9580
9581
9582SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9583 PyObject *resultobj = 0;
9584 wxListBox *arg1 = (wxListBox *) 0 ;
9585 int arg2 ;
9586 void *argp1 = 0 ;
9587 int res1 = 0 ;
9588 int val2 ;
9589 int ecode2 = 0 ;
9590 PyObject * obj0 = 0 ;
9591 PyObject * obj1 = 0 ;
9592 char * kwnames[] = {
9593 (char *) "self",(char *) "n", NULL
9594 };
9595
9596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9598 if (!SWIG_IsOK(res1)) {
9599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9600 }
9601 arg1 = reinterpret_cast< wxListBox * >(argp1);
9602 ecode2 = SWIG_AsVal_int(obj1, &val2);
9603 if (!SWIG_IsOK(ecode2)) {
9604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9605 }
9606 arg2 = static_cast< int >(val2);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->SetFirstItem(arg2);
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_Py_Void();
9614 return resultobj;
9615fail:
9616 return NULL;
9617}
9618
9619
9620SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 wxString *arg2 = 0 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 bool temp2 = false ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 char * kwnames[] = {
9630 (char *) "self",(char *) "s", NULL
9631 };
9632
9633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9637 }
9638 arg1 = reinterpret_cast< wxListBox * >(argp1);
9639 {
9640 arg2 = wxString_in_helper(obj1);
9641 if (arg2 == NULL) SWIG_fail;
9642 temp2 = true;
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 (arg1)->SetFirstItem((wxString const &)*arg2);
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_Py_Void();
9651 {
9652 if (temp2)
9653 delete arg2;
9654 }
9655 return resultobj;
9656fail:
9657 {
9658 if (temp2)
9659 delete arg2;
9660 }
9661 return NULL;
9662}
9663
9664
9665SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj = 0;
9667 wxListBox *arg1 = (wxListBox *) 0 ;
9668 int arg2 ;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 int val2 ;
9672 int ecode2 = 0 ;
9673 PyObject * obj0 = 0 ;
9674 PyObject * obj1 = 0 ;
9675 char * kwnames[] = {
9676 (char *) "self",(char *) "n", NULL
9677 };
9678
9679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9683 }
9684 arg1 = reinterpret_cast< wxListBox * >(argp1);
9685 ecode2 = SWIG_AsVal_int(obj1, &val2);
9686 if (!SWIG_IsOK(ecode2)) {
9687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9688 }
9689 arg2 = static_cast< int >(val2);
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 (arg1)->EnsureVisible(arg2);
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 resultobj = SWIG_Py_Void();
9697 return resultobj;
9698fail:
9699 return NULL;
9700}
9701
9702
9703SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj = 0;
9705 wxListBox *arg1 = (wxListBox *) 0 ;
9706 wxString *arg2 = 0 ;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 bool temp2 = false ;
9710 PyObject * obj0 = 0 ;
9711 PyObject * obj1 = 0 ;
9712 char * kwnames[] = {
9713 (char *) "self",(char *) "s", NULL
9714 };
9715
9716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9718 if (!SWIG_IsOK(res1)) {
9719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9720 }
9721 arg1 = reinterpret_cast< wxListBox * >(argp1);
9722 {
9723 arg2 = wxString_in_helper(obj1);
9724 if (arg2 == NULL) SWIG_fail;
9725 temp2 = true;
9726 }
9727 {
9728 PyThreadState* __tstate = wxPyBeginAllowThreads();
9729 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 resultobj = SWIG_Py_Void();
9734 {
9735 if (temp2)
9736 delete arg2;
9737 }
9738 return resultobj;
9739fail:
9740 {
9741 if (temp2)
9742 delete arg2;
9743 }
9744 return NULL;
d55e5bfc
RD
9745}
9746
9747
1bd55598
RD
9748SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9749 PyObject *resultobj = 0;
9750 wxListBox *arg1 = (wxListBox *) 0 ;
9751 bool result;
9752 void *argp1 = 0 ;
9753 int res1 = 0 ;
9754 PyObject *swig_obj[1] ;
9755
9756 if (!args) SWIG_fail;
9757 swig_obj[0] = args;
9758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9759 if (!SWIG_IsOK(res1)) {
9760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9761 }
9762 arg1 = reinterpret_cast< wxListBox * >(argp1);
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 result = (bool)((wxListBox const *)arg1)->IsSorted();
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 {
9770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9771 }
9772 return resultobj;
9773fail:
9774 return NULL;
9775}
9776
9777
9778SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9779 PyObject *resultobj = 0;
9780 wxListBox *arg1 = (wxListBox *) 0 ;
9781 wxPoint *arg2 = 0 ;
9782 int result;
9783 void *argp1 = 0 ;
9784 int res1 = 0 ;
9785 wxPoint temp2 ;
9786 PyObject * obj0 = 0 ;
9787 PyObject * obj1 = 0 ;
9788 char * kwnames[] = {
9789 (char *) "self",(char *) "pt", NULL
9790 };
9791
9792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9794 if (!SWIG_IsOK(res1)) {
9795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9796 }
9797 arg1 = reinterpret_cast< wxListBox * >(argp1);
9798 {
9799 arg2 = &temp2;
9800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9801 }
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_From_int(static_cast< int >(result));
9809 return resultobj;
9810fail:
9811 return NULL;
9812}
9813
9814
9815SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj = 0;
9817 wxListBox *arg1 = (wxListBox *) 0 ;
9818 int arg2 ;
9819 wxColour *arg3 = 0 ;
9820 void *argp1 = 0 ;
9821 int res1 = 0 ;
9822 int val2 ;
9823 int ecode2 = 0 ;
9824 wxColour temp3 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 PyObject * obj2 = 0 ;
9828 char * kwnames[] = {
9829 (char *) "self",(char *) "item",(char *) "c", NULL
9830 };
9831
9832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9836 }
9837 arg1 = reinterpret_cast< wxListBox * >(argp1);
9838 ecode2 = SWIG_AsVal_int(obj1, &val2);
9839 if (!SWIG_IsOK(ecode2)) {
9840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9841 }
9842 arg2 = static_cast< int >(val2);
9843 {
9844 arg3 = &temp3;
9845 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_Py_Void();
9854 return resultobj;
9855fail:
9856 return NULL;
9857}
9858
9859
9860SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxListBox *arg1 = (wxListBox *) 0 ;
9863 int arg2 ;
9864 wxColour *arg3 = 0 ;
9865 void *argp1 = 0 ;
9866 int res1 = 0 ;
9867 int val2 ;
9868 int ecode2 = 0 ;
9869 wxColour temp3 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 PyObject * obj2 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "self",(char *) "item",(char *) "c", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9881 }
9882 arg1 = reinterpret_cast< wxListBox * >(argp1);
9883 ecode2 = SWIG_AsVal_int(obj1, &val2);
9884 if (!SWIG_IsOK(ecode2)) {
9885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9886 }
9887 arg2 = static_cast< int >(val2);
9888 {
9889 arg3 = &temp3;
9890 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_Py_Void();
9899 return resultobj;
9900fail:
9901 return NULL;
9902}
9903
9904
9905SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj = 0;
9907 wxListBox *arg1 = (wxListBox *) 0 ;
9908 int arg2 ;
9909 wxFont *arg3 = 0 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 int val2 ;
9913 int ecode2 = 0 ;
9914 void *argp3 = 0 ;
9915 int res3 = 0 ;
9916 PyObject * obj0 = 0 ;
9917 PyObject * obj1 = 0 ;
9918 PyObject * obj2 = 0 ;
9919 char * kwnames[] = {
9920 (char *) "self",(char *) "item",(char *) "f", NULL
9921 };
9922
9923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9925 if (!SWIG_IsOK(res1)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9927 }
9928 arg1 = reinterpret_cast< wxListBox * >(argp1);
9929 ecode2 = SWIG_AsVal_int(obj1, &val2);
9930 if (!SWIG_IsOK(ecode2)) {
9931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9932 }
9933 arg2 = static_cast< int >(val2);
9934 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9935 if (!SWIG_IsOK(res3)) {
9936 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9937 }
9938 if (!argp3) {
9939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9940 }
9941 arg3 = reinterpret_cast< wxFont * >(argp3);
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) SWIG_fail;
9947 }
9948 resultobj = SWIG_Py_Void();
9949 return resultobj;
9950fail:
9951 return NULL;
9952}
9953
9954
9955SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9956 PyObject *resultobj = 0;
9957 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9958 SwigValueWrapper<wxVisualAttributes > result;
9959 int val1 ;
9960 int ecode1 = 0 ;
9961 PyObject * obj0 = 0 ;
9962 char * kwnames[] = {
9963 (char *) "variant", NULL
9964 };
9965
9966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9967 if (obj0) {
9968 ecode1 = SWIG_AsVal_int(obj0, &val1);
9969 if (!SWIG_IsOK(ecode1)) {
9970 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9971 }
9972 arg1 = static_cast< wxWindowVariant >(val1);
9973 }
9974 {
9975 if (!wxPyCheckForApp()) SWIG_fail;
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 result = wxListBox::GetClassDefaultAttributes(arg1);
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9982 return resultobj;
9983fail:
9984 return NULL;
9985}
9986
9987
9988SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9989 PyObject *obj;
9990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9991 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9992 return SWIG_Py_Void();
9993}
9994
9995SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9996 return SWIG_Python_InitShadowInstance(args);
9997}
9998
9999SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj = 0;
10001 wxWindow *arg1 = (wxWindow *) 0 ;
10002 int arg2 = (int) -1 ;
10003 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10004 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10005 wxSize const &arg4_defvalue = wxDefaultSize ;
10006 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10007 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10008 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10009 long arg6 = (long) 0 ;
10010 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10011 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10012 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10013 wxString *arg8 = (wxString *) &arg8_defvalue ;
10014 wxCheckListBox *result = 0 ;
10015 void *argp1 = 0 ;
10016 int res1 = 0 ;
10017 int val2 ;
10018 int ecode2 = 0 ;
10019 wxPoint temp3 ;
10020 wxSize temp4 ;
10021 bool temp5 = false ;
10022 long val6 ;
10023 int ecode6 = 0 ;
10024 void *argp7 = 0 ;
10025 int res7 = 0 ;
10026 bool temp8 = false ;
10027 PyObject * obj0 = 0 ;
10028 PyObject * obj1 = 0 ;
10029 PyObject * obj2 = 0 ;
10030 PyObject * obj3 = 0 ;
10031 PyObject * obj4 = 0 ;
10032 PyObject * obj5 = 0 ;
10033 PyObject * obj6 = 0 ;
10034 PyObject * obj7 = 0 ;
10035 char * kwnames[] = {
10036 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10037 };
10038
10039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10041 if (!SWIG_IsOK(res1)) {
10042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10043 }
10044 arg1 = reinterpret_cast< wxWindow * >(argp1);
10045 if (obj1) {
10046 ecode2 = SWIG_AsVal_int(obj1, &val2);
10047 if (!SWIG_IsOK(ecode2)) {
10048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10049 }
10050 arg2 = static_cast< int >(val2);
10051 }
10052 if (obj2) {
10053 {
10054 arg3 = &temp3;
10055 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 10056 }
1bd55598
RD
10057 }
10058 if (obj3) {
10059 {
10060 arg4 = &temp4;
10061 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10062 }
1bd55598
RD
10063 }
10064 if (obj4) {
10065 {
10066 if (! PySequence_Check(obj4)) {
10067 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10068 SWIG_fail;
10069 }
10070 arg5 = new wxArrayString;
10071 temp5 = true;
10072 int i, len=PySequence_Length(obj4);
10073 for (i=0; i<len; i++) {
10074 PyObject* item = PySequence_GetItem(obj4, i);
10075 wxString* s = wxString_in_helper(item);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 arg5->Add(*s);
10078 delete s;
10079 Py_DECREF(item);
10080 }
d55e5bfc 10081 }
1bd55598
RD
10082 }
10083 if (obj5) {
10084 ecode6 = SWIG_AsVal_long(obj5, &val6);
10085 if (!SWIG_IsOK(ecode6)) {
10086 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10087 }
10088 arg6 = static_cast< long >(val6);
10089 }
10090 if (obj6) {
10091 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10092 if (!SWIG_IsOK(res7)) {
10093 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10094 }
1bd55598
RD
10095 if (!argp7) {
10096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10097 }
1bd55598
RD
10098 arg7 = reinterpret_cast< wxValidator * >(argp7);
10099 }
10100 if (obj7) {
10101 {
10102 arg8 = wxString_in_helper(obj7);
10103 if (arg8 == NULL) SWIG_fail;
10104 temp8 = true;
d55e5bfc 10105 }
1bd55598
RD
10106 }
10107 {
10108 if (!wxPyCheckForApp()) SWIG_fail;
10109 PyThreadState* __tstate = wxPyBeginAllowThreads();
10110 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10115 {
10116 if (temp5) delete arg5;
10117 }
10118 {
10119 if (temp8)
10120 delete arg8;
10121 }
10122 return resultobj;
10123fail:
10124 {
10125 if (temp5) delete arg5;
10126 }
10127 {
10128 if (temp8)
10129 delete arg8;
10130 }
10131 return NULL;
10132}
10133
10134
10135SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10136 PyObject *resultobj = 0;
10137 wxCheckListBox *result = 0 ;
10138
10139 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10140 {
10141 if (!wxPyCheckForApp()) SWIG_fail;
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 result = (wxCheckListBox *)new wxCheckListBox();
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10148 return resultobj;
10149fail:
10150 return NULL;
10151}
10152
10153
10154SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10155 PyObject *resultobj = 0;
10156 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10157 wxWindow *arg2 = (wxWindow *) 0 ;
10158 int arg3 = (int) -1 ;
10159 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10160 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10161 wxSize const &arg5_defvalue = wxDefaultSize ;
10162 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10163 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10164 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10165 long arg7 = (long) 0 ;
10166 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10167 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10168 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10169 wxString *arg9 = (wxString *) &arg9_defvalue ;
10170 bool result;
10171 void *argp1 = 0 ;
10172 int res1 = 0 ;
10173 void *argp2 = 0 ;
10174 int res2 = 0 ;
10175 int val3 ;
10176 int ecode3 = 0 ;
10177 wxPoint temp4 ;
10178 wxSize temp5 ;
10179 bool temp6 = false ;
10180 long val7 ;
10181 int ecode7 = 0 ;
10182 void *argp8 = 0 ;
10183 int res8 = 0 ;
10184 bool temp9 = false ;
10185 PyObject * obj0 = 0 ;
10186 PyObject * obj1 = 0 ;
10187 PyObject * obj2 = 0 ;
10188 PyObject * obj3 = 0 ;
10189 PyObject * obj4 = 0 ;
10190 PyObject * obj5 = 0 ;
10191 PyObject * obj6 = 0 ;
10192 PyObject * obj7 = 0 ;
10193 PyObject * obj8 = 0 ;
10194 char * kwnames[] = {
10195 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10196 };
10197
10198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10200 if (!SWIG_IsOK(res1)) {
10201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10202 }
10203 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10204 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10205 if (!SWIG_IsOK(res2)) {
10206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10207 }
10208 arg2 = reinterpret_cast< wxWindow * >(argp2);
10209 if (obj2) {
10210 ecode3 = SWIG_AsVal_int(obj2, &val3);
10211 if (!SWIG_IsOK(ecode3)) {
10212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10213 }
10214 arg3 = static_cast< int >(val3);
10215 }
10216 if (obj3) {
d55e5bfc 10217 {
1bd55598
RD
10218 arg4 = &temp4;
10219 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10220 }
1bd55598
RD
10221 }
10222 if (obj4) {
d55e5bfc 10223 {
1bd55598
RD
10224 arg5 = &temp5;
10225 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10226 }
1bd55598
RD
10227 }
10228 if (obj5) {
d55e5bfc 10229 {
1bd55598
RD
10230 if (! PySequence_Check(obj5)) {
10231 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10232 SWIG_fail;
10233 }
10234 arg6 = new wxArrayString;
10235 temp6 = true;
10236 int i, len=PySequence_Length(obj5);
10237 for (i=0; i<len; i++) {
10238 PyObject* item = PySequence_GetItem(obj5, i);
10239 wxString* s = wxString_in_helper(item);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 arg6->Add(*s);
10242 delete s;
10243 Py_DECREF(item);
10244 }
10245 }
10246 }
10247 if (obj6) {
10248 ecode7 = SWIG_AsVal_long(obj6, &val7);
10249 if (!SWIG_IsOK(ecode7)) {
10250 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10251 }
10252 arg7 = static_cast< long >(val7);
10253 }
10254 if (obj7) {
10255 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10256 if (!SWIG_IsOK(res8)) {
10257 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10258 }
10259 if (!argp8) {
10260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10261 }
1bd55598
RD
10262 arg8 = reinterpret_cast< wxValidator * >(argp8);
10263 }
10264 if (obj8) {
d55e5bfc 10265 {
1bd55598
RD
10266 arg9 = wxString_in_helper(obj8);
10267 if (arg9 == NULL) SWIG_fail;
10268 temp9 = true;
d55e5bfc 10269 }
1bd55598
RD
10270 }
10271 {
10272 PyThreadState* __tstate = wxPyBeginAllowThreads();
10273 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10274 wxPyEndAllowThreads(__tstate);
10275 if (PyErr_Occurred()) SWIG_fail;
10276 }
10277 {
10278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10279 }
10280 {
10281 if (temp6) delete arg6;
10282 }
10283 {
10284 if (temp9)
10285 delete arg9;
10286 }
10287 return resultobj;
10288fail:
10289 {
10290 if (temp6) delete arg6;
10291 }
10292 {
10293 if (temp9)
10294 delete arg9;
10295 }
10296 return NULL;
10297}
10298
10299
10300SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj = 0;
10302 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10303 unsigned int arg2 ;
1bd55598
RD
10304 bool result;
10305 void *argp1 = 0 ;
10306 int res1 = 0 ;
50f151d7 10307 unsigned int val2 ;
1bd55598
RD
10308 int ecode2 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 char * kwnames[] = {
10312 (char *) "self",(char *) "index", NULL
10313 };
10314
10315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10317 if (!SWIG_IsOK(res1)) {
10318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10319 }
10320 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10321 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10322 if (!SWIG_IsOK(ecode2)) {
50f151d7 10323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10324 }
50f151d7 10325 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 result = (bool)(arg1)->IsChecked(arg2);
10329 wxPyEndAllowThreads(__tstate);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 {
10333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10334 }
10335 return resultobj;
10336fail:
10337 return NULL;
10338}
10339
10340
10341SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10342 PyObject *resultobj = 0;
10343 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10344 unsigned int arg2 ;
1bd55598
RD
10345 int arg3 = (int) true ;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
50f151d7 10348 unsigned int val2 ;
1bd55598
RD
10349 int ecode2 = 0 ;
10350 int val3 ;
10351 int ecode3 = 0 ;
10352 PyObject * obj0 = 0 ;
10353 PyObject * obj1 = 0 ;
10354 PyObject * obj2 = 0 ;
10355 char * kwnames[] = {
10356 (char *) "self",(char *) "index",(char *) "check", NULL
10357 };
10358
10359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10363 }
10364 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10365 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10366 if (!SWIG_IsOK(ecode2)) {
50f151d7 10367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10368 }
50f151d7 10369 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10370 if (obj2) {
10371 ecode3 = SWIG_AsVal_int(obj2, &val3);
10372 if (!SWIG_IsOK(ecode3)) {
10373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10374 }
10375 arg3 = static_cast< int >(val3);
10376 }
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 (arg1)->Check(arg2,arg3);
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 resultobj = SWIG_Py_Void();
10384 return resultobj;
10385fail:
10386 return NULL;
d55e5bfc
RD
10387}
10388
10389
1bd55598
RD
10390SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10391 PyObject *obj;
10392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10393 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10394 return SWIG_Py_Void();
d55e5bfc
RD
10395}
10396
1bd55598
RD
10397SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10398 return SWIG_Python_InitShadowInstance(args);
10399}
d55e5bfc 10400
1bd55598
RD
10401SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10402 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10403 return 1;
d55e5bfc
RD
10404}
10405
10406
1bd55598
RD
10407SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10408 PyObject *pyobj = 0;
10409
10410 {
d55e5bfc 10411#if wxUSE_UNICODE
1bd55598 10412 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10413#else
1bd55598 10414 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10415#endif
1bd55598
RD
10416 }
10417 return pyobj;
10418}
10419
10420
10421SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10422 PyObject *resultobj = 0;
10423 wxColour const &arg1_defvalue = wxNullColour ;
10424 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10425 wxColour const &arg2_defvalue = wxNullColour ;
10426 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10427 wxFont const &arg3_defvalue = wxNullFont ;
10428 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10429 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10430 wxTextAttr *result = 0 ;
10431 wxColour temp1 ;
10432 wxColour temp2 ;
10433 void *argp3 = 0 ;
10434 int res3 = 0 ;
10435 int val4 ;
10436 int ecode4 = 0 ;
10437 PyObject * obj0 = 0 ;
10438 PyObject * obj1 = 0 ;
10439 PyObject * obj2 = 0 ;
10440 PyObject * obj3 = 0 ;
10441 char * kwnames[] = {
10442 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10443 };
10444
10445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10446 if (obj0) {
d55e5bfc 10447 {
1bd55598
RD
10448 arg1 = &temp1;
10449 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10450 }
1bd55598
RD
10451 }
10452 if (obj1) {
d55e5bfc 10453 {
1bd55598
RD
10454 arg2 = &temp2;
10455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10456 }
1bd55598
RD
10457 }
10458 if (obj2) {
10459 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10460 if (!SWIG_IsOK(res3)) {
10461 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10462 }
1bd55598
RD
10463 if (!argp3) {
10464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10465 }
1bd55598
RD
10466 arg3 = reinterpret_cast< wxFont * >(argp3);
10467 }
10468 if (obj3) {
10469 ecode4 = SWIG_AsVal_int(obj3, &val4);
10470 if (!SWIG_IsOK(ecode4)) {
10471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10472 }
10473 arg4 = static_cast< wxTextAttrAlignment >(val4);
10474 }
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10482 return resultobj;
10483fail:
10484 return NULL;
d55e5bfc
RD
10485}
10486
10487
1bd55598
RD
10488SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10489 PyObject *resultobj = 0;
10490 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10491 void *argp1 = 0 ;
10492 int res1 = 0 ;
10493 PyObject *swig_obj[1] ;
10494
10495 if (!args) SWIG_fail;
10496 swig_obj[0] = args;
10497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10498 if (!SWIG_IsOK(res1)) {
10499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10500 }
10501 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 delete arg1;
d55e5bfc 10505
1bd55598
RD
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_Py_Void();
10510 return resultobj;
10511fail:
10512 return NULL;
d55e5bfc
RD
10513}
10514
10515
1bd55598
RD
10516SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10517 PyObject *resultobj = 0;
10518 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject *swig_obj[1] ;
10522
10523 if (!args) SWIG_fail;
10524 swig_obj[0] = args;
10525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10528 }
10529 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 (arg1)->Init();
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_Py_Void();
10537 return resultobj;
10538fail:
10539 return NULL;
10540}
10541
10542
2131d850
RD
10543SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj = 0;
10545 wxTextAttr *arg1 = 0 ;
10546 wxTextAttr *arg2 = 0 ;
10547 wxTextAttr result;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 void *argp2 = 0 ;
10551 int res2 = 0 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "base",(char *) "overlay", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10562 }
10563 if (!argp1) {
10564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10565 }
10566 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10568 if (!SWIG_IsOK(res2)) {
10569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10570 }
10571 if (!argp2) {
10572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10573 }
10574 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10582 return resultobj;
10583fail:
10584 return NULL;
10585}
10586
10587
1bd55598
RD
10588SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10591 wxColour *arg2 = 0 ;
10592 void *argp1 = 0 ;
10593 int res1 = 0 ;
10594 wxColour temp2 ;
10595 PyObject * obj0 = 0 ;
10596 PyObject * obj1 = 0 ;
10597 char * kwnames[] = {
10598 (char *) "self",(char *) "colText", NULL
10599 };
10600
10601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10605 }
10606 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10607 {
10608 arg2 = &temp2;
10609 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10610 }
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 (arg1)->SetTextColour((wxColour const &)*arg2);
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 resultobj = SWIG_Py_Void();
10618 return resultobj;
10619fail:
10620 return NULL;
10621}
10622
10623
10624SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10625 PyObject *resultobj = 0;
10626 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10627 wxColour *arg2 = 0 ;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 wxColour temp2 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 char * kwnames[] = {
10634 (char *) "self",(char *) "colBack", NULL
10635 };
10636
10637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10639 if (!SWIG_IsOK(res1)) {
10640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10641 }
10642 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10643 {
10644 arg2 = &temp2;
10645 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10646 }
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 resultobj = SWIG_Py_Void();
10654 return resultobj;
10655fail:
10656 return NULL;
10657}
10658
10659
10660SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj = 0;
10662 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10663 wxFont *arg2 = 0 ;
10664 long arg3 = (long) wxTEXT_ATTR_FONT ;
10665 void *argp1 = 0 ;
10666 int res1 = 0 ;
10667 void *argp2 = 0 ;
10668 int res2 = 0 ;
10669 long val3 ;
10670 int ecode3 = 0 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 PyObject * obj2 = 0 ;
10674 char * kwnames[] = {
10675 (char *) "self",(char *) "font",(char *) "flags", NULL
10676 };
10677
10678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10680 if (!SWIG_IsOK(res1)) {
10681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10682 }
10683 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10685 if (!SWIG_IsOK(res2)) {
10686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10687 }
10688 if (!argp2) {
10689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10690 }
10691 arg2 = reinterpret_cast< wxFont * >(argp2);
10692 if (obj2) {
10693 ecode3 = SWIG_AsVal_long(obj2, &val3);
10694 if (!SWIG_IsOK(ecode3)) {
10695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10696 }
10697 arg3 = static_cast< long >(val3);
10698 }
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 resultobj = SWIG_Py_Void();
10706 return resultobj;
10707fail:
10708 return NULL;
10709}
10710
10711
10712SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10713 PyObject *resultobj = 0;
10714 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10715 wxTextAttrAlignment arg2 ;
10716 void *argp1 = 0 ;
10717 int res1 = 0 ;
10718 int val2 ;
10719 int ecode2 = 0 ;
10720 PyObject * obj0 = 0 ;
10721 PyObject * obj1 = 0 ;
10722 char * kwnames[] = {
10723 (char *) "self",(char *) "alignment", NULL
10724 };
10725
10726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10728 if (!SWIG_IsOK(res1)) {
10729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10730 }
10731 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10732 ecode2 = SWIG_AsVal_int(obj1, &val2);
10733 if (!SWIG_IsOK(ecode2)) {
10734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10735 }
10736 arg2 = static_cast< wxTextAttrAlignment >(val2);
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 (arg1)->SetAlignment(arg2);
10740 wxPyEndAllowThreads(__tstate);
10741 if (PyErr_Occurred()) SWIG_fail;
10742 }
10743 resultobj = SWIG_Py_Void();
10744 return resultobj;
10745fail:
10746 return NULL;
10747}
10748
10749
10750SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj = 0;
10752 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10753 wxArrayInt *arg2 = 0 ;
10754 void *argp1 = 0 ;
10755 int res1 = 0 ;
10756 bool temp2 = false ;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char * kwnames[] = {
10760 (char *) "self",(char *) "tabs", NULL
10761 };
10762
10763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10765 if (!SWIG_IsOK(res1)) {
10766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10767 }
10768 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10769 {
10770 if (! PySequence_Check(obj1)) {
10771 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10772 SWIG_fail;
10773 }
10774 arg2 = new wxArrayInt;
10775 temp2 = true;
10776 int i, len=PySequence_Length(obj1);
10777 for (i=0; i<len; i++) {
10778 PyObject* item = PySequence_GetItem(obj1, i);
10779 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10780 if (!number) {
10781 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10782 SWIG_fail;
10783 }
1bd55598
RD
10784 arg2->Add(PyInt_AS_LONG(number));
10785 Py_DECREF(item);
10786 Py_DECREF(number);
d55e5bfc 10787 }
1bd55598
RD
10788 }
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 resultobj = SWIG_Py_Void();
10796 {
10797 if (temp2) delete arg2;
10798 }
10799 return resultobj;
10800fail:
10801 {
10802 if (temp2) delete arg2;
10803 }
10804 return NULL;
10805}
10806
10807
10808SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10811 int arg2 ;
10812 int arg3 = (int) 0 ;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 int val2 ;
10816 int ecode2 = 0 ;
10817 int val3 ;
10818 int ecode3 = 0 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 PyObject * obj2 = 0 ;
10822 char * kwnames[] = {
10823 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10824 };
10825
10826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10830 }
10831 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10832 ecode2 = SWIG_AsVal_int(obj1, &val2);
10833 if (!SWIG_IsOK(ecode2)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10835 }
10836 arg2 = static_cast< int >(val2);
10837 if (obj2) {
10838 ecode3 = SWIG_AsVal_int(obj2, &val3);
10839 if (!SWIG_IsOK(ecode3)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10841 }
10842 arg3 = static_cast< int >(val3);
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetLeftIndent(arg2,arg3);
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 resultobj = SWIG_Py_Void();
10851 return resultobj;
10852fail:
10853 return NULL;
10854}
10855
10856
10857SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10858 PyObject *resultobj = 0;
10859 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10860 int arg2 ;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 int val2 ;
10864 int ecode2 = 0 ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "indent", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 ecode2 = SWIG_AsVal_int(obj1, &val2);
10878 if (!SWIG_IsOK(ecode2)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10880 }
10881 arg2 = static_cast< int >(val2);
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 (arg1)->SetRightIndent(arg2);
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 resultobj = SWIG_Py_Void();
10889 return resultobj;
10890fail:
10891 return NULL;
10892}
10893
10894
10895SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj = 0;
10897 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10898 long arg2 ;
10899 void *argp1 = 0 ;
10900 int res1 = 0 ;
10901 long val2 ;
10902 int ecode2 = 0 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 char * kwnames[] = {
10906 (char *) "self",(char *) "flags", NULL
10907 };
10908
10909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10913 }
10914 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10915 ecode2 = SWIG_AsVal_long(obj1, &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10918 }
10919 arg2 = static_cast< long >(val2);
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->SetFlags(arg2);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 resultobj = SWIG_Py_Void();
10927 return resultobj;
10928fail:
10929 return NULL;
d55e5bfc
RD
10930}
10931
10932
1bd55598
RD
10933SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10934 PyObject *resultobj = 0;
10935 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10936 bool result;
10937 void *argp1 = 0 ;
10938 int res1 = 0 ;
10939 PyObject *swig_obj[1] ;
10940
10941 if (!args) SWIG_fail;
10942 swig_obj[0] = args;
10943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10944 if (!SWIG_IsOK(res1)) {
10945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10946 }
10947 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 {
10955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10956 }
10957 return resultobj;
10958fail:
10959 return NULL;
d55e5bfc
RD
10960}
10961
10962
1bd55598
RD
10963SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10964 PyObject *resultobj = 0;
10965 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10966 bool result;
10967 void *argp1 = 0 ;
10968 int res1 = 0 ;
10969 PyObject *swig_obj[1] ;
10970
10971 if (!args) SWIG_fail;
10972 swig_obj[0] = args;
10973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10976 }
10977 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10978 {
10979 PyThreadState* __tstate = wxPyBeginAllowThreads();
10980 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 {
10985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10986 }
10987 return resultobj;
10988fail:
10989 return NULL;
d55e5bfc
RD
10990}
10991
10992
1bd55598
RD
10993SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10994 PyObject *resultobj = 0;
10995 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10996 bool result;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject *swig_obj[1] ;
11000
11001 if (!args) SWIG_fail;
11002 swig_obj[0] = args;
11003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11006 }
11007 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018fail:
11019 return NULL;
d55e5bfc
RD
11020}
11021
11022
1bd55598
RD
11023SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11024 PyObject *resultobj = 0;
11025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 PyObject *swig_obj[1] ;
11030
11031 if (!args) SWIG_fail;
11032 swig_obj[0] = args;
11033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048fail:
11049 return NULL;
d55e5bfc
RD
11050}
11051
11052
1bd55598
RD
11053SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078fail:
11079 return NULL;
d55e5bfc
RD
11080}
11081
11082
1bd55598
RD
11083SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108fail:
11109 return NULL;
d55e5bfc
RD
11110}
11111
11112
1bd55598
RD
11113SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138fail:
11139 return NULL;
11140}
11141
11142
11143SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 long arg2 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 long val2 ;
11151 int ecode2 = 0 ;
11152 PyObject * obj0 = 0 ;
11153 PyObject * obj1 = 0 ;
11154 char * kwnames[] = {
11155 (char *) "self",(char *) "flag", NULL
11156 };
11157
11158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11160 if (!SWIG_IsOK(res1)) {
11161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11162 }
11163 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11164 ecode2 = SWIG_AsVal_long(obj1, &val2);
11165 if (!SWIG_IsOK(ecode2)) {
11166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11167 }
11168 arg2 = static_cast< long >(val2);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11177 }
11178 return resultobj;
11179fail:
11180 return NULL;
d55e5bfc
RD
11181}
11182
11183
1bd55598
RD
11184SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11187 wxColour *result = 0 ;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 PyObject *swig_obj[1] ;
11191
11192 if (!args) SWIG_fail;
11193 swig_obj[0] = args;
11194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11195 if (!SWIG_IsOK(res1)) {
11196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11197 }
11198 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11201 {
1bd55598
RD
11202 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11203 result = (wxColour *) &_result_ref;
d55e5bfc 11204 }
1bd55598
RD
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11209 return resultobj;
11210fail:
11211 return NULL;
d55e5bfc
RD
11212}
11213
11214
1bd55598
RD
11215SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11216 PyObject *resultobj = 0;
11217 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11218 wxColour *result = 0 ;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 PyObject *swig_obj[1] ;
11222
11223 if (!args) SWIG_fail;
11224 swig_obj[0] = args;
11225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11226 if (!SWIG_IsOK(res1)) {
11227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11228 }
11229 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11230 {
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11232 {
1bd55598
RD
11233 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11234 result = (wxColour *) &_result_ref;
d55e5bfc 11235 }
1bd55598
RD
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11240 return resultobj;
11241fail:
11242 return NULL;
d55e5bfc
RD
11243}
11244
11245
1bd55598
RD
11246SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 wxFont *result = 0 ;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11263 {
1bd55598
RD
11264 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11265 result = (wxFont *) &_result_ref;
d55e5bfc 11266 }
1bd55598
RD
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 wxFont* resultptr = new wxFont(*result);
11272 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11273 }
11274 return resultobj;
11275fail:
11276 return NULL;
d55e5bfc
RD
11277}
11278
11279
1bd55598
RD
11280SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11281 PyObject *resultobj = 0;
11282 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11283 wxTextAttrAlignment result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 PyObject *swig_obj[1] ;
11287
11288 if (!args) SWIG_fail;
11289 swig_obj[0] = args;
11290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11291 if (!SWIG_IsOK(res1)) {
11292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11293 }
11294 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11295 {
11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
11297 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 resultobj = SWIG_From_int(static_cast< int >(result));
11302 return resultobj;
11303fail:
11304 return NULL;
d55e5bfc
RD
11305}
11306
11307
1bd55598
RD
11308SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11309 PyObject *resultobj = 0;
11310 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11311 wxArrayInt *result = 0 ;
11312 void *argp1 = 0 ;
11313 int res1 = 0 ;
11314 PyObject *swig_obj[1] ;
11315
11316 if (!args) SWIG_fail;
11317 swig_obj[0] = args;
11318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11319 if (!SWIG_IsOK(res1)) {
11320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11321 }
11322 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11325 {
1bd55598
RD
11326 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11327 result = (wxArrayInt *) &_result_ref;
36ed4f51 11328 }
1bd55598
RD
11329 wxPyEndAllowThreads(__tstate);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 {
b39fe951 11333 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
11334 }
11335 return resultobj;
11336fail:
11337 return NULL;
d55e5bfc
RD
11338}
11339
11340
1bd55598
RD
11341SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11342 PyObject *resultobj = 0;
11343 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11344 long result;
11345 void *argp1 = 0 ;
11346 int res1 = 0 ;
11347 PyObject *swig_obj[1] ;
11348
11349 if (!args) SWIG_fail;
11350 swig_obj[0] = args;
11351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11352 if (!SWIG_IsOK(res1)) {
11353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11354 }
11355 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 resultobj = SWIG_From_long(static_cast< long >(result));
11363 return resultobj;
11364fail:
11365 return NULL;
d55e5bfc
RD
11366}
11367
11368
1bd55598
RD
11369SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11370 PyObject *resultobj = 0;
11371 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11372 long result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 PyObject *swig_obj[1] ;
11376
11377 if (!args) SWIG_fail;
11378 swig_obj[0] = args;
11379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11380 if (!SWIG_IsOK(res1)) {
11381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11382 }
11383 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_From_long(static_cast< long >(result));
11391 return resultobj;
11392fail:
11393 return NULL;
d55e5bfc
RD
11394}
11395
11396
1bd55598
RD
11397SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 PyObject *resultobj = 0;
11399 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11400 long result;
11401 void *argp1 = 0 ;
11402 int res1 = 0 ;
11403 PyObject *swig_obj[1] ;
11404
11405 if (!args) SWIG_fail;
11406 swig_obj[0] = args;
11407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11410 }
11411 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 resultobj = SWIG_From_long(static_cast< long >(result));
11419 return resultobj;
11420fail:
11421 return NULL;
d55e5bfc
RD
11422}
11423
11424
1bd55598
RD
11425SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11426 PyObject *resultobj = 0;
11427 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11428 long result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 PyObject *swig_obj[1] ;
11432
11433 if (!args) SWIG_fail;
11434 swig_obj[0] = args;
11435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11438 }
11439 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_From_long(static_cast< long >(result));
11447 return resultobj;
11448fail:
11449 return NULL;
d55e5bfc
RD
11450}
11451
11452
1bd55598
RD
11453SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11456 bool result;
11457 void *argp1 = 0 ;
11458 int res1 = 0 ;
11459 PyObject *swig_obj[1] ;
11460
11461 if (!args) SWIG_fail;
11462 swig_obj[0] = args;
11463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11476 }
11477 return resultobj;
11478fail:
11479 return NULL;
11480}
11481
11482
11483SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj = 0;
11485 wxTextAttr *arg1 = 0 ;
11486 wxTextAttr *arg2 = 0 ;
11487 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11488 wxTextAttr result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 void *argp2 = 0 ;
11492 int res2 = 0 ;
11493 void *argp3 = 0 ;
11494 int res3 = 0 ;
11495 PyObject * obj0 = 0 ;
11496 PyObject * obj1 = 0 ;
11497 PyObject * obj2 = 0 ;
11498 char * kwnames[] = {
11499 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11500 };
11501
11502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11503 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11504 if (!SWIG_IsOK(res1)) {
11505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11506 }
11507 if (!argp1) {
11508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11509 }
11510 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11512 if (!SWIG_IsOK(res2)) {
11513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11514 }
11515 if (!argp2) {
11516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11517 }
11518 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11519 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11520 if (!SWIG_IsOK(res3)) {
11521 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11522 }
11523 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11524 {
11525 PyThreadState* __tstate = wxPyBeginAllowThreads();
11526 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11531 return resultobj;
11532fail:
11533 return NULL;
11534}
11535
11536
11537SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11538 PyObject *obj;
11539 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11540 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11541 return SWIG_Py_Void();
11542}
11543
11544SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11545 return SWIG_Python_InitShadowInstance(args);
11546}
11547
11548SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj = 0;
11550 wxWindow *arg1 = (wxWindow *) 0 ;
11551 int arg2 = (int) -1 ;
11552 wxString const &arg3_defvalue = wxPyEmptyString ;
11553 wxString *arg3 = (wxString *) &arg3_defvalue ;
11554 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11555 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11556 wxSize const &arg5_defvalue = wxDefaultSize ;
11557 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11558 long arg6 = (long) 0 ;
11559 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11560 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11561 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11562 wxString *arg8 = (wxString *) &arg8_defvalue ;
11563 wxTextCtrl *result = 0 ;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 int val2 ;
11567 int ecode2 = 0 ;
11568 bool temp3 = false ;
11569 wxPoint temp4 ;
11570 wxSize temp5 ;
11571 long val6 ;
11572 int ecode6 = 0 ;
11573 void *argp7 = 0 ;
11574 int res7 = 0 ;
11575 bool temp8 = false ;
11576 PyObject * obj0 = 0 ;
11577 PyObject * obj1 = 0 ;
11578 PyObject * obj2 = 0 ;
11579 PyObject * obj3 = 0 ;
11580 PyObject * obj4 = 0 ;
11581 PyObject * obj5 = 0 ;
11582 PyObject * obj6 = 0 ;
11583 PyObject * obj7 = 0 ;
11584 char * kwnames[] = {
11585 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11586 };
11587
11588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11590 if (!SWIG_IsOK(res1)) {
11591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11592 }
11593 arg1 = reinterpret_cast< wxWindow * >(argp1);
11594 if (obj1) {
11595 ecode2 = SWIG_AsVal_int(obj1, &val2);
11596 if (!SWIG_IsOK(ecode2)) {
11597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11598 }
11599 arg2 = static_cast< int >(val2);
11600 }
11601 if (obj2) {
36ed4f51 11602 {
1bd55598
RD
11603 arg3 = wxString_in_helper(obj2);
11604 if (arg3 == NULL) SWIG_fail;
11605 temp3 = true;
36ed4f51 11606 }
1bd55598
RD
11607 }
11608 if (obj3) {
36ed4f51 11609 {
1bd55598
RD
11610 arg4 = &temp4;
11611 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11612 }
1bd55598
RD
11613 }
11614 if (obj4) {
d55e5bfc 11615 {
1bd55598
RD
11616 arg5 = &temp5;
11617 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11618 }
1bd55598
RD
11619 }
11620 if (obj5) {
11621 ecode6 = SWIG_AsVal_long(obj5, &val6);
11622 if (!SWIG_IsOK(ecode6)) {
11623 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11624 }
11625 arg6 = static_cast< long >(val6);
11626 }
11627 if (obj6) {
11628 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11629 if (!SWIG_IsOK(res7)) {
11630 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11631 }
1bd55598
RD
11632 if (!argp7) {
11633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11634 }
1bd55598
RD
11635 arg7 = reinterpret_cast< wxValidator * >(argp7);
11636 }
11637 if (obj7) {
d55e5bfc 11638 {
1bd55598
RD
11639 arg8 = wxString_in_helper(obj7);
11640 if (arg8 == NULL) SWIG_fail;
11641 temp8 = true;
d55e5bfc 11642 }
1bd55598
RD
11643 }
11644 {
11645 if (!wxPyCheckForApp()) SWIG_fail;
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11652 {
11653 if (temp3)
11654 delete arg3;
11655 }
11656 {
11657 if (temp8)
11658 delete arg8;
11659 }
11660 return resultobj;
11661fail:
11662 {
11663 if (temp3)
11664 delete arg3;
11665 }
11666 {
11667 if (temp8)
11668 delete arg8;
11669 }
11670 return NULL;
d55e5bfc
RD
11671}
11672
11673
1bd55598
RD
11674SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11675 PyObject *resultobj = 0;
11676 wxTextCtrl *result = 0 ;
11677
11678 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11679 {
11680 if (!wxPyCheckForApp()) SWIG_fail;
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 result = (wxTextCtrl *)new wxTextCtrl();
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11687 return resultobj;
11688fail:
11689 return NULL;
11690}
11691
11692
11693SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj = 0;
11695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11696 wxWindow *arg2 = (wxWindow *) 0 ;
11697 int arg3 = (int) -1 ;
11698 wxString const &arg4_defvalue = wxPyEmptyString ;
11699 wxString *arg4 = (wxString *) &arg4_defvalue ;
11700 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11701 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11702 wxSize const &arg6_defvalue = wxDefaultSize ;
11703 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11704 long arg7 = (long) 0 ;
11705 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11706 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11707 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11708 wxString *arg9 = (wxString *) &arg9_defvalue ;
11709 bool result;
11710 void *argp1 = 0 ;
11711 int res1 = 0 ;
11712 void *argp2 = 0 ;
11713 int res2 = 0 ;
11714 int val3 ;
11715 int ecode3 = 0 ;
11716 bool temp4 = false ;
11717 wxPoint temp5 ;
11718 wxSize temp6 ;
11719 long val7 ;
11720 int ecode7 = 0 ;
11721 void *argp8 = 0 ;
11722 int res8 = 0 ;
11723 bool temp9 = false ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 PyObject * obj2 = 0 ;
11727 PyObject * obj3 = 0 ;
11728 PyObject * obj4 = 0 ;
11729 PyObject * obj5 = 0 ;
11730 PyObject * obj6 = 0 ;
11731 PyObject * obj7 = 0 ;
11732 PyObject * obj8 = 0 ;
11733 char * kwnames[] = {
11734 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11735 };
11736
11737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11739 if (!SWIG_IsOK(res1)) {
11740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11741 }
11742 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11744 if (!SWIG_IsOK(res2)) {
11745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11746 }
11747 arg2 = reinterpret_cast< wxWindow * >(argp2);
11748 if (obj2) {
11749 ecode3 = SWIG_AsVal_int(obj2, &val3);
11750 if (!SWIG_IsOK(ecode3)) {
11751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11752 }
11753 arg3 = static_cast< int >(val3);
11754 }
11755 if (obj3) {
d55e5bfc 11756 {
1bd55598
RD
11757 arg4 = wxString_in_helper(obj3);
11758 if (arg4 == NULL) SWIG_fail;
11759 temp4 = true;
d55e5bfc 11760 }
1bd55598
RD
11761 }
11762 if (obj4) {
d55e5bfc 11763 {
1bd55598
RD
11764 arg5 = &temp5;
11765 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11766 }
1bd55598
RD
11767 }
11768 if (obj5) {
d55e5bfc 11769 {
1bd55598
RD
11770 arg6 = &temp6;
11771 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11772 }
1bd55598
RD
11773 }
11774 if (obj6) {
11775 ecode7 = SWIG_AsVal_long(obj6, &val7);
11776 if (!SWIG_IsOK(ecode7)) {
11777 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11778 }
11779 arg7 = static_cast< long >(val7);
11780 }
11781 if (obj7) {
11782 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11783 if (!SWIG_IsOK(res8)) {
11784 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11785 }
1bd55598
RD
11786 if (!argp8) {
11787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11788 }
11789 arg8 = reinterpret_cast< wxValidator * >(argp8);
11790 }
11791 if (obj8) {
d55e5bfc 11792 {
1bd55598
RD
11793 arg9 = wxString_in_helper(obj8);
11794 if (arg9 == NULL) SWIG_fail;
11795 temp9 = true;
d55e5bfc 11796 }
1bd55598
RD
11797 }
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 {
11805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11806 }
11807 {
11808 if (temp4)
11809 delete arg4;
11810 }
11811 {
11812 if (temp9)
11813 delete arg9;
11814 }
11815 return resultobj;
11816fail:
11817 {
11818 if (temp4)
11819 delete arg4;
11820 }
11821 {
11822 if (temp9)
11823 delete arg9;
11824 }
11825 return NULL;
d55e5bfc
RD
11826}
11827
11828
1bd55598
RD
11829SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11830 PyObject *resultobj = 0;
11831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11832 wxString result;
11833 void *argp1 = 0 ;
11834 int res1 = 0 ;
11835 PyObject *swig_obj[1] ;
11836
11837 if (!args) SWIG_fail;
11838 swig_obj[0] = args;
11839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11840 if (!SWIG_IsOK(res1)) {
11841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11842 }
11843 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = ((wxTextCtrl const *)arg1)->GetValue();
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 {
11851#if wxUSE_UNICODE
11852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11853#else
11854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11855#endif
11856 }
11857 return resultobj;
11858fail:
11859 return NULL;
11860}
11861
11862
11863SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11864 PyObject *resultobj = 0;
11865 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11866 wxString *arg2 = 0 ;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 bool temp2 = false ;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 char * kwnames[] = {
11873 (char *) "self",(char *) "value", NULL
11874 };
11875
11876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11880 }
11881 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11882 {
11883 arg2 = wxString_in_helper(obj1);
11884 if (arg2 == NULL) SWIG_fail;
11885 temp2 = true;
11886 }
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 (arg1)->SetValue((wxString const &)*arg2);
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_Py_Void();
11894 {
11895 if (temp2)
11896 delete arg2;
11897 }
11898 return resultobj;
11899fail:
11900 {
11901 if (temp2)
11902 delete arg2;
11903 }
11904 return NULL;
11905}
11906
11907
b39fe951
RD
11908SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11909 PyObject *resultobj = 0;
11910 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11911 bool result;
11912 void *argp1 = 0 ;
11913 int res1 = 0 ;
11914 PyObject *swig_obj[1] ;
11915
11916 if (!args) SWIG_fail;
11917 swig_obj[0] = args;
11918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11919 if (!SWIG_IsOK(res1)) {
11920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11921 }
11922 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 {
11930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11931 }
11932 return resultobj;
11933fail:
11934 return NULL;
11935}
11936
11937
11938SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj = 0;
11940 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11941 wxString *arg2 = 0 ;
11942 void *argp1 = 0 ;
11943 int res1 = 0 ;
11944 bool temp2 = false ;
11945 PyObject * obj0 = 0 ;
11946 PyObject * obj1 = 0 ;
11947 char * kwnames[] = {
11948 (char *) "self",(char *) "value", NULL
11949 };
11950
11951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11953 if (!SWIG_IsOK(res1)) {
11954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11955 }
11956 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11957 {
11958 arg2 = wxString_in_helper(obj1);
11959 if (arg2 == NULL) SWIG_fail;
11960 temp2 = true;
11961 }
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 (arg1)->ChangeValue((wxString const &)*arg2);
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 resultobj = SWIG_Py_Void();
11969 {
11970 if (temp2)
11971 delete arg2;
11972 }
11973 return resultobj;
11974fail:
11975 {
11976 if (temp2)
11977 delete arg2;
11978 }
11979 return NULL;
11980}
11981
11982
1bd55598
RD
11983SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj = 0;
11985 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11986 long arg2 ;
11987 long arg3 ;
11988 wxString result;
11989 void *argp1 = 0 ;
11990 int res1 = 0 ;
11991 long val2 ;
11992 int ecode2 = 0 ;
11993 long val3 ;
11994 int ecode3 = 0 ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 PyObject * obj2 = 0 ;
11998 char * kwnames[] = {
2131d850 11999 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12000 };
12001
12002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12004 if (!SWIG_IsOK(res1)) {
12005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12006 }
12007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12008 ecode2 = SWIG_AsVal_long(obj1, &val2);
12009 if (!SWIG_IsOK(ecode2)) {
12010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12011 }
12012 arg2 = static_cast< long >(val2);
12013 ecode3 = SWIG_AsVal_long(obj2, &val3);
12014 if (!SWIG_IsOK(ecode3)) {
12015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12016 }
12017 arg3 = static_cast< long >(val3);
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 {
12025#if wxUSE_UNICODE
12026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12027#else
12028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12029#endif
12030 }
12031 return resultobj;
12032fail:
12033 return NULL;
12034}
12035
12036
12037SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12038 PyObject *resultobj = 0;
12039 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12040 long arg2 ;
12041 int result;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 long val2 ;
12045 int ecode2 = 0 ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 char * kwnames[] = {
12049 (char *) "self",(char *) "lineNo", NULL
12050 };
12051
12052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12056 }
12057 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12058 ecode2 = SWIG_AsVal_long(obj1, &val2);
12059 if (!SWIG_IsOK(ecode2)) {
12060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12061 }
12062 arg2 = static_cast< long >(val2);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_From_int(static_cast< int >(result));
12070 return resultobj;
12071fail:
12072 return NULL;
12073}
12074
12075
12076SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12077 PyObject *resultobj = 0;
12078 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12079 long arg2 ;
12080 wxString result;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 long val2 ;
12084 int ecode2 = 0 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 char * kwnames[] = {
12088 (char *) "self",(char *) "lineNo", NULL
12089 };
12090
12091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12093 if (!SWIG_IsOK(res1)) {
12094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12095 }
12096 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12097 ecode2 = SWIG_AsVal_long(obj1, &val2);
12098 if (!SWIG_IsOK(ecode2)) {
12099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12100 }
12101 arg2 = static_cast< long >(val2);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 {
12109#if wxUSE_UNICODE
12110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12111#else
12112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12113#endif
12114 }
12115 return resultobj;
12116fail:
12117 return NULL;
d55e5bfc
RD
12118}
12119
12120
1bd55598
RD
12121SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12122 PyObject *resultobj = 0;
12123 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12124 int result;
12125 void *argp1 = 0 ;
12126 int res1 = 0 ;
12127 PyObject *swig_obj[1] ;
12128
12129 if (!args) SWIG_fail;
12130 swig_obj[0] = args;
12131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12134 }
12135 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_From_int(static_cast< int >(result));
12143 return resultobj;
12144fail:
12145 return NULL;
d55e5bfc
RD
12146}
12147
12148
1bd55598
RD
12149SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12150 PyObject *resultobj = 0;
12151 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12152 bool result;
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 PyObject *swig_obj[1] ;
12156
12157 if (!args) SWIG_fail;
12158 swig_obj[0] = args;
12159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12160 if (!SWIG_IsOK(res1)) {
12161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12162 }
12163 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12167 wxPyEndAllowThreads(__tstate);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 {
12171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12172 }
12173 return resultobj;
12174fail:
12175 return NULL;
d55e5bfc
RD
12176}
12177
12178
1bd55598
RD
12179SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12180 PyObject *resultobj = 0;
12181 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12182 bool result;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 PyObject *swig_obj[1] ;
12186
12187 if (!args) SWIG_fail;
12188 swig_obj[0] = args;
12189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12190 if (!SWIG_IsOK(res1)) {
12191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12192 }
12193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 {
12201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12202 }
12203 return resultobj;
12204fail:
12205 return NULL;
d55e5bfc
RD
12206}
12207
12208
1bd55598
RD
12209SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12212 bool result;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 PyObject *swig_obj[1] ;
12216
12217 if (!args) SWIG_fail;
12218 swig_obj[0] = args;
12219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12222 }
12223 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12232 }
12233 return resultobj;
12234fail:
12235 return NULL;
d55e5bfc
RD
12236}
12237
12238
1bd55598
RD
12239SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12240 PyObject *resultobj = 0;
12241 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 PyObject *swig_obj[1] ;
12246
12247 if (!args) SWIG_fail;
12248 swig_obj[0] = args;
12249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12262 }
12263 return resultobj;
12264fail:
12265 return NULL;
12266}
12267
12268
12269SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 long *arg2 = (long *) 0 ;
12273 long *arg3 = (long *) 0 ;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 long temp2 ;
12277 int res2 = SWIG_TMPOBJ ;
12278 long temp3 ;
12279 int res3 = SWIG_TMPOBJ ;
12280 PyObject *swig_obj[1] ;
12281
12282 arg2 = &temp2;
12283 arg3 = &temp3;
12284 if (!args) SWIG_fail;
12285 swig_obj[0] = args;
12286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12287 if (!SWIG_IsOK(res1)) {
12288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12289 }
12290 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 resultobj = SWIG_Py_Void();
12298 if (SWIG_IsTmpObj(res2)) {
12299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12300 } else {
12301 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12303 }
12304 if (SWIG_IsTmpObj(res3)) {
12305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12306 } else {
12307 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12309 }
12310 return resultobj;
12311fail:
12312 return NULL;
d55e5bfc
RD
12313}
12314
12315
1bd55598
RD
12316SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12319 wxString result;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 PyObject *swig_obj[1] ;
12323
12324 if (!args) SWIG_fail;
12325 swig_obj[0] = args;
12326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12327 if (!SWIG_IsOK(res1)) {
12328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12329 }
12330 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 {
d55e5bfc 12338#if wxUSE_UNICODE
1bd55598 12339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12340#else
1bd55598 12341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12342#endif
1bd55598
RD
12343 }
12344 return resultobj;
12345fail:
12346 return NULL;
d55e5bfc
RD
12347}
12348
12349
1bd55598
RD
12350SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12353 void *argp1 = 0 ;
12354 int res1 = 0 ;
12355 PyObject *swig_obj[1] ;
12356
12357 if (!args) SWIG_fail;
12358 swig_obj[0] = args;
12359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12362 }
12363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 (arg1)->Clear();
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_Py_Void();
12371 return resultobj;
12372fail:
12373 return NULL;
12374}
12375
12376
12377SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj = 0;
12379 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12380 long arg2 ;
12381 long arg3 ;
12382 wxString *arg4 = 0 ;
12383 void *argp1 = 0 ;
12384 int res1 = 0 ;
12385 long val2 ;
12386 int ecode2 = 0 ;
12387 long val3 ;
12388 int ecode3 = 0 ;
12389 bool temp4 = false ;
12390 PyObject * obj0 = 0 ;
12391 PyObject * obj1 = 0 ;
12392 PyObject * obj2 = 0 ;
12393 PyObject * obj3 = 0 ;
12394 char * kwnames[] = {
2131d850 12395 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12396 };
12397
12398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12402 }
12403 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12404 ecode2 = SWIG_AsVal_long(obj1, &val2);
12405 if (!SWIG_IsOK(ecode2)) {
12406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12407 }
12408 arg2 = static_cast< long >(val2);
12409 ecode3 = SWIG_AsVal_long(obj2, &val3);
12410 if (!SWIG_IsOK(ecode3)) {
12411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12412 }
12413 arg3 = static_cast< long >(val3);
12414 {
12415 arg4 = wxString_in_helper(obj3);
12416 if (arg4 == NULL) SWIG_fail;
12417 temp4 = true;
12418 }
12419 {
12420 PyThreadState* __tstate = wxPyBeginAllowThreads();
12421 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12422 wxPyEndAllowThreads(__tstate);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 }
12425 resultobj = SWIG_Py_Void();
12426 {
12427 if (temp4)
12428 delete arg4;
12429 }
12430 return resultobj;
12431fail:
12432 {
12433 if (temp4)
12434 delete arg4;
12435 }
12436 return NULL;
12437}
12438
12439
12440SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 long arg2 ;
12444 long arg3 ;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 long val2 ;
12448 int ecode2 = 0 ;
12449 long val3 ;
12450 int ecode3 = 0 ;
12451 PyObject * obj0 = 0 ;
12452 PyObject * obj1 = 0 ;
12453 PyObject * obj2 = 0 ;
12454 char * kwnames[] = {
2131d850 12455 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 ecode2 = SWIG_AsVal_long(obj1, &val2);
12465 if (!SWIG_IsOK(ecode2)) {
12466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12467 }
12468 arg2 = static_cast< long >(val2);
12469 ecode3 = SWIG_AsVal_long(obj2, &val3);
12470 if (!SWIG_IsOK(ecode3)) {
12471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12472 }
12473 arg3 = static_cast< long >(val3);
12474 {
12475 PyThreadState* __tstate = wxPyBeginAllowThreads();
12476 (arg1)->Remove(arg2,arg3);
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 resultobj = SWIG_Py_Void();
12481 return resultobj;
12482fail:
12483 return NULL;
12484}
12485
12486
12487SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12488 PyObject *resultobj = 0;
12489 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12490 wxString *arg2 = 0 ;
f5263701 12491 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12492 bool result;
12493 void *argp1 = 0 ;
12494 int res1 = 0 ;
12495 bool temp2 = false ;
f5263701
RD
12496 int val3 ;
12497 int ecode3 = 0 ;
1bd55598
RD
12498 PyObject * obj0 = 0 ;
12499 PyObject * obj1 = 0 ;
f5263701 12500 PyObject * obj2 = 0 ;
1bd55598 12501 char * kwnames[] = {
f5263701 12502 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12503 };
12504
f5263701 12505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12509 }
12510 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12511 {
12512 arg2 = wxString_in_helper(obj1);
12513 if (arg2 == NULL) SWIG_fail;
12514 temp2 = true;
12515 }
f5263701
RD
12516 if (obj2) {
12517 ecode3 = SWIG_AsVal_int(obj2, &val3);
12518 if (!SWIG_IsOK(ecode3)) {
12519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12520 }
12521 arg3 = static_cast< int >(val3);
12522 }
1bd55598
RD
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12525 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 {
12530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12531 }
12532 {
12533 if (temp2)
12534 delete arg2;
12535 }
12536 return resultobj;
12537fail:
12538 {
12539 if (temp2)
12540 delete arg2;
12541 }
12542 return NULL;
12543}
12544
12545
12546SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj = 0;
12548 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12549 wxString const &arg2_defvalue = wxPyEmptyString ;
12550 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12551 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12552 bool result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 bool temp2 = false ;
f5263701
RD
12556 int val3 ;
12557 int ecode3 = 0 ;
1bd55598
RD
12558 PyObject * obj0 = 0 ;
12559 PyObject * obj1 = 0 ;
f5263701 12560 PyObject * obj2 = 0 ;
1bd55598 12561 char * kwnames[] = {
f5263701 12562 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12563 };
12564
f5263701 12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12569 }
12570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12571 if (obj1) {
d55e5bfc 12572 {
1bd55598
RD
12573 arg2 = wxString_in_helper(obj1);
12574 if (arg2 == NULL) SWIG_fail;
12575 temp2 = true;
d55e5bfc 12576 }
1bd55598 12577 }
f5263701
RD
12578 if (obj2) {
12579 ecode3 = SWIG_AsVal_int(obj2, &val3);
12580 if (!SWIG_IsOK(ecode3)) {
12581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12582 }
12583 arg3 = static_cast< int >(val3);
12584 }
1bd55598
RD
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12587 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
1bd55598
RD
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 {
12592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12593 }
12594 {
12595 if (temp2)
12596 delete arg2;
12597 }
12598 return resultobj;
12599fail:
12600 {
12601 if (temp2)
12602 delete arg2;
12603 }
12604 return NULL;
d55e5bfc
RD
12605}
12606
12607
1bd55598
RD
12608SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12609 PyObject *resultobj = 0;
12610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12611 void *argp1 = 0 ;
12612 int res1 = 0 ;
12613 PyObject *swig_obj[1] ;
12614
12615 if (!args) SWIG_fail;
12616 swig_obj[0] = args;
12617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12618 if (!SWIG_IsOK(res1)) {
12619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12620 }
12621 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->MarkDirty();
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 return resultobj;
12630fail:
12631 return NULL;
d55e5bfc
RD
12632}
12633
12634
1bd55598
RD
12635SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12636 PyObject *resultobj = 0;
12637 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12638 void *argp1 = 0 ;
12639 int res1 = 0 ;
12640 PyObject *swig_obj[1] ;
12641
12642 if (!args) SWIG_fail;
12643 swig_obj[0] = args;
12644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12645 if (!SWIG_IsOK(res1)) {
12646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12647 }
12648 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->DiscardEdits();
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = SWIG_Py_Void();
12656 return resultobj;
12657fail:
12658 return NULL;
12659}
12660
12661
b02396e8
RD
12662SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12663 PyObject *resultobj = 0;
12664 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12665 bool arg2 ;
12666 void *argp1 = 0 ;
12667 int res1 = 0 ;
12668 bool val2 ;
12669 int ecode2 = 0 ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 char * kwnames[] = {
12673 (char *) "self",(char *) "modified", NULL
12674 };
12675
12676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12683 if (!SWIG_IsOK(ecode2)) {
12684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12685 }
12686 arg2 = static_cast< bool >(val2);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 (arg1)->SetModified(arg2);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 resultobj = SWIG_Py_Void();
12694 return resultobj;
12695fail:
12696 return NULL;
12697}
12698
12699
1bd55598
RD
12700SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj = 0;
12702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12703 unsigned long arg2 ;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 unsigned long val2 ;
12707 int ecode2 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 char * kwnames[] = {
12711 (char *) "self",(char *) "len", NULL
12712 };
12713
12714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12718 }
12719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12720 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12721 if (!SWIG_IsOK(ecode2)) {
12722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12723 }
12724 arg2 = static_cast< unsigned long >(val2);
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 (arg1)->SetMaxLength(arg2);
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = SWIG_Py_Void();
12732 return resultobj;
12733fail:
12734 return NULL;
12735}
12736
12737
12738SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj = 0;
12740 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12741 wxString *arg2 = 0 ;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 bool temp2 = false ;
12745 PyObject * obj0 = 0 ;
12746 PyObject * obj1 = 0 ;
12747 char * kwnames[] = {
12748 (char *) "self",(char *) "text", NULL
12749 };
12750
12751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12753 if (!SWIG_IsOK(res1)) {
12754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12755 }
12756 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12757 {
12758 arg2 = wxString_in_helper(obj1);
12759 if (arg2 == NULL) SWIG_fail;
12760 temp2 = true;
12761 }
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 (arg1)->WriteText((wxString const &)*arg2);
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 resultobj = SWIG_Py_Void();
12769 {
12770 if (temp2)
12771 delete arg2;
12772 }
12773 return resultobj;
12774fail:
12775 {
12776 if (temp2)
12777 delete arg2;
12778 }
12779 return NULL;
d55e5bfc
RD
12780}
12781
12782
1bd55598
RD
12783SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj = 0;
12785 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12786 wxString *arg2 = 0 ;
12787 void *argp1 = 0 ;
12788 int res1 = 0 ;
12789 bool temp2 = false ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 char * kwnames[] = {
12793 (char *) "self",(char *) "text", NULL
12794 };
12795
12796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12798 if (!SWIG_IsOK(res1)) {
12799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12800 }
12801 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12802 {
12803 arg2 = wxString_in_helper(obj1);
12804 if (arg2 == NULL) SWIG_fail;
12805 temp2 = true;
12806 }
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->AppendText((wxString const &)*arg2);
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_Py_Void();
12814 {
12815 if (temp2)
12816 delete arg2;
12817 }
12818 return resultobj;
12819fail:
12820 {
12821 if (temp2)
12822 delete arg2;
12823 }
12824 return NULL;
12825}
12826
12827
12828SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj = 0;
12830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12831 wxKeyEvent *arg2 = 0 ;
12832 bool result;
12833 void *argp1 = 0 ;
12834 int res1 = 0 ;
12835 void *argp2 = 0 ;
12836 int res2 = 0 ;
12837 PyObject * obj0 = 0 ;
12838 PyObject * obj1 = 0 ;
12839 char * kwnames[] = {
12840 (char *) "self",(char *) "event", NULL
12841 };
12842
12843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12845 if (!SWIG_IsOK(res1)) {
12846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12847 }
12848 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12850 if (!SWIG_IsOK(res2)) {
12851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12852 }
12853 if (!argp2) {
12854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12855 }
12856 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12857 {
12858 PyThreadState* __tstate = wxPyBeginAllowThreads();
12859 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12860 wxPyEndAllowThreads(__tstate);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 {
12864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12865 }
12866 return resultobj;
12867fail:
12868 return NULL;
12869}
12870
12871
12872SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12873 PyObject *resultobj = 0;
12874 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12875 long arg2 ;
12876 long arg3 ;
12877 wxTextAttr *arg4 = 0 ;
12878 bool result;
12879 void *argp1 = 0 ;
12880 int res1 = 0 ;
12881 long val2 ;
12882 int ecode2 = 0 ;
12883 long val3 ;
12884 int ecode3 = 0 ;
12885 void *argp4 = 0 ;
12886 int res4 = 0 ;
12887 PyObject * obj0 = 0 ;
12888 PyObject * obj1 = 0 ;
12889 PyObject * obj2 = 0 ;
12890 PyObject * obj3 = 0 ;
12891 char * kwnames[] = {
12892 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12893 };
12894
12895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12897 if (!SWIG_IsOK(res1)) {
12898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12899 }
12900 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12901 ecode2 = SWIG_AsVal_long(obj1, &val2);
12902 if (!SWIG_IsOK(ecode2)) {
12903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12904 }
12905 arg2 = static_cast< long >(val2);
12906 ecode3 = SWIG_AsVal_long(obj2, &val3);
12907 if (!SWIG_IsOK(ecode3)) {
12908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12909 }
12910 arg3 = static_cast< long >(val3);
12911 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12912 if (!SWIG_IsOK(res4)) {
12913 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12914 }
12915 if (!argp4) {
12916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12917 }
12918 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 {
12926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12927 }
12928 return resultobj;
12929fail:
12930 return NULL;
12931}
12932
12933
12934SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj = 0;
12936 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12937 long arg2 ;
12938 wxTextAttr *arg3 = 0 ;
12939 bool result;
12940 void *argp1 = 0 ;
12941 int res1 = 0 ;
12942 long val2 ;
12943 int ecode2 = 0 ;
12944 void *argp3 = 0 ;
12945 int res3 = 0 ;
12946 PyObject * obj0 = 0 ;
12947 PyObject * obj1 = 0 ;
12948 PyObject * obj2 = 0 ;
12949 char * kwnames[] = {
12950 (char *) "self",(char *) "position",(char *) "style", NULL
12951 };
12952
12953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12955 if (!SWIG_IsOK(res1)) {
12956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12957 }
12958 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12959 ecode2 = SWIG_AsVal_long(obj1, &val2);
12960 if (!SWIG_IsOK(ecode2)) {
12961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12962 }
12963 arg2 = static_cast< long >(val2);
12964 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12965 if (!SWIG_IsOK(res3)) {
12966 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12967 }
12968 if (!argp3) {
12969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12970 }
12971 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 {
12979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12980 }
12981 return resultobj;
12982fail:
12983 return NULL;
12984}
12985
12986
12987SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj = 0;
12989 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12990 wxTextAttr *arg2 = 0 ;
12991 bool result;
12992 void *argp1 = 0 ;
12993 int res1 = 0 ;
12994 void *argp2 = 0 ;
12995 int res2 = 0 ;
12996 PyObject * obj0 = 0 ;
12997 PyObject * obj1 = 0 ;
12998 char * kwnames[] = {
12999 (char *) "self",(char *) "style", NULL
13000 };
13001
13002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13006 }
13007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13009 if (!SWIG_IsOK(res2)) {
13010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13011 }
13012 if (!argp2) {
13013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13014 }
13015 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 {
13023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13024 }
13025 return resultobj;
13026fail:
13027 return NULL;
d55e5bfc
RD
13028}
13029
13030
1bd55598
RD
13031SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13032 PyObject *resultobj = 0;
13033 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13034 wxTextAttr *result = 0 ;
13035 void *argp1 = 0 ;
13036 int res1 = 0 ;
13037 PyObject *swig_obj[1] ;
13038
13039 if (!args) SWIG_fail;
13040 swig_obj[0] = args;
13041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13042 if (!SWIG_IsOK(res1)) {
13043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13044 }
13045 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13048 {
1bd55598
RD
13049 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13050 result = (wxTextAttr *) &_result_ref;
d55e5bfc 13051 }
1bd55598
RD
13052 wxPyEndAllowThreads(__tstate);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13056 return resultobj;
13057fail:
13058 return NULL;
13059}
13060
13061
13062SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13063 PyObject *resultobj = 0;
13064 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13065 long arg2 ;
13066 long arg3 ;
13067 long result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 long val2 ;
13071 int ecode2 = 0 ;
13072 long val3 ;
13073 int ecode3 = 0 ;
13074 PyObject * obj0 = 0 ;
13075 PyObject * obj1 = 0 ;
13076 PyObject * obj2 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "self",(char *) "x",(char *) "y", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13083 if (!SWIG_IsOK(res1)) {
13084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13085 }
13086 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13087 ecode2 = SWIG_AsVal_long(obj1, &val2);
13088 if (!SWIG_IsOK(ecode2)) {
13089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13090 }
13091 arg2 = static_cast< long >(val2);
13092 ecode3 = SWIG_AsVal_long(obj2, &val3);
13093 if (!SWIG_IsOK(ecode3)) {
13094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13095 }
13096 arg3 = static_cast< long >(val3);
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_From_long(static_cast< long >(result));
13104 return resultobj;
13105fail:
13106 return NULL;
13107}
13108
13109
13110SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj = 0;
13112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13113 long arg2 ;
13114 long *arg3 = (long *) 0 ;
13115 long *arg4 = (long *) 0 ;
13116 void *argp1 = 0 ;
13117 int res1 = 0 ;
13118 long val2 ;
13119 int ecode2 = 0 ;
13120 long temp3 ;
13121 int res3 = SWIG_TMPOBJ ;
13122 long temp4 ;
13123 int res4 = SWIG_TMPOBJ ;
13124 PyObject * obj0 = 0 ;
13125 PyObject * obj1 = 0 ;
13126 char * kwnames[] = {
13127 (char *) "self",(char *) "pos", NULL
13128 };
13129
13130 arg3 = &temp3;
13131 arg4 = &temp4;
13132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13134 if (!SWIG_IsOK(res1)) {
13135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13136 }
13137 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13138 ecode2 = SWIG_AsVal_long(obj1, &val2);
13139 if (!SWIG_IsOK(ecode2)) {
13140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13141 }
13142 arg2 = static_cast< long >(val2);
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 resultobj = SWIG_Py_Void();
13150 if (SWIG_IsTmpObj(res3)) {
13151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13152 } else {
13153 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13155 }
13156 if (SWIG_IsTmpObj(res4)) {
13157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13158 } else {
13159 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13161 }
13162 return resultobj;
13163fail:
13164 return NULL;
13165}
13166
13167
13168SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj = 0;
13170 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13171 long arg2 ;
13172 void *argp1 = 0 ;
13173 int res1 = 0 ;
13174 long val2 ;
13175 int ecode2 = 0 ;
13176 PyObject * obj0 = 0 ;
13177 PyObject * obj1 = 0 ;
13178 char * kwnames[] = {
13179 (char *) "self",(char *) "pos", NULL
13180 };
13181
13182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13184 if (!SWIG_IsOK(res1)) {
13185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13186 }
13187 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13188 ecode2 = SWIG_AsVal_long(obj1, &val2);
13189 if (!SWIG_IsOK(ecode2)) {
13190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13191 }
13192 arg2 = static_cast< long >(val2);
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 (arg1)->ShowPosition(arg2);
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 resultobj = SWIG_Py_Void();
13200 return resultobj;
13201fail:
13202 return NULL;
13203}
13204
13205
13206SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13207 PyObject *resultobj = 0;
13208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13209 wxPoint *arg2 = 0 ;
13210 long *arg3 = (long *) 0 ;
13211 long *arg4 = (long *) 0 ;
13212 wxTextCtrlHitTestResult result;
13213 void *argp1 = 0 ;
13214 int res1 = 0 ;
13215 wxPoint temp2 ;
13216 long temp3 ;
13217 int res3 = SWIG_TMPOBJ ;
13218 long temp4 ;
13219 int res4 = SWIG_TMPOBJ ;
13220 PyObject * obj0 = 0 ;
13221 PyObject * obj1 = 0 ;
13222 char * kwnames[] = {
13223 (char *) "self",(char *) "pt", NULL
13224 };
13225
13226 arg3 = &temp3;
13227 arg4 = &temp4;
13228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13232 }
13233 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13234 {
13235 arg2 = &temp2;
13236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13237 }
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 resultobj = SWIG_From_int(static_cast< int >(result));
13245 if (SWIG_IsTmpObj(res3)) {
13246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13247 } else {
13248 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13250 }
13251 if (SWIG_IsTmpObj(res4)) {
13252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13253 } else {
13254 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13256 }
13257 return resultobj;
13258fail:
13259 return NULL;
13260}
13261
13262
13263SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj = 0;
13265 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13266 wxPoint *arg2 = 0 ;
13267 long *arg3 = (long *) 0 ;
13268 wxTextCtrlHitTestResult result;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 wxPoint temp2 ;
13272 long temp3 ;
13273 int res3 = SWIG_TMPOBJ ;
13274 PyObject * obj0 = 0 ;
13275 PyObject * obj1 = 0 ;
13276 char * kwnames[] = {
13277 (char *) "self",(char *) "pt", NULL
13278 };
13279
13280 arg3 = &temp3;
13281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13285 }
13286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13287 {
13288 arg2 = &temp2;
13289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13290 }
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_From_int(static_cast< int >(result));
13298 if (SWIG_IsTmpObj(res3)) {
13299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13300 } else {
13301 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13303 }
13304 return resultobj;
13305fail:
13306 return NULL;
d55e5bfc
RD
13307}
13308
13309
1bd55598
RD
13310SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13313 void *argp1 = 0 ;
13314 int res1 = 0 ;
13315 PyObject *swig_obj[1] ;
13316
13317 if (!args) SWIG_fail;
13318 swig_obj[0] = args;
13319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13320 if (!SWIG_IsOK(res1)) {
13321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13322 }
13323 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->Copy();
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_Py_Void();
13331 return resultobj;
13332fail:
13333 return NULL;
d55e5bfc
RD
13334}
13335
13336
1bd55598
RD
13337SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13338 PyObject *resultobj = 0;
13339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13340 void *argp1 = 0 ;
13341 int res1 = 0 ;
13342 PyObject *swig_obj[1] ;
13343
13344 if (!args) SWIG_fail;
13345 swig_obj[0] = args;
13346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13347 if (!SWIG_IsOK(res1)) {
13348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13349 }
13350 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 (arg1)->Cut();
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_Py_Void();
13358 return resultobj;
13359fail:
13360 return NULL;
d55e5bfc
RD
13361}
13362
13363
1bd55598
RD
13364SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13365 PyObject *resultobj = 0;
13366 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13367 void *argp1 = 0 ;
13368 int res1 = 0 ;
13369 PyObject *swig_obj[1] ;
13370
13371 if (!args) SWIG_fail;
13372 swig_obj[0] = args;
13373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13374 if (!SWIG_IsOK(res1)) {
13375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13376 }
13377 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 (arg1)->Paste();
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_Py_Void();
13385 return resultobj;
13386fail:
13387 return NULL;
d55e5bfc
RD
13388}
13389
13390
1bd55598
RD
13391SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13392 PyObject *resultobj = 0;
13393 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13394 bool result;
13395 void *argp1 = 0 ;
13396 int res1 = 0 ;
13397 PyObject *swig_obj[1] ;
13398
13399 if (!args) SWIG_fail;
13400 swig_obj[0] = args;
13401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13402 if (!SWIG_IsOK(res1)) {
13403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13404 }
13405 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13414 }
13415 return resultobj;
13416fail:
13417 return NULL;
d55e5bfc
RD
13418}
13419
13420
1bd55598
RD
13421SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13422 PyObject *resultobj = 0;
13423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13424 bool result;
13425 void *argp1 = 0 ;
13426 int res1 = 0 ;
13427 PyObject *swig_obj[1] ;
13428
13429 if (!args) SWIG_fail;
13430 swig_obj[0] = args;
13431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13432 if (!SWIG_IsOK(res1)) {
13433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13434 }
13435 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 {
13443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13444 }
13445 return resultobj;
13446fail:
13447 return NULL;
d55e5bfc
RD
13448}
13449
13450
1bd55598
RD
13451SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13452 PyObject *resultobj = 0;
13453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13454 bool result;
13455 void *argp1 = 0 ;
13456 int res1 = 0 ;
13457 PyObject *swig_obj[1] ;
13458
13459 if (!args) SWIG_fail;
13460 swig_obj[0] = args;
13461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13462 if (!SWIG_IsOK(res1)) {
13463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13464 }
13465 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13466 {
13467 PyThreadState* __tstate = wxPyBeginAllowThreads();
13468 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13469 wxPyEndAllowThreads(__tstate);
13470 if (PyErr_Occurred()) SWIG_fail;
13471 }
13472 {
13473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13474 }
13475 return resultobj;
13476fail:
13477 return NULL;
d55e5bfc
RD
13478}
13479
13480
1bd55598
RD
13481SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13484 void *argp1 = 0 ;
13485 int res1 = 0 ;
13486 PyObject *swig_obj[1] ;
13487
13488 if (!args) SWIG_fail;
13489 swig_obj[0] = args;
13490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13491 if (!SWIG_IsOK(res1)) {
13492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13493 }
13494 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 (arg1)->Undo();
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_Py_Void();
13502 return resultobj;
13503fail:
13504 return NULL;
d55e5bfc
RD
13505}
13506
13507
1bd55598
RD
13508SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13509 PyObject *resultobj = 0;
13510 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13511 void *argp1 = 0 ;
13512 int res1 = 0 ;
13513 PyObject *swig_obj[1] ;
13514
13515 if (!args) SWIG_fail;
13516 swig_obj[0] = args;
13517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13518 if (!SWIG_IsOK(res1)) {
13519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13520 }
13521 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 (arg1)->Redo();
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 resultobj = SWIG_Py_Void();
13529 return resultobj;
13530fail:
13531 return NULL;
d55e5bfc
RD
13532}
13533
13534
1bd55598
RD
13535SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13536 PyObject *resultobj = 0;
13537 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13538 bool result;
13539 void *argp1 = 0 ;
13540 int res1 = 0 ;
13541 PyObject *swig_obj[1] ;
13542
13543 if (!args) SWIG_fail;
13544 swig_obj[0] = args;
13545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13546 if (!SWIG_IsOK(res1)) {
13547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13548 }
13549 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 {
13557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13558 }
13559 return resultobj;
13560fail:
13561 return NULL;
d55e5bfc
RD
13562}
13563
13564
1bd55598
RD
13565SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13566 PyObject *resultobj = 0;
13567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13568 bool result;
13569 void *argp1 = 0 ;
13570 int res1 = 0 ;
13571 PyObject *swig_obj[1] ;
13572
13573 if (!args) SWIG_fail;
13574 swig_obj[0] = args;
13575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13578 }
13579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 {
13587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13588 }
13589 return resultobj;
13590fail:
13591 return NULL;
13592}
13593
13594
13595SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 long arg2 ;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 long val2 ;
13602 int ecode2 = 0 ;
13603 PyObject * obj0 = 0 ;
13604 PyObject * obj1 = 0 ;
13605 char * kwnames[] = {
13606 (char *) "self",(char *) "pos", NULL
13607 };
13608
13609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13611 if (!SWIG_IsOK(res1)) {
13612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13613 }
13614 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13615 ecode2 = SWIG_AsVal_long(obj1, &val2);
13616 if (!SWIG_IsOK(ecode2)) {
13617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13618 }
13619 arg2 = static_cast< long >(val2);
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 (arg1)->SetInsertionPoint(arg2);
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 resultobj = SWIG_Py_Void();
13627 return resultobj;
13628fail:
13629 return NULL;
d55e5bfc
RD
13630}
13631
13632
1bd55598
RD
13633SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13634 PyObject *resultobj = 0;
13635 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13636 void *argp1 = 0 ;
13637 int res1 = 0 ;
13638 PyObject *swig_obj[1] ;
13639
13640 if (!args) SWIG_fail;
13641 swig_obj[0] = args;
13642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13643 if (!SWIG_IsOK(res1)) {
13644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13645 }
13646 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 (arg1)->SetInsertionPointEnd();
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_Py_Void();
13654 return resultobj;
13655fail:
13656 return NULL;
d55e5bfc
RD
13657}
13658
13659
1bd55598
RD
13660SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13661 PyObject *resultobj = 0;
13662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13663 long result;
13664 void *argp1 = 0 ;
13665 int res1 = 0 ;
13666 PyObject *swig_obj[1] ;
13667
13668 if (!args) SWIG_fail;
13669 swig_obj[0] = args;
13670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13673 }
13674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13675 {
13676 PyThreadState* __tstate = wxPyBeginAllowThreads();
13677 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 resultobj = SWIG_From_long(static_cast< long >(result));
13682 return resultobj;
13683fail:
13684 return NULL;
d55e5bfc
RD
13685}
13686
13687
1bd55598
RD
13688SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13689 PyObject *resultobj = 0;
13690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13691 long result;
13692 void *argp1 = 0 ;
13693 int res1 = 0 ;
13694 PyObject *swig_obj[1] ;
13695
13696 if (!args) SWIG_fail;
13697 swig_obj[0] = args;
13698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13699 if (!SWIG_IsOK(res1)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13701 }
13702 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13703 {
13704 PyThreadState* __tstate = wxPyBeginAllowThreads();
13705 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13706 wxPyEndAllowThreads(__tstate);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 resultobj = SWIG_From_long(static_cast< long >(result));
13710 return resultobj;
13711fail:
13712 return NULL;
13713}
13714
13715
13716SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13717 PyObject *resultobj = 0;
13718 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13719 long arg2 ;
13720 long arg3 ;
13721 void *argp1 = 0 ;
13722 int res1 = 0 ;
13723 long val2 ;
13724 int ecode2 = 0 ;
13725 long val3 ;
13726 int ecode3 = 0 ;
13727 PyObject * obj0 = 0 ;
13728 PyObject * obj1 = 0 ;
13729 PyObject * obj2 = 0 ;
13730 char * kwnames[] = {
2131d850 13731 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13732 };
13733
13734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13736 if (!SWIG_IsOK(res1)) {
13737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13738 }
13739 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13740 ecode2 = SWIG_AsVal_long(obj1, &val2);
13741 if (!SWIG_IsOK(ecode2)) {
13742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13743 }
13744 arg2 = static_cast< long >(val2);
13745 ecode3 = SWIG_AsVal_long(obj2, &val3);
13746 if (!SWIG_IsOK(ecode3)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13748 }
13749 arg3 = static_cast< long >(val3);
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 (arg1)->SetSelection(arg2,arg3);
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_Py_Void();
13757 return resultobj;
13758fail:
13759 return NULL;
d55e5bfc
RD
13760}
13761
13762
1bd55598
RD
13763SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13764 PyObject *resultobj = 0;
13765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13766 void *argp1 = 0 ;
13767 int res1 = 0 ;
13768 PyObject *swig_obj[1] ;
13769
13770 if (!args) SWIG_fail;
13771 swig_obj[0] = args;
13772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13773 if (!SWIG_IsOK(res1)) {
13774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13775 }
13776 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13777 {
13778 PyThreadState* __tstate = wxPyBeginAllowThreads();
13779 (arg1)->SelectAll();
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 resultobj = SWIG_Py_Void();
13784 return resultobj;
13785fail:
13786 return NULL;
13787}
13788
13789
13790SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj = 0;
13792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13793 bool arg2 ;
13794 void *argp1 = 0 ;
13795 int res1 = 0 ;
13796 bool val2 ;
13797 int ecode2 = 0 ;
13798 PyObject * obj0 = 0 ;
13799 PyObject * obj1 = 0 ;
13800 char * kwnames[] = {
13801 (char *) "self",(char *) "editable", NULL
13802 };
13803
13804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13806 if (!SWIG_IsOK(res1)) {
13807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13808 }
13809 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13810 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13811 if (!SWIG_IsOK(ecode2)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13813 }
13814 arg2 = static_cast< bool >(val2);
13815 {
13816 PyThreadState* __tstate = wxPyBeginAllowThreads();
13817 (arg1)->SetEditable(arg2);
13818 wxPyEndAllowThreads(__tstate);
13819 if (PyErr_Occurred()) SWIG_fail;
13820 }
13821 resultobj = SWIG_Py_Void();
13822 return resultobj;
13823fail:
13824 return NULL;
13825}
13826
13827
d7645bfd
VZ
13828SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13829 PyObject *resultobj = 0;
13830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13831 bool arg2 ;
13832 void *argp1 = 0 ;
13833 int res1 = 0 ;
13834 bool val2 ;
13835 int ecode2 = 0 ;
13836 PyObject * obj0 = 0 ;
13837 PyObject * obj1 = 0 ;
13838 char * kwnames[] = {
13839 (char *) "self",(char *) "check", NULL
13840 };
13841
13842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13846 }
13847 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13848 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13849 if (!SWIG_IsOK(ecode2)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13851 }
13852 arg2 = static_cast< bool >(val2);
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 (arg1)->MacCheckSpelling(arg2);
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_Py_Void();
13860 return resultobj;
13861fail:
13862 return NULL;
13863}
13864
13865
b39fe951
RD
13866SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13867 PyObject *resultobj = 0;
13868 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13869 void *argp1 = 0 ;
13870 int res1 = 0 ;
13871 PyObject *swig_obj[1] ;
13872
13873 if (!args) SWIG_fail;
13874 swig_obj[0] = args;
13875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13876 if (!SWIG_IsOK(res1)) {
13877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13878 }
13879 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13880 {
13881 PyThreadState* __tstate = wxPyBeginAllowThreads();
13882 (arg1)->SendTextUpdatedEvent();
13883 wxPyEndAllowThreads(__tstate);
13884 if (PyErr_Occurred()) SWIG_fail;
13885 }
13886 resultobj = SWIG_Py_Void();
13887 return resultobj;
13888fail:
13889 return NULL;
13890}
13891
13892
1bd55598
RD
13893SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13894 PyObject *resultobj = 0;
13895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13896 wxString *arg2 = 0 ;
13897 void *argp1 = 0 ;
13898 int res1 = 0 ;
13899 bool temp2 = false ;
13900 PyObject * obj0 = 0 ;
13901 PyObject * obj1 = 0 ;
13902 char * kwnames[] = {
13903 (char *) "self",(char *) "text", NULL
13904 };
13905
13906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13908 if (!SWIG_IsOK(res1)) {
13909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13910 }
13911 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13912 {
13913 arg2 = wxString_in_helper(obj1);
13914 if (arg2 == NULL) SWIG_fail;
13915 temp2 = true;
13916 }
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 resultobj = SWIG_Py_Void();
13924 {
13925 if (temp2)
13926 delete arg2;
13927 }
13928 return resultobj;
13929fail:
13930 {
13931 if (temp2)
13932 delete arg2;
13933 }
13934 return NULL;
13935}
13936
13937
13938SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj = 0;
13940 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13941 long arg2 ;
13942 long arg3 ;
13943 wxString result;
13944 void *argp1 = 0 ;
13945 int res1 = 0 ;
13946 long val2 ;
13947 int ecode2 = 0 ;
13948 long val3 ;
13949 int ecode3 = 0 ;
13950 PyObject * obj0 = 0 ;
13951 PyObject * obj1 = 0 ;
13952 PyObject * obj2 = 0 ;
13953 char * kwnames[] = {
2131d850 13954 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13955 };
13956
13957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13959 if (!SWIG_IsOK(res1)) {
13960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13961 }
13962 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13963 ecode2 = SWIG_AsVal_long(obj1, &val2);
13964 if (!SWIG_IsOK(ecode2)) {
13965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13966 }
13967 arg2 = static_cast< long >(val2);
13968 ecode3 = SWIG_AsVal_long(obj2, &val3);
13969 if (!SWIG_IsOK(ecode3)) {
13970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13971 }
13972 arg3 = static_cast< long >(val3);
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 {
13980#if wxUSE_UNICODE
13981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13982#else
13983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13984#endif
13985 }
13986 return resultobj;
13987fail:
13988 return NULL;
d55e5bfc
RD
13989}
13990
13991
1bd55598
RD
13992SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13993 PyObject *resultobj = 0;
13994 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13995 SwigValueWrapper<wxVisualAttributes > result;
13996 int val1 ;
13997 int ecode1 = 0 ;
13998 PyObject * obj0 = 0 ;
13999 char * kwnames[] = {
14000 (char *) "variant", NULL
14001 };
14002
14003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14004 if (obj0) {
14005 ecode1 = SWIG_AsVal_int(obj0, &val1);
14006 if (!SWIG_IsOK(ecode1)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14008 }
14009 arg1 = static_cast< wxWindowVariant >(val1);
14010 }
14011 {
14012 if (!wxPyCheckForApp()) SWIG_fail;
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14019 return resultobj;
14020fail:
14021 return NULL;
14022}
14023
14024
14025SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14026 PyObject *obj;
14027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14028 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14029 return SWIG_Py_Void();
14030}
14031
14032SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14033 return SWIG_Python_InitShadowInstance(args);
14034}
14035
14036SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj = 0;
14038 int arg1 ;
14039 wxMouseEvent *arg2 = 0 ;
14040 long arg3 ;
14041 long arg4 ;
14042 wxTextUrlEvent *result = 0 ;
14043 int val1 ;
14044 int ecode1 = 0 ;
14045 void *argp2 = 0 ;
14046 int res2 = 0 ;
14047 long val3 ;
14048 int ecode3 = 0 ;
14049 long val4 ;
14050 int ecode4 = 0 ;
14051 PyObject * obj0 = 0 ;
14052 PyObject * obj1 = 0 ;
14053 PyObject * obj2 = 0 ;
14054 PyObject * obj3 = 0 ;
14055 char * kwnames[] = {
14056 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14057 };
14058
14059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14060 ecode1 = SWIG_AsVal_int(obj0, &val1);
14061 if (!SWIG_IsOK(ecode1)) {
14062 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14063 }
14064 arg1 = static_cast< int >(val1);
14065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14066 if (!SWIG_IsOK(res2)) {
14067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14068 }
14069 if (!argp2) {
14070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14071 }
14072 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14073 ecode3 = SWIG_AsVal_long(obj2, &val3);
14074 if (!SWIG_IsOK(ecode3)) {
14075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14076 }
14077 arg3 = static_cast< long >(val3);
14078 ecode4 = SWIG_AsVal_long(obj3, &val4);
14079 if (!SWIG_IsOK(ecode4)) {
14080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14081 }
14082 arg4 = static_cast< long >(val4);
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14090 return resultobj;
14091fail:
14092 return NULL;
d55e5bfc
RD
14093}
14094
14095
1bd55598
RD
14096SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14097 PyObject *resultobj = 0;
14098 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14099 wxMouseEvent *result = 0 ;
14100 void *argp1 = 0 ;
14101 int res1 = 0 ;
14102 PyObject *swig_obj[1] ;
14103
14104 if (!args) SWIG_fail;
14105 swig_obj[0] = args;
14106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14107 if (!SWIG_IsOK(res1)) {
14108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14109 }
14110 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14113 {
1bd55598
RD
14114 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14115 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14116 }
1bd55598
RD
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14121 return resultobj;
14122fail:
14123 return NULL;
d55e5bfc
RD
14124}
14125
14126
1bd55598
RD
14127SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 PyObject *resultobj = 0;
14129 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14130 long result;
14131 void *argp1 = 0 ;
14132 int res1 = 0 ;
14133 PyObject *swig_obj[1] ;
14134
14135 if (!args) SWIG_fail;
14136 swig_obj[0] = args;
14137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14138 if (!SWIG_IsOK(res1)) {
14139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14140 }
14141 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14142 {
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 resultobj = SWIG_From_long(static_cast< long >(result));
14149 return resultobj;
14150fail:
14151 return NULL;
d55e5bfc
RD
14152}
14153
14154
1bd55598
RD
14155SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14156 PyObject *resultobj = 0;
14157 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14158 long result;
14159 void *argp1 = 0 ;
14160 int res1 = 0 ;
14161 PyObject *swig_obj[1] ;
14162
14163 if (!args) SWIG_fail;
14164 swig_obj[0] = args;
14165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14166 if (!SWIG_IsOK(res1)) {
14167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14168 }
14169 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_From_long(static_cast< long >(result));
14177 return resultobj;
14178fail:
14179 return NULL;
d55e5bfc
RD
14180}
14181
14182
1bd55598
RD
14183SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14184 PyObject *obj;
14185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14186 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14187 return SWIG_Py_Void();
68e533f8
RD
14188}
14189
1bd55598
RD
14190SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14192}
14193
1bd55598
RD
14194SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14195 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14196 return 1;
d55e5bfc
RD
14197}
14198
14199
1bd55598
RD
14200SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14201 PyObject *pyobj = 0;
14202
14203 {
14204#if wxUSE_UNICODE
14205 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14206#else
14207 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14208#endif
14209 }
14210 return pyobj;
14211}
14212
14213
14214SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14215 PyObject *resultobj = 0;
14216 wxWindow *arg1 = (wxWindow *) 0 ;
14217 int arg2 = (int) -1 ;
14218 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14219 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14220 wxSize const &arg4_defvalue = wxDefaultSize ;
14221 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14222 long arg5 = (long) wxSB_HORIZONTAL ;
14223 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14224 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14225 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14226 wxString *arg7 = (wxString *) &arg7_defvalue ;
14227 wxScrollBar *result = 0 ;
14228 void *argp1 = 0 ;
14229 int res1 = 0 ;
14230 int val2 ;
14231 int ecode2 = 0 ;
14232 wxPoint temp3 ;
14233 wxSize temp4 ;
14234 long val5 ;
14235 int ecode5 = 0 ;
14236 void *argp6 = 0 ;
14237 int res6 = 0 ;
14238 bool temp7 = false ;
14239 PyObject * obj0 = 0 ;
14240 PyObject * obj1 = 0 ;
14241 PyObject * obj2 = 0 ;
14242 PyObject * obj3 = 0 ;
14243 PyObject * obj4 = 0 ;
14244 PyObject * obj5 = 0 ;
14245 PyObject * obj6 = 0 ;
14246 char * kwnames[] = {
14247 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14248 };
14249
14250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14252 if (!SWIG_IsOK(res1)) {
14253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14254 }
14255 arg1 = reinterpret_cast< wxWindow * >(argp1);
14256 if (obj1) {
14257 ecode2 = SWIG_AsVal_int(obj1, &val2);
14258 if (!SWIG_IsOK(ecode2)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14260 }
14261 arg2 = static_cast< int >(val2);
14262 }
14263 if (obj2) {
d55e5bfc 14264 {
1bd55598
RD
14265 arg3 = &temp3;
14266 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14267 }
1bd55598
RD
14268 }
14269 if (obj3) {
36ed4f51 14270 {
1bd55598
RD
14271 arg4 = &temp4;
14272 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14273 }
1bd55598
RD
14274 }
14275 if (obj4) {
14276 ecode5 = SWIG_AsVal_long(obj4, &val5);
14277 if (!SWIG_IsOK(ecode5)) {
14278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14279 }
14280 arg5 = static_cast< long >(val5);
14281 }
14282 if (obj5) {
14283 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14284 if (!SWIG_IsOK(res6)) {
14285 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14286 }
1bd55598
RD
14287 if (!argp6) {
14288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14289 }
1bd55598
RD
14290 arg6 = reinterpret_cast< wxValidator * >(argp6);
14291 }
14292 if (obj6) {
d55e5bfc 14293 {
1bd55598
RD
14294 arg7 = wxString_in_helper(obj6);
14295 if (arg7 == NULL) SWIG_fail;
14296 temp7 = true;
d55e5bfc 14297 }
1bd55598
RD
14298 }
14299 {
14300 if (!wxPyCheckForApp()) SWIG_fail;
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14307 {
14308 if (temp7)
14309 delete arg7;
14310 }
14311 return resultobj;
14312fail:
14313 {
14314 if (temp7)
14315 delete arg7;
14316 }
14317 return NULL;
d55e5bfc
RD
14318}
14319
14320
1bd55598
RD
14321SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14322 PyObject *resultobj = 0;
14323 wxScrollBar *result = 0 ;
14324
14325 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14326 {
14327 if (!wxPyCheckForApp()) SWIG_fail;
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 result = (wxScrollBar *)new wxScrollBar();
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14334 return resultobj;
14335fail:
14336 return NULL;
14337}
14338
14339
14340SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj = 0;
14342 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14343 wxWindow *arg2 = (wxWindow *) 0 ;
14344 int arg3 = (int) -1 ;
14345 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14346 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14347 wxSize const &arg5_defvalue = wxDefaultSize ;
14348 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14349 long arg6 = (long) wxSB_HORIZONTAL ;
14350 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14351 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14352 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14353 wxString *arg8 = (wxString *) &arg8_defvalue ;
14354 bool result;
14355 void *argp1 = 0 ;
14356 int res1 = 0 ;
14357 void *argp2 = 0 ;
14358 int res2 = 0 ;
14359 int val3 ;
14360 int ecode3 = 0 ;
14361 wxPoint temp4 ;
14362 wxSize temp5 ;
14363 long val6 ;
14364 int ecode6 = 0 ;
14365 void *argp7 = 0 ;
14366 int res7 = 0 ;
14367 bool temp8 = false ;
14368 PyObject * obj0 = 0 ;
14369 PyObject * obj1 = 0 ;
14370 PyObject * obj2 = 0 ;
14371 PyObject * obj3 = 0 ;
14372 PyObject * obj4 = 0 ;
14373 PyObject * obj5 = 0 ;
14374 PyObject * obj6 = 0 ;
14375 PyObject * obj7 = 0 ;
14376 char * kwnames[] = {
14377 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14378 };
14379
14380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14382 if (!SWIG_IsOK(res1)) {
14383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14384 }
14385 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14387 if (!SWIG_IsOK(res2)) {
14388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14389 }
14390 arg2 = reinterpret_cast< wxWindow * >(argp2);
14391 if (obj2) {
14392 ecode3 = SWIG_AsVal_int(obj2, &val3);
14393 if (!SWIG_IsOK(ecode3)) {
14394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14395 }
14396 arg3 = static_cast< int >(val3);
14397 }
14398 if (obj3) {
d55e5bfc 14399 {
1bd55598
RD
14400 arg4 = &temp4;
14401 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14402 }
1bd55598
RD
14403 }
14404 if (obj4) {
d55e5bfc 14405 {
1bd55598
RD
14406 arg5 = &temp5;
14407 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14408 }
1bd55598
RD
14409 }
14410 if (obj5) {
14411 ecode6 = SWIG_AsVal_long(obj5, &val6);
14412 if (!SWIG_IsOK(ecode6)) {
14413 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14414 }
14415 arg6 = static_cast< long >(val6);
14416 }
14417 if (obj6) {
14418 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14419 if (!SWIG_IsOK(res7)) {
14420 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14421 }
1bd55598
RD
14422 if (!argp7) {
14423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14424 }
1bd55598
RD
14425 arg7 = reinterpret_cast< wxValidator * >(argp7);
14426 }
14427 if (obj7) {
d55e5bfc 14428 {
1bd55598
RD
14429 arg8 = wxString_in_helper(obj7);
14430 if (arg8 == NULL) SWIG_fail;
14431 temp8 = true;
d55e5bfc 14432 }
1bd55598
RD
14433 }
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 {
14441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14442 }
14443 {
14444 if (temp8)
14445 delete arg8;
14446 }
14447 return resultobj;
14448fail:
14449 {
14450 if (temp8)
14451 delete arg8;
14452 }
14453 return NULL;
d55e5bfc
RD
14454}
14455
14456
1bd55598
RD
14457SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14460 int result;
14461 void *argp1 = 0 ;
14462 int res1 = 0 ;
14463 PyObject *swig_obj[1] ;
14464
14465 if (!args) SWIG_fail;
14466 swig_obj[0] = args;
14467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14468 if (!SWIG_IsOK(res1)) {
14469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14470 }
14471 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_From_int(static_cast< int >(result));
14479 return resultobj;
14480fail:
14481 return NULL;
d55e5bfc
RD
14482}
14483
14484
1bd55598
RD
14485SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14486 PyObject *resultobj = 0;
14487 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14488 int result;
14489 void *argp1 = 0 ;
14490 int res1 = 0 ;
14491 PyObject *swig_obj[1] ;
14492
14493 if (!args) SWIG_fail;
14494 swig_obj[0] = args;
14495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14496 if (!SWIG_IsOK(res1)) {
14497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14498 }
14499 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 resultobj = SWIG_From_int(static_cast< int >(result));
14507 return resultobj;
14508fail:
14509 return NULL;
d55e5bfc
RD
14510}
14511
14512
1bd55598
RD
14513SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14514 PyObject *resultobj = 0;
14515 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14516 int result;
14517 void *argp1 = 0 ;
14518 int res1 = 0 ;
14519 PyObject *swig_obj[1] ;
14520
14521 if (!args) SWIG_fail;
14522 swig_obj[0] = args;
14523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14526 }
14527 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 resultobj = SWIG_From_int(static_cast< int >(result));
14535 return resultobj;
14536fail:
14537 return NULL;
d55e5bfc
RD
14538}
14539
14540
1bd55598
RD
14541SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14542 PyObject *resultobj = 0;
14543 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14544 int result;
14545 void *argp1 = 0 ;
14546 int res1 = 0 ;
14547 PyObject *swig_obj[1] ;
14548
14549 if (!args) SWIG_fail;
14550 swig_obj[0] = args;
14551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14552 if (!SWIG_IsOK(res1)) {
14553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14554 }
14555 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14556 {
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
14558 result = (int)((wxScrollBar const *)arg1)->GetRange();
14559 wxPyEndAllowThreads(__tstate);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 resultobj = SWIG_From_int(static_cast< int >(result));
14563 return resultobj;
14564fail:
14565 return NULL;
d55e5bfc
RD
14566}
14567
14568
1bd55598
RD
14569SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14570 PyObject *resultobj = 0;
14571 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14572 bool result;
14573 void *argp1 = 0 ;
14574 int res1 = 0 ;
14575 PyObject *swig_obj[1] ;
14576
14577 if (!args) SWIG_fail;
14578 swig_obj[0] = args;
14579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14580 if (!SWIG_IsOK(res1)) {
14581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14582 }
14583 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 {
14591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14592 }
14593 return resultobj;
14594fail:
14595 return NULL;
14596}
14597
14598
14599SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj = 0;
14601 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14602 int arg2 ;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 int val2 ;
14606 int ecode2 = 0 ;
14607 PyObject * obj0 = 0 ;
14608 PyObject * obj1 = 0 ;
14609 char * kwnames[] = {
14610 (char *) "self",(char *) "viewStart", NULL
14611 };
14612
14613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14617 }
14618 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14619 ecode2 = SWIG_AsVal_int(obj1, &val2);
14620 if (!SWIG_IsOK(ecode2)) {
14621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14622 }
14623 arg2 = static_cast< int >(val2);
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 (arg1)->SetThumbPosition(arg2);
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 resultobj = SWIG_Py_Void();
14631 return resultobj;
14632fail:
14633 return NULL;
14634}
14635
14636
14637SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj = 0;
14639 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14640 SwigValueWrapper<wxVisualAttributes > result;
14641 int val1 ;
14642 int ecode1 = 0 ;
14643 PyObject * obj0 = 0 ;
14644 char * kwnames[] = {
14645 (char *) "variant", NULL
14646 };
14647
14648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14649 if (obj0) {
14650 ecode1 = SWIG_AsVal_int(obj0, &val1);
14651 if (!SWIG_IsOK(ecode1)) {
14652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14653 }
14654 arg1 = static_cast< wxWindowVariant >(val1);
14655 }
14656 {
14657 if (!wxPyCheckForApp()) SWIG_fail;
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14664 return resultobj;
14665fail:
14666 return NULL;
d55e5bfc
RD
14667}
14668
14669
1bd55598
RD
14670SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14671 PyObject *obj;
14672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14673 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14674 return SWIG_Py_Void();
d55e5bfc
RD
14675}
14676
1bd55598
RD
14677SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14678 return SWIG_Python_InitShadowInstance(args);
14679}
d55e5bfc 14680
1bd55598
RD
14681SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14682 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14683 return 1;
14684}
14685
14686
14687SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14688 PyObject *pyobj = 0;
14689
14690 {
d55e5bfc 14691#if wxUSE_UNICODE
1bd55598 14692 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14693#else
1bd55598 14694 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14695#endif
1bd55598
RD
14696 }
14697 return pyobj;
d55e5bfc
RD
14698}
14699
14700
1bd55598
RD
14701SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14702 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14703 return 1;
d55e5bfc
RD
14704}
14705
14706
1bd55598
RD
14707SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14708 PyObject *pyobj = 0;
14709
14710 {
14711#if wxUSE_UNICODE
14712 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14713#else
14714 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14715#endif
14716 }
14717 return pyobj;
14718}
14719
14720
14721SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14722 PyObject *resultobj = 0;
14723 wxWindow *arg1 = (wxWindow *) 0 ;
14724 int arg2 = (int) -1 ;
14725 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14726 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14727 wxSize const &arg4_defvalue = wxDefaultSize ;
14728 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14729 long arg5 = (long) wxSP_HORIZONTAL ;
14730 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14731 wxString *arg6 = (wxString *) &arg6_defvalue ;
14732 wxSpinButton *result = 0 ;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 int val2 ;
14736 int ecode2 = 0 ;
14737 wxPoint temp3 ;
14738 wxSize temp4 ;
14739 long val5 ;
14740 int ecode5 = 0 ;
14741 bool temp6 = false ;
14742 PyObject * obj0 = 0 ;
14743 PyObject * obj1 = 0 ;
14744 PyObject * obj2 = 0 ;
14745 PyObject * obj3 = 0 ;
14746 PyObject * obj4 = 0 ;
14747 PyObject * obj5 = 0 ;
14748 char * kwnames[] = {
14749 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14750 };
14751
14752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14754 if (!SWIG_IsOK(res1)) {
14755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14756 }
14757 arg1 = reinterpret_cast< wxWindow * >(argp1);
14758 if (obj1) {
14759 ecode2 = SWIG_AsVal_int(obj1, &val2);
14760 if (!SWIG_IsOK(ecode2)) {
14761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14762 }
14763 arg2 = static_cast< int >(val2);
14764 }
14765 if (obj2) {
d55e5bfc 14766 {
1bd55598
RD
14767 arg3 = &temp3;
14768 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14769 }
1bd55598
RD
14770 }
14771 if (obj3) {
d55e5bfc 14772 {
1bd55598
RD
14773 arg4 = &temp4;
14774 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14775 }
1bd55598
RD
14776 }
14777 if (obj4) {
14778 ecode5 = SWIG_AsVal_long(obj4, &val5);
14779 if (!SWIG_IsOK(ecode5)) {
14780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14781 }
14782 arg5 = static_cast< long >(val5);
14783 }
14784 if (obj5) {
d55e5bfc 14785 {
1bd55598
RD
14786 arg6 = wxString_in_helper(obj5);
14787 if (arg6 == NULL) SWIG_fail;
14788 temp6 = true;
d55e5bfc 14789 }
1bd55598
RD
14790 }
14791 {
14792 if (!wxPyCheckForApp()) SWIG_fail;
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14799 {
14800 if (temp6)
14801 delete arg6;
14802 }
14803 return resultobj;
14804fail:
14805 {
14806 if (temp6)
14807 delete arg6;
14808 }
14809 return NULL;
d55e5bfc
RD
14810}
14811
14812
1bd55598
RD
14813SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14814 PyObject *resultobj = 0;
14815 wxSpinButton *result = 0 ;
14816
14817 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14818 {
14819 if (!wxPyCheckForApp()) SWIG_fail;
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (wxSpinButton *)new wxSpinButton();
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14826 return resultobj;
14827fail:
14828 return NULL;
14829}
14830
14831
14832SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14833 PyObject *resultobj = 0;
14834 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14835 wxWindow *arg2 = (wxWindow *) 0 ;
14836 int arg3 = (int) -1 ;
14837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14839 wxSize const &arg5_defvalue = wxDefaultSize ;
14840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14841 long arg6 = (long) wxSP_HORIZONTAL ;
14842 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14843 wxString *arg7 = (wxString *) &arg7_defvalue ;
14844 bool result;
14845 void *argp1 = 0 ;
14846 int res1 = 0 ;
14847 void *argp2 = 0 ;
14848 int res2 = 0 ;
14849 int val3 ;
14850 int ecode3 = 0 ;
14851 wxPoint temp4 ;
14852 wxSize temp5 ;
14853 long val6 ;
14854 int ecode6 = 0 ;
14855 bool temp7 = false ;
14856 PyObject * obj0 = 0 ;
14857 PyObject * obj1 = 0 ;
14858 PyObject * obj2 = 0 ;
14859 PyObject * obj3 = 0 ;
14860 PyObject * obj4 = 0 ;
14861 PyObject * obj5 = 0 ;
14862 PyObject * obj6 = 0 ;
14863 char * kwnames[] = {
14864 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14865 };
14866
14867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14869 if (!SWIG_IsOK(res1)) {
14870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14871 }
14872 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14874 if (!SWIG_IsOK(res2)) {
14875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14876 }
14877 arg2 = reinterpret_cast< wxWindow * >(argp2);
14878 if (obj2) {
14879 ecode3 = SWIG_AsVal_int(obj2, &val3);
14880 if (!SWIG_IsOK(ecode3)) {
14881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14882 }
14883 arg3 = static_cast< int >(val3);
14884 }
14885 if (obj3) {
d55e5bfc 14886 {
1bd55598
RD
14887 arg4 = &temp4;
14888 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14889 }
1bd55598
RD
14890 }
14891 if (obj4) {
d55e5bfc 14892 {
1bd55598
RD
14893 arg5 = &temp5;
14894 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14895 }
1bd55598
RD
14896 }
14897 if (obj5) {
14898 ecode6 = SWIG_AsVal_long(obj5, &val6);
14899 if (!SWIG_IsOK(ecode6)) {
14900 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14901 }
14902 arg6 = static_cast< long >(val6);
14903 }
14904 if (obj6) {
14905 {
14906 arg7 = wxString_in_helper(obj6);
14907 if (arg7 == NULL) SWIG_fail;
14908 temp7 = true;
14909 }
14910 }
14911 {
14912 PyThreadState* __tstate = wxPyBeginAllowThreads();
14913 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14914 wxPyEndAllowThreads(__tstate);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 {
14918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14919 }
14920 {
14921 if (temp7)
14922 delete arg7;
14923 }
14924 return resultobj;
14925fail:
14926 {
14927 if (temp7)
14928 delete arg7;
14929 }
14930 return NULL;
d55e5bfc
RD
14931}
14932
14933
1bd55598
RD
14934SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14935 PyObject *resultobj = 0;
14936 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14937 int result;
14938 void *argp1 = 0 ;
14939 int res1 = 0 ;
14940 PyObject *swig_obj[1] ;
14941
14942 if (!args) SWIG_fail;
14943 swig_obj[0] = args;
14944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14945 if (!SWIG_IsOK(res1)) {
14946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14947 }
14948 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (int)((wxSpinButton const *)arg1)->GetValue();
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 resultobj = SWIG_From_int(static_cast< int >(result));
14956 return resultobj;
14957fail:
14958 return NULL;
d55e5bfc
RD
14959}
14960
14961
1bd55598
RD
14962SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14963 PyObject *resultobj = 0;
14964 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14965 int result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 PyObject *swig_obj[1] ;
14969
14970 if (!args) SWIG_fail;
14971 swig_obj[0] = args;
14972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14975 }
14976 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 result = (int)((wxSpinButton const *)arg1)->GetMin();
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_From_int(static_cast< int >(result));
14984 return resultobj;
14985fail:
14986 return NULL;
d55e5bfc
RD
14987}
14988
14989
1bd55598
RD
14990SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14991 PyObject *resultobj = 0;
14992 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14993 int result;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 PyObject *swig_obj[1] ;
14997
14998 if (!args) SWIG_fail;
14999 swig_obj[0] = args;
15000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15001 if (!SWIG_IsOK(res1)) {
15002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15003 }
15004 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = (int)((wxSpinButton const *)arg1)->GetMax();
15008 wxPyEndAllowThreads(__tstate);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 }
15011 resultobj = SWIG_From_int(static_cast< int >(result));
15012 return resultobj;
15013fail:
15014 return NULL;
15015}
15016
15017
15018SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15019 PyObject *resultobj = 0;
15020 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15021 int arg2 ;
15022 void *argp1 = 0 ;
15023 int res1 = 0 ;
15024 int val2 ;
15025 int ecode2 = 0 ;
15026 PyObject * obj0 = 0 ;
15027 PyObject * obj1 = 0 ;
15028 char * kwnames[] = {
15029 (char *) "self",(char *) "val", NULL
15030 };
15031
15032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15034 if (!SWIG_IsOK(res1)) {
15035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15036 }
15037 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15038 ecode2 = SWIG_AsVal_int(obj1, &val2);
15039 if (!SWIG_IsOK(ecode2)) {
15040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15041 }
15042 arg2 = static_cast< int >(val2);
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 (arg1)->SetValue(arg2);
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = SWIG_Py_Void();
15050 return resultobj;
15051fail:
15052 return NULL;
15053}
15054
15055
15056SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj = 0;
15058 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15059 int arg2 ;
15060 void *argp1 = 0 ;
15061 int res1 = 0 ;
15062 int val2 ;
15063 int ecode2 = 0 ;
15064 PyObject * obj0 = 0 ;
15065 PyObject * obj1 = 0 ;
15066 char * kwnames[] = {
15067 (char *) "self",(char *) "minVal", NULL
15068 };
15069
15070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15072 if (!SWIG_IsOK(res1)) {
15073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15074 }
15075 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15076 ecode2 = SWIG_AsVal_int(obj1, &val2);
15077 if (!SWIG_IsOK(ecode2)) {
15078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15079 }
15080 arg2 = static_cast< int >(val2);
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 (arg1)->SetMin(arg2);
15084 wxPyEndAllowThreads(__tstate);
15085 if (PyErr_Occurred()) SWIG_fail;
15086 }
15087 resultobj = SWIG_Py_Void();
15088 return resultobj;
15089fail:
15090 return NULL;
15091}
15092
15093
15094SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj = 0;
15096 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15097 int arg2 ;
15098 void *argp1 = 0 ;
15099 int res1 = 0 ;
15100 int val2 ;
15101 int ecode2 = 0 ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 char * kwnames[] = {
15105 (char *) "self",(char *) "maxVal", NULL
15106 };
15107
15108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15110 if (!SWIG_IsOK(res1)) {
15111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15112 }
15113 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15114 ecode2 = SWIG_AsVal_int(obj1, &val2);
15115 if (!SWIG_IsOK(ecode2)) {
15116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15117 }
15118 arg2 = static_cast< int >(val2);
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
15121 (arg1)->SetMax(arg2);
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
15125 resultobj = SWIG_Py_Void();
15126 return resultobj;
15127fail:
15128 return NULL;
15129}
15130
15131
15132SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15133 PyObject *resultobj = 0;
15134 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15135 int arg2 ;
15136 int arg3 ;
15137 void *argp1 = 0 ;
15138 int res1 = 0 ;
15139 int val2 ;
15140 int ecode2 = 0 ;
15141 int val3 ;
15142 int ecode3 = 0 ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 PyObject * obj2 = 0 ;
15146 char * kwnames[] = {
15147 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15148 };
15149
15150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15152 if (!SWIG_IsOK(res1)) {
15153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15154 }
15155 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15156 ecode2 = SWIG_AsVal_int(obj1, &val2);
15157 if (!SWIG_IsOK(ecode2)) {
15158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15159 }
15160 arg2 = static_cast< int >(val2);
15161 ecode3 = SWIG_AsVal_int(obj2, &val3);
15162 if (!SWIG_IsOK(ecode3)) {
15163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15164 }
15165 arg3 = static_cast< int >(val3);
15166 {
15167 PyThreadState* __tstate = wxPyBeginAllowThreads();
15168 (arg1)->SetRange(arg2,arg3);
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 resultobj = SWIG_Py_Void();
15173 return resultobj;
15174fail:
15175 return NULL;
d55e5bfc
RD
15176}
15177
15178
1bd55598
RD
15179SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15180 PyObject *resultobj = 0;
15181 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15182 bool result;
15183 void *argp1 = 0 ;
15184 int res1 = 0 ;
15185 PyObject *swig_obj[1] ;
15186
15187 if (!args) SWIG_fail;
15188 swig_obj[0] = args;
15189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15192 }
15193 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 {
15201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15202 }
15203 return resultobj;
15204fail:
15205 return NULL;
d55e5bfc
RD
15206}
15207
15208
1bd55598
RD
15209SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15210 PyObject *resultobj = 0;
15211 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15212 SwigValueWrapper<wxVisualAttributes > result;
15213 int val1 ;
15214 int ecode1 = 0 ;
15215 PyObject * obj0 = 0 ;
15216 char * kwnames[] = {
15217 (char *) "variant", NULL
15218 };
15219
15220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15221 if (obj0) {
15222 ecode1 = SWIG_AsVal_int(obj0, &val1);
15223 if (!SWIG_IsOK(ecode1)) {
15224 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15225 }
15226 arg1 = static_cast< wxWindowVariant >(val1);
15227 }
15228 {
15229 if (!wxPyCheckForApp()) SWIG_fail;
15230 PyThreadState* __tstate = wxPyBeginAllowThreads();
15231 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15236 return resultobj;
15237fail:
15238 return NULL;
15239}
15240
15241
15242SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15243 PyObject *obj;
15244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15245 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15246 return SWIG_Py_Void();
15247}
15248
15249SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15250 return SWIG_Python_InitShadowInstance(args);
15251}
15252
15253SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj = 0;
15255 wxWindow *arg1 = (wxWindow *) 0 ;
15256 int arg2 = (int) -1 ;
15257 wxString const &arg3_defvalue = wxPyEmptyString ;
15258 wxString *arg3 = (wxString *) &arg3_defvalue ;
15259 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15260 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15261 wxSize const &arg5_defvalue = wxDefaultSize ;
15262 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15263 long arg6 = (long) wxSP_ARROW_KEYS ;
15264 int arg7 = (int) 0 ;
15265 int arg8 = (int) 100 ;
15266 int arg9 = (int) 0 ;
15267 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15268 wxString *arg10 = (wxString *) &arg10_defvalue ;
15269 wxSpinCtrl *result = 0 ;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 int val2 ;
15273 int ecode2 = 0 ;
15274 bool temp3 = false ;
15275 wxPoint temp4 ;
15276 wxSize temp5 ;
15277 long val6 ;
15278 int ecode6 = 0 ;
15279 int val7 ;
15280 int ecode7 = 0 ;
15281 int val8 ;
15282 int ecode8 = 0 ;
15283 int val9 ;
15284 int ecode9 = 0 ;
15285 bool temp10 = false ;
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 PyObject * obj2 = 0 ;
15289 PyObject * obj3 = 0 ;
15290 PyObject * obj4 = 0 ;
15291 PyObject * obj5 = 0 ;
15292 PyObject * obj6 = 0 ;
15293 PyObject * obj7 = 0 ;
15294 PyObject * obj8 = 0 ;
15295 PyObject * obj9 = 0 ;
15296 char * kwnames[] = {
15297 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15298 };
15299
15300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15302 if (!SWIG_IsOK(res1)) {
15303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15304 }
15305 arg1 = reinterpret_cast< wxWindow * >(argp1);
15306 if (obj1) {
15307 ecode2 = SWIG_AsVal_int(obj1, &val2);
15308 if (!SWIG_IsOK(ecode2)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15310 }
15311 arg2 = static_cast< int >(val2);
15312 }
15313 if (obj2) {
d55e5bfc 15314 {
1bd55598
RD
15315 arg3 = wxString_in_helper(obj2);
15316 if (arg3 == NULL) SWIG_fail;
15317 temp3 = true;
d55e5bfc 15318 }
1bd55598
RD
15319 }
15320 if (obj3) {
d55e5bfc 15321 {
1bd55598
RD
15322 arg4 = &temp4;
15323 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15324 }
1bd55598
RD
15325 }
15326 if (obj4) {
d55e5bfc 15327 {
1bd55598
RD
15328 arg5 = &temp5;
15329 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15330 }
1bd55598
RD
15331 }
15332 if (obj5) {
15333 ecode6 = SWIG_AsVal_long(obj5, &val6);
15334 if (!SWIG_IsOK(ecode6)) {
15335 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15336 }
15337 arg6 = static_cast< long >(val6);
15338 }
15339 if (obj6) {
15340 ecode7 = SWIG_AsVal_int(obj6, &val7);
15341 if (!SWIG_IsOK(ecode7)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15343 }
15344 arg7 = static_cast< int >(val7);
15345 }
15346 if (obj7) {
15347 ecode8 = SWIG_AsVal_int(obj7, &val8);
15348 if (!SWIG_IsOK(ecode8)) {
15349 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15350 }
15351 arg8 = static_cast< int >(val8);
15352 }
15353 if (obj8) {
15354 ecode9 = SWIG_AsVal_int(obj8, &val9);
15355 if (!SWIG_IsOK(ecode9)) {
15356 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15357 }
15358 arg9 = static_cast< int >(val9);
15359 }
15360 if (obj9) {
d55e5bfc 15361 {
1bd55598
RD
15362 arg10 = wxString_in_helper(obj9);
15363 if (arg10 == NULL) SWIG_fail;
15364 temp10 = true;
d55e5bfc 15365 }
1bd55598
RD
15366 }
15367 {
15368 if (!wxPyCheckForApp()) SWIG_fail;
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15371 wxPyEndAllowThreads(__tstate);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15375 {
15376 if (temp3)
15377 delete arg3;
15378 }
15379 {
15380 if (temp10)
15381 delete arg10;
15382 }
15383 return resultobj;
15384fail:
15385 {
15386 if (temp3)
15387 delete arg3;
15388 }
15389 {
15390 if (temp10)
15391 delete arg10;
15392 }
15393 return NULL;
d55e5bfc
RD
15394}
15395
15396
1bd55598
RD
15397SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15398 PyObject *resultobj = 0;
15399 wxSpinCtrl *result = 0 ;
15400
15401 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15402 {
15403 if (!wxPyCheckForApp()) SWIG_fail;
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 result = (wxSpinCtrl *)new wxSpinCtrl();
15406 wxPyEndAllowThreads(__tstate);
15407 if (PyErr_Occurred()) SWIG_fail;
15408 }
15409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15410 return resultobj;
15411fail:
15412 return NULL;
15413}
15414
15415
15416SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15417 PyObject *resultobj = 0;
15418 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15419 wxWindow *arg2 = (wxWindow *) 0 ;
15420 int arg3 = (int) -1 ;
15421 wxString const &arg4_defvalue = wxPyEmptyString ;
15422 wxString *arg4 = (wxString *) &arg4_defvalue ;
15423 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15424 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15425 wxSize const &arg6_defvalue = wxDefaultSize ;
15426 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15427 long arg7 = (long) wxSP_ARROW_KEYS ;
15428 int arg8 = (int) 0 ;
15429 int arg9 = (int) 100 ;
15430 int arg10 = (int) 0 ;
15431 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15432 wxString *arg11 = (wxString *) &arg11_defvalue ;
15433 bool result;
15434 void *argp1 = 0 ;
15435 int res1 = 0 ;
15436 void *argp2 = 0 ;
15437 int res2 = 0 ;
15438 int val3 ;
15439 int ecode3 = 0 ;
15440 bool temp4 = false ;
15441 wxPoint temp5 ;
15442 wxSize temp6 ;
15443 long val7 ;
15444 int ecode7 = 0 ;
15445 int val8 ;
15446 int ecode8 = 0 ;
15447 int val9 ;
15448 int ecode9 = 0 ;
15449 int val10 ;
15450 int ecode10 = 0 ;
15451 bool temp11 = false ;
15452 PyObject * obj0 = 0 ;
15453 PyObject * obj1 = 0 ;
15454 PyObject * obj2 = 0 ;
15455 PyObject * obj3 = 0 ;
15456 PyObject * obj4 = 0 ;
15457 PyObject * obj5 = 0 ;
15458 PyObject * obj6 = 0 ;
15459 PyObject * obj7 = 0 ;
15460 PyObject * obj8 = 0 ;
15461 PyObject * obj9 = 0 ;
15462 PyObject * obj10 = 0 ;
15463 char * kwnames[] = {
15464 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15465 };
15466
15467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15469 if (!SWIG_IsOK(res1)) {
15470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15471 }
15472 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15473 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15474 if (!SWIG_IsOK(res2)) {
15475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15476 }
15477 arg2 = reinterpret_cast< wxWindow * >(argp2);
15478 if (obj2) {
15479 ecode3 = SWIG_AsVal_int(obj2, &val3);
15480 if (!SWIG_IsOK(ecode3)) {
15481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15482 }
15483 arg3 = static_cast< int >(val3);
15484 }
15485 if (obj3) {
36ed4f51 15486 {
1bd55598
RD
15487 arg4 = wxString_in_helper(obj3);
15488 if (arg4 == NULL) SWIG_fail;
15489 temp4 = true;
36ed4f51 15490 }
1bd55598
RD
15491 }
15492 if (obj4) {
36ed4f51 15493 {
1bd55598
RD
15494 arg5 = &temp5;
15495 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15496 }
1bd55598
RD
15497 }
15498 if (obj5) {
d55e5bfc 15499 {
1bd55598
RD
15500 arg6 = &temp6;
15501 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15502 }
1bd55598
RD
15503 }
15504 if (obj6) {
15505 ecode7 = SWIG_AsVal_long(obj6, &val7);
15506 if (!SWIG_IsOK(ecode7)) {
15507 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15508 }
15509 arg7 = static_cast< long >(val7);
15510 }
15511 if (obj7) {
15512 ecode8 = SWIG_AsVal_int(obj7, &val8);
15513 if (!SWIG_IsOK(ecode8)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15515 }
15516 arg8 = static_cast< int >(val8);
15517 }
15518 if (obj8) {
15519 ecode9 = SWIG_AsVal_int(obj8, &val9);
15520 if (!SWIG_IsOK(ecode9)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15522 }
15523 arg9 = static_cast< int >(val9);
15524 }
15525 if (obj9) {
15526 ecode10 = SWIG_AsVal_int(obj9, &val10);
15527 if (!SWIG_IsOK(ecode10)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15529 }
15530 arg10 = static_cast< int >(val10);
15531 }
15532 if (obj10) {
15533 {
15534 arg11 = wxString_in_helper(obj10);
15535 if (arg11 == NULL) SWIG_fail;
15536 temp11 = true;
15537 }
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 {
15546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15547 }
15548 {
15549 if (temp4)
15550 delete arg4;
15551 }
15552 {
15553 if (temp11)
15554 delete arg11;
15555 }
15556 return resultobj;
15557fail:
15558 {
15559 if (temp4)
15560 delete arg4;
15561 }
15562 {
15563 if (temp11)
15564 delete arg11;
15565 }
15566 return NULL;
d55e5bfc
RD
15567}
15568
15569
1bd55598
RD
15570SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15571 PyObject *resultobj = 0;
15572 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15573 int result;
15574 void *argp1 = 0 ;
15575 int res1 = 0 ;
15576 PyObject *swig_obj[1] ;
15577
15578 if (!args) SWIG_fail;
15579 swig_obj[0] = args;
15580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15581 if (!SWIG_IsOK(res1)) {
15582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15583 }
15584 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15585 {
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_From_int(static_cast< int >(result));
15592 return resultobj;
15593fail:
15594 return NULL;
15595}
15596
15597
15598SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj = 0;
15600 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15601 int arg2 ;
15602 void *argp1 = 0 ;
15603 int res1 = 0 ;
15604 int val2 ;
15605 int ecode2 = 0 ;
15606 PyObject * obj0 = 0 ;
15607 PyObject * obj1 = 0 ;
15608 char * kwnames[] = {
15609 (char *) "self",(char *) "value", NULL
15610 };
15611
15612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15616 }
15617 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15618 ecode2 = SWIG_AsVal_int(obj1, &val2);
15619 if (!SWIG_IsOK(ecode2)) {
15620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15621 }
15622 arg2 = static_cast< int >(val2);
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 (arg1)->SetValue(arg2);
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 resultobj = SWIG_Py_Void();
15630 return resultobj;
15631fail:
15632 return NULL;
15633}
15634
15635
15636SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj = 0;
15638 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15639 wxString *arg2 = 0 ;
15640 void *argp1 = 0 ;
15641 int res1 = 0 ;
15642 bool temp2 = false ;
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645 char * kwnames[] = {
15646 (char *) "self",(char *) "text", NULL
15647 };
15648
15649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15651 if (!SWIG_IsOK(res1)) {
15652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15653 }
15654 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15655 {
15656 arg2 = wxString_in_helper(obj1);
15657 if (arg2 == NULL) SWIG_fail;
15658 temp2 = true;
15659 }
15660 {
15661 PyThreadState* __tstate = wxPyBeginAllowThreads();
15662 (arg1)->SetValue((wxString const &)*arg2);
15663 wxPyEndAllowThreads(__tstate);
15664 if (PyErr_Occurred()) SWIG_fail;
15665 }
15666 resultobj = SWIG_Py_Void();
15667 {
15668 if (temp2)
15669 delete arg2;
15670 }
15671 return resultobj;
15672fail:
15673 {
15674 if (temp2)
15675 delete arg2;
15676 }
15677 return NULL;
15678}
15679
15680
15681SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj = 0;
15683 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15684 int arg2 ;
15685 int arg3 ;
15686 void *argp1 = 0 ;
15687 int res1 = 0 ;
15688 int val2 ;
15689 int ecode2 = 0 ;
15690 int val3 ;
15691 int ecode3 = 0 ;
15692 PyObject * obj0 = 0 ;
15693 PyObject * obj1 = 0 ;
15694 PyObject * obj2 = 0 ;
15695 char * kwnames[] = {
15696 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15697 };
15698
15699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15701 if (!SWIG_IsOK(res1)) {
15702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15703 }
15704 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15705 ecode2 = SWIG_AsVal_int(obj1, &val2);
15706 if (!SWIG_IsOK(ecode2)) {
15707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15708 }
15709 arg2 = static_cast< int >(val2);
15710 ecode3 = SWIG_AsVal_int(obj2, &val3);
15711 if (!SWIG_IsOK(ecode3)) {
15712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15713 }
15714 arg3 = static_cast< int >(val3);
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 (arg1)->SetRange(arg2,arg3);
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 resultobj = SWIG_Py_Void();
15722 return resultobj;
15723fail:
15724 return NULL;
d55e5bfc
RD
15725}
15726
15727
1bd55598
RD
15728SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15729 PyObject *resultobj = 0;
15730 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15731 int result;
15732 void *argp1 = 0 ;
15733 int res1 = 0 ;
15734 PyObject *swig_obj[1] ;
15735
15736 if (!args) SWIG_fail;
15737 swig_obj[0] = args;
15738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15739 if (!SWIG_IsOK(res1)) {
15740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15741 }
15742 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 resultobj = SWIG_From_int(static_cast< int >(result));
15750 return resultobj;
15751fail:
15752 return NULL;
d55e5bfc
RD
15753}
15754
15755
1bd55598
RD
15756SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15757 PyObject *resultobj = 0;
15758 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15759 int result;
15760 void *argp1 = 0 ;
15761 int res1 = 0 ;
15762 PyObject *swig_obj[1] ;
15763
15764 if (!args) SWIG_fail;
15765 swig_obj[0] = args;
15766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15767 if (!SWIG_IsOK(res1)) {
15768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15769 }
15770 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = SWIG_From_int(static_cast< int >(result));
15778 return resultobj;
15779fail:
15780 return NULL;
15781}
15782
15783
15784SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15785 PyObject *resultobj = 0;
15786 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15787 long arg2 ;
15788 long arg3 ;
15789 void *argp1 = 0 ;
15790 int res1 = 0 ;
15791 long val2 ;
15792 int ecode2 = 0 ;
15793 long val3 ;
15794 int ecode3 = 0 ;
15795 PyObject * obj0 = 0 ;
15796 PyObject * obj1 = 0 ;
15797 PyObject * obj2 = 0 ;
15798 char * kwnames[] = {
2131d850 15799 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15800 };
15801
15802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15804 if (!SWIG_IsOK(res1)) {
15805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15806 }
15807 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15808 ecode2 = SWIG_AsVal_long(obj1, &val2);
15809 if (!SWIG_IsOK(ecode2)) {
15810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15811 }
15812 arg2 = static_cast< long >(val2);
15813 ecode3 = SWIG_AsVal_long(obj2, &val3);
15814 if (!SWIG_IsOK(ecode3)) {
15815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15816 }
15817 arg3 = static_cast< long >(val3);
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 (arg1)->SetSelection(arg2,arg3);
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 resultobj = SWIG_Py_Void();
15825 return resultobj;
15826fail:
15827 return NULL;
15828}
15829
15830
15831SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj = 0;
15833 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15834 SwigValueWrapper<wxVisualAttributes > result;
15835 int val1 ;
15836 int ecode1 = 0 ;
15837 PyObject * obj0 = 0 ;
15838 char * kwnames[] = {
15839 (char *) "variant", NULL
15840 };
15841
15842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15843 if (obj0) {
15844 ecode1 = SWIG_AsVal_int(obj0, &val1);
15845 if (!SWIG_IsOK(ecode1)) {
15846 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15847 }
15848 arg1 = static_cast< wxWindowVariant >(val1);
15849 }
15850 {
15851 if (!wxPyCheckForApp()) SWIG_fail;
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15858 return resultobj;
15859fail:
15860 return NULL;
d55e5bfc
RD
15861}
15862
15863
1bd55598
RD
15864SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15865 PyObject *obj;
15866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15867 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15868 return SWIG_Py_Void();
d55e5bfc
RD
15869}
15870
1bd55598
RD
15871SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15872 return SWIG_Python_InitShadowInstance(args);
15873}
d55e5bfc 15874
1bd55598
RD
15875SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj = 0;
15877 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15878 int arg2 = (int) 0 ;
15879 wxSpinEvent *result = 0 ;
15880 int val1 ;
15881 int ecode1 = 0 ;
15882 int val2 ;
15883 int ecode2 = 0 ;
15884 PyObject * obj0 = 0 ;
15885 PyObject * obj1 = 0 ;
15886 char * kwnames[] = {
15887 (char *) "commandType",(char *) "winid", NULL
15888 };
15889
15890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15891 if (obj0) {
15892 ecode1 = SWIG_AsVal_int(obj0, &val1);
15893 if (!SWIG_IsOK(ecode1)) {
15894 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15895 }
15896 arg1 = static_cast< wxEventType >(val1);
15897 }
15898 if (obj1) {
15899 ecode2 = SWIG_AsVal_int(obj1, &val2);
15900 if (!SWIG_IsOK(ecode2)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15902 }
15903 arg2 = static_cast< int >(val2);
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15908 wxPyEndAllowThreads(__tstate);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15912 return resultobj;
15913fail:
15914 return NULL;
d55e5bfc
RD
15915}
15916
15917
1bd55598
RD
15918SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15919 PyObject *resultobj = 0;
15920 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15921 int result;
15922 void *argp1 = 0 ;
15923 int res1 = 0 ;
15924 PyObject *swig_obj[1] ;
15925
15926 if (!args) SWIG_fail;
15927 swig_obj[0] = args;
15928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15929 if (!SWIG_IsOK(res1)) {
15930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15931 }
15932 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 resultobj = SWIG_From_int(static_cast< int >(result));
15940 return resultobj;
15941fail:
15942 return NULL;
15943}
15944
15945
15946SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15947 PyObject *resultobj = 0;
15948 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15949 int arg2 ;
15950 void *argp1 = 0 ;
15951 int res1 = 0 ;
15952 int val2 ;
15953 int ecode2 = 0 ;
15954 PyObject * obj0 = 0 ;
15955 PyObject * obj1 = 0 ;
15956 char * kwnames[] = {
15957 (char *) "self",(char *) "pos", NULL
15958 };
15959
15960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15962 if (!SWIG_IsOK(res1)) {
15963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15964 }
15965 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15966 ecode2 = SWIG_AsVal_int(obj1, &val2);
15967 if (!SWIG_IsOK(ecode2)) {
15968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15969 }
15970 arg2 = static_cast< int >(val2);
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 (arg1)->SetPosition(arg2);
15974 wxPyEndAllowThreads(__tstate);
15975 if (PyErr_Occurred()) SWIG_fail;
15976 }
15977 resultobj = SWIG_Py_Void();
15978 return resultobj;
15979fail:
15980 return NULL;
d55e5bfc
RD
15981}
15982
15983
1bd55598
RD
15984SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15985 PyObject *obj;
15986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15987 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15988 return SWIG_Py_Void();
d55e5bfc
RD
15989}
15990
1bd55598
RD
15991SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15992 return SWIG_Python_InitShadowInstance(args);
15993}
d55e5bfc 15994
1bd55598
RD
15995SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15996 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15997 return 1;
d55e5bfc
RD
15998}
15999
16000
1bd55598
RD
16001SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16002 PyObject *pyobj = 0;
16003
16004 {
16005#if wxUSE_UNICODE
16006 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16007#else
16008 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16009#endif
16010 }
16011 return pyobj;
d55e5bfc
RD
16012}
16013
16014
1bd55598
RD
16015SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16016 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16017 return 1;
16018}
16019
16020
16021SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16022 PyObject *pyobj = 0;
16023
16024 {
16025#if wxUSE_UNICODE
16026 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16027#else
16028 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16029#endif
16030 }
16031 return pyobj;
16032}
16033
16034
16035SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj = 0;
16037 wxWindow *arg1 = (wxWindow *) 0 ;
16038 int arg2 = (int) -1 ;
16039 wxString const &arg3_defvalue = wxPyEmptyString ;
16040 wxString *arg3 = (wxString *) &arg3_defvalue ;
16041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16043 wxSize const &arg5_defvalue = wxDefaultSize ;
16044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16045 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16046 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16047 int arg7 = (int) 0 ;
16048 long arg8 = (long) wxRA_HORIZONTAL ;
16049 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16050 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16051 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16052 wxString *arg10 = (wxString *) &arg10_defvalue ;
16053 wxRadioBox *result = 0 ;
16054 void *argp1 = 0 ;
16055 int res1 = 0 ;
16056 int val2 ;
16057 int ecode2 = 0 ;
16058 bool temp3 = false ;
16059 wxPoint temp4 ;
16060 wxSize temp5 ;
16061 bool temp6 = false ;
16062 int val7 ;
16063 int ecode7 = 0 ;
16064 long val8 ;
16065 int ecode8 = 0 ;
16066 void *argp9 = 0 ;
16067 int res9 = 0 ;
16068 bool temp10 = false ;
16069 PyObject * obj0 = 0 ;
16070 PyObject * obj1 = 0 ;
16071 PyObject * obj2 = 0 ;
16072 PyObject * obj3 = 0 ;
16073 PyObject * obj4 = 0 ;
16074 PyObject * obj5 = 0 ;
16075 PyObject * obj6 = 0 ;
16076 PyObject * obj7 = 0 ;
16077 PyObject * obj8 = 0 ;
16078 PyObject * obj9 = 0 ;
16079 char * kwnames[] = {
16080 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16081 };
16082
16083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16085 if (!SWIG_IsOK(res1)) {
16086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16087 }
16088 arg1 = reinterpret_cast< wxWindow * >(argp1);
16089 if (obj1) {
16090 ecode2 = SWIG_AsVal_int(obj1, &val2);
16091 if (!SWIG_IsOK(ecode2)) {
16092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16093 }
16094 arg2 = static_cast< int >(val2);
16095 }
16096 if (obj2) {
36ed4f51 16097 {
1bd55598
RD
16098 arg3 = wxString_in_helper(obj2);
16099 if (arg3 == NULL) SWIG_fail;
16100 temp3 = true;
36ed4f51 16101 }
1bd55598
RD
16102 }
16103 if (obj3) {
36ed4f51 16104 {
1bd55598
RD
16105 arg4 = &temp4;
16106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16107 }
1bd55598
RD
16108 }
16109 if (obj4) {
d55e5bfc 16110 {
1bd55598
RD
16111 arg5 = &temp5;
16112 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16113 }
1bd55598
RD
16114 }
16115 if (obj5) {
d55e5bfc 16116 {
1bd55598
RD
16117 if (! PySequence_Check(obj5)) {
16118 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16119 SWIG_fail;
16120 }
16121 arg6 = new wxArrayString;
16122 temp6 = true;
16123 int i, len=PySequence_Length(obj5);
16124 for (i=0; i<len; i++) {
16125 PyObject* item = PySequence_GetItem(obj5, i);
16126 wxString* s = wxString_in_helper(item);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 arg6->Add(*s);
16129 delete s;
16130 Py_DECREF(item);
16131 }
d55e5bfc 16132 }
1bd55598
RD
16133 }
16134 if (obj6) {
16135 ecode7 = SWIG_AsVal_int(obj6, &val7);
16136 if (!SWIG_IsOK(ecode7)) {
16137 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16138 }
16139 arg7 = static_cast< int >(val7);
16140 }
16141 if (obj7) {
16142 ecode8 = SWIG_AsVal_long(obj7, &val8);
16143 if (!SWIG_IsOK(ecode8)) {
16144 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16145 }
16146 arg8 = static_cast< long >(val8);
16147 }
16148 if (obj8) {
16149 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16150 if (!SWIG_IsOK(res9)) {
16151 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16152 }
1bd55598
RD
16153 if (!argp9) {
16154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16155 }
1bd55598
RD
16156 arg9 = reinterpret_cast< wxValidator * >(argp9);
16157 }
16158 if (obj9) {
d55e5bfc 16159 {
1bd55598
RD
16160 arg10 = wxString_in_helper(obj9);
16161 if (arg10 == NULL) SWIG_fail;
16162 temp10 = true;
d55e5bfc 16163 }
1bd55598
RD
16164 }
16165 {
16166 if (!wxPyCheckForApp()) SWIG_fail;
16167 PyThreadState* __tstate = wxPyBeginAllowThreads();
16168 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);
16169 wxPyEndAllowThreads(__tstate);
16170 if (PyErr_Occurred()) SWIG_fail;
16171 }
16172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16173 {
16174 if (temp3)
16175 delete arg3;
16176 }
16177 {
16178 if (temp6) delete arg6;
16179 }
16180 {
16181 if (temp10)
16182 delete arg10;
16183 }
16184 return resultobj;
16185fail:
16186 {
16187 if (temp3)
16188 delete arg3;
16189 }
16190 {
16191 if (temp6) delete arg6;
16192 }
16193 {
16194 if (temp10)
16195 delete arg10;
16196 }
16197 return NULL;
d55e5bfc
RD
16198}
16199
16200
1bd55598
RD
16201SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16202 PyObject *resultobj = 0;
16203 wxRadioBox *result = 0 ;
16204
16205 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16206 {
16207 if (!wxPyCheckForApp()) SWIG_fail;
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (wxRadioBox *)new wxRadioBox();
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16214 return resultobj;
16215fail:
16216 return NULL;
16217}
16218
16219
16220SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16221 PyObject *resultobj = 0;
16222 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16223 wxWindow *arg2 = (wxWindow *) 0 ;
16224 int arg3 = (int) -1 ;
16225 wxString const &arg4_defvalue = wxPyEmptyString ;
16226 wxString *arg4 = (wxString *) &arg4_defvalue ;
16227 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16228 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16229 wxSize const &arg6_defvalue = wxDefaultSize ;
16230 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16231 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16232 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16233 int arg8 = (int) 0 ;
16234 long arg9 = (long) wxRA_HORIZONTAL ;
16235 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16236 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16237 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16238 wxString *arg11 = (wxString *) &arg11_defvalue ;
16239 bool result;
16240 void *argp1 = 0 ;
16241 int res1 = 0 ;
16242 void *argp2 = 0 ;
16243 int res2 = 0 ;
16244 int val3 ;
16245 int ecode3 = 0 ;
16246 bool temp4 = false ;
16247 wxPoint temp5 ;
16248 wxSize temp6 ;
16249 bool temp7 = false ;
16250 int val8 ;
16251 int ecode8 = 0 ;
16252 long val9 ;
16253 int ecode9 = 0 ;
16254 void *argp10 = 0 ;
16255 int res10 = 0 ;
16256 bool temp11 = false ;
16257 PyObject * obj0 = 0 ;
16258 PyObject * obj1 = 0 ;
16259 PyObject * obj2 = 0 ;
16260 PyObject * obj3 = 0 ;
16261 PyObject * obj4 = 0 ;
16262 PyObject * obj5 = 0 ;
16263 PyObject * obj6 = 0 ;
16264 PyObject * obj7 = 0 ;
16265 PyObject * obj8 = 0 ;
16266 PyObject * obj9 = 0 ;
16267 PyObject * obj10 = 0 ;
16268 char * kwnames[] = {
16269 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16270 };
16271
16272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16274 if (!SWIG_IsOK(res1)) {
16275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16276 }
16277 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16278 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16279 if (!SWIG_IsOK(res2)) {
16280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16281 }
16282 arg2 = reinterpret_cast< wxWindow * >(argp2);
16283 if (obj2) {
16284 ecode3 = SWIG_AsVal_int(obj2, &val3);
16285 if (!SWIG_IsOK(ecode3)) {
16286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16287 }
16288 arg3 = static_cast< int >(val3);
16289 }
16290 if (obj3) {
36ed4f51 16291 {
1bd55598
RD
16292 arg4 = wxString_in_helper(obj3);
16293 if (arg4 == NULL) SWIG_fail;
16294 temp4 = true;
36ed4f51 16295 }
1bd55598
RD
16296 }
16297 if (obj4) {
36ed4f51 16298 {
1bd55598
RD
16299 arg5 = &temp5;
16300 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16301 }
1bd55598
RD
16302 }
16303 if (obj5) {
d55e5bfc 16304 {
1bd55598
RD
16305 arg6 = &temp6;
16306 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16307 }
1bd55598
RD
16308 }
16309 if (obj6) {
36ed4f51 16310 {
1bd55598
RD
16311 if (! PySequence_Check(obj6)) {
16312 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16313 SWIG_fail;
16314 }
16315 arg7 = new wxArrayString;
16316 temp7 = true;
16317 int i, len=PySequence_Length(obj6);
16318 for (i=0; i<len; i++) {
16319 PyObject* item = PySequence_GetItem(obj6, i);
16320 wxString* s = wxString_in_helper(item);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 arg7->Add(*s);
16323 delete s;
16324 Py_DECREF(item);
16325 }
36ed4f51 16326 }
1bd55598
RD
16327 }
16328 if (obj7) {
16329 ecode8 = SWIG_AsVal_int(obj7, &val8);
16330 if (!SWIG_IsOK(ecode8)) {
16331 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16332 }
16333 arg8 = static_cast< int >(val8);
16334 }
16335 if (obj8) {
16336 ecode9 = SWIG_AsVal_long(obj8, &val9);
16337 if (!SWIG_IsOK(ecode9)) {
16338 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16339 }
16340 arg9 = static_cast< long >(val9);
16341 }
16342 if (obj9) {
16343 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16344 if (!SWIG_IsOK(res10)) {
16345 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16346 }
1bd55598
RD
16347 if (!argp10) {
16348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16349 }
1bd55598
RD
16350 arg10 = reinterpret_cast< wxValidator * >(argp10);
16351 }
16352 if (obj10) {
d55e5bfc 16353 {
1bd55598
RD
16354 arg11 = wxString_in_helper(obj10);
16355 if (arg11 == NULL) SWIG_fail;
16356 temp11 = true;
d55e5bfc 16357 }
1bd55598
RD
16358 }
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 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);
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 {
16366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16367 }
16368 {
16369 if (temp4)
16370 delete arg4;
16371 }
16372 {
16373 if (temp7) delete arg7;
16374 }
16375 {
16376 if (temp11)
16377 delete arg11;
16378 }
16379 return resultobj;
16380fail:
16381 {
16382 if (temp4)
16383 delete arg4;
16384 }
16385 {
16386 if (temp7) delete arg7;
16387 }
16388 {
16389 if (temp11)
16390 delete arg11;
16391 }
16392 return NULL;
16393}
16394
16395
16396SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16397 PyObject *resultobj = 0;
16398 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16399 int arg2 ;
16400 void *argp1 = 0 ;
16401 int res1 = 0 ;
16402 int val2 ;
16403 int ecode2 = 0 ;
16404 PyObject * obj0 = 0 ;
16405 PyObject * obj1 = 0 ;
16406 char * kwnames[] = {
16407 (char *) "self",(char *) "n", NULL
16408 };
16409
16410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16412 if (!SWIG_IsOK(res1)) {
16413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16414 }
16415 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16416 ecode2 = SWIG_AsVal_int(obj1, &val2);
16417 if (!SWIG_IsOK(ecode2)) {
16418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16419 }
16420 arg2 = static_cast< int >(val2);
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 (arg1)->SetSelection(arg2);
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 resultobj = SWIG_Py_Void();
16428 return resultobj;
16429fail:
16430 return NULL;
d55e5bfc
RD
16431}
16432
16433
1bd55598
RD
16434SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16435 PyObject *resultobj = 0;
16436 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16437 int result;
16438 void *argp1 = 0 ;
16439 int res1 = 0 ;
16440 PyObject *swig_obj[1] ;
16441
16442 if (!args) SWIG_fail;
16443 swig_obj[0] = args;
16444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16445 if (!SWIG_IsOK(res1)) {
16446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16447 }
16448 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16449 {
16450 PyThreadState* __tstate = wxPyBeginAllowThreads();
16451 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16452 wxPyEndAllowThreads(__tstate);
16453 if (PyErr_Occurred()) SWIG_fail;
16454 }
16455 resultobj = SWIG_From_int(static_cast< int >(result));
16456 return resultobj;
16457fail:
16458 return NULL;
d55e5bfc
RD
16459}
16460
16461
1bd55598
RD
16462SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16463 PyObject *resultobj = 0;
16464 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16465 wxString result;
16466 void *argp1 = 0 ;
16467 int res1 = 0 ;
16468 PyObject *swig_obj[1] ;
16469
16470 if (!args) SWIG_fail;
16471 swig_obj[0] = args;
16472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16473 if (!SWIG_IsOK(res1)) {
16474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16475 }
16476 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 {
16484#if wxUSE_UNICODE
16485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16486#else
16487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16488#endif
16489 }
16490 return resultobj;
16491fail:
16492 return NULL;
16493}
16494
16495
16496SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16497 PyObject *resultobj = 0;
16498 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16499 wxString *arg2 = 0 ;
16500 bool result;
16501 void *argp1 = 0 ;
16502 int res1 = 0 ;
16503 bool temp2 = false ;
16504 PyObject * obj0 = 0 ;
16505 PyObject * obj1 = 0 ;
16506 char * kwnames[] = {
16507 (char *) "self",(char *) "s", NULL
16508 };
16509
16510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16512 if (!SWIG_IsOK(res1)) {
16513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16514 }
16515 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16516 {
16517 arg2 = wxString_in_helper(obj1);
16518 if (arg2 == NULL) SWIG_fail;
16519 temp2 = true;
16520 }
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 {
16528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16529 }
16530 {
16531 if (temp2)
16532 delete arg2;
16533 }
16534 return resultobj;
16535fail:
16536 {
16537 if (temp2)
16538 delete arg2;
16539 }
16540 return NULL;
4896ac9e
RD
16541}
16542
16543
1bd55598
RD
16544SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16545 PyObject *resultobj = 0;
16546 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16547 size_t result;
1bd55598
RD
16548 void *argp1 = 0 ;
16549 int res1 = 0 ;
16550 PyObject *swig_obj[1] ;
16551
16552 if (!args) SWIG_fail;
16553 swig_obj[0] = args;
16554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16555 if (!SWIG_IsOK(res1)) {
16556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16557 }
16558 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16559 {
16560 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16561 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
1c71765a 16565 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16566 return resultobj;
16567fail:
16568 return NULL;
16569}
16570
16571
16572SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16573 PyObject *resultobj = 0;
16574 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16575 wxString *arg2 = 0 ;
16576 int result;
16577 void *argp1 = 0 ;
16578 int res1 = 0 ;
16579 bool temp2 = false ;
16580 PyObject * obj0 = 0 ;
16581 PyObject * obj1 = 0 ;
16582 char * kwnames[] = {
16583 (char *) "self",(char *) "s", NULL
16584 };
16585
16586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16588 if (!SWIG_IsOK(res1)) {
16589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16590 }
16591 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16592 {
16593 arg2 = wxString_in_helper(obj1);
16594 if (arg2 == NULL) SWIG_fail;
16595 temp2 = true;
16596 }
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 resultobj = SWIG_From_int(static_cast< int >(result));
16604 {
16605 if (temp2)
16606 delete arg2;
16607 }
16608 return resultobj;
16609fail:
16610 {
16611 if (temp2)
16612 delete arg2;
16613 }
16614 return NULL;
16615}
16616
16617
16618SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16619 PyObject *resultobj = 0;
16620 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16621 int arg2 ;
16622 wxString result;
16623 void *argp1 = 0 ;
16624 int res1 = 0 ;
16625 int val2 ;
16626 int ecode2 = 0 ;
16627 PyObject * obj0 = 0 ;
16628 PyObject * obj1 = 0 ;
16629 char * kwnames[] = {
16630 (char *) "self",(char *) "n", NULL
16631 };
16632
16633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16635 if (!SWIG_IsOK(res1)) {
16636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16637 }
16638 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16639 ecode2 = SWIG_AsVal_int(obj1, &val2);
16640 if (!SWIG_IsOK(ecode2)) {
16641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16642 }
16643 arg2 = static_cast< int >(val2);
16644 {
16645 PyThreadState* __tstate = wxPyBeginAllowThreads();
16646 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16647 wxPyEndAllowThreads(__tstate);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
16650 {
16651#if wxUSE_UNICODE
16652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16653#else
16654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16655#endif
16656 }
16657 return resultobj;
16658fail:
16659 return NULL;
16660}
16661
16662
16663SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16664 PyObject *resultobj = 0;
16665 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16666 int arg2 ;
16667 wxString *arg3 = 0 ;
16668 void *argp1 = 0 ;
16669 int res1 = 0 ;
16670 int val2 ;
16671 int ecode2 = 0 ;
16672 bool temp3 = false ;
16673 PyObject * obj0 = 0 ;
16674 PyObject * obj1 = 0 ;
16675 PyObject * obj2 = 0 ;
16676 char * kwnames[] = {
16677 (char *) "self",(char *) "n",(char *) "label", NULL
16678 };
16679
16680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16682 if (!SWIG_IsOK(res1)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16684 }
16685 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16686 ecode2 = SWIG_AsVal_int(obj1, &val2);
16687 if (!SWIG_IsOK(ecode2)) {
16688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16689 }
16690 arg2 = static_cast< int >(val2);
16691 {
16692 arg3 = wxString_in_helper(obj2);
16693 if (arg3 == NULL) SWIG_fail;
16694 temp3 = true;
16695 }
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
16698 (arg1)->SetString(arg2,(wxString const &)*arg3);
16699 wxPyEndAllowThreads(__tstate);
16700 if (PyErr_Occurred()) SWIG_fail;
16701 }
16702 resultobj = SWIG_Py_Void();
16703 {
16704 if (temp3)
16705 delete arg3;
16706 }
16707 return resultobj;
16708fail:
16709 {
16710 if (temp3)
16711 delete arg3;
16712 }
16713 return NULL;
16714}
16715
16716
16717SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16718 PyObject *resultobj = 0;
16719 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16720 unsigned int arg2 ;
1bd55598
RD
16721 bool arg3 = (bool) true ;
16722 void *argp1 = 0 ;
16723 int res1 = 0 ;
50f151d7 16724 unsigned int val2 ;
1bd55598
RD
16725 int ecode2 = 0 ;
16726 bool val3 ;
16727 int ecode3 = 0 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 PyObject * obj2 = 0 ;
16731 char * kwnames[] = {
16732 (char *) "self",(char *) "n",(char *) "enable", NULL
16733 };
16734
16735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16737 if (!SWIG_IsOK(res1)) {
16738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16739 }
16740 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16741 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16742 if (!SWIG_IsOK(ecode2)) {
50f151d7 16743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16744 }
50f151d7 16745 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16746 if (obj2) {
16747 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16748 if (!SWIG_IsOK(ecode3)) {
16749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16750 }
16751 arg3 = static_cast< bool >(val3);
16752 }
16753 {
16754 PyThreadState* __tstate = wxPyBeginAllowThreads();
16755 (arg1)->Enable(arg2,arg3);
16756 wxPyEndAllowThreads(__tstate);
16757 if (PyErr_Occurred()) SWIG_fail;
16758 }
16759 resultobj = SWIG_Py_Void();
16760 return resultobj;
16761fail:
16762 return NULL;
16763}
16764
16765
16766SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16767 PyObject *resultobj = 0;
16768 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16769 unsigned int arg2 ;
1bd55598
RD
16770 bool arg3 = (bool) true ;
16771 void *argp1 = 0 ;
16772 int res1 = 0 ;
50f151d7 16773 unsigned int val2 ;
1bd55598
RD
16774 int ecode2 = 0 ;
16775 bool val3 ;
16776 int ecode3 = 0 ;
16777 PyObject * obj0 = 0 ;
16778 PyObject * obj1 = 0 ;
16779 PyObject * obj2 = 0 ;
16780 char * kwnames[] = {
16781 (char *) "self",(char *) "n",(char *) "show", NULL
16782 };
16783
16784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16786 if (!SWIG_IsOK(res1)) {
16787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16788 }
16789 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16790 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16791 if (!SWIG_IsOK(ecode2)) {
50f151d7 16792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16793 }
50f151d7 16794 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16795 if (obj2) {
16796 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16797 if (!SWIG_IsOK(ecode3)) {
16798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16799 }
16800 arg3 = static_cast< bool >(val3);
16801 }
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 (arg1)->Show(arg2,arg3);
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 resultobj = SWIG_Py_Void();
16809 return resultobj;
16810fail:
16811 return NULL;
d55e5bfc
RD
16812}
16813
16814
50f151d7
RD
16815SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj = 0;
16817 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16818 unsigned int arg2 ;
16819 bool result;
16820 void *argp1 = 0 ;
16821 int res1 = 0 ;
16822 unsigned int val2 ;
16823 int ecode2 = 0 ;
16824 PyObject * obj0 = 0 ;
16825 PyObject * obj1 = 0 ;
16826 char * kwnames[] = {
16827 (char *) "self",(char *) "n", NULL
16828 };
16829
16830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16832 if (!SWIG_IsOK(res1)) {
16833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16834 }
16835 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16836 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16837 if (!SWIG_IsOK(ecode2)) {
16838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16839 }
16840 arg2 = static_cast< unsigned int >(val2);
16841 {
16842 PyThreadState* __tstate = wxPyBeginAllowThreads();
16843 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16844 wxPyEndAllowThreads(__tstate);
16845 if (PyErr_Occurred()) SWIG_fail;
16846 }
16847 {
16848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16849 }
16850 return resultobj;
16851fail:
16852 return NULL;
16853}
16854
16855
16856SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16857 PyObject *resultobj = 0;
16858 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16859 unsigned int arg2 ;
16860 bool result;
16861 void *argp1 = 0 ;
16862 int res1 = 0 ;
16863 unsigned int val2 ;
16864 int ecode2 = 0 ;
16865 PyObject * obj0 = 0 ;
16866 PyObject * obj1 = 0 ;
16867 char * kwnames[] = {
16868 (char *) "self",(char *) "n", NULL
16869 };
16870
16871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16873 if (!SWIG_IsOK(res1)) {
16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16875 }
16876 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16877 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16878 if (!SWIG_IsOK(ecode2)) {
16879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16880 }
16881 arg2 = static_cast< unsigned int >(val2);
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 {
16889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16890 }
16891 return resultobj;
16892fail:
16893 return NULL;
16894}
16895
16896
1bd55598
RD
16897SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16898 PyObject *resultobj = 0;
16899 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16900 unsigned int result;
1bd55598
RD
16901 void *argp1 = 0 ;
16902 int res1 = 0 ;
16903 PyObject *swig_obj[1] ;
16904
16905 if (!args) SWIG_fail;
16906 swig_obj[0] = args;
16907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16908 if (!SWIG_IsOK(res1)) {
16909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16910 }
16911 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16914 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
50f151d7 16918 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16919 return resultobj;
16920fail:
16921 return NULL;
d55e5bfc
RD
16922}
16923
16924
1bd55598
RD
16925SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16926 PyObject *resultobj = 0;
16927 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16928 unsigned int result;
1bd55598
RD
16929 void *argp1 = 0 ;
16930 int res1 = 0 ;
16931 PyObject *swig_obj[1] ;
16932
16933 if (!args) SWIG_fail;
16934 swig_obj[0] = args;
16935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16936 if (!SWIG_IsOK(res1)) {
16937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16938 }
16939 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16942 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
50f151d7 16946 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16947 return resultobj;
16948fail:
16949 return NULL;
16950}
16951
16952
16953SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16956 int arg2 ;
16957 wxDirection arg3 ;
16958 long arg4 ;
16959 int result;
16960 void *argp1 = 0 ;
16961 int res1 = 0 ;
16962 int val2 ;
16963 int ecode2 = 0 ;
16964 int val3 ;
16965 int ecode3 = 0 ;
16966 long val4 ;
16967 int ecode4 = 0 ;
16968 PyObject * obj0 = 0 ;
16969 PyObject * obj1 = 0 ;
16970 PyObject * obj2 = 0 ;
16971 PyObject * obj3 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16980 }
16981 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16982 ecode2 = SWIG_AsVal_int(obj1, &val2);
16983 if (!SWIG_IsOK(ecode2)) {
16984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16985 }
16986 arg2 = static_cast< int >(val2);
16987 ecode3 = SWIG_AsVal_int(obj2, &val3);
16988 if (!SWIG_IsOK(ecode3)) {
16989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16990 }
16991 arg3 = static_cast< wxDirection >(val3);
16992 ecode4 = SWIG_AsVal_long(obj3, &val4);
16993 if (!SWIG_IsOK(ecode4)) {
16994 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16995 }
16996 arg4 = static_cast< long >(val4);
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 resultobj = SWIG_From_int(static_cast< int >(result));
17004 return resultobj;
17005fail:
17006 return NULL;
17007}
17008
17009
2131d850
RD
17010SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj = 0;
17012 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17013 unsigned int arg2 ;
17014 wxString *arg3 = 0 ;
17015 void *argp1 = 0 ;
17016 int res1 = 0 ;
17017 unsigned int val2 ;
17018 int ecode2 = 0 ;
17019 bool temp3 = false ;
17020 PyObject * obj0 = 0 ;
17021 PyObject * obj1 = 0 ;
17022 PyObject * obj2 = 0 ;
17023 char * kwnames[] = {
17024 (char *) "self",(char *) "item",(char *) "text", NULL
17025 };
17026
17027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17029 if (!SWIG_IsOK(res1)) {
17030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17031 }
17032 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17033 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17034 if (!SWIG_IsOK(ecode2)) {
17035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17036 }
17037 arg2 = static_cast< unsigned int >(val2);
17038 {
17039 arg3 = wxString_in_helper(obj2);
17040 if (arg3 == NULL) SWIG_fail;
17041 temp3 = true;
17042 }
17043 {
17044 PyThreadState* __tstate = wxPyBeginAllowThreads();
17045 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17046 wxPyEndAllowThreads(__tstate);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 resultobj = SWIG_Py_Void();
17050 {
17051 if (temp3)
17052 delete arg3;
17053 }
17054 return resultobj;
17055fail:
17056 {
17057 if (temp3)
17058 delete arg3;
17059 }
17060 return NULL;
17061}
17062
17063
17064SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj = 0;
17066 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17067 unsigned int arg2 ;
17068 wxToolTip *result = 0 ;
17069 void *argp1 = 0 ;
17070 int res1 = 0 ;
17071 unsigned int val2 ;
17072 int ecode2 = 0 ;
17073 PyObject * obj0 = 0 ;
17074 PyObject * obj1 = 0 ;
17075 char * kwnames[] = {
17076 (char *) "self",(char *) "item", NULL
17077 };
17078
17079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17081 if (!SWIG_IsOK(res1)) {
17082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17083 }
17084 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17085 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17086 if (!SWIG_IsOK(ecode2)) {
17087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17088 }
17089 arg2 = static_cast< unsigned int >(val2);
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 {
17097 resultobj = wxPyMake_wxObject(result, (bool)0);
17098 }
17099 return resultobj;
17100fail:
17101 return NULL;
17102}
17103
17104
b850e7f3
RD
17105SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17106 PyObject *resultobj = 0;
17107 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17108 unsigned int arg2 ;
17109 wxString *arg3 = 0 ;
17110 void *argp1 = 0 ;
17111 int res1 = 0 ;
17112 unsigned int val2 ;
17113 int ecode2 = 0 ;
17114 bool temp3 = false ;
17115 PyObject * obj0 = 0 ;
17116 PyObject * obj1 = 0 ;
17117 PyObject * obj2 = 0 ;
17118 char * kwnames[] = {
17119 (char *) "self",(char *) "n",(char *) "helpText", NULL
17120 };
17121
17122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17124 if (!SWIG_IsOK(res1)) {
17125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17126 }
17127 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17128 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17129 if (!SWIG_IsOK(ecode2)) {
17130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17131 }
17132 arg2 = static_cast< unsigned int >(val2);
17133 {
17134 arg3 = wxString_in_helper(obj2);
17135 if (arg3 == NULL) SWIG_fail;
17136 temp3 = true;
17137 }
17138 {
17139 PyThreadState* __tstate = wxPyBeginAllowThreads();
17140 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 resultobj = SWIG_Py_Void();
17145 {
17146 if (temp3)
17147 delete arg3;
17148 }
17149 return resultobj;
17150fail:
17151 {
17152 if (temp3)
17153 delete arg3;
17154 }
17155 return NULL;
17156}
17157
17158
17159SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj = 0;
17161 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17162 unsigned int arg2 ;
17163 wxString result;
17164 void *argp1 = 0 ;
17165 int res1 = 0 ;
17166 unsigned int val2 ;
17167 int ecode2 = 0 ;
17168 PyObject * obj0 = 0 ;
17169 PyObject * obj1 = 0 ;
17170 char * kwnames[] = {
17171 (char *) "self",(char *) "n", NULL
17172 };
17173
17174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17176 if (!SWIG_IsOK(res1)) {
17177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17178 }
17179 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17180 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17181 if (!SWIG_IsOK(ecode2)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17183 }
17184 arg2 = static_cast< unsigned int >(val2);
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192#if wxUSE_UNICODE
17193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17194#else
17195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17196#endif
17197 }
17198 return resultobj;
17199fail:
17200 return NULL;
17201}
17202
17203
1bd55598
RD
17204SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17205 PyObject *resultobj = 0;
17206 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17207 SwigValueWrapper<wxVisualAttributes > result;
17208 int val1 ;
17209 int ecode1 = 0 ;
17210 PyObject * obj0 = 0 ;
17211 char * kwnames[] = {
17212 (char *) "variant", NULL
17213 };
17214
17215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17216 if (obj0) {
17217 ecode1 = SWIG_AsVal_int(obj0, &val1);
17218 if (!SWIG_IsOK(ecode1)) {
17219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17220 }
17221 arg1 = static_cast< wxWindowVariant >(val1);
17222 }
17223 {
17224 if (!wxPyCheckForApp()) SWIG_fail;
17225 PyThreadState* __tstate = wxPyBeginAllowThreads();
17226 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17227 wxPyEndAllowThreads(__tstate);
17228 if (PyErr_Occurred()) SWIG_fail;
17229 }
17230 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17231 return resultobj;
17232fail:
17233 return NULL;
17234}
17235
17236
17237SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17238 PyObject *obj;
17239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17240 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17241 return SWIG_Py_Void();
17242}
17243
17244SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 return SWIG_Python_InitShadowInstance(args);
17246}
17247
17248SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj = 0;
17250 wxWindow *arg1 = (wxWindow *) 0 ;
17251 int arg2 = (int) -1 ;
17252 wxString const &arg3_defvalue = wxPyEmptyString ;
17253 wxString *arg3 = (wxString *) &arg3_defvalue ;
17254 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17255 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17256 wxSize const &arg5_defvalue = wxDefaultSize ;
17257 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17258 long arg6 = (long) 0 ;
17259 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17260 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17261 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17262 wxString *arg8 = (wxString *) &arg8_defvalue ;
17263 wxRadioButton *result = 0 ;
17264 void *argp1 = 0 ;
17265 int res1 = 0 ;
17266 int val2 ;
17267 int ecode2 = 0 ;
17268 bool temp3 = false ;
17269 wxPoint temp4 ;
17270 wxSize temp5 ;
17271 long val6 ;
17272 int ecode6 = 0 ;
17273 void *argp7 = 0 ;
17274 int res7 = 0 ;
17275 bool temp8 = false ;
17276 PyObject * obj0 = 0 ;
17277 PyObject * obj1 = 0 ;
17278 PyObject * obj2 = 0 ;
17279 PyObject * obj3 = 0 ;
17280 PyObject * obj4 = 0 ;
17281 PyObject * obj5 = 0 ;
17282 PyObject * obj6 = 0 ;
17283 PyObject * obj7 = 0 ;
17284 char * kwnames[] = {
17285 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17286 };
17287
17288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17290 if (!SWIG_IsOK(res1)) {
17291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17292 }
17293 arg1 = reinterpret_cast< wxWindow * >(argp1);
17294 if (obj1) {
17295 ecode2 = SWIG_AsVal_int(obj1, &val2);
17296 if (!SWIG_IsOK(ecode2)) {
17297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17298 }
17299 arg2 = static_cast< int >(val2);
17300 }
17301 if (obj2) {
d55e5bfc 17302 {
1bd55598
RD
17303 arg3 = wxString_in_helper(obj2);
17304 if (arg3 == NULL) SWIG_fail;
17305 temp3 = true;
d55e5bfc 17306 }
1bd55598
RD
17307 }
17308 if (obj3) {
d55e5bfc 17309 {
1bd55598
RD
17310 arg4 = &temp4;
17311 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17312 }
1bd55598
RD
17313 }
17314 if (obj4) {
d55e5bfc 17315 {
1bd55598
RD
17316 arg5 = &temp5;
17317 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17318 }
1bd55598
RD
17319 }
17320 if (obj5) {
17321 ecode6 = SWIG_AsVal_long(obj5, &val6);
17322 if (!SWIG_IsOK(ecode6)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17324 }
17325 arg6 = static_cast< long >(val6);
17326 }
17327 if (obj6) {
17328 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17329 if (!SWIG_IsOK(res7)) {
17330 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17331 }
1bd55598
RD
17332 if (!argp7) {
17333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17334 }
17335 arg7 = reinterpret_cast< wxValidator * >(argp7);
17336 }
17337 if (obj7) {
d55e5bfc 17338 {
1bd55598
RD
17339 arg8 = wxString_in_helper(obj7);
17340 if (arg8 == NULL) SWIG_fail;
17341 temp8 = true;
d55e5bfc 17342 }
1bd55598
RD
17343 }
17344 {
17345 if (!wxPyCheckForApp()) SWIG_fail;
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17348 wxPyEndAllowThreads(__tstate);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 }
17351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17352 {
17353 if (temp3)
17354 delete arg3;
17355 }
17356 {
17357 if (temp8)
17358 delete arg8;
17359 }
17360 return resultobj;
17361fail:
17362 {
17363 if (temp3)
17364 delete arg3;
17365 }
17366 {
17367 if (temp8)
17368 delete arg8;
17369 }
17370 return NULL;
d55e5bfc
RD
17371}
17372
17373
1bd55598
RD
17374SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17375 PyObject *resultobj = 0;
17376 wxRadioButton *result = 0 ;
17377
17378 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17379 {
17380 if (!wxPyCheckForApp()) SWIG_fail;
17381 PyThreadState* __tstate = wxPyBeginAllowThreads();
17382 result = (wxRadioButton *)new wxRadioButton();
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17387 return resultobj;
17388fail:
17389 return NULL;
17390}
17391
17392
17393SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj = 0;
17395 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17396 wxWindow *arg2 = (wxWindow *) 0 ;
17397 int arg3 = (int) -1 ;
17398 wxString const &arg4_defvalue = wxPyEmptyString ;
17399 wxString *arg4 = (wxString *) &arg4_defvalue ;
17400 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17401 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17402 wxSize const &arg6_defvalue = wxDefaultSize ;
17403 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17404 long arg7 = (long) 0 ;
17405 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17406 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17407 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17408 wxString *arg9 = (wxString *) &arg9_defvalue ;
17409 bool result;
17410 void *argp1 = 0 ;
17411 int res1 = 0 ;
17412 void *argp2 = 0 ;
17413 int res2 = 0 ;
17414 int val3 ;
17415 int ecode3 = 0 ;
17416 bool temp4 = false ;
17417 wxPoint temp5 ;
17418 wxSize temp6 ;
17419 long val7 ;
17420 int ecode7 = 0 ;
17421 void *argp8 = 0 ;
17422 int res8 = 0 ;
17423 bool temp9 = false ;
17424 PyObject * obj0 = 0 ;
17425 PyObject * obj1 = 0 ;
17426 PyObject * obj2 = 0 ;
17427 PyObject * obj3 = 0 ;
17428 PyObject * obj4 = 0 ;
17429 PyObject * obj5 = 0 ;
17430 PyObject * obj6 = 0 ;
17431 PyObject * obj7 = 0 ;
17432 PyObject * obj8 = 0 ;
17433 char * kwnames[] = {
17434 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17435 };
17436
17437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17439 if (!SWIG_IsOK(res1)) {
17440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17441 }
17442 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17443 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17444 if (!SWIG_IsOK(res2)) {
17445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17446 }
17447 arg2 = reinterpret_cast< wxWindow * >(argp2);
17448 if (obj2) {
17449 ecode3 = SWIG_AsVal_int(obj2, &val3);
17450 if (!SWIG_IsOK(ecode3)) {
17451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17452 }
17453 arg3 = static_cast< int >(val3);
17454 }
17455 if (obj3) {
d55e5bfc 17456 {
1bd55598
RD
17457 arg4 = wxString_in_helper(obj3);
17458 if (arg4 == NULL) SWIG_fail;
17459 temp4 = true;
d55e5bfc 17460 }
1bd55598
RD
17461 }
17462 if (obj4) {
d55e5bfc 17463 {
1bd55598
RD
17464 arg5 = &temp5;
17465 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17466 }
1bd55598
RD
17467 }
17468 if (obj5) {
d55e5bfc 17469 {
1bd55598
RD
17470 arg6 = &temp6;
17471 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17472 }
1bd55598
RD
17473 }
17474 if (obj6) {
17475 ecode7 = SWIG_AsVal_long(obj6, &val7);
17476 if (!SWIG_IsOK(ecode7)) {
17477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17478 }
17479 arg7 = static_cast< long >(val7);
17480 }
17481 if (obj7) {
17482 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17483 if (!SWIG_IsOK(res8)) {
17484 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17485 }
1bd55598
RD
17486 if (!argp8) {
17487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17488 }
1bd55598
RD
17489 arg8 = reinterpret_cast< wxValidator * >(argp8);
17490 }
17491 if (obj8) {
d55e5bfc 17492 {
1bd55598
RD
17493 arg9 = wxString_in_helper(obj8);
17494 if (arg9 == NULL) SWIG_fail;
17495 temp9 = true;
d55e5bfc 17496 }
1bd55598
RD
17497 }
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17501 wxPyEndAllowThreads(__tstate);
17502 if (PyErr_Occurred()) SWIG_fail;
17503 }
17504 {
17505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17506 }
17507 {
17508 if (temp4)
17509 delete arg4;
17510 }
17511 {
17512 if (temp9)
17513 delete arg9;
17514 }
17515 return resultobj;
17516fail:
17517 {
17518 if (temp4)
17519 delete arg4;
17520 }
17521 {
17522 if (temp9)
17523 delete arg9;
17524 }
17525 return NULL;
d55e5bfc
RD
17526}
17527
17528
1bd55598
RD
17529SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17530 PyObject *resultobj = 0;
17531 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17532 bool result;
17533 void *argp1 = 0 ;
17534 int res1 = 0 ;
17535 PyObject *swig_obj[1] ;
17536
17537 if (!args) SWIG_fail;
17538 swig_obj[0] = args;
17539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17540 if (!SWIG_IsOK(res1)) {
17541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17542 }
17543 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 result = (bool)(arg1)->GetValue();
17547 wxPyEndAllowThreads(__tstate);
17548 if (PyErr_Occurred()) SWIG_fail;
17549 }
17550 {
17551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17552 }
17553 return resultobj;
17554fail:
17555 return NULL;
17556}
17557
17558
17559SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj = 0;
17561 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17562 bool arg2 ;
17563 void *argp1 = 0 ;
17564 int res1 = 0 ;
17565 bool val2 ;
17566 int ecode2 = 0 ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 char * kwnames[] = {
17570 (char *) "self",(char *) "value", NULL
17571 };
17572
17573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17575 if (!SWIG_IsOK(res1)) {
17576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17577 }
17578 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17579 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17580 if (!SWIG_IsOK(ecode2)) {
17581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17582 }
17583 arg2 = static_cast< bool >(val2);
17584 {
17585 PyThreadState* __tstate = wxPyBeginAllowThreads();
17586 (arg1)->SetValue(arg2);
17587 wxPyEndAllowThreads(__tstate);
17588 if (PyErr_Occurred()) SWIG_fail;
17589 }
17590 resultobj = SWIG_Py_Void();
17591 return resultobj;
17592fail:
17593 return NULL;
17594}
17595
17596
17597SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17598 PyObject *resultobj = 0;
17599 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17600 SwigValueWrapper<wxVisualAttributes > result;
17601 int val1 ;
17602 int ecode1 = 0 ;
17603 PyObject * obj0 = 0 ;
17604 char * kwnames[] = {
17605 (char *) "variant", NULL
17606 };
17607
17608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17609 if (obj0) {
17610 ecode1 = SWIG_AsVal_int(obj0, &val1);
17611 if (!SWIG_IsOK(ecode1)) {
17612 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17613 }
17614 arg1 = static_cast< wxWindowVariant >(val1);
17615 }
17616 {
17617 if (!wxPyCheckForApp()) SWIG_fail;
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17624 return resultobj;
17625fail:
17626 return NULL;
d55e5bfc
RD
17627}
17628
17629
1bd55598
RD
17630SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17631 PyObject *obj;
17632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17633 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17634 return SWIG_Py_Void();
d55e5bfc
RD
17635}
17636
1bd55598
RD
17637SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17638 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17639}
17640
1bd55598
RD
17641SWIGINTERN int SliderNameStr_set(PyObject *) {
17642 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17643 return 1;
d55e5bfc
RD
17644}
17645
17646
1bd55598
RD
17647SWIGINTERN PyObject *SliderNameStr_get(void) {
17648 PyObject *pyobj = 0;
17649
17650 {
17651#if wxUSE_UNICODE
17652 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17653#else
17654 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17655#endif
17656 }
17657 return pyobj;
17658}
17659
17660
17661SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17662 PyObject *resultobj = 0;
17663 wxWindow *arg1 = (wxWindow *) 0 ;
17664 int arg2 = (int) -1 ;
17665 int arg3 = (int) 0 ;
17666 int arg4 = (int) 0 ;
17667 int arg5 = (int) 100 ;
17668 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17669 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17670 wxSize const &arg7_defvalue = wxDefaultSize ;
17671 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17672 long arg8 = (long) wxSL_HORIZONTAL ;
17673 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17674 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17675 wxString const &arg10_defvalue = wxPySliderNameStr ;
17676 wxString *arg10 = (wxString *) &arg10_defvalue ;
17677 wxSlider *result = 0 ;
17678 void *argp1 = 0 ;
17679 int res1 = 0 ;
17680 int val2 ;
17681 int ecode2 = 0 ;
17682 int val3 ;
17683 int ecode3 = 0 ;
17684 int val4 ;
17685 int ecode4 = 0 ;
17686 int val5 ;
17687 int ecode5 = 0 ;
17688 wxPoint temp6 ;
17689 wxSize temp7 ;
17690 long val8 ;
17691 int ecode8 = 0 ;
17692 void *argp9 = 0 ;
17693 int res9 = 0 ;
17694 bool temp10 = false ;
17695 PyObject * obj0 = 0 ;
17696 PyObject * obj1 = 0 ;
17697 PyObject * obj2 = 0 ;
17698 PyObject * obj3 = 0 ;
17699 PyObject * obj4 = 0 ;
17700 PyObject * obj5 = 0 ;
17701 PyObject * obj6 = 0 ;
17702 PyObject * obj7 = 0 ;
17703 PyObject * obj8 = 0 ;
17704 PyObject * obj9 = 0 ;
17705 char * kwnames[] = {
17706 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17707 };
17708
17709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17711 if (!SWIG_IsOK(res1)) {
17712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17713 }
17714 arg1 = reinterpret_cast< wxWindow * >(argp1);
17715 if (obj1) {
17716 ecode2 = SWIG_AsVal_int(obj1, &val2);
17717 if (!SWIG_IsOK(ecode2)) {
17718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17719 }
17720 arg2 = static_cast< int >(val2);
17721 }
17722 if (obj2) {
17723 ecode3 = SWIG_AsVal_int(obj2, &val3);
17724 if (!SWIG_IsOK(ecode3)) {
17725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17726 }
17727 arg3 = static_cast< int >(val3);
17728 }
17729 if (obj3) {
17730 ecode4 = SWIG_AsVal_int(obj3, &val4);
17731 if (!SWIG_IsOK(ecode4)) {
17732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17733 }
17734 arg4 = static_cast< int >(val4);
17735 }
17736 if (obj4) {
17737 ecode5 = SWIG_AsVal_int(obj4, &val5);
17738 if (!SWIG_IsOK(ecode5)) {
17739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17740 }
17741 arg5 = static_cast< int >(val5);
17742 }
17743 if (obj5) {
36ed4f51 17744 {
1bd55598
RD
17745 arg6 = &temp6;
17746 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17747 }
1bd55598
RD
17748 }
17749 if (obj6) {
36ed4f51 17750 {
1bd55598
RD
17751 arg7 = &temp7;
17752 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17753 }
1bd55598
RD
17754 }
17755 if (obj7) {
17756 ecode8 = SWIG_AsVal_long(obj7, &val8);
17757 if (!SWIG_IsOK(ecode8)) {
17758 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17759 }
17760 arg8 = static_cast< long >(val8);
17761 }
17762 if (obj8) {
17763 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17764 if (!SWIG_IsOK(res9)) {
17765 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17766 }
1bd55598
RD
17767 if (!argp9) {
17768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17769 }
1bd55598
RD
17770 arg9 = reinterpret_cast< wxValidator * >(argp9);
17771 }
17772 if (obj9) {
d55e5bfc 17773 {
1bd55598
RD
17774 arg10 = wxString_in_helper(obj9);
17775 if (arg10 == NULL) SWIG_fail;
17776 temp10 = true;
d55e5bfc 17777 }
1bd55598
RD
17778 }
17779 {
17780 if (!wxPyCheckForApp()) SWIG_fail;
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17787 {
17788 if (temp10)
17789 delete arg10;
17790 }
17791 return resultobj;
17792fail:
17793 {
17794 if (temp10)
17795 delete arg10;
17796 }
17797 return NULL;
d55e5bfc
RD
17798}
17799
17800
1bd55598
RD
17801SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17802 PyObject *resultobj = 0;
17803 wxSlider *result = 0 ;
17804
17805 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17806 {
17807 if (!wxPyCheckForApp()) SWIG_fail;
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 result = (wxSlider *)new wxSlider();
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17814 return resultobj;
17815fail:
17816 return NULL;
17817}
17818
17819
17820SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj = 0;
17822 wxSlider *arg1 = (wxSlider *) 0 ;
17823 wxWindow *arg2 = (wxWindow *) 0 ;
17824 int arg3 = (int) -1 ;
17825 int arg4 = (int) 0 ;
17826 int arg5 = (int) 0 ;
17827 int arg6 = (int) 100 ;
17828 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17829 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17830 wxSize const &arg8_defvalue = wxDefaultSize ;
17831 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17832 long arg9 = (long) wxSL_HORIZONTAL ;
17833 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17834 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17835 wxString const &arg11_defvalue = wxPySliderNameStr ;
17836 wxString *arg11 = (wxString *) &arg11_defvalue ;
17837 bool result;
17838 void *argp1 = 0 ;
17839 int res1 = 0 ;
17840 void *argp2 = 0 ;
17841 int res2 = 0 ;
17842 int val3 ;
17843 int ecode3 = 0 ;
17844 int val4 ;
17845 int ecode4 = 0 ;
17846 int val5 ;
17847 int ecode5 = 0 ;
17848 int val6 ;
17849 int ecode6 = 0 ;
17850 wxPoint temp7 ;
17851 wxSize temp8 ;
17852 long val9 ;
17853 int ecode9 = 0 ;
17854 void *argp10 = 0 ;
17855 int res10 = 0 ;
17856 bool temp11 = false ;
17857 PyObject * obj0 = 0 ;
17858 PyObject * obj1 = 0 ;
17859 PyObject * obj2 = 0 ;
17860 PyObject * obj3 = 0 ;
17861 PyObject * obj4 = 0 ;
17862 PyObject * obj5 = 0 ;
17863 PyObject * obj6 = 0 ;
17864 PyObject * obj7 = 0 ;
17865 PyObject * obj8 = 0 ;
17866 PyObject * obj9 = 0 ;
17867 PyObject * obj10 = 0 ;
17868 char * kwnames[] = {
17869 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17870 };
17871
17872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17874 if (!SWIG_IsOK(res1)) {
17875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17876 }
17877 arg1 = reinterpret_cast< wxSlider * >(argp1);
17878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17879 if (!SWIG_IsOK(res2)) {
17880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17881 }
17882 arg2 = reinterpret_cast< wxWindow * >(argp2);
17883 if (obj2) {
17884 ecode3 = SWIG_AsVal_int(obj2, &val3);
17885 if (!SWIG_IsOK(ecode3)) {
17886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17887 }
17888 arg3 = static_cast< int >(val3);
17889 }
17890 if (obj3) {
17891 ecode4 = SWIG_AsVal_int(obj3, &val4);
17892 if (!SWIG_IsOK(ecode4)) {
17893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17894 }
17895 arg4 = static_cast< int >(val4);
17896 }
17897 if (obj4) {
17898 ecode5 = SWIG_AsVal_int(obj4, &val5);
17899 if (!SWIG_IsOK(ecode5)) {
17900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17901 }
17902 arg5 = static_cast< int >(val5);
17903 }
17904 if (obj5) {
17905 ecode6 = SWIG_AsVal_int(obj5, &val6);
17906 if (!SWIG_IsOK(ecode6)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17908 }
17909 arg6 = static_cast< int >(val6);
17910 }
17911 if (obj6) {
d55e5bfc 17912 {
1bd55598
RD
17913 arg7 = &temp7;
17914 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17915 }
1bd55598
RD
17916 }
17917 if (obj7) {
d55e5bfc 17918 {
1bd55598
RD
17919 arg8 = &temp8;
17920 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17921 }
1bd55598
RD
17922 }
17923 if (obj8) {
17924 ecode9 = SWIG_AsVal_long(obj8, &val9);
17925 if (!SWIG_IsOK(ecode9)) {
17926 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17927 }
17928 arg9 = static_cast< long >(val9);
17929 }
17930 if (obj9) {
17931 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17932 if (!SWIG_IsOK(res10)) {
17933 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17934 }
1bd55598
RD
17935 if (!argp10) {
17936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17937 }
1bd55598
RD
17938 arg10 = reinterpret_cast< wxValidator * >(argp10);
17939 }
17940 if (obj10) {
d55e5bfc 17941 {
1bd55598
RD
17942 arg11 = wxString_in_helper(obj10);
17943 if (arg11 == NULL) SWIG_fail;
17944 temp11 = true;
d55e5bfc 17945 }
1bd55598
RD
17946 }
17947 {
17948 PyThreadState* __tstate = wxPyBeginAllowThreads();
17949 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17950 wxPyEndAllowThreads(__tstate);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 {
17954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17955 }
17956 {
17957 if (temp11)
17958 delete arg11;
17959 }
17960 return resultobj;
17961fail:
17962 {
17963 if (temp11)
17964 delete arg11;
17965 }
17966 return NULL;
d55e5bfc
RD
17967}
17968
17969
1bd55598
RD
17970SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17971 PyObject *resultobj = 0;
17972 wxSlider *arg1 = (wxSlider *) 0 ;
17973 int result;
17974 void *argp1 = 0 ;
17975 int res1 = 0 ;
17976 PyObject *swig_obj[1] ;
17977
17978 if (!args) SWIG_fail;
17979 swig_obj[0] = args;
17980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17981 if (!SWIG_IsOK(res1)) {
17982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17983 }
17984 arg1 = reinterpret_cast< wxSlider * >(argp1);
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 result = (int)((wxSlider const *)arg1)->GetValue();
17988 wxPyEndAllowThreads(__tstate);
17989 if (PyErr_Occurred()) SWIG_fail;
17990 }
17991 resultobj = SWIG_From_int(static_cast< int >(result));
17992 return resultobj;
17993fail:
17994 return NULL;
17995}
17996
17997
17998SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17999 PyObject *resultobj = 0;
18000 wxSlider *arg1 = (wxSlider *) 0 ;
18001 int arg2 ;
18002 void *argp1 = 0 ;
18003 int res1 = 0 ;
18004 int val2 ;
18005 int ecode2 = 0 ;
18006 PyObject * obj0 = 0 ;
18007 PyObject * obj1 = 0 ;
18008 char * kwnames[] = {
18009 (char *) "self",(char *) "value", NULL
18010 };
18011
18012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18014 if (!SWIG_IsOK(res1)) {
18015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18016 }
18017 arg1 = reinterpret_cast< wxSlider * >(argp1);
18018 ecode2 = SWIG_AsVal_int(obj1, &val2);
18019 if (!SWIG_IsOK(ecode2)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18021 }
18022 arg2 = static_cast< int >(val2);
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 (arg1)->SetValue(arg2);
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_Py_Void();
18030 return resultobj;
18031fail:
18032 return NULL;
18033}
18034
18035
18036SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxSlider *arg1 = (wxSlider *) 0 ;
18039 int arg2 ;
18040 int arg3 ;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 int val2 ;
18044 int ecode2 = 0 ;
18045 int val3 ;
18046 int ecode3 = 0 ;
18047 PyObject * obj0 = 0 ;
18048 PyObject * obj1 = 0 ;
18049 PyObject * obj2 = 0 ;
18050 char * kwnames[] = {
18051 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18052 };
18053
18054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18056 if (!SWIG_IsOK(res1)) {
18057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18058 }
18059 arg1 = reinterpret_cast< wxSlider * >(argp1);
18060 ecode2 = SWIG_AsVal_int(obj1, &val2);
18061 if (!SWIG_IsOK(ecode2)) {
18062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18063 }
18064 arg2 = static_cast< int >(val2);
18065 ecode3 = SWIG_AsVal_int(obj2, &val3);
18066 if (!SWIG_IsOK(ecode3)) {
18067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18068 }
18069 arg3 = static_cast< int >(val3);
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 (arg1)->SetRange(arg2,arg3);
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 resultobj = SWIG_Py_Void();
18077 return resultobj;
18078fail:
18079 return NULL;
d55e5bfc
RD
18080}
18081
18082
1bd55598
RD
18083SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18084 PyObject *resultobj = 0;
18085 wxSlider *arg1 = (wxSlider *) 0 ;
18086 int result;
18087 void *argp1 = 0 ;
18088 int res1 = 0 ;
18089 PyObject *swig_obj[1] ;
18090
18091 if (!args) SWIG_fail;
18092 swig_obj[0] = args;
18093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18094 if (!SWIG_IsOK(res1)) {
18095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18096 }
18097 arg1 = reinterpret_cast< wxSlider * >(argp1);
18098 {
18099 PyThreadState* __tstate = wxPyBeginAllowThreads();
18100 result = (int)((wxSlider const *)arg1)->GetMin();
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 resultobj = SWIG_From_int(static_cast< int >(result));
18105 return resultobj;
18106fail:
18107 return NULL;
f20a2e1f
RD
18108}
18109
18110
1bd55598
RD
18111SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18112 PyObject *resultobj = 0;
18113 wxSlider *arg1 = (wxSlider *) 0 ;
18114 int result;
18115 void *argp1 = 0 ;
18116 int res1 = 0 ;
18117 PyObject *swig_obj[1] ;
18118
18119 if (!args) SWIG_fail;
18120 swig_obj[0] = args;
18121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18122 if (!SWIG_IsOK(res1)) {
18123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18124 }
18125 arg1 = reinterpret_cast< wxSlider * >(argp1);
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 result = (int)((wxSlider const *)arg1)->GetMax();
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_From_int(static_cast< int >(result));
18133 return resultobj;
18134fail:
18135 return NULL;
18136}
18137
18138
18139SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxSlider *arg1 = (wxSlider *) 0 ;
18142 int arg2 ;
18143 void *argp1 = 0 ;
18144 int res1 = 0 ;
18145 int val2 ;
18146 int ecode2 = 0 ;
18147 PyObject * obj0 = 0 ;
18148 PyObject * obj1 = 0 ;
18149 char * kwnames[] = {
18150 (char *) "self",(char *) "minValue", NULL
18151 };
18152
18153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18155 if (!SWIG_IsOK(res1)) {
18156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18157 }
18158 arg1 = reinterpret_cast< wxSlider * >(argp1);
18159 ecode2 = SWIG_AsVal_int(obj1, &val2);
18160 if (!SWIG_IsOK(ecode2)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18162 }
18163 arg2 = static_cast< int >(val2);
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 (arg1)->SetMin(arg2);
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 resultobj = SWIG_Py_Void();
18171 return resultobj;
18172fail:
18173 return NULL;
18174}
18175
18176
18177SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18178 PyObject *resultobj = 0;
18179 wxSlider *arg1 = (wxSlider *) 0 ;
18180 int arg2 ;
18181 void *argp1 = 0 ;
18182 int res1 = 0 ;
18183 int val2 ;
18184 int ecode2 = 0 ;
18185 PyObject * obj0 = 0 ;
18186 PyObject * obj1 = 0 ;
18187 char * kwnames[] = {
18188 (char *) "self",(char *) "maxValue", NULL
18189 };
18190
18191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18193 if (!SWIG_IsOK(res1)) {
18194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18195 }
18196 arg1 = reinterpret_cast< wxSlider * >(argp1);
18197 ecode2 = SWIG_AsVal_int(obj1, &val2);
18198 if (!SWIG_IsOK(ecode2)) {
18199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18200 }
18201 arg2 = static_cast< int >(val2);
18202 {
18203 PyThreadState* __tstate = wxPyBeginAllowThreads();
18204 (arg1)->SetMax(arg2);
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 resultobj = SWIG_Py_Void();
18209 return resultobj;
18210fail:
18211 return NULL;
18212}
18213
18214
18215SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18216 PyObject *resultobj = 0;
18217 wxSlider *arg1 = (wxSlider *) 0 ;
18218 int arg2 ;
18219 void *argp1 = 0 ;
18220 int res1 = 0 ;
18221 int val2 ;
18222 int ecode2 = 0 ;
18223 PyObject * obj0 = 0 ;
18224 PyObject * obj1 = 0 ;
18225 char * kwnames[] = {
18226 (char *) "self",(char *) "lineSize", NULL
18227 };
18228
18229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18231 if (!SWIG_IsOK(res1)) {
18232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18233 }
18234 arg1 = reinterpret_cast< wxSlider * >(argp1);
18235 ecode2 = SWIG_AsVal_int(obj1, &val2);
18236 if (!SWIG_IsOK(ecode2)) {
18237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18238 }
18239 arg2 = static_cast< int >(val2);
18240 {
18241 PyThreadState* __tstate = wxPyBeginAllowThreads();
18242 (arg1)->SetLineSize(arg2);
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 resultobj = SWIG_Py_Void();
18247 return resultobj;
18248fail:
18249 return NULL;
18250}
18251
18252
18253SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18254 PyObject *resultobj = 0;
18255 wxSlider *arg1 = (wxSlider *) 0 ;
18256 int arg2 ;
18257 void *argp1 = 0 ;
18258 int res1 = 0 ;
18259 int val2 ;
18260 int ecode2 = 0 ;
18261 PyObject * obj0 = 0 ;
18262 PyObject * obj1 = 0 ;
18263 char * kwnames[] = {
18264 (char *) "self",(char *) "pageSize", NULL
18265 };
18266
18267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18269 if (!SWIG_IsOK(res1)) {
18270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18271 }
18272 arg1 = reinterpret_cast< wxSlider * >(argp1);
18273 ecode2 = SWIG_AsVal_int(obj1, &val2);
18274 if (!SWIG_IsOK(ecode2)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18276 }
18277 arg2 = static_cast< int >(val2);
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 (arg1)->SetPageSize(arg2);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286fail:
18287 return NULL;
d55e5bfc
RD
18288}
18289
18290
1bd55598
RD
18291SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18292 PyObject *resultobj = 0;
18293 wxSlider *arg1 = (wxSlider *) 0 ;
18294 int result;
18295 void *argp1 = 0 ;
18296 int res1 = 0 ;
18297 PyObject *swig_obj[1] ;
18298
18299 if (!args) SWIG_fail;
18300 swig_obj[0] = args;
18301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18304 }
18305 arg1 = reinterpret_cast< wxSlider * >(argp1);
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 result = (int)((wxSlider const *)arg1)->GetLineSize();
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_From_int(static_cast< int >(result));
18313 return resultobj;
18314fail:
18315 return NULL;
d55e5bfc
RD
18316}
18317
18318
1bd55598
RD
18319SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18320 PyObject *resultobj = 0;
18321 wxSlider *arg1 = (wxSlider *) 0 ;
18322 int result;
18323 void *argp1 = 0 ;
18324 int res1 = 0 ;
18325 PyObject *swig_obj[1] ;
18326
18327 if (!args) SWIG_fail;
18328 swig_obj[0] = args;
18329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18330 if (!SWIG_IsOK(res1)) {
18331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18332 }
18333 arg1 = reinterpret_cast< wxSlider * >(argp1);
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (int)((wxSlider const *)arg1)->GetPageSize();
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 resultobj = SWIG_From_int(static_cast< int >(result));
18341 return resultobj;
18342fail:
18343 return NULL;
18344}
18345
18346
18347SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj = 0;
18349 wxSlider *arg1 = (wxSlider *) 0 ;
18350 int arg2 ;
18351 void *argp1 = 0 ;
18352 int res1 = 0 ;
18353 int val2 ;
18354 int ecode2 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 char * kwnames[] = {
18358 (char *) "self",(char *) "lenPixels", NULL
18359 };
18360
18361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18363 if (!SWIG_IsOK(res1)) {
18364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18365 }
18366 arg1 = reinterpret_cast< wxSlider * >(argp1);
18367 ecode2 = SWIG_AsVal_int(obj1, &val2);
18368 if (!SWIG_IsOK(ecode2)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18370 }
18371 arg2 = static_cast< int >(val2);
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 (arg1)->SetThumbLength(arg2);
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 resultobj = SWIG_Py_Void();
18379 return resultobj;
18380fail:
18381 return NULL;
d55e5bfc
RD
18382}
18383
18384
1bd55598
RD
18385SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18386 PyObject *resultobj = 0;
18387 wxSlider *arg1 = (wxSlider *) 0 ;
18388 int result;
18389 void *argp1 = 0 ;
18390 int res1 = 0 ;
18391 PyObject *swig_obj[1] ;
18392
18393 if (!args) SWIG_fail;
18394 swig_obj[0] = args;
18395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18396 if (!SWIG_IsOK(res1)) {
18397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18398 }
18399 arg1 = reinterpret_cast< wxSlider * >(argp1);
18400 {
18401 PyThreadState* __tstate = wxPyBeginAllowThreads();
18402 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18403 wxPyEndAllowThreads(__tstate);
18404 if (PyErr_Occurred()) SWIG_fail;
18405 }
18406 resultobj = SWIG_From_int(static_cast< int >(result));
18407 return resultobj;
18408fail:
18409 return NULL;
18410}
18411
18412
18413SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18414 PyObject *resultobj = 0;
18415 wxSlider *arg1 = (wxSlider *) 0 ;
18416 int arg2 ;
18417 int arg3 = (int) 1 ;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 int val2 ;
18421 int ecode2 = 0 ;
18422 int val3 ;
18423 int ecode3 = 0 ;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 PyObject * obj2 = 0 ;
18427 char * kwnames[] = {
18428 (char *) "self",(char *) "n",(char *) "pos", NULL
18429 };
18430
18431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18433 if (!SWIG_IsOK(res1)) {
18434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18435 }
18436 arg1 = reinterpret_cast< wxSlider * >(argp1);
18437 ecode2 = SWIG_AsVal_int(obj1, &val2);
18438 if (!SWIG_IsOK(ecode2)) {
18439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18440 }
18441 arg2 = static_cast< int >(val2);
18442 if (obj2) {
18443 ecode3 = SWIG_AsVal_int(obj2, &val3);
18444 if (!SWIG_IsOK(ecode3)) {
18445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18446 }
18447 arg3 = static_cast< int >(val3);
18448 }
18449 {
18450 PyThreadState* __tstate = wxPyBeginAllowThreads();
18451 (arg1)->SetTickFreq(arg2,arg3);
18452 wxPyEndAllowThreads(__tstate);
18453 if (PyErr_Occurred()) SWIG_fail;
18454 }
18455 resultobj = SWIG_Py_Void();
18456 return resultobj;
18457fail:
18458 return NULL;
d55e5bfc
RD
18459}
18460
18461
1bd55598
RD
18462SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18463 PyObject *resultobj = 0;
18464 wxSlider *arg1 = (wxSlider *) 0 ;
18465 int result;
18466 void *argp1 = 0 ;
18467 int res1 = 0 ;
18468 PyObject *swig_obj[1] ;
18469
18470 if (!args) SWIG_fail;
18471 swig_obj[0] = args;
18472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18473 if (!SWIG_IsOK(res1)) {
18474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18475 }
18476 arg1 = reinterpret_cast< wxSlider * >(argp1);
18477 {
18478 PyThreadState* __tstate = wxPyBeginAllowThreads();
18479 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18480 wxPyEndAllowThreads(__tstate);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 }
18483 resultobj = SWIG_From_int(static_cast< int >(result));
18484 return resultobj;
18485fail:
18486 return NULL;
d55e5bfc
RD
18487}
18488
18489
1bd55598
RD
18490SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18491 PyObject *resultobj = 0;
18492 wxSlider *arg1 = (wxSlider *) 0 ;
18493 void *argp1 = 0 ;
18494 int res1 = 0 ;
18495 PyObject *swig_obj[1] ;
18496
18497 if (!args) SWIG_fail;
18498 swig_obj[0] = args;
18499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18500 if (!SWIG_IsOK(res1)) {
18501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18502 }
18503 arg1 = reinterpret_cast< wxSlider * >(argp1);
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 (arg1)->ClearTicks();
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_Py_Void();
18511 return resultobj;
18512fail:
18513 return NULL;
18514}
18515
18516
18517SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxSlider *arg1 = (wxSlider *) 0 ;
18520 int arg2 ;
18521 void *argp1 = 0 ;
18522 int res1 = 0 ;
18523 int val2 ;
18524 int ecode2 = 0 ;
18525 PyObject * obj0 = 0 ;
18526 PyObject * obj1 = 0 ;
18527 char * kwnames[] = {
18528 (char *) "self",(char *) "tickPos", NULL
18529 };
18530
18531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18533 if (!SWIG_IsOK(res1)) {
18534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18535 }
18536 arg1 = reinterpret_cast< wxSlider * >(argp1);
18537 ecode2 = SWIG_AsVal_int(obj1, &val2);
18538 if (!SWIG_IsOK(ecode2)) {
18539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18540 }
18541 arg2 = static_cast< int >(val2);
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 (arg1)->SetTick(arg2);
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 resultobj = SWIG_Py_Void();
18549 return resultobj;
18550fail:
18551 return NULL;
d55e5bfc
RD
18552}
18553
18554
1bd55598
RD
18555SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18556 PyObject *resultobj = 0;
18557 wxSlider *arg1 = (wxSlider *) 0 ;
18558 void *argp1 = 0 ;
18559 int res1 = 0 ;
18560 PyObject *swig_obj[1] ;
18561
18562 if (!args) SWIG_fail;
18563 swig_obj[0] = args;
18564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18565 if (!SWIG_IsOK(res1)) {
18566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18567 }
18568 arg1 = reinterpret_cast< wxSlider * >(argp1);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->ClearSel();
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577fail:
18578 return NULL;
d55e5bfc
RD
18579}
18580
18581
1bd55598
RD
18582SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18583 PyObject *resultobj = 0;
18584 wxSlider *arg1 = (wxSlider *) 0 ;
18585 int result;
18586 void *argp1 = 0 ;
18587 int res1 = 0 ;
18588 PyObject *swig_obj[1] ;
18589
18590 if (!args) SWIG_fail;
18591 swig_obj[0] = args;
18592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18593 if (!SWIG_IsOK(res1)) {
18594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18595 }
18596 arg1 = reinterpret_cast< wxSlider * >(argp1);
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18600 wxPyEndAllowThreads(__tstate);
18601 if (PyErr_Occurred()) SWIG_fail;
18602 }
18603 resultobj = SWIG_From_int(static_cast< int >(result));
18604 return resultobj;
18605fail:
18606 return NULL;
d55e5bfc
RD
18607}
18608
18609
1bd55598
RD
18610SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18611 PyObject *resultobj = 0;
18612 wxSlider *arg1 = (wxSlider *) 0 ;
18613 int result;
18614 void *argp1 = 0 ;
18615 int res1 = 0 ;
18616 PyObject *swig_obj[1] ;
18617
18618 if (!args) SWIG_fail;
18619 swig_obj[0] = args;
18620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18623 }
18624 arg1 = reinterpret_cast< wxSlider * >(argp1);
18625 {
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (int)((wxSlider const *)arg1)->GetSelStart();
18628 wxPyEndAllowThreads(__tstate);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 resultobj = SWIG_From_int(static_cast< int >(result));
18632 return resultobj;
18633fail:
18634 return NULL;
18635}
18636
18637
18638SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18639 PyObject *resultobj = 0;
18640 wxSlider *arg1 = (wxSlider *) 0 ;
18641 int arg2 ;
18642 int arg3 ;
18643 void *argp1 = 0 ;
18644 int res1 = 0 ;
18645 int val2 ;
18646 int ecode2 = 0 ;
18647 int val3 ;
18648 int ecode3 = 0 ;
18649 PyObject * obj0 = 0 ;
18650 PyObject * obj1 = 0 ;
18651 PyObject * obj2 = 0 ;
18652 char * kwnames[] = {
18653 (char *) "self",(char *) "min",(char *) "max", NULL
18654 };
18655
18656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18658 if (!SWIG_IsOK(res1)) {
18659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18660 }
18661 arg1 = reinterpret_cast< wxSlider * >(argp1);
18662 ecode2 = SWIG_AsVal_int(obj1, &val2);
18663 if (!SWIG_IsOK(ecode2)) {
18664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18665 }
18666 arg2 = static_cast< int >(val2);
18667 ecode3 = SWIG_AsVal_int(obj2, &val3);
18668 if (!SWIG_IsOK(ecode3)) {
18669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18670 }
18671 arg3 = static_cast< int >(val3);
18672 {
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 (arg1)->SetSelection(arg2,arg3);
18675 wxPyEndAllowThreads(__tstate);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 }
18678 resultobj = SWIG_Py_Void();
18679 return resultobj;
18680fail:
18681 return NULL;
18682}
18683
18684
18685SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj = 0;
18687 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18688 SwigValueWrapper<wxVisualAttributes > result;
18689 int val1 ;
18690 int ecode1 = 0 ;
18691 PyObject * obj0 = 0 ;
18692 char * kwnames[] = {
18693 (char *) "variant", NULL
18694 };
18695
18696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18697 if (obj0) {
18698 ecode1 = SWIG_AsVal_int(obj0, &val1);
18699 if (!SWIG_IsOK(ecode1)) {
18700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18701 }
18702 arg1 = static_cast< wxWindowVariant >(val1);
18703 }
18704 {
18705 if (!wxPyCheckForApp()) SWIG_fail;
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 result = wxSlider::GetClassDefaultAttributes(arg1);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18712 return resultobj;
18713fail:
18714 return NULL;
d55e5bfc
RD
18715}
18716
18717
1bd55598
RD
18718SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18719 PyObject *obj;
18720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18721 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18722 return SWIG_Py_Void();
d55e5bfc
RD
18723}
18724
1bd55598
RD
18725SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18726 return SWIG_Python_InitShadowInstance(args);
18727}
d55e5bfc 18728
1bd55598
RD
18729SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18730 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18731 return 1;
d55e5bfc
RD
18732}
18733
18734
1bd55598
RD
18735SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18736 PyObject *pyobj = 0;
18737
18738 {
18739#if wxUSE_UNICODE
18740 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18741#else
18742 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18743#endif
18744 }
18745 return pyobj;
18746}
18747
18748
18749SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18750 PyObject *resultobj = 0;
18751 wxWindow *arg1 = (wxWindow *) 0 ;
18752 int arg2 = (int) -1 ;
18753 wxString const &arg3_defvalue = wxPyEmptyString ;
18754 wxString *arg3 = (wxString *) &arg3_defvalue ;
18755 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18756 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18757 wxSize const &arg5_defvalue = wxDefaultSize ;
18758 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18759 long arg6 = (long) 0 ;
18760 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18761 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18762 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18763 wxString *arg8 = (wxString *) &arg8_defvalue ;
18764 wxToggleButton *result = 0 ;
18765 void *argp1 = 0 ;
18766 int res1 = 0 ;
18767 int val2 ;
18768 int ecode2 = 0 ;
18769 bool temp3 = false ;
18770 wxPoint temp4 ;
18771 wxSize temp5 ;
18772 long val6 ;
18773 int ecode6 = 0 ;
18774 void *argp7 = 0 ;
18775 int res7 = 0 ;
18776 bool temp8 = false ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 PyObject * obj2 = 0 ;
18780 PyObject * obj3 = 0 ;
18781 PyObject * obj4 = 0 ;
18782 PyObject * obj5 = 0 ;
18783 PyObject * obj6 = 0 ;
18784 PyObject * obj7 = 0 ;
18785 char * kwnames[] = {
18786 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18787 };
18788
18789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18791 if (!SWIG_IsOK(res1)) {
18792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18793 }
18794 arg1 = reinterpret_cast< wxWindow * >(argp1);
18795 if (obj1) {
18796 ecode2 = SWIG_AsVal_int(obj1, &val2);
18797 if (!SWIG_IsOK(ecode2)) {
18798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18799 }
18800 arg2 = static_cast< int >(val2);
18801 }
18802 if (obj2) {
d55e5bfc 18803 {
1bd55598
RD
18804 arg3 = wxString_in_helper(obj2);
18805 if (arg3 == NULL) SWIG_fail;
18806 temp3 = true;
d55e5bfc 18807 }
1bd55598
RD
18808 }
18809 if (obj3) {
36ed4f51 18810 {
1bd55598
RD
18811 arg4 = &temp4;
18812 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18813 }
1bd55598
RD
18814 }
18815 if (obj4) {
d55e5bfc 18816 {
1bd55598
RD
18817 arg5 = &temp5;
18818 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18819 }
1bd55598
RD
18820 }
18821 if (obj5) {
18822 ecode6 = SWIG_AsVal_long(obj5, &val6);
18823 if (!SWIG_IsOK(ecode6)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18825 }
18826 arg6 = static_cast< long >(val6);
18827 }
18828 if (obj6) {
18829 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18830 if (!SWIG_IsOK(res7)) {
18831 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18832 }
1bd55598
RD
18833 if (!argp7) {
18834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18835 }
1bd55598
RD
18836 arg7 = reinterpret_cast< wxValidator * >(argp7);
18837 }
18838 if (obj7) {
d55e5bfc 18839 {
1bd55598
RD
18840 arg8 = wxString_in_helper(obj7);
18841 if (arg8 == NULL) SWIG_fail;
18842 temp8 = true;
d55e5bfc 18843 }
1bd55598
RD
18844 }
18845 {
18846 if (!wxPyCheckForApp()) SWIG_fail;
18847 PyThreadState* __tstate = wxPyBeginAllowThreads();
18848 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18853 {
18854 if (temp3)
18855 delete arg3;
18856 }
18857 {
18858 if (temp8)
18859 delete arg8;
18860 }
18861 return resultobj;
18862fail:
18863 {
18864 if (temp3)
18865 delete arg3;
18866 }
18867 {
18868 if (temp8)
18869 delete arg8;
18870 }
18871 return NULL;
d55e5bfc
RD
18872}
18873
18874
1bd55598
RD
18875SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18876 PyObject *resultobj = 0;
18877 wxToggleButton *result = 0 ;
18878
18879 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18880 {
18881 if (!wxPyCheckForApp()) SWIG_fail;
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (wxToggleButton *)new wxToggleButton();
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18888 return resultobj;
18889fail:
18890 return NULL;
18891}
18892
18893
18894SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18895 PyObject *resultobj = 0;
18896 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18897 wxWindow *arg2 = (wxWindow *) 0 ;
18898 int arg3 = (int) -1 ;
18899 wxString const &arg4_defvalue = wxPyEmptyString ;
18900 wxString *arg4 = (wxString *) &arg4_defvalue ;
18901 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18902 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18903 wxSize const &arg6_defvalue = wxDefaultSize ;
18904 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18905 long arg7 = (long) 0 ;
18906 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18907 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18908 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18909 wxString *arg9 = (wxString *) &arg9_defvalue ;
18910 bool result;
18911 void *argp1 = 0 ;
18912 int res1 = 0 ;
18913 void *argp2 = 0 ;
18914 int res2 = 0 ;
18915 int val3 ;
18916 int ecode3 = 0 ;
18917 bool temp4 = false ;
18918 wxPoint temp5 ;
18919 wxSize temp6 ;
18920 long val7 ;
18921 int ecode7 = 0 ;
18922 void *argp8 = 0 ;
18923 int res8 = 0 ;
18924 bool temp9 = false ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 PyObject * obj2 = 0 ;
18928 PyObject * obj3 = 0 ;
18929 PyObject * obj4 = 0 ;
18930 PyObject * obj5 = 0 ;
18931 PyObject * obj6 = 0 ;
18932 PyObject * obj7 = 0 ;
18933 PyObject * obj8 = 0 ;
18934 char * kwnames[] = {
18935 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18936 };
18937
18938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18940 if (!SWIG_IsOK(res1)) {
18941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18942 }
18943 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18944 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18945 if (!SWIG_IsOK(res2)) {
18946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18947 }
18948 arg2 = reinterpret_cast< wxWindow * >(argp2);
18949 if (obj2) {
18950 ecode3 = SWIG_AsVal_int(obj2, &val3);
18951 if (!SWIG_IsOK(ecode3)) {
18952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18953 }
18954 arg3 = static_cast< int >(val3);
18955 }
18956 if (obj3) {
36ed4f51 18957 {
1bd55598
RD
18958 arg4 = wxString_in_helper(obj3);
18959 if (arg4 == NULL) SWIG_fail;
18960 temp4 = true;
36ed4f51 18961 }
1bd55598
RD
18962 }
18963 if (obj4) {
36ed4f51 18964 {
1bd55598
RD
18965 arg5 = &temp5;
18966 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18967 }
1bd55598
RD
18968 }
18969 if (obj5) {
36ed4f51 18970 {
1bd55598
RD
18971 arg6 = &temp6;
18972 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18973 }
1bd55598
RD
18974 }
18975 if (obj6) {
18976 ecode7 = SWIG_AsVal_long(obj6, &val7);
18977 if (!SWIG_IsOK(ecode7)) {
18978 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18979 }
18980 arg7 = static_cast< long >(val7);
18981 }
18982 if (obj7) {
18983 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18984 if (!SWIG_IsOK(res8)) {
18985 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18986 }
1bd55598
RD
18987 if (!argp8) {
18988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18989 }
1bd55598
RD
18990 arg8 = reinterpret_cast< wxValidator * >(argp8);
18991 }
18992 if (obj8) {
d55e5bfc 18993 {
1bd55598
RD
18994 arg9 = wxString_in_helper(obj8);
18995 if (arg9 == NULL) SWIG_fail;
18996 temp9 = true;
d55e5bfc 18997 }
1bd55598
RD
18998 }
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 {
19006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19007 }
19008 {
19009 if (temp4)
19010 delete arg4;
19011 }
19012 {
19013 if (temp9)
19014 delete arg9;
19015 }
19016 return resultobj;
19017fail:
19018 {
19019 if (temp4)
19020 delete arg4;
19021 }
19022 {
19023 if (temp9)
19024 delete arg9;
19025 }
19026 return NULL;
19027}
19028
19029
19030SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj = 0;
19032 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19033 bool arg2 ;
19034 void *argp1 = 0 ;
19035 int res1 = 0 ;
19036 bool val2 ;
19037 int ecode2 = 0 ;
19038 PyObject * obj0 = 0 ;
19039 PyObject * obj1 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "value", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19048 }
19049 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19050 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19051 if (!SWIG_IsOK(ecode2)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19053 }
19054 arg2 = static_cast< bool >(val2);
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 (arg1)->SetValue(arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_Py_Void();
19062 return resultobj;
19063fail:
19064 return NULL;
d55e5bfc
RD
19065}
19066
19067
1bd55598
RD
19068SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19069 PyObject *resultobj = 0;
19070 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19071 bool result;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 PyObject *swig_obj[1] ;
19075
19076 if (!args) SWIG_fail;
19077 swig_obj[0] = args;
19078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19079 if (!SWIG_IsOK(res1)) {
19080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19081 }
19082 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19083 {
19084 PyThreadState* __tstate = wxPyBeginAllowThreads();
19085 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19086 wxPyEndAllowThreads(__tstate);
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
19089 {
19090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19091 }
19092 return resultobj;
19093fail:
19094 return NULL;
f20a2e1f
RD
19095}
19096
19097
1bd55598
RD
19098SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj = 0;
19100 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19101 SwigValueWrapper<wxVisualAttributes > result;
19102 int val1 ;
19103 int ecode1 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 char * kwnames[] = {
19106 (char *) "variant", NULL
19107 };
19108
19109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19110 if (obj0) {
19111 ecode1 = SWIG_AsVal_int(obj0, &val1);
19112 if (!SWIG_IsOK(ecode1)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19114 }
19115 arg1 = static_cast< wxWindowVariant >(val1);
19116 }
19117 {
19118 if (!wxPyCheckForApp()) SWIG_fail;
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19125 return resultobj;
19126fail:
19127 return NULL;
d55e5bfc
RD
19128}
19129
19130
1bd55598
RD
19131SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19132 PyObject *obj;
19133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19134 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19135 return SWIG_Py_Void();
d55e5bfc
RD
19136}
19137
1bd55598
RD
19138SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19139 return SWIG_Python_InitShadowInstance(args);
19140}
d55e5bfc 19141
1bd55598
RD
19142SWIGINTERN int NotebookNameStr_set(PyObject *) {
19143 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19144 return 1;
d55e5bfc
RD
19145}
19146
19147
1bd55598
RD
19148SWIGINTERN PyObject *NotebookNameStr_get(void) {
19149 PyObject *pyobj = 0;
19150
19151 {
d55e5bfc 19152#if wxUSE_UNICODE
1bd55598 19153 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19154#else
1bd55598 19155 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19156#endif
1bd55598
RD
19157 }
19158 return pyobj;
d55e5bfc
RD
19159}
19160
19161
1bd55598
RD
19162SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19163 PyObject *resultobj = 0;
19164 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19165 size_t result;
19166 void *argp1 = 0 ;
19167 int res1 = 0 ;
19168 PyObject *swig_obj[1] ;
19169
19170 if (!args) SWIG_fail;
19171 swig_obj[0] = args;
19172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19175 }
19176 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19177 {
19178 PyThreadState* __tstate = wxPyBeginAllowThreads();
19179 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19184 return resultobj;
19185fail:
19186 return NULL;
19187}
19188
19189
19190SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj = 0;
19192 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19193 size_t arg2 ;
19194 wxWindow *result = 0 ;
19195 void *argp1 = 0 ;
19196 int res1 = 0 ;
19197 size_t val2 ;
19198 int ecode2 = 0 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char * kwnames[] = {
19202 (char *) "self",(char *) "n", NULL
19203 };
19204
19205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19207 if (!SWIG_IsOK(res1)) {
19208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19209 }
19210 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19212 if (!SWIG_IsOK(ecode2)) {
19213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19214 }
19215 arg2 = static_cast< size_t >(val2);
19216 {
19217 PyThreadState* __tstate = wxPyBeginAllowThreads();
19218 result = (wxWindow *)(arg1)->GetPage(arg2);
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 {
19223 resultobj = wxPyMake_wxObject(result, 0);
19224 }
19225 return resultobj;
19226fail:
19227 return NULL;
d55e5bfc
RD
19228}
19229
19230
1bd55598
RD
19231SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19232 PyObject *resultobj = 0;
19233 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19234 wxWindow *result = 0 ;
19235 void *argp1 = 0 ;
19236 int res1 = 0 ;
19237 PyObject *swig_obj[1] ;
19238
19239 if (!args) SWIG_fail;
19240 swig_obj[0] = args;
19241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19242 if (!SWIG_IsOK(res1)) {
19243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19244 }
19245 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 {
19253 resultobj = wxPyMake_wxObject(result, 0);
19254 }
19255 return resultobj;
19256fail:
19257 return NULL;
d55e5bfc
RD
19258}
19259
19260
1bd55598
RD
19261SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19262 PyObject *resultobj = 0;
19263 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19264 int result;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 PyObject *swig_obj[1] ;
19268
19269 if (!args) SWIG_fail;
19270 swig_obj[0] = args;
19271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19272 if (!SWIG_IsOK(res1)) {
19273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19274 }
19275 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19276 {
19277 PyThreadState* __tstate = wxPyBeginAllowThreads();
19278 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 resultobj = SWIG_From_int(static_cast< int >(result));
19283 return resultobj;
19284fail:
19285 return NULL;
19286}
19287
19288
19289SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj = 0;
19291 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19292 size_t arg2 ;
19293 wxString *arg3 = 0 ;
19294 bool result;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 size_t val2 ;
19298 int ecode2 = 0 ;
19299 bool temp3 = false ;
19300 PyObject * obj0 = 0 ;
19301 PyObject * obj1 = 0 ;
19302 PyObject * obj2 = 0 ;
19303 char * kwnames[] = {
19304 (char *) "self",(char *) "n",(char *) "strText", NULL
19305 };
19306
19307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19309 if (!SWIG_IsOK(res1)) {
19310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19311 }
19312 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19313 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19314 if (!SWIG_IsOK(ecode2)) {
19315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19316 }
19317 arg2 = static_cast< size_t >(val2);
19318 {
19319 arg3 = wxString_in_helper(obj2);
19320 if (arg3 == NULL) SWIG_fail;
19321 temp3 = true;
19322 }
19323 {
19324 PyThreadState* __tstate = wxPyBeginAllowThreads();
19325 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19326 wxPyEndAllowThreads(__tstate);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 {
19330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19331 }
19332 {
19333 if (temp3)
19334 delete arg3;
19335 }
19336 return resultobj;
19337fail:
19338 {
19339 if (temp3)
19340 delete arg3;
19341 }
19342 return NULL;
19343}
19344
19345
19346SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19347 PyObject *resultobj = 0;
19348 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19349 size_t arg2 ;
19350 wxString result;
19351 void *argp1 = 0 ;
19352 int res1 = 0 ;
19353 size_t val2 ;
19354 int ecode2 = 0 ;
19355 PyObject * obj0 = 0 ;
19356 PyObject * obj1 = 0 ;
19357 char * kwnames[] = {
19358 (char *) "self",(char *) "n", NULL
19359 };
19360
19361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",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_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19365 }
19366 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19367 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19368 if (!SWIG_IsOK(ecode2)) {
19369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19370 }
19371 arg2 = static_cast< size_t >(val2);
19372 {
19373 PyThreadState* __tstate = wxPyBeginAllowThreads();
19374 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19375 wxPyEndAllowThreads(__tstate);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 }
19378 {
19379#if wxUSE_UNICODE
19380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19381#else
19382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19383#endif
19384 }
19385 return resultobj;
19386fail:
19387 return NULL;
19388}
19389
19390
19391SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19392 PyObject *resultobj = 0;
19393 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19394 wxImageList *arg2 = (wxImageList *) 0 ;
19395 void *argp1 = 0 ;
19396 int res1 = 0 ;
19397 void *argp2 = 0 ;
19398 int res2 = 0 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "imageList", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19409 }
19410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19412 if (!SWIG_IsOK(res2)) {
19413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19414 }
19415 arg2 = reinterpret_cast< wxImageList * >(argp2);
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 (arg1)->SetImageList(arg2);
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 resultobj = SWIG_Py_Void();
19423 return resultobj;
19424fail:
19425 return NULL;
19426}
19427
19428
19429SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj = 0;
19431 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19432 wxImageList *arg2 = (wxImageList *) 0 ;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 int res2 = 0 ;
19436 PyObject * obj0 = 0 ;
19437 PyObject * obj1 = 0 ;
19438 char * kwnames[] = {
19439 (char *) "self",(char *) "imageList", NULL
19440 };
19441
19442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19444 if (!SWIG_IsOK(res1)) {
19445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19446 }
19447 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19448 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19449 if (!SWIG_IsOK(res2)) {
19450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19451 }
19452 {
19453 PyThreadState* __tstate = wxPyBeginAllowThreads();
19454 (arg1)->AssignImageList(arg2);
19455 wxPyEndAllowThreads(__tstate);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 }
19458 resultobj = SWIG_Py_Void();
19459 return resultobj;
19460fail:
19461 return NULL;
d55e5bfc
RD
19462}
19463
19464
1bd55598
RD
19465SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19466 PyObject *resultobj = 0;
19467 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19468 wxImageList *result = 0 ;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 PyObject *swig_obj[1] ;
19472
19473 if (!args) SWIG_fail;
19474 swig_obj[0] = args;
19475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19476 if (!SWIG_IsOK(res1)) {
19477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19478 }
19479 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
3ecece7e
RD
19486 {
19487 resultobj = wxPyMake_wxObject(result, (bool)0);
19488 }
1bd55598
RD
19489 return resultobj;
19490fail:
19491 return NULL;
19492}
19493
19494
19495SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj = 0;
19497 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19498 size_t arg2 ;
19499 int result;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 size_t val2 ;
19503 int ecode2 = 0 ;
19504 PyObject * obj0 = 0 ;
19505 PyObject * obj1 = 0 ;
19506 char * kwnames[] = {
19507 (char *) "self",(char *) "n", NULL
19508 };
19509
19510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19512 if (!SWIG_IsOK(res1)) {
19513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19514 }
19515 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19516 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19517 if (!SWIG_IsOK(ecode2)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19519 }
19520 arg2 = static_cast< size_t >(val2);
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 resultobj = SWIG_From_int(static_cast< int >(result));
19528 return resultobj;
19529fail:
19530 return NULL;
19531}
19532
19533
19534SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19535 PyObject *resultobj = 0;
19536 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19537 size_t arg2 ;
19538 int arg3 ;
19539 bool result;
19540 void *argp1 = 0 ;
19541 int res1 = 0 ;
19542 size_t val2 ;
19543 int ecode2 = 0 ;
19544 int val3 ;
19545 int ecode3 = 0 ;
19546 PyObject * obj0 = 0 ;
19547 PyObject * obj1 = 0 ;
19548 PyObject * obj2 = 0 ;
19549 char * kwnames[] = {
19550 (char *) "self",(char *) "n",(char *) "imageId", NULL
19551 };
19552
19553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) 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_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19557 }
19558 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19559 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19560 if (!SWIG_IsOK(ecode2)) {
19561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19562 }
19563 arg2 = static_cast< size_t >(val2);
19564 ecode3 = SWIG_AsVal_int(obj2, &val3);
19565 if (!SWIG_IsOK(ecode3)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19567 }
19568 arg3 = static_cast< int >(val3);
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 {
19576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19577 }
19578 return resultobj;
19579fail:
19580 return NULL;
19581}
19582
19583
19584SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19585 PyObject *resultobj = 0;
19586 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19587 wxSize *arg2 = 0 ;
19588 void *argp1 = 0 ;
19589 int res1 = 0 ;
19590 wxSize temp2 ;
19591 PyObject * obj0 = 0 ;
19592 PyObject * obj1 = 0 ;
19593 char * kwnames[] = {
19594 (char *) "self",(char *) "size", NULL
19595 };
19596
19597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19599 if (!SWIG_IsOK(res1)) {
19600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19601 }
19602 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19603 {
19604 arg2 = &temp2;
19605 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19606 }
19607 {
19608 PyThreadState* __tstate = wxPyBeginAllowThreads();
19609 (arg1)->SetPageSize((wxSize const &)*arg2);
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 resultobj = SWIG_Py_Void();
19614 return resultobj;
19615fail:
19616 return NULL;
19617}
19618
19619
19620SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19621 PyObject *resultobj = 0;
19622 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19623 wxSize *arg2 = 0 ;
19624 wxSize result;
19625 void *argp1 = 0 ;
19626 int res1 = 0 ;
19627 wxSize temp2 ;
19628 PyObject * obj0 = 0 ;
19629 PyObject * obj1 = 0 ;
19630 char * kwnames[] = {
19631 (char *) "self",(char *) "sizePage", NULL
19632 };
19633
19634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19638 }
19639 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19640 {
19641 arg2 = &temp2;
19642 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19643 }
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19647 wxPyEndAllowThreads(__tstate);
19648 if (PyErr_Occurred()) SWIG_fail;
19649 }
19650 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19651 return resultobj;
19652fail:
19653 return NULL;
d55e5bfc
RD
19654}
19655
19656
1bd55598
RD
19657SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19658 PyObject *resultobj = 0;
19659 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19660 unsigned int result;
1bd55598
RD
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 PyObject *swig_obj[1] ;
19664
19665 if (!args) SWIG_fail;
19666 swig_obj[0] = args;
19667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19668 if (!SWIG_IsOK(res1)) {
19669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19670 }
19671 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19674 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
e9d6f3a4 19678 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19679 return resultobj;
19680fail:
19681 return NULL;
19682}
19683
19684
19685SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19686 PyObject *resultobj = 0;
19687 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19688 unsigned int arg2 ;
1bd55598
RD
19689 void *argp1 = 0 ;
19690 int res1 = 0 ;
e9d6f3a4 19691 unsigned int val2 ;
1bd55598
RD
19692 int ecode2 = 0 ;
19693 PyObject * obj0 = 0 ;
19694 PyObject * obj1 = 0 ;
19695 char * kwnames[] = {
19696 (char *) "self",(char *) "internalBorder", NULL
19697 };
19698
19699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19703 }
19704 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19705 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19706 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19708 }
e9d6f3a4 19709 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 (arg1)->SetInternalBorder(arg2);
19713 wxPyEndAllowThreads(__tstate);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 resultobj = SWIG_Py_Void();
19717 return resultobj;
19718fail:
19719 return NULL;
d55e5bfc
RD
19720}
19721
19722
1bd55598
RD
19723SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19724 PyObject *resultobj = 0;
19725 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19726 bool result;
19727 void *argp1 = 0 ;
19728 int res1 = 0 ;
19729 PyObject *swig_obj[1] ;
19730
19731 if (!args) SWIG_fail;
19732 swig_obj[0] = args;
19733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19734 if (!SWIG_IsOK(res1)) {
19735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19736 }
19737 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 {
19745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19746 }
19747 return resultobj;
19748fail:
19749 return NULL;
19750}
19751
19752
e9d6f3a4
RD
19753SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19756 int arg2 ;
19757 void *argp1 = 0 ;
19758 int res1 = 0 ;
19759 int val2 ;
19760 int ecode2 = 0 ;
19761 PyObject * obj0 = 0 ;
19762 PyObject * obj1 = 0 ;
19763 char * kwnames[] = {
19764 (char *) "self",(char *) "margin", NULL
19765 };
19766
19767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19769 if (!SWIG_IsOK(res1)) {
19770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19771 }
19772 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19773 ecode2 = SWIG_AsVal_int(obj1, &val2);
19774 if (!SWIG_IsOK(ecode2)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19776 }
19777 arg2 = static_cast< int >(val2);
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 (arg1)->SetControlMargin(arg2);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 resultobj = SWIG_Py_Void();
19785 return resultobj;
19786fail:
19787 return NULL;
19788}
19789
19790
19791SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19792 PyObject *resultobj = 0;
19793 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19794 int result;
19795 void *argp1 = 0 ;
19796 int res1 = 0 ;
19797 PyObject *swig_obj[1] ;
19798
19799 if (!args) SWIG_fail;
19800 swig_obj[0] = args;
19801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19802 if (!SWIG_IsOK(res1)) {
19803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19804 }
19805 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 resultobj = SWIG_From_int(static_cast< int >(result));
19813 return resultobj;
19814fail:
19815 return NULL;
19816}
19817
19818
1bd55598
RD
19819SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = 0;
19821 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19822 bool arg2 ;
19823 void *argp1 = 0 ;
19824 int res1 = 0 ;
19825 bool val2 ;
19826 int ecode2 = 0 ;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 char * kwnames[] = {
19830 (char *) "self",(char *) "fit", NULL
19831 };
19832
19833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19835 if (!SWIG_IsOK(res1)) {
19836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19837 }
19838 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19839 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19840 if (!SWIG_IsOK(ecode2)) {
19841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19842 }
19843 arg2 = static_cast< bool >(val2);
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 (arg1)->SetFitToCurrentPage(arg2);
19847 wxPyEndAllowThreads(__tstate);
19848 if (PyErr_Occurred()) SWIG_fail;
19849 }
19850 resultobj = SWIG_Py_Void();
19851 return resultobj;
19852fail:
19853 return NULL;
d55e5bfc
RD
19854}
19855
19856
1bd55598
RD
19857SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19858 PyObject *resultobj = 0;
19859 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19860 bool result;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 PyObject *swig_obj[1] ;
19864
19865 if (!args) SWIG_fail;
19866 swig_obj[0] = args;
19867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19868 if (!SWIG_IsOK(res1)) {
19869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19870 }
19871 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19872 {
19873 PyThreadState* __tstate = wxPyBeginAllowThreads();
19874 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19875 wxPyEndAllowThreads(__tstate);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 }
19878 {
19879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19880 }
19881 return resultobj;
19882fail:
19883 return NULL;
19884}
19885
19886
e9d6f3a4
RD
19887SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19888 PyObject *resultobj = 0;
19889 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19890 wxSizer *result = 0 ;
19891 void *argp1 = 0 ;
19892 int res1 = 0 ;
19893 PyObject *swig_obj[1] ;
19894
19895 if (!args) SWIG_fail;
19896 swig_obj[0] = args;
19897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19898 if (!SWIG_IsOK(res1)) {
19899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19900 }
19901 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 {
19909 resultobj = wxPyMake_wxObject(result, (bool)0);
19910 }
19911 return resultobj;
19912fail:
19913 return NULL;
19914}
19915
19916
1bd55598
RD
19917SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19918 PyObject *resultobj = 0;
19919 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19920 size_t arg2 ;
19921 bool result;
19922 void *argp1 = 0 ;
19923 int res1 = 0 ;
19924 size_t val2 ;
19925 int ecode2 = 0 ;
19926 PyObject * obj0 = 0 ;
19927 PyObject * obj1 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "n", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19936 }
19937 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19938 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19939 if (!SWIG_IsOK(ecode2)) {
19940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19941 }
19942 arg2 = static_cast< size_t >(val2);
19943 {
19944 PyThreadState* __tstate = wxPyBeginAllowThreads();
19945 result = (bool)(arg1)->DeletePage(arg2);
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 {
19950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19951 }
19952 return resultobj;
19953fail:
19954 return NULL;
19955}
19956
19957
19958SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj = 0;
19960 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19961 size_t arg2 ;
19962 bool result;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 size_t val2 ;
19966 int ecode2 = 0 ;
19967 PyObject * obj0 = 0 ;
19968 PyObject * obj1 = 0 ;
19969 char * kwnames[] = {
19970 (char *) "self",(char *) "n", NULL
19971 };
19972
19973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19975 if (!SWIG_IsOK(res1)) {
19976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19977 }
19978 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19979 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19980 if (!SWIG_IsOK(ecode2)) {
19981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19982 }
19983 arg2 = static_cast< size_t >(val2);
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 result = (bool)(arg1)->RemovePage(arg2);
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 {
19991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19992 }
19993 return resultobj;
19994fail:
19995 return NULL;
f20a2e1f
RD
19996}
19997
19998
1bd55598
RD
19999SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20000 PyObject *resultobj = 0;
20001 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20002 bool result;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 PyObject *swig_obj[1] ;
20006
20007 if (!args) SWIG_fail;
20008 swig_obj[0] = args;
20009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20012 }
20013 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 result = (bool)(arg1)->DeleteAllPages();
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 {
20021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20022 }
20023 return resultobj;
20024fail:
20025 return NULL;
20026}
20027
20028
20029SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj = 0;
20031 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20032 wxWindow *arg2 = (wxWindow *) 0 ;
20033 wxString *arg3 = 0 ;
20034 bool arg4 = (bool) false ;
20035 int arg5 = (int) -1 ;
20036 bool result;
20037 void *argp1 = 0 ;
20038 int res1 = 0 ;
20039 void *argp2 = 0 ;
20040 int res2 = 0 ;
20041 bool temp3 = false ;
20042 bool val4 ;
20043 int ecode4 = 0 ;
20044 int val5 ;
20045 int ecode5 = 0 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 PyObject * obj2 = 0 ;
20049 PyObject * obj3 = 0 ;
20050 PyObject * obj4 = 0 ;
20051 char * kwnames[] = {
20052 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20053 };
20054
20055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20057 if (!SWIG_IsOK(res1)) {
20058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20059 }
20060 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20062 if (!SWIG_IsOK(res2)) {
20063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20064 }
20065 arg2 = reinterpret_cast< wxWindow * >(argp2);
20066 {
20067 arg3 = wxString_in_helper(obj2);
20068 if (arg3 == NULL) SWIG_fail;
20069 temp3 = true;
20070 }
20071 if (obj3) {
20072 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20073 if (!SWIG_IsOK(ecode4)) {
20074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20075 }
20076 arg4 = static_cast< bool >(val4);
20077 }
20078 if (obj4) {
20079 ecode5 = SWIG_AsVal_int(obj4, &val5);
20080 if (!SWIG_IsOK(ecode5)) {
20081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20082 }
20083 arg5 = static_cast< int >(val5);
20084 }
20085 {
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 {
20092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20093 }
20094 {
20095 if (temp3)
20096 delete arg3;
20097 }
20098 return resultobj;
20099fail:
20100 {
20101 if (temp3)
20102 delete arg3;
20103 }
20104 return NULL;
20105}
20106
20107
20108SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20109 PyObject *resultobj = 0;
20110 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20111 size_t arg2 ;
20112 wxWindow *arg3 = (wxWindow *) 0 ;
20113 wxString *arg4 = 0 ;
20114 bool arg5 = (bool) false ;
20115 int arg6 = (int) -1 ;
20116 bool result;
20117 void *argp1 = 0 ;
20118 int res1 = 0 ;
20119 size_t val2 ;
20120 int ecode2 = 0 ;
20121 void *argp3 = 0 ;
20122 int res3 = 0 ;
20123 bool temp4 = false ;
20124 bool val5 ;
20125 int ecode5 = 0 ;
20126 int val6 ;
20127 int ecode6 = 0 ;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130 PyObject * obj2 = 0 ;
20131 PyObject * obj3 = 0 ;
20132 PyObject * obj4 = 0 ;
20133 PyObject * obj5 = 0 ;
20134 char * kwnames[] = {
20135 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20136 };
20137
20138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20140 if (!SWIG_IsOK(res1)) {
20141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20142 }
20143 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20144 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20145 if (!SWIG_IsOK(ecode2)) {
20146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20147 }
20148 arg2 = static_cast< size_t >(val2);
20149 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20150 if (!SWIG_IsOK(res3)) {
20151 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20152 }
20153 arg3 = reinterpret_cast< wxWindow * >(argp3);
20154 {
20155 arg4 = wxString_in_helper(obj3);
20156 if (arg4 == NULL) SWIG_fail;
20157 temp4 = true;
20158 }
20159 if (obj4) {
20160 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20161 if (!SWIG_IsOK(ecode5)) {
20162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20163 }
20164 arg5 = static_cast< bool >(val5);
20165 }
20166 if (obj5) {
20167 ecode6 = SWIG_AsVal_int(obj5, &val6);
20168 if (!SWIG_IsOK(ecode6)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20170 }
20171 arg6 = static_cast< int >(val6);
20172 }
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 {
20180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20181 }
20182 {
20183 if (temp4)
20184 delete arg4;
20185 }
20186 return resultobj;
20187fail:
20188 {
20189 if (temp4)
20190 delete arg4;
20191 }
20192 return NULL;
20193}
20194
20195
20196SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj = 0;
20198 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20199 size_t arg2 ;
20200 int result;
20201 void *argp1 = 0 ;
20202 int res1 = 0 ;
20203 size_t val2 ;
20204 int ecode2 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "n", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20215 }
20216 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20217 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20218 if (!SWIG_IsOK(ecode2)) {
20219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20220 }
20221 arg2 = static_cast< size_t >(val2);
20222 {
20223 PyThreadState* __tstate = wxPyBeginAllowThreads();
20224 result = (int)(arg1)->SetSelection(arg2);
20225 wxPyEndAllowThreads(__tstate);
20226 if (PyErr_Occurred()) SWIG_fail;
20227 }
20228 resultobj = SWIG_From_int(static_cast< int >(result));
20229 return resultobj;
20230fail:
20231 return NULL;
20232}
20233
20234
b39fe951
RD
20235SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20236 PyObject *resultobj = 0;
20237 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20238 size_t arg2 ;
20239 int result;
20240 void *argp1 = 0 ;
20241 int res1 = 0 ;
20242 size_t val2 ;
20243 int ecode2 = 0 ;
20244 PyObject * obj0 = 0 ;
20245 PyObject * obj1 = 0 ;
20246 char * kwnames[] = {
20247 (char *) "self",(char *) "n", NULL
20248 };
20249
20250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20252 if (!SWIG_IsOK(res1)) {
20253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20254 }
20255 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20256 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20257 if (!SWIG_IsOK(ecode2)) {
20258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20259 }
20260 arg2 = static_cast< size_t >(val2);
20261 {
20262 PyThreadState* __tstate = wxPyBeginAllowThreads();
20263 result = (int)(arg1)->ChangeSelection(arg2);
20264 wxPyEndAllowThreads(__tstate);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 }
20267 resultobj = SWIG_From_int(static_cast< int >(result));
20268 return resultobj;
20269fail:
20270 return NULL;
20271}
20272
20273
1bd55598
RD
20274SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj = 0;
20276 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20277 bool arg2 = (bool) true ;
20278 void *argp1 = 0 ;
20279 int res1 = 0 ;
20280 bool val2 ;
20281 int ecode2 = 0 ;
20282 PyObject * obj0 = 0 ;
20283 PyObject * obj1 = 0 ;
20284 char * kwnames[] = {
20285 (char *) "self",(char *) "forward", NULL
20286 };
20287
20288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20290 if (!SWIG_IsOK(res1)) {
20291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20292 }
20293 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20294 if (obj1) {
20295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20296 if (!SWIG_IsOK(ecode2)) {
20297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20298 }
20299 arg2 = static_cast< bool >(val2);
20300 }
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 (arg1)->AdvanceSelection(arg2);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_Py_Void();
20308 return resultobj;
20309fail:
20310 return NULL;
20311}
20312
20313
704eda0c
RD
20314SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20317 wxPoint *arg2 = 0 ;
20318 long *arg3 = (long *) 0 ;
20319 int result;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 wxPoint temp2 ;
20323 long temp3 ;
20324 int res3 = SWIG_TMPOBJ ;
20325 PyObject * obj0 = 0 ;
20326 PyObject * obj1 = 0 ;
20327 char * kwnames[] = {
20328 (char *) "self",(char *) "pt", NULL
20329 };
20330
20331 arg3 = &temp3;
20332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20334 if (!SWIG_IsOK(res1)) {
20335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20336 }
20337 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20338 {
20339 arg2 = &temp2;
20340 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20341 }
20342 {
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 resultobj = SWIG_From_int(static_cast< int >(result));
20349 if (SWIG_IsTmpObj(res3)) {
20350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20351 } else {
20352 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20354 }
20355 return resultobj;
20356fail:
20357 return NULL;
20358}
20359
20360
1bd55598
RD
20361SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20364 SwigValueWrapper<wxVisualAttributes > result;
20365 int val1 ;
20366 int ecode1 = 0 ;
20367 PyObject * obj0 = 0 ;
20368 char * kwnames[] = {
20369 (char *) "variant", NULL
20370 };
20371
20372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20373 if (obj0) {
20374 ecode1 = SWIG_AsVal_int(obj0, &val1);
20375 if (!SWIG_IsOK(ecode1)) {
20376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20377 }
20378 arg1 = static_cast< wxWindowVariant >(val1);
20379 }
20380 {
20381 if (!wxPyCheckForApp()) SWIG_fail;
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20388 return resultobj;
20389fail:
20390 return NULL;
20391}
20392
20393
20394SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20395 PyObject *obj;
20396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20397 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20398 return SWIG_Py_Void();
20399}
20400
20401SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20402 PyObject *resultobj = 0;
20403 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20404 int arg2 = (int) 0 ;
20405 int arg3 = (int) -1 ;
20406 int arg4 = (int) -1 ;
20407 wxBookCtrlBaseEvent *result = 0 ;
20408 int val1 ;
20409 int ecode1 = 0 ;
20410 int val2 ;
20411 int ecode2 = 0 ;
20412 int val3 ;
20413 int ecode3 = 0 ;
20414 int val4 ;
20415 int ecode4 = 0 ;
20416 PyObject * obj0 = 0 ;
20417 PyObject * obj1 = 0 ;
20418 PyObject * obj2 = 0 ;
20419 PyObject * obj3 = 0 ;
20420 char * kwnames[] = {
20421 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20422 };
20423
20424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20425 if (obj0) {
20426 ecode1 = SWIG_AsVal_int(obj0, &val1);
20427 if (!SWIG_IsOK(ecode1)) {
20428 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20429 }
20430 arg1 = static_cast< wxEventType >(val1);
20431 }
20432 if (obj1) {
20433 ecode2 = SWIG_AsVal_int(obj1, &val2);
20434 if (!SWIG_IsOK(ecode2)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20436 }
20437 arg2 = static_cast< int >(val2);
20438 }
20439 if (obj2) {
20440 ecode3 = SWIG_AsVal_int(obj2, &val3);
20441 if (!SWIG_IsOK(ecode3)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20443 }
20444 arg3 = static_cast< int >(val3);
20445 }
20446 if (obj3) {
20447 ecode4 = SWIG_AsVal_int(obj3, &val4);
20448 if (!SWIG_IsOK(ecode4)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20450 }
20451 arg4 = static_cast< int >(val4);
20452 }
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20456 wxPyEndAllowThreads(__tstate);
20457 if (PyErr_Occurred()) SWIG_fail;
20458 }
20459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20460 return resultobj;
20461fail:
20462 return NULL;
d55e5bfc
RD
20463}
20464
20465
1bd55598
RD
20466SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20467 PyObject *resultobj = 0;
20468 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20469 int result;
20470 void *argp1 = 0 ;
20471 int res1 = 0 ;
20472 PyObject *swig_obj[1] ;
20473
20474 if (!args) SWIG_fail;
20475 swig_obj[0] = args;
20476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20477 if (!SWIG_IsOK(res1)) {
20478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20479 }
20480 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20481 {
20482 PyThreadState* __tstate = wxPyBeginAllowThreads();
20483 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20484 wxPyEndAllowThreads(__tstate);
20485 if (PyErr_Occurred()) SWIG_fail;
20486 }
20487 resultobj = SWIG_From_int(static_cast< int >(result));
20488 return resultobj;
20489fail:
20490 return NULL;
20491}
20492
20493
20494SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20495 PyObject *resultobj = 0;
20496 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20497 int arg2 ;
20498 void *argp1 = 0 ;
20499 int res1 = 0 ;
20500 int val2 ;
20501 int ecode2 = 0 ;
20502 PyObject * obj0 = 0 ;
20503 PyObject * obj1 = 0 ;
20504 char * kwnames[] = {
20505 (char *) "self",(char *) "nSel", NULL
20506 };
20507
20508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20510 if (!SWIG_IsOK(res1)) {
20511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20512 }
20513 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20514 ecode2 = SWIG_AsVal_int(obj1, &val2);
20515 if (!SWIG_IsOK(ecode2)) {
20516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20517 }
20518 arg2 = static_cast< int >(val2);
20519 {
20520 PyThreadState* __tstate = wxPyBeginAllowThreads();
20521 (arg1)->SetSelection(arg2);
20522 wxPyEndAllowThreads(__tstate);
20523 if (PyErr_Occurred()) SWIG_fail;
20524 }
20525 resultobj = SWIG_Py_Void();
20526 return resultobj;
20527fail:
20528 return NULL;
d55e5bfc
RD
20529}
20530
20531
1bd55598
RD
20532SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20535 int result;
20536 void *argp1 = 0 ;
20537 int res1 = 0 ;
20538 PyObject *swig_obj[1] ;
20539
20540 if (!args) SWIG_fail;
20541 swig_obj[0] = args;
20542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20543 if (!SWIG_IsOK(res1)) {
20544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20545 }
20546 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_From_int(static_cast< int >(result));
20554 return resultobj;
20555fail:
20556 return NULL;
20557}
20558
20559
20560SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj = 0;
20562 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20563 int arg2 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 int val2 ;
20567 int ecode2 = 0 ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "self",(char *) "nOldSel", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20578 }
20579 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20580 ecode2 = SWIG_AsVal_int(obj1, &val2);
20581 if (!SWIG_IsOK(ecode2)) {
20582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20583 }
20584 arg2 = static_cast< int >(val2);
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 (arg1)->SetOldSelection(arg2);
20588 wxPyEndAllowThreads(__tstate);
20589 if (PyErr_Occurred()) SWIG_fail;
20590 }
20591 resultobj = SWIG_Py_Void();
20592 return resultobj;
20593fail:
20594 return NULL;
20595}
20596
20597
20598SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20599 PyObject *obj;
20600 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20601 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20602 return SWIG_Py_Void();
20603}
20604
20605SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 return SWIG_Python_InitShadowInstance(args);
20607}
20608
20609SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj = 0;
20611 wxWindow *arg1 = (wxWindow *) 0 ;
20612 int arg2 = (int) -1 ;
20613 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20614 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20615 wxSize const &arg4_defvalue = wxDefaultSize ;
20616 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20617 long arg5 = (long) 0 ;
20618 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20619 wxString *arg6 = (wxString *) &arg6_defvalue ;
20620 wxNotebook *result = 0 ;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 int val2 ;
20624 int ecode2 = 0 ;
20625 wxPoint temp3 ;
20626 wxSize temp4 ;
20627 long val5 ;
20628 int ecode5 = 0 ;
20629 bool temp6 = false ;
20630 PyObject * obj0 = 0 ;
20631 PyObject * obj1 = 0 ;
20632 PyObject * obj2 = 0 ;
20633 PyObject * obj3 = 0 ;
20634 PyObject * obj4 = 0 ;
20635 PyObject * obj5 = 0 ;
20636 char * kwnames[] = {
20637 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20638 };
20639
20640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20642 if (!SWIG_IsOK(res1)) {
20643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20644 }
20645 arg1 = reinterpret_cast< wxWindow * >(argp1);
20646 if (obj1) {
20647 ecode2 = SWIG_AsVal_int(obj1, &val2);
20648 if (!SWIG_IsOK(ecode2)) {
20649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20650 }
20651 arg2 = static_cast< int >(val2);
20652 }
20653 if (obj2) {
20654 {
20655 arg3 = &temp3;
20656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20657 }
1bd55598
RD
20658 }
20659 if (obj3) {
d55e5bfc 20660 {
1bd55598
RD
20661 arg4 = &temp4;
20662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20663 }
1bd55598
RD
20664 }
20665 if (obj4) {
20666 ecode5 = SWIG_AsVal_long(obj4, &val5);
20667 if (!SWIG_IsOK(ecode5)) {
20668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20669 }
20670 arg5 = static_cast< long >(val5);
20671 }
20672 if (obj5) {
d55e5bfc 20673 {
1bd55598
RD
20674 arg6 = wxString_in_helper(obj5);
20675 if (arg6 == NULL) SWIG_fail;
20676 temp6 = true;
d55e5bfc 20677 }
1bd55598
RD
20678 }
20679 {
20680 if (!wxPyCheckForApp()) SWIG_fail;
20681 PyThreadState* __tstate = wxPyBeginAllowThreads();
20682 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
20686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20687 {
20688 if (temp6)
20689 delete arg6;
20690 }
20691 return resultobj;
20692fail:
20693 {
20694 if (temp6)
20695 delete arg6;
20696 }
20697 return NULL;
20698}
20699
20700
20701SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20702 PyObject *resultobj = 0;
20703 wxNotebook *result = 0 ;
20704
20705 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20706 {
20707 if (!wxPyCheckForApp()) SWIG_fail;
20708 PyThreadState* __tstate = wxPyBeginAllowThreads();
20709 result = (wxNotebook *)new wxNotebook();
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20714 return resultobj;
20715fail:
20716 return NULL;
20717}
20718
20719
20720SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20721 PyObject *resultobj = 0;
20722 wxNotebook *arg1 = (wxNotebook *) 0 ;
20723 wxWindow *arg2 = (wxWindow *) 0 ;
20724 int arg3 = (int) -1 ;
20725 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20726 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20727 wxSize const &arg5_defvalue = wxDefaultSize ;
20728 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20729 long arg6 = (long) 0 ;
20730 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20731 wxString *arg7 = (wxString *) &arg7_defvalue ;
20732 bool result;
20733 void *argp1 = 0 ;
20734 int res1 = 0 ;
20735 void *argp2 = 0 ;
20736 int res2 = 0 ;
20737 int val3 ;
20738 int ecode3 = 0 ;
20739 wxPoint temp4 ;
20740 wxSize temp5 ;
20741 long val6 ;
20742 int ecode6 = 0 ;
20743 bool temp7 = false ;
20744 PyObject * obj0 = 0 ;
20745 PyObject * obj1 = 0 ;
20746 PyObject * obj2 = 0 ;
20747 PyObject * obj3 = 0 ;
20748 PyObject * obj4 = 0 ;
20749 PyObject * obj5 = 0 ;
20750 PyObject * obj6 = 0 ;
20751 char * kwnames[] = {
20752 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20753 };
20754
20755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20757 if (!SWIG_IsOK(res1)) {
20758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20759 }
20760 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20762 if (!SWIG_IsOK(res2)) {
20763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20764 }
20765 arg2 = reinterpret_cast< wxWindow * >(argp2);
20766 if (obj2) {
20767 ecode3 = SWIG_AsVal_int(obj2, &val3);
20768 if (!SWIG_IsOK(ecode3)) {
20769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20770 }
20771 arg3 = static_cast< int >(val3);
20772 }
20773 if (obj3) {
d55e5bfc 20774 {
1bd55598
RD
20775 arg4 = &temp4;
20776 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20777 }
1bd55598
RD
20778 }
20779 if (obj4) {
d55e5bfc 20780 {
1bd55598
RD
20781 arg5 = &temp5;
20782 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20783 }
1bd55598
RD
20784 }
20785 if (obj5) {
20786 ecode6 = SWIG_AsVal_long(obj5, &val6);
20787 if (!SWIG_IsOK(ecode6)) {
20788 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20789 }
20790 arg6 = static_cast< long >(val6);
20791 }
20792 if (obj6) {
d55e5bfc 20793 {
1bd55598
RD
20794 arg7 = wxString_in_helper(obj6);
20795 if (arg7 == NULL) SWIG_fail;
20796 temp7 = true;
d55e5bfc 20797 }
1bd55598
RD
20798 }
20799 {
20800 PyThreadState* __tstate = wxPyBeginAllowThreads();
20801 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 {
20806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20807 }
20808 {
20809 if (temp7)
20810 delete arg7;
20811 }
20812 return resultobj;
20813fail:
20814 {
20815 if (temp7)
20816 delete arg7;
20817 }
20818 return NULL;
d55e5bfc
RD
20819}
20820
20821
1bd55598
RD
20822SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20823 PyObject *resultobj = 0;
20824 wxNotebook *arg1 = (wxNotebook *) 0 ;
20825 int result;
20826 void *argp1 = 0 ;
20827 int res1 = 0 ;
20828 PyObject *swig_obj[1] ;
20829
20830 if (!args) SWIG_fail;
20831 swig_obj[0] = args;
20832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20833 if (!SWIG_IsOK(res1)) {
20834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20835 }
20836 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20840 wxPyEndAllowThreads(__tstate);
20841 if (PyErr_Occurred()) SWIG_fail;
20842 }
20843 resultobj = SWIG_From_int(static_cast< int >(result));
20844 return resultobj;
20845fail:
20846 return NULL;
20847}
20848
20849
20850SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxNotebook *arg1 = (wxNotebook *) 0 ;
20853 wxSize *arg2 = 0 ;
20854 void *argp1 = 0 ;
20855 int res1 = 0 ;
20856 wxSize temp2 ;
20857 PyObject * obj0 = 0 ;
20858 PyObject * obj1 = 0 ;
20859 char * kwnames[] = {
20860 (char *) "self",(char *) "padding", NULL
20861 };
20862
20863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20865 if (!SWIG_IsOK(res1)) {
20866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20867 }
20868 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20869 {
20870 arg2 = &temp2;
20871 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20872 }
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 (arg1)->SetPadding((wxSize const &)*arg2);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_Py_Void();
20880 return resultobj;
20881fail:
20882 return NULL;
20883}
20884
20885
20886SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20887 PyObject *resultobj = 0;
20888 wxNotebook *arg1 = (wxNotebook *) 0 ;
20889 wxSize *arg2 = 0 ;
20890 void *argp1 = 0 ;
20891 int res1 = 0 ;
20892 wxSize temp2 ;
20893 PyObject * obj0 = 0 ;
20894 PyObject * obj1 = 0 ;
20895 char * kwnames[] = {
20896 (char *) "self",(char *) "sz", NULL
20897 };
20898
20899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20901 if (!SWIG_IsOK(res1)) {
20902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20903 }
20904 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20905 {
20906 arg2 = &temp2;
20907 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20908 }
20909 {
20910 PyThreadState* __tstate = wxPyBeginAllowThreads();
20911 (arg1)->SetTabSize((wxSize const &)*arg2);
20912 wxPyEndAllowThreads(__tstate);
20913 if (PyErr_Occurred()) SWIG_fail;
20914 }
20915 resultobj = SWIG_Py_Void();
20916 return resultobj;
20917fail:
20918 return NULL;
20919}
20920
20921
1bd55598
RD
20922SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20923 PyObject *resultobj = 0;
20924 wxNotebook *arg1 = (wxNotebook *) 0 ;
20925 wxColour result;
20926 void *argp1 = 0 ;
20927 int res1 = 0 ;
20928 PyObject *swig_obj[1] ;
20929
20930 if (!args) SWIG_fail;
20931 swig_obj[0] = args;
20932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20933 if (!SWIG_IsOK(res1)) {
20934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20935 }
20936 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
20939 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20940 wxPyEndAllowThreads(__tstate);
20941 if (PyErr_Occurred()) SWIG_fail;
20942 }
20943 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20944 return resultobj;
20945fail:
20946 return NULL;
20947}
20948
20949
20950SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20951 PyObject *resultobj = 0;
20952 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20953 SwigValueWrapper<wxVisualAttributes > result;
20954 int val1 ;
20955 int ecode1 = 0 ;
20956 PyObject * obj0 = 0 ;
20957 char * kwnames[] = {
20958 (char *) "variant", NULL
20959 };
20960
20961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20962 if (obj0) {
20963 ecode1 = SWIG_AsVal_int(obj0, &val1);
20964 if (!SWIG_IsOK(ecode1)) {
20965 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20966 }
20967 arg1 = static_cast< wxWindowVariant >(val1);
20968 }
20969 {
20970 if (!wxPyCheckForApp()) SWIG_fail;
20971 PyThreadState* __tstate = wxPyBeginAllowThreads();
20972 result = wxNotebook::GetClassDefaultAttributes(arg1);
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20977 return resultobj;
20978fail:
20979 return NULL;
20980}
20981
20982
b39fe951
RD
20983SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20984 PyObject *resultobj = 0;
20985 wxNotebook *arg1 = (wxNotebook *) 0 ;
20986 int arg2 ;
20987 bool result;
20988 void *argp1 = 0 ;
20989 int res1 = 0 ;
20990 int val2 ;
20991 int ecode2 = 0 ;
20992 PyObject * obj0 = 0 ;
20993 PyObject * obj1 = 0 ;
20994 char * kwnames[] = {
20995 (char *) "self",(char *) "nPage", NULL
20996 };
20997
20998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21000 if (!SWIG_IsOK(res1)) {
21001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21002 }
21003 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21004 ecode2 = SWIG_AsVal_int(obj1, &val2);
21005 if (!SWIG_IsOK(ecode2)) {
21006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21007 }
21008 arg2 = static_cast< int >(val2);
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 {
21016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21017 }
21018 return resultobj;
21019fail:
21020 return NULL;
21021}
21022
21023
21024SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj = 0;
21026 wxNotebook *arg1 = (wxNotebook *) 0 ;
21027 int arg2 ;
21028 int arg3 = (int) -1 ;
21029 void *argp1 = 0 ;
21030 int res1 = 0 ;
21031 int val2 ;
21032 int ecode2 = 0 ;
21033 int val3 ;
21034 int ecode3 = 0 ;
21035 PyObject * obj0 = 0 ;
21036 PyObject * obj1 = 0 ;
21037 PyObject * obj2 = 0 ;
21038 char * kwnames[] = {
21039 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21040 };
21041
21042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21044 if (!SWIG_IsOK(res1)) {
21045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21046 }
21047 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21048 ecode2 = SWIG_AsVal_int(obj1, &val2);
21049 if (!SWIG_IsOK(ecode2)) {
21050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21051 }
21052 arg2 = static_cast< int >(val2);
21053 if (obj2) {
21054 ecode3 = SWIG_AsVal_int(obj2, &val3);
21055 if (!SWIG_IsOK(ecode3)) {
21056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21057 }
21058 arg3 = static_cast< int >(val3);
21059 }
21060 {
21061 PyThreadState* __tstate = wxPyBeginAllowThreads();
21062 (arg1)->SendPageChangedEvent(arg2,arg3);
21063 wxPyEndAllowThreads(__tstate);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 resultobj = SWIG_Py_Void();
21067 return resultobj;
21068fail:
21069 return NULL;
21070}
21071
21072
1bd55598
RD
21073SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21074 PyObject *obj;
21075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21076 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21077 return SWIG_Py_Void();
21078}
21079
21080SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21081 return SWIG_Python_InitShadowInstance(args);
21082}
21083
21084SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj = 0;
21086 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21087 int arg2 = (int) 0 ;
21088 int arg3 = (int) -1 ;
21089 int arg4 = (int) -1 ;
21090 wxNotebookEvent *result = 0 ;
21091 int val1 ;
21092 int ecode1 = 0 ;
21093 int val2 ;
21094 int ecode2 = 0 ;
21095 int val3 ;
21096 int ecode3 = 0 ;
21097 int val4 ;
21098 int ecode4 = 0 ;
21099 PyObject * obj0 = 0 ;
21100 PyObject * obj1 = 0 ;
21101 PyObject * obj2 = 0 ;
21102 PyObject * obj3 = 0 ;
21103 char * kwnames[] = {
21104 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21105 };
21106
21107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21108 if (obj0) {
21109 ecode1 = SWIG_AsVal_int(obj0, &val1);
21110 if (!SWIG_IsOK(ecode1)) {
21111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21112 }
21113 arg1 = static_cast< wxEventType >(val1);
21114 }
21115 if (obj1) {
21116 ecode2 = SWIG_AsVal_int(obj1, &val2);
21117 if (!SWIG_IsOK(ecode2)) {
21118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21119 }
21120 arg2 = static_cast< int >(val2);
21121 }
21122 if (obj2) {
21123 ecode3 = SWIG_AsVal_int(obj2, &val3);
21124 if (!SWIG_IsOK(ecode3)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21126 }
21127 arg3 = static_cast< int >(val3);
21128 }
21129 if (obj3) {
21130 ecode4 = SWIG_AsVal_int(obj3, &val4);
21131 if (!SWIG_IsOK(ecode4)) {
21132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21133 }
21134 arg4 = static_cast< int >(val4);
21135 }
21136 {
21137 PyThreadState* __tstate = wxPyBeginAllowThreads();
21138 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21139 wxPyEndAllowThreads(__tstate);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 }
21142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21143 return resultobj;
21144fail:
21145 return NULL;
21146}
21147
21148
21149SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 PyObject *obj;
21151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21152 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21153 return SWIG_Py_Void();
21154}
21155
21156SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 return SWIG_Python_InitShadowInstance(args);
21158}
21159
21160SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21161 PyObject *resultobj = 0;
21162 wxWindow *arg1 = (wxWindow *) 0 ;
21163 int arg2 = (int) -1 ;
21164 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21165 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21166 wxSize const &arg4_defvalue = wxDefaultSize ;
21167 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21168 long arg5 = (long) 0 ;
21169 wxString const &arg6_defvalue = wxPyEmptyString ;
21170 wxString *arg6 = (wxString *) &arg6_defvalue ;
21171 wxListbook *result = 0 ;
21172 void *argp1 = 0 ;
21173 int res1 = 0 ;
21174 int val2 ;
21175 int ecode2 = 0 ;
21176 wxPoint temp3 ;
21177 wxSize temp4 ;
21178 long val5 ;
21179 int ecode5 = 0 ;
21180 bool temp6 = false ;
21181 PyObject * obj0 = 0 ;
21182 PyObject * obj1 = 0 ;
21183 PyObject * obj2 = 0 ;
21184 PyObject * obj3 = 0 ;
21185 PyObject * obj4 = 0 ;
21186 PyObject * obj5 = 0 ;
21187 char * kwnames[] = {
21188 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21189 };
21190
21191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21195 }
21196 arg1 = reinterpret_cast< wxWindow * >(argp1);
21197 if (obj1) {
21198 ecode2 = SWIG_AsVal_int(obj1, &val2);
21199 if (!SWIG_IsOK(ecode2)) {
21200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21201 }
21202 arg2 = static_cast< int >(val2);
21203 }
21204 if (obj2) {
d55e5bfc 21205 {
1bd55598
RD
21206 arg3 = &temp3;
21207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21208 }
1bd55598
RD
21209 }
21210 if (obj3) {
d55e5bfc 21211 {
1bd55598
RD
21212 arg4 = &temp4;
21213 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21214 }
1bd55598
RD
21215 }
21216 if (obj4) {
21217 ecode5 = SWIG_AsVal_long(obj4, &val5);
21218 if (!SWIG_IsOK(ecode5)) {
21219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21220 }
21221 arg5 = static_cast< long >(val5);
21222 }
21223 if (obj5) {
d55e5bfc 21224 {
1bd55598
RD
21225 arg6 = wxString_in_helper(obj5);
21226 if (arg6 == NULL) SWIG_fail;
21227 temp6 = true;
d55e5bfc 21228 }
1bd55598
RD
21229 }
21230 {
21231 if (!wxPyCheckForApp()) SWIG_fail;
21232 PyThreadState* __tstate = wxPyBeginAllowThreads();
21233 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21234 wxPyEndAllowThreads(__tstate);
21235 if (PyErr_Occurred()) SWIG_fail;
21236 }
21237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21238 {
21239 if (temp6)
21240 delete arg6;
21241 }
21242 return resultobj;
21243fail:
21244 {
21245 if (temp6)
21246 delete arg6;
21247 }
21248 return NULL;
21249}
21250
21251
21252SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21253 PyObject *resultobj = 0;
21254 wxListbook *result = 0 ;
21255
21256 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21257 {
21258 if (!wxPyCheckForApp()) SWIG_fail;
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 result = (wxListbook *)new wxListbook();
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21265 return resultobj;
21266fail:
21267 return NULL;
21268}
21269
21270
21271SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21272 PyObject *resultobj = 0;
21273 wxListbook *arg1 = (wxListbook *) 0 ;
21274 wxWindow *arg2 = (wxWindow *) 0 ;
21275 int arg3 = (int) -1 ;
21276 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21277 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21278 wxSize const &arg5_defvalue = wxDefaultSize ;
21279 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21280 long arg6 = (long) 0 ;
21281 wxString const &arg7_defvalue = wxPyEmptyString ;
21282 wxString *arg7 = (wxString *) &arg7_defvalue ;
21283 bool result;
21284 void *argp1 = 0 ;
21285 int res1 = 0 ;
21286 void *argp2 = 0 ;
21287 int res2 = 0 ;
21288 int val3 ;
21289 int ecode3 = 0 ;
21290 wxPoint temp4 ;
21291 wxSize temp5 ;
21292 long val6 ;
21293 int ecode6 = 0 ;
21294 bool temp7 = false ;
21295 PyObject * obj0 = 0 ;
21296 PyObject * obj1 = 0 ;
21297 PyObject * obj2 = 0 ;
21298 PyObject * obj3 = 0 ;
21299 PyObject * obj4 = 0 ;
21300 PyObject * obj5 = 0 ;
21301 PyObject * obj6 = 0 ;
21302 char * kwnames[] = {
21303 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21304 };
21305
21306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21308 if (!SWIG_IsOK(res1)) {
21309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21310 }
21311 arg1 = reinterpret_cast< wxListbook * >(argp1);
21312 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21313 if (!SWIG_IsOK(res2)) {
21314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21315 }
21316 arg2 = reinterpret_cast< wxWindow * >(argp2);
21317 if (obj2) {
21318 ecode3 = SWIG_AsVal_int(obj2, &val3);
21319 if (!SWIG_IsOK(ecode3)) {
21320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21321 }
21322 arg3 = static_cast< int >(val3);
21323 }
21324 if (obj3) {
d55e5bfc 21325 {
1bd55598
RD
21326 arg4 = &temp4;
21327 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21328 }
1bd55598
RD
21329 }
21330 if (obj4) {
d55e5bfc 21331 {
1bd55598
RD
21332 arg5 = &temp5;
21333 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21334 }
1bd55598
RD
21335 }
21336 if (obj5) {
21337 ecode6 = SWIG_AsVal_long(obj5, &val6);
21338 if (!SWIG_IsOK(ecode6)) {
21339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21340 }
21341 arg6 = static_cast< long >(val6);
21342 }
21343 if (obj6) {
d55e5bfc 21344 {
1bd55598
RD
21345 arg7 = wxString_in_helper(obj6);
21346 if (arg7 == NULL) SWIG_fail;
21347 temp7 = true;
d55e5bfc 21348 }
1bd55598
RD
21349 }
21350 {
21351 PyThreadState* __tstate = wxPyBeginAllowThreads();
21352 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21353 wxPyEndAllowThreads(__tstate);
21354 if (PyErr_Occurred()) SWIG_fail;
21355 }
21356 {
21357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21358 }
21359 {
21360 if (temp7)
21361 delete arg7;
21362 }
21363 return resultobj;
21364fail:
21365 {
21366 if (temp7)
21367 delete arg7;
21368 }
21369 return NULL;
d55e5bfc
RD
21370}
21371
21372
1bd55598
RD
21373SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21374 PyObject *resultobj = 0;
21375 wxListbook *arg1 = (wxListbook *) 0 ;
21376 wxListView *result = 0 ;
21377 void *argp1 = 0 ;
21378 int res1 = 0 ;
21379 PyObject *swig_obj[1] ;
21380
21381 if (!args) SWIG_fail;
21382 swig_obj[0] = args;
21383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21384 if (!SWIG_IsOK(res1)) {
21385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21386 }
21387 arg1 = reinterpret_cast< wxListbook * >(argp1);
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 result = (wxListView *)(arg1)->GetListView();
21391 wxPyEndAllowThreads(__tstate);
21392 if (PyErr_Occurred()) SWIG_fail;
21393 }
21394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21395 return resultobj;
21396fail:
21397 return NULL;
21398}
21399
21400
21401SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21402 PyObject *obj;
21403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21404 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21405 return SWIG_Py_Void();
21406}
21407
21408SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 return SWIG_Python_InitShadowInstance(args);
21410}
21411
21412SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21413 PyObject *resultobj = 0;
21414 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21415 int arg2 = (int) 0 ;
21416 int arg3 = (int) -1 ;
21417 int arg4 = (int) -1 ;
21418 wxListbookEvent *result = 0 ;
21419 int val1 ;
21420 int ecode1 = 0 ;
21421 int val2 ;
21422 int ecode2 = 0 ;
21423 int val3 ;
21424 int ecode3 = 0 ;
21425 int val4 ;
21426 int ecode4 = 0 ;
21427 PyObject * obj0 = 0 ;
21428 PyObject * obj1 = 0 ;
21429 PyObject * obj2 = 0 ;
21430 PyObject * obj3 = 0 ;
21431 char * kwnames[] = {
21432 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21433 };
21434
21435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21436 if (obj0) {
21437 ecode1 = SWIG_AsVal_int(obj0, &val1);
21438 if (!SWIG_IsOK(ecode1)) {
21439 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21440 }
21441 arg1 = static_cast< wxEventType >(val1);
21442 }
21443 if (obj1) {
21444 ecode2 = SWIG_AsVal_int(obj1, &val2);
21445 if (!SWIG_IsOK(ecode2)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21447 }
21448 arg2 = static_cast< int >(val2);
21449 }
21450 if (obj2) {
21451 ecode3 = SWIG_AsVal_int(obj2, &val3);
21452 if (!SWIG_IsOK(ecode3)) {
21453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21454 }
21455 arg3 = static_cast< int >(val3);
21456 }
21457 if (obj3) {
21458 ecode4 = SWIG_AsVal_int(obj3, &val4);
21459 if (!SWIG_IsOK(ecode4)) {
21460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21461 }
21462 arg4 = static_cast< int >(val4);
21463 }
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21467 wxPyEndAllowThreads(__tstate);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 }
21470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21471 return resultobj;
21472fail:
21473 return NULL;
21474}
21475
21476
21477SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21478 PyObject *obj;
21479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21480 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21481 return SWIG_Py_Void();
21482}
21483
21484SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21485 return SWIG_Python_InitShadowInstance(args);
21486}
21487
21488SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21489 PyObject *resultobj = 0;
21490 wxWindow *arg1 = (wxWindow *) 0 ;
21491 int arg2 ;
21492 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21493 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21494 wxSize const &arg4_defvalue = wxDefaultSize ;
21495 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21496 long arg5 = (long) 0 ;
21497 wxString const &arg6_defvalue = wxPyEmptyString ;
21498 wxString *arg6 = (wxString *) &arg6_defvalue ;
21499 wxChoicebook *result = 0 ;
21500 void *argp1 = 0 ;
21501 int res1 = 0 ;
21502 int val2 ;
21503 int ecode2 = 0 ;
21504 wxPoint temp3 ;
21505 wxSize temp4 ;
21506 long val5 ;
21507 int ecode5 = 0 ;
21508 bool temp6 = false ;
21509 PyObject * obj0 = 0 ;
21510 PyObject * obj1 = 0 ;
21511 PyObject * obj2 = 0 ;
21512 PyObject * obj3 = 0 ;
21513 PyObject * obj4 = 0 ;
21514 PyObject * obj5 = 0 ;
21515 char * kwnames[] = {
21516 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21517 };
21518
21519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21521 if (!SWIG_IsOK(res1)) {
21522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21523 }
21524 arg1 = reinterpret_cast< wxWindow * >(argp1);
21525 ecode2 = SWIG_AsVal_int(obj1, &val2);
21526 if (!SWIG_IsOK(ecode2)) {
21527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21528 }
21529 arg2 = static_cast< int >(val2);
21530 if (obj2) {
36ed4f51 21531 {
1bd55598
RD
21532 arg3 = &temp3;
21533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21534 }
1bd55598
RD
21535 }
21536 if (obj3) {
36ed4f51 21537 {
1bd55598
RD
21538 arg4 = &temp4;
21539 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21540 }
1bd55598
RD
21541 }
21542 if (obj4) {
21543 ecode5 = SWIG_AsVal_long(obj4, &val5);
21544 if (!SWIG_IsOK(ecode5)) {
21545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21546 }
21547 arg5 = static_cast< long >(val5);
21548 }
21549 if (obj5) {
d55e5bfc 21550 {
1bd55598
RD
21551 arg6 = wxString_in_helper(obj5);
21552 if (arg6 == NULL) SWIG_fail;
21553 temp6 = true;
d55e5bfc 21554 }
1bd55598
RD
21555 }
21556 {
21557 if (!wxPyCheckForApp()) SWIG_fail;
21558 PyThreadState* __tstate = wxPyBeginAllowThreads();
21559 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21560 wxPyEndAllowThreads(__tstate);
21561 if (PyErr_Occurred()) SWIG_fail;
21562 }
21563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21564 {
21565 if (temp6)
21566 delete arg6;
21567 }
21568 return resultobj;
21569fail:
21570 {
21571 if (temp6)
21572 delete arg6;
21573 }
21574 return NULL;
d55e5bfc
RD
21575}
21576
21577
1bd55598
RD
21578SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21579 PyObject *resultobj = 0;
21580 wxChoicebook *result = 0 ;
21581
21582 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21583 {
21584 if (!wxPyCheckForApp()) SWIG_fail;
21585 PyThreadState* __tstate = wxPyBeginAllowThreads();
21586 result = (wxChoicebook *)new wxChoicebook();
21587 wxPyEndAllowThreads(__tstate);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 }
21590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21591 return resultobj;
21592fail:
21593 return NULL;
21594}
21595
21596
21597SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21598 PyObject *resultobj = 0;
21599 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21600 wxWindow *arg2 = (wxWindow *) 0 ;
21601 int arg3 ;
21602 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21603 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21604 wxSize const &arg5_defvalue = wxDefaultSize ;
21605 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21606 long arg6 = (long) 0 ;
21607 wxString const &arg7_defvalue = wxPyEmptyString ;
21608 wxString *arg7 = (wxString *) &arg7_defvalue ;
21609 bool result;
21610 void *argp1 = 0 ;
21611 int res1 = 0 ;
21612 void *argp2 = 0 ;
21613 int res2 = 0 ;
21614 int val3 ;
21615 int ecode3 = 0 ;
21616 wxPoint temp4 ;
21617 wxSize temp5 ;
21618 long val6 ;
21619 int ecode6 = 0 ;
21620 bool temp7 = false ;
21621 PyObject * obj0 = 0 ;
21622 PyObject * obj1 = 0 ;
21623 PyObject * obj2 = 0 ;
21624 PyObject * obj3 = 0 ;
21625 PyObject * obj4 = 0 ;
21626 PyObject * obj5 = 0 ;
21627 PyObject * obj6 = 0 ;
21628 char * kwnames[] = {
21629 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21630 };
21631
21632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21634 if (!SWIG_IsOK(res1)) {
21635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21636 }
21637 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21639 if (!SWIG_IsOK(res2)) {
21640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21641 }
21642 arg2 = reinterpret_cast< wxWindow * >(argp2);
21643 ecode3 = SWIG_AsVal_int(obj2, &val3);
21644 if (!SWIG_IsOK(ecode3)) {
21645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21646 }
21647 arg3 = static_cast< int >(val3);
21648 if (obj3) {
d55e5bfc 21649 {
1bd55598
RD
21650 arg4 = &temp4;
21651 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21652 }
1bd55598
RD
21653 }
21654 if (obj4) {
d55e5bfc 21655 {
1bd55598
RD
21656 arg5 = &temp5;
21657 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21658 }
1bd55598
RD
21659 }
21660 if (obj5) {
21661 ecode6 = SWIG_AsVal_long(obj5, &val6);
21662 if (!SWIG_IsOK(ecode6)) {
21663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21664 }
21665 arg6 = static_cast< long >(val6);
21666 }
21667 if (obj6) {
d55e5bfc 21668 {
1bd55598
RD
21669 arg7 = wxString_in_helper(obj6);
21670 if (arg7 == NULL) SWIG_fail;
21671 temp7 = true;
d55e5bfc 21672 }
1bd55598
RD
21673 }
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21677 wxPyEndAllowThreads(__tstate);
21678 if (PyErr_Occurred()) SWIG_fail;
21679 }
21680 {
21681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21682 }
21683 {
21684 if (temp7)
21685 delete arg7;
21686 }
21687 return resultobj;
21688fail:
21689 {
21690 if (temp7)
21691 delete arg7;
21692 }
21693 return NULL;
d55e5bfc
RD
21694}
21695
21696
1bd55598
RD
21697SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21698 PyObject *resultobj = 0;
21699 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21700 wxChoice *result = 0 ;
21701 void *argp1 = 0 ;
21702 int res1 = 0 ;
21703 PyObject *swig_obj[1] ;
21704
21705 if (!args) SWIG_fail;
21706 swig_obj[0] = args;
21707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21710 }
21711 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21712 {
21713 PyThreadState* __tstate = wxPyBeginAllowThreads();
21714 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21715 wxPyEndAllowThreads(__tstate);
21716 if (PyErr_Occurred()) SWIG_fail;
21717 }
21718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21719 return resultobj;
21720fail:
21721 return NULL;
21722}
21723
21724
21725SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21726 PyObject *obj;
21727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21728 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21729 return SWIG_Py_Void();
21730}
21731
21732SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21733 return SWIG_Python_InitShadowInstance(args);
21734}
21735
21736SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj = 0;
21738 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21739 int arg2 = (int) 0 ;
21740 int arg3 = (int) -1 ;
21741 int arg4 = (int) -1 ;
21742 wxChoicebookEvent *result = 0 ;
21743 int val1 ;
21744 int ecode1 = 0 ;
21745 int val2 ;
21746 int ecode2 = 0 ;
21747 int val3 ;
21748 int ecode3 = 0 ;
21749 int val4 ;
21750 int ecode4 = 0 ;
21751 PyObject * obj0 = 0 ;
21752 PyObject * obj1 = 0 ;
21753 PyObject * obj2 = 0 ;
21754 PyObject * obj3 = 0 ;
21755 char * kwnames[] = {
21756 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21757 };
21758
21759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21760 if (obj0) {
21761 ecode1 = SWIG_AsVal_int(obj0, &val1);
21762 if (!SWIG_IsOK(ecode1)) {
21763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21764 }
21765 arg1 = static_cast< wxEventType >(val1);
21766 }
21767 if (obj1) {
21768 ecode2 = SWIG_AsVal_int(obj1, &val2);
21769 if (!SWIG_IsOK(ecode2)) {
21770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21771 }
21772 arg2 = static_cast< int >(val2);
21773 }
21774 if (obj2) {
21775 ecode3 = SWIG_AsVal_int(obj2, &val3);
21776 if (!SWIG_IsOK(ecode3)) {
21777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21778 }
21779 arg3 = static_cast< int >(val3);
21780 }
21781 if (obj3) {
21782 ecode4 = SWIG_AsVal_int(obj3, &val4);
21783 if (!SWIG_IsOK(ecode4)) {
21784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21785 }
21786 arg4 = static_cast< int >(val4);
21787 }
21788 {
21789 PyThreadState* __tstate = wxPyBeginAllowThreads();
21790 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21795 return resultobj;
21796fail:
21797 return NULL;
21798}
21799
21800
21801SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21802 PyObject *obj;
21803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21804 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21805 return SWIG_Py_Void();
21806}
21807
21808SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21809 return SWIG_Python_InitShadowInstance(args);
21810}
21811
21812SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21813 PyObject *resultobj = 0;
21814 wxWindow *arg1 = (wxWindow *) 0 ;
21815 int arg2 ;
21816 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21817 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21818 wxSize const &arg4_defvalue = wxDefaultSize ;
21819 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21820 long arg5 = (long) wxBK_DEFAULT ;
21821 wxString const &arg6_defvalue = wxPyEmptyString ;
21822 wxString *arg6 = (wxString *) &arg6_defvalue ;
21823 wxTreebook *result = 0 ;
21824 void *argp1 = 0 ;
21825 int res1 = 0 ;
21826 int val2 ;
21827 int ecode2 = 0 ;
21828 wxPoint temp3 ;
21829 wxSize temp4 ;
21830 long val5 ;
21831 int ecode5 = 0 ;
21832 bool temp6 = false ;
21833 PyObject * obj0 = 0 ;
21834 PyObject * obj1 = 0 ;
21835 PyObject * obj2 = 0 ;
21836 PyObject * obj3 = 0 ;
21837 PyObject * obj4 = 0 ;
21838 PyObject * obj5 = 0 ;
21839 char * kwnames[] = {
21840 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21841 };
21842
21843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21845 if (!SWIG_IsOK(res1)) {
21846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21847 }
21848 arg1 = reinterpret_cast< wxWindow * >(argp1);
21849 ecode2 = SWIG_AsVal_int(obj1, &val2);
21850 if (!SWIG_IsOK(ecode2)) {
21851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21852 }
21853 arg2 = static_cast< int >(val2);
21854 if (obj2) {
36ed4f51 21855 {
1bd55598
RD
21856 arg3 = &temp3;
21857 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21858 }
1bd55598
RD
21859 }
21860 if (obj3) {
36ed4f51 21861 {
1bd55598
RD
21862 arg4 = &temp4;
21863 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21864 }
1bd55598
RD
21865 }
21866 if (obj4) {
21867 ecode5 = SWIG_AsVal_long(obj4, &val5);
21868 if (!SWIG_IsOK(ecode5)) {
21869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21870 }
21871 arg5 = static_cast< long >(val5);
21872 }
21873 if (obj5) {
d55e5bfc 21874 {
1bd55598
RD
21875 arg6 = wxString_in_helper(obj5);
21876 if (arg6 == NULL) SWIG_fail;
21877 temp6 = true;
d55e5bfc 21878 }
1bd55598
RD
21879 }
21880 {
21881 if (!wxPyCheckForApp()) SWIG_fail;
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21888 {
21889 if (temp6)
21890 delete arg6;
21891 }
21892 return resultobj;
21893fail:
21894 {
21895 if (temp6)
21896 delete arg6;
21897 }
21898 return NULL;
d55e5bfc
RD
21899}
21900
21901
1bd55598
RD
21902SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21903 PyObject *resultobj = 0;
21904 wxTreebook *result = 0 ;
21905
21906 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21907 {
21908 if (!wxPyCheckForApp()) SWIG_fail;
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = (wxTreebook *)new wxTreebook();
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21915 return resultobj;
21916fail:
21917 return NULL;
21918}
21919
21920
21921SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21922 PyObject *resultobj = 0;
21923 wxTreebook *arg1 = (wxTreebook *) 0 ;
21924 wxWindow *arg2 = (wxWindow *) 0 ;
21925 int arg3 ;
21926 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21927 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21928 wxSize const &arg5_defvalue = wxDefaultSize ;
21929 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21930 long arg6 = (long) wxBK_DEFAULT ;
21931 wxString const &arg7_defvalue = wxPyEmptyString ;
21932 wxString *arg7 = (wxString *) &arg7_defvalue ;
21933 bool result;
21934 void *argp1 = 0 ;
21935 int res1 = 0 ;
21936 void *argp2 = 0 ;
21937 int res2 = 0 ;
21938 int val3 ;
21939 int ecode3 = 0 ;
21940 wxPoint temp4 ;
21941 wxSize temp5 ;
21942 long val6 ;
21943 int ecode6 = 0 ;
21944 bool temp7 = false ;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 PyObject * obj2 = 0 ;
21948 PyObject * obj3 = 0 ;
21949 PyObject * obj4 = 0 ;
21950 PyObject * obj5 = 0 ;
21951 PyObject * obj6 = 0 ;
21952 char * kwnames[] = {
21953 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21954 };
21955
21956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21958 if (!SWIG_IsOK(res1)) {
21959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21960 }
21961 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21963 if (!SWIG_IsOK(res2)) {
21964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21965 }
21966 arg2 = reinterpret_cast< wxWindow * >(argp2);
21967 ecode3 = SWIG_AsVal_int(obj2, &val3);
21968 if (!SWIG_IsOK(ecode3)) {
21969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21970 }
21971 arg3 = static_cast< int >(val3);
21972 if (obj3) {
36ed4f51 21973 {
1bd55598
RD
21974 arg4 = &temp4;
21975 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21976 }
1bd55598
RD
21977 }
21978 if (obj4) {
d55e5bfc 21979 {
1bd55598
RD
21980 arg5 = &temp5;
21981 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21982 }
1bd55598
RD
21983 }
21984 if (obj5) {
21985 ecode6 = SWIG_AsVal_long(obj5, &val6);
21986 if (!SWIG_IsOK(ecode6)) {
21987 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21988 }
21989 arg6 = static_cast< long >(val6);
21990 }
21991 if (obj6) {
36ed4f51 21992 {
1bd55598
RD
21993 arg7 = wxString_in_helper(obj6);
21994 if (arg7 == NULL) SWIG_fail;
21995 temp7 = true;
36ed4f51 21996 }
1bd55598
RD
21997 }
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 {
22005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22006 }
22007 {
22008 if (temp7)
22009 delete arg7;
22010 }
22011 return resultobj;
22012fail:
22013 {
22014 if (temp7)
22015 delete arg7;
22016 }
22017 return NULL;
22018}
22019
22020
22021SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22022 PyObject *resultobj = 0;
22023 wxTreebook *arg1 = (wxTreebook *) 0 ;
22024 size_t arg2 ;
22025 wxWindow *arg3 = (wxWindow *) 0 ;
22026 wxString *arg4 = 0 ;
22027 bool arg5 = (bool) false ;
22028 int arg6 = (int) wxNOT_FOUND ;
22029 bool result;
22030 void *argp1 = 0 ;
22031 int res1 = 0 ;
22032 size_t val2 ;
22033 int ecode2 = 0 ;
22034 void *argp3 = 0 ;
22035 int res3 = 0 ;
22036 bool temp4 = false ;
22037 bool val5 ;
22038 int ecode5 = 0 ;
22039 int val6 ;
22040 int ecode6 = 0 ;
22041 PyObject * obj0 = 0 ;
22042 PyObject * obj1 = 0 ;
22043 PyObject * obj2 = 0 ;
22044 PyObject * obj3 = 0 ;
22045 PyObject * obj4 = 0 ;
22046 PyObject * obj5 = 0 ;
22047 char * kwnames[] = {
22048 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22049 };
22050
22051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22053 if (!SWIG_IsOK(res1)) {
22054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22055 }
22056 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22057 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22058 if (!SWIG_IsOK(ecode2)) {
22059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22060 }
22061 arg2 = static_cast< size_t >(val2);
22062 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22063 if (!SWIG_IsOK(res3)) {
22064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22065 }
22066 arg3 = reinterpret_cast< wxWindow * >(argp3);
22067 {
22068 arg4 = wxString_in_helper(obj3);
22069 if (arg4 == NULL) SWIG_fail;
22070 temp4 = true;
22071 }
22072 if (obj4) {
22073 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22074 if (!SWIG_IsOK(ecode5)) {
22075 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22076 }
22077 arg5 = static_cast< bool >(val5);
22078 }
22079 if (obj5) {
22080 ecode6 = SWIG_AsVal_int(obj5, &val6);
22081 if (!SWIG_IsOK(ecode6)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22083 }
22084 arg6 = static_cast< int >(val6);
22085 }
22086 {
22087 PyThreadState* __tstate = wxPyBeginAllowThreads();
22088 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22089 wxPyEndAllowThreads(__tstate);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 }
22092 {
22093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22094 }
22095 {
22096 if (temp4)
22097 delete arg4;
22098 }
22099 return resultobj;
22100fail:
22101 {
22102 if (temp4)
22103 delete arg4;
22104 }
22105 return NULL;
22106}
22107
22108
22109SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj = 0;
22111 wxTreebook *arg1 = (wxTreebook *) 0 ;
22112 wxWindow *arg2 = (wxWindow *) 0 ;
22113 wxString *arg3 = 0 ;
22114 bool arg4 = (bool) false ;
22115 int arg5 = (int) wxNOT_FOUND ;
22116 bool result;
22117 void *argp1 = 0 ;
22118 int res1 = 0 ;
22119 void *argp2 = 0 ;
22120 int res2 = 0 ;
22121 bool temp3 = false ;
22122 bool val4 ;
22123 int ecode4 = 0 ;
22124 int val5 ;
22125 int ecode5 = 0 ;
22126 PyObject * obj0 = 0 ;
22127 PyObject * obj1 = 0 ;
22128 PyObject * obj2 = 0 ;
22129 PyObject * obj3 = 0 ;
22130 PyObject * obj4 = 0 ;
22131 char * kwnames[] = {
22132 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22133 };
22134
22135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22137 if (!SWIG_IsOK(res1)) {
22138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22139 }
22140 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22142 if (!SWIG_IsOK(res2)) {
22143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22144 }
22145 arg2 = reinterpret_cast< wxWindow * >(argp2);
22146 {
22147 arg3 = wxString_in_helper(obj2);
22148 if (arg3 == NULL) SWIG_fail;
22149 temp3 = true;
22150 }
22151 if (obj3) {
22152 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22153 if (!SWIG_IsOK(ecode4)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22155 }
22156 arg4 = static_cast< bool >(val4);
22157 }
22158 if (obj4) {
22159 ecode5 = SWIG_AsVal_int(obj4, &val5);
22160 if (!SWIG_IsOK(ecode5)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22162 }
22163 arg5 = static_cast< int >(val5);
22164 }
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 {
22172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22173 }
22174 {
22175 if (temp3)
22176 delete arg3;
22177 }
22178 return resultobj;
22179fail:
22180 {
22181 if (temp3)
22182 delete arg3;
22183 }
22184 return NULL;
22185}
22186
22187
22188SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22189 PyObject *resultobj = 0;
22190 wxTreebook *arg1 = (wxTreebook *) 0 ;
22191 size_t arg2 ;
22192 bool result;
22193 void *argp1 = 0 ;
22194 int res1 = 0 ;
22195 size_t val2 ;
22196 int ecode2 = 0 ;
22197 PyObject * obj0 = 0 ;
22198 PyObject * obj1 = 0 ;
22199 char * kwnames[] = {
22200 (char *) "self",(char *) "pos", NULL
22201 };
22202
22203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22205 if (!SWIG_IsOK(res1)) {
22206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22207 }
22208 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22209 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22210 if (!SWIG_IsOK(ecode2)) {
22211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22212 }
22213 arg2 = static_cast< size_t >(val2);
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22217 wxPyEndAllowThreads(__tstate);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 }
22220 {
22221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22222 }
22223 return resultobj;
22224fail:
22225 return NULL;
22226}
22227
22228
22229SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22230 PyObject *resultobj = 0;
22231 wxTreebook *arg1 = (wxTreebook *) 0 ;
22232 size_t arg2 ;
22233 bool arg3 = (bool) true ;
22234 bool result;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 size_t val2 ;
22238 int ecode2 = 0 ;
22239 bool val3 ;
22240 int ecode3 = 0 ;
22241 PyObject * obj0 = 0 ;
22242 PyObject * obj1 = 0 ;
22243 PyObject * obj2 = 0 ;
22244 char * kwnames[] = {
22245 (char *) "self",(char *) "pos",(char *) "expand", NULL
22246 };
22247
22248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22250 if (!SWIG_IsOK(res1)) {
22251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22252 }
22253 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22254 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22255 if (!SWIG_IsOK(ecode2)) {
22256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22257 }
22258 arg2 = static_cast< size_t >(val2);
22259 if (obj2) {
22260 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22261 if (!SWIG_IsOK(ecode3)) {
22262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22263 }
22264 arg3 = static_cast< bool >(val3);
22265 }
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22269 wxPyEndAllowThreads(__tstate);
22270 if (PyErr_Occurred()) SWIG_fail;
22271 }
22272 {
22273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22274 }
22275 return resultobj;
22276fail:
22277 return NULL;
22278}
22279
22280
22281SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22282 PyObject *resultobj = 0;
22283 wxTreebook *arg1 = (wxTreebook *) 0 ;
22284 size_t arg2 ;
22285 bool result;
22286 void *argp1 = 0 ;
22287 int res1 = 0 ;
22288 size_t val2 ;
22289 int ecode2 = 0 ;
22290 PyObject * obj0 = 0 ;
22291 PyObject * obj1 = 0 ;
22292 char * kwnames[] = {
22293 (char *) "self",(char *) "pos", NULL
22294 };
22295
22296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22298 if (!SWIG_IsOK(res1)) {
22299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22300 }
22301 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22302 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22303 if (!SWIG_IsOK(ecode2)) {
22304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22305 }
22306 arg2 = static_cast< size_t >(val2);
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = (bool)(arg1)->CollapseNode(arg2);
22310 wxPyEndAllowThreads(__tstate);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
22313 {
22314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22315 }
22316 return resultobj;
22317fail:
22318 return NULL;
22319}
22320
22321
22322SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22323 PyObject *resultobj = 0;
22324 wxTreebook *arg1 = (wxTreebook *) 0 ;
22325 size_t arg2 ;
22326 int result;
22327 void *argp1 = 0 ;
22328 int res1 = 0 ;
22329 size_t val2 ;
22330 int ecode2 = 0 ;
22331 PyObject * obj0 = 0 ;
22332 PyObject * obj1 = 0 ;
22333 char * kwnames[] = {
22334 (char *) "self",(char *) "pos", NULL
22335 };
22336
22337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22339 if (!SWIG_IsOK(res1)) {
22340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22341 }
22342 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22343 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22344 if (!SWIG_IsOK(ecode2)) {
22345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22346 }
22347 arg2 = static_cast< size_t >(val2);
22348 {
22349 PyThreadState* __tstate = wxPyBeginAllowThreads();
22350 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 resultobj = SWIG_From_int(static_cast< int >(result));
22355 return resultobj;
22356fail:
22357 return NULL;
d55e5bfc
RD
22358}
22359
22360
1bd55598
RD
22361SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22362 PyObject *resultobj = 0;
22363 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22364 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22365 void *argp1 = 0 ;
22366 int res1 = 0 ;
22367 PyObject *swig_obj[1] ;
22368
22369 if (!args) SWIG_fail;
22370 swig_obj[0] = args;
22371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22372 if (!SWIG_IsOK(res1)) {
22373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22374 }
22375 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22376 {
22377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22378 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
10044bf1
RD
22382 {
22383 resultobj = wxPyMake_wxObject(result, (bool)0);
22384 }
1bd55598
RD
22385 return resultobj;
22386fail:
22387 return NULL;
22388}
22389
22390
22391SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22392 PyObject *obj;
22393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22394 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22395 return SWIG_Py_Void();
22396}
22397
22398SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22399 return SWIG_Python_InitShadowInstance(args);
22400}
22401
22402SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22403 PyObject *resultobj = 0;
22404 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22405 int arg2 = (int) 0 ;
22406 int arg3 = (int) wxNOT_FOUND ;
22407 int arg4 = (int) wxNOT_FOUND ;
22408 wxTreebookEvent *result = 0 ;
22409 int val1 ;
22410 int ecode1 = 0 ;
22411 int val2 ;
22412 int ecode2 = 0 ;
22413 int val3 ;
22414 int ecode3 = 0 ;
22415 int val4 ;
22416 int ecode4 = 0 ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 PyObject * obj2 = 0 ;
22420 PyObject * obj3 = 0 ;
22421 char * kwnames[] = {
22422 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22423 };
22424
22425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22426 if (obj0) {
22427 ecode1 = SWIG_AsVal_int(obj0, &val1);
22428 if (!SWIG_IsOK(ecode1)) {
22429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22430 }
22431 arg1 = static_cast< wxEventType >(val1);
22432 }
22433 if (obj1) {
22434 ecode2 = SWIG_AsVal_int(obj1, &val2);
22435 if (!SWIG_IsOK(ecode2)) {
22436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22437 }
22438 arg2 = static_cast< int >(val2);
22439 }
22440 if (obj2) {
22441 ecode3 = SWIG_AsVal_int(obj2, &val3);
22442 if (!SWIG_IsOK(ecode3)) {
22443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22444 }
22445 arg3 = static_cast< int >(val3);
22446 }
22447 if (obj3) {
22448 ecode4 = SWIG_AsVal_int(obj3, &val4);
22449 if (!SWIG_IsOK(ecode4)) {
22450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22451 }
22452 arg4 = static_cast< int >(val4);
22453 }
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22461 return resultobj;
22462fail:
22463 return NULL;
22464}
22465
22466
22467SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22468 PyObject *obj;
22469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22470 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22471 return SWIG_Py_Void();
22472}
22473
22474SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22475 return SWIG_Python_InitShadowInstance(args);
22476}
22477
22478SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22479 PyObject *resultobj = 0;
22480 wxWindow *arg1 = (wxWindow *) 0 ;
22481 int arg2 ;
22482 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22483 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22484 wxSize const &arg4_defvalue = wxDefaultSize ;
22485 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22486 long arg5 = (long) wxBK_DEFAULT ;
22487 wxString const &arg6_defvalue = wxPyEmptyString ;
22488 wxString *arg6 = (wxString *) &arg6_defvalue ;
22489 wxToolbook *result = 0 ;
22490 void *argp1 = 0 ;
22491 int res1 = 0 ;
22492 int val2 ;
22493 int ecode2 = 0 ;
22494 wxPoint temp3 ;
22495 wxSize temp4 ;
22496 long val5 ;
22497 int ecode5 = 0 ;
22498 bool temp6 = false ;
22499 PyObject * obj0 = 0 ;
22500 PyObject * obj1 = 0 ;
22501 PyObject * obj2 = 0 ;
22502 PyObject * obj3 = 0 ;
22503 PyObject * obj4 = 0 ;
22504 PyObject * obj5 = 0 ;
22505 char * kwnames[] = {
22506 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22507 };
22508
22509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22511 if (!SWIG_IsOK(res1)) {
22512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22513 }
22514 arg1 = reinterpret_cast< wxWindow * >(argp1);
22515 ecode2 = SWIG_AsVal_int(obj1, &val2);
22516 if (!SWIG_IsOK(ecode2)) {
22517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22518 }
22519 arg2 = static_cast< int >(val2);
22520 if (obj2) {
36ed4f51 22521 {
1bd55598
RD
22522 arg3 = &temp3;
22523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22524 }
1bd55598
RD
22525 }
22526 if (obj3) {
36ed4f51 22527 {
1bd55598
RD
22528 arg4 = &temp4;
22529 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22530 }
1bd55598
RD
22531 }
22532 if (obj4) {
22533 ecode5 = SWIG_AsVal_long(obj4, &val5);
22534 if (!SWIG_IsOK(ecode5)) {
22535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22536 }
22537 arg5 = static_cast< long >(val5);
22538 }
22539 if (obj5) {
d55e5bfc 22540 {
1bd55598
RD
22541 arg6 = wxString_in_helper(obj5);
22542 if (arg6 == NULL) SWIG_fail;
22543 temp6 = true;
d55e5bfc 22544 }
1bd55598
RD
22545 }
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22553 {
22554 if (temp6)
22555 delete arg6;
22556 }
22557 return resultobj;
22558fail:
22559 {
22560 if (temp6)
22561 delete arg6;
22562 }
22563 return NULL;
d55e5bfc
RD
22564}
22565
22566
1bd55598
RD
22567SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22568 PyObject *resultobj = 0;
22569 wxToolbook *result = 0 ;
22570
22571 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22572 {
22573 PyThreadState* __tstate = wxPyBeginAllowThreads();
22574 result = (wxToolbook *)new wxToolbook();
22575 wxPyEndAllowThreads(__tstate);
22576 if (PyErr_Occurred()) SWIG_fail;
22577 }
22578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22579 return resultobj;
22580fail:
22581 return NULL;
22582}
22583
22584
22585SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22586 PyObject *resultobj = 0;
22587 wxToolbook *arg1 = (wxToolbook *) 0 ;
22588 wxWindow *arg2 = (wxWindow *) 0 ;
22589 int arg3 ;
22590 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22591 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22592 wxSize const &arg5_defvalue = wxDefaultSize ;
22593 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22594 long arg6 = (long) 0 ;
22595 wxString const &arg7_defvalue = wxEmptyString ;
22596 wxString *arg7 = (wxString *) &arg7_defvalue ;
22597 bool result;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 void *argp2 = 0 ;
22601 int res2 = 0 ;
22602 int val3 ;
22603 int ecode3 = 0 ;
22604 wxPoint temp4 ;
22605 wxSize temp5 ;
22606 long val6 ;
22607 int ecode6 = 0 ;
22608 bool temp7 = false ;
22609 PyObject * obj0 = 0 ;
22610 PyObject * obj1 = 0 ;
22611 PyObject * obj2 = 0 ;
22612 PyObject * obj3 = 0 ;
22613 PyObject * obj4 = 0 ;
22614 PyObject * obj5 = 0 ;
22615 PyObject * obj6 = 0 ;
22616 char * kwnames[] = {
22617 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22618 };
22619
22620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22622 if (!SWIG_IsOK(res1)) {
22623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22624 }
22625 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22627 if (!SWIG_IsOK(res2)) {
22628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22629 }
22630 arg2 = reinterpret_cast< wxWindow * >(argp2);
22631 ecode3 = SWIG_AsVal_int(obj2, &val3);
22632 if (!SWIG_IsOK(ecode3)) {
22633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22634 }
22635 arg3 = static_cast< int >(val3);
22636 if (obj3) {
22637 {
22638 arg4 = &temp4;
22639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22640 }
1bd55598
RD
22641 }
22642 if (obj4) {
f20a2e1f 22643 {
1bd55598
RD
22644 arg5 = &temp5;
22645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22646 }
1bd55598
RD
22647 }
22648 if (obj5) {
22649 ecode6 = SWIG_AsVal_long(obj5, &val6);
22650 if (!SWIG_IsOK(ecode6)) {
22651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22652 }
22653 arg6 = static_cast< long >(val6);
22654 }
22655 if (obj6) {
f20a2e1f 22656 {
1bd55598
RD
22657 arg7 = wxString_in_helper(obj6);
22658 if (arg7 == NULL) SWIG_fail;
22659 temp7 = true;
f20a2e1f 22660 }
1bd55598
RD
22661 }
22662 {
22663 PyThreadState* __tstate = wxPyBeginAllowThreads();
22664 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 {
22669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22670 }
22671 {
22672 if (temp7)
22673 delete arg7;
22674 }
22675 return resultobj;
22676fail:
22677 {
22678 if (temp7)
22679 delete arg7;
22680 }
22681 return NULL;
f20a2e1f
RD
22682}
22683
22684
1bd55598
RD
22685SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22686 PyObject *resultobj = 0;
22687 wxToolbook *arg1 = (wxToolbook *) 0 ;
22688 wxToolBarBase *result = 0 ;
22689 void *argp1 = 0 ;
22690 int res1 = 0 ;
22691 PyObject *swig_obj[1] ;
22692
22693 if (!args) SWIG_fail;
22694 swig_obj[0] = args;
22695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22696 if (!SWIG_IsOK(res1)) {
22697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22698 }
22699 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 {
22707 resultobj = wxPyMake_wxObject(result, (bool)0);
22708 }
22709 return resultobj;
22710fail:
22711 return NULL;
d55e5bfc
RD
22712}
22713
22714
1bd55598
RD
22715SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22716 PyObject *resultobj = 0;
22717 wxToolbook *arg1 = (wxToolbook *) 0 ;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 PyObject *swig_obj[1] ;
22721
22722 if (!args) SWIG_fail;
22723 swig_obj[0] = args;
22724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22725 if (!SWIG_IsOK(res1)) {
22726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22727 }
22728 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 (arg1)->Realize();
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 resultobj = SWIG_Py_Void();
22736 return resultobj;
22737fail:
22738 return NULL;
22739}
22740
22741
22742SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22743 PyObject *obj;
22744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22745 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22746 return SWIG_Py_Void();
22747}
22748
22749SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22750 return SWIG_Python_InitShadowInstance(args);
22751}
22752
22753SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj = 0;
22755 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22756 int arg2 = (int) 0 ;
22757 int arg3 = (int) wxNOT_FOUND ;
22758 int arg4 = (int) wxNOT_FOUND ;
22759 wxToolbookEvent *result = 0 ;
22760 int val1 ;
22761 int ecode1 = 0 ;
22762 int val2 ;
22763 int ecode2 = 0 ;
22764 int val3 ;
22765 int ecode3 = 0 ;
22766 int val4 ;
22767 int ecode4 = 0 ;
22768 PyObject * obj0 = 0 ;
22769 PyObject * obj1 = 0 ;
22770 PyObject * obj2 = 0 ;
22771 PyObject * obj3 = 0 ;
22772 char * kwnames[] = {
22773 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22774 };
22775
22776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22777 if (obj0) {
22778 ecode1 = SWIG_AsVal_int(obj0, &val1);
22779 if (!SWIG_IsOK(ecode1)) {
22780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22781 }
22782 arg1 = static_cast< wxEventType >(val1);
22783 }
22784 if (obj1) {
22785 ecode2 = SWIG_AsVal_int(obj1, &val2);
22786 if (!SWIG_IsOK(ecode2)) {
22787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22788 }
22789 arg2 = static_cast< int >(val2);
22790 }
22791 if (obj2) {
22792 ecode3 = SWIG_AsVal_int(obj2, &val3);
22793 if (!SWIG_IsOK(ecode3)) {
22794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22795 }
22796 arg3 = static_cast< int >(val3);
22797 }
22798 if (obj3) {
22799 ecode4 = SWIG_AsVal_int(obj3, &val4);
22800 if (!SWIG_IsOK(ecode4)) {
22801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22802 }
22803 arg4 = static_cast< int >(val4);
22804 }
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22812 return resultobj;
22813fail:
22814 return NULL;
d55e5bfc
RD
22815}
22816
22817
1bd55598
RD
22818SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22819 PyObject *obj;
22820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22821 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22822 return SWIG_Py_Void();
d55e5bfc
RD
22823}
22824
1bd55598
RD
22825SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 return SWIG_Python_InitShadowInstance(args);
22827}
d55e5bfc 22828
1bd55598
RD
22829SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22830 PyObject *resultobj = 0;
22831 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22832 int result;
22833 void *argp1 = 0 ;
22834 int res1 = 0 ;
22835 PyObject *swig_obj[1] ;
22836
22837 if (!args) SWIG_fail;
22838 swig_obj[0] = args;
22839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22840 if (!SWIG_IsOK(res1)) {
22841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22842 }
22843 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (int)(arg1)->GetId();
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 resultobj = SWIG_From_int(static_cast< int >(result));
22851 return resultobj;
22852fail:
22853 return NULL;
d55e5bfc 22854}
1bd55598
RD
22855
22856
22857SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22858 PyObject *resultobj = 0;
22859 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22860 wxControl *result = 0 ;
22861 void *argp1 = 0 ;
22862 int res1 = 0 ;
22863 PyObject *swig_obj[1] ;
22864
22865 if (!args) SWIG_fail;
22866 swig_obj[0] = args;
22867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22868 if (!SWIG_IsOK(res1)) {
22869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22870 }
22871 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22872 {
22873 PyThreadState* __tstate = wxPyBeginAllowThreads();
22874 result = (wxControl *)(arg1)->GetControl();
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 {
22879 resultobj = wxPyMake_wxObject(result, 0);
22880 }
22881 return resultobj;
22882fail:
22883 return NULL;
d55e5bfc
RD
22884}
22885
22886
1bd55598
RD
22887SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22888 PyObject *resultobj = 0;
22889 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22890 wxToolBarBase *result = 0 ;
22891 void *argp1 = 0 ;
22892 int res1 = 0 ;
22893 PyObject *swig_obj[1] ;
22894
22895 if (!args) SWIG_fail;
22896 swig_obj[0] = args;
22897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22898 if (!SWIG_IsOK(res1)) {
22899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22900 }
22901 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (wxToolBarBase *)(arg1)->GetToolBar();
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 {
22909 resultobj = wxPyMake_wxObject(result, (bool)0);
22910 }
22911 return resultobj;
22912fail:
22913 return NULL;
d55e5bfc
RD
22914}
22915
22916
1bd55598
RD
22917SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22918 PyObject *resultobj = 0;
22919 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22920 int result;
22921 void *argp1 = 0 ;
22922 int res1 = 0 ;
22923 PyObject *swig_obj[1] ;
22924
22925 if (!args) SWIG_fail;
22926 swig_obj[0] = args;
22927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22930 }
22931 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 result = (int)(arg1)->IsButton();
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 resultobj = SWIG_From_int(static_cast< int >(result));
22939 return resultobj;
22940fail:
22941 return NULL;
d55e5bfc
RD
22942}
22943
22944
1bd55598
RD
22945SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22946 PyObject *resultobj = 0;
22947 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22948 int result;
22949 void *argp1 = 0 ;
22950 int res1 = 0 ;
22951 PyObject *swig_obj[1] ;
22952
22953 if (!args) SWIG_fail;
22954 swig_obj[0] = args;
22955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22956 if (!SWIG_IsOK(res1)) {
22957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22958 }
22959 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 result = (int)(arg1)->IsControl();
22963 wxPyEndAllowThreads(__tstate);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 resultobj = SWIG_From_int(static_cast< int >(result));
22967 return resultobj;
22968fail:
22969 return NULL;
d55e5bfc
RD
22970}
22971
22972
1bd55598
RD
22973SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22976 int result;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 PyObject *swig_obj[1] ;
22980
22981 if (!args) SWIG_fail;
22982 swig_obj[0] = args;
22983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22986 }
22987 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (int)(arg1)->IsSeparator();
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_From_int(static_cast< int >(result));
22995 return resultobj;
22996fail:
22997 return NULL;
d55e5bfc
RD
22998}
22999
23000
1bd55598
RD
23001SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *resultobj = 0;
23003 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23004 int result;
23005 void *argp1 = 0 ;
23006 int res1 = 0 ;
23007 PyObject *swig_obj[1] ;
23008
23009 if (!args) SWIG_fail;
23010 swig_obj[0] = args;
23011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23014 }
23015 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (int)(arg1)->GetStyle();
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = SWIG_From_int(static_cast< int >(result));
23023 return resultobj;
23024fail:
23025 return NULL;
d55e5bfc
RD
23026}
23027
23028
1bd55598
RD
23029SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23030 PyObject *resultobj = 0;
23031 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23032 wxItemKind result;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 PyObject *swig_obj[1] ;
23036
23037 if (!args) SWIG_fail;
23038 swig_obj[0] = args;
23039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23042 }
23043 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 result = (wxItemKind)(arg1)->GetKind();
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_From_int(static_cast< int >(result));
23051 return resultobj;
23052fail:
23053 return NULL;
d55e5bfc
RD
23054}
23055
23056
1bd55598
RD
23057SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23060 bool result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23070 }
23071 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (bool)(arg1)->IsEnabled();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 {
23079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23080 }
23081 return resultobj;
23082fail:
23083 return NULL;
d55e5bfc
RD
23084}
23085
23086
1bd55598
RD
23087SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23090 bool result;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 PyObject *swig_obj[1] ;
23094
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23100 }
23101 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (bool)(arg1)->IsToggled();
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 {
23109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23110 }
23111 return resultobj;
23112fail:
23113 return NULL;
d55e5bfc
RD
23114}
23115
23116
1bd55598
RD
23117SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23118 PyObject *resultobj = 0;
23119 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23120 bool result;
23121 void *argp1 = 0 ;
23122 int res1 = 0 ;
23123 PyObject *swig_obj[1] ;
23124
23125 if (!args) SWIG_fail;
23126 swig_obj[0] = args;
23127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23128 if (!SWIG_IsOK(res1)) {
23129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23130 }
23131 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23132 {
23133 PyThreadState* __tstate = wxPyBeginAllowThreads();
23134 result = (bool)(arg1)->CanBeToggled();
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 {
23139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23140 }
23141 return resultobj;
23142fail:
23143 return NULL;
d55e5bfc
RD
23144}
23145
23146
1bd55598
RD
23147SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23148 PyObject *resultobj = 0;
23149 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23150 wxBitmap *result = 0 ;
23151 void *argp1 = 0 ;
23152 int res1 = 0 ;
23153 PyObject *swig_obj[1] ;
23154
23155 if (!args) SWIG_fail;
23156 swig_obj[0] = args;
23157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23158 if (!SWIG_IsOK(res1)) {
23159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23160 }
23161 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23162 {
23163 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 23164 {
1bd55598
RD
23165 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23166 result = (wxBitmap *) &_result_ref;
36ed4f51 23167 }
1bd55598
RD
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 {
23172 wxBitmap* resultptr = new wxBitmap(*result);
23173 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23174 }
23175 return resultobj;
23176fail:
23177 return NULL;
d55e5bfc
RD
23178}
23179
23180
1bd55598
RD
23181SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23182 PyObject *resultobj = 0;
23183 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23184 wxBitmap *result = 0 ;
23185 void *argp1 = 0 ;
23186 int res1 = 0 ;
23187 PyObject *swig_obj[1] ;
23188
23189 if (!args) SWIG_fail;
23190 swig_obj[0] = args;
23191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23192 if (!SWIG_IsOK(res1)) {
23193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23194 }
23195 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23196 {
23197 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23198 {
1bd55598
RD
23199 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23200 result = (wxBitmap *) &_result_ref;
d55e5bfc 23201 }
1bd55598
RD
23202 wxPyEndAllowThreads(__tstate);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 }
23205 {
23206 wxBitmap* resultptr = new wxBitmap(*result);
23207 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23208 }
23209 return resultobj;
23210fail:
23211 return NULL;
d55e5bfc
RD
23212}
23213
23214
1bd55598
RD
23215SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23216 PyObject *resultobj = 0;
23217 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23218 wxBitmap result;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 PyObject *swig_obj[1] ;
23222
23223 if (!args) SWIG_fail;
23224 swig_obj[0] = args;
23225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23228 }
23229 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23230 {
23231 PyThreadState* __tstate = wxPyBeginAllowThreads();
23232 result = (arg1)->GetBitmap();
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23237 return resultobj;
23238fail:
23239 return NULL;
d55e5bfc
RD
23240}
23241
23242
1bd55598
RD
23243SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23244 PyObject *resultobj = 0;
23245 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23246 wxString result;
23247 void *argp1 = 0 ;
23248 int res1 = 0 ;
23249 PyObject *swig_obj[1] ;
23250
23251 if (!args) SWIG_fail;
23252 swig_obj[0] = args;
23253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23254 if (!SWIG_IsOK(res1)) {
23255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23256 }
23257 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23258 {
23259 PyThreadState* __tstate = wxPyBeginAllowThreads();
23260 result = (arg1)->GetLabel();
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 {
23265#if wxUSE_UNICODE
23266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23267#else
23268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23269#endif
23270 }
23271 return resultobj;
23272fail:
23273 return NULL;
d55e5bfc
RD
23274}
23275
23276
1bd55598
RD
23277SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23278 PyObject *resultobj = 0;
23279 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23280 wxString result;
23281 void *argp1 = 0 ;
23282 int res1 = 0 ;
23283 PyObject *swig_obj[1] ;
23284
23285 if (!args) SWIG_fail;
23286 swig_obj[0] = args;
23287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23288 if (!SWIG_IsOK(res1)) {
23289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23290 }
23291 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23292 {
23293 PyThreadState* __tstate = wxPyBeginAllowThreads();
23294 result = (arg1)->GetShortHelp();
23295 wxPyEndAllowThreads(__tstate);
23296 if (PyErr_Occurred()) SWIG_fail;
23297 }
23298 {
23299#if wxUSE_UNICODE
23300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23301#else
23302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23303#endif
23304 }
23305 return resultobj;
23306fail:
23307 return NULL;
d55e5bfc
RD
23308}
23309
23310
1bd55598
RD
23311SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23312 PyObject *resultobj = 0;
23313 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23314 wxString result;
23315 void *argp1 = 0 ;
23316 int res1 = 0 ;
23317 PyObject *swig_obj[1] ;
23318
23319 if (!args) SWIG_fail;
23320 swig_obj[0] = args;
23321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23324 }
23325 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23326 {
23327 PyThreadState* __tstate = wxPyBeginAllowThreads();
23328 result = (arg1)->GetLongHelp();
23329 wxPyEndAllowThreads(__tstate);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 }
23332 {
23333#if wxUSE_UNICODE
23334 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23335#else
23336 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23337#endif
23338 }
23339 return resultobj;
23340fail:
23341 return NULL;
23342}
23343
23344
23345SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj = 0;
23347 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23348 bool arg2 ;
23349 bool result;
23350 void *argp1 = 0 ;
23351 int res1 = 0 ;
23352 bool val2 ;
23353 int ecode2 = 0 ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 char * kwnames[] = {
23357 (char *) "self",(char *) "enable", NULL
23358 };
23359
23360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23362 if (!SWIG_IsOK(res1)) {
23363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23364 }
23365 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23366 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23367 if (!SWIG_IsOK(ecode2)) {
23368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23369 }
23370 arg2 = static_cast< bool >(val2);
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 result = (bool)(arg1)->Enable(arg2);
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 {
23378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23379 }
23380 return resultobj;
23381fail:
23382 return NULL;
d55e5bfc
RD
23383}
23384
23385
1bd55598
RD
23386SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23387 PyObject *resultobj = 0;
23388 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23389 void *argp1 = 0 ;
23390 int res1 = 0 ;
23391 PyObject *swig_obj[1] ;
23392
23393 if (!args) SWIG_fail;
23394 swig_obj[0] = args;
23395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23398 }
23399 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 (arg1)->Toggle();
23403 wxPyEndAllowThreads(__tstate);
23404 if (PyErr_Occurred()) SWIG_fail;
23405 }
23406 resultobj = SWIG_Py_Void();
23407 return resultobj;
23408fail:
23409 return NULL;
23410}
23411
23412
23413SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23414 PyObject *resultobj = 0;
23415 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23416 bool arg2 ;
23417 bool result;
23418 void *argp1 = 0 ;
23419 int res1 = 0 ;
23420 bool val2 ;
23421 int ecode2 = 0 ;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 char * kwnames[] = {
23425 (char *) "self",(char *) "toggle", NULL
23426 };
23427
23428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23430 if (!SWIG_IsOK(res1)) {
23431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23432 }
23433 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23434 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23435 if (!SWIG_IsOK(ecode2)) {
23436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23437 }
23438 arg2 = static_cast< bool >(val2);
23439 {
23440 PyThreadState* __tstate = wxPyBeginAllowThreads();
23441 result = (bool)(arg1)->SetToggle(arg2);
23442 wxPyEndAllowThreads(__tstate);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 }
23445 {
23446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23447 }
23448 return resultobj;
23449fail:
23450 return NULL;
23451}
23452
23453
23454SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23455 PyObject *resultobj = 0;
23456 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23457 wxString *arg2 = 0 ;
23458 bool result;
23459 void *argp1 = 0 ;
23460 int res1 = 0 ;
23461 bool temp2 = false ;
23462 PyObject * obj0 = 0 ;
23463 PyObject * obj1 = 0 ;
23464 char * kwnames[] = {
23465 (char *) "self",(char *) "help", NULL
23466 };
23467
23468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23470 if (!SWIG_IsOK(res1)) {
23471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23472 }
23473 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23474 {
23475 arg2 = wxString_in_helper(obj1);
23476 if (arg2 == NULL) SWIG_fail;
23477 temp2 = true;
23478 }
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23482 wxPyEndAllowThreads(__tstate);
23483 if (PyErr_Occurred()) SWIG_fail;
23484 }
23485 {
23486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23487 }
23488 {
23489 if (temp2)
23490 delete arg2;
23491 }
23492 return resultobj;
23493fail:
23494 {
23495 if (temp2)
23496 delete arg2;
23497 }
23498 return NULL;
23499}
23500
23501
23502SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23503 PyObject *resultobj = 0;
23504 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23505 wxString *arg2 = 0 ;
23506 bool result;
23507 void *argp1 = 0 ;
23508 int res1 = 0 ;
23509 bool temp2 = false ;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 char * kwnames[] = {
23513 (char *) "self",(char *) "help", NULL
23514 };
23515
23516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23520 }
23521 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23522 {
23523 arg2 = wxString_in_helper(obj1);
23524 if (arg2 == NULL) SWIG_fail;
23525 temp2 = true;
23526 }
23527 {
23528 PyThreadState* __tstate = wxPyBeginAllowThreads();
23529 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23530 wxPyEndAllowThreads(__tstate);
23531 if (PyErr_Occurred()) SWIG_fail;
23532 }
23533 {
23534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23535 }
23536 {
23537 if (temp2)
23538 delete arg2;
23539 }
23540 return resultobj;
23541fail:
23542 {
23543 if (temp2)
23544 delete arg2;
23545 }
23546 return NULL;
23547}
23548
23549
23550SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23551 PyObject *resultobj = 0;
23552 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23553 wxBitmap *arg2 = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 void *argp2 = 0 ;
23557 int res2 = 0 ;
23558 PyObject * obj0 = 0 ;
23559 PyObject * obj1 = 0 ;
23560 char * kwnames[] = {
23561 (char *) "self",(char *) "bmp", NULL
23562 };
23563
23564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23566 if (!SWIG_IsOK(res1)) {
23567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23568 }
23569 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23571 if (!SWIG_IsOK(res2)) {
23572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23573 }
23574 if (!argp2) {
23575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23576 }
23577 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 resultobj = SWIG_Py_Void();
23585 return resultobj;
23586fail:
23587 return NULL;
23588}
23589
23590
23591SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23592 PyObject *resultobj = 0;
23593 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23594 wxBitmap *arg2 = 0 ;
23595 void *argp1 = 0 ;
23596 int res1 = 0 ;
23597 void *argp2 = 0 ;
23598 int res2 = 0 ;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 char * kwnames[] = {
23602 (char *) "self",(char *) "bmp", NULL
23603 };
23604
23605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23607 if (!SWIG_IsOK(res1)) {
23608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23609 }
23610 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23612 if (!SWIG_IsOK(res2)) {
23613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23614 }
23615 if (!argp2) {
23616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23617 }
23618 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23622 wxPyEndAllowThreads(__tstate);
23623 if (PyErr_Occurred()) SWIG_fail;
23624 }
23625 resultobj = SWIG_Py_Void();
23626 return resultobj;
23627fail:
23628 return NULL;
23629}
23630
23631
23632SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23633 PyObject *resultobj = 0;
23634 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23635 wxString *arg2 = 0 ;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 bool temp2 = false ;
23639 PyObject * obj0 = 0 ;
23640 PyObject * obj1 = 0 ;
23641 char * kwnames[] = {
23642 (char *) "self",(char *) "label", NULL
23643 };
23644
23645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23649 }
23650 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23651 {
23652 arg2 = wxString_in_helper(obj1);
23653 if (arg2 == NULL) SWIG_fail;
23654 temp2 = true;
23655 }
23656 {
23657 PyThreadState* __tstate = wxPyBeginAllowThreads();
23658 (arg1)->SetLabel((wxString const &)*arg2);
23659 wxPyEndAllowThreads(__tstate);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 }
23662 resultobj = SWIG_Py_Void();
23663 {
23664 if (temp2)
23665 delete arg2;
23666 }
23667 return resultobj;
23668fail:
23669 {
23670 if (temp2)
23671 delete arg2;
23672 }
23673 return NULL;
d55e5bfc
RD
23674}
23675
23676
1bd55598
RD
23677SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23678 PyObject *resultobj = 0;
23679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23680 void *argp1 = 0 ;
23681 int res1 = 0 ;
23682 PyObject *swig_obj[1] ;
23683
23684 if (!args) SWIG_fail;
23685 swig_obj[0] = args;
23686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23689 }
23690 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 (arg1)->Detach();
23694 wxPyEndAllowThreads(__tstate);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 }
23697 resultobj = SWIG_Py_Void();
23698 return resultobj;
23699fail:
23700 return NULL;
23701}
23702
23703
23704SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23705 PyObject *resultobj = 0;
23706 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23707 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23708 void *argp1 = 0 ;
23709 int res1 = 0 ;
23710 void *argp2 = 0 ;
23711 int res2 = 0 ;
23712 PyObject * obj0 = 0 ;
23713 PyObject * obj1 = 0 ;
23714 char * kwnames[] = {
23715 (char *) "self",(char *) "tbar", NULL
23716 };
23717
23718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23722 }
23723 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23725 if (!SWIG_IsOK(res2)) {
23726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23727 }
23728 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 (arg1)->Attach(arg2);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_Py_Void();
23736 return resultobj;
23737fail:
23738 return NULL;
d55e5bfc
RD
23739}
23740
23741
1bd55598
RD
23742SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23743 PyObject *resultobj = 0;
23744 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23745 PyObject *result = 0 ;
23746 void *argp1 = 0 ;
23747 int res1 = 0 ;
23748 PyObject *swig_obj[1] ;
23749
23750 if (!args) SWIG_fail;
23751 swig_obj[0] = args;
23752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23753 if (!SWIG_IsOK(res1)) {
23754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23755 }
23756 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23757 {
23758 PyThreadState* __tstate = wxPyBeginAllowThreads();
23759 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23760 wxPyEndAllowThreads(__tstate);
23761 if (PyErr_Occurred()) SWIG_fail;
23762 }
23763 resultobj = result;
23764 return resultobj;
23765fail:
23766 return NULL;
23767}
23768
23769
23770SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23771 PyObject *resultobj = 0;
23772 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23773 PyObject *arg2 = (PyObject *) 0 ;
23774 void *argp1 = 0 ;
23775 int res1 = 0 ;
23776 PyObject * obj0 = 0 ;
23777 PyObject * obj1 = 0 ;
23778 char * kwnames[] = {
23779 (char *) "self",(char *) "clientData", NULL
23780 };
23781
23782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23786 }
23787 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23788 arg2 = obj1;
23789 {
23790 PyThreadState* __tstate = wxPyBeginAllowThreads();
23791 wxToolBarToolBase_SetClientData(arg1,arg2);
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797fail:
23798 return NULL;
23799}
23800
23801
23802SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23803 PyObject *obj;
23804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23805 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23806 return SWIG_Py_Void();
23807}
23808
23809SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj = 0;
23811 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23812 int arg2 ;
23813 wxString *arg3 = 0 ;
23814 wxBitmap *arg4 = 0 ;
23815 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23816 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23817 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23818 wxString const &arg7_defvalue = wxPyEmptyString ;
23819 wxString *arg7 = (wxString *) &arg7_defvalue ;
23820 wxString const &arg8_defvalue = wxPyEmptyString ;
23821 wxString *arg8 = (wxString *) &arg8_defvalue ;
23822 PyObject *arg9 = (PyObject *) NULL ;
23823 wxToolBarToolBase *result = 0 ;
23824 void *argp1 = 0 ;
23825 int res1 = 0 ;
23826 int val2 ;
23827 int ecode2 = 0 ;
23828 bool temp3 = false ;
23829 void *argp4 = 0 ;
23830 int res4 = 0 ;
23831 void *argp5 = 0 ;
23832 int res5 = 0 ;
23833 int val6 ;
23834 int ecode6 = 0 ;
23835 bool temp7 = false ;
23836 bool temp8 = false ;
23837 PyObject * obj0 = 0 ;
23838 PyObject * obj1 = 0 ;
23839 PyObject * obj2 = 0 ;
23840 PyObject * obj3 = 0 ;
23841 PyObject * obj4 = 0 ;
23842 PyObject * obj5 = 0 ;
23843 PyObject * obj6 = 0 ;
23844 PyObject * obj7 = 0 ;
23845 PyObject * obj8 = 0 ;
23846 char * kwnames[] = {
23847 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23848 };
23849
23850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23852 if (!SWIG_IsOK(res1)) {
23853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23854 }
23855 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23856 ecode2 = SWIG_AsVal_int(obj1, &val2);
23857 if (!SWIG_IsOK(ecode2)) {
23858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23859 }
23860 arg2 = static_cast< int >(val2);
23861 {
23862 arg3 = wxString_in_helper(obj2);
23863 if (arg3 == NULL) SWIG_fail;
23864 temp3 = true;
23865 }
23866 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23867 if (!SWIG_IsOK(res4)) {
23868 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23869 }
23870 if (!argp4) {
23871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23872 }
23873 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23874 if (obj4) {
23875 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23876 if (!SWIG_IsOK(res5)) {
23877 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23878 }
1bd55598
RD
23879 if (!argp5) {
23880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23881 }
1bd55598
RD
23882 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23883 }
23884 if (obj5) {
23885 ecode6 = SWIG_AsVal_int(obj5, &val6);
23886 if (!SWIG_IsOK(ecode6)) {
23887 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23888 }
23889 arg6 = static_cast< wxItemKind >(val6);
23890 }
23891 if (obj6) {
f20a2e1f 23892 {
1bd55598
RD
23893 arg7 = wxString_in_helper(obj6);
23894 if (arg7 == NULL) SWIG_fail;
23895 temp7 = true;
f20a2e1f 23896 }
1bd55598
RD
23897 }
23898 if (obj7) {
f20a2e1f 23899 {
1bd55598
RD
23900 arg8 = wxString_in_helper(obj7);
23901 if (arg8 == NULL) SWIG_fail;
23902 temp8 = true;
d55e5bfc 23903 }
1bd55598
RD
23904 }
23905 if (obj8) {
23906 arg9 = obj8;
23907 }
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 {
23915 resultobj = wxPyMake_wxObject(result, (bool)0);
23916 }
23917 {
23918 if (temp3)
23919 delete arg3;
23920 }
23921 {
23922 if (temp7)
23923 delete arg7;
23924 }
23925 {
23926 if (temp8)
23927 delete arg8;
23928 }
23929 return resultobj;
23930fail:
23931 {
23932 if (temp3)
23933 delete arg3;
23934 }
23935 {
23936 if (temp7)
23937 delete arg7;
23938 }
23939 {
23940 if (temp8)
23941 delete arg8;
23942 }
23943 return NULL;
23944}
23945
23946
23947SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23948 PyObject *resultobj = 0;
23949 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23950 size_t arg2 ;
23951 int arg3 ;
23952 wxString *arg4 = 0 ;
23953 wxBitmap *arg5 = 0 ;
23954 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23955 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23956 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23957 wxString const &arg8_defvalue = wxPyEmptyString ;
23958 wxString *arg8 = (wxString *) &arg8_defvalue ;
23959 wxString const &arg9_defvalue = wxPyEmptyString ;
23960 wxString *arg9 = (wxString *) &arg9_defvalue ;
23961 PyObject *arg10 = (PyObject *) NULL ;
23962 wxToolBarToolBase *result = 0 ;
23963 void *argp1 = 0 ;
23964 int res1 = 0 ;
23965 size_t val2 ;
23966 int ecode2 = 0 ;
23967 int val3 ;
23968 int ecode3 = 0 ;
23969 bool temp4 = false ;
23970 void *argp5 = 0 ;
23971 int res5 = 0 ;
23972 void *argp6 = 0 ;
23973 int res6 = 0 ;
23974 int val7 ;
23975 int ecode7 = 0 ;
23976 bool temp8 = false ;
23977 bool temp9 = false ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 PyObject * obj2 = 0 ;
23981 PyObject * obj3 = 0 ;
23982 PyObject * obj4 = 0 ;
23983 PyObject * obj5 = 0 ;
23984 PyObject * obj6 = 0 ;
23985 PyObject * obj7 = 0 ;
23986 PyObject * obj8 = 0 ;
23987 PyObject * obj9 = 0 ;
23988 char * kwnames[] = {
23989 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23990 };
23991
23992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23994 if (!SWIG_IsOK(res1)) {
23995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23996 }
23997 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23998 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23999 if (!SWIG_IsOK(ecode2)) {
24000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24001 }
24002 arg2 = static_cast< size_t >(val2);
24003 ecode3 = SWIG_AsVal_int(obj2, &val3);
24004 if (!SWIG_IsOK(ecode3)) {
24005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24006 }
24007 arg3 = static_cast< int >(val3);
24008 {
24009 arg4 = wxString_in_helper(obj3);
24010 if (arg4 == NULL) SWIG_fail;
24011 temp4 = true;
24012 }
24013 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24014 if (!SWIG_IsOK(res5)) {
24015 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24016 }
24017 if (!argp5) {
24018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24019 }
24020 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24021 if (obj5) {
24022 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24023 if (!SWIG_IsOK(res6)) {
24024 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24025 }
1bd55598
RD
24026 if (!argp6) {
24027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24028 }
1bd55598
RD
24029 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24030 }
24031 if (obj6) {
24032 ecode7 = SWIG_AsVal_int(obj6, &val7);
24033 if (!SWIG_IsOK(ecode7)) {
24034 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24035 }
24036 arg7 = static_cast< wxItemKind >(val7);
24037 }
24038 if (obj7) {
d55e5bfc 24039 {
1bd55598
RD
24040 arg8 = wxString_in_helper(obj7);
24041 if (arg8 == NULL) SWIG_fail;
24042 temp8 = true;
d55e5bfc 24043 }
1bd55598
RD
24044 }
24045 if (obj8) {
d55e5bfc 24046 {
1bd55598
RD
24047 arg9 = wxString_in_helper(obj8);
24048 if (arg9 == NULL) SWIG_fail;
24049 temp9 = true;
d55e5bfc 24050 }
1bd55598
RD
24051 }
24052 if (obj9) {
24053 arg10 = obj9;
24054 }
24055 {
24056 PyThreadState* __tstate = wxPyBeginAllowThreads();
24057 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 {
24062 resultobj = wxPyMake_wxObject(result, (bool)0);
24063 }
24064 {
24065 if (temp4)
24066 delete arg4;
24067 }
24068 {
24069 if (temp8)
24070 delete arg8;
24071 }
24072 {
24073 if (temp9)
24074 delete arg9;
24075 }
24076 return resultobj;
24077fail:
24078 {
24079 if (temp4)
24080 delete arg4;
24081 }
24082 {
24083 if (temp8)
24084 delete arg8;
24085 }
24086 {
24087 if (temp9)
24088 delete arg9;
24089 }
24090 return NULL;
24091}
24092
24093
24094SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj = 0;
24096 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24097 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24098 wxToolBarToolBase *result = 0 ;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 void *argp2 = 0 ;
24102 int res2 = 0 ;
24103 PyObject * obj0 = 0 ;
24104 PyObject * obj1 = 0 ;
24105 char * kwnames[] = {
24106 (char *) "self",(char *) "tool", NULL
24107 };
24108
24109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24111 if (!SWIG_IsOK(res1)) {
24112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24113 }
24114 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24115 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24116 if (!SWIG_IsOK(res2)) {
24117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24118 }
24119 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 {
24127 resultobj = wxPyMake_wxObject(result, (bool)0);
24128 }
24129 return resultobj;
24130fail:
24131 return NULL;
24132}
24133
24134
24135SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24136 PyObject *resultobj = 0;
24137 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24138 size_t arg2 ;
24139 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24140 wxToolBarToolBase *result = 0 ;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 size_t val2 ;
24144 int ecode2 = 0 ;
24145 void *argp3 = 0 ;
24146 int res3 = 0 ;
24147 PyObject * obj0 = 0 ;
24148 PyObject * obj1 = 0 ;
24149 PyObject * obj2 = 0 ;
24150 char * kwnames[] = {
24151 (char *) "self",(char *) "pos",(char *) "tool", NULL
24152 };
24153
24154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24156 if (!SWIG_IsOK(res1)) {
24157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24158 }
24159 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24160 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24161 if (!SWIG_IsOK(ecode2)) {
24162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24163 }
24164 arg2 = static_cast< size_t >(val2);
24165 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24166 if (!SWIG_IsOK(res3)) {
24167 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24168 }
24169 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24170 {
24171 PyThreadState* __tstate = wxPyBeginAllowThreads();
24172 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24173 wxPyEndAllowThreads(__tstate);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 {
24177 resultobj = wxPyMake_wxObject(result, (bool)0);
24178 }
24179 return resultobj;
24180fail:
24181 return NULL;
24182}
24183
24184
24185SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24186 PyObject *resultobj = 0;
24187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24188 wxControl *arg2 = (wxControl *) 0 ;
24189 wxToolBarToolBase *result = 0 ;
24190 void *argp1 = 0 ;
24191 int res1 = 0 ;
24192 void *argp2 = 0 ;
24193 int res2 = 0 ;
24194 PyObject * obj0 = 0 ;
24195 PyObject * obj1 = 0 ;
24196 char * kwnames[] = {
24197 (char *) "self",(char *) "control", NULL
24198 };
24199
24200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24202 if (!SWIG_IsOK(res1)) {
24203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24204 }
24205 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24207 if (!SWIG_IsOK(res2)) {
24208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24209 }
24210 arg2 = reinterpret_cast< wxControl * >(argp2);
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24214 wxPyEndAllowThreads(__tstate);
24215 if (PyErr_Occurred()) SWIG_fail;
24216 }
24217 {
24218 resultobj = wxPyMake_wxObject(result, (bool)0);
24219 }
24220 return resultobj;
24221fail:
24222 return NULL;
24223}
24224
24225
24226SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24227 PyObject *resultobj = 0;
24228 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24229 size_t arg2 ;
24230 wxControl *arg3 = (wxControl *) 0 ;
24231 wxToolBarToolBase *result = 0 ;
24232 void *argp1 = 0 ;
24233 int res1 = 0 ;
24234 size_t val2 ;
24235 int ecode2 = 0 ;
24236 void *argp3 = 0 ;
24237 int res3 = 0 ;
24238 PyObject * obj0 = 0 ;
24239 PyObject * obj1 = 0 ;
24240 PyObject * obj2 = 0 ;
24241 char * kwnames[] = {
24242 (char *) "self",(char *) "pos",(char *) "control", NULL
24243 };
24244
24245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24247 if (!SWIG_IsOK(res1)) {
24248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24249 }
24250 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24251 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24252 if (!SWIG_IsOK(ecode2)) {
24253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24254 }
24255 arg2 = static_cast< size_t >(val2);
24256 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24257 if (!SWIG_IsOK(res3)) {
24258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24259 }
24260 arg3 = reinterpret_cast< wxControl * >(argp3);
24261 {
24262 PyThreadState* __tstate = wxPyBeginAllowThreads();
24263 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24264 wxPyEndAllowThreads(__tstate);
24265 if (PyErr_Occurred()) SWIG_fail;
24266 }
24267 {
24268 resultobj = wxPyMake_wxObject(result, (bool)0);
24269 }
24270 return resultobj;
24271fail:
24272 return NULL;
24273}
24274
24275
24276SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24277 PyObject *resultobj = 0;
24278 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24279 int arg2 ;
24280 wxControl *result = 0 ;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 int val2 ;
24284 int ecode2 = 0 ;
24285 PyObject * obj0 = 0 ;
24286 PyObject * obj1 = 0 ;
24287 char * kwnames[] = {
24288 (char *) "self",(char *) "id", NULL
24289 };
24290
24291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24293 if (!SWIG_IsOK(res1)) {
24294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24295 }
24296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24297 ecode2 = SWIG_AsVal_int(obj1, &val2);
24298 if (!SWIG_IsOK(ecode2)) {
24299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24300 }
24301 arg2 = static_cast< int >(val2);
24302 {
24303 PyThreadState* __tstate = wxPyBeginAllowThreads();
24304 result = (wxControl *)(arg1)->FindControl(arg2);
24305 wxPyEndAllowThreads(__tstate);
24306 if (PyErr_Occurred()) SWIG_fail;
24307 }
24308 {
24309 resultobj = wxPyMake_wxObject(result, 0);
24310 }
24311 return resultobj;
24312fail:
24313 return NULL;
d55e5bfc
RD
24314}
24315
24316
1bd55598
RD
24317SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24318 PyObject *resultobj = 0;
24319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24320 wxToolBarToolBase *result = 0 ;
24321 void *argp1 = 0 ;
24322 int res1 = 0 ;
24323 PyObject *swig_obj[1] ;
24324
24325 if (!args) SWIG_fail;
24326 swig_obj[0] = args;
24327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24330 }
24331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24335 wxPyEndAllowThreads(__tstate);
24336 if (PyErr_Occurred()) SWIG_fail;
24337 }
24338 {
24339 resultobj = wxPyMake_wxObject(result, (bool)0);
24340 }
24341 return resultobj;
24342fail:
24343 return NULL;
24344}
24345
24346
24347SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24348 PyObject *resultobj = 0;
24349 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24350 size_t arg2 ;
24351 wxToolBarToolBase *result = 0 ;
24352 void *argp1 = 0 ;
24353 int res1 = 0 ;
24354 size_t val2 ;
24355 int ecode2 = 0 ;
24356 PyObject * obj0 = 0 ;
24357 PyObject * obj1 = 0 ;
24358 char * kwnames[] = {
24359 (char *) "self",(char *) "pos", NULL
24360 };
24361
24362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24364 if (!SWIG_IsOK(res1)) {
24365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24366 }
24367 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24368 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24369 if (!SWIG_IsOK(ecode2)) {
24370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24371 }
24372 arg2 = static_cast< size_t >(val2);
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24376 wxPyEndAllowThreads(__tstate);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 {
24380 resultobj = wxPyMake_wxObject(result, (bool)0);
24381 }
24382 return resultobj;
24383fail:
24384 return NULL;
24385}
24386
24387
24388SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24389 PyObject *resultobj = 0;
24390 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24391 int arg2 ;
24392 wxToolBarToolBase *result = 0 ;
24393 void *argp1 = 0 ;
24394 int res1 = 0 ;
24395 int val2 ;
24396 int ecode2 = 0 ;
24397 PyObject * obj0 = 0 ;
24398 PyObject * obj1 = 0 ;
24399 char * kwnames[] = {
24400 (char *) "self",(char *) "id", NULL
24401 };
24402
24403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24405 if (!SWIG_IsOK(res1)) {
24406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24407 }
24408 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24409 ecode2 = SWIG_AsVal_int(obj1, &val2);
24410 if (!SWIG_IsOK(ecode2)) {
24411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24412 }
24413 arg2 = static_cast< int >(val2);
24414 {
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 {
24421 resultobj = wxPyMake_wxObject(result, (bool)0);
24422 }
24423 return resultobj;
24424fail:
24425 return NULL;
24426}
24427
24428
24429SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24430 PyObject *resultobj = 0;
24431 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24432 size_t arg2 ;
24433 bool result;
24434 void *argp1 = 0 ;
24435 int res1 = 0 ;
24436 size_t val2 ;
24437 int ecode2 = 0 ;
24438 PyObject * obj0 = 0 ;
24439 PyObject * obj1 = 0 ;
24440 char * kwnames[] = {
24441 (char *) "self",(char *) "pos", NULL
24442 };
24443
24444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24446 if (!SWIG_IsOK(res1)) {
24447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24448 }
24449 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24450 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24451 if (!SWIG_IsOK(ecode2)) {
24452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24453 }
24454 arg2 = static_cast< size_t >(val2);
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = (bool)(arg1)->DeleteToolByPos(arg2);
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 {
24462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24463 }
24464 return resultobj;
24465fail:
24466 return NULL;
24467}
24468
24469
24470SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24473 int arg2 ;
24474 bool result;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 int val2 ;
24478 int ecode2 = 0 ;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 char * kwnames[] = {
24482 (char *) "self",(char *) "id", NULL
24483 };
24484
24485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24487 if (!SWIG_IsOK(res1)) {
24488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24489 }
24490 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24491 ecode2 = SWIG_AsVal_int(obj1, &val2);
24492 if (!SWIG_IsOK(ecode2)) {
24493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24494 }
24495 arg2 = static_cast< int >(val2);
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
24498 result = (bool)(arg1)->DeleteTool(arg2);
24499 wxPyEndAllowThreads(__tstate);
24500 if (PyErr_Occurred()) SWIG_fail;
24501 }
24502 {
24503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24504 }
24505 return resultobj;
24506fail:
24507 return NULL;
d55e5bfc
RD
24508}
24509
24510
1bd55598
RD
24511SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24512 PyObject *resultobj = 0;
24513 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24514 void *argp1 = 0 ;
24515 int res1 = 0 ;
24516 PyObject *swig_obj[1] ;
24517
24518 if (!args) SWIG_fail;
24519 swig_obj[0] = args;
24520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24521 if (!SWIG_IsOK(res1)) {
24522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24523 }
24524 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 (arg1)->ClearTools();
24528 wxPyEndAllowThreads(__tstate);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 resultobj = SWIG_Py_Void();
24532 return resultobj;
24533fail:
24534 return NULL;
d55e5bfc
RD
24535}
24536
24537
1bd55598
RD
24538SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24539 PyObject *resultobj = 0;
24540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24541 bool result;
24542 void *argp1 = 0 ;
24543 int res1 = 0 ;
24544 PyObject *swig_obj[1] ;
24545
24546 if (!args) SWIG_fail;
24547 swig_obj[0] = args;
24548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24549 if (!SWIG_IsOK(res1)) {
24550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24551 }
24552 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 result = (bool)(arg1)->Realize();
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 {
24560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24561 }
24562 return resultobj;
24563fail:
24564 return NULL;
24565}
24566
24567
24568SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24569 PyObject *resultobj = 0;
24570 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24571 int arg2 ;
24572 bool arg3 ;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 int val2 ;
24576 int ecode2 = 0 ;
24577 bool val3 ;
24578 int ecode3 = 0 ;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 PyObject * obj2 = 0 ;
24582 char * kwnames[] = {
24583 (char *) "self",(char *) "id",(char *) "enable", NULL
24584 };
24585
24586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24588 if (!SWIG_IsOK(res1)) {
24589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24590 }
24591 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24592 ecode2 = SWIG_AsVal_int(obj1, &val2);
24593 if (!SWIG_IsOK(ecode2)) {
24594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24595 }
24596 arg2 = static_cast< int >(val2);
24597 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24598 if (!SWIG_IsOK(ecode3)) {
24599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24600 }
24601 arg3 = static_cast< bool >(val3);
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 (arg1)->EnableTool(arg2,arg3);
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 resultobj = SWIG_Py_Void();
24609 return resultobj;
24610fail:
24611 return NULL;
24612}
24613
24614
24615SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj = 0;
24617 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24618 int arg2 ;
24619 bool arg3 ;
24620 void *argp1 = 0 ;
24621 int res1 = 0 ;
24622 int val2 ;
24623 int ecode2 = 0 ;
24624 bool val3 ;
24625 int ecode3 = 0 ;
24626 PyObject * obj0 = 0 ;
24627 PyObject * obj1 = 0 ;
24628 PyObject * obj2 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "self",(char *) "id",(char *) "toggle", NULL
24631 };
24632
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) 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_ToggleTool" "', 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_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24642 }
24643 arg2 = static_cast< int >(val2);
24644 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24645 if (!SWIG_IsOK(ecode3)) {
24646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24647 }
24648 arg3 = static_cast< bool >(val3);
24649 {
24650 PyThreadState* __tstate = wxPyBeginAllowThreads();
24651 (arg1)->ToggleTool(arg2,arg3);
24652 wxPyEndAllowThreads(__tstate);
24653 if (PyErr_Occurred()) SWIG_fail;
24654 }
24655 resultobj = SWIG_Py_Void();
24656 return resultobj;
24657fail:
24658 return NULL;
24659}
24660
24661
24662SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24663 PyObject *resultobj = 0;
24664 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24665 int arg2 ;
24666 bool arg3 ;
24667 void *argp1 = 0 ;
24668 int res1 = 0 ;
24669 int val2 ;
24670 int ecode2 = 0 ;
24671 bool val3 ;
24672 int ecode3 = 0 ;
24673 PyObject * obj0 = 0 ;
24674 PyObject * obj1 = 0 ;
24675 PyObject * obj2 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "self",(char *) "id",(char *) "toggle", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24682 if (!SWIG_IsOK(res1)) {
24683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24684 }
24685 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24686 ecode2 = SWIG_AsVal_int(obj1, &val2);
24687 if (!SWIG_IsOK(ecode2)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24689 }
24690 arg2 = static_cast< int >(val2);
24691 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24692 if (!SWIG_IsOK(ecode3)) {
24693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24694 }
24695 arg3 = static_cast< bool >(val3);
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 (arg1)->SetToggle(arg2,arg3);
24699 wxPyEndAllowThreads(__tstate);
24700 if (PyErr_Occurred()) SWIG_fail;
24701 }
24702 resultobj = SWIG_Py_Void();
24703 return resultobj;
24704fail:
24705 return NULL;
24706}
24707
24708
24709SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24710 PyObject *resultobj = 0;
24711 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24712 int arg2 ;
24713 PyObject *result = 0 ;
24714 void *argp1 = 0 ;
24715 int res1 = 0 ;
24716 int val2 ;
24717 int ecode2 = 0 ;
24718 PyObject * obj0 = 0 ;
24719 PyObject * obj1 = 0 ;
24720 char * kwnames[] = {
24721 (char *) "self",(char *) "id", NULL
24722 };
24723
24724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24726 if (!SWIG_IsOK(res1)) {
24727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24728 }
24729 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24730 ecode2 = SWIG_AsVal_int(obj1, &val2);
24731 if (!SWIG_IsOK(ecode2)) {
24732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24733 }
24734 arg2 = static_cast< int >(val2);
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 resultobj = result;
24742 return resultobj;
24743fail:
24744 return NULL;
24745}
24746
24747
24748SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj = 0;
24750 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24751 int arg2 ;
24752 PyObject *arg3 = (PyObject *) 0 ;
24753 void *argp1 = 0 ;
24754 int res1 = 0 ;
24755 int val2 ;
24756 int ecode2 = 0 ;
24757 PyObject * obj0 = 0 ;
24758 PyObject * obj1 = 0 ;
24759 PyObject * obj2 = 0 ;
24760 char * kwnames[] = {
24761 (char *) "self",(char *) "id",(char *) "clientData", NULL
24762 };
24763
24764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24766 if (!SWIG_IsOK(res1)) {
24767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24768 }
24769 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24770 ecode2 = SWIG_AsVal_int(obj1, &val2);
24771 if (!SWIG_IsOK(ecode2)) {
24772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24773 }
24774 arg2 = static_cast< int >(val2);
24775 arg3 = obj2;
24776 {
24777 PyThreadState* __tstate = wxPyBeginAllowThreads();
24778 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24779 wxPyEndAllowThreads(__tstate);
24780 if (PyErr_Occurred()) SWIG_fail;
24781 }
24782 resultobj = SWIG_Py_Void();
24783 return resultobj;
24784fail:
24785 return NULL;
24786}
24787
24788
24789SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24790 PyObject *resultobj = 0;
24791 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24792 int arg2 ;
24793 int result;
24794 void *argp1 = 0 ;
24795 int res1 = 0 ;
24796 int val2 ;
24797 int ecode2 = 0 ;
24798 PyObject * obj0 = 0 ;
24799 PyObject * obj1 = 0 ;
24800 char * kwnames[] = {
24801 (char *) "self",(char *) "id", NULL
24802 };
24803
24804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24806 if (!SWIG_IsOK(res1)) {
24807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24808 }
24809 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24810 ecode2 = SWIG_AsVal_int(obj1, &val2);
24811 if (!SWIG_IsOK(ecode2)) {
24812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24813 }
24814 arg2 = static_cast< int >(val2);
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24818 wxPyEndAllowThreads(__tstate);
24819 if (PyErr_Occurred()) SWIG_fail;
24820 }
24821 resultobj = SWIG_From_int(static_cast< int >(result));
24822 return resultobj;
24823fail:
24824 return NULL;
24825}
24826
24827
24828SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24829 PyObject *resultobj = 0;
24830 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24831 int arg2 ;
24832 bool result;
24833 void *argp1 = 0 ;
24834 int res1 = 0 ;
24835 int val2 ;
24836 int ecode2 = 0 ;
24837 PyObject * obj0 = 0 ;
24838 PyObject * obj1 = 0 ;
24839 char * kwnames[] = {
24840 (char *) "self",(char *) "id", NULL
24841 };
24842
24843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24847 }
24848 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24849 ecode2 = SWIG_AsVal_int(obj1, &val2);
24850 if (!SWIG_IsOK(ecode2)) {
24851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24852 }
24853 arg2 = static_cast< int >(val2);
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 result = (bool)(arg1)->GetToolState(arg2);
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 {
24861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24862 }
24863 return resultobj;
24864fail:
24865 return NULL;
24866}
24867
24868
24869SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24870 PyObject *resultobj = 0;
24871 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24872 int arg2 ;
24873 bool result;
24874 void *argp1 = 0 ;
24875 int res1 = 0 ;
24876 int val2 ;
24877 int ecode2 = 0 ;
24878 PyObject * obj0 = 0 ;
24879 PyObject * obj1 = 0 ;
24880 char * kwnames[] = {
24881 (char *) "self",(char *) "id", NULL
24882 };
24883
24884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24886 if (!SWIG_IsOK(res1)) {
24887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24888 }
24889 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24890 ecode2 = SWIG_AsVal_int(obj1, &val2);
24891 if (!SWIG_IsOK(ecode2)) {
24892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24893 }
24894 arg2 = static_cast< int >(val2);
24895 {
24896 PyThreadState* __tstate = wxPyBeginAllowThreads();
24897 result = (bool)(arg1)->GetToolEnabled(arg2);
24898 wxPyEndAllowThreads(__tstate);
24899 if (PyErr_Occurred()) SWIG_fail;
24900 }
24901 {
24902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24903 }
24904 return resultobj;
24905fail:
24906 return NULL;
24907}
24908
24909
24910SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24911 PyObject *resultobj = 0;
24912 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24913 int arg2 ;
24914 wxString *arg3 = 0 ;
24915 void *argp1 = 0 ;
24916 int res1 = 0 ;
24917 int val2 ;
24918 int ecode2 = 0 ;
24919 bool temp3 = false ;
24920 PyObject * obj0 = 0 ;
24921 PyObject * obj1 = 0 ;
24922 PyObject * obj2 = 0 ;
24923 char * kwnames[] = {
24924 (char *) "self",(char *) "id",(char *) "helpString", NULL
24925 };
24926
24927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24929 if (!SWIG_IsOK(res1)) {
24930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24931 }
24932 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24933 ecode2 = SWIG_AsVal_int(obj1, &val2);
24934 if (!SWIG_IsOK(ecode2)) {
24935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24936 }
24937 arg2 = static_cast< int >(val2);
24938 {
24939 arg3 = wxString_in_helper(obj2);
24940 if (arg3 == NULL) SWIG_fail;
24941 temp3 = true;
24942 }
24943 {
24944 PyThreadState* __tstate = wxPyBeginAllowThreads();
24945 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 resultobj = SWIG_Py_Void();
24950 {
24951 if (temp3)
24952 delete arg3;
24953 }
24954 return resultobj;
24955fail:
24956 {
24957 if (temp3)
24958 delete arg3;
24959 }
24960 return NULL;
24961}
24962
24963
24964SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj = 0;
24966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24967 int arg2 ;
24968 wxString result;
24969 void *argp1 = 0 ;
24970 int res1 = 0 ;
24971 int val2 ;
24972 int ecode2 = 0 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 char * kwnames[] = {
24976 (char *) "self",(char *) "id", NULL
24977 };
24978
24979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24983 }
24984 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24985 ecode2 = SWIG_AsVal_int(obj1, &val2);
24986 if (!SWIG_IsOK(ecode2)) {
24987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24988 }
24989 arg2 = static_cast< int >(val2);
24990 {
24991 PyThreadState* __tstate = wxPyBeginAllowThreads();
24992 result = (arg1)->GetToolShortHelp(arg2);
24993 wxPyEndAllowThreads(__tstate);
24994 if (PyErr_Occurred()) SWIG_fail;
24995 }
24996 {
24997#if wxUSE_UNICODE
24998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24999#else
25000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25001#endif
25002 }
25003 return resultobj;
25004fail:
25005 return NULL;
25006}
25007
25008
25009SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25010 PyObject *resultobj = 0;
25011 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25012 int arg2 ;
25013 wxString *arg3 = 0 ;
25014 void *argp1 = 0 ;
25015 int res1 = 0 ;
25016 int val2 ;
25017 int ecode2 = 0 ;
25018 bool temp3 = false ;
25019 PyObject * obj0 = 0 ;
25020 PyObject * obj1 = 0 ;
25021 PyObject * obj2 = 0 ;
25022 char * kwnames[] = {
25023 (char *) "self",(char *) "id",(char *) "helpString", NULL
25024 };
25025
25026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25028 if (!SWIG_IsOK(res1)) {
25029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25030 }
25031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25032 ecode2 = SWIG_AsVal_int(obj1, &val2);
25033 if (!SWIG_IsOK(ecode2)) {
25034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25035 }
25036 arg2 = static_cast< int >(val2);
25037 {
25038 arg3 = wxString_in_helper(obj2);
25039 if (arg3 == NULL) SWIG_fail;
25040 temp3 = true;
25041 }
25042 {
25043 PyThreadState* __tstate = wxPyBeginAllowThreads();
25044 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25045 wxPyEndAllowThreads(__tstate);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 resultobj = SWIG_Py_Void();
25049 {
25050 if (temp3)
25051 delete arg3;
25052 }
25053 return resultobj;
25054fail:
25055 {
25056 if (temp3)
25057 delete arg3;
25058 }
25059 return NULL;
25060}
25061
25062
25063SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25064 PyObject *resultobj = 0;
25065 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25066 int arg2 ;
25067 wxString result;
25068 void *argp1 = 0 ;
25069 int res1 = 0 ;
25070 int val2 ;
25071 int ecode2 = 0 ;
25072 PyObject * obj0 = 0 ;
25073 PyObject * obj1 = 0 ;
25074 char * kwnames[] = {
25075 (char *) "self",(char *) "id", NULL
25076 };
25077
25078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25080 if (!SWIG_IsOK(res1)) {
25081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25082 }
25083 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25084 ecode2 = SWIG_AsVal_int(obj1, &val2);
25085 if (!SWIG_IsOK(ecode2)) {
25086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25087 }
25088 arg2 = static_cast< int >(val2);
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 result = (arg1)->GetToolLongHelp(arg2);
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 {
25096#if wxUSE_UNICODE
25097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25098#else
25099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25100#endif
25101 }
25102 return resultobj;
25103fail:
25104 return NULL;
25105}
25106
25107
25108SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25109 PyObject *resultobj = 0;
25110 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25111 int arg2 ;
25112 int arg3 ;
25113 void *argp1 = 0 ;
25114 int res1 = 0 ;
25115 int val2 ;
25116 int ecode2 = 0 ;
25117 int val3 ;
25118 int ecode3 = 0 ;
25119 PyObject * obj0 = 0 ;
25120 PyObject * obj1 = 0 ;
25121 PyObject * obj2 = 0 ;
25122 char * kwnames[] = {
25123 (char *) "self",(char *) "x",(char *) "y", NULL
25124 };
25125
25126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25128 if (!SWIG_IsOK(res1)) {
25129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25130 }
25131 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25132 ecode2 = SWIG_AsVal_int(obj1, &val2);
25133 if (!SWIG_IsOK(ecode2)) {
25134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25135 }
25136 arg2 = static_cast< int >(val2);
25137 ecode3 = SWIG_AsVal_int(obj2, &val3);
25138 if (!SWIG_IsOK(ecode3)) {
25139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25140 }
25141 arg3 = static_cast< int >(val3);
25142 {
25143 PyThreadState* __tstate = wxPyBeginAllowThreads();
25144 (arg1)->SetMargins(arg2,arg3);
25145 wxPyEndAllowThreads(__tstate);
25146 if (PyErr_Occurred()) SWIG_fail;
25147 }
25148 resultobj = SWIG_Py_Void();
25149 return resultobj;
25150fail:
25151 return NULL;
25152}
25153
25154
25155SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj = 0;
25157 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25158 wxSize *arg2 = 0 ;
25159 void *argp1 = 0 ;
25160 int res1 = 0 ;
25161 wxSize temp2 ;
25162 PyObject * obj0 = 0 ;
25163 PyObject * obj1 = 0 ;
25164 char * kwnames[] = {
25165 (char *) "self",(char *) "size", NULL
25166 };
25167
25168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25172 }
25173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25174 {
25175 arg2 = &temp2;
25176 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25177 }
25178 {
25179 PyThreadState* __tstate = wxPyBeginAllowThreads();
25180 (arg1)->SetMargins((wxSize const &)*arg2);
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 resultobj = SWIG_Py_Void();
25185 return resultobj;
25186fail:
25187 return NULL;
25188}
25189
25190
25191SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25192 PyObject *resultobj = 0;
25193 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25194 int arg2 ;
25195 void *argp1 = 0 ;
25196 int res1 = 0 ;
25197 int val2 ;
25198 int ecode2 = 0 ;
25199 PyObject * obj0 = 0 ;
25200 PyObject * obj1 = 0 ;
25201 char * kwnames[] = {
25202 (char *) "self",(char *) "packing", NULL
25203 };
25204
25205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25207 if (!SWIG_IsOK(res1)) {
25208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25209 }
25210 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25211 ecode2 = SWIG_AsVal_int(obj1, &val2);
25212 if (!SWIG_IsOK(ecode2)) {
25213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25214 }
25215 arg2 = static_cast< int >(val2);
25216 {
25217 PyThreadState* __tstate = wxPyBeginAllowThreads();
25218 (arg1)->SetToolPacking(arg2);
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 resultobj = SWIG_Py_Void();
25223 return resultobj;
25224fail:
25225 return NULL;
25226}
25227
25228
25229SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25230 PyObject *resultobj = 0;
25231 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25232 int arg2 ;
25233 void *argp1 = 0 ;
25234 int res1 = 0 ;
25235 int val2 ;
25236 int ecode2 = 0 ;
25237 PyObject * obj0 = 0 ;
25238 PyObject * obj1 = 0 ;
25239 char * kwnames[] = {
25240 (char *) "self",(char *) "separation", NULL
25241 };
25242
25243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25247 }
25248 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25249 ecode2 = SWIG_AsVal_int(obj1, &val2);
25250 if (!SWIG_IsOK(ecode2)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25252 }
25253 arg2 = static_cast< int >(val2);
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 (arg1)->SetToolSeparation(arg2);
25257 wxPyEndAllowThreads(__tstate);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 resultobj = SWIG_Py_Void();
25261 return resultobj;
25262fail:
25263 return NULL;
d55e5bfc
RD
25264}
25265
25266
1bd55598
RD
25267SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25268 PyObject *resultobj = 0;
25269 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25270 wxSize result;
25271 void *argp1 = 0 ;
25272 int res1 = 0 ;
25273 PyObject *swig_obj[1] ;
25274
25275 if (!args) SWIG_fail;
25276 swig_obj[0] = args;
25277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25278 if (!SWIG_IsOK(res1)) {
25279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25280 }
25281 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25282 {
25283 PyThreadState* __tstate = wxPyBeginAllowThreads();
25284 result = (arg1)->GetToolMargins();
25285 wxPyEndAllowThreads(__tstate);
25286 if (PyErr_Occurred()) SWIG_fail;
25287 }
25288 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25289 return resultobj;
25290fail:
25291 return NULL;
d55e5bfc
RD
25292}
25293
25294
1bd55598
RD
25295SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25296 PyObject *resultobj = 0;
25297 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25298 wxSize result;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 PyObject *swig_obj[1] ;
25302
25303 if (!args) SWIG_fail;
25304 swig_obj[0] = args;
25305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25306 if (!SWIG_IsOK(res1)) {
25307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25308 }
25309 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25310 {
25311 PyThreadState* __tstate = wxPyBeginAllowThreads();
25312 result = (arg1)->GetMargins();
25313 wxPyEndAllowThreads(__tstate);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25317 return resultobj;
25318fail:
25319 return NULL;
d55e5bfc
RD
25320}
25321
25322
1bd55598
RD
25323SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25324 PyObject *resultobj = 0;
25325 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25326 int result;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 PyObject *swig_obj[1] ;
25330
25331 if (!args) SWIG_fail;
25332 swig_obj[0] = args;
25333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25336 }
25337 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25338 {
25339 PyThreadState* __tstate = wxPyBeginAllowThreads();
25340 result = (int)(arg1)->GetToolPacking();
25341 wxPyEndAllowThreads(__tstate);
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 resultobj = SWIG_From_int(static_cast< int >(result));
25345 return resultobj;
25346fail:
25347 return NULL;
d55e5bfc
RD
25348}
25349
25350
1bd55598
RD
25351SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352 PyObject *resultobj = 0;
25353 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25354 int result;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 PyObject *swig_obj[1] ;
25358
25359 if (!args) SWIG_fail;
25360 swig_obj[0] = args;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25364 }
25365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25366 {
25367 PyThreadState* __tstate = wxPyBeginAllowThreads();
25368 result = (int)(arg1)->GetToolSeparation();
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 resultobj = SWIG_From_int(static_cast< int >(result));
25373 return resultobj;
25374fail:
25375 return NULL;
25376}
25377
25378
25379SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj = 0;
25381 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25382 int arg2 ;
25383 void *argp1 = 0 ;
25384 int res1 = 0 ;
25385 int val2 ;
25386 int ecode2 = 0 ;
25387 PyObject * obj0 = 0 ;
25388 PyObject * obj1 = 0 ;
25389 char * kwnames[] = {
25390 (char *) "self",(char *) "nRows", NULL
25391 };
25392
25393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25395 if (!SWIG_IsOK(res1)) {
25396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25397 }
25398 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25399 ecode2 = SWIG_AsVal_int(obj1, &val2);
25400 if (!SWIG_IsOK(ecode2)) {
25401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25402 }
25403 arg2 = static_cast< int >(val2);
25404 {
25405 PyThreadState* __tstate = wxPyBeginAllowThreads();
25406 (arg1)->SetRows(arg2);
25407 wxPyEndAllowThreads(__tstate);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 }
25410 resultobj = SWIG_Py_Void();
25411 return resultobj;
25412fail:
25413 return NULL;
25414}
25415
25416
25417SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj = 0;
25419 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25420 int arg2 ;
25421 int arg3 ;
25422 void *argp1 = 0 ;
25423 int res1 = 0 ;
25424 int val2 ;
25425 int ecode2 = 0 ;
25426 int val3 ;
25427 int ecode3 = 0 ;
25428 PyObject * obj0 = 0 ;
25429 PyObject * obj1 = 0 ;
25430 PyObject * obj2 = 0 ;
25431 char * kwnames[] = {
25432 (char *) "self",(char *) "rows",(char *) "cols", NULL
25433 };
25434
25435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25437 if (!SWIG_IsOK(res1)) {
25438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25439 }
25440 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25441 ecode2 = SWIG_AsVal_int(obj1, &val2);
25442 if (!SWIG_IsOK(ecode2)) {
25443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25444 }
25445 arg2 = static_cast< int >(val2);
25446 ecode3 = SWIG_AsVal_int(obj2, &val3);
25447 if (!SWIG_IsOK(ecode3)) {
25448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25449 }
25450 arg3 = static_cast< int >(val3);
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 (arg1)->SetMaxRowsCols(arg2,arg3);
25454 wxPyEndAllowThreads(__tstate);
25455 if (PyErr_Occurred()) SWIG_fail;
25456 }
25457 resultobj = SWIG_Py_Void();
25458 return resultobj;
25459fail:
25460 return NULL;
d55e5bfc
RD
25461}
25462
25463
1bd55598
RD
25464SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25465 PyObject *resultobj = 0;
25466 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25467 int result;
25468 void *argp1 = 0 ;
25469 int res1 = 0 ;
25470 PyObject *swig_obj[1] ;
25471
25472 if (!args) SWIG_fail;
25473 swig_obj[0] = args;
25474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25475 if (!SWIG_IsOK(res1)) {
25476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25477 }
25478 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25479 {
25480 PyThreadState* __tstate = wxPyBeginAllowThreads();
25481 result = (int)(arg1)->GetMaxRows();
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_From_int(static_cast< int >(result));
25486 return resultobj;
25487fail:
25488 return NULL;
d55e5bfc
RD
25489}
25490
25491
1bd55598
RD
25492SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25493 PyObject *resultobj = 0;
25494 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25495 int result;
25496 void *argp1 = 0 ;
25497 int res1 = 0 ;
25498 PyObject *swig_obj[1] ;
25499
25500 if (!args) SWIG_fail;
25501 swig_obj[0] = args;
25502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25503 if (!SWIG_IsOK(res1)) {
25504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25505 }
25506 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25507 {
25508 PyThreadState* __tstate = wxPyBeginAllowThreads();
25509 result = (int)(arg1)->GetMaxCols();
25510 wxPyEndAllowThreads(__tstate);
25511 if (PyErr_Occurred()) SWIG_fail;
25512 }
25513 resultobj = SWIG_From_int(static_cast< int >(result));
25514 return resultobj;
25515fail:
25516 return NULL;
25517}
25518
25519
25520SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25521 PyObject *resultobj = 0;
25522 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25523 wxSize *arg2 = 0 ;
25524 void *argp1 = 0 ;
25525 int res1 = 0 ;
25526 wxSize temp2 ;
25527 PyObject * obj0 = 0 ;
25528 PyObject * obj1 = 0 ;
25529 char * kwnames[] = {
25530 (char *) "self",(char *) "size", NULL
25531 };
25532
25533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25537 }
25538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25539 {
25540 arg2 = &temp2;
25541 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25542 }
25543 {
25544 PyThreadState* __tstate = wxPyBeginAllowThreads();
25545 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25546 wxPyEndAllowThreads(__tstate);
25547 if (PyErr_Occurred()) SWIG_fail;
25548 }
25549 resultobj = SWIG_Py_Void();
25550 return resultobj;
25551fail:
25552 return NULL;
d55e5bfc
RD
25553}
25554
25555
1bd55598
RD
25556SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25557 PyObject *resultobj = 0;
25558 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25559 wxSize result;
25560 void *argp1 = 0 ;
25561 int res1 = 0 ;
25562 PyObject *swig_obj[1] ;
25563
25564 if (!args) SWIG_fail;
25565 swig_obj[0] = args;
25566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25567 if (!SWIG_IsOK(res1)) {
25568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25569 }
25570 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25571 {
25572 PyThreadState* __tstate = wxPyBeginAllowThreads();
25573 result = (arg1)->GetToolBitmapSize();
25574 wxPyEndAllowThreads(__tstate);
25575 if (PyErr_Occurred()) SWIG_fail;
25576 }
25577 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25578 return resultobj;
25579fail:
25580 return NULL;
d55e5bfc
RD
25581}
25582
25583
1bd55598
RD
25584SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25585 PyObject *resultobj = 0;
25586 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25587 wxSize result;
25588 void *argp1 = 0 ;
25589 int res1 = 0 ;
25590 PyObject *swig_obj[1] ;
25591
25592 if (!args) SWIG_fail;
25593 swig_obj[0] = args;
25594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25595 if (!SWIG_IsOK(res1)) {
25596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25597 }
25598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25599 {
25600 PyThreadState* __tstate = wxPyBeginAllowThreads();
25601 result = (arg1)->GetToolSize();
25602 wxPyEndAllowThreads(__tstate);
25603 if (PyErr_Occurred()) SWIG_fail;
25604 }
25605 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25606 return resultobj;
25607fail:
25608 return NULL;
25609}
25610
25611
25612SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25613 PyObject *resultobj = 0;
25614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25615 int arg2 ;
25616 int arg3 ;
25617 wxToolBarToolBase *result = 0 ;
25618 void *argp1 = 0 ;
25619 int res1 = 0 ;
25620 int val2 ;
25621 int ecode2 = 0 ;
25622 int val3 ;
25623 int ecode3 = 0 ;
25624 PyObject * obj0 = 0 ;
25625 PyObject * obj1 = 0 ;
25626 PyObject * obj2 = 0 ;
25627 char * kwnames[] = {
25628 (char *) "self",(char *) "x",(char *) "y", NULL
25629 };
25630
25631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25633 if (!SWIG_IsOK(res1)) {
25634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25635 }
25636 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25637 ecode2 = SWIG_AsVal_int(obj1, &val2);
25638 if (!SWIG_IsOK(ecode2)) {
25639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25640 }
25641 arg2 = static_cast< int >(val2);
25642 ecode3 = SWIG_AsVal_int(obj2, &val3);
25643 if (!SWIG_IsOK(ecode3)) {
25644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25645 }
25646 arg3 = static_cast< int >(val3);
25647 {
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25650 wxPyEndAllowThreads(__tstate);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 {
25654 resultobj = wxPyMake_wxObject(result, (bool)0);
25655 }
25656 return resultobj;
25657fail:
25658 return NULL;
25659}
25660
25661
25662SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25663 PyObject *resultobj = 0;
25664 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25665 int arg2 ;
25666 wxToolBarToolBase *result = 0 ;
25667 void *argp1 = 0 ;
25668 int res1 = 0 ;
25669 int val2 ;
25670 int ecode2 = 0 ;
25671 PyObject * obj0 = 0 ;
25672 PyObject * obj1 = 0 ;
25673 char * kwnames[] = {
25674 (char *) "self",(char *) "toolid", NULL
25675 };
25676
25677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25679 if (!SWIG_IsOK(res1)) {
25680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25681 }
25682 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25683 ecode2 = SWIG_AsVal_int(obj1, &val2);
25684 if (!SWIG_IsOK(ecode2)) {
25685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25686 }
25687 arg2 = static_cast< int >(val2);
25688 {
25689 PyThreadState* __tstate = wxPyBeginAllowThreads();
25690 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25691 wxPyEndAllowThreads(__tstate);
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 {
25695 resultobj = wxPyMake_wxObject(result, (bool)0);
25696 }
25697 return resultobj;
25698fail:
25699 return NULL;
d55e5bfc
RD
25700}
25701
25702
1bd55598
RD
25703SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25704 PyObject *resultobj = 0;
25705 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25706 bool result;
25707 void *argp1 = 0 ;
25708 int res1 = 0 ;
25709 PyObject *swig_obj[1] ;
25710
25711 if (!args) SWIG_fail;
25712 swig_obj[0] = args;
25713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25714 if (!SWIG_IsOK(res1)) {
25715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25716 }
25717 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25718 {
25719 PyThreadState* __tstate = wxPyBeginAllowThreads();
25720 result = (bool)(arg1)->IsVertical();
25721 wxPyEndAllowThreads(__tstate);
25722 if (PyErr_Occurred()) SWIG_fail;
25723 }
25724 {
25725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25726 }
25727 return resultobj;
25728fail:
25729 return NULL;
d55e5bfc
RD
25730}
25731
25732
1bd55598
RD
25733SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25734 PyObject *resultobj = 0;
25735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25736 size_t result;
25737 void *argp1 = 0 ;
25738 int res1 = 0 ;
25739 PyObject *swig_obj[1] ;
25740
25741 if (!args) SWIG_fail;
25742 swig_obj[0] = args;
25743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25744 if (!SWIG_IsOK(res1)) {
25745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25746 }
25747 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25755 return resultobj;
25756fail:
25757 return NULL;
25758}
25759
25760
25761SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25762 PyObject *obj;
25763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25764 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25765 return SWIG_Py_Void();
25766}
25767
25768SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25769 PyObject *resultobj = 0;
25770 wxWindow *arg1 = (wxWindow *) 0 ;
25771 int arg2 = (int) -1 ;
25772 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25773 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25774 wxSize const &arg4_defvalue = wxDefaultSize ;
25775 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25776 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25777 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25778 wxString *arg6 = (wxString *) &arg6_defvalue ;
25779 wxToolBar *result = 0 ;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 int val2 ;
25783 int ecode2 = 0 ;
25784 wxPoint temp3 ;
25785 wxSize temp4 ;
25786 long val5 ;
25787 int ecode5 = 0 ;
25788 bool temp6 = false ;
25789 PyObject * obj0 = 0 ;
25790 PyObject * obj1 = 0 ;
25791 PyObject * obj2 = 0 ;
25792 PyObject * obj3 = 0 ;
25793 PyObject * obj4 = 0 ;
25794 PyObject * obj5 = 0 ;
25795 char * kwnames[] = {
25796 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25797 };
25798
25799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25801 if (!SWIG_IsOK(res1)) {
25802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25803 }
25804 arg1 = reinterpret_cast< wxWindow * >(argp1);
25805 if (obj1) {
25806 ecode2 = SWIG_AsVal_int(obj1, &val2);
25807 if (!SWIG_IsOK(ecode2)) {
25808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25809 }
25810 arg2 = static_cast< int >(val2);
25811 }
25812 if (obj2) {
d55e5bfc 25813 {
1bd55598
RD
25814 arg3 = &temp3;
25815 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25816 }
1bd55598
RD
25817 }
25818 if (obj3) {
d55e5bfc 25819 {
1bd55598
RD
25820 arg4 = &temp4;
25821 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25822 }
1bd55598
RD
25823 }
25824 if (obj4) {
25825 ecode5 = SWIG_AsVal_long(obj4, &val5);
25826 if (!SWIG_IsOK(ecode5)) {
25827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25828 }
25829 arg5 = static_cast< long >(val5);
25830 }
25831 if (obj5) {
36ed4f51 25832 {
1bd55598
RD
25833 arg6 = wxString_in_helper(obj5);
25834 if (arg6 == NULL) SWIG_fail;
25835 temp6 = true;
36ed4f51 25836 }
1bd55598
RD
25837 }
25838 {
25839 if (!wxPyCheckForApp()) SWIG_fail;
25840 PyThreadState* __tstate = wxPyBeginAllowThreads();
25841 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25842 wxPyEndAllowThreads(__tstate);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25846 {
25847 if (temp6)
25848 delete arg6;
25849 }
25850 return resultobj;
25851fail:
25852 {
25853 if (temp6)
25854 delete arg6;
25855 }
25856 return NULL;
d55e5bfc
RD
25857}
25858
25859
1bd55598
RD
25860SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25861 PyObject *resultobj = 0;
25862 wxToolBar *result = 0 ;
25863
25864 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25865 {
25866 if (!wxPyCheckForApp()) SWIG_fail;
25867 PyThreadState* __tstate = wxPyBeginAllowThreads();
25868 result = (wxToolBar *)new wxToolBar();
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25873 return resultobj;
25874fail:
25875 return NULL;
25876}
25877
25878
25879SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25880 PyObject *resultobj = 0;
25881 wxToolBar *arg1 = (wxToolBar *) 0 ;
25882 wxWindow *arg2 = (wxWindow *) 0 ;
25883 int arg3 = (int) -1 ;
25884 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25885 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25886 wxSize const &arg5_defvalue = wxDefaultSize ;
25887 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25888 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25889 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25890 wxString *arg7 = (wxString *) &arg7_defvalue ;
25891 bool result;
25892 void *argp1 = 0 ;
25893 int res1 = 0 ;
25894 void *argp2 = 0 ;
25895 int res2 = 0 ;
25896 int val3 ;
25897 int ecode3 = 0 ;
25898 wxPoint temp4 ;
25899 wxSize temp5 ;
25900 long val6 ;
25901 int ecode6 = 0 ;
25902 bool temp7 = false ;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 PyObject * obj2 = 0 ;
25906 PyObject * obj3 = 0 ;
25907 PyObject * obj4 = 0 ;
25908 PyObject * obj5 = 0 ;
25909 PyObject * obj6 = 0 ;
25910 char * kwnames[] = {
25911 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25912 };
25913
25914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25916 if (!SWIG_IsOK(res1)) {
25917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25918 }
25919 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25920 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25921 if (!SWIG_IsOK(res2)) {
25922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25923 }
25924 arg2 = reinterpret_cast< wxWindow * >(argp2);
25925 if (obj2) {
25926 ecode3 = SWIG_AsVal_int(obj2, &val3);
25927 if (!SWIG_IsOK(ecode3)) {
25928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25929 }
25930 arg3 = static_cast< int >(val3);
25931 }
25932 if (obj3) {
d55e5bfc 25933 {
1bd55598
RD
25934 arg4 = &temp4;
25935 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25936 }
1bd55598
RD
25937 }
25938 if (obj4) {
d55e5bfc 25939 {
1bd55598
RD
25940 arg5 = &temp5;
25941 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25942 }
1bd55598
RD
25943 }
25944 if (obj5) {
25945 ecode6 = SWIG_AsVal_long(obj5, &val6);
25946 if (!SWIG_IsOK(ecode6)) {
25947 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25948 }
25949 arg6 = static_cast< long >(val6);
25950 }
25951 if (obj6) {
36ed4f51 25952 {
1bd55598
RD
25953 arg7 = wxString_in_helper(obj6);
25954 if (arg7 == NULL) SWIG_fail;
25955 temp7 = true;
36ed4f51 25956 }
1bd55598
RD
25957 }
25958 {
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25961 wxPyEndAllowThreads(__tstate);
25962 if (PyErr_Occurred()) SWIG_fail;
25963 }
25964 {
25965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25966 }
25967 {
25968 if (temp7)
25969 delete arg7;
25970 }
25971 return resultobj;
25972fail:
25973 {
25974 if (temp7)
25975 delete arg7;
25976 }
25977 return NULL;
25978}
25979
25980
1bd55598
RD
25981SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25982 PyObject *resultobj = 0;
25983 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25984 SwigValueWrapper<wxVisualAttributes > result;
25985 int val1 ;
25986 int ecode1 = 0 ;
25987 PyObject * obj0 = 0 ;
25988 char * kwnames[] = {
25989 (char *) "variant", NULL
25990 };
25991
25992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25993 if (obj0) {
25994 ecode1 = SWIG_AsVal_int(obj0, &val1);
25995 if (!SWIG_IsOK(ecode1)) {
25996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25997 }
25998 arg1 = static_cast< wxWindowVariant >(val1);
25999 }
26000 {
26001 if (!wxPyCheckForApp()) SWIG_fail;
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 result = wxToolBar::GetClassDefaultAttributes(arg1);
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26008 return resultobj;
26009fail:
26010 return NULL;
d55e5bfc
RD
26011}
26012
26013
1bd55598
RD
26014SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26015 PyObject *obj;
26016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26017 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26018 return SWIG_Py_Void();
d55e5bfc
RD
26019}
26020
1bd55598
RD
26021SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26022 return SWIG_Python_InitShadowInstance(args);
26023}
d55e5bfc 26024
1bd55598
RD
26025SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26026 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26027 return 1;
d55e5bfc
RD
26028}
26029
26030
1bd55598
RD
26031SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26032 PyObject *pyobj = 0;
26033
26034 {
26035#if wxUSE_UNICODE
26036 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26037#else
26038 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26039#endif
26040 }
26041 return pyobj;
26042}
26043
26044
26045SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26046 PyObject *resultobj = 0;
26047 wxColour const &arg1_defvalue = wxNullColour ;
26048 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26049 wxColour const &arg2_defvalue = wxNullColour ;
26050 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26051 wxFont const &arg3_defvalue = wxNullFont ;
26052 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26053 wxListItemAttr *result = 0 ;
26054 wxColour temp1 ;
26055 wxColour temp2 ;
26056 void *argp3 = 0 ;
26057 int res3 = 0 ;
26058 PyObject * obj0 = 0 ;
26059 PyObject * obj1 = 0 ;
26060 PyObject * obj2 = 0 ;
26061 char * kwnames[] = {
26062 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26063 };
26064
26065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26066 if (obj0) {
d55e5bfc 26067 {
1bd55598
RD
26068 arg1 = &temp1;
26069 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26070 }
1bd55598
RD
26071 }
26072 if (obj1) {
36ed4f51 26073 {
1bd55598
RD
26074 arg2 = &temp2;
26075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 26076 }
1bd55598
RD
26077 }
26078 if (obj2) {
26079 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26080 if (!SWIG_IsOK(res3)) {
26081 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 26082 }
1bd55598
RD
26083 if (!argp3) {
26084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 26085 }
1bd55598
RD
26086 arg3 = reinterpret_cast< wxFont * >(argp3);
26087 }
26088 {
26089 PyThreadState* __tstate = wxPyBeginAllowThreads();
26090 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26091 wxPyEndAllowThreads(__tstate);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 }
26094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26095 return resultobj;
26096fail:
26097 return NULL;
d55e5bfc
RD
26098}
26099
26100
1bd55598
RD
26101SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26102 PyObject *resultobj = 0;
26103 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26104 void *argp1 = 0 ;
26105 int res1 = 0 ;
26106 PyObject *swig_obj[1] ;
26107
26108 if (!args) SWIG_fail;
26109 swig_obj[0] = args;
26110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26111 if (!SWIG_IsOK(res1)) {
26112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26113 }
26114 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 delete arg1;
d55e5bfc 26118
1bd55598
RD
26119 wxPyEndAllowThreads(__tstate);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_Py_Void();
26123 return resultobj;
26124fail:
26125 return NULL;
26126}
26127
26128
26129SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26130 PyObject *resultobj = 0;
26131 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26132 wxColour *arg2 = 0 ;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 wxColour temp2 ;
26136 PyObject * obj0 = 0 ;
26137 PyObject * obj1 = 0 ;
26138 char * kwnames[] = {
26139 (char *) "self",(char *) "colText", NULL
26140 };
26141
26142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26144 if (!SWIG_IsOK(res1)) {
26145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26146 }
26147 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26148 {
26149 arg2 = &temp2;
26150 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26151 }
26152 {
26153 PyThreadState* __tstate = wxPyBeginAllowThreads();
26154 (arg1)->SetTextColour((wxColour const &)*arg2);
26155 wxPyEndAllowThreads(__tstate);
26156 if (PyErr_Occurred()) SWIG_fail;
26157 }
26158 resultobj = SWIG_Py_Void();
26159 return resultobj;
26160fail:
26161 return NULL;
26162}
26163
26164
26165SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26166 PyObject *resultobj = 0;
26167 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26168 wxColour *arg2 = 0 ;
26169 void *argp1 = 0 ;
26170 int res1 = 0 ;
26171 wxColour temp2 ;
26172 PyObject * obj0 = 0 ;
26173 PyObject * obj1 = 0 ;
26174 char * kwnames[] = {
26175 (char *) "self",(char *) "colBack", NULL
26176 };
26177
26178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26180 if (!SWIG_IsOK(res1)) {
26181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26182 }
26183 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26184 {
26185 arg2 = &temp2;
26186 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26187 }
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26191 wxPyEndAllowThreads(__tstate);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 resultobj = SWIG_Py_Void();
26195 return resultobj;
26196fail:
26197 return NULL;
26198}
26199
26200
26201SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26202 PyObject *resultobj = 0;
26203 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26204 wxFont *arg2 = 0 ;
26205 void *argp1 = 0 ;
26206 int res1 = 0 ;
26207 void *argp2 = 0 ;
26208 int res2 = 0 ;
26209 PyObject * obj0 = 0 ;
26210 PyObject * obj1 = 0 ;
26211 char * kwnames[] = {
26212 (char *) "self",(char *) "font", NULL
26213 };
26214
26215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26217 if (!SWIG_IsOK(res1)) {
26218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26219 }
26220 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26222 if (!SWIG_IsOK(res2)) {
26223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26224 }
26225 if (!argp2) {
26226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26227 }
26228 arg2 = reinterpret_cast< wxFont * >(argp2);
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 (arg1)->SetFont((wxFont const &)*arg2);
26232 wxPyEndAllowThreads(__tstate);
26233 if (PyErr_Occurred()) SWIG_fail;
26234 }
26235 resultobj = SWIG_Py_Void();
26236 return resultobj;
26237fail:
26238 return NULL;
d55e5bfc
RD
26239}
26240
26241
1bd55598
RD
26242SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26243 PyObject *resultobj = 0;
26244 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26245 bool result;
26246 void *argp1 = 0 ;
26247 int res1 = 0 ;
26248 PyObject *swig_obj[1] ;
26249
26250 if (!args) SWIG_fail;
26251 swig_obj[0] = args;
26252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26255 }
26256 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 result = (bool)(arg1)->HasTextColour();
26260 wxPyEndAllowThreads(__tstate);
26261 if (PyErr_Occurred()) SWIG_fail;
26262 }
26263 {
26264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26265 }
26266 return resultobj;
26267fail:
26268 return NULL;
f20a2e1f
RD
26269}
26270
26271
1bd55598
RD
26272SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26273 PyObject *resultobj = 0;
26274 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26275 bool result;
26276 void *argp1 = 0 ;
26277 int res1 = 0 ;
26278 PyObject *swig_obj[1] ;
26279
26280 if (!args) SWIG_fail;
26281 swig_obj[0] = args;
26282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26283 if (!SWIG_IsOK(res1)) {
26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26285 }
26286 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26287 {
26288 PyThreadState* __tstate = wxPyBeginAllowThreads();
26289 result = (bool)(arg1)->HasBackgroundColour();
26290 wxPyEndAllowThreads(__tstate);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 {
26294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26295 }
26296 return resultobj;
26297fail:
26298 return NULL;
d55e5bfc 26299}
1bd55598
RD
26300
26301
26302SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26303 PyObject *resultobj = 0;
26304 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26305 bool result;
26306 void *argp1 = 0 ;
26307 int res1 = 0 ;
26308 PyObject *swig_obj[1] ;
26309
26310 if (!args) SWIG_fail;
26311 swig_obj[0] = args;
26312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26313 if (!SWIG_IsOK(res1)) {
26314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26315 }
26316 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26317 {
26318 PyThreadState* __tstate = wxPyBeginAllowThreads();
26319 result = (bool)(arg1)->HasFont();
26320 wxPyEndAllowThreads(__tstate);
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 {
26324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26325 }
26326 return resultobj;
26327fail:
26328 return NULL;
d55e5bfc
RD
26329}
26330
26331
1bd55598
RD
26332SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 PyObject *resultobj = 0;
26334 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26335 wxColour result;
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_wxListItemAttr, 0 | 0 );
26343 if (!SWIG_IsOK(res1)) {
26344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26345 }
26346 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26347 {
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 result = (arg1)->GetTextColour();
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26354 return resultobj;
26355fail:
26356 return NULL;
d55e5bfc
RD
26357}
26358
26359
1bd55598
RD
26360SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26361 PyObject *resultobj = 0;
26362 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26363 wxColour result;
26364 void *argp1 = 0 ;
26365 int res1 = 0 ;
26366 PyObject *swig_obj[1] ;
26367
26368 if (!args) SWIG_fail;
26369 swig_obj[0] = args;
26370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26371 if (!SWIG_IsOK(res1)) {
26372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26373 }
26374 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 result = (arg1)->GetBackgroundColour();
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26382 return resultobj;
26383fail:
26384 return NULL;
d55e5bfc
RD
26385}
26386
26387
1bd55598
RD
26388SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26391 wxFont result;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 PyObject *swig_obj[1] ;
26395
26396 if (!args) SWIG_fail;
26397 swig_obj[0] = args;
26398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26399 if (!SWIG_IsOK(res1)) {
26400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26401 }
26402 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = (arg1)->GetFont();
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26410 return resultobj;
26411fail:
26412 return NULL;
26413}
26414
26415
26416SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj = 0;
26418 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26419 wxListItemAttr *arg2 = 0 ;
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
26422 void *argp2 = 0 ;
26423 int res2 = 0 ;
26424 PyObject * obj0 = 0 ;
26425 PyObject * obj1 = 0 ;
26426 char * kwnames[] = {
26427 (char *) "self",(char *) "source", NULL
26428 };
26429
26430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26432 if (!SWIG_IsOK(res1)) {
26433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26434 }
26435 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26437 if (!SWIG_IsOK(res2)) {
26438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26439 }
26440 if (!argp2) {
26441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26442 }
26443 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26444 {
26445 PyThreadState* __tstate = wxPyBeginAllowThreads();
26446 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 resultobj = SWIG_Py_Void();
26451 return resultobj;
26452fail:
26453 return NULL;
121b9a67
RD
26454}
26455
26456
1bd55598
RD
26457SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26458 PyObject *resultobj = 0;
26459 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26460 void *argp1 = 0 ;
26461 int res1 = 0 ;
26462 PyObject *swig_obj[1] ;
26463
26464 if (!args) SWIG_fail;
26465 swig_obj[0] = args;
26466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26467 if (!SWIG_IsOK(res1)) {
26468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26469 }
26470 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 wxListItemAttr_Destroy(arg1);
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 resultobj = SWIG_Py_Void();
26478 return resultobj;
26479fail:
26480 return NULL;
121b9a67
RD
26481}
26482
26483
1bd55598
RD
26484SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26485 PyObject *obj;
26486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26487 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26488 return SWIG_Py_Void();
121b9a67
RD
26489}
26490
1bd55598
RD
26491SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26492 return SWIG_Python_InitShadowInstance(args);
26493}
121b9a67 26494
1bd55598
RD
26495SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26496 PyObject *resultobj = 0;
26497 wxListItem *result = 0 ;
26498
26499 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26500 {
26501 PyThreadState* __tstate = wxPyBeginAllowThreads();
26502 result = (wxListItem *)new wxListItem();
26503 wxPyEndAllowThreads(__tstate);
26504 if (PyErr_Occurred()) SWIG_fail;
26505 }
3ecece7e 26506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
26507 return resultobj;
26508fail:
26509 return NULL;
121b9a67
RD
26510}
26511
26512
1bd55598
RD
26513SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26514 PyObject *resultobj = 0;
26515 wxListItem *arg1 = (wxListItem *) 0 ;
26516 void *argp1 = 0 ;
26517 int res1 = 0 ;
26518 PyObject *swig_obj[1] ;
26519
26520 if (!args) SWIG_fail;
26521 swig_obj[0] = args;
26522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26523 if (!SWIG_IsOK(res1)) {
26524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26525 }
26526 arg1 = reinterpret_cast< wxListItem * >(argp1);
26527 {
26528 PyThreadState* __tstate = wxPyBeginAllowThreads();
26529 delete arg1;
f20a2e1f 26530
1bd55598
RD
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 resultobj = SWIG_Py_Void();
26535 return resultobj;
26536fail:
26537 return NULL;
f20a2e1f
RD
26538}
26539
26540
1bd55598
RD
26541SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26542 PyObject *resultobj = 0;
26543 wxListItem *arg1 = (wxListItem *) 0 ;
26544 void *argp1 = 0 ;
26545 int res1 = 0 ;
26546 PyObject *swig_obj[1] ;
26547
26548 if (!args) SWIG_fail;
26549 swig_obj[0] = args;
26550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26553 }
26554 arg1 = reinterpret_cast< wxListItem * >(argp1);
26555 {
26556 PyThreadState* __tstate = wxPyBeginAllowThreads();
26557 (arg1)->Clear();
26558 wxPyEndAllowThreads(__tstate);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 resultobj = SWIG_Py_Void();
26562 return resultobj;
26563fail:
26564 return NULL;
d55e5bfc 26565}
1bd55598
RD
26566
26567
26568SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26569 PyObject *resultobj = 0;
26570 wxListItem *arg1 = (wxListItem *) 0 ;
26571 void *argp1 = 0 ;
26572 int res1 = 0 ;
26573 PyObject *swig_obj[1] ;
26574
26575 if (!args) SWIG_fail;
26576 swig_obj[0] = args;
26577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26578 if (!SWIG_IsOK(res1)) {
26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26580 }
26581 arg1 = reinterpret_cast< wxListItem * >(argp1);
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 (arg1)->ClearAttributes();
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590fail:
26591 return NULL;
26592}
26593
26594
26595SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj = 0;
26597 wxListItem *arg1 = (wxListItem *) 0 ;
26598 long arg2 ;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 long val2 ;
26602 int ecode2 = 0 ;
26603 PyObject * obj0 = 0 ;
26604 PyObject * obj1 = 0 ;
26605 char * kwnames[] = {
26606 (char *) "self",(char *) "mask", NULL
26607 };
26608
26609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26611 if (!SWIG_IsOK(res1)) {
26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26613 }
26614 arg1 = reinterpret_cast< wxListItem * >(argp1);
26615 ecode2 = SWIG_AsVal_long(obj1, &val2);
26616 if (!SWIG_IsOK(ecode2)) {
26617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26618 }
26619 arg2 = static_cast< long >(val2);
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 (arg1)->SetMask(arg2);
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 return resultobj;
26628fail:
26629 return NULL;
26630}
26631
26632
26633SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26634 PyObject *resultobj = 0;
26635 wxListItem *arg1 = (wxListItem *) 0 ;
26636 long arg2 ;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 long val2 ;
26640 int ecode2 = 0 ;
26641 PyObject * obj0 = 0 ;
26642 PyObject * obj1 = 0 ;
26643 char * kwnames[] = {
26644 (char *) "self",(char *) "id", NULL
26645 };
26646
26647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26651 }
26652 arg1 = reinterpret_cast< wxListItem * >(argp1);
26653 ecode2 = SWIG_AsVal_long(obj1, &val2);
26654 if (!SWIG_IsOK(ecode2)) {
26655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26656 }
26657 arg2 = static_cast< long >(val2);
26658 {
26659 PyThreadState* __tstate = wxPyBeginAllowThreads();
26660 (arg1)->SetId(arg2);
26661 wxPyEndAllowThreads(__tstate);
26662 if (PyErr_Occurred()) SWIG_fail;
26663 }
26664 resultobj = SWIG_Py_Void();
26665 return resultobj;
26666fail:
26667 return NULL;
26668}
26669
26670
26671SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26672 PyObject *resultobj = 0;
26673 wxListItem *arg1 = (wxListItem *) 0 ;
26674 int arg2 ;
26675 void *argp1 = 0 ;
26676 int res1 = 0 ;
26677 int val2 ;
26678 int ecode2 = 0 ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 char * kwnames[] = {
26682 (char *) "self",(char *) "col", NULL
26683 };
26684
26685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26689 }
26690 arg1 = reinterpret_cast< wxListItem * >(argp1);
26691 ecode2 = SWIG_AsVal_int(obj1, &val2);
26692 if (!SWIG_IsOK(ecode2)) {
26693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26694 }
26695 arg2 = static_cast< int >(val2);
26696 {
26697 PyThreadState* __tstate = wxPyBeginAllowThreads();
26698 (arg1)->SetColumn(arg2);
26699 wxPyEndAllowThreads(__tstate);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 resultobj = SWIG_Py_Void();
26703 return resultobj;
26704fail:
26705 return NULL;
26706}
26707
26708
26709SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26710 PyObject *resultobj = 0;
26711 wxListItem *arg1 = (wxListItem *) 0 ;
26712 long arg2 ;
26713 void *argp1 = 0 ;
26714 int res1 = 0 ;
26715 long val2 ;
26716 int ecode2 = 0 ;
26717 PyObject * obj0 = 0 ;
26718 PyObject * obj1 = 0 ;
26719 char * kwnames[] = {
26720 (char *) "self",(char *) "state", NULL
26721 };
26722
26723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26725 if (!SWIG_IsOK(res1)) {
26726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26727 }
26728 arg1 = reinterpret_cast< wxListItem * >(argp1);
26729 ecode2 = SWIG_AsVal_long(obj1, &val2);
26730 if (!SWIG_IsOK(ecode2)) {
26731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26732 }
26733 arg2 = static_cast< long >(val2);
26734 {
26735 PyThreadState* __tstate = wxPyBeginAllowThreads();
26736 (arg1)->SetState(arg2);
26737 wxPyEndAllowThreads(__tstate);
26738 if (PyErr_Occurred()) SWIG_fail;
26739 }
26740 resultobj = SWIG_Py_Void();
26741 return resultobj;
26742fail:
26743 return NULL;
26744}
26745
26746
26747SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26748 PyObject *resultobj = 0;
26749 wxListItem *arg1 = (wxListItem *) 0 ;
26750 long arg2 ;
26751 void *argp1 = 0 ;
26752 int res1 = 0 ;
26753 long val2 ;
26754 int ecode2 = 0 ;
26755 PyObject * obj0 = 0 ;
26756 PyObject * obj1 = 0 ;
26757 char * kwnames[] = {
26758 (char *) "self",(char *) "stateMask", NULL
26759 };
26760
26761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26763 if (!SWIG_IsOK(res1)) {
26764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26765 }
26766 arg1 = reinterpret_cast< wxListItem * >(argp1);
26767 ecode2 = SWIG_AsVal_long(obj1, &val2);
26768 if (!SWIG_IsOK(ecode2)) {
26769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26770 }
26771 arg2 = static_cast< long >(val2);
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 (arg1)->SetStateMask(arg2);
26775 wxPyEndAllowThreads(__tstate);
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_Py_Void();
26779 return resultobj;
26780fail:
26781 return NULL;
26782}
26783
26784
26785SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26786 PyObject *resultobj = 0;
26787 wxListItem *arg1 = (wxListItem *) 0 ;
26788 wxString *arg2 = 0 ;
26789 void *argp1 = 0 ;
26790 int res1 = 0 ;
26791 bool temp2 = false ;
26792 PyObject * obj0 = 0 ;
26793 PyObject * obj1 = 0 ;
26794 char * kwnames[] = {
26795 (char *) "self",(char *) "text", NULL
26796 };
26797
26798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26800 if (!SWIG_IsOK(res1)) {
26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26802 }
26803 arg1 = reinterpret_cast< wxListItem * >(argp1);
26804 {
26805 arg2 = wxString_in_helper(obj1);
26806 if (arg2 == NULL) SWIG_fail;
26807 temp2 = true;
26808 }
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 (arg1)->SetText((wxString const &)*arg2);
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 resultobj = SWIG_Py_Void();
26816 {
26817 if (temp2)
26818 delete arg2;
26819 }
26820 return resultobj;
26821fail:
26822 {
26823 if (temp2)
26824 delete arg2;
26825 }
26826 return NULL;
26827}
26828
26829
26830SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26831 PyObject *resultobj = 0;
26832 wxListItem *arg1 = (wxListItem *) 0 ;
26833 int arg2 ;
26834 void *argp1 = 0 ;
26835 int res1 = 0 ;
26836 int val2 ;
26837 int ecode2 = 0 ;
26838 PyObject * obj0 = 0 ;
26839 PyObject * obj1 = 0 ;
26840 char * kwnames[] = {
26841 (char *) "self",(char *) "image", NULL
26842 };
26843
26844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26846 if (!SWIG_IsOK(res1)) {
26847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26848 }
26849 arg1 = reinterpret_cast< wxListItem * >(argp1);
26850 ecode2 = SWIG_AsVal_int(obj1, &val2);
26851 if (!SWIG_IsOK(ecode2)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26853 }
26854 arg2 = static_cast< int >(val2);
26855 {
26856 PyThreadState* __tstate = wxPyBeginAllowThreads();
26857 (arg1)->SetImage(arg2);
26858 wxPyEndAllowThreads(__tstate);
26859 if (PyErr_Occurred()) SWIG_fail;
26860 }
26861 resultobj = SWIG_Py_Void();
26862 return resultobj;
26863fail:
26864 return NULL;
26865}
26866
26867
26868SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26869 PyObject *resultobj = 0;
26870 wxListItem *arg1 = (wxListItem *) 0 ;
26871 long arg2 ;
26872 void *argp1 = 0 ;
26873 int res1 = 0 ;
26874 long val2 ;
26875 int ecode2 = 0 ;
26876 PyObject * obj0 = 0 ;
26877 PyObject * obj1 = 0 ;
26878 char * kwnames[] = {
26879 (char *) "self",(char *) "data", NULL
26880 };
26881
26882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26884 if (!SWIG_IsOK(res1)) {
26885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26886 }
26887 arg1 = reinterpret_cast< wxListItem * >(argp1);
26888 ecode2 = SWIG_AsVal_long(obj1, &val2);
26889 if (!SWIG_IsOK(ecode2)) {
26890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26891 }
26892 arg2 = static_cast< long >(val2);
26893 {
26894 PyThreadState* __tstate = wxPyBeginAllowThreads();
26895 (arg1)->SetData(arg2);
26896 wxPyEndAllowThreads(__tstate);
26897 if (PyErr_Occurred()) SWIG_fail;
26898 }
26899 resultobj = SWIG_Py_Void();
26900 return resultobj;
26901fail:
26902 return NULL;
26903}
26904
26905
26906SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26907 PyObject *resultobj = 0;
26908 wxListItem *arg1 = (wxListItem *) 0 ;
26909 int arg2 ;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 int val2 ;
26913 int ecode2 = 0 ;
26914 PyObject * obj0 = 0 ;
26915 PyObject * obj1 = 0 ;
26916 char * kwnames[] = {
26917 (char *) "self",(char *) "width", NULL
26918 };
26919
26920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26922 if (!SWIG_IsOK(res1)) {
26923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26924 }
26925 arg1 = reinterpret_cast< wxListItem * >(argp1);
26926 ecode2 = SWIG_AsVal_int(obj1, &val2);
26927 if (!SWIG_IsOK(ecode2)) {
26928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26929 }
26930 arg2 = static_cast< int >(val2);
26931 {
26932 PyThreadState* __tstate = wxPyBeginAllowThreads();
26933 (arg1)->SetWidth(arg2);
26934 wxPyEndAllowThreads(__tstate);
26935 if (PyErr_Occurred()) SWIG_fail;
26936 }
26937 resultobj = SWIG_Py_Void();
26938 return resultobj;
26939fail:
26940 return NULL;
26941}
26942
26943
26944SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26945 PyObject *resultobj = 0;
26946 wxListItem *arg1 = (wxListItem *) 0 ;
26947 wxListColumnFormat arg2 ;
26948 void *argp1 = 0 ;
26949 int res1 = 0 ;
26950 int val2 ;
26951 int ecode2 = 0 ;
26952 PyObject * obj0 = 0 ;
26953 PyObject * obj1 = 0 ;
26954 char * kwnames[] = {
26955 (char *) "self",(char *) "align", NULL
26956 };
26957
26958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26960 if (!SWIG_IsOK(res1)) {
26961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26962 }
26963 arg1 = reinterpret_cast< wxListItem * >(argp1);
26964 ecode2 = SWIG_AsVal_int(obj1, &val2);
26965 if (!SWIG_IsOK(ecode2)) {
26966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26967 }
26968 arg2 = static_cast< wxListColumnFormat >(val2);
26969 {
26970 PyThreadState* __tstate = wxPyBeginAllowThreads();
26971 (arg1)->SetAlign(arg2);
26972 wxPyEndAllowThreads(__tstate);
26973 if (PyErr_Occurred()) SWIG_fail;
26974 }
26975 resultobj = SWIG_Py_Void();
26976 return resultobj;
26977fail:
26978 return NULL;
26979}
26980
26981
26982SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26983 PyObject *resultobj = 0;
26984 wxListItem *arg1 = (wxListItem *) 0 ;
26985 wxColour *arg2 = 0 ;
26986 void *argp1 = 0 ;
26987 int res1 = 0 ;
26988 wxColour temp2 ;
26989 PyObject * obj0 = 0 ;
26990 PyObject * obj1 = 0 ;
26991 char * kwnames[] = {
26992 (char *) "self",(char *) "colText", NULL
26993 };
26994
26995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26997 if (!SWIG_IsOK(res1)) {
26998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26999 }
27000 arg1 = reinterpret_cast< wxListItem * >(argp1);
27001 {
27002 arg2 = &temp2;
27003 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27004 }
27005 {
27006 PyThreadState* __tstate = wxPyBeginAllowThreads();
27007 (arg1)->SetTextColour((wxColour const &)*arg2);
27008 wxPyEndAllowThreads(__tstate);
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_Py_Void();
27012 return resultobj;
27013fail:
27014 return NULL;
27015}
27016
27017
27018SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27019 PyObject *resultobj = 0;
27020 wxListItem *arg1 = (wxListItem *) 0 ;
27021 wxColour *arg2 = 0 ;
27022 void *argp1 = 0 ;
27023 int res1 = 0 ;
27024 wxColour temp2 ;
27025 PyObject * obj0 = 0 ;
27026 PyObject * obj1 = 0 ;
27027 char * kwnames[] = {
27028 (char *) "self",(char *) "colBack", NULL
27029 };
27030
27031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 {
27038 arg2 = &temp2;
27039 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27040 }
27041 {
27042 PyThreadState* __tstate = wxPyBeginAllowThreads();
27043 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_Py_Void();
27048 return resultobj;
27049fail:
27050 return NULL;
27051}
27052
27053
27054SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 wxFont *arg2 = 0 ;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 void *argp2 = 0 ;
27061 int res2 = 0 ;
27062 PyObject * obj0 = 0 ;
27063 PyObject * obj1 = 0 ;
27064 char * kwnames[] = {
27065 (char *) "self",(char *) "font", NULL
27066 };
27067
27068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27070 if (!SWIG_IsOK(res1)) {
27071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27072 }
27073 arg1 = reinterpret_cast< wxListItem * >(argp1);
27074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27075 if (!SWIG_IsOK(res2)) {
27076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27077 }
27078 if (!argp2) {
27079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27080 }
27081 arg2 = reinterpret_cast< wxFont * >(argp2);
27082 {
27083 PyThreadState* __tstate = wxPyBeginAllowThreads();
27084 (arg1)->SetFont((wxFont const &)*arg2);
27085 wxPyEndAllowThreads(__tstate);
27086 if (PyErr_Occurred()) SWIG_fail;
27087 }
27088 resultobj = SWIG_Py_Void();
27089 return resultobj;
27090fail:
27091 return NULL;
d55e5bfc
RD
27092}
27093
27094
1bd55598
RD
27095SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27096 PyObject *resultobj = 0;
27097 wxListItem *arg1 = (wxListItem *) 0 ;
27098 long result;
27099 void *argp1 = 0 ;
27100 int res1 = 0 ;
27101 PyObject *swig_obj[1] ;
27102
27103 if (!args) SWIG_fail;
27104 swig_obj[0] = args;
27105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27106 if (!SWIG_IsOK(res1)) {
27107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27108 }
27109 arg1 = reinterpret_cast< wxListItem * >(argp1);
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (long)(arg1)->GetMask();
27113 wxPyEndAllowThreads(__tstate);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 resultobj = SWIG_From_long(static_cast< long >(result));
27117 return resultobj;
27118fail:
27119 return NULL;
d55e5bfc
RD
27120}
27121
27122
1bd55598
RD
27123SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27124 PyObject *resultobj = 0;
27125 wxListItem *arg1 = (wxListItem *) 0 ;
27126 long result;
27127 void *argp1 = 0 ;
27128 int res1 = 0 ;
27129 PyObject *swig_obj[1] ;
27130
27131 if (!args) SWIG_fail;
27132 swig_obj[0] = args;
27133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27134 if (!SWIG_IsOK(res1)) {
27135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27136 }
27137 arg1 = reinterpret_cast< wxListItem * >(argp1);
27138 {
27139 PyThreadState* __tstate = wxPyBeginAllowThreads();
27140 result = (long)(arg1)->GetId();
27141 wxPyEndAllowThreads(__tstate);
27142 if (PyErr_Occurred()) SWIG_fail;
27143 }
27144 resultobj = SWIG_From_long(static_cast< long >(result));
27145 return resultobj;
27146fail:
27147 return NULL;
d55e5bfc
RD
27148}
27149
27150
1bd55598
RD
27151SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27152 PyObject *resultobj = 0;
27153 wxListItem *arg1 = (wxListItem *) 0 ;
27154 int result;
27155 void *argp1 = 0 ;
27156 int res1 = 0 ;
27157 PyObject *swig_obj[1] ;
27158
27159 if (!args) SWIG_fail;
27160 swig_obj[0] = args;
27161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27162 if (!SWIG_IsOK(res1)) {
27163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27164 }
27165 arg1 = reinterpret_cast< wxListItem * >(argp1);
27166 {
27167 PyThreadState* __tstate = wxPyBeginAllowThreads();
27168 result = (int)(arg1)->GetColumn();
27169 wxPyEndAllowThreads(__tstate);
27170 if (PyErr_Occurred()) SWIG_fail;
27171 }
27172 resultobj = SWIG_From_int(static_cast< int >(result));
27173 return resultobj;
27174fail:
27175 return NULL;
d55e5bfc
RD
27176}
27177
27178
1bd55598
RD
27179SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27180 PyObject *resultobj = 0;
27181 wxListItem *arg1 = (wxListItem *) 0 ;
27182 long result;
27183 void *argp1 = 0 ;
27184 int res1 = 0 ;
27185 PyObject *swig_obj[1] ;
27186
27187 if (!args) SWIG_fail;
27188 swig_obj[0] = args;
27189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27190 if (!SWIG_IsOK(res1)) {
27191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27192 }
27193 arg1 = reinterpret_cast< wxListItem * >(argp1);
27194 {
27195 PyThreadState* __tstate = wxPyBeginAllowThreads();
27196 result = (long)(arg1)->GetState();
27197 wxPyEndAllowThreads(__tstate);
27198 if (PyErr_Occurred()) SWIG_fail;
27199 }
27200 resultobj = SWIG_From_long(static_cast< long >(result));
27201 return resultobj;
27202fail:
27203 return NULL;
8fb0e70a
RD
27204}
27205
27206
1bd55598
RD
27207SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27208 PyObject *resultobj = 0;
27209 wxListItem *arg1 = (wxListItem *) 0 ;
27210 wxString *result = 0 ;
27211 void *argp1 = 0 ;
27212 int res1 = 0 ;
27213 PyObject *swig_obj[1] ;
27214
27215 if (!args) SWIG_fail;
27216 swig_obj[0] = args;
27217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27218 if (!SWIG_IsOK(res1)) {
27219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27220 }
27221 arg1 = reinterpret_cast< wxListItem * >(argp1);
27222 {
27223 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 27224 {
1bd55598
RD
27225 wxString const &_result_ref = (arg1)->GetText();
27226 result = (wxString *) &_result_ref;
36ed4f51 27227 }
1bd55598
RD
27228 wxPyEndAllowThreads(__tstate);
27229 if (PyErr_Occurred()) SWIG_fail;
27230 }
27231 {
27232#if wxUSE_UNICODE
27233 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27234#else
27235 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27236#endif
27237 }
27238 return resultobj;
27239fail:
27240 return NULL;
d55e5bfc
RD
27241}
27242
27243
1bd55598
RD
27244SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxListItem *arg1 = (wxListItem *) 0 ;
27247 int result;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 PyObject *swig_obj[1] ;
27251
27252 if (!args) SWIG_fail;
27253 swig_obj[0] = args;
27254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27257 }
27258 arg1 = reinterpret_cast< wxListItem * >(argp1);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
27261 result = (int)(arg1)->GetImage();
27262 wxPyEndAllowThreads(__tstate);
27263 if (PyErr_Occurred()) SWIG_fail;
27264 }
27265 resultobj = SWIG_From_int(static_cast< int >(result));
27266 return resultobj;
27267fail:
27268 return NULL;
d55e5bfc
RD
27269}
27270
27271
1bd55598
RD
27272SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 long result;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 PyObject *swig_obj[1] ;
27279
27280 if (!args) SWIG_fail;
27281 swig_obj[0] = args;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 {
27288 PyThreadState* __tstate = wxPyBeginAllowThreads();
27289 result = (long)(arg1)->GetData();
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_From_long(static_cast< long >(result));
27294 return resultobj;
27295fail:
27296 return NULL;
d55e5bfc
RD
27297}
27298
27299
1bd55598
RD
27300SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27301 PyObject *resultobj = 0;
27302 wxListItem *arg1 = (wxListItem *) 0 ;
27303 int result;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 PyObject *swig_obj[1] ;
27307
27308 if (!args) SWIG_fail;
27309 swig_obj[0] = args;
27310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27313 }
27314 arg1 = reinterpret_cast< wxListItem * >(argp1);
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (int)(arg1)->GetWidth();
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 resultobj = SWIG_From_int(static_cast< int >(result));
27322 return resultobj;
27323fail:
27324 return NULL;
d55e5bfc
RD
27325}
27326
27327
1bd55598
RD
27328SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27329 PyObject *resultobj = 0;
27330 wxListItem *arg1 = (wxListItem *) 0 ;
27331 wxListColumnFormat result;
27332 void *argp1 = 0 ;
27333 int res1 = 0 ;
27334 PyObject *swig_obj[1] ;
27335
27336 if (!args) SWIG_fail;
27337 swig_obj[0] = args;
27338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27339 if (!SWIG_IsOK(res1)) {
27340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27341 }
27342 arg1 = reinterpret_cast< wxListItem * >(argp1);
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 result = (wxListColumnFormat)(arg1)->GetAlign();
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 resultobj = SWIG_From_int(static_cast< int >(result));
27350 return resultobj;
27351fail:
27352 return NULL;
d55e5bfc
RD
27353}
27354
27355
1bd55598
RD
27356SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27357 PyObject *resultobj = 0;
27358 wxListItem *arg1 = (wxListItem *) 0 ;
27359 wxListItemAttr *result = 0 ;
27360 void *argp1 = 0 ;
27361 int res1 = 0 ;
27362 PyObject *swig_obj[1] ;
27363
27364 if (!args) SWIG_fail;
27365 swig_obj[0] = args;
27366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27369 }
27370 arg1 = reinterpret_cast< wxListItem * >(argp1);
27371 {
27372 PyThreadState* __tstate = wxPyBeginAllowThreads();
27373 result = (wxListItemAttr *)(arg1)->GetAttributes();
27374 wxPyEndAllowThreads(__tstate);
27375 if (PyErr_Occurred()) SWIG_fail;
27376 }
27377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27378 return resultobj;
27379fail:
27380 return NULL;
d55e5bfc
RD
27381}
27382
27383
1bd55598
RD
27384SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27385 PyObject *resultobj = 0;
27386 wxListItem *arg1 = (wxListItem *) 0 ;
27387 bool result;
27388 void *argp1 = 0 ;
27389 int res1 = 0 ;
27390 PyObject *swig_obj[1] ;
27391
27392 if (!args) SWIG_fail;
27393 swig_obj[0] = args;
27394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27395 if (!SWIG_IsOK(res1)) {
27396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27397 }
27398 arg1 = reinterpret_cast< wxListItem * >(argp1);
27399 {
27400 PyThreadState* __tstate = wxPyBeginAllowThreads();
27401 result = (bool)(arg1)->HasAttributes();
27402 wxPyEndAllowThreads(__tstate);
27403 if (PyErr_Occurred()) SWIG_fail;
27404 }
27405 {
27406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27407 }
27408 return resultobj;
27409fail:
27410 return NULL;
d55e5bfc
RD
27411}
27412
27413
1bd55598
RD
27414SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27415 PyObject *resultobj = 0;
27416 wxListItem *arg1 = (wxListItem *) 0 ;
27417 wxColour result;
27418 void *argp1 = 0 ;
27419 int res1 = 0 ;
27420 PyObject *swig_obj[1] ;
27421
27422 if (!args) SWIG_fail;
27423 swig_obj[0] = args;
27424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27425 if (!SWIG_IsOK(res1)) {
27426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27427 }
27428 arg1 = reinterpret_cast< wxListItem * >(argp1);
27429 {
27430 PyThreadState* __tstate = wxPyBeginAllowThreads();
27431 result = ((wxListItem const *)arg1)->GetTextColour();
27432 wxPyEndAllowThreads(__tstate);
27433 if (PyErr_Occurred()) SWIG_fail;
27434 }
27435 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27436 return resultobj;
27437fail:
27438 return NULL;
d55e5bfc
RD
27439}
27440
27441
1bd55598
RD
27442SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27443 PyObject *resultobj = 0;
27444 wxListItem *arg1 = (wxListItem *) 0 ;
27445 wxColour result;
27446 void *argp1 = 0 ;
27447 int res1 = 0 ;
27448 PyObject *swig_obj[1] ;
27449
27450 if (!args) SWIG_fail;
27451 swig_obj[0] = args;
27452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27455 }
27456 arg1 = reinterpret_cast< wxListItem * >(argp1);
27457 {
27458 PyThreadState* __tstate = wxPyBeginAllowThreads();
27459 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27460 wxPyEndAllowThreads(__tstate);
27461 if (PyErr_Occurred()) SWIG_fail;
27462 }
27463 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27464 return resultobj;
27465fail:
27466 return NULL;
d55e5bfc
RD
27467}
27468
27469
1bd55598
RD
27470SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27471 PyObject *resultobj = 0;
27472 wxListItem *arg1 = (wxListItem *) 0 ;
27473 wxFont result;
27474 void *argp1 = 0 ;
27475 int res1 = 0 ;
27476 PyObject *swig_obj[1] ;
27477
27478 if (!args) SWIG_fail;
27479 swig_obj[0] = args;
27480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27481 if (!SWIG_IsOK(res1)) {
27482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27483 }
27484 arg1 = reinterpret_cast< wxListItem * >(argp1);
27485 {
27486 PyThreadState* __tstate = wxPyBeginAllowThreads();
27487 result = ((wxListItem const *)arg1)->GetFont();
27488 wxPyEndAllowThreads(__tstate);
27489 if (PyErr_Occurred()) SWIG_fail;
27490 }
27491 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27492 return resultobj;
27493fail:
27494 return NULL;
27495}
27496
27497
27498SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27499 PyObject *resultobj = 0;
27500 wxListItem *arg1 = (wxListItem *) 0 ;
27501 long arg2 ;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 long val2 ;
27505 int ecode2 = 0 ;
27506 PyObject *swig_obj[2] ;
27507
27508 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27510 if (!SWIG_IsOK(res1)) {
27511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27512 }
27513 arg1 = reinterpret_cast< wxListItem * >(argp1);
27514 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27515 if (!SWIG_IsOK(ecode2)) {
27516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27517 }
27518 arg2 = static_cast< long >(val2);
27519 if (arg1) (arg1)->m_mask = arg2;
27520
27521 resultobj = SWIG_Py_Void();
27522 return resultobj;
27523fail:
27524 return NULL;
d55e5bfc
RD
27525}
27526
27527
1bd55598
RD
27528SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27529 PyObject *resultobj = 0;
27530 wxListItem *arg1 = (wxListItem *) 0 ;
27531 long result;
27532 void *argp1 = 0 ;
27533 int res1 = 0 ;
27534 PyObject *swig_obj[1] ;
27535
27536 if (!args) SWIG_fail;
27537 swig_obj[0] = args;
27538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27539 if (!SWIG_IsOK(res1)) {
27540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27541 }
27542 arg1 = reinterpret_cast< wxListItem * >(argp1);
27543 result = (long) ((arg1)->m_mask);
27544 resultobj = SWIG_From_long(static_cast< long >(result));
27545 return resultobj;
27546fail:
27547 return NULL;
27548}
27549
27550
27551SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27552 PyObject *resultobj = 0;
27553 wxListItem *arg1 = (wxListItem *) 0 ;
27554 long arg2 ;
27555 void *argp1 = 0 ;
27556 int res1 = 0 ;
27557 long val2 ;
27558 int ecode2 = 0 ;
27559 PyObject *swig_obj[2] ;
27560
27561 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27563 if (!SWIG_IsOK(res1)) {
27564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27565 }
27566 arg1 = reinterpret_cast< wxListItem * >(argp1);
27567 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27568 if (!SWIG_IsOK(ecode2)) {
27569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27570 }
27571 arg2 = static_cast< long >(val2);
27572 if (arg1) (arg1)->m_itemId = arg2;
27573
27574 resultobj = SWIG_Py_Void();
27575 return resultobj;
27576fail:
27577 return NULL;
7e08d4ef
RD
27578}
27579
27580
1bd55598
RD
27581SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27582 PyObject *resultobj = 0;
27583 wxListItem *arg1 = (wxListItem *) 0 ;
27584 long result;
27585 void *argp1 = 0 ;
27586 int res1 = 0 ;
27587 PyObject *swig_obj[1] ;
27588
27589 if (!args) SWIG_fail;
27590 swig_obj[0] = args;
27591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27592 if (!SWIG_IsOK(res1)) {
27593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27594 }
27595 arg1 = reinterpret_cast< wxListItem * >(argp1);
27596 result = (long) ((arg1)->m_itemId);
27597 resultobj = SWIG_From_long(static_cast< long >(result));
27598 return resultobj;
27599fail:
27600 return NULL;
27601}
27602
27603
27604SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27605 PyObject *resultobj = 0;
27606 wxListItem *arg1 = (wxListItem *) 0 ;
27607 int arg2 ;
27608 void *argp1 = 0 ;
27609 int res1 = 0 ;
27610 int val2 ;
27611 int ecode2 = 0 ;
27612 PyObject *swig_obj[2] ;
27613
27614 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27616 if (!SWIG_IsOK(res1)) {
27617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27618 }
27619 arg1 = reinterpret_cast< wxListItem * >(argp1);
27620 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27621 if (!SWIG_IsOK(ecode2)) {
27622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27623 }
27624 arg2 = static_cast< int >(val2);
27625 if (arg1) (arg1)->m_col = arg2;
27626
27627 resultobj = SWIG_Py_Void();
27628 return resultobj;
27629fail:
27630 return NULL;
7e08d4ef
RD
27631}
27632
27633
1bd55598
RD
27634SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27635 PyObject *resultobj = 0;
27636 wxListItem *arg1 = (wxListItem *) 0 ;
27637 int result;
27638 void *argp1 = 0 ;
27639 int res1 = 0 ;
27640 PyObject *swig_obj[1] ;
27641
27642 if (!args) SWIG_fail;
27643 swig_obj[0] = args;
27644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27645 if (!SWIG_IsOK(res1)) {
27646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27647 }
27648 arg1 = reinterpret_cast< wxListItem * >(argp1);
27649 result = (int) ((arg1)->m_col);
27650 resultobj = SWIG_From_int(static_cast< int >(result));
27651 return resultobj;
27652fail:
27653 return NULL;
27654}
27655
27656
27657SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27658 PyObject *resultobj = 0;
27659 wxListItem *arg1 = (wxListItem *) 0 ;
27660 long arg2 ;
27661 void *argp1 = 0 ;
27662 int res1 = 0 ;
27663 long val2 ;
27664 int ecode2 = 0 ;
27665 PyObject *swig_obj[2] ;
27666
27667 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27669 if (!SWIG_IsOK(res1)) {
27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27671 }
27672 arg1 = reinterpret_cast< wxListItem * >(argp1);
27673 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27674 if (!SWIG_IsOK(ecode2)) {
27675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27676 }
27677 arg2 = static_cast< long >(val2);
27678 if (arg1) (arg1)->m_state = arg2;
27679
27680 resultobj = SWIG_Py_Void();
27681 return resultobj;
27682fail:
27683 return NULL;
7e08d4ef
RD
27684}
27685
27686
1bd55598
RD
27687SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27688 PyObject *resultobj = 0;
27689 wxListItem *arg1 = (wxListItem *) 0 ;
27690 long result;
27691 void *argp1 = 0 ;
27692 int res1 = 0 ;
27693 PyObject *swig_obj[1] ;
27694
27695 if (!args) SWIG_fail;
27696 swig_obj[0] = args;
27697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27698 if (!SWIG_IsOK(res1)) {
27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27700 }
27701 arg1 = reinterpret_cast< wxListItem * >(argp1);
27702 result = (long) ((arg1)->m_state);
27703 resultobj = SWIG_From_long(static_cast< long >(result));
27704 return resultobj;
27705fail:
27706 return NULL;
27707}
27708
27709
27710SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27711 PyObject *resultobj = 0;
27712 wxListItem *arg1 = (wxListItem *) 0 ;
27713 long arg2 ;
27714 void *argp1 = 0 ;
27715 int res1 = 0 ;
27716 long val2 ;
27717 int ecode2 = 0 ;
27718 PyObject *swig_obj[2] ;
27719
27720 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27722 if (!SWIG_IsOK(res1)) {
27723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27724 }
27725 arg1 = reinterpret_cast< wxListItem * >(argp1);
27726 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27727 if (!SWIG_IsOK(ecode2)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27729 }
27730 arg2 = static_cast< long >(val2);
27731 if (arg1) (arg1)->m_stateMask = arg2;
27732
27733 resultobj = SWIG_Py_Void();
27734 return resultobj;
27735fail:
27736 return NULL;
7e08d4ef
RD
27737}
27738
27739
1bd55598
RD
27740SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27741 PyObject *resultobj = 0;
27742 wxListItem *arg1 = (wxListItem *) 0 ;
27743 long result;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 PyObject *swig_obj[1] ;
27747
27748 if (!args) SWIG_fail;
27749 swig_obj[0] = args;
27750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27751 if (!SWIG_IsOK(res1)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27753 }
27754 arg1 = reinterpret_cast< wxListItem * >(argp1);
27755 result = (long) ((arg1)->m_stateMask);
27756 resultobj = SWIG_From_long(static_cast< long >(result));
27757 return resultobj;
27758fail:
27759 return NULL;
27760}
27761
27762
27763SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27764 PyObject *resultobj = 0;
27765 wxListItem *arg1 = (wxListItem *) 0 ;
27766 wxString *arg2 = (wxString *) 0 ;
27767 void *argp1 = 0 ;
27768 int res1 = 0 ;
27769 bool temp2 = false ;
27770 PyObject *swig_obj[2] ;
27771
27772 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27774 if (!SWIG_IsOK(res1)) {
27775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27776 }
27777 arg1 = reinterpret_cast< wxListItem * >(argp1);
27778 {
27779 arg2 = wxString_in_helper(swig_obj[1]);
27780 if (arg2 == NULL) SWIG_fail;
27781 temp2 = true;
27782 }
27783 if (arg1) (arg1)->m_text = *arg2;
27784
27785 resultobj = SWIG_Py_Void();
27786 {
27787 if (temp2)
27788 delete arg2;
27789 }
27790 return resultobj;
27791fail:
27792 {
27793 if (temp2)
27794 delete arg2;
27795 }
27796 return NULL;
7e08d4ef
RD
27797}
27798
27799
1bd55598
RD
27800SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27801 PyObject *resultobj = 0;
27802 wxListItem *arg1 = (wxListItem *) 0 ;
27803 wxString *result = 0 ;
27804 void *argp1 = 0 ;
27805 int res1 = 0 ;
27806 PyObject *swig_obj[1] ;
27807
27808 if (!args) SWIG_fail;
27809 swig_obj[0] = args;
27810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27811 if (!SWIG_IsOK(res1)) {
27812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27813 }
27814 arg1 = reinterpret_cast< wxListItem * >(argp1);
27815 result = (wxString *)& ((arg1)->m_text);
27816 {
27817#if wxUSE_UNICODE
27818 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27819#else
27820 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27821#endif
27822 }
27823 return resultobj;
27824fail:
27825 return NULL;
d55e5bfc
RD
27826}
27827
27828
1bd55598
RD
27829SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27830 PyObject *resultobj = 0;
27831 wxListItem *arg1 = (wxListItem *) 0 ;
27832 int arg2 ;
27833 void *argp1 = 0 ;
27834 int res1 = 0 ;
27835 int val2 ;
27836 int ecode2 = 0 ;
27837 PyObject *swig_obj[2] ;
27838
27839 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27841 if (!SWIG_IsOK(res1)) {
27842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27843 }
27844 arg1 = reinterpret_cast< wxListItem * >(argp1);
27845 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27846 if (!SWIG_IsOK(ecode2)) {
27847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27848 }
27849 arg2 = static_cast< int >(val2);
27850 if (arg1) (arg1)->m_image = arg2;
27851
27852 resultobj = SWIG_Py_Void();
27853 return resultobj;
27854fail:
27855 return NULL;
d55e5bfc
RD
27856}
27857
27858
1bd55598
RD
27859SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27860 PyObject *resultobj = 0;
27861 wxListItem *arg1 = (wxListItem *) 0 ;
27862 int result;
27863 void *argp1 = 0 ;
27864 int res1 = 0 ;
27865 PyObject *swig_obj[1] ;
27866
27867 if (!args) SWIG_fail;
27868 swig_obj[0] = args;
27869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27872 }
27873 arg1 = reinterpret_cast< wxListItem * >(argp1);
27874 result = (int) ((arg1)->m_image);
27875 resultobj = SWIG_From_int(static_cast< int >(result));
27876 return resultobj;
27877fail:
27878 return NULL;
27879}
27880
27881
27882SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27883 PyObject *resultobj = 0;
27884 wxListItem *arg1 = (wxListItem *) 0 ;
27885 long arg2 ;
27886 void *argp1 = 0 ;
27887 int res1 = 0 ;
27888 long val2 ;
27889 int ecode2 = 0 ;
27890 PyObject *swig_obj[2] ;
27891
27892 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27894 if (!SWIG_IsOK(res1)) {
27895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27896 }
27897 arg1 = reinterpret_cast< wxListItem * >(argp1);
27898 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27899 if (!SWIG_IsOK(ecode2)) {
27900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27901 }
27902 arg2 = static_cast< long >(val2);
27903 if (arg1) (arg1)->m_data = arg2;
27904
27905 resultobj = SWIG_Py_Void();
27906 return resultobj;
27907fail:
27908 return NULL;
d55e5bfc
RD
27909}
27910
27911
1bd55598
RD
27912SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27913 PyObject *resultobj = 0;
27914 wxListItem *arg1 = (wxListItem *) 0 ;
27915 long result;
27916 void *argp1 = 0 ;
27917 int res1 = 0 ;
27918 PyObject *swig_obj[1] ;
27919
27920 if (!args) SWIG_fail;
27921 swig_obj[0] = args;
27922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27925 }
27926 arg1 = reinterpret_cast< wxListItem * >(argp1);
27927 result = (long) ((arg1)->m_data);
27928 resultobj = SWIG_From_long(static_cast< long >(result));
27929 return resultobj;
27930fail:
27931 return NULL;
27932}
27933
27934
27935SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936 PyObject *resultobj = 0;
27937 wxListItem *arg1 = (wxListItem *) 0 ;
27938 int arg2 ;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 int val2 ;
27942 int ecode2 = 0 ;
27943 PyObject *swig_obj[2] ;
27944
27945 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27947 if (!SWIG_IsOK(res1)) {
27948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27949 }
27950 arg1 = reinterpret_cast< wxListItem * >(argp1);
27951 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27952 if (!SWIG_IsOK(ecode2)) {
27953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27954 }
27955 arg2 = static_cast< int >(val2);
27956 if (arg1) (arg1)->m_format = arg2;
27957
27958 resultobj = SWIG_Py_Void();
27959 return resultobj;
27960fail:
27961 return NULL;
d55e5bfc
RD
27962}
27963
27964
1bd55598
RD
27965SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27966 PyObject *resultobj = 0;
27967 wxListItem *arg1 = (wxListItem *) 0 ;
27968 int result;
27969 void *argp1 = 0 ;
27970 int res1 = 0 ;
27971 PyObject *swig_obj[1] ;
27972
27973 if (!args) SWIG_fail;
27974 swig_obj[0] = args;
27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27978 }
27979 arg1 = reinterpret_cast< wxListItem * >(argp1);
27980 result = (int) ((arg1)->m_format);
27981 resultobj = SWIG_From_int(static_cast< int >(result));
27982 return resultobj;
27983fail:
27984 return NULL;
27985}
27986
27987
27988SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxListItem *arg1 = (wxListItem *) 0 ;
27991 int arg2 ;
27992 void *argp1 = 0 ;
27993 int res1 = 0 ;
27994 int val2 ;
27995 int ecode2 = 0 ;
27996 PyObject *swig_obj[2] ;
27997
27998 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28002 }
28003 arg1 = reinterpret_cast< wxListItem * >(argp1);
28004 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28005 if (!SWIG_IsOK(ecode2)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28007 }
28008 arg2 = static_cast< int >(val2);
28009 if (arg1) (arg1)->m_width = arg2;
28010
28011 resultobj = SWIG_Py_Void();
28012 return resultobj;
28013fail:
28014 return NULL;
d55e5bfc
RD
28015}
28016
28017
1bd55598
RD
28018SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28019 PyObject *resultobj = 0;
28020 wxListItem *arg1 = (wxListItem *) 0 ;
28021 int result;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 PyObject *swig_obj[1] ;
28025
28026 if (!args) SWIG_fail;
28027 swig_obj[0] = args;
28028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28029 if (!SWIG_IsOK(res1)) {
28030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28031 }
28032 arg1 = reinterpret_cast< wxListItem * >(argp1);
28033 result = (int) ((arg1)->m_width);
28034 resultobj = SWIG_From_int(static_cast< int >(result));
28035 return resultobj;
28036fail:
28037 return NULL;
28038}
28039
28040
28041SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *obj;
28043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28044 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28045 return SWIG_Py_Void();
28046}
28047
28048SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28049 return SWIG_Python_InitShadowInstance(args);
28050}
28051
28052SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28053 PyObject *resultobj = 0;
28054 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28055 int arg2 = (int) 0 ;
28056 wxListEvent *result = 0 ;
28057 int val1 ;
28058 int ecode1 = 0 ;
28059 int val2 ;
28060 int ecode2 = 0 ;
28061 PyObject * obj0 = 0 ;
28062 PyObject * obj1 = 0 ;
28063 char * kwnames[] = {
28064 (char *) "commandType",(char *) "id", NULL
28065 };
28066
28067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28068 if (obj0) {
28069 ecode1 = SWIG_AsVal_int(obj0, &val1);
28070 if (!SWIG_IsOK(ecode1)) {
28071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28072 }
28073 arg1 = static_cast< wxEventType >(val1);
28074 }
28075 if (obj1) {
28076 ecode2 = SWIG_AsVal_int(obj1, &val2);
28077 if (!SWIG_IsOK(ecode2)) {
28078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28079 }
28080 arg2 = static_cast< int >(val2);
28081 }
28082 {
28083 PyThreadState* __tstate = wxPyBeginAllowThreads();
28084 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28085 wxPyEndAllowThreads(__tstate);
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
28088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28089 return resultobj;
28090fail:
28091 return NULL;
28092}
28093
28094
28095SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28096 PyObject *resultobj = 0;
28097 wxListEvent *arg1 = (wxListEvent *) 0 ;
28098 int arg2 ;
28099 void *argp1 = 0 ;
28100 int res1 = 0 ;
28101 int val2 ;
28102 int ecode2 = 0 ;
28103 PyObject *swig_obj[2] ;
28104
28105 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28107 if (!SWIG_IsOK(res1)) {
28108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28109 }
28110 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28111 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28112 if (!SWIG_IsOK(ecode2)) {
28113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28114 }
28115 arg2 = static_cast< int >(val2);
28116 if (arg1) (arg1)->m_code = arg2;
28117
28118 resultobj = SWIG_Py_Void();
28119 return resultobj;
28120fail:
28121 return NULL;
d55e5bfc
RD
28122}
28123
28124
1bd55598
RD
28125SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28126 PyObject *resultobj = 0;
28127 wxListEvent *arg1 = (wxListEvent *) 0 ;
28128 int result;
28129 void *argp1 = 0 ;
28130 int res1 = 0 ;
28131 PyObject *swig_obj[1] ;
28132
28133 if (!args) SWIG_fail;
28134 swig_obj[0] = args;
28135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28136 if (!SWIG_IsOK(res1)) {
28137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28138 }
28139 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28140 result = (int) ((arg1)->m_code);
28141 resultobj = SWIG_From_int(static_cast< int >(result));
28142 return resultobj;
28143fail:
28144 return NULL;
28145}
28146
28147
28148SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28149 PyObject *resultobj = 0;
28150 wxListEvent *arg1 = (wxListEvent *) 0 ;
28151 long arg2 ;
28152 void *argp1 = 0 ;
28153 int res1 = 0 ;
28154 long val2 ;
28155 int ecode2 = 0 ;
28156 PyObject *swig_obj[2] ;
28157
28158 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28160 if (!SWIG_IsOK(res1)) {
28161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28162 }
28163 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28164 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28165 if (!SWIG_IsOK(ecode2)) {
28166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28167 }
28168 arg2 = static_cast< long >(val2);
28169 if (arg1) (arg1)->m_oldItemIndex = arg2;
28170
28171 resultobj = SWIG_Py_Void();
28172 return resultobj;
28173fail:
28174 return NULL;
d55e5bfc
RD
28175}
28176
28177
1bd55598
RD
28178SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28179 PyObject *resultobj = 0;
28180 wxListEvent *arg1 = (wxListEvent *) 0 ;
28181 long result;
28182 void *argp1 = 0 ;
28183 int res1 = 0 ;
28184 PyObject *swig_obj[1] ;
28185
28186 if (!args) SWIG_fail;
28187 swig_obj[0] = args;
28188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28189 if (!SWIG_IsOK(res1)) {
28190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28191 }
28192 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28193 result = (long) ((arg1)->m_oldItemIndex);
28194 resultobj = SWIG_From_long(static_cast< long >(result));
28195 return resultobj;
28196fail:
28197 return NULL;
28198}
28199
28200
28201SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28202 PyObject *resultobj = 0;
28203 wxListEvent *arg1 = (wxListEvent *) 0 ;
28204 long arg2 ;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 long val2 ;
28208 int ecode2 = 0 ;
28209 PyObject *swig_obj[2] ;
28210
28211 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28213 if (!SWIG_IsOK(res1)) {
28214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28215 }
28216 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28217 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28218 if (!SWIG_IsOK(ecode2)) {
28219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28220 }
28221 arg2 = static_cast< long >(val2);
28222 if (arg1) (arg1)->m_itemIndex = arg2;
28223
28224 resultobj = SWIG_Py_Void();
28225 return resultobj;
28226fail:
28227 return NULL;
f20a2e1f
RD
28228}
28229
28230
1bd55598
RD
28231SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28232 PyObject *resultobj = 0;
28233 wxListEvent *arg1 = (wxListEvent *) 0 ;
28234 long result;
28235 void *argp1 = 0 ;
28236 int res1 = 0 ;
28237 PyObject *swig_obj[1] ;
28238
28239 if (!args) SWIG_fail;
28240 swig_obj[0] = args;
28241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28242 if (!SWIG_IsOK(res1)) {
28243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28244 }
28245 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28246 result = (long) ((arg1)->m_itemIndex);
28247 resultobj = SWIG_From_long(static_cast< long >(result));
28248 return resultobj;
28249fail:
28250 return NULL;
28251}
28252
28253
28254SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28255 PyObject *resultobj = 0;
28256 wxListEvent *arg1 = (wxListEvent *) 0 ;
28257 int arg2 ;
28258 void *argp1 = 0 ;
28259 int res1 = 0 ;
28260 int val2 ;
28261 int ecode2 = 0 ;
28262 PyObject *swig_obj[2] ;
28263
28264 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28266 if (!SWIG_IsOK(res1)) {
28267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28268 }
28269 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28270 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28271 if (!SWIG_IsOK(ecode2)) {
28272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28273 }
28274 arg2 = static_cast< int >(val2);
28275 if (arg1) (arg1)->m_col = arg2;
28276
28277 resultobj = SWIG_Py_Void();
28278 return resultobj;
28279fail:
28280 return NULL;
d55e5bfc
RD
28281}
28282
28283
1bd55598
RD
28284SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxListEvent *arg1 = (wxListEvent *) 0 ;
28287 int result;
28288 void *argp1 = 0 ;
28289 int res1 = 0 ;
28290 PyObject *swig_obj[1] ;
28291
28292 if (!args) SWIG_fail;
28293 swig_obj[0] = args;
28294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28295 if (!SWIG_IsOK(res1)) {
28296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28297 }
28298 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28299 result = (int) ((arg1)->m_col);
28300 resultobj = SWIG_From_int(static_cast< int >(result));
28301 return resultobj;
28302fail:
28303 return NULL;
28304}
28305
28306
28307SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *resultobj = 0;
28309 wxListEvent *arg1 = (wxListEvent *) 0 ;
28310 wxPoint *arg2 = (wxPoint *) 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 void *argp2 = 0 ;
28314 int res2 = 0 ;
28315 PyObject *swig_obj[2] ;
28316
28317 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28319 if (!SWIG_IsOK(res1)) {
28320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28321 }
28322 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28323 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28324 if (!SWIG_IsOK(res2)) {
28325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28326 }
28327 arg2 = reinterpret_cast< wxPoint * >(argp2);
28328 if (arg1) (arg1)->m_pointDrag = *arg2;
28329
28330 resultobj = SWIG_Py_Void();
28331 return resultobj;
28332fail:
28333 return NULL;
d55e5bfc
RD
28334}
28335
28336
1bd55598
RD
28337SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28338 PyObject *resultobj = 0;
28339 wxListEvent *arg1 = (wxListEvent *) 0 ;
28340 wxPoint *result = 0 ;
28341 void *argp1 = 0 ;
28342 int res1 = 0 ;
28343 PyObject *swig_obj[1] ;
28344
28345 if (!args) SWIG_fail;
28346 swig_obj[0] = args;
28347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28348 if (!SWIG_IsOK(res1)) {
28349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28350 }
28351 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28352 result = (wxPoint *)& ((arg1)->m_pointDrag);
28353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28354 return resultobj;
28355fail:
28356 return NULL;
28357}
28358
28359
28360SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28361 PyObject *resultobj = 0;
28362 wxListEvent *arg1 = (wxListEvent *) 0 ;
28363 wxListItem *result = 0 ;
28364 void *argp1 = 0 ;
28365 int res1 = 0 ;
28366 PyObject *swig_obj[1] ;
28367
28368 if (!args) SWIG_fail;
28369 swig_obj[0] = args;
28370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28371 if (!SWIG_IsOK(res1)) {
28372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28373 }
28374 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28375 result = (wxListItem *)& ((arg1)->m_item);
28376 {
3ecece7e 28377 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
28378 }
28379 return resultobj;
28380fail:
28381 return NULL;
d55e5bfc
RD
28382}
28383
28384
1bd55598
RD
28385SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28386 PyObject *resultobj = 0;
28387 wxListEvent *arg1 = (wxListEvent *) 0 ;
28388 int result;
28389 void *argp1 = 0 ;
28390 int res1 = 0 ;
28391 PyObject *swig_obj[1] ;
28392
28393 if (!args) SWIG_fail;
28394 swig_obj[0] = args;
28395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28396 if (!SWIG_IsOK(res1)) {
28397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28398 }
28399 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28400 {
28401 PyThreadState* __tstate = wxPyBeginAllowThreads();
28402 result = (int)(arg1)->GetKeyCode();
28403 wxPyEndAllowThreads(__tstate);
28404 if (PyErr_Occurred()) SWIG_fail;
28405 }
28406 resultobj = SWIG_From_int(static_cast< int >(result));
28407 return resultobj;
28408fail:
28409 return NULL;
d55e5bfc
RD
28410}
28411
28412
1bd55598
RD
28413SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28414 PyObject *resultobj = 0;
28415 wxListEvent *arg1 = (wxListEvent *) 0 ;
28416 long result;
28417 void *argp1 = 0 ;
28418 int res1 = 0 ;
28419 PyObject *swig_obj[1] ;
28420
28421 if (!args) SWIG_fail;
28422 swig_obj[0] = args;
28423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28424 if (!SWIG_IsOK(res1)) {
28425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28426 }
28427 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (long)(arg1)->GetIndex();
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 resultobj = SWIG_From_long(static_cast< long >(result));
28435 return resultobj;
28436fail:
28437 return NULL;
d55e5bfc
RD
28438}
28439
28440
1bd55598
RD
28441SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28442 PyObject *resultobj = 0;
28443 wxListEvent *arg1 = (wxListEvent *) 0 ;
28444 int result;
28445 void *argp1 = 0 ;
28446 int res1 = 0 ;
28447 PyObject *swig_obj[1] ;
28448
28449 if (!args) SWIG_fail;
28450 swig_obj[0] = args;
28451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28452 if (!SWIG_IsOK(res1)) {
28453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28454 }
28455 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28456 {
28457 PyThreadState* __tstate = wxPyBeginAllowThreads();
28458 result = (int)(arg1)->GetColumn();
28459 wxPyEndAllowThreads(__tstate);
28460 if (PyErr_Occurred()) SWIG_fail;
28461 }
28462 resultobj = SWIG_From_int(static_cast< int >(result));
28463 return resultobj;
28464fail:
28465 return NULL;
d55e5bfc
RD
28466}
28467
28468
1bd55598
RD
28469SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28470 PyObject *resultobj = 0;
28471 wxListEvent *arg1 = (wxListEvent *) 0 ;
28472 wxPoint result;
28473 void *argp1 = 0 ;
28474 int res1 = 0 ;
28475 PyObject *swig_obj[1] ;
28476
28477 if (!args) SWIG_fail;
28478 swig_obj[0] = args;
28479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28480 if (!SWIG_IsOK(res1)) {
28481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28482 }
28483 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28484 {
28485 PyThreadState* __tstate = wxPyBeginAllowThreads();
28486 result = (arg1)->GetPoint();
28487 wxPyEndAllowThreads(__tstate);
28488 if (PyErr_Occurred()) SWIG_fail;
28489 }
28490 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28491 return resultobj;
28492fail:
28493 return NULL;
d55e5bfc
RD
28494}
28495
28496
1bd55598
RD
28497SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28498 PyObject *resultobj = 0;
28499 wxListEvent *arg1 = (wxListEvent *) 0 ;
28500 wxString *result = 0 ;
28501 void *argp1 = 0 ;
28502 int res1 = 0 ;
28503 PyObject *swig_obj[1] ;
28504
28505 if (!args) SWIG_fail;
28506 swig_obj[0] = args;
28507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28508 if (!SWIG_IsOK(res1)) {
28509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28510 }
28511 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28514 {
1bd55598
RD
28515 wxString const &_result_ref = (arg1)->GetLabel();
28516 result = (wxString *) &_result_ref;
d55e5bfc 28517 }
1bd55598
RD
28518 wxPyEndAllowThreads(__tstate);
28519 if (PyErr_Occurred()) SWIG_fail;
28520 }
28521 {
28522#if wxUSE_UNICODE
28523 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28524#else
28525 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28526#endif
28527 }
28528 return resultobj;
28529fail:
28530 return NULL;
d55e5bfc
RD
28531}
28532
28533
1bd55598
RD
28534SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28535 PyObject *resultobj = 0;
28536 wxListEvent *arg1 = (wxListEvent *) 0 ;
28537 wxString *result = 0 ;
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_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28547 }
28548 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28549 {
28550 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28551 {
1bd55598
RD
28552 wxString const &_result_ref = (arg1)->GetText();
28553 result = (wxString *) &_result_ref;
36ed4f51 28554 }
1bd55598
RD
28555 wxPyEndAllowThreads(__tstate);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 {
28559#if wxUSE_UNICODE
28560 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28561#else
28562 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28563#endif
28564 }
28565 return resultobj;
28566fail:
28567 return NULL;
d55e5bfc
RD
28568}
28569
28570
1bd55598
RD
28571SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28572 PyObject *resultobj = 0;
28573 wxListEvent *arg1 = (wxListEvent *) 0 ;
28574 int result;
28575 void *argp1 = 0 ;
28576 int res1 = 0 ;
28577 PyObject *swig_obj[1] ;
28578
28579 if (!args) SWIG_fail;
28580 swig_obj[0] = args;
28581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28582 if (!SWIG_IsOK(res1)) {
28583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28584 }
28585 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28586 {
28587 PyThreadState* __tstate = wxPyBeginAllowThreads();
28588 result = (int)(arg1)->GetImage();
28589 wxPyEndAllowThreads(__tstate);
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 resultobj = SWIG_From_int(static_cast< int >(result));
28593 return resultobj;
28594fail:
28595 return NULL;
d55e5bfc
RD
28596}
28597
28598
1bd55598
RD
28599SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28600 PyObject *resultobj = 0;
28601 wxListEvent *arg1 = (wxListEvent *) 0 ;
28602 long result;
28603 void *argp1 = 0 ;
28604 int res1 = 0 ;
28605 PyObject *swig_obj[1] ;
28606
28607 if (!args) SWIG_fail;
28608 swig_obj[0] = args;
28609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28610 if (!SWIG_IsOK(res1)) {
28611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28612 }
28613 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28614 {
28615 PyThreadState* __tstate = wxPyBeginAllowThreads();
28616 result = (long)(arg1)->GetData();
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_From_long(static_cast< long >(result));
28621 return resultobj;
28622fail:
28623 return NULL;
d55e5bfc
RD
28624}
28625
28626
1bd55598
RD
28627SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28628 PyObject *resultobj = 0;
28629 wxListEvent *arg1 = (wxListEvent *) 0 ;
28630 long result;
28631 void *argp1 = 0 ;
28632 int res1 = 0 ;
28633 PyObject *swig_obj[1] ;
28634
28635 if (!args) SWIG_fail;
28636 swig_obj[0] = args;
28637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28638 if (!SWIG_IsOK(res1)) {
28639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28640 }
28641 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28642 {
28643 PyThreadState* __tstate = wxPyBeginAllowThreads();
28644 result = (long)(arg1)->GetMask();
28645 wxPyEndAllowThreads(__tstate);
28646 if (PyErr_Occurred()) SWIG_fail;
28647 }
28648 resultobj = SWIG_From_long(static_cast< long >(result));
28649 return resultobj;
28650fail:
28651 return NULL;
d55e5bfc
RD
28652}
28653
28654
1bd55598
RD
28655SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28656 PyObject *resultobj = 0;
28657 wxListEvent *arg1 = (wxListEvent *) 0 ;
28658 wxListItem *result = 0 ;
28659 void *argp1 = 0 ;
28660 int res1 = 0 ;
28661 PyObject *swig_obj[1] ;
28662
28663 if (!args) SWIG_fail;
28664 swig_obj[0] = args;
28665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28666 if (!SWIG_IsOK(res1)) {
28667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28668 }
28669 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28670 {
28671 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28672 {
1bd55598
RD
28673 wxListItem const &_result_ref = (arg1)->GetItem();
28674 result = (wxListItem *) &_result_ref;
d55e5bfc 28675 }
1bd55598
RD
28676 wxPyEndAllowThreads(__tstate);
28677 if (PyErr_Occurred()) SWIG_fail;
28678 }
28679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28680 return resultobj;
28681fail:
28682 return NULL;
d55e5bfc
RD
28683}
28684
28685
1bd55598
RD
28686SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28687 PyObject *resultobj = 0;
28688 wxListEvent *arg1 = (wxListEvent *) 0 ;
28689 long result;
28690 void *argp1 = 0 ;
28691 int res1 = 0 ;
28692 PyObject *swig_obj[1] ;
28693
28694 if (!args) SWIG_fail;
28695 swig_obj[0] = args;
28696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28697 if (!SWIG_IsOK(res1)) {
28698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28699 }
28700 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28701 {
28702 PyThreadState* __tstate = wxPyBeginAllowThreads();
28703 result = (long)(arg1)->GetCacheFrom();
28704 wxPyEndAllowThreads(__tstate);
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 resultobj = SWIG_From_long(static_cast< long >(result));
28708 return resultobj;
28709fail:
28710 return NULL;
d55e5bfc
RD
28711}
28712
28713
1bd55598
RD
28714SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28715 PyObject *resultobj = 0;
28716 wxListEvent *arg1 = (wxListEvent *) 0 ;
28717 long result;
28718 void *argp1 = 0 ;
28719 int res1 = 0 ;
28720 PyObject *swig_obj[1] ;
28721
28722 if (!args) SWIG_fail;
28723 swig_obj[0] = args;
28724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28725 if (!SWIG_IsOK(res1)) {
28726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28727 }
28728 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 result = (long)(arg1)->GetCacheTo();
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 resultobj = SWIG_From_long(static_cast< long >(result));
28736 return resultobj;
28737fail:
28738 return NULL;
7e08d4ef
RD
28739}
28740
28741
1bd55598
RD
28742SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28743 PyObject *resultobj = 0;
28744 wxListEvent *arg1 = (wxListEvent *) 0 ;
28745 bool result;
28746 void *argp1 = 0 ;
28747 int res1 = 0 ;
28748 PyObject *swig_obj[1] ;
28749
28750 if (!args) SWIG_fail;
28751 swig_obj[0] = args;
28752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28753 if (!SWIG_IsOK(res1)) {
28754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28755 }
28756 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28757 {
28758 PyThreadState* __tstate = wxPyBeginAllowThreads();
28759 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28760 wxPyEndAllowThreads(__tstate);
28761 if (PyErr_Occurred()) SWIG_fail;
28762 }
28763 {
28764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28765 }
28766 return resultobj;
28767fail:
28768 return NULL;
28769}
28770
28771
28772SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28773 PyObject *resultobj = 0;
28774 wxListEvent *arg1 = (wxListEvent *) 0 ;
28775 bool arg2 ;
28776 void *argp1 = 0 ;
28777 int res1 = 0 ;
28778 bool val2 ;
28779 int ecode2 = 0 ;
28780 PyObject * obj0 = 0 ;
28781 PyObject * obj1 = 0 ;
28782 char * kwnames[] = {
28783 (char *) "self",(char *) "editCancelled", NULL
28784 };
28785
28786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28788 if (!SWIG_IsOK(res1)) {
28789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28790 }
28791 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28792 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28793 if (!SWIG_IsOK(ecode2)) {
28794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28795 }
28796 arg2 = static_cast< bool >(val2);
28797 {
28798 PyThreadState* __tstate = wxPyBeginAllowThreads();
28799 (arg1)->SetEditCanceled(arg2);
28800 wxPyEndAllowThreads(__tstate);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_Py_Void();
28804 return resultobj;
28805fail:
28806 return NULL;
28807}
28808
28809
28810SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28811 PyObject *obj;
28812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28813 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28814 return SWIG_Py_Void();
28815}
28816
28817SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28818 return SWIG_Python_InitShadowInstance(args);
28819}
28820
28821SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28822 PyObject *resultobj = 0;
28823 wxWindow *arg1 = (wxWindow *) 0 ;
28824 int arg2 = (int) -1 ;
28825 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28826 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28827 wxSize const &arg4_defvalue = wxDefaultSize ;
28828 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28829 long arg5 = (long) wxLC_ICON ;
28830 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28831 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28832 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28833 wxString *arg7 = (wxString *) &arg7_defvalue ;
28834 wxPyListCtrl *result = 0 ;
28835 void *argp1 = 0 ;
28836 int res1 = 0 ;
28837 int val2 ;
28838 int ecode2 = 0 ;
28839 wxPoint temp3 ;
28840 wxSize temp4 ;
28841 long val5 ;
28842 int ecode5 = 0 ;
28843 void *argp6 = 0 ;
28844 int res6 = 0 ;
28845 bool temp7 = false ;
28846 PyObject * obj0 = 0 ;
28847 PyObject * obj1 = 0 ;
28848 PyObject * obj2 = 0 ;
28849 PyObject * obj3 = 0 ;
28850 PyObject * obj4 = 0 ;
28851 PyObject * obj5 = 0 ;
28852 PyObject * obj6 = 0 ;
28853 char * kwnames[] = {
28854 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28855 };
28856
28857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28861 }
28862 arg1 = reinterpret_cast< wxWindow * >(argp1);
28863 if (obj1) {
28864 ecode2 = SWIG_AsVal_int(obj1, &val2);
28865 if (!SWIG_IsOK(ecode2)) {
28866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28867 }
28868 arg2 = static_cast< int >(val2);
28869 }
28870 if (obj2) {
7e08d4ef 28871 {
1bd55598
RD
28872 arg3 = &temp3;
28873 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28874 }
1bd55598
RD
28875 }
28876 if (obj3) {
7e08d4ef 28877 {
1bd55598
RD
28878 arg4 = &temp4;
28879 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28880 }
1bd55598
RD
28881 }
28882 if (obj4) {
28883 ecode5 = SWIG_AsVal_long(obj4, &val5);
28884 if (!SWIG_IsOK(ecode5)) {
28885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28886 }
28887 arg5 = static_cast< long >(val5);
28888 }
28889 if (obj5) {
28890 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28891 if (!SWIG_IsOK(res6)) {
28892 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28893 }
1bd55598
RD
28894 if (!argp6) {
28895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28896 }
1bd55598
RD
28897 arg6 = reinterpret_cast< wxValidator * >(argp6);
28898 }
28899 if (obj6) {
7e08d4ef 28900 {
1bd55598
RD
28901 arg7 = wxString_in_helper(obj6);
28902 if (arg7 == NULL) SWIG_fail;
28903 temp7 = true;
7e08d4ef 28904 }
1bd55598
RD
28905 }
28906 {
28907 if (!wxPyCheckForApp()) SWIG_fail;
28908 PyThreadState* __tstate = wxPyBeginAllowThreads();
28909 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28910 wxPyEndAllowThreads(__tstate);
28911 if (PyErr_Occurred()) SWIG_fail;
28912 }
28913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28914 {
28915 if (temp7)
28916 delete arg7;
28917 }
28918 return resultobj;
28919fail:
28920 {
28921 if (temp7)
28922 delete arg7;
28923 }
28924 return NULL;
7e08d4ef
RD
28925}
28926
28927
1bd55598
RD
28928SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28929 PyObject *resultobj = 0;
28930 wxPyListCtrl *result = 0 ;
28931
28932 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28933 {
28934 if (!wxPyCheckForApp()) SWIG_fail;
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = (wxPyListCtrl *)new wxPyListCtrl();
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28941 return resultobj;
28942fail:
28943 return NULL;
28944}
28945
28946
28947SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28948 PyObject *resultobj = 0;
28949 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28950 wxWindow *arg2 = (wxWindow *) 0 ;
28951 int arg3 = (int) -1 ;
28952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28954 wxSize const &arg5_defvalue = wxDefaultSize ;
28955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28956 long arg6 = (long) wxLC_ICON ;
28957 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28958 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28959 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28960 wxString *arg8 = (wxString *) &arg8_defvalue ;
28961 bool result;
28962 void *argp1 = 0 ;
28963 int res1 = 0 ;
28964 void *argp2 = 0 ;
28965 int res2 = 0 ;
28966 int val3 ;
28967 int ecode3 = 0 ;
28968 wxPoint temp4 ;
28969 wxSize temp5 ;
28970 long val6 ;
28971 int ecode6 = 0 ;
28972 void *argp7 = 0 ;
28973 int res7 = 0 ;
28974 bool temp8 = false ;
28975 PyObject * obj0 = 0 ;
28976 PyObject * obj1 = 0 ;
28977 PyObject * obj2 = 0 ;
28978 PyObject * obj3 = 0 ;
28979 PyObject * obj4 = 0 ;
28980 PyObject * obj5 = 0 ;
28981 PyObject * obj6 = 0 ;
28982 PyObject * obj7 = 0 ;
28983 char * kwnames[] = {
28984 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28985 };
28986
28987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28989 if (!SWIG_IsOK(res1)) {
28990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28991 }
28992 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28994 if (!SWIG_IsOK(res2)) {
28995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28996 }
28997 arg2 = reinterpret_cast< wxWindow * >(argp2);
28998 if (obj2) {
28999 ecode3 = SWIG_AsVal_int(obj2, &val3);
29000 if (!SWIG_IsOK(ecode3)) {
29001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29002 }
29003 arg3 = static_cast< int >(val3);
29004 }
29005 if (obj3) {
7e08d4ef 29006 {
1bd55598
RD
29007 arg4 = &temp4;
29008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 29009 }
1bd55598
RD
29010 }
29011 if (obj4) {
7e08d4ef 29012 {
1bd55598
RD
29013 arg5 = &temp5;
29014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 29015 }
1bd55598
RD
29016 }
29017 if (obj5) {
29018 ecode6 = SWIG_AsVal_long(obj5, &val6);
29019 if (!SWIG_IsOK(ecode6)) {
29020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29021 }
29022 arg6 = static_cast< long >(val6);
29023 }
29024 if (obj6) {
29025 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29026 if (!SWIG_IsOK(res7)) {
29027 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 29028 }
1bd55598
RD
29029 if (!argp7) {
29030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 29031 }
1bd55598
RD
29032 arg7 = reinterpret_cast< wxValidator * >(argp7);
29033 }
29034 if (obj7) {
7e08d4ef 29035 {
1bd55598
RD
29036 arg8 = wxString_in_helper(obj7);
29037 if (arg8 == NULL) SWIG_fail;
29038 temp8 = true;
7e08d4ef 29039 }
1bd55598
RD
29040 }
29041 {
29042 PyThreadState* __tstate = wxPyBeginAllowThreads();
29043 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29044 wxPyEndAllowThreads(__tstate);
29045 if (PyErr_Occurred()) SWIG_fail;
29046 }
29047 {
29048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29049 }
29050 {
29051 if (temp8)
29052 delete arg8;
29053 }
29054 return resultobj;
29055fail:
29056 {
29057 if (temp8)
29058 delete arg8;
29059 }
29060 return NULL;
29061}
29062
29063
29064SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29065 PyObject *resultobj = 0;
29066 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29067 PyObject *arg2 = (PyObject *) 0 ;
29068 PyObject *arg3 = (PyObject *) 0 ;
29069 void *argp1 = 0 ;
29070 int res1 = 0 ;
29071 PyObject * obj0 = 0 ;
29072 PyObject * obj1 = 0 ;
29073 PyObject * obj2 = 0 ;
29074 char * kwnames[] = {
29075 (char *) "self",(char *) "self",(char *) "_class", NULL
29076 };
29077
29078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29080 if (!SWIG_IsOK(res1)) {
29081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29082 }
29083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29084 arg2 = obj1;
29085 arg3 = obj2;
29086 {
29087 PyThreadState* __tstate = wxPyBeginAllowThreads();
29088 (arg1)->_setCallbackInfo(arg2,arg3);
29089 wxPyEndAllowThreads(__tstate);
29090 if (PyErr_Occurred()) SWIG_fail;
29091 }
29092 resultobj = SWIG_Py_Void();
29093 return resultobj;
29094fail:
29095 return NULL;
29096}
29097
29098
29099SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29100 PyObject *resultobj = 0;
29101 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29102 int arg2 ;
29103 wxListItem *result = 0 ;
29104 void *argp1 = 0 ;
29105 int res1 = 0 ;
29106 int val2 ;
29107 int ecode2 = 0 ;
29108 PyObject * obj0 = 0 ;
29109 PyObject * obj1 = 0 ;
29110 char * kwnames[] = {
29111 (char *) "self",(char *) "col", NULL
29112 };
29113
29114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29116 if (!SWIG_IsOK(res1)) {
29117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29118 }
29119 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29120 ecode2 = SWIG_AsVal_int(obj1, &val2);
29121 if (!SWIG_IsOK(ecode2)) {
29122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29123 }
29124 arg2 = static_cast< int >(val2);
29125 {
29126 PyThreadState* __tstate = wxPyBeginAllowThreads();
29127 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29128 wxPyEndAllowThreads(__tstate);
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 {
3ecece7e 29132 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29133 }
29134 return resultobj;
29135fail:
29136 return NULL;
29137}
29138
29139
29140SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29141 PyObject *resultobj = 0;
29142 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29143 int arg2 ;
29144 wxListItem *arg3 = 0 ;
29145 bool result;
29146 void *argp1 = 0 ;
29147 int res1 = 0 ;
29148 int val2 ;
29149 int ecode2 = 0 ;
29150 void *argp3 = 0 ;
29151 int res3 = 0 ;
29152 PyObject * obj0 = 0 ;
29153 PyObject * obj1 = 0 ;
29154 PyObject * obj2 = 0 ;
29155 char * kwnames[] = {
29156 (char *) "self",(char *) "col",(char *) "item", NULL
29157 };
29158
29159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29161 if (!SWIG_IsOK(res1)) {
29162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29163 }
29164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29165 ecode2 = SWIG_AsVal_int(obj1, &val2);
29166 if (!SWIG_IsOK(ecode2)) {
29167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29168 }
29169 arg2 = static_cast< int >(val2);
29170 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29171 if (!SWIG_IsOK(res3)) {
29172 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29173 }
29174 if (!argp3) {
29175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29176 }
29177 arg3 = reinterpret_cast< wxListItem * >(argp3);
29178 {
29179 PyThreadState* __tstate = wxPyBeginAllowThreads();
29180 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29181 wxPyEndAllowThreads(__tstate);
29182 if (PyErr_Occurred()) SWIG_fail;
29183 }
29184 {
29185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29186 }
29187 return resultobj;
29188fail:
29189 return NULL;
29190}
29191
29192
29193SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29194 PyObject *resultobj = 0;
29195 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29196 int arg2 ;
29197 int result;
29198 void *argp1 = 0 ;
29199 int res1 = 0 ;
29200 int val2 ;
29201 int ecode2 = 0 ;
29202 PyObject * obj0 = 0 ;
29203 PyObject * obj1 = 0 ;
29204 char * kwnames[] = {
29205 (char *) "self",(char *) "col", NULL
29206 };
29207
29208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29210 if (!SWIG_IsOK(res1)) {
29211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29212 }
29213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29214 ecode2 = SWIG_AsVal_int(obj1, &val2);
29215 if (!SWIG_IsOK(ecode2)) {
29216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29217 }
29218 arg2 = static_cast< int >(val2);
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29222 wxPyEndAllowThreads(__tstate);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 resultobj = SWIG_From_int(static_cast< int >(result));
29226 return resultobj;
29227fail:
29228 return NULL;
29229}
29230
29231
29232SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29233 PyObject *resultobj = 0;
29234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29235 int arg2 ;
29236 int arg3 ;
29237 bool result;
29238 void *argp1 = 0 ;
29239 int res1 = 0 ;
29240 int val2 ;
29241 int ecode2 = 0 ;
29242 int val3 ;
29243 int ecode3 = 0 ;
29244 PyObject * obj0 = 0 ;
29245 PyObject * obj1 = 0 ;
29246 PyObject * obj2 = 0 ;
29247 char * kwnames[] = {
29248 (char *) "self",(char *) "col",(char *) "width", NULL
29249 };
29250
29251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29255 }
29256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29257 ecode2 = SWIG_AsVal_int(obj1, &val2);
29258 if (!SWIG_IsOK(ecode2)) {
29259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29260 }
29261 arg2 = static_cast< int >(val2);
29262 ecode3 = SWIG_AsVal_int(obj2, &val3);
29263 if (!SWIG_IsOK(ecode3)) {
29264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29265 }
29266 arg3 = static_cast< int >(val3);
29267 {
29268 PyThreadState* __tstate = wxPyBeginAllowThreads();
29269 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29270 wxPyEndAllowThreads(__tstate);
29271 if (PyErr_Occurred()) SWIG_fail;
29272 }
29273 {
29274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29275 }
29276 return resultobj;
29277fail:
29278 return NULL;
7e08d4ef
RD
29279}
29280
29281
1bd55598
RD
29282SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29283 PyObject *resultobj = 0;
29284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29285 int result;
29286 void *argp1 = 0 ;
29287 int res1 = 0 ;
29288 PyObject *swig_obj[1] ;
29289
29290 if (!args) SWIG_fail;
29291 swig_obj[0] = args;
29292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29293 if (!SWIG_IsOK(res1)) {
29294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29295 }
29296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29297 {
29298 PyThreadState* __tstate = wxPyBeginAllowThreads();
29299 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29300 wxPyEndAllowThreads(__tstate);
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 resultobj = SWIG_From_int(static_cast< int >(result));
29304 return resultobj;
29305fail:
29306 return NULL;
7e08d4ef
RD
29307}
29308
29309
1bd55598
RD
29310SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29311 PyObject *resultobj = 0;
29312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29313 wxRect result;
29314 void *argp1 = 0 ;
29315 int res1 = 0 ;
29316 PyObject *swig_obj[1] ;
29317
29318 if (!args) SWIG_fail;
29319 swig_obj[0] = args;
29320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29321 if (!SWIG_IsOK(res1)) {
29322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29323 }
29324 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29325 {
29326 PyThreadState* __tstate = wxPyBeginAllowThreads();
29327 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29328 wxPyEndAllowThreads(__tstate);
29329 if (PyErr_Occurred()) SWIG_fail;
29330 }
29331 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29332 return resultobj;
29333fail:
29334 return NULL;
7e08d4ef
RD
29335}
29336
29337
1bd55598
RD
29338SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29339 PyObject *resultobj = 0;
29340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29341 wxTextCtrl *result = 0 ;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 PyObject *swig_obj[1] ;
29345
29346 if (!args) SWIG_fail;
29347 swig_obj[0] = args;
29348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29351 }
29352 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29353 {
29354 PyThreadState* __tstate = wxPyBeginAllowThreads();
29355 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29356 wxPyEndAllowThreads(__tstate);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 {
29360 resultobj = wxPyMake_wxObject(result, 0);
29361 }
29362 return resultobj;
29363fail:
29364 return NULL;
29365}
29366
29367
29368SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29371 long arg2 ;
29372 int arg3 = (int) 0 ;
29373 wxListItem *result = 0 ;
29374 void *argp1 = 0 ;
29375 int res1 = 0 ;
29376 long val2 ;
29377 int ecode2 = 0 ;
29378 int val3 ;
29379 int ecode3 = 0 ;
29380 PyObject * obj0 = 0 ;
29381 PyObject * obj1 = 0 ;
29382 PyObject * obj2 = 0 ;
29383 char * kwnames[] = {
29384 (char *) "self",(char *) "itemId",(char *) "col", NULL
29385 };
29386
29387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29389 if (!SWIG_IsOK(res1)) {
29390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29391 }
29392 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29393 ecode2 = SWIG_AsVal_long(obj1, &val2);
29394 if (!SWIG_IsOK(ecode2)) {
29395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29396 }
29397 arg2 = static_cast< long >(val2);
29398 if (obj2) {
29399 ecode3 = SWIG_AsVal_int(obj2, &val3);
29400 if (!SWIG_IsOK(ecode3)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29402 }
29403 arg3 = static_cast< int >(val3);
29404 }
29405 {
29406 PyThreadState* __tstate = wxPyBeginAllowThreads();
29407 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29408 wxPyEndAllowThreads(__tstate);
29409 if (PyErr_Occurred()) SWIG_fail;
29410 }
29411 {
3ecece7e 29412 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29413 }
29414 return resultobj;
29415fail:
29416 return NULL;
29417}
29418
29419
29420SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29421 PyObject *resultobj = 0;
29422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29423 wxListItem *arg2 = 0 ;
29424 bool result;
29425 void *argp1 = 0 ;
29426 int res1 = 0 ;
29427 void *argp2 = 0 ;
29428 int res2 = 0 ;
29429 PyObject * obj0 = 0 ;
29430 PyObject * obj1 = 0 ;
29431 char * kwnames[] = {
29432 (char *) "self",(char *) "info", NULL
29433 };
29434
29435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29437 if (!SWIG_IsOK(res1)) {
29438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29439 }
29440 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29442 if (!SWIG_IsOK(res2)) {
29443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29444 }
29445 if (!argp2) {
29446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29447 }
29448 arg2 = reinterpret_cast< wxListItem * >(argp2);
29449 {
29450 PyThreadState* __tstate = wxPyBeginAllowThreads();
29451 result = (bool)(arg1)->SetItem(*arg2);
29452 wxPyEndAllowThreads(__tstate);
29453 if (PyErr_Occurred()) SWIG_fail;
29454 }
29455 {
29456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29457 }
29458 return resultobj;
29459fail:
29460 return NULL;
29461}
29462
29463
29464SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29465 PyObject *resultobj = 0;
29466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29467 long arg2 ;
29468 int arg3 ;
29469 wxString *arg4 = 0 ;
29470 int arg5 = (int) -1 ;
29471 long result;
29472 void *argp1 = 0 ;
29473 int res1 = 0 ;
29474 long val2 ;
29475 int ecode2 = 0 ;
29476 int val3 ;
29477 int ecode3 = 0 ;
29478 bool temp4 = false ;
29479 int val5 ;
29480 int ecode5 = 0 ;
29481 PyObject * obj0 = 0 ;
29482 PyObject * obj1 = 0 ;
29483 PyObject * obj2 = 0 ;
29484 PyObject * obj3 = 0 ;
29485 PyObject * obj4 = 0 ;
29486 char * kwnames[] = {
29487 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29488 };
29489
29490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29494 }
29495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29496 ecode2 = SWIG_AsVal_long(obj1, &val2);
29497 if (!SWIG_IsOK(ecode2)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29499 }
29500 arg2 = static_cast< long >(val2);
29501 ecode3 = SWIG_AsVal_int(obj2, &val3);
29502 if (!SWIG_IsOK(ecode3)) {
29503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29504 }
29505 arg3 = static_cast< int >(val3);
29506 {
29507 arg4 = wxString_in_helper(obj3);
29508 if (arg4 == NULL) SWIG_fail;
29509 temp4 = true;
29510 }
29511 if (obj4) {
29512 ecode5 = SWIG_AsVal_int(obj4, &val5);
29513 if (!SWIG_IsOK(ecode5)) {
29514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29515 }
29516 arg5 = static_cast< int >(val5);
29517 }
29518 {
29519 PyThreadState* __tstate = wxPyBeginAllowThreads();
29520 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29521 wxPyEndAllowThreads(__tstate);
29522 if (PyErr_Occurred()) SWIG_fail;
29523 }
29524 resultobj = SWIG_From_long(static_cast< long >(result));
29525 {
29526 if (temp4)
29527 delete arg4;
29528 }
29529 return resultobj;
29530fail:
29531 {
29532 if (temp4)
29533 delete arg4;
29534 }
29535 return NULL;
29536}
29537
29538
29539SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29540 PyObject *resultobj = 0;
29541 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29542 long arg2 ;
29543 long arg3 ;
29544 int result;
29545 void *argp1 = 0 ;
29546 int res1 = 0 ;
29547 long val2 ;
29548 int ecode2 = 0 ;
29549 long val3 ;
29550 int ecode3 = 0 ;
29551 PyObject * obj0 = 0 ;
29552 PyObject * obj1 = 0 ;
29553 PyObject * obj2 = 0 ;
29554 char * kwnames[] = {
29555 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29556 };
29557
29558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29560 if (!SWIG_IsOK(res1)) {
29561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29562 }
29563 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29564 ecode2 = SWIG_AsVal_long(obj1, &val2);
29565 if (!SWIG_IsOK(ecode2)) {
29566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29567 }
29568 arg2 = static_cast< long >(val2);
29569 ecode3 = SWIG_AsVal_long(obj2, &val3);
29570 if (!SWIG_IsOK(ecode3)) {
29571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29572 }
29573 arg3 = static_cast< long >(val3);
29574 {
29575 PyThreadState* __tstate = wxPyBeginAllowThreads();
29576 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29577 wxPyEndAllowThreads(__tstate);
29578 if (PyErr_Occurred()) SWIG_fail;
29579 }
29580 resultobj = SWIG_From_int(static_cast< int >(result));
29581 return resultobj;
29582fail:
29583 return NULL;
29584}
29585
29586
29587SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29588 PyObject *resultobj = 0;
29589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29590 long arg2 ;
29591 long arg3 ;
29592 long arg4 ;
29593 bool result;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 long val2 ;
29597 int ecode2 = 0 ;
29598 long val3 ;
29599 int ecode3 = 0 ;
29600 long val4 ;
29601 int ecode4 = 0 ;
29602 PyObject * obj0 = 0 ;
29603 PyObject * obj1 = 0 ;
29604 PyObject * obj2 = 0 ;
29605 PyObject * obj3 = 0 ;
29606 char * kwnames[] = {
29607 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29608 };
29609
29610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29612 if (!SWIG_IsOK(res1)) {
29613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29614 }
29615 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29616 ecode2 = SWIG_AsVal_long(obj1, &val2);
29617 if (!SWIG_IsOK(ecode2)) {
29618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29619 }
29620 arg2 = static_cast< long >(val2);
29621 ecode3 = SWIG_AsVal_long(obj2, &val3);
29622 if (!SWIG_IsOK(ecode3)) {
29623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29624 }
29625 arg3 = static_cast< long >(val3);
29626 ecode4 = SWIG_AsVal_long(obj3, &val4);
29627 if (!SWIG_IsOK(ecode4)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29629 }
29630 arg4 = static_cast< long >(val4);
29631 {
29632 PyThreadState* __tstate = wxPyBeginAllowThreads();
29633 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29634 wxPyEndAllowThreads(__tstate);
29635 if (PyErr_Occurred()) SWIG_fail;
29636 }
29637 {
29638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29639 }
29640 return resultobj;
29641fail:
29642 return NULL;
29643}
29644
29645
29646SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29647 PyObject *resultobj = 0;
29648 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29649 long arg2 ;
29650 int arg3 ;
29651 int arg4 = (int) -1 ;
29652 bool result;
29653 void *argp1 = 0 ;
29654 int res1 = 0 ;
29655 long val2 ;
29656 int ecode2 = 0 ;
29657 int val3 ;
29658 int ecode3 = 0 ;
29659 int val4 ;
29660 int ecode4 = 0 ;
29661 PyObject * obj0 = 0 ;
29662 PyObject * obj1 = 0 ;
29663 PyObject * obj2 = 0 ;
29664 PyObject * obj3 = 0 ;
29665 char * kwnames[] = {
29666 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29667 };
29668
29669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29671 if (!SWIG_IsOK(res1)) {
29672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29673 }
29674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29675 ecode2 = SWIG_AsVal_long(obj1, &val2);
29676 if (!SWIG_IsOK(ecode2)) {
29677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29678 }
29679 arg2 = static_cast< long >(val2);
29680 ecode3 = SWIG_AsVal_int(obj2, &val3);
29681 if (!SWIG_IsOK(ecode3)) {
29682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29683 }
29684 arg3 = static_cast< int >(val3);
29685 if (obj3) {
29686 ecode4 = SWIG_AsVal_int(obj3, &val4);
29687 if (!SWIG_IsOK(ecode4)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29689 }
29690 arg4 = static_cast< int >(val4);
29691 }
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29695 wxPyEndAllowThreads(__tstate);
29696 if (PyErr_Occurred()) SWIG_fail;
29697 }
29698 {
29699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29700 }
29701 return resultobj;
29702fail:
29703 return NULL;
29704}
29705
29706
29707SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29708 PyObject *resultobj = 0;
29709 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29710 long arg2 ;
29711 long arg3 ;
29712 int arg4 ;
29713 bool result;
29714 void *argp1 = 0 ;
29715 int res1 = 0 ;
29716 long val2 ;
29717 int ecode2 = 0 ;
29718 long val3 ;
29719 int ecode3 = 0 ;
29720 int val4 ;
29721 int ecode4 = 0 ;
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 PyObject * obj2 = 0 ;
29725 PyObject * obj3 = 0 ;
29726 char * kwnames[] = {
29727 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29728 };
29729
29730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29732 if (!SWIG_IsOK(res1)) {
29733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29734 }
29735 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29736 ecode2 = SWIG_AsVal_long(obj1, &val2);
29737 if (!SWIG_IsOK(ecode2)) {
29738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29739 }
29740 arg2 = static_cast< long >(val2);
29741 ecode3 = SWIG_AsVal_long(obj2, &val3);
29742 if (!SWIG_IsOK(ecode3)) {
29743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29744 }
29745 arg3 = static_cast< long >(val3);
29746 ecode4 = SWIG_AsVal_int(obj3, &val4);
29747 if (!SWIG_IsOK(ecode4)) {
29748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29749 }
29750 arg4 = static_cast< int >(val4);
29751 {
29752 PyThreadState* __tstate = wxPyBeginAllowThreads();
29753 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29754 wxPyEndAllowThreads(__tstate);
29755 if (PyErr_Occurred()) SWIG_fail;
29756 }
29757 {
29758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29759 }
29760 return resultobj;
29761fail:
29762 return NULL;
29763}
29764
29765
29766SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29767 PyObject *resultobj = 0;
29768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29769 long arg2 ;
29770 wxString result;
29771 void *argp1 = 0 ;
29772 int res1 = 0 ;
29773 long val2 ;
29774 int ecode2 = 0 ;
29775 PyObject * obj0 = 0 ;
29776 PyObject * obj1 = 0 ;
29777 char * kwnames[] = {
29778 (char *) "self",(char *) "item", NULL
29779 };
29780
29781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29783 if (!SWIG_IsOK(res1)) {
29784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29785 }
29786 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29787 ecode2 = SWIG_AsVal_long(obj1, &val2);
29788 if (!SWIG_IsOK(ecode2)) {
29789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29790 }
29791 arg2 = static_cast< long >(val2);
29792 {
29793 PyThreadState* __tstate = wxPyBeginAllowThreads();
29794 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29795 wxPyEndAllowThreads(__tstate);
29796 if (PyErr_Occurred()) SWIG_fail;
29797 }
29798 {
29799#if wxUSE_UNICODE
29800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29801#else
29802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29803#endif
29804 }
29805 return resultobj;
29806fail:
29807 return NULL;
29808}
29809
29810
29811SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29812 PyObject *resultobj = 0;
29813 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29814 long arg2 ;
29815 wxString *arg3 = 0 ;
29816 void *argp1 = 0 ;
29817 int res1 = 0 ;
29818 long val2 ;
29819 int ecode2 = 0 ;
29820 bool temp3 = false ;
29821 PyObject * obj0 = 0 ;
29822 PyObject * obj1 = 0 ;
29823 PyObject * obj2 = 0 ;
29824 char * kwnames[] = {
29825 (char *) "self",(char *) "item",(char *) "str", NULL
29826 };
29827
29828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29832 }
29833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29834 ecode2 = SWIG_AsVal_long(obj1, &val2);
29835 if (!SWIG_IsOK(ecode2)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29837 }
29838 arg2 = static_cast< long >(val2);
29839 {
29840 arg3 = wxString_in_helper(obj2);
29841 if (arg3 == NULL) SWIG_fail;
29842 temp3 = true;
29843 }
29844 {
29845 PyThreadState* __tstate = wxPyBeginAllowThreads();
29846 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29847 wxPyEndAllowThreads(__tstate);
29848 if (PyErr_Occurred()) SWIG_fail;
29849 }
29850 resultobj = SWIG_Py_Void();
29851 {
29852 if (temp3)
29853 delete arg3;
29854 }
29855 return resultobj;
29856fail:
29857 {
29858 if (temp3)
29859 delete arg3;
29860 }
29861 return NULL;
29862}
29863
29864
29865SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29866 PyObject *resultobj = 0;
29867 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29868 long arg2 ;
29869 long result;
29870 void *argp1 = 0 ;
29871 int res1 = 0 ;
29872 long val2 ;
29873 int ecode2 = 0 ;
29874 PyObject * obj0 = 0 ;
29875 PyObject * obj1 = 0 ;
29876 char * kwnames[] = {
29877 (char *) "self",(char *) "item", NULL
29878 };
29879
29880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29884 }
29885 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29886 ecode2 = SWIG_AsVal_long(obj1, &val2);
29887 if (!SWIG_IsOK(ecode2)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29889 }
29890 arg2 = static_cast< long >(val2);
29891 {
29892 PyThreadState* __tstate = wxPyBeginAllowThreads();
29893 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29894 wxPyEndAllowThreads(__tstate);
29895 if (PyErr_Occurred()) SWIG_fail;
29896 }
29897 resultobj = SWIG_From_long(static_cast< long >(result));
29898 return resultobj;
29899fail:
29900 return NULL;
29901}
29902
29903
29904SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29905 PyObject *resultobj = 0;
29906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29907 long arg2 ;
29908 long arg3 ;
29909 bool result;
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 long val2 ;
29913 int ecode2 = 0 ;
29914 long val3 ;
29915 int ecode3 = 0 ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 PyObject * obj2 = 0 ;
29919 char * kwnames[] = {
29920 (char *) "self",(char *) "item",(char *) "data", NULL
29921 };
29922
29923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29925 if (!SWIG_IsOK(res1)) {
29926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29927 }
29928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29929 ecode2 = SWIG_AsVal_long(obj1, &val2);
29930 if (!SWIG_IsOK(ecode2)) {
29931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29932 }
29933 arg2 = static_cast< long >(val2);
29934 ecode3 = SWIG_AsVal_long(obj2, &val3);
29935 if (!SWIG_IsOK(ecode3)) {
29936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29937 }
29938 arg3 = static_cast< long >(val3);
29939 {
29940 PyThreadState* __tstate = wxPyBeginAllowThreads();
29941 result = (bool)(arg1)->SetItemData(arg2,arg3);
29942 wxPyEndAllowThreads(__tstate);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 }
29945 {
29946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29947 }
29948 return resultobj;
29949fail:
29950 return NULL;
29951}
29952
29953
29954SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29955 PyObject *resultobj = 0;
29956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29957 long arg2 ;
29958 wxPoint result;
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 long val2 ;
29962 int ecode2 = 0 ;
29963 PyObject * obj0 = 0 ;
29964 PyObject * obj1 = 0 ;
29965 char * kwnames[] = {
29966 (char *) "self",(char *) "item", NULL
29967 };
29968
29969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29971 if (!SWIG_IsOK(res1)) {
29972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29973 }
29974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29975 ecode2 = SWIG_AsVal_long(obj1, &val2);
29976 if (!SWIG_IsOK(ecode2)) {
29977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29978 }
29979 arg2 = static_cast< long >(val2);
29980 {
29981 PyThreadState* __tstate = wxPyBeginAllowThreads();
29982 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29983 wxPyEndAllowThreads(__tstate);
29984 if (PyErr_Occurred()) SWIG_fail;
29985 }
29986 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29987 return resultobj;
29988fail:
29989 return NULL;
29990}
29991
29992
29993SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29994 PyObject *resultobj = 0;
29995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29996 long arg2 ;
29997 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29998 wxRect result;
29999 void *argp1 = 0 ;
30000 int res1 = 0 ;
30001 long val2 ;
30002 int ecode2 = 0 ;
30003 int val3 ;
30004 int ecode3 = 0 ;
30005 PyObject * obj0 = 0 ;
30006 PyObject * obj1 = 0 ;
30007 PyObject * obj2 = 0 ;
30008 char * kwnames[] = {
30009 (char *) "self",(char *) "item",(char *) "code", NULL
30010 };
30011
30012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30014 if (!SWIG_IsOK(res1)) {
30015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30016 }
30017 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30018 ecode2 = SWIG_AsVal_long(obj1, &val2);
30019 if (!SWIG_IsOK(ecode2)) {
30020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30021 }
30022 arg2 = static_cast< long >(val2);
30023 if (obj2) {
30024 ecode3 = SWIG_AsVal_int(obj2, &val3);
30025 if (!SWIG_IsOK(ecode3)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30027 }
30028 arg3 = static_cast< int >(val3);
30029 }
30030 {
30031 PyThreadState* __tstate = wxPyBeginAllowThreads();
30032 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30033 wxPyEndAllowThreads(__tstate);
30034 if (PyErr_Occurred()) SWIG_fail;
30035 }
30036 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30037 return resultobj;
30038fail:
30039 return NULL;
30040}
30041
30042
30043SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30044 PyObject *resultobj = 0;
30045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30046 long arg2 ;
30047 wxPoint *arg3 = 0 ;
30048 bool result;
30049 void *argp1 = 0 ;
30050 int res1 = 0 ;
30051 long val2 ;
30052 int ecode2 = 0 ;
30053 wxPoint temp3 ;
30054 PyObject * obj0 = 0 ;
30055 PyObject * obj1 = 0 ;
30056 PyObject * obj2 = 0 ;
30057 char * kwnames[] = {
30058 (char *) "self",(char *) "item",(char *) "pos", NULL
30059 };
30060
30061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30063 if (!SWIG_IsOK(res1)) {
30064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30065 }
30066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30067 ecode2 = SWIG_AsVal_long(obj1, &val2);
30068 if (!SWIG_IsOK(ecode2)) {
30069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30070 }
30071 arg2 = static_cast< long >(val2);
30072 {
30073 arg3 = &temp3;
30074 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30075 }
30076 {
30077 PyThreadState* __tstate = wxPyBeginAllowThreads();
30078 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30079 wxPyEndAllowThreads(__tstate);
30080 if (PyErr_Occurred()) SWIG_fail;
30081 }
30082 {
30083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30084 }
30085 return resultobj;
30086fail:
30087 return NULL;
7e08d4ef
RD
30088}
30089
30090
1bd55598
RD
30091SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30092 PyObject *resultobj = 0;
30093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30094 int result;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 PyObject *swig_obj[1] ;
30098
30099 if (!args) SWIG_fail;
30100 swig_obj[0] = args;
30101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30109 wxPyEndAllowThreads(__tstate);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_From_int(static_cast< int >(result));
30113 return resultobj;
30114fail:
30115 return NULL;
7e08d4ef
RD
30116}
30117
30118
1bd55598
RD
30119SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30120 PyObject *resultobj = 0;
30121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30122 int result;
30123 void *argp1 = 0 ;
30124 int res1 = 0 ;
30125 PyObject *swig_obj[1] ;
30126
30127 if (!args) SWIG_fail;
30128 swig_obj[0] = args;
30129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30130 if (!SWIG_IsOK(res1)) {
30131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30132 }
30133 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30134 {
30135 PyThreadState* __tstate = wxPyBeginAllowThreads();
30136 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30137 wxPyEndAllowThreads(__tstate);
30138 if (PyErr_Occurred()) SWIG_fail;
30139 }
30140 resultobj = SWIG_From_int(static_cast< int >(result));
30141 return resultobj;
30142fail:
30143 return NULL;
7e08d4ef
RD
30144}
30145
30146
1bd55598
RD
30147SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30148 PyObject *resultobj = 0;
30149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30150 wxSize result;
30151 void *argp1 = 0 ;
30152 int res1 = 0 ;
30153 PyObject *swig_obj[1] ;
30154
30155 if (!args) SWIG_fail;
30156 swig_obj[0] = args;
30157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30158 if (!SWIG_IsOK(res1)) {
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30160 }
30161 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30162 {
30163 PyThreadState* __tstate = wxPyBeginAllowThreads();
30164 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30165 wxPyEndAllowThreads(__tstate);
30166 if (PyErr_Occurred()) SWIG_fail;
30167 }
30168 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30169 return resultobj;
30170fail:
30171 return NULL;
30172}
30173
30174
30175SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30176 PyObject *resultobj = 0;
30177 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30178 int arg2 ;
30179 bool arg3 = (bool) false ;
30180 void *argp1 = 0 ;
30181 int res1 = 0 ;
30182 int val2 ;
30183 int ecode2 = 0 ;
30184 bool val3 ;
30185 int ecode3 = 0 ;
30186 PyObject * obj0 = 0 ;
30187 PyObject * obj1 = 0 ;
30188 PyObject * obj2 = 0 ;
30189 char * kwnames[] = {
30190 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30191 };
30192
30193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30195 if (!SWIG_IsOK(res1)) {
30196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30197 }
30198 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30199 ecode2 = SWIG_AsVal_int(obj1, &val2);
30200 if (!SWIG_IsOK(ecode2)) {
30201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30202 }
30203 arg2 = static_cast< int >(val2);
30204 if (obj2) {
30205 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30206 if (!SWIG_IsOK(ecode3)) {
30207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30208 }
30209 arg3 = static_cast< bool >(val3);
30210 }
30211 {
30212 PyThreadState* __tstate = wxPyBeginAllowThreads();
30213 (arg1)->SetItemSpacing(arg2,arg3);
30214 wxPyEndAllowThreads(__tstate);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 resultobj = SWIG_Py_Void();
30218 return resultobj;
30219fail:
30220 return NULL;
7e08d4ef
RD
30221}
30222
30223
1bd55598
RD
30224SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30225 PyObject *resultobj = 0;
30226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30227 int result;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 PyObject *swig_obj[1] ;
30231
30232 if (!args) SWIG_fail;
30233 swig_obj[0] = args;
30234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30235 if (!SWIG_IsOK(res1)) {
30236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30237 }
30238 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30239 {
30240 PyThreadState* __tstate = wxPyBeginAllowThreads();
30241 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30242 wxPyEndAllowThreads(__tstate);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 resultobj = SWIG_From_int(static_cast< int >(result));
30246 return resultobj;
30247fail:
30248 return NULL;
7e08d4ef
RD
30249}
30250
30251
1bd55598
RD
30252SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30253 PyObject *resultobj = 0;
30254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30255 wxColour result;
30256 void *argp1 = 0 ;
30257 int res1 = 0 ;
30258 PyObject *swig_obj[1] ;
30259
30260 if (!args) SWIG_fail;
30261 swig_obj[0] = args;
30262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30263 if (!SWIG_IsOK(res1)) {
30264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30265 }
30266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30267 {
30268 PyThreadState* __tstate = wxPyBeginAllowThreads();
30269 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30270 wxPyEndAllowThreads(__tstate);
30271 if (PyErr_Occurred()) SWIG_fail;
30272 }
30273 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30274 return resultobj;
30275fail:
30276 return NULL;
30277}
30278
30279
30280SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30281 PyObject *resultobj = 0;
30282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30283 wxColour *arg2 = 0 ;
30284 void *argp1 = 0 ;
30285 int res1 = 0 ;
30286 wxColour temp2 ;
30287 PyObject * obj0 = 0 ;
30288 PyObject * obj1 = 0 ;
30289 char * kwnames[] = {
30290 (char *) "self",(char *) "col", NULL
30291 };
30292
30293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30299 {
30300 arg2 = &temp2;
30301 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30302 }
30303 {
30304 PyThreadState* __tstate = wxPyBeginAllowThreads();
30305 (arg1)->SetTextColour((wxColour const &)*arg2);
30306 wxPyEndAllowThreads(__tstate);
30307 if (PyErr_Occurred()) SWIG_fail;
30308 }
30309 resultobj = SWIG_Py_Void();
30310 return resultobj;
30311fail:
30312 return NULL;
7e08d4ef
RD
30313}
30314
30315
1bd55598
RD
30316SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30317 PyObject *resultobj = 0;
30318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30319 long result;
30320 void *argp1 = 0 ;
30321 int res1 = 0 ;
30322 PyObject *swig_obj[1] ;
30323
30324 if (!args) SWIG_fail;
30325 swig_obj[0] = args;
30326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30327 if (!SWIG_IsOK(res1)) {
30328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30329 }
30330 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30331 {
30332 PyThreadState* __tstate = wxPyBeginAllowThreads();
30333 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30334 wxPyEndAllowThreads(__tstate);
30335 if (PyErr_Occurred()) SWIG_fail;
30336 }
30337 resultobj = SWIG_From_long(static_cast< long >(result));
30338 return resultobj;
30339fail:
30340 return NULL;
30341}
30342
30343
30344SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30345 PyObject *resultobj = 0;
30346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30347 long arg2 ;
30348 bool arg3 = (bool) true ;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 long val2 ;
30352 int ecode2 = 0 ;
30353 bool val3 ;
30354 int ecode3 = 0 ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 PyObject * obj2 = 0 ;
30358 char * kwnames[] = {
30359 (char *) "self",(char *) "style",(char *) "add", NULL
30360 };
30361
30362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30364 if (!SWIG_IsOK(res1)) {
30365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30366 }
30367 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30368 ecode2 = SWIG_AsVal_long(obj1, &val2);
30369 if (!SWIG_IsOK(ecode2)) {
30370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30371 }
30372 arg2 = static_cast< long >(val2);
30373 if (obj2) {
30374 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30375 if (!SWIG_IsOK(ecode3)) {
30376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30377 }
30378 arg3 = static_cast< bool >(val3);
30379 }
30380 {
30381 PyThreadState* __tstate = wxPyBeginAllowThreads();
30382 (arg1)->SetSingleStyle(arg2,arg3);
30383 wxPyEndAllowThreads(__tstate);
30384 if (PyErr_Occurred()) SWIG_fail;
30385 }
30386 resultobj = SWIG_Py_Void();
30387 return resultobj;
30388fail:
30389 return NULL;
30390}
30391
30392
30393SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30394 PyObject *resultobj = 0;
30395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30396 long arg2 ;
30397 int arg3 = (int) wxLIST_NEXT_ALL ;
30398 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30399 long result;
30400 void *argp1 = 0 ;
30401 int res1 = 0 ;
30402 long val2 ;
30403 int ecode2 = 0 ;
30404 int val3 ;
30405 int ecode3 = 0 ;
30406 int val4 ;
30407 int ecode4 = 0 ;
30408 PyObject * obj0 = 0 ;
30409 PyObject * obj1 = 0 ;
30410 PyObject * obj2 = 0 ;
30411 PyObject * obj3 = 0 ;
30412 char * kwnames[] = {
30413 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30414 };
30415
30416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30418 if (!SWIG_IsOK(res1)) {
30419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30420 }
30421 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30422 ecode2 = SWIG_AsVal_long(obj1, &val2);
30423 if (!SWIG_IsOK(ecode2)) {
30424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30425 }
30426 arg2 = static_cast< long >(val2);
30427 if (obj2) {
30428 ecode3 = SWIG_AsVal_int(obj2, &val3);
30429 if (!SWIG_IsOK(ecode3)) {
30430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30431 }
30432 arg3 = static_cast< int >(val3);
30433 }
30434 if (obj3) {
30435 ecode4 = SWIG_AsVal_int(obj3, &val4);
30436 if (!SWIG_IsOK(ecode4)) {
30437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30438 }
30439 arg4 = static_cast< int >(val4);
30440 }
30441 {
30442 PyThreadState* __tstate = wxPyBeginAllowThreads();
30443 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30444 wxPyEndAllowThreads(__tstate);
30445 if (PyErr_Occurred()) SWIG_fail;
30446 }
30447 resultobj = SWIG_From_long(static_cast< long >(result));
30448 return resultobj;
30449fail:
30450 return NULL;
30451}
30452
30453
30454SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30455 PyObject *resultobj = 0;
30456 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30457 int arg2 ;
30458 wxImageList *result = 0 ;
30459 void *argp1 = 0 ;
30460 int res1 = 0 ;
30461 int val2 ;
30462 int ecode2 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 char * kwnames[] = {
30466 (char *) "self",(char *) "which", NULL
30467 };
30468
30469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30471 if (!SWIG_IsOK(res1)) {
30472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30473 }
30474 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30475 ecode2 = SWIG_AsVal_int(obj1, &val2);
30476 if (!SWIG_IsOK(ecode2)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30478 }
30479 arg2 = static_cast< int >(val2);
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
3ecece7e
RD
30486 {
30487 resultobj = wxPyMake_wxObject(result, (bool)0);
30488 }
1bd55598
RD
30489 return resultobj;
30490fail:
30491 return NULL;
30492}
30493
30494
30495SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30496 PyObject *resultobj = 0;
30497 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30498 wxImageList *arg2 = (wxImageList *) 0 ;
30499 int arg3 ;
30500 void *argp1 = 0 ;
30501 int res1 = 0 ;
30502 void *argp2 = 0 ;
30503 int res2 = 0 ;
30504 int val3 ;
30505 int ecode3 = 0 ;
30506 PyObject * obj0 = 0 ;
30507 PyObject * obj1 = 0 ;
30508 PyObject * obj2 = 0 ;
30509 char * kwnames[] = {
30510 (char *) "self",(char *) "imageList",(char *) "which", NULL
30511 };
30512
30513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30515 if (!SWIG_IsOK(res1)) {
30516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30517 }
30518 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30520 if (!SWIG_IsOK(res2)) {
30521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30522 }
30523 arg2 = reinterpret_cast< wxImageList * >(argp2);
30524 ecode3 = SWIG_AsVal_int(obj2, &val3);
30525 if (!SWIG_IsOK(ecode3)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30527 }
30528 arg3 = static_cast< int >(val3);
30529 {
30530 PyThreadState* __tstate = wxPyBeginAllowThreads();
30531 (arg1)->SetImageList(arg2,arg3);
30532 wxPyEndAllowThreads(__tstate);
30533 if (PyErr_Occurred()) SWIG_fail;
30534 }
30535 resultobj = SWIG_Py_Void();
30536 return resultobj;
30537fail:
30538 return NULL;
30539}
30540
30541
30542SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj = 0;
30544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30545 wxImageList *arg2 = (wxImageList *) 0 ;
30546 int arg3 ;
30547 void *argp1 = 0 ;
30548 int res1 = 0 ;
30549 int res2 = 0 ;
30550 int val3 ;
30551 int ecode3 = 0 ;
30552 PyObject * obj0 = 0 ;
30553 PyObject * obj1 = 0 ;
30554 PyObject * obj2 = 0 ;
30555 char * kwnames[] = {
30556 (char *) "self",(char *) "imageList",(char *) "which", NULL
30557 };
30558
30559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30561 if (!SWIG_IsOK(res1)) {
30562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30563 }
30564 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30565 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30566 if (!SWIG_IsOK(res2)) {
30567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30568 }
30569 ecode3 = SWIG_AsVal_int(obj2, &val3);
30570 if (!SWIG_IsOK(ecode3)) {
30571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30572 }
30573 arg3 = static_cast< int >(val3);
30574 {
30575 PyThreadState* __tstate = wxPyBeginAllowThreads();
30576 (arg1)->AssignImageList(arg2,arg3);
30577 wxPyEndAllowThreads(__tstate);
30578 if (PyErr_Occurred()) SWIG_fail;
30579 }
30580 resultobj = SWIG_Py_Void();
30581 return resultobj;
30582fail:
30583 return NULL;
7e08d4ef
RD
30584}
30585
30586
1bd55598
RD
30587SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30588 PyObject *resultobj = 0;
30589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30590 bool result;
30591 void *argp1 = 0 ;
30592 int res1 = 0 ;
30593 PyObject *swig_obj[1] ;
30594
30595 if (!args) SWIG_fail;
30596 swig_obj[0] = args;
30597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30598 if (!SWIG_IsOK(res1)) {
30599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30600 }
30601 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30602 {
30603 PyThreadState* __tstate = wxPyBeginAllowThreads();
30604 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30605 wxPyEndAllowThreads(__tstate);
30606 if (PyErr_Occurred()) SWIG_fail;
30607 }
30608 {
30609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30610 }
30611 return resultobj;
30612fail:
30613 return NULL;
44bf767a
RD
30614}
30615
30616
1bd55598
RD
30617SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30618 PyObject *resultobj = 0;
30619 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30620 bool result;
30621 void *argp1 = 0 ;
30622 int res1 = 0 ;
30623 PyObject *swig_obj[1] ;
30624
30625 if (!args) SWIG_fail;
30626 swig_obj[0] = args;
30627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30628 if (!SWIG_IsOK(res1)) {
30629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30630 }
30631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30632 {
30633 PyThreadState* __tstate = wxPyBeginAllowThreads();
30634 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30635 wxPyEndAllowThreads(__tstate);
30636 if (PyErr_Occurred()) SWIG_fail;
30637 }
30638 {
30639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30640 }
30641 return resultobj;
30642fail:
30643 return NULL;
30644}
30645
30646
30647SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30648 PyObject *resultobj = 0;
30649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30650 long arg2 ;
30651 void *argp1 = 0 ;
30652 int res1 = 0 ;
30653 long val2 ;
30654 int ecode2 = 0 ;
30655 PyObject * obj0 = 0 ;
30656 PyObject * obj1 = 0 ;
30657 char * kwnames[] = {
30658 (char *) "self",(char *) "item", NULL
30659 };
30660
30661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30663 if (!SWIG_IsOK(res1)) {
30664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30665 }
30666 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30667 ecode2 = SWIG_AsVal_long(obj1, &val2);
30668 if (!SWIG_IsOK(ecode2)) {
30669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30670 }
30671 arg2 = static_cast< long >(val2);
30672 {
30673 PyThreadState* __tstate = wxPyBeginAllowThreads();
30674 (arg1)->RefreshItem(arg2);
30675 wxPyEndAllowThreads(__tstate);
30676 if (PyErr_Occurred()) SWIG_fail;
30677 }
30678 resultobj = SWIG_Py_Void();
30679 return resultobj;
30680fail:
30681 return NULL;
30682}
30683
30684
30685SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30686 PyObject *resultobj = 0;
30687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30688 long arg2 ;
30689 long arg3 ;
30690 void *argp1 = 0 ;
30691 int res1 = 0 ;
30692 long val2 ;
30693 int ecode2 = 0 ;
30694 long val3 ;
30695 int ecode3 = 0 ;
30696 PyObject * obj0 = 0 ;
30697 PyObject * obj1 = 0 ;
30698 PyObject * obj2 = 0 ;
30699 char * kwnames[] = {
30700 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30701 };
30702
30703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30705 if (!SWIG_IsOK(res1)) {
30706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30707 }
30708 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30709 ecode2 = SWIG_AsVal_long(obj1, &val2);
30710 if (!SWIG_IsOK(ecode2)) {
30711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30712 }
30713 arg2 = static_cast< long >(val2);
30714 ecode3 = SWIG_AsVal_long(obj2, &val3);
30715 if (!SWIG_IsOK(ecode3)) {
30716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30717 }
30718 arg3 = static_cast< long >(val3);
30719 {
30720 PyThreadState* __tstate = wxPyBeginAllowThreads();
30721 (arg1)->RefreshItems(arg2,arg3);
30722 wxPyEndAllowThreads(__tstate);
30723 if (PyErr_Occurred()) SWIG_fail;
30724 }
30725 resultobj = SWIG_Py_Void();
30726 return resultobj;
30727fail:
30728 return NULL;
30729}
30730
30731
30732SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30733 PyObject *resultobj = 0;
30734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30735 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30736 bool result;
30737 void *argp1 = 0 ;
30738 int res1 = 0 ;
30739 int val2 ;
30740 int ecode2 = 0 ;
30741 PyObject * obj0 = 0 ;
30742 PyObject * obj1 = 0 ;
30743 char * kwnames[] = {
30744 (char *) "self",(char *) "flag", NULL
30745 };
30746
30747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30749 if (!SWIG_IsOK(res1)) {
30750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30751 }
30752 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30753 if (obj1) {
30754 ecode2 = SWIG_AsVal_int(obj1, &val2);
30755 if (!SWIG_IsOK(ecode2)) {
30756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30757 }
30758 arg2 = static_cast< int >(val2);
30759 }
30760 {
30761 PyThreadState* __tstate = wxPyBeginAllowThreads();
30762 result = (bool)(arg1)->Arrange(arg2);
30763 wxPyEndAllowThreads(__tstate);
30764 if (PyErr_Occurred()) SWIG_fail;
30765 }
30766 {
30767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30768 }
30769 return resultobj;
30770fail:
30771 return NULL;
30772}
30773
30774
30775SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30776 PyObject *resultobj = 0;
30777 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30778 long arg2 ;
30779 bool result;
30780 void *argp1 = 0 ;
30781 int res1 = 0 ;
30782 long val2 ;
30783 int ecode2 = 0 ;
30784 PyObject * obj0 = 0 ;
30785 PyObject * obj1 = 0 ;
30786 char * kwnames[] = {
30787 (char *) "self",(char *) "item", NULL
30788 };
30789
30790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30792 if (!SWIG_IsOK(res1)) {
30793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30794 }
30795 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30796 ecode2 = SWIG_AsVal_long(obj1, &val2);
30797 if (!SWIG_IsOK(ecode2)) {
30798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30799 }
30800 arg2 = static_cast< long >(val2);
30801 {
30802 PyThreadState* __tstate = wxPyBeginAllowThreads();
30803 result = (bool)(arg1)->DeleteItem(arg2);
30804 wxPyEndAllowThreads(__tstate);
30805 if (PyErr_Occurred()) SWIG_fail;
30806 }
30807 {
30808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30809 }
30810 return resultobj;
30811fail:
30812 return NULL;
d55e5bfc
RD
30813}
30814
30815
1bd55598
RD
30816SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30817 PyObject *resultobj = 0;
30818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30819 bool result;
30820 void *argp1 = 0 ;
30821 int res1 = 0 ;
30822 PyObject *swig_obj[1] ;
30823
30824 if (!args) SWIG_fail;
30825 swig_obj[0] = args;
30826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30827 if (!SWIG_IsOK(res1)) {
30828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30829 }
30830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 result = (bool)(arg1)->DeleteAllItems();
30834 wxPyEndAllowThreads(__tstate);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 }
30837 {
30838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30839 }
30840 return resultobj;
30841fail:
30842 return NULL;
30843}
30844
30845
30846SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj = 0;
30848 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30849 int arg2 ;
30850 bool result;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 int val2 ;
30854 int ecode2 = 0 ;
30855 PyObject * obj0 = 0 ;
30856 PyObject * obj1 = 0 ;
30857 char * kwnames[] = {
30858 (char *) "self",(char *) "col", NULL
30859 };
30860
30861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30863 if (!SWIG_IsOK(res1)) {
30864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30865 }
30866 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30867 ecode2 = SWIG_AsVal_int(obj1, &val2);
30868 if (!SWIG_IsOK(ecode2)) {
30869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30870 }
30871 arg2 = static_cast< int >(val2);
30872 {
30873 PyThreadState* __tstate = wxPyBeginAllowThreads();
30874 result = (bool)(arg1)->DeleteColumn(arg2);
30875 wxPyEndAllowThreads(__tstate);
30876 if (PyErr_Occurred()) SWIG_fail;
30877 }
30878 {
30879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30880 }
30881 return resultobj;
30882fail:
30883 return NULL;
b411df4a
RD
30884}
30885
30886
1bd55598
RD
30887SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30888 PyObject *resultobj = 0;
30889 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30890 bool result;
30891 void *argp1 = 0 ;
30892 int res1 = 0 ;
30893 PyObject *swig_obj[1] ;
30894
30895 if (!args) SWIG_fail;
30896 swig_obj[0] = args;
30897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30898 if (!SWIG_IsOK(res1)) {
30899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30900 }
30901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30902 {
30903 PyThreadState* __tstate = wxPyBeginAllowThreads();
30904 result = (bool)(arg1)->DeleteAllColumns();
30905 wxPyEndAllowThreads(__tstate);
30906 if (PyErr_Occurred()) SWIG_fail;
30907 }
30908 {
30909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30910 }
30911 return resultobj;
30912fail:
30913 return NULL;
b411df4a
RD
30914}
30915
30916
1bd55598
RD
30917SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30918 PyObject *resultobj = 0;
30919 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 PyObject *swig_obj[1] ;
30923
30924 if (!args) SWIG_fail;
30925 swig_obj[0] = args;
30926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30929 }
30930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30931 {
30932 PyThreadState* __tstate = wxPyBeginAllowThreads();
30933 (arg1)->ClearAll();
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 resultobj = SWIG_Py_Void();
30938 return resultobj;
30939fail:
30940 return NULL;
30941}
30942
30943
30944SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30945 PyObject *resultobj = 0;
30946 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30947 long arg2 ;
30948 void *argp1 = 0 ;
30949 int res1 = 0 ;
30950 long val2 ;
30951 int ecode2 = 0 ;
30952 PyObject * obj0 = 0 ;
30953 PyObject * obj1 = 0 ;
30954 char * kwnames[] = {
30955 (char *) "self",(char *) "item", NULL
30956 };
30957
30958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30960 if (!SWIG_IsOK(res1)) {
30961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30962 }
30963 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30964 ecode2 = SWIG_AsVal_long(obj1, &val2);
30965 if (!SWIG_IsOK(ecode2)) {
30966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30967 }
30968 arg2 = static_cast< long >(val2);
30969 {
30970 PyThreadState* __tstate = wxPyBeginAllowThreads();
30971 (arg1)->EditLabel(arg2);
30972 wxPyEndAllowThreads(__tstate);
30973 if (PyErr_Occurred()) SWIG_fail;
30974 }
30975 resultobj = SWIG_Py_Void();
30976 return resultobj;
30977fail:
30978 return NULL;
30979}
30980
30981
30982SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30983 PyObject *resultobj = 0;
30984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30985 long arg2 ;
30986 bool result;
30987 void *argp1 = 0 ;
30988 int res1 = 0 ;
30989 long val2 ;
30990 int ecode2 = 0 ;
30991 PyObject * obj0 = 0 ;
30992 PyObject * obj1 = 0 ;
30993 char * kwnames[] = {
30994 (char *) "self",(char *) "item", NULL
30995 };
30996
30997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30999 if (!SWIG_IsOK(res1)) {
31000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31001 }
31002 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31003 ecode2 = SWIG_AsVal_long(obj1, &val2);
31004 if (!SWIG_IsOK(ecode2)) {
31005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31006 }
31007 arg2 = static_cast< long >(val2);
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 result = (bool)(arg1)->EnsureVisible(arg2);
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 {
31015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31016 }
31017 return resultobj;
31018fail:
31019 return NULL;
31020}
31021
31022
31023SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj = 0;
31025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31026 long arg2 ;
31027 wxString *arg3 = 0 ;
31028 bool arg4 = (bool) false ;
31029 long result;
31030 void *argp1 = 0 ;
31031 int res1 = 0 ;
31032 long val2 ;
31033 int ecode2 = 0 ;
31034 bool temp3 = false ;
31035 bool val4 ;
31036 int ecode4 = 0 ;
31037 PyObject * obj0 = 0 ;
31038 PyObject * obj1 = 0 ;
31039 PyObject * obj2 = 0 ;
31040 PyObject * obj3 = 0 ;
31041 char * kwnames[] = {
31042 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31043 };
31044
31045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31047 if (!SWIG_IsOK(res1)) {
31048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31049 }
31050 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31051 ecode2 = SWIG_AsVal_long(obj1, &val2);
31052 if (!SWIG_IsOK(ecode2)) {
31053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31054 }
31055 arg2 = static_cast< long >(val2);
31056 {
31057 arg3 = wxString_in_helper(obj2);
31058 if (arg3 == NULL) SWIG_fail;
31059 temp3 = true;
31060 }
31061 if (obj3) {
31062 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31063 if (!SWIG_IsOK(ecode4)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31065 }
31066 arg4 = static_cast< bool >(val4);
31067 }
31068 {
31069 PyThreadState* __tstate = wxPyBeginAllowThreads();
31070 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31071 wxPyEndAllowThreads(__tstate);
31072 if (PyErr_Occurred()) SWIG_fail;
31073 }
31074 resultobj = SWIG_From_long(static_cast< long >(result));
31075 {
31076 if (temp3)
31077 delete arg3;
31078 }
31079 return resultobj;
31080fail:
31081 {
31082 if (temp3)
31083 delete arg3;
31084 }
31085 return NULL;
31086}
31087
31088
31089SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31090 PyObject *resultobj = 0;
31091 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31092 long arg2 ;
31093 long arg3 ;
31094 long result;
31095 void *argp1 = 0 ;
31096 int res1 = 0 ;
31097 long val2 ;
31098 int ecode2 = 0 ;
31099 long val3 ;
31100 int ecode3 = 0 ;
31101 PyObject * obj0 = 0 ;
31102 PyObject * obj1 = 0 ;
31103 PyObject * obj2 = 0 ;
31104 char * kwnames[] = {
31105 (char *) "self",(char *) "start",(char *) "data", NULL
31106 };
31107
31108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31110 if (!SWIG_IsOK(res1)) {
31111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31112 }
31113 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31114 ecode2 = SWIG_AsVal_long(obj1, &val2);
31115 if (!SWIG_IsOK(ecode2)) {
31116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31117 }
31118 arg2 = static_cast< long >(val2);
31119 ecode3 = SWIG_AsVal_long(obj2, &val3);
31120 if (!SWIG_IsOK(ecode3)) {
31121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31122 }
31123 arg3 = static_cast< long >(val3);
31124 {
31125 PyThreadState* __tstate = wxPyBeginAllowThreads();
31126 result = (long)(arg1)->FindItem(arg2,arg3);
31127 wxPyEndAllowThreads(__tstate);
31128 if (PyErr_Occurred()) SWIG_fail;
31129 }
31130 resultobj = SWIG_From_long(static_cast< long >(result));
31131 return resultobj;
31132fail:
31133 return NULL;
31134}
31135
31136
31137SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31138 PyObject *resultobj = 0;
31139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31140 long arg2 ;
31141 wxPoint *arg3 = 0 ;
31142 int arg4 ;
31143 long result;
31144 void *argp1 = 0 ;
31145 int res1 = 0 ;
31146 long val2 ;
31147 int ecode2 = 0 ;
31148 wxPoint temp3 ;
31149 int val4 ;
31150 int ecode4 = 0 ;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 PyObject * obj2 = 0 ;
31154 PyObject * obj3 = 0 ;
31155 char * kwnames[] = {
31156 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31157 };
31158
31159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31161 if (!SWIG_IsOK(res1)) {
31162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31163 }
31164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31165 ecode2 = SWIG_AsVal_long(obj1, &val2);
31166 if (!SWIG_IsOK(ecode2)) {
31167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31168 }
31169 arg2 = static_cast< long >(val2);
31170 {
31171 arg3 = &temp3;
31172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31173 }
31174 ecode4 = SWIG_AsVal_int(obj3, &val4);
31175 if (!SWIG_IsOK(ecode4)) {
31176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31177 }
31178 arg4 = static_cast< int >(val4);
31179 {
31180 PyThreadState* __tstate = wxPyBeginAllowThreads();
31181 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31182 wxPyEndAllowThreads(__tstate);
31183 if (PyErr_Occurred()) SWIG_fail;
31184 }
31185 resultobj = SWIG_From_long(static_cast< long >(result));
31186 return resultobj;
31187fail:
31188 return NULL;
31189}
31190
31191
31192SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31193 PyObject *resultobj = 0;
31194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31195 wxPoint *arg2 = 0 ;
31196 int *arg3 = 0 ;
31197 long result;
31198 void *argp1 = 0 ;
31199 int res1 = 0 ;
31200 wxPoint temp2 ;
31201 int temp3 ;
31202 int res3 = SWIG_TMPOBJ ;
31203 PyObject * obj0 = 0 ;
31204 PyObject * obj1 = 0 ;
31205 char * kwnames[] = {
31206 (char *) "self",(char *) "point", NULL
31207 };
31208
31209 arg3 = &temp3;
31210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31212 if (!SWIG_IsOK(res1)) {
31213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31214 }
31215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31216 {
31217 arg2 = &temp2;
31218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31219 }
31220 {
31221 PyThreadState* __tstate = wxPyBeginAllowThreads();
31222 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31223 wxPyEndAllowThreads(__tstate);
31224 if (PyErr_Occurred()) SWIG_fail;
31225 }
31226 resultobj = SWIG_From_long(static_cast< long >(result));
31227 if (SWIG_IsTmpObj(res3)) {
31228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31229 } else {
31230 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31231 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31232 }
31233 return resultobj;
31234fail:
31235 return NULL;
31236}
31237
31238
704eda0c
RD
31239SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31240 PyObject *resultobj = 0;
31241 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31242 wxPoint *arg2 = 0 ;
31243 int *arg3 = 0 ;
31244 long *arg4 = (long *) 0 ;
31245 long result;
31246 void *argp1 = 0 ;
31247 int res1 = 0 ;
31248 wxPoint temp2 ;
31249 int temp3 ;
31250 int res3 = SWIG_TMPOBJ ;
31251 long temp4 ;
31252 int res4 = SWIG_TMPOBJ ;
31253 PyObject * obj0 = 0 ;
31254 PyObject * obj1 = 0 ;
31255 char * kwnames[] = {
31256 (char *) "self",(char *) "point", NULL
31257 };
31258
31259 arg3 = &temp3;
31260 arg4 = &temp4;
31261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31263 if (!SWIG_IsOK(res1)) {
31264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31265 }
31266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31267 {
31268 arg2 = &temp2;
31269 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31270 }
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 resultobj = SWIG_From_long(static_cast< long >(result));
31278 if (SWIG_IsTmpObj(res3)) {
31279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31280 } else {
31281 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31283 }
31284 if (SWIG_IsTmpObj(res4)) {
31285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31286 } else {
31287 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31289 }
31290 return resultobj;
31291fail:
31292 return NULL;
31293}
31294
31295
1bd55598
RD
31296SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31297 PyObject *resultobj = 0;
31298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31299 wxListItem *arg2 = 0 ;
31300 long result;
31301 void *argp1 = 0 ;
31302 int res1 = 0 ;
31303 void *argp2 = 0 ;
31304 int res2 = 0 ;
31305 PyObject * obj0 = 0 ;
31306 PyObject * obj1 = 0 ;
31307 char * kwnames[] = {
31308 (char *) "self",(char *) "info", NULL
31309 };
31310
31311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31313 if (!SWIG_IsOK(res1)) {
31314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31315 }
31316 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31318 if (!SWIG_IsOK(res2)) {
31319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31320 }
31321 if (!argp2) {
31322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31323 }
31324 arg2 = reinterpret_cast< wxListItem * >(argp2);
31325 {
31326 PyThreadState* __tstate = wxPyBeginAllowThreads();
31327 result = (long)(arg1)->InsertItem(*arg2);
31328 wxPyEndAllowThreads(__tstate);
31329 if (PyErr_Occurred()) SWIG_fail;
31330 }
31331 resultobj = SWIG_From_long(static_cast< long >(result));
31332 return resultobj;
31333fail:
31334 return NULL;
31335}
31336
31337
31338SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31339 PyObject *resultobj = 0;
31340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31341 long arg2 ;
31342 wxString *arg3 = 0 ;
31343 int arg4 = (int) -1 ;
31344 long result;
31345 void *argp1 = 0 ;
31346 int res1 = 0 ;
31347 long val2 ;
31348 int ecode2 = 0 ;
31349 bool temp3 = false ;
31350 int val4 ;
31351 int ecode4 = 0 ;
31352 PyObject * obj0 = 0 ;
31353 PyObject * obj1 = 0 ;
31354 PyObject * obj2 = 0 ;
31355 PyObject * obj3 = 0 ;
31356 char * kwnames[] = {
31357 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31358 };
31359
31360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31362 if (!SWIG_IsOK(res1)) {
31363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31364 }
31365 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31366 ecode2 = SWIG_AsVal_long(obj1, &val2);
31367 if (!SWIG_IsOK(ecode2)) {
31368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31369 }
31370 arg2 = static_cast< long >(val2);
31371 {
31372 arg3 = wxString_in_helper(obj2);
31373 if (arg3 == NULL) SWIG_fail;
31374 temp3 = true;
31375 }
31376 if (obj3) {
31377 ecode4 = SWIG_AsVal_int(obj3, &val4);
31378 if (!SWIG_IsOK(ecode4)) {
31379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31380 }
31381 arg4 = static_cast< int >(val4);
31382 }
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 resultobj = SWIG_From_long(static_cast< long >(result));
31390 {
31391 if (temp3)
31392 delete arg3;
31393 }
31394 return resultobj;
31395fail:
31396 {
31397 if (temp3)
31398 delete arg3;
31399 }
31400 return NULL;
31401}
31402
31403
31404SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31405 PyObject *resultobj = 0;
31406 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31407 long arg2 ;
31408 int arg3 ;
31409 long result;
31410 void *argp1 = 0 ;
31411 int res1 = 0 ;
31412 long val2 ;
31413 int ecode2 = 0 ;
31414 int val3 ;
31415 int ecode3 = 0 ;
31416 PyObject * obj0 = 0 ;
31417 PyObject * obj1 = 0 ;
31418 PyObject * obj2 = 0 ;
31419 char * kwnames[] = {
31420 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31421 };
31422
31423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31425 if (!SWIG_IsOK(res1)) {
31426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31427 }
31428 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31429 ecode2 = SWIG_AsVal_long(obj1, &val2);
31430 if (!SWIG_IsOK(ecode2)) {
31431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31432 }
31433 arg2 = static_cast< long >(val2);
31434 ecode3 = SWIG_AsVal_int(obj2, &val3);
31435 if (!SWIG_IsOK(ecode3)) {
31436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31437 }
31438 arg3 = static_cast< int >(val3);
31439 {
31440 PyThreadState* __tstate = wxPyBeginAllowThreads();
31441 result = (long)(arg1)->InsertItem(arg2,arg3);
31442 wxPyEndAllowThreads(__tstate);
31443 if (PyErr_Occurred()) SWIG_fail;
31444 }
31445 resultobj = SWIG_From_long(static_cast< long >(result));
31446 return resultobj;
31447fail:
31448 return NULL;
31449}
31450
31451
31452SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31453 PyObject *resultobj = 0;
31454 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31455 long arg2 ;
31456 wxString *arg3 = 0 ;
31457 int arg4 ;
31458 long result;
31459 void *argp1 = 0 ;
31460 int res1 = 0 ;
31461 long val2 ;
31462 int ecode2 = 0 ;
31463 bool temp3 = false ;
31464 int val4 ;
31465 int ecode4 = 0 ;
31466 PyObject * obj0 = 0 ;
31467 PyObject * obj1 = 0 ;
31468 PyObject * obj2 = 0 ;
31469 PyObject * obj3 = 0 ;
31470 char * kwnames[] = {
31471 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31472 };
31473
31474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31476 if (!SWIG_IsOK(res1)) {
31477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31478 }
31479 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31480 ecode2 = SWIG_AsVal_long(obj1, &val2);
31481 if (!SWIG_IsOK(ecode2)) {
31482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31483 }
31484 arg2 = static_cast< long >(val2);
31485 {
31486 arg3 = wxString_in_helper(obj2);
31487 if (arg3 == NULL) SWIG_fail;
31488 temp3 = true;
31489 }
31490 ecode4 = SWIG_AsVal_int(obj3, &val4);
31491 if (!SWIG_IsOK(ecode4)) {
31492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31493 }
31494 arg4 = static_cast< int >(val4);
31495 {
31496 PyThreadState* __tstate = wxPyBeginAllowThreads();
31497 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31498 wxPyEndAllowThreads(__tstate);
31499 if (PyErr_Occurred()) SWIG_fail;
31500 }
31501 resultobj = SWIG_From_long(static_cast< long >(result));
31502 {
31503 if (temp3)
31504 delete arg3;
31505 }
31506 return resultobj;
31507fail:
31508 {
31509 if (temp3)
31510 delete arg3;
31511 }
31512 return NULL;
31513}
31514
31515
31516SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31517 PyObject *resultobj = 0;
31518 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31519 long arg2 ;
31520 wxListItem *arg3 = 0 ;
31521 long result;
31522 void *argp1 = 0 ;
31523 int res1 = 0 ;
31524 long val2 ;
31525 int ecode2 = 0 ;
31526 void *argp3 = 0 ;
31527 int res3 = 0 ;
31528 PyObject * obj0 = 0 ;
31529 PyObject * obj1 = 0 ;
31530 PyObject * obj2 = 0 ;
31531 char * kwnames[] = {
31532 (char *) "self",(char *) "col",(char *) "info", NULL
31533 };
31534
31535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31537 if (!SWIG_IsOK(res1)) {
31538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31539 }
31540 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31541 ecode2 = SWIG_AsVal_long(obj1, &val2);
31542 if (!SWIG_IsOK(ecode2)) {
31543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31544 }
31545 arg2 = static_cast< long >(val2);
31546 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31547 if (!SWIG_IsOK(res3)) {
31548 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31549 }
31550 if (!argp3) {
31551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31552 }
31553 arg3 = reinterpret_cast< wxListItem * >(argp3);
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_From_long(static_cast< long >(result));
31561 return resultobj;
31562fail:
31563 return NULL;
31564}
31565
31566
31567SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31568 PyObject *resultobj = 0;
31569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31570 long arg2 ;
31571 wxString *arg3 = 0 ;
31572 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31573 int arg5 = (int) -1 ;
31574 long result;
31575 void *argp1 = 0 ;
31576 int res1 = 0 ;
31577 long val2 ;
31578 int ecode2 = 0 ;
31579 bool temp3 = false ;
31580 int val4 ;
31581 int ecode4 = 0 ;
31582 int val5 ;
31583 int ecode5 = 0 ;
31584 PyObject * obj0 = 0 ;
31585 PyObject * obj1 = 0 ;
31586 PyObject * obj2 = 0 ;
31587 PyObject * obj3 = 0 ;
31588 PyObject * obj4 = 0 ;
31589 char * kwnames[] = {
31590 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31591 };
31592
31593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31595 if (!SWIG_IsOK(res1)) {
31596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31597 }
31598 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31599 ecode2 = SWIG_AsVal_long(obj1, &val2);
31600 if (!SWIG_IsOK(ecode2)) {
31601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31602 }
31603 arg2 = static_cast< long >(val2);
31604 {
31605 arg3 = wxString_in_helper(obj2);
31606 if (arg3 == NULL) SWIG_fail;
31607 temp3 = true;
31608 }
31609 if (obj3) {
31610 ecode4 = SWIG_AsVal_int(obj3, &val4);
31611 if (!SWIG_IsOK(ecode4)) {
31612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31613 }
31614 arg4 = static_cast< int >(val4);
31615 }
31616 if (obj4) {
31617 ecode5 = SWIG_AsVal_int(obj4, &val5);
31618 if (!SWIG_IsOK(ecode5)) {
31619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31620 }
31621 arg5 = static_cast< int >(val5);
31622 }
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31626 wxPyEndAllowThreads(__tstate);
31627 if (PyErr_Occurred()) SWIG_fail;
31628 }
31629 resultobj = SWIG_From_long(static_cast< long >(result));
31630 {
31631 if (temp3)
31632 delete arg3;
31633 }
31634 return resultobj;
31635fail:
31636 {
31637 if (temp3)
31638 delete arg3;
31639 }
31640 return NULL;
31641}
31642
31643
31644SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31645 PyObject *resultobj = 0;
31646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31647 long arg2 ;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 long val2 ;
31651 int ecode2 = 0 ;
31652 PyObject * obj0 = 0 ;
31653 PyObject * obj1 = 0 ;
31654 char * kwnames[] = {
31655 (char *) "self",(char *) "count", NULL
31656 };
31657
31658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31660 if (!SWIG_IsOK(res1)) {
31661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31662 }
31663 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31664 ecode2 = SWIG_AsVal_long(obj1, &val2);
31665 if (!SWIG_IsOK(ecode2)) {
31666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31667 }
31668 arg2 = static_cast< long >(val2);
31669 {
31670 PyThreadState* __tstate = wxPyBeginAllowThreads();
31671 (arg1)->SetItemCount(arg2);
31672 wxPyEndAllowThreads(__tstate);
31673 if (PyErr_Occurred()) SWIG_fail;
31674 }
31675 resultobj = SWIG_Py_Void();
31676 return resultobj;
31677fail:
31678 return NULL;
31679}
31680
31681
31682SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31683 PyObject *resultobj = 0;
31684 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31685 int arg2 ;
31686 int arg3 ;
31687 bool result;
31688 void *argp1 = 0 ;
31689 int res1 = 0 ;
31690 int val2 ;
31691 int ecode2 = 0 ;
31692 int val3 ;
31693 int ecode3 = 0 ;
31694 PyObject * obj0 = 0 ;
31695 PyObject * obj1 = 0 ;
31696 PyObject * obj2 = 0 ;
31697 char * kwnames[] = {
31698 (char *) "self",(char *) "dx",(char *) "dy", NULL
31699 };
31700
31701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31703 if (!SWIG_IsOK(res1)) {
31704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31705 }
31706 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31707 ecode2 = SWIG_AsVal_int(obj1, &val2);
31708 if (!SWIG_IsOK(ecode2)) {
31709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31710 }
31711 arg2 = static_cast< int >(val2);
31712 ecode3 = SWIG_AsVal_int(obj2, &val3);
31713 if (!SWIG_IsOK(ecode3)) {
31714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31715 }
31716 arg3 = static_cast< int >(val3);
31717 {
31718 PyThreadState* __tstate = wxPyBeginAllowThreads();
31719 result = (bool)(arg1)->ScrollList(arg2,arg3);
31720 wxPyEndAllowThreads(__tstate);
31721 if (PyErr_Occurred()) SWIG_fail;
31722 }
31723 {
31724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31725 }
31726 return resultobj;
31727fail:
31728 return NULL;
31729}
31730
31731
31732SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31733 PyObject *resultobj = 0;
31734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31735 long arg2 ;
31736 wxColour *arg3 = 0 ;
31737 void *argp1 = 0 ;
31738 int res1 = 0 ;
31739 long val2 ;
31740 int ecode2 = 0 ;
31741 wxColour temp3 ;
31742 PyObject * obj0 = 0 ;
31743 PyObject * obj1 = 0 ;
31744 PyObject * obj2 = 0 ;
31745 char * kwnames[] = {
31746 (char *) "self",(char *) "item",(char *) "col", NULL
31747 };
31748
31749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31751 if (!SWIG_IsOK(res1)) {
31752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31753 }
31754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31755 ecode2 = SWIG_AsVal_long(obj1, &val2);
31756 if (!SWIG_IsOK(ecode2)) {
31757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31758 }
31759 arg2 = static_cast< long >(val2);
31760 {
31761 arg3 = &temp3;
31762 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31763 }
31764 {
31765 PyThreadState* __tstate = wxPyBeginAllowThreads();
31766 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31767 wxPyEndAllowThreads(__tstate);
31768 if (PyErr_Occurred()) SWIG_fail;
31769 }
31770 resultobj = SWIG_Py_Void();
31771 return resultobj;
31772fail:
31773 return NULL;
31774}
31775
31776
31777SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31778 PyObject *resultobj = 0;
31779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31780 long arg2 ;
31781 wxColour result;
31782 void *argp1 = 0 ;
31783 int res1 = 0 ;
31784 long val2 ;
31785 int ecode2 = 0 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 char * kwnames[] = {
31789 (char *) "self",(char *) "item", NULL
31790 };
31791
31792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31794 if (!SWIG_IsOK(res1)) {
31795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31796 }
31797 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31798 ecode2 = SWIG_AsVal_long(obj1, &val2);
31799 if (!SWIG_IsOK(ecode2)) {
31800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31801 }
31802 arg2 = static_cast< long >(val2);
31803 {
31804 PyThreadState* __tstate = wxPyBeginAllowThreads();
31805 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31806 wxPyEndAllowThreads(__tstate);
31807 if (PyErr_Occurred()) SWIG_fail;
31808 }
31809 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31810 return resultobj;
31811fail:
31812 return NULL;
31813}
31814
31815
31816SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31817 PyObject *resultobj = 0;
31818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31819 long arg2 ;
31820 wxColour *arg3 = 0 ;
31821 void *argp1 = 0 ;
31822 int res1 = 0 ;
31823 long val2 ;
31824 int ecode2 = 0 ;
31825 wxColour temp3 ;
31826 PyObject * obj0 = 0 ;
31827 PyObject * obj1 = 0 ;
31828 PyObject * obj2 = 0 ;
31829 char * kwnames[] = {
31830 (char *) "self",(char *) "item",(char *) "col", NULL
31831 };
31832
31833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31835 if (!SWIG_IsOK(res1)) {
31836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31837 }
31838 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31839 ecode2 = SWIG_AsVal_long(obj1, &val2);
31840 if (!SWIG_IsOK(ecode2)) {
31841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31842 }
31843 arg2 = static_cast< long >(val2);
31844 {
31845 arg3 = &temp3;
31846 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31847 }
31848 {
31849 PyThreadState* __tstate = wxPyBeginAllowThreads();
31850 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31851 wxPyEndAllowThreads(__tstate);
31852 if (PyErr_Occurred()) SWIG_fail;
31853 }
31854 resultobj = SWIG_Py_Void();
31855 return resultobj;
31856fail:
31857 return NULL;
31858}
31859
31860
31861SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31862 PyObject *resultobj = 0;
31863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31864 long arg2 ;
31865 wxColour result;
31866 void *argp1 = 0 ;
31867 int res1 = 0 ;
31868 long val2 ;
31869 int ecode2 = 0 ;
31870 PyObject * obj0 = 0 ;
31871 PyObject * obj1 = 0 ;
31872 char * kwnames[] = {
31873 (char *) "self",(char *) "item", NULL
31874 };
31875
31876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31878 if (!SWIG_IsOK(res1)) {
31879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31880 }
31881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31882 ecode2 = SWIG_AsVal_long(obj1, &val2);
31883 if (!SWIG_IsOK(ecode2)) {
31884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31885 }
31886 arg2 = static_cast< long >(val2);
31887 {
31888 PyThreadState* __tstate = wxPyBeginAllowThreads();
31889 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31890 wxPyEndAllowThreads(__tstate);
31891 if (PyErr_Occurred()) SWIG_fail;
31892 }
31893 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31894 return resultobj;
31895fail:
31896 return NULL;
31897}
31898
31899
31900SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31901 PyObject *resultobj = 0;
31902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31903 long arg2 ;
31904 wxFont *arg3 = 0 ;
31905 void *argp1 = 0 ;
31906 int res1 = 0 ;
31907 long val2 ;
31908 int ecode2 = 0 ;
31909 void *argp3 = 0 ;
31910 int res3 = 0 ;
31911 PyObject * obj0 = 0 ;
31912 PyObject * obj1 = 0 ;
31913 PyObject * obj2 = 0 ;
31914 char * kwnames[] = {
31915 (char *) "self",(char *) "item",(char *) "f", NULL
31916 };
31917
31918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31920 if (!SWIG_IsOK(res1)) {
31921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31922 }
31923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31924 ecode2 = SWIG_AsVal_long(obj1, &val2);
31925 if (!SWIG_IsOK(ecode2)) {
31926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31927 }
31928 arg2 = static_cast< long >(val2);
31929 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31930 if (!SWIG_IsOK(res3)) {
31931 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31932 }
31933 if (!argp3) {
31934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31935 }
31936 arg3 = reinterpret_cast< wxFont * >(argp3);
31937 {
31938 PyThreadState* __tstate = wxPyBeginAllowThreads();
31939 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31940 wxPyEndAllowThreads(__tstate);
31941 if (PyErr_Occurred()) SWIG_fail;
31942 }
31943 resultobj = SWIG_Py_Void();
31944 return resultobj;
31945fail:
31946 return NULL;
31947}
31948
31949
31950SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31951 PyObject *resultobj = 0;
31952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31953 long arg2 ;
31954 wxFont result;
31955 void *argp1 = 0 ;
31956 int res1 = 0 ;
31957 long val2 ;
31958 int ecode2 = 0 ;
31959 PyObject * obj0 = 0 ;
31960 PyObject * obj1 = 0 ;
31961 char * kwnames[] = {
31962 (char *) "self",(char *) "item", NULL
31963 };
31964
31965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31967 if (!SWIG_IsOK(res1)) {
31968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31969 }
31970 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31971 ecode2 = SWIG_AsVal_long(obj1, &val2);
31972 if (!SWIG_IsOK(ecode2)) {
31973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31974 }
31975 arg2 = static_cast< long >(val2);
31976 {
31977 PyThreadState* __tstate = wxPyBeginAllowThreads();
31978 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31979 wxPyEndAllowThreads(__tstate);
31980 if (PyErr_Occurred()) SWIG_fail;
31981 }
31982 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31983 return resultobj;
31984fail:
31985 return NULL;
31986}
31987
31988
31989SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31990 PyObject *resultobj = 0;
31991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31992 PyObject *arg2 = (PyObject *) 0 ;
31993 bool result;
31994 void *argp1 = 0 ;
31995 int res1 = 0 ;
31996 PyObject * obj0 = 0 ;
31997 PyObject * obj1 = 0 ;
31998 char * kwnames[] = {
31999 (char *) "self",(char *) "func", NULL
32000 };
32001
32002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32004 if (!SWIG_IsOK(res1)) {
32005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32006 }
32007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32008 arg2 = obj1;
32009 {
32010 PyThreadState* __tstate = wxPyBeginAllowThreads();
32011 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32012 wxPyEndAllowThreads(__tstate);
32013 if (PyErr_Occurred()) SWIG_fail;
32014 }
32015 {
32016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32017 }
32018 return resultobj;
32019fail:
32020 return NULL;
b411df4a
RD
32021}
32022
32023
1bd55598
RD
32024SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32025 PyObject *resultobj = 0;
32026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32027 wxWindow *result = 0 ;
32028 void *argp1 = 0 ;
32029 int res1 = 0 ;
32030 PyObject *swig_obj[1] ;
32031
32032 if (!args) SWIG_fail;
32033 swig_obj[0] = args;
32034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32035 if (!SWIG_IsOK(res1)) {
32036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32037 }
32038 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32039 {
32040 PyThreadState* __tstate = wxPyBeginAllowThreads();
32041 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32042 wxPyEndAllowThreads(__tstate);
32043 if (PyErr_Occurred()) SWIG_fail;
32044 }
32045 {
32046 resultobj = wxPyMake_wxObject(result, 0);
32047 }
32048 return resultobj;
32049fail:
32050 return NULL;
7993762b
RD
32051}
32052
32053
1bd55598
RD
32054SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32055 PyObject *resultobj = 0;
32056 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32057 SwigValueWrapper<wxVisualAttributes > result;
32058 int val1 ;
32059 int ecode1 = 0 ;
32060 PyObject * obj0 = 0 ;
32061 char * kwnames[] = {
32062 (char *) "variant", NULL
32063 };
32064
32065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32066 if (obj0) {
32067 ecode1 = SWIG_AsVal_int(obj0, &val1);
32068 if (!SWIG_IsOK(ecode1)) {
32069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32070 }
32071 arg1 = static_cast< wxWindowVariant >(val1);
32072 }
32073 {
32074 if (!wxPyCheckForApp()) SWIG_fail;
32075 PyThreadState* __tstate = wxPyBeginAllowThreads();
32076 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32077 wxPyEndAllowThreads(__tstate);
32078 if (PyErr_Occurred()) SWIG_fail;
32079 }
32080 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32081 return resultobj;
32082fail:
32083 return NULL;
32084}
32085
32086
32087SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32088 PyObject *obj;
32089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32090 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32091 return SWIG_Py_Void();
32092}
32093
32094SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32095 return SWIG_Python_InitShadowInstance(args);
32096}
32097
32098SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32099 PyObject *resultobj = 0;
32100 wxWindow *arg1 = (wxWindow *) 0 ;
32101 int arg2 = (int) -1 ;
32102 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32103 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32104 wxSize const &arg4_defvalue = wxDefaultSize ;
32105 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32106 long arg5 = (long) wxLC_REPORT ;
32107 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32108 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32109 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32110 wxString *arg7 = (wxString *) &arg7_defvalue ;
32111 wxListView *result = 0 ;
32112 void *argp1 = 0 ;
32113 int res1 = 0 ;
32114 int val2 ;
32115 int ecode2 = 0 ;
32116 wxPoint temp3 ;
32117 wxSize temp4 ;
32118 long val5 ;
32119 int ecode5 = 0 ;
32120 void *argp6 = 0 ;
32121 int res6 = 0 ;
32122 bool temp7 = false ;
32123 PyObject * obj0 = 0 ;
32124 PyObject * obj1 = 0 ;
32125 PyObject * obj2 = 0 ;
32126 PyObject * obj3 = 0 ;
32127 PyObject * obj4 = 0 ;
32128 PyObject * obj5 = 0 ;
32129 PyObject * obj6 = 0 ;
32130 char * kwnames[] = {
32131 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32132 };
32133
32134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32136 if (!SWIG_IsOK(res1)) {
32137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32138 }
32139 arg1 = reinterpret_cast< wxWindow * >(argp1);
32140 if (obj1) {
32141 ecode2 = SWIG_AsVal_int(obj1, &val2);
32142 if (!SWIG_IsOK(ecode2)) {
32143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32144 }
32145 arg2 = static_cast< int >(val2);
32146 }
32147 if (obj2) {
b411df4a 32148 {
1bd55598
RD
32149 arg3 = &temp3;
32150 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 32151 }
1bd55598
RD
32152 }
32153 if (obj3) {
32154 {
32155 arg4 = &temp4;
32156 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 32157 }
1bd55598
RD
32158 }
32159 if (obj4) {
32160 ecode5 = SWIG_AsVal_long(obj4, &val5);
32161 if (!SWIG_IsOK(ecode5)) {
32162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32163 }
32164 arg5 = static_cast< long >(val5);
32165 }
32166 if (obj5) {
32167 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32168 if (!SWIG_IsOK(res6)) {
32169 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32170 }
1bd55598
RD
32171 if (!argp6) {
32172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32173 }
1bd55598
RD
32174 arg6 = reinterpret_cast< wxValidator * >(argp6);
32175 }
32176 if (obj6) {
b411df4a 32177 {
1bd55598
RD
32178 arg7 = wxString_in_helper(obj6);
32179 if (arg7 == NULL) SWIG_fail;
32180 temp7 = true;
b411df4a 32181 }
1bd55598
RD
32182 }
32183 {
32184 if (!wxPyCheckForApp()) SWIG_fail;
32185 PyThreadState* __tstate = wxPyBeginAllowThreads();
32186 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32187 wxPyEndAllowThreads(__tstate);
32188 if (PyErr_Occurred()) SWIG_fail;
32189 }
32190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32191 {
32192 if (temp7)
32193 delete arg7;
32194 }
32195 return resultobj;
32196fail:
32197 {
32198 if (temp7)
32199 delete arg7;
32200 }
32201 return NULL;
b411df4a
RD
32202}
32203
32204
1bd55598
RD
32205SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32206 PyObject *resultobj = 0;
32207 wxListView *result = 0 ;
32208
32209 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32210 {
32211 if (!wxPyCheckForApp()) SWIG_fail;
32212 PyThreadState* __tstate = wxPyBeginAllowThreads();
32213 result = (wxListView *)new wxListView();
32214 wxPyEndAllowThreads(__tstate);
32215 if (PyErr_Occurred()) SWIG_fail;
32216 }
32217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32218 return resultobj;
32219fail:
32220 return NULL;
32221}
32222
32223
32224SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32225 PyObject *resultobj = 0;
32226 wxListView *arg1 = (wxListView *) 0 ;
32227 wxWindow *arg2 = (wxWindow *) 0 ;
32228 int arg3 = (int) -1 ;
32229 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32230 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32231 wxSize const &arg5_defvalue = wxDefaultSize ;
32232 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32233 long arg6 = (long) wxLC_REPORT ;
32234 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32235 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32236 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32237 wxString *arg8 = (wxString *) &arg8_defvalue ;
32238 bool result;
32239 void *argp1 = 0 ;
32240 int res1 = 0 ;
32241 void *argp2 = 0 ;
32242 int res2 = 0 ;
32243 int val3 ;
32244 int ecode3 = 0 ;
32245 wxPoint temp4 ;
32246 wxSize temp5 ;
32247 long val6 ;
32248 int ecode6 = 0 ;
32249 void *argp7 = 0 ;
32250 int res7 = 0 ;
32251 bool temp8 = false ;
32252 PyObject * obj0 = 0 ;
32253 PyObject * obj1 = 0 ;
32254 PyObject * obj2 = 0 ;
32255 PyObject * obj3 = 0 ;
32256 PyObject * obj4 = 0 ;
32257 PyObject * obj5 = 0 ;
32258 PyObject * obj6 = 0 ;
32259 PyObject * obj7 = 0 ;
32260 char * kwnames[] = {
32261 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32262 };
32263
32264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32266 if (!SWIG_IsOK(res1)) {
32267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32268 }
32269 arg1 = reinterpret_cast< wxListView * >(argp1);
32270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32271 if (!SWIG_IsOK(res2)) {
32272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32273 }
32274 arg2 = reinterpret_cast< wxWindow * >(argp2);
32275 if (obj2) {
32276 ecode3 = SWIG_AsVal_int(obj2, &val3);
32277 if (!SWIG_IsOK(ecode3)) {
32278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32279 }
32280 arg3 = static_cast< int >(val3);
32281 }
32282 if (obj3) {
d55e5bfc 32283 {
1bd55598
RD
32284 arg4 = &temp4;
32285 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32286 }
1bd55598
RD
32287 }
32288 if (obj4) {
36ed4f51 32289 {
1bd55598
RD
32290 arg5 = &temp5;
32291 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 32292 }
1bd55598
RD
32293 }
32294 if (obj5) {
32295 ecode6 = SWIG_AsVal_long(obj5, &val6);
32296 if (!SWIG_IsOK(ecode6)) {
32297 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32298 }
32299 arg6 = static_cast< long >(val6);
32300 }
32301 if (obj6) {
32302 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32303 if (!SWIG_IsOK(res7)) {
32304 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 32305 }
1bd55598
RD
32306 if (!argp7) {
32307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32308 }
32309 arg7 = reinterpret_cast< wxValidator * >(argp7);
32310 }
32311 if (obj7) {
d55e5bfc 32312 {
1bd55598
RD
32313 arg8 = wxString_in_helper(obj7);
32314 if (arg8 == NULL) SWIG_fail;
32315 temp8 = true;
d55e5bfc 32316 }
1bd55598
RD
32317 }
32318 {
32319 PyThreadState* __tstate = wxPyBeginAllowThreads();
32320 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32321 wxPyEndAllowThreads(__tstate);
32322 if (PyErr_Occurred()) SWIG_fail;
32323 }
32324 {
32325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32326 }
32327 {
32328 if (temp8)
32329 delete arg8;
32330 }
32331 return resultobj;
32332fail:
32333 {
32334 if (temp8)
32335 delete arg8;
32336 }
32337 return NULL;
32338}
32339
32340
32341SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32342 PyObject *resultobj = 0;
32343 wxListView *arg1 = (wxListView *) 0 ;
32344 long arg2 ;
32345 bool arg3 = (bool) true ;
32346 void *argp1 = 0 ;
32347 int res1 = 0 ;
32348 long val2 ;
32349 int ecode2 = 0 ;
32350 bool val3 ;
32351 int ecode3 = 0 ;
32352 PyObject * obj0 = 0 ;
32353 PyObject * obj1 = 0 ;
32354 PyObject * obj2 = 0 ;
32355 char * kwnames[] = {
32356 (char *) "self",(char *) "n",(char *) "on", NULL
32357 };
32358
32359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32361 if (!SWIG_IsOK(res1)) {
32362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32363 }
32364 arg1 = reinterpret_cast< wxListView * >(argp1);
32365 ecode2 = SWIG_AsVal_long(obj1, &val2);
32366 if (!SWIG_IsOK(ecode2)) {
32367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32368 }
32369 arg2 = static_cast< long >(val2);
32370 if (obj2) {
32371 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32372 if (!SWIG_IsOK(ecode3)) {
32373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32374 }
32375 arg3 = static_cast< bool >(val3);
32376 }
32377 {
32378 PyThreadState* __tstate = wxPyBeginAllowThreads();
32379 (arg1)->Select(arg2,arg3);
32380 wxPyEndAllowThreads(__tstate);
32381 if (PyErr_Occurred()) SWIG_fail;
32382 }
32383 resultobj = SWIG_Py_Void();
32384 return resultobj;
32385fail:
32386 return NULL;
32387}
32388
32389
32390SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32391 PyObject *resultobj = 0;
32392 wxListView *arg1 = (wxListView *) 0 ;
32393 long arg2 ;
32394 void *argp1 = 0 ;
32395 int res1 = 0 ;
32396 long val2 ;
32397 int ecode2 = 0 ;
32398 PyObject * obj0 = 0 ;
32399 PyObject * obj1 = 0 ;
32400 char * kwnames[] = {
32401 (char *) "self",(char *) "index", NULL
32402 };
32403
32404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32406 if (!SWIG_IsOK(res1)) {
32407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32408 }
32409 arg1 = reinterpret_cast< wxListView * >(argp1);
32410 ecode2 = SWIG_AsVal_long(obj1, &val2);
32411 if (!SWIG_IsOK(ecode2)) {
32412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32413 }
32414 arg2 = static_cast< long >(val2);
32415 {
32416 PyThreadState* __tstate = wxPyBeginAllowThreads();
32417 (arg1)->Focus(arg2);
32418 wxPyEndAllowThreads(__tstate);
32419 if (PyErr_Occurred()) SWIG_fail;
32420 }
32421 resultobj = SWIG_Py_Void();
32422 return resultobj;
32423fail:
32424 return NULL;
d55e5bfc
RD
32425}
32426
32427
1bd55598
RD
32428SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32429 PyObject *resultobj = 0;
32430 wxListView *arg1 = (wxListView *) 0 ;
32431 long result;
32432 void *argp1 = 0 ;
32433 int res1 = 0 ;
32434 PyObject *swig_obj[1] ;
32435
32436 if (!args) SWIG_fail;
32437 swig_obj[0] = args;
32438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32439 if (!SWIG_IsOK(res1)) {
32440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32441 }
32442 arg1 = reinterpret_cast< wxListView * >(argp1);
32443 {
32444 PyThreadState* __tstate = wxPyBeginAllowThreads();
32445 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32446 wxPyEndAllowThreads(__tstate);
32447 if (PyErr_Occurred()) SWIG_fail;
32448 }
32449 resultobj = SWIG_From_long(static_cast< long >(result));
32450 return resultobj;
32451fail:
32452 return NULL;
32453}
32454
32455
32456SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32457 PyObject *resultobj = 0;
32458 wxListView *arg1 = (wxListView *) 0 ;
32459 long arg2 ;
32460 long result;
32461 void *argp1 = 0 ;
32462 int res1 = 0 ;
32463 long val2 ;
32464 int ecode2 = 0 ;
32465 PyObject * obj0 = 0 ;
32466 PyObject * obj1 = 0 ;
32467 char * kwnames[] = {
32468 (char *) "self",(char *) "item", NULL
32469 };
32470
32471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32473 if (!SWIG_IsOK(res1)) {
32474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32475 }
32476 arg1 = reinterpret_cast< wxListView * >(argp1);
32477 ecode2 = SWIG_AsVal_long(obj1, &val2);
32478 if (!SWIG_IsOK(ecode2)) {
32479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32480 }
32481 arg2 = static_cast< long >(val2);
32482 {
32483 PyThreadState* __tstate = wxPyBeginAllowThreads();
32484 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32485 wxPyEndAllowThreads(__tstate);
32486 if (PyErr_Occurred()) SWIG_fail;
32487 }
32488 resultobj = SWIG_From_long(static_cast< long >(result));
32489 return resultobj;
32490fail:
32491 return NULL;
d55e5bfc
RD
32492}
32493
32494
1bd55598
RD
32495SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32496 PyObject *resultobj = 0;
32497 wxListView *arg1 = (wxListView *) 0 ;
32498 long result;
32499 void *argp1 = 0 ;
32500 int res1 = 0 ;
32501 PyObject *swig_obj[1] ;
32502
32503 if (!args) SWIG_fail;
32504 swig_obj[0] = args;
32505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32506 if (!SWIG_IsOK(res1)) {
32507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32508 }
32509 arg1 = reinterpret_cast< wxListView * >(argp1);
32510 {
32511 PyThreadState* __tstate = wxPyBeginAllowThreads();
32512 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32513 wxPyEndAllowThreads(__tstate);
32514 if (PyErr_Occurred()) SWIG_fail;
32515 }
32516 resultobj = SWIG_From_long(static_cast< long >(result));
32517 return resultobj;
32518fail:
32519 return NULL;
32520}
32521
32522
32523SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32524 PyObject *resultobj = 0;
32525 wxListView *arg1 = (wxListView *) 0 ;
32526 long arg2 ;
32527 bool result;
32528 void *argp1 = 0 ;
32529 int res1 = 0 ;
32530 long val2 ;
32531 int ecode2 = 0 ;
32532 PyObject * obj0 = 0 ;
32533 PyObject * obj1 = 0 ;
32534 char * kwnames[] = {
32535 (char *) "self",(char *) "index", NULL
32536 };
32537
32538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32540 if (!SWIG_IsOK(res1)) {
32541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32542 }
32543 arg1 = reinterpret_cast< wxListView * >(argp1);
32544 ecode2 = SWIG_AsVal_long(obj1, &val2);
32545 if (!SWIG_IsOK(ecode2)) {
32546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32547 }
32548 arg2 = static_cast< long >(val2);
32549 {
32550 PyThreadState* __tstate = wxPyBeginAllowThreads();
32551 result = (bool)(arg1)->IsSelected(arg2);
32552 wxPyEndAllowThreads(__tstate);
32553 if (PyErr_Occurred()) SWIG_fail;
32554 }
32555 {
32556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32557 }
32558 return resultobj;
32559fail:
32560 return NULL;
32561}
32562
32563
32564SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32565 PyObject *resultobj = 0;
32566 wxListView *arg1 = (wxListView *) 0 ;
32567 int arg2 ;
32568 int arg3 ;
32569 void *argp1 = 0 ;
32570 int res1 = 0 ;
32571 int val2 ;
32572 int ecode2 = 0 ;
32573 int val3 ;
32574 int ecode3 = 0 ;
32575 PyObject * obj0 = 0 ;
32576 PyObject * obj1 = 0 ;
32577 PyObject * obj2 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "self",(char *) "col",(char *) "image", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32584 if (!SWIG_IsOK(res1)) {
32585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32586 }
32587 arg1 = reinterpret_cast< wxListView * >(argp1);
32588 ecode2 = SWIG_AsVal_int(obj1, &val2);
32589 if (!SWIG_IsOK(ecode2)) {
32590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32591 }
32592 arg2 = static_cast< int >(val2);
32593 ecode3 = SWIG_AsVal_int(obj2, &val3);
32594 if (!SWIG_IsOK(ecode3)) {
32595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32596 }
32597 arg3 = static_cast< int >(val3);
32598 {
32599 PyThreadState* __tstate = wxPyBeginAllowThreads();
32600 (arg1)->SetColumnImage(arg2,arg3);
32601 wxPyEndAllowThreads(__tstate);
32602 if (PyErr_Occurred()) SWIG_fail;
32603 }
32604 resultobj = SWIG_Py_Void();
32605 return resultobj;
32606fail:
32607 return NULL;
32608}
32609
32610
32611SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32612 PyObject *resultobj = 0;
32613 wxListView *arg1 = (wxListView *) 0 ;
32614 int arg2 ;
32615 void *argp1 = 0 ;
32616 int res1 = 0 ;
32617 int val2 ;
32618 int ecode2 = 0 ;
32619 PyObject * obj0 = 0 ;
32620 PyObject * obj1 = 0 ;
32621 char * kwnames[] = {
32622 (char *) "self",(char *) "col", NULL
32623 };
32624
32625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32627 if (!SWIG_IsOK(res1)) {
32628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32629 }
32630 arg1 = reinterpret_cast< wxListView * >(argp1);
32631 ecode2 = SWIG_AsVal_int(obj1, &val2);
32632 if (!SWIG_IsOK(ecode2)) {
32633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32634 }
32635 arg2 = static_cast< int >(val2);
32636 {
32637 PyThreadState* __tstate = wxPyBeginAllowThreads();
32638 (arg1)->ClearColumnImage(arg2);
32639 wxPyEndAllowThreads(__tstate);
32640 if (PyErr_Occurred()) SWIG_fail;
32641 }
32642 resultobj = SWIG_Py_Void();
32643 return resultobj;
32644fail:
32645 return NULL;
d55e5bfc
RD
32646}
32647
32648
1bd55598
RD
32649SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32650 PyObject *obj;
32651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32652 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32653 return SWIG_Py_Void();
d55e5bfc
RD
32654}
32655
1bd55598
RD
32656SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32657 return SWIG_Python_InitShadowInstance(args);
32658}
d55e5bfc 32659
1bd55598
RD
32660SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32661 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32662 return 1;
d55e5bfc
RD
32663}
32664
32665
1bd55598
RD
32666SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32667 PyObject *pyobj = 0;
32668
32669 {
32670#if wxUSE_UNICODE
32671 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32672#else
32673 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32674#endif
32675 }
32676 return pyobj;
d55e5bfc
RD
32677}
32678
32679
1bd55598
RD
32680SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32681 PyObject *resultobj = 0;
32682 wxTreeItemId *result = 0 ;
32683
32684 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32685 {
32686 PyThreadState* __tstate = wxPyBeginAllowThreads();
32687 result = (wxTreeItemId *)new wxTreeItemId();
32688 wxPyEndAllowThreads(__tstate);
32689 if (PyErr_Occurred()) SWIG_fail;
32690 }
32691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32692 return resultobj;
32693fail:
32694 return NULL;
d55e5bfc
RD
32695}
32696
32697
1bd55598
RD
32698SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32699 PyObject *resultobj = 0;
32700 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32701 void *argp1 = 0 ;
32702 int res1 = 0 ;
32703 PyObject *swig_obj[1] ;
32704
32705 if (!args) SWIG_fail;
32706 swig_obj[0] = args;
32707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32708 if (!SWIG_IsOK(res1)) {
32709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32710 }
32711 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32712 {
32713 PyThreadState* __tstate = wxPyBeginAllowThreads();
32714 delete arg1;
d55e5bfc 32715
1bd55598
RD
32716 wxPyEndAllowThreads(__tstate);
32717 if (PyErr_Occurred()) SWIG_fail;
32718 }
32719 resultobj = SWIG_Py_Void();
32720 return resultobj;
32721fail:
32722 return NULL;
d55e5bfc
RD
32723}
32724
32725
1bd55598
RD
32726SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32727 PyObject *resultobj = 0;
32728 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32729 bool result;
32730 void *argp1 = 0 ;
32731 int res1 = 0 ;
32732 PyObject *swig_obj[1] ;
32733
32734 if (!args) SWIG_fail;
32735 swig_obj[0] = args;
32736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32737 if (!SWIG_IsOK(res1)) {
32738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32739 }
32740 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32741 {
32742 PyThreadState* __tstate = wxPyBeginAllowThreads();
32743 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32744 wxPyEndAllowThreads(__tstate);
32745 if (PyErr_Occurred()) SWIG_fail;
32746 }
32747 {
32748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32749 }
32750 return resultobj;
32751fail:
32752 return NULL;
32753}
32754
32755
32756SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32757 PyObject *resultobj = 0;
32758 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32759 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32760 bool result;
32761 void *argp1 = 0 ;
32762 int res1 = 0 ;
32763 void *argp2 = 0 ;
32764 int res2 = 0 ;
32765 PyObject * obj0 = 0 ;
32766 PyObject * obj1 = 0 ;
32767 char * kwnames[] = {
32768 (char *) "self",(char *) "other", NULL
32769 };
32770
32771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32773 if (!SWIG_IsOK(res1)) {
32774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32775 }
32776 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32778 if (!SWIG_IsOK(res2)) {
32779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32780 }
32781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32782 {
32783 PyThreadState* __tstate = wxPyBeginAllowThreads();
32784 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32785 wxPyEndAllowThreads(__tstate);
32786 if (PyErr_Occurred()) SWIG_fail;
32787 }
32788 {
32789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32790 }
32791 return resultobj;
32792fail:
32793 return NULL;
32794}
32795
32796
32797SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32798 PyObject *resultobj = 0;
32799 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32800 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32801 bool result;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 void *argp2 = 0 ;
32805 int res2 = 0 ;
32806 PyObject * obj0 = 0 ;
32807 PyObject * obj1 = 0 ;
32808 char * kwnames[] = {
32809 (char *) "self",(char *) "other", NULL
32810 };
32811
32812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32814 if (!SWIG_IsOK(res1)) {
32815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32816 }
32817 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32819 if (!SWIG_IsOK(res2)) {
32820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32821 }
32822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32823 {
32824 PyThreadState* __tstate = wxPyBeginAllowThreads();
32825 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32826 wxPyEndAllowThreads(__tstate);
32827 if (PyErr_Occurred()) SWIG_fail;
32828 }
32829 {
32830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32831 }
32832 return resultobj;
32833fail:
32834 return NULL;
d55e5bfc
RD
32835}
32836
32837
1bd55598
RD
32838SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32839 PyObject *resultobj = 0;
32840 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32841 void *arg2 = (void *) 0 ;
32842 void *argp1 = 0 ;
32843 int res1 = 0 ;
32844 int res2 ;
32845 PyObject *swig_obj[2] ;
32846
32847 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32849 if (!SWIG_IsOK(res1)) {
32850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32851 }
32852 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32853 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32854 if (!SWIG_IsOK(res2)) {
32855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32856 }
32857 if (arg1) (arg1)->m_pItem = arg2;
32858
32859 resultobj = SWIG_Py_Void();
32860 return resultobj;
32861fail:
32862 return NULL;
d55e5bfc
RD
32863}
32864
32865
1bd55598
RD
32866SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32867 PyObject *resultobj = 0;
32868 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32869 void *result = 0 ;
32870 void *argp1 = 0 ;
32871 int res1 = 0 ;
32872 PyObject *swig_obj[1] ;
32873
32874 if (!args) SWIG_fail;
32875 swig_obj[0] = args;
32876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32877 if (!SWIG_IsOK(res1)) {
32878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32879 }
32880 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32881 result = (void *) ((arg1)->m_pItem);
32882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32883 return resultobj;
32884fail:
32885 return NULL;
d55e5bfc
RD
32886}
32887
32888
1bd55598
RD
32889SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32890 PyObject *obj;
32891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32892 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32893 return SWIG_Py_Void();
d55e5bfc
RD
32894}
32895
1bd55598
RD
32896SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32897 return SWIG_Python_InitShadowInstance(args);
32898}
d55e5bfc 32899
1bd55598
RD
32900SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32901 PyObject *resultobj = 0;
32902 PyObject *arg1 = (PyObject *) NULL ;
32903 wxPyTreeItemData *result = 0 ;
32904 PyObject * obj0 = 0 ;
32905 char * kwnames[] = {
32906 (char *) "obj", NULL
32907 };
32908
32909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32910 if (obj0) {
32911 arg1 = obj0;
32912 }
32913 {
32914 PyThreadState* __tstate = wxPyBeginAllowThreads();
32915 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32916 wxPyEndAllowThreads(__tstate);
32917 if (PyErr_Occurred()) SWIG_fail;
32918 }
32919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32920 return resultobj;
32921fail:
32922 return NULL;
d55e5bfc
RD
32923}
32924
32925
1bd55598
RD
32926SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32927 PyObject *resultobj = 0;
32928 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32929 void *argp1 = 0 ;
32930 int res1 = 0 ;
32931 PyObject *swig_obj[1] ;
32932
32933 if (!args) SWIG_fail;
32934 swig_obj[0] = args;
32935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32936 if (!SWIG_IsOK(res1)) {
32937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32938 }
32939 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32940 {
32941 PyThreadState* __tstate = wxPyBeginAllowThreads();
32942 delete arg1;
d55e5bfc 32943
1bd55598
RD
32944 wxPyEndAllowThreads(__tstate);
32945 if (PyErr_Occurred()) SWIG_fail;
32946 }
32947 resultobj = SWIG_Py_Void();
32948 return resultobj;
32949fail:
32950 return NULL;
d55e5bfc
RD
32951}
32952
32953
1bd55598
RD
32954SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32955 PyObject *resultobj = 0;
32956 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32957 PyObject *result = 0 ;
32958 void *argp1 = 0 ;
32959 int res1 = 0 ;
32960 PyObject *swig_obj[1] ;
32961
32962 if (!args) SWIG_fail;
32963 swig_obj[0] = args;
32964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32965 if (!SWIG_IsOK(res1)) {
32966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32967 }
32968 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
32971 result = (PyObject *)(arg1)->GetData();
32972 wxPyEndAllowThreads(__tstate);
32973 if (PyErr_Occurred()) SWIG_fail;
32974 }
32975 resultobj = result;
32976 return resultobj;
32977fail:
32978 return NULL;
32979}
32980
32981
32982SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32983 PyObject *resultobj = 0;
32984 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32985 PyObject *arg2 = (PyObject *) 0 ;
32986 void *argp1 = 0 ;
32987 int res1 = 0 ;
32988 PyObject * obj0 = 0 ;
32989 PyObject * obj1 = 0 ;
32990 char * kwnames[] = {
32991 (char *) "self",(char *) "obj", NULL
32992 };
32993
32994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32996 if (!SWIG_IsOK(res1)) {
32997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32998 }
32999 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33000 arg2 = obj1;
33001 {
33002 PyThreadState* __tstate = wxPyBeginAllowThreads();
33003 (arg1)->SetData(arg2);
33004 wxPyEndAllowThreads(__tstate);
33005 if (PyErr_Occurred()) SWIG_fail;
33006 }
33007 resultobj = SWIG_Py_Void();
33008 return resultobj;
33009fail:
33010 return NULL;
d55e5bfc
RD
33011}
33012
33013
1bd55598
RD
33014SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33015 PyObject *resultobj = 0;
33016 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33017 wxTreeItemId *result = 0 ;
33018 void *argp1 = 0 ;
33019 int res1 = 0 ;
33020 PyObject *swig_obj[1] ;
33021
33022 if (!args) SWIG_fail;
33023 swig_obj[0] = args;
33024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33025 if (!SWIG_IsOK(res1)) {
33026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33027 }
33028 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33029 {
33030 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33031 {
1bd55598
RD
33032 wxTreeItemId const &_result_ref = (arg1)->GetId();
33033 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 33034 }
1bd55598
RD
33035 wxPyEndAllowThreads(__tstate);
33036 if (PyErr_Occurred()) SWIG_fail;
33037 }
33038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33039 return resultobj;
33040fail:
33041 return NULL;
33042}
33043
33044
33045SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33046 PyObject *resultobj = 0;
33047 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33048 wxTreeItemId *arg2 = 0 ;
33049 void *argp1 = 0 ;
33050 int res1 = 0 ;
33051 void *argp2 = 0 ;
33052 int res2 = 0 ;
33053 PyObject * obj0 = 0 ;
33054 PyObject * obj1 = 0 ;
33055 char * kwnames[] = {
33056 (char *) "self",(char *) "id", NULL
33057 };
33058
33059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33061 if (!SWIG_IsOK(res1)) {
33062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33063 }
33064 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33066 if (!SWIG_IsOK(res2)) {
33067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33068 }
33069 if (!argp2) {
33070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33071 }
33072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33073 {
33074 PyThreadState* __tstate = wxPyBeginAllowThreads();
33075 (arg1)->SetId((wxTreeItemId const &)*arg2);
33076 wxPyEndAllowThreads(__tstate);
33077 if (PyErr_Occurred()) SWIG_fail;
33078 }
33079 resultobj = SWIG_Py_Void();
33080 return resultobj;
33081fail:
33082 return NULL;
d55e5bfc
RD
33083}
33084
33085
1bd55598
RD
33086SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33087 PyObject *resultobj = 0;
33088 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33089 void *argp1 = 0 ;
33090 int res1 = 0 ;
33091 PyObject *swig_obj[1] ;
33092
33093 if (!args) SWIG_fail;
33094 swig_obj[0] = args;
33095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33096 if (!SWIG_IsOK(res1)) {
33097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33098 }
33099 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33100 {
33101 PyThreadState* __tstate = wxPyBeginAllowThreads();
33102 wxPyTreeItemData_Destroy(arg1);
33103 wxPyEndAllowThreads(__tstate);
33104 if (PyErr_Occurred()) SWIG_fail;
33105 }
33106 resultobj = SWIG_Py_Void();
33107 return resultobj;
33108fail:
33109 return NULL;
d55e5bfc
RD
33110}
33111
33112
1bd55598
RD
33113SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33114 PyObject *obj;
33115 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33116 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33117 return SWIG_Py_Void();
d55e5bfc
RD
33118}
33119
1bd55598
RD
33120SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33121 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
33122}
33123
b02396e8
RD
33124SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33125 {
33126 void *argp = 0;
33127 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33128 if (!SWIG_IsOK(res)) {
33129 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33130 }
33131 if (!argp) {
33132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33133 } else {
33134 wxTreeItemId * temp;
33135 temp = reinterpret_cast< wxTreeItemId * >(argp);
33136 wxNullTreeItemId = *temp;
33137 if (SWIG_IsNewObj(res)) delete temp;
33138 }
33139 }
33140 return 0;
33141fail:
33142 return 1;
33143}
33144
33145
33146SWIGINTERN PyObject *NullTreeItemId_get(void) {
33147 PyObject *pyobj = 0;
33148
33149 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33150 return pyobj;
33151}
33152
33153
33154SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
33155 PyObject *resultobj = 0;
33156 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33157 int arg2 = (int) 0 ;
33158 wxTreeEvent *result = 0 ;
33159 int val1 ;
33160 int ecode1 = 0 ;
33161 int val2 ;
33162 int ecode2 = 0 ;
1bd55598 33163
b02396e8
RD
33164 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33165 if (swig_obj[0]) {
33166 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
33167 if (!SWIG_IsOK(ecode1)) {
33168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33169 }
33170 arg1 = static_cast< wxEventType >(val1);
33171 }
b02396e8
RD
33172 if (swig_obj[1]) {
33173 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
33174 if (!SWIG_IsOK(ecode2)) {
33175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33176 }
33177 arg2 = static_cast< int >(val2);
33178 }
33179 {
33180 PyThreadState* __tstate = wxPyBeginAllowThreads();
33181 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33182 wxPyEndAllowThreads(__tstate);
33183 if (PyErr_Occurred()) SWIG_fail;
33184 }
33185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33186 return resultobj;
33187fail:
33188 return NULL;
d55e5bfc
RD
33189}
33190
33191
b02396e8
RD
33192SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33193 PyObject *resultobj = 0;
33194 wxEventType arg1 ;
33195 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33196 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33197 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33198 wxTreeEvent *result = 0 ;
33199 int val1 ;
33200 int ecode1 = 0 ;
33201 void *argp2 = 0 ;
33202 int res2 = 0 ;
33203 void *argp3 = 0 ;
33204 int res3 = 0 ;
33205
33206 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33207 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33208 if (!SWIG_IsOK(ecode1)) {
33209 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33210 }
33211 arg1 = static_cast< wxEventType >(val1);
33212 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33213 if (!SWIG_IsOK(res2)) {
33214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33215 }
33216 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33217 if (swig_obj[2]) {
33218 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33219 if (!SWIG_IsOK(res3)) {
33220 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33221 }
33222 if (!argp3) {
33223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33224 }
33225 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33226 }
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33234 return resultobj;
33235fail:
33236 return NULL;
33237}
33238
33239
33240SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33241 int argc;
33242 PyObject *argv[4];
33243
33244 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33245 --argc;
33246 if ((argc >= 0) && (argc <= 2)) {
33247 int _v = 0;
33248 if (argc > 1) {
33249 {
33250 {
33251 int res = SWIG_AsVal_int(argv[1], NULL);
33252 _v = SWIG_CheckState(res);
33253 }
33254 }
33255 if (!_v) goto check_1;
33256 }
33257 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33258 }
33259check_1:
33260
33261 if ((argc >= 2) && (argc <= 3)) {
33262 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33263 }
33264
33265fail:
33266 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33267 return NULL;
33268}
33269
33270
1bd55598
RD
33271SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33272 PyObject *resultobj = 0;
33273 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33274 wxTreeItemId result;
33275 void *argp1 = 0 ;
33276 int res1 = 0 ;
33277 PyObject *swig_obj[1] ;
33278
33279 if (!args) SWIG_fail;
33280 swig_obj[0] = args;
33281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33282 if (!SWIG_IsOK(res1)) {
33283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33284 }
33285 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33286 {
33287 PyThreadState* __tstate = wxPyBeginAllowThreads();
33288 result = ((wxTreeEvent const *)arg1)->GetItem();
33289 wxPyEndAllowThreads(__tstate);
33290 if (PyErr_Occurred()) SWIG_fail;
33291 }
33292 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33293 return resultobj;
33294fail:
33295 return NULL;
33296}
33297
33298
33299SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33300 PyObject *resultobj = 0;
33301 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33302 wxTreeItemId *arg2 = 0 ;
33303 void *argp1 = 0 ;
33304 int res1 = 0 ;
33305 void *argp2 = 0 ;
33306 int res2 = 0 ;
33307 PyObject * obj0 = 0 ;
33308 PyObject * obj1 = 0 ;
33309 char * kwnames[] = {
33310 (char *) "self",(char *) "item", NULL
33311 };
33312
33313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33315 if (!SWIG_IsOK(res1)) {
33316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33317 }
33318 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33320 if (!SWIG_IsOK(res2)) {
33321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33322 }
33323 if (!argp2) {
33324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33325 }
33326 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 resultobj = SWIG_Py_Void();
33334 return resultobj;
33335fail:
33336 return NULL;
d55e5bfc
RD
33337}
33338
33339
1bd55598
RD
33340SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33341 PyObject *resultobj = 0;
33342 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33343 wxTreeItemId result;
33344 void *argp1 = 0 ;
33345 int res1 = 0 ;
33346 PyObject *swig_obj[1] ;
33347
33348 if (!args) SWIG_fail;
33349 swig_obj[0] = args;
33350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33351 if (!SWIG_IsOK(res1)) {
33352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33353 }
33354 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33355 {
33356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33357 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33358 wxPyEndAllowThreads(__tstate);
33359 if (PyErr_Occurred()) SWIG_fail;
33360 }
33361 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33362 return resultobj;
33363fail:
33364 return NULL;
33365}
33366
33367
33368SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33369 PyObject *resultobj = 0;
33370 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33371 wxTreeItemId *arg2 = 0 ;
33372 void *argp1 = 0 ;
33373 int res1 = 0 ;
33374 void *argp2 = 0 ;
33375 int res2 = 0 ;
33376 PyObject * obj0 = 0 ;
33377 PyObject * obj1 = 0 ;
33378 char * kwnames[] = {
33379 (char *) "self",(char *) "item", NULL
33380 };
33381
33382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33384 if (!SWIG_IsOK(res1)) {
33385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33386 }
33387 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33389 if (!SWIG_IsOK(res2)) {
33390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33391 }
33392 if (!argp2) {
33393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33394 }
33395 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33396 {
33397 PyThreadState* __tstate = wxPyBeginAllowThreads();
33398 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 resultobj = SWIG_Py_Void();
33403 return resultobj;
33404fail:
33405 return NULL;
d55e5bfc
RD
33406}
33407
33408
1bd55598
RD
33409SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33410 PyObject *resultobj = 0;
33411 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33412 wxPoint result;
33413 void *argp1 = 0 ;
33414 int res1 = 0 ;
33415 PyObject *swig_obj[1] ;
33416
33417 if (!args) SWIG_fail;
33418 swig_obj[0] = args;
33419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33422 }
33423 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33424 {
33425 PyThreadState* __tstate = wxPyBeginAllowThreads();
33426 result = ((wxTreeEvent const *)arg1)->GetPoint();
33427 wxPyEndAllowThreads(__tstate);
33428 if (PyErr_Occurred()) SWIG_fail;
33429 }
33430 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33431 return resultobj;
33432fail:
33433 return NULL;
33434}
33435
33436
33437SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33438 PyObject *resultobj = 0;
33439 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33440 wxPoint *arg2 = 0 ;
33441 void *argp1 = 0 ;
33442 int res1 = 0 ;
33443 wxPoint temp2 ;
33444 PyObject * obj0 = 0 ;
33445 PyObject * obj1 = 0 ;
33446 char * kwnames[] = {
33447 (char *) "self",(char *) "pt", NULL
33448 };
33449
33450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33452 if (!SWIG_IsOK(res1)) {
33453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33454 }
33455 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33456 {
33457 arg2 = &temp2;
33458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33459 }
33460 {
33461 PyThreadState* __tstate = wxPyBeginAllowThreads();
33462 (arg1)->SetPoint((wxPoint const &)*arg2);
33463 wxPyEndAllowThreads(__tstate);
33464 if (PyErr_Occurred()) SWIG_fail;
33465 }
33466 resultobj = SWIG_Py_Void();
33467 return resultobj;
33468fail:
33469 return NULL;
d55e5bfc
RD
33470}
33471
33472
1bd55598
RD
33473SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33474 PyObject *resultobj = 0;
33475 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33476 wxKeyEvent *result = 0 ;
33477 void *argp1 = 0 ;
33478 int res1 = 0 ;
33479 PyObject *swig_obj[1] ;
33480
33481 if (!args) SWIG_fail;
33482 swig_obj[0] = args;
33483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33484 if (!SWIG_IsOK(res1)) {
33485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33486 }
33487 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33488 {
33489 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33490 {
1bd55598
RD
33491 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33492 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33493 }
1bd55598
RD
33494 wxPyEndAllowThreads(__tstate);
33495 if (PyErr_Occurred()) SWIG_fail;
33496 }
33497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33498 return resultobj;
33499fail:
33500 return NULL;
d55e5bfc
RD
33501}
33502
33503
1bd55598
RD
33504SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33505 PyObject *resultobj = 0;
33506 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33507 int result;
33508 void *argp1 = 0 ;
33509 int res1 = 0 ;
33510 PyObject *swig_obj[1] ;
33511
33512 if (!args) SWIG_fail;
33513 swig_obj[0] = args;
33514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33515 if (!SWIG_IsOK(res1)) {
33516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33517 }
33518 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33519 {
33520 PyThreadState* __tstate = wxPyBeginAllowThreads();
33521 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33522 wxPyEndAllowThreads(__tstate);
33523 if (PyErr_Occurred()) SWIG_fail;
33524 }
33525 resultobj = SWIG_From_int(static_cast< int >(result));
33526 return resultobj;
33527fail:
33528 return NULL;
33529}
33530
33531
33532SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33533 PyObject *resultobj = 0;
33534 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33535 wxKeyEvent *arg2 = 0 ;
33536 void *argp1 = 0 ;
33537 int res1 = 0 ;
33538 void *argp2 = 0 ;
33539 int res2 = 0 ;
33540 PyObject * obj0 = 0 ;
33541 PyObject * obj1 = 0 ;
33542 char * kwnames[] = {
33543 (char *) "self",(char *) "evt", NULL
33544 };
33545
33546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33548 if (!SWIG_IsOK(res1)) {
33549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33550 }
33551 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33553 if (!SWIG_IsOK(res2)) {
33554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33555 }
33556 if (!argp2) {
33557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33558 }
33559 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33560 {
33561 PyThreadState* __tstate = wxPyBeginAllowThreads();
33562 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33563 wxPyEndAllowThreads(__tstate);
33564 if (PyErr_Occurred()) SWIG_fail;
33565 }
33566 resultobj = SWIG_Py_Void();
33567 return resultobj;
33568fail:
33569 return NULL;
d55e5bfc
RD
33570}
33571
33572
1bd55598
RD
33573SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33574 PyObject *resultobj = 0;
33575 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33576 wxString *result = 0 ;
33577 void *argp1 = 0 ;
33578 int res1 = 0 ;
33579 PyObject *swig_obj[1] ;
33580
33581 if (!args) SWIG_fail;
33582 swig_obj[0] = args;
33583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33584 if (!SWIG_IsOK(res1)) {
33585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33586 }
33587 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33590 {
1bd55598
RD
33591 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33592 result = (wxString *) &_result_ref;
d55e5bfc 33593 }
1bd55598
RD
33594 wxPyEndAllowThreads(__tstate);
33595 if (PyErr_Occurred()) SWIG_fail;
33596 }
33597 {
33598#if wxUSE_UNICODE
33599 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33600#else
33601 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33602#endif
33603 }
33604 return resultobj;
33605fail:
33606 return NULL;
33607}
33608
33609
33610SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33611 PyObject *resultobj = 0;
33612 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33613 wxString *arg2 = 0 ;
33614 void *argp1 = 0 ;
33615 int res1 = 0 ;
33616 bool temp2 = false ;
33617 PyObject * obj0 = 0 ;
33618 PyObject * obj1 = 0 ;
33619 char * kwnames[] = {
33620 (char *) "self",(char *) "label", NULL
33621 };
33622
33623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33625 if (!SWIG_IsOK(res1)) {
33626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33627 }
33628 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33629 {
33630 arg2 = wxString_in_helper(obj1);
33631 if (arg2 == NULL) SWIG_fail;
33632 temp2 = true;
33633 }
33634 {
33635 PyThreadState* __tstate = wxPyBeginAllowThreads();
33636 (arg1)->SetLabel((wxString const &)*arg2);
33637 wxPyEndAllowThreads(__tstate);
33638 if (PyErr_Occurred()) SWIG_fail;
33639 }
33640 resultobj = SWIG_Py_Void();
33641 {
33642 if (temp2)
33643 delete arg2;
33644 }
33645 return resultobj;
33646fail:
33647 {
33648 if (temp2)
33649 delete arg2;
33650 }
33651 return NULL;
d55e5bfc
RD
33652}
33653
33654
1bd55598
RD
33655SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33656 PyObject *resultobj = 0;
33657 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33658 bool result;
33659 void *argp1 = 0 ;
33660 int res1 = 0 ;
33661 PyObject *swig_obj[1] ;
33662
33663 if (!args) SWIG_fail;
33664 swig_obj[0] = args;
33665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33666 if (!SWIG_IsOK(res1)) {
33667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33668 }
33669 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33670 {
33671 PyThreadState* __tstate = wxPyBeginAllowThreads();
33672 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33673 wxPyEndAllowThreads(__tstate);
33674 if (PyErr_Occurred()) SWIG_fail;
33675 }
33676 {
33677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33678 }
33679 return resultobj;
33680fail:
33681 return NULL;
33682}
33683
33684
33685SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33686 PyObject *resultobj = 0;
33687 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33688 bool arg2 ;
33689 void *argp1 = 0 ;
33690 int res1 = 0 ;
33691 bool val2 ;
33692 int ecode2 = 0 ;
33693 PyObject * obj0 = 0 ;
33694 PyObject * obj1 = 0 ;
33695 char * kwnames[] = {
33696 (char *) "self",(char *) "editCancelled", NULL
33697 };
33698
33699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33701 if (!SWIG_IsOK(res1)) {
33702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33703 }
33704 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33705 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33706 if (!SWIG_IsOK(ecode2)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33708 }
33709 arg2 = static_cast< bool >(val2);
33710 {
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 (arg1)->SetEditCanceled(arg2);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 resultobj = SWIG_Py_Void();
33717 return resultobj;
33718fail:
33719 return NULL;
33720}
33721
33722
33723SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33724 PyObject *resultobj = 0;
33725 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33726 wxString *arg2 = 0 ;
33727 void *argp1 = 0 ;
33728 int res1 = 0 ;
33729 bool temp2 = false ;
33730 PyObject * obj0 = 0 ;
33731 PyObject * obj1 = 0 ;
33732 char * kwnames[] = {
33733 (char *) "self",(char *) "toolTip", NULL
33734 };
33735
33736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33738 if (!SWIG_IsOK(res1)) {
33739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33740 }
33741 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33742 {
33743 arg2 = wxString_in_helper(obj1);
33744 if (arg2 == NULL) SWIG_fail;
33745 temp2 = true;
33746 }
33747 {
33748 PyThreadState* __tstate = wxPyBeginAllowThreads();
33749 (arg1)->SetToolTip((wxString const &)*arg2);
33750 wxPyEndAllowThreads(__tstate);
33751 if (PyErr_Occurred()) SWIG_fail;
33752 }
33753 resultobj = SWIG_Py_Void();
33754 {
33755 if (temp2)
33756 delete arg2;
33757 }
33758 return resultobj;
33759fail:
33760 {
33761 if (temp2)
33762 delete arg2;
33763 }
33764 return NULL;
d55e5bfc
RD
33765}
33766
33767
1bd55598
RD
33768SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33769 PyObject *resultobj = 0;
33770 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33771 wxString result;
33772 void *argp1 = 0 ;
33773 int res1 = 0 ;
33774 PyObject *swig_obj[1] ;
33775
33776 if (!args) SWIG_fail;
33777 swig_obj[0] = args;
33778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33779 if (!SWIG_IsOK(res1)) {
33780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33781 }
33782 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33783 {
33784 PyThreadState* __tstate = wxPyBeginAllowThreads();
33785 result = (arg1)->GetToolTip();
33786 wxPyEndAllowThreads(__tstate);
33787 if (PyErr_Occurred()) SWIG_fail;
33788 }
33789 {
33790#if wxUSE_UNICODE
33791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33792#else
33793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33794#endif
33795 }
33796 return resultobj;
33797fail:
33798 return NULL;
33799}
33800
33801
33802SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33803 PyObject *obj;
33804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33805 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33806 return SWIG_Py_Void();
33807}
33808
33809SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33810 return SWIG_Python_InitShadowInstance(args);
33811}
33812
33813SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33814 PyObject *resultobj = 0;
33815 wxWindow *arg1 = (wxWindow *) 0 ;
33816 int arg2 = (int) -1 ;
33817 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33818 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33819 wxSize const &arg4_defvalue = wxDefaultSize ;
33820 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33821 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33822 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33823 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33824 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33825 wxString *arg7 = (wxString *) &arg7_defvalue ;
33826 wxPyTreeCtrl *result = 0 ;
33827 void *argp1 = 0 ;
33828 int res1 = 0 ;
33829 int val2 ;
33830 int ecode2 = 0 ;
33831 wxPoint temp3 ;
33832 wxSize temp4 ;
33833 long val5 ;
33834 int ecode5 = 0 ;
33835 void *argp6 = 0 ;
33836 int res6 = 0 ;
33837 bool temp7 = false ;
33838 PyObject * obj0 = 0 ;
33839 PyObject * obj1 = 0 ;
33840 PyObject * obj2 = 0 ;
33841 PyObject * obj3 = 0 ;
33842 PyObject * obj4 = 0 ;
33843 PyObject * obj5 = 0 ;
33844 PyObject * obj6 = 0 ;
33845 char * kwnames[] = {
33846 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33847 };
33848
33849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33853 }
33854 arg1 = reinterpret_cast< wxWindow * >(argp1);
33855 if (obj1) {
33856 ecode2 = SWIG_AsVal_int(obj1, &val2);
33857 if (!SWIG_IsOK(ecode2)) {
33858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33859 }
33860 arg2 = static_cast< int >(val2);
33861 }
33862 if (obj2) {
d55e5bfc 33863 {
1bd55598
RD
33864 arg3 = &temp3;
33865 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33866 }
1bd55598
RD
33867 }
33868 if (obj3) {
36ed4f51 33869 {
1bd55598
RD
33870 arg4 = &temp4;
33871 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33872 }
1bd55598
RD
33873 }
33874 if (obj4) {
33875 ecode5 = SWIG_AsVal_long(obj4, &val5);
33876 if (!SWIG_IsOK(ecode5)) {
33877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33878 }
33879 arg5 = static_cast< long >(val5);
33880 }
33881 if (obj5) {
33882 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33883 if (!SWIG_IsOK(res6)) {
33884 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33885 }
1bd55598
RD
33886 if (!argp6) {
33887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33888 }
1bd55598
RD
33889 arg6 = reinterpret_cast< wxValidator * >(argp6);
33890 }
33891 if (obj6) {
d55e5bfc 33892 {
1bd55598
RD
33893 arg7 = wxString_in_helper(obj6);
33894 if (arg7 == NULL) SWIG_fail;
33895 temp7 = true;
d55e5bfc 33896 }
1bd55598
RD
33897 }
33898 {
33899 if (!wxPyCheckForApp()) SWIG_fail;
33900 PyThreadState* __tstate = wxPyBeginAllowThreads();
33901 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33902 wxPyEndAllowThreads(__tstate);
33903 if (PyErr_Occurred()) SWIG_fail;
33904 }
33905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33906 {
33907 if (temp7)
33908 delete arg7;
33909 }
33910 return resultobj;
33911fail:
33912 {
33913 if (temp7)
33914 delete arg7;
33915 }
33916 return NULL;
33917}
33918
33919
33920SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33921 PyObject *resultobj = 0;
33922 wxPyTreeCtrl *result = 0 ;
33923
33924 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33925 {
33926 if (!wxPyCheckForApp()) SWIG_fail;
33927 PyThreadState* __tstate = wxPyBeginAllowThreads();
33928 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33929 wxPyEndAllowThreads(__tstate);
33930 if (PyErr_Occurred()) SWIG_fail;
33931 }
33932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33933 return resultobj;
33934fail:
33935 return NULL;
33936}
33937
33938
33939SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33940 PyObject *resultobj = 0;
33941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33942 wxWindow *arg2 = (wxWindow *) 0 ;
33943 int arg3 = (int) -1 ;
33944 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33945 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33946 wxSize const &arg5_defvalue = wxDefaultSize ;
33947 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33948 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33949 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33950 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33951 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33952 wxString *arg8 = (wxString *) &arg8_defvalue ;
33953 bool result;
33954 void *argp1 = 0 ;
33955 int res1 = 0 ;
33956 void *argp2 = 0 ;
33957 int res2 = 0 ;
33958 int val3 ;
33959 int ecode3 = 0 ;
33960 wxPoint temp4 ;
33961 wxSize temp5 ;
33962 long val6 ;
33963 int ecode6 = 0 ;
33964 void *argp7 = 0 ;
33965 int res7 = 0 ;
33966 bool temp8 = false ;
33967 PyObject * obj0 = 0 ;
33968 PyObject * obj1 = 0 ;
33969 PyObject * obj2 = 0 ;
33970 PyObject * obj3 = 0 ;
33971 PyObject * obj4 = 0 ;
33972 PyObject * obj5 = 0 ;
33973 PyObject * obj6 = 0 ;
33974 PyObject * obj7 = 0 ;
33975 char * kwnames[] = {
33976 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33977 };
33978
33979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33981 if (!SWIG_IsOK(res1)) {
33982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33983 }
33984 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33986 if (!SWIG_IsOK(res2)) {
33987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33988 }
33989 arg2 = reinterpret_cast< wxWindow * >(argp2);
33990 if (obj2) {
33991 ecode3 = SWIG_AsVal_int(obj2, &val3);
33992 if (!SWIG_IsOK(ecode3)) {
33993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33994 }
33995 arg3 = static_cast< int >(val3);
33996 }
33997 if (obj3) {
d55e5bfc 33998 {
1bd55598
RD
33999 arg4 = &temp4;
34000 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34001 }
1bd55598
RD
34002 }
34003 if (obj4) {
d55e5bfc 34004 {
1bd55598
RD
34005 arg5 = &temp5;
34006 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 34007 }
1bd55598
RD
34008 }
34009 if (obj5) {
34010 ecode6 = SWIG_AsVal_long(obj5, &val6);
34011 if (!SWIG_IsOK(ecode6)) {
34012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34013 }
34014 arg6 = static_cast< long >(val6);
34015 }
34016 if (obj6) {
34017 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34018 if (!SWIG_IsOK(res7)) {
34019 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34020 }
1bd55598
RD
34021 if (!argp7) {
34022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34023 }
1bd55598
RD
34024 arg7 = reinterpret_cast< wxValidator * >(argp7);
34025 }
34026 if (obj7) {
d55e5bfc 34027 {
1bd55598
RD
34028 arg8 = wxString_in_helper(obj7);
34029 if (arg8 == NULL) SWIG_fail;
34030 temp8 = true;
d55e5bfc 34031 }
1bd55598
RD
34032 }
34033 {
34034 PyThreadState* __tstate = wxPyBeginAllowThreads();
34035 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34036 wxPyEndAllowThreads(__tstate);
34037 if (PyErr_Occurred()) SWIG_fail;
34038 }
34039 {
34040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34041 }
34042 {
34043 if (temp8)
34044 delete arg8;
34045 }
34046 return resultobj;
34047fail:
34048 {
34049 if (temp8)
34050 delete arg8;
34051 }
34052 return NULL;
34053}
34054
34055
34056SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34057 PyObject *resultobj = 0;
34058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34059 PyObject *arg2 = (PyObject *) 0 ;
34060 PyObject *arg3 = (PyObject *) 0 ;
34061 void *argp1 = 0 ;
34062 int res1 = 0 ;
34063 PyObject * obj0 = 0 ;
34064 PyObject * obj1 = 0 ;
34065 PyObject * obj2 = 0 ;
34066 char * kwnames[] = {
34067 (char *) "self",(char *) "self",(char *) "_class", NULL
34068 };
34069
34070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34072 if (!SWIG_IsOK(res1)) {
34073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34074 }
34075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34076 arg2 = obj1;
34077 arg3 = obj2;
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 (arg1)->_setCallbackInfo(arg2,arg3);
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_Py_Void();
34085 return resultobj;
34086fail:
34087 return NULL;
d55e5bfc
RD
34088}
34089
34090
1bd55598
RD
34091SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34092 PyObject *resultobj = 0;
34093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34094 unsigned int result;
1bd55598
RD
34095 void *argp1 = 0 ;
34096 int res1 = 0 ;
34097 PyObject *swig_obj[1] ;
34098
34099 if (!args) SWIG_fail;
34100 swig_obj[0] = args;
34101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34102 if (!SWIG_IsOK(res1)) {
34103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34104 }
34105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34106 {
34107 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34108 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
34109 wxPyEndAllowThreads(__tstate);
34110 if (PyErr_Occurred()) SWIG_fail;
34111 }
e9d6f3a4 34112 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
34113 return resultobj;
34114fail:
34115 return NULL;
d55e5bfc
RD
34116}
34117
34118
1bd55598
RD
34119SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34120 PyObject *resultobj = 0;
34121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34122 unsigned int result;
34123 void *argp1 = 0 ;
34124 int res1 = 0 ;
34125 PyObject *swig_obj[1] ;
34126
34127 if (!args) SWIG_fail;
34128 swig_obj[0] = args;
34129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34130 if (!SWIG_IsOK(res1)) {
34131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34132 }
34133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34134 {
34135 PyThreadState* __tstate = wxPyBeginAllowThreads();
34136 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34137 wxPyEndAllowThreads(__tstate);
34138 if (PyErr_Occurred()) SWIG_fail;
34139 }
34140 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34141 return resultobj;
34142fail:
34143 return NULL;
34144}
34145
34146
34147SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34148 PyObject *resultobj = 0;
34149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34150 unsigned int arg2 ;
34151 void *argp1 = 0 ;
34152 int res1 = 0 ;
34153 unsigned int val2 ;
34154 int ecode2 = 0 ;
34155 PyObject * obj0 = 0 ;
34156 PyObject * obj1 = 0 ;
34157 char * kwnames[] = {
34158 (char *) "self",(char *) "indent", NULL
34159 };
34160
34161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34163 if (!SWIG_IsOK(res1)) {
34164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34165 }
34166 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34167 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34168 if (!SWIG_IsOK(ecode2)) {
34169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34170 }
34171 arg2 = static_cast< unsigned int >(val2);
34172 {
34173 PyThreadState* __tstate = wxPyBeginAllowThreads();
34174 (arg1)->SetIndent(arg2);
34175 wxPyEndAllowThreads(__tstate);
34176 if (PyErr_Occurred()) SWIG_fail;
34177 }
34178 resultobj = SWIG_Py_Void();
34179 return resultobj;
34180fail:
34181 return NULL;
d55e5bfc
RD
34182}
34183
34184
1bd55598
RD
34185SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34186 PyObject *resultobj = 0;
34187 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34188 unsigned int result;
34189 void *argp1 = 0 ;
34190 int res1 = 0 ;
34191 PyObject *swig_obj[1] ;
34192
34193 if (!args) SWIG_fail;
34194 swig_obj[0] = args;
34195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34196 if (!SWIG_IsOK(res1)) {
34197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34198 }
34199 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34200 {
34201 PyThreadState* __tstate = wxPyBeginAllowThreads();
34202 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34203 wxPyEndAllowThreads(__tstate);
34204 if (PyErr_Occurred()) SWIG_fail;
34205 }
34206 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34207 return resultobj;
34208fail:
34209 return NULL;
34210}
34211
34212
34213SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34214 PyObject *resultobj = 0;
34215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34216 unsigned int arg2 ;
34217 void *argp1 = 0 ;
34218 int res1 = 0 ;
34219 unsigned int val2 ;
34220 int ecode2 = 0 ;
34221 PyObject * obj0 = 0 ;
34222 PyObject * obj1 = 0 ;
34223 char * kwnames[] = {
34224 (char *) "self",(char *) "spacing", NULL
34225 };
34226
34227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34231 }
34232 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34233 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34234 if (!SWIG_IsOK(ecode2)) {
34235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34236 }
34237 arg2 = static_cast< unsigned int >(val2);
34238 {
34239 PyThreadState* __tstate = wxPyBeginAllowThreads();
34240 (arg1)->SetSpacing(arg2);
34241 wxPyEndAllowThreads(__tstate);
34242 if (PyErr_Occurred()) SWIG_fail;
34243 }
34244 resultobj = SWIG_Py_Void();
34245 return resultobj;
34246fail:
34247 return NULL;
d55e5bfc
RD
34248}
34249
34250
1bd55598
RD
34251SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34252 PyObject *resultobj = 0;
34253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34254 wxImageList *result = 0 ;
34255 void *argp1 = 0 ;
34256 int res1 = 0 ;
34257 PyObject *swig_obj[1] ;
34258
34259 if (!args) SWIG_fail;
34260 swig_obj[0] = args;
34261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34262 if (!SWIG_IsOK(res1)) {
34263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34264 }
34265 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34266 {
34267 PyThreadState* __tstate = wxPyBeginAllowThreads();
34268 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34269 wxPyEndAllowThreads(__tstate);
34270 if (PyErr_Occurred()) SWIG_fail;
34271 }
3ecece7e
RD
34272 {
34273 resultobj = wxPyMake_wxObject(result, (bool)0);
34274 }
1bd55598
RD
34275 return resultobj;
34276fail:
34277 return NULL;
d55e5bfc
RD
34278}
34279
34280
1bd55598
RD
34281SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34282 PyObject *resultobj = 0;
34283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34284 wxImageList *result = 0 ;
34285 void *argp1 = 0 ;
34286 int res1 = 0 ;
34287 PyObject *swig_obj[1] ;
34288
34289 if (!args) SWIG_fail;
34290 swig_obj[0] = args;
34291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34292 if (!SWIG_IsOK(res1)) {
34293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34294 }
34295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34296 {
34297 PyThreadState* __tstate = wxPyBeginAllowThreads();
34298 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34299 wxPyEndAllowThreads(__tstate);
34300 if (PyErr_Occurred()) SWIG_fail;
34301 }
3ecece7e
RD
34302 {
34303 resultobj = wxPyMake_wxObject(result, (bool)0);
34304 }
1bd55598
RD
34305 return resultobj;
34306fail:
34307 return NULL;
34308}
34309
34310
34311SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34312 PyObject *resultobj = 0;
34313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34314 wxImageList *arg2 = (wxImageList *) 0 ;
34315 void *argp1 = 0 ;
34316 int res1 = 0 ;
34317 void *argp2 = 0 ;
34318 int res2 = 0 ;
34319 PyObject * obj0 = 0 ;
34320 PyObject * obj1 = 0 ;
34321 char * kwnames[] = {
34322 (char *) "self",(char *) "imageList", NULL
34323 };
34324
34325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34327 if (!SWIG_IsOK(res1)) {
34328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34329 }
34330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34331 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34332 if (!SWIG_IsOK(res2)) {
34333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34334 }
34335 arg2 = reinterpret_cast< wxImageList * >(argp2);
34336 {
34337 PyThreadState* __tstate = wxPyBeginAllowThreads();
34338 (arg1)->SetImageList(arg2);
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 resultobj = SWIG_Py_Void();
34343 return resultobj;
34344fail:
34345 return NULL;
34346}
34347
34348
34349SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34350 PyObject *resultobj = 0;
34351 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34352 wxImageList *arg2 = (wxImageList *) 0 ;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 void *argp2 = 0 ;
34356 int res2 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 char * kwnames[] = {
34360 (char *) "self",(char *) "imageList", NULL
34361 };
34362
34363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34367 }
34368 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34370 if (!SWIG_IsOK(res2)) {
34371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34372 }
34373 arg2 = reinterpret_cast< wxImageList * >(argp2);
34374 {
34375 PyThreadState* __tstate = wxPyBeginAllowThreads();
34376 (arg1)->SetStateImageList(arg2);
34377 wxPyEndAllowThreads(__tstate);
34378 if (PyErr_Occurred()) SWIG_fail;
34379 }
34380 resultobj = SWIG_Py_Void();
34381 return resultobj;
34382fail:
34383 return NULL;
34384}
34385
34386
34387SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34388 PyObject *resultobj = 0;
34389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34390 wxImageList *arg2 = (wxImageList *) 0 ;
34391 void *argp1 = 0 ;
34392 int res1 = 0 ;
34393 int res2 = 0 ;
34394 PyObject * obj0 = 0 ;
34395 PyObject * obj1 = 0 ;
34396 char * kwnames[] = {
34397 (char *) "self",(char *) "imageList", NULL
34398 };
34399
34400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34402 if (!SWIG_IsOK(res1)) {
34403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34404 }
34405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34406 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34407 if (!SWIG_IsOK(res2)) {
34408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34409 }
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 (arg1)->AssignImageList(arg2);
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 resultobj = SWIG_Py_Void();
34417 return resultobj;
34418fail:
34419 return NULL;
34420}
34421
34422
34423SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34424 PyObject *resultobj = 0;
34425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34426 wxImageList *arg2 = (wxImageList *) 0 ;
34427 void *argp1 = 0 ;
34428 int res1 = 0 ;
34429 int res2 = 0 ;
34430 PyObject * obj0 = 0 ;
34431 PyObject * obj1 = 0 ;
34432 char * kwnames[] = {
34433 (char *) "self",(char *) "imageList", NULL
34434 };
34435
34436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34438 if (!SWIG_IsOK(res1)) {
34439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34440 }
34441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34442 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34443 if (!SWIG_IsOK(res2)) {
34444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34445 }
34446 {
34447 PyThreadState* __tstate = wxPyBeginAllowThreads();
34448 (arg1)->AssignStateImageList(arg2);
34449 wxPyEndAllowThreads(__tstate);
34450 if (PyErr_Occurred()) SWIG_fail;
34451 }
34452 resultobj = SWIG_Py_Void();
34453 return resultobj;
34454fail:
34455 return NULL;
34456}
34457
34458
34459SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34460 PyObject *resultobj = 0;
34461 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34462 wxTreeItemId *arg2 = 0 ;
34463 wxString result;
34464 void *argp1 = 0 ;
34465 int res1 = 0 ;
34466 void *argp2 = 0 ;
34467 int res2 = 0 ;
34468 PyObject * obj0 = 0 ;
34469 PyObject * obj1 = 0 ;
34470 char * kwnames[] = {
34471 (char *) "self",(char *) "item", NULL
34472 };
34473
34474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34476 if (!SWIG_IsOK(res1)) {
34477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34478 }
34479 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34481 if (!SWIG_IsOK(res2)) {
34482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34483 }
34484 if (!argp2) {
34485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34486 }
34487 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34488 {
34489 PyThreadState* __tstate = wxPyBeginAllowThreads();
34490 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34491 wxPyEndAllowThreads(__tstate);
34492 if (PyErr_Occurred()) SWIG_fail;
34493 }
34494 {
34495#if wxUSE_UNICODE
34496 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34497#else
34498 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34499#endif
34500 }
34501 return resultobj;
34502fail:
34503 return NULL;
34504}
34505
34506
34507SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34508 PyObject *resultobj = 0;
34509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34510 wxTreeItemId *arg2 = 0 ;
34511 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34512 int result;
34513 void *argp1 = 0 ;
34514 int res1 = 0 ;
34515 void *argp2 = 0 ;
34516 int res2 = 0 ;
34517 int val3 ;
34518 int ecode3 = 0 ;
34519 PyObject * obj0 = 0 ;
34520 PyObject * obj1 = 0 ;
34521 PyObject * obj2 = 0 ;
34522 char * kwnames[] = {
34523 (char *) "self",(char *) "item",(char *) "which", NULL
34524 };
34525
34526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34528 if (!SWIG_IsOK(res1)) {
34529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34530 }
34531 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34533 if (!SWIG_IsOK(res2)) {
34534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34535 }
34536 if (!argp2) {
34537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34538 }
34539 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34540 if (obj2) {
34541 ecode3 = SWIG_AsVal_int(obj2, &val3);
34542 if (!SWIG_IsOK(ecode3)) {
34543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34544 }
34545 arg3 = static_cast< wxTreeItemIcon >(val3);
34546 }
34547 {
34548 PyThreadState* __tstate = wxPyBeginAllowThreads();
34549 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34550 wxPyEndAllowThreads(__tstate);
34551 if (PyErr_Occurred()) SWIG_fail;
34552 }
34553 resultobj = SWIG_From_int(static_cast< int >(result));
34554 return resultobj;
34555fail:
34556 return NULL;
34557}
34558
34559
34560SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34561 PyObject *resultobj = 0;
34562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34563 wxTreeItemId *arg2 = 0 ;
34564 wxPyTreeItemData *result = 0 ;
34565 void *argp1 = 0 ;
34566 int res1 = 0 ;
34567 void *argp2 = 0 ;
34568 int res2 = 0 ;
34569 PyObject * obj0 = 0 ;
34570 PyObject * obj1 = 0 ;
34571 char * kwnames[] = {
34572 (char *) "self",(char *) "item", NULL
34573 };
34574
34575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34577 if (!SWIG_IsOK(res1)) {
34578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34579 }
34580 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34582 if (!SWIG_IsOK(res2)) {
34583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34584 }
34585 if (!argp2) {
34586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34587 }
34588 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34589 {
34590 PyThreadState* __tstate = wxPyBeginAllowThreads();
34591 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34592 wxPyEndAllowThreads(__tstate);
34593 if (PyErr_Occurred()) SWIG_fail;
34594 }
34595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34596 return resultobj;
34597fail:
34598 return NULL;
34599}
34600
34601
34602SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34603 PyObject *resultobj = 0;
34604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34605 wxTreeItemId *arg2 = 0 ;
34606 PyObject *result = 0 ;
34607 void *argp1 = 0 ;
34608 int res1 = 0 ;
34609 void *argp2 = 0 ;
34610 int res2 = 0 ;
34611 PyObject * obj0 = 0 ;
34612 PyObject * obj1 = 0 ;
34613 char * kwnames[] = {
34614 (char *) "self",(char *) "item", NULL
34615 };
34616
34617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34619 if (!SWIG_IsOK(res1)) {
34620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34621 }
34622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34624 if (!SWIG_IsOK(res2)) {
34625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34626 }
34627 if (!argp2) {
34628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34629 }
34630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34631 {
34632 PyThreadState* __tstate = wxPyBeginAllowThreads();
34633 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34634 wxPyEndAllowThreads(__tstate);
34635 if (PyErr_Occurred()) SWIG_fail;
34636 }
34637 resultobj = result;
34638 return resultobj;
34639fail:
34640 return NULL;
34641}
34642
34643
34644SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34645 PyObject *resultobj = 0;
34646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34647 wxTreeItemId *arg2 = 0 ;
34648 wxColour result;
34649 void *argp1 = 0 ;
34650 int res1 = 0 ;
34651 void *argp2 = 0 ;
34652 int res2 = 0 ;
34653 PyObject * obj0 = 0 ;
34654 PyObject * obj1 = 0 ;
34655 char * kwnames[] = {
34656 (char *) "self",(char *) "item", NULL
34657 };
34658
34659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34661 if (!SWIG_IsOK(res1)) {
34662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34663 }
34664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34666 if (!SWIG_IsOK(res2)) {
34667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34668 }
34669 if (!argp2) {
34670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34671 }
34672 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34673 {
34674 PyThreadState* __tstate = wxPyBeginAllowThreads();
34675 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34676 wxPyEndAllowThreads(__tstate);
34677 if (PyErr_Occurred()) SWIG_fail;
34678 }
34679 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34680 return resultobj;
34681fail:
34682 return NULL;
34683}
34684
34685
34686SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34687 PyObject *resultobj = 0;
34688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34689 wxTreeItemId *arg2 = 0 ;
34690 wxColour result;
34691 void *argp1 = 0 ;
34692 int res1 = 0 ;
34693 void *argp2 = 0 ;
34694 int res2 = 0 ;
34695 PyObject * obj0 = 0 ;
34696 PyObject * obj1 = 0 ;
34697 char * kwnames[] = {
34698 (char *) "self",(char *) "item", NULL
34699 };
34700
34701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34703 if (!SWIG_IsOK(res1)) {
34704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34705 }
34706 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34708 if (!SWIG_IsOK(res2)) {
34709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34710 }
34711 if (!argp2) {
34712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34713 }
34714 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34715 {
34716 PyThreadState* __tstate = wxPyBeginAllowThreads();
34717 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34718 wxPyEndAllowThreads(__tstate);
34719 if (PyErr_Occurred()) SWIG_fail;
34720 }
34721 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34722 return resultobj;
34723fail:
34724 return NULL;
34725}
34726
34727
34728SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34729 PyObject *resultobj = 0;
34730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34731 wxTreeItemId *arg2 = 0 ;
34732 wxFont result;
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 char * kwnames[] = {
34740 (char *) "self",(char *) "item", NULL
34741 };
34742
34743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34745 if (!SWIG_IsOK(res1)) {
34746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34747 }
34748 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34750 if (!SWIG_IsOK(res2)) {
34751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34752 }
34753 if (!argp2) {
34754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34755 }
34756 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34757 {
34758 PyThreadState* __tstate = wxPyBeginAllowThreads();
34759 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34760 wxPyEndAllowThreads(__tstate);
34761 if (PyErr_Occurred()) SWIG_fail;
34762 }
34763 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34764 return resultobj;
34765fail:
34766 return NULL;
34767}
34768
34769
34770SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34771 PyObject *resultobj = 0;
34772 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34773 wxTreeItemId *arg2 = 0 ;
34774 wxString *arg3 = 0 ;
34775 void *argp1 = 0 ;
34776 int res1 = 0 ;
34777 void *argp2 = 0 ;
34778 int res2 = 0 ;
34779 bool temp3 = false ;
34780 PyObject * obj0 = 0 ;
34781 PyObject * obj1 = 0 ;
34782 PyObject * obj2 = 0 ;
34783 char * kwnames[] = {
34784 (char *) "self",(char *) "item",(char *) "text", NULL
34785 };
34786
34787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34789 if (!SWIG_IsOK(res1)) {
34790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34791 }
34792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34794 if (!SWIG_IsOK(res2)) {
34795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34796 }
34797 if (!argp2) {
34798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34799 }
34800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34801 {
34802 arg3 = wxString_in_helper(obj2);
34803 if (arg3 == NULL) SWIG_fail;
34804 temp3 = true;
34805 }
34806 {
34807 PyThreadState* __tstate = wxPyBeginAllowThreads();
34808 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34809 wxPyEndAllowThreads(__tstate);
34810 if (PyErr_Occurred()) SWIG_fail;
34811 }
34812 resultobj = SWIG_Py_Void();
34813 {
34814 if (temp3)
34815 delete arg3;
34816 }
34817 return resultobj;
34818fail:
34819 {
34820 if (temp3)
34821 delete arg3;
34822 }
34823 return NULL;
34824}
34825
34826
34827SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34828 PyObject *resultobj = 0;
34829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34830 wxTreeItemId *arg2 = 0 ;
34831 int arg3 ;
34832 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34833 void *argp1 = 0 ;
34834 int res1 = 0 ;
34835 void *argp2 = 0 ;
34836 int res2 = 0 ;
34837 int val3 ;
34838 int ecode3 = 0 ;
34839 int val4 ;
34840 int ecode4 = 0 ;
34841 PyObject * obj0 = 0 ;
34842 PyObject * obj1 = 0 ;
34843 PyObject * obj2 = 0 ;
34844 PyObject * obj3 = 0 ;
34845 char * kwnames[] = {
34846 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34847 };
34848
34849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34851 if (!SWIG_IsOK(res1)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34853 }
34854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34856 if (!SWIG_IsOK(res2)) {
34857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34858 }
34859 if (!argp2) {
34860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34861 }
34862 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34863 ecode3 = SWIG_AsVal_int(obj2, &val3);
34864 if (!SWIG_IsOK(ecode3)) {
34865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34866 }
34867 arg3 = static_cast< int >(val3);
34868 if (obj3) {
34869 ecode4 = SWIG_AsVal_int(obj3, &val4);
34870 if (!SWIG_IsOK(ecode4)) {
34871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34872 }
34873 arg4 = static_cast< wxTreeItemIcon >(val4);
34874 }
34875 {
34876 PyThreadState* __tstate = wxPyBeginAllowThreads();
34877 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34878 wxPyEndAllowThreads(__tstate);
34879 if (PyErr_Occurred()) SWIG_fail;
34880 }
34881 resultobj = SWIG_Py_Void();
34882 return resultobj;
34883fail:
34884 return NULL;
34885}
34886
34887
34888SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34889 PyObject *resultobj = 0;
34890 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34891 wxTreeItemId *arg2 = 0 ;
34892 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34893 void *argp1 = 0 ;
34894 int res1 = 0 ;
34895 void *argp2 = 0 ;
34896 int res2 = 0 ;
34897 int res3 = 0 ;
34898 PyObject * obj0 = 0 ;
34899 PyObject * obj1 = 0 ;
34900 PyObject * obj2 = 0 ;
34901 char * kwnames[] = {
34902 (char *) "self",(char *) "item",(char *) "data", NULL
34903 };
34904
34905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34907 if (!SWIG_IsOK(res1)) {
34908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34909 }
34910 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34911 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34912 if (!SWIG_IsOK(res2)) {
34913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34914 }
34915 if (!argp2) {
34916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34917 }
34918 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34919 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34920 if (!SWIG_IsOK(res3)) {
34921 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34922 }
34923 {
34924 PyThreadState* __tstate = wxPyBeginAllowThreads();
34925 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 resultobj = SWIG_Py_Void();
34930 return resultobj;
34931fail:
34932 return NULL;
34933}
34934
34935
34936SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34937 PyObject *resultobj = 0;
34938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34939 wxTreeItemId *arg2 = 0 ;
34940 PyObject *arg3 = (PyObject *) 0 ;
34941 void *argp1 = 0 ;
34942 int res1 = 0 ;
34943 void *argp2 = 0 ;
34944 int res2 = 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34947 PyObject * obj2 = 0 ;
34948 char * kwnames[] = {
34949 (char *) "self",(char *) "item",(char *) "obj", NULL
34950 };
34951
34952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34954 if (!SWIG_IsOK(res1)) {
34955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34956 }
34957 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34958 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34959 if (!SWIG_IsOK(res2)) {
34960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34961 }
34962 if (!argp2) {
34963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34964 }
34965 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34966 arg3 = obj2;
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34970 wxPyEndAllowThreads(__tstate);
34971 if (PyErr_Occurred()) SWIG_fail;
34972 }
34973 resultobj = SWIG_Py_Void();
34974 return resultobj;
34975fail:
34976 return NULL;
34977}
34978
34979
34980SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34981 PyObject *resultobj = 0;
34982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34983 wxTreeItemId *arg2 = 0 ;
34984 bool arg3 = (bool) true ;
34985 void *argp1 = 0 ;
34986 int res1 = 0 ;
34987 void *argp2 = 0 ;
34988 int res2 = 0 ;
34989 bool val3 ;
34990 int ecode3 = 0 ;
34991 PyObject * obj0 = 0 ;
34992 PyObject * obj1 = 0 ;
34993 PyObject * obj2 = 0 ;
34994 char * kwnames[] = {
34995 (char *) "self",(char *) "item",(char *) "has", NULL
34996 };
34997
34998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35000 if (!SWIG_IsOK(res1)) {
35001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35002 }
35003 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35005 if (!SWIG_IsOK(res2)) {
35006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35007 }
35008 if (!argp2) {
35009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35010 }
35011 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35012 if (obj2) {
35013 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35014 if (!SWIG_IsOK(ecode3)) {
35015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35016 }
35017 arg3 = static_cast< bool >(val3);
35018 }
35019 {
35020 PyThreadState* __tstate = wxPyBeginAllowThreads();
35021 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35022 wxPyEndAllowThreads(__tstate);
35023 if (PyErr_Occurred()) SWIG_fail;
35024 }
35025 resultobj = SWIG_Py_Void();
35026 return resultobj;
35027fail:
35028 return NULL;
35029}
35030
35031
35032SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35033 PyObject *resultobj = 0;
35034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35035 wxTreeItemId *arg2 = 0 ;
35036 bool arg3 = (bool) true ;
35037 void *argp1 = 0 ;
35038 int res1 = 0 ;
35039 void *argp2 = 0 ;
35040 int res2 = 0 ;
35041 bool val3 ;
35042 int ecode3 = 0 ;
35043 PyObject * obj0 = 0 ;
35044 PyObject * obj1 = 0 ;
35045 PyObject * obj2 = 0 ;
35046 char * kwnames[] = {
35047 (char *) "self",(char *) "item",(char *) "bold", NULL
35048 };
35049
35050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35052 if (!SWIG_IsOK(res1)) {
35053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35054 }
35055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35057 if (!SWIG_IsOK(res2)) {
35058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35059 }
35060 if (!argp2) {
35061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35062 }
35063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35064 if (obj2) {
35065 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35066 if (!SWIG_IsOK(ecode3)) {
35067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35068 }
35069 arg3 = static_cast< bool >(val3);
35070 }
35071 {
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35074 wxPyEndAllowThreads(__tstate);
35075 if (PyErr_Occurred()) SWIG_fail;
35076 }
35077 resultobj = SWIG_Py_Void();
35078 return resultobj;
35079fail:
35080 return NULL;
35081}
35082
35083
35084SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35085 PyObject *resultobj = 0;
35086 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35087 wxTreeItemId *arg2 = 0 ;
35088 bool arg3 = (bool) true ;
35089 void *argp1 = 0 ;
35090 int res1 = 0 ;
35091 void *argp2 = 0 ;
35092 int res2 = 0 ;
35093 bool val3 ;
35094 int ecode3 = 0 ;
35095 PyObject * obj0 = 0 ;
35096 PyObject * obj1 = 0 ;
35097 PyObject * obj2 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "item",(char *) "highlight", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35106 }
35107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35109 if (!SWIG_IsOK(res2)) {
35110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35111 }
35112 if (!argp2) {
35113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35114 }
35115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35116 if (obj2) {
35117 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35118 if (!SWIG_IsOK(ecode3)) {
35119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35120 }
35121 arg3 = static_cast< bool >(val3);
35122 }
35123 {
35124 PyThreadState* __tstate = wxPyBeginAllowThreads();
35125 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 resultobj = SWIG_Py_Void();
35130 return resultobj;
35131fail:
35132 return NULL;
35133}
35134
35135
35136SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35137 PyObject *resultobj = 0;
35138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35139 wxTreeItemId *arg2 = 0 ;
35140 wxColour *arg3 = 0 ;
35141 void *argp1 = 0 ;
35142 int res1 = 0 ;
35143 void *argp2 = 0 ;
35144 int res2 = 0 ;
35145 wxColour temp3 ;
35146 PyObject * obj0 = 0 ;
35147 PyObject * obj1 = 0 ;
35148 PyObject * obj2 = 0 ;
35149 char * kwnames[] = {
35150 (char *) "self",(char *) "item",(char *) "col", NULL
35151 };
35152
35153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35155 if (!SWIG_IsOK(res1)) {
35156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35157 }
35158 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35160 if (!SWIG_IsOK(res2)) {
35161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35162 }
35163 if (!argp2) {
35164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35165 }
35166 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35167 {
35168 arg3 = &temp3;
35169 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35170 }
35171 {
35172 PyThreadState* __tstate = wxPyBeginAllowThreads();
35173 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35174 wxPyEndAllowThreads(__tstate);
35175 if (PyErr_Occurred()) SWIG_fail;
35176 }
35177 resultobj = SWIG_Py_Void();
35178 return resultobj;
35179fail:
35180 return NULL;
35181}
35182
35183
35184SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35185 PyObject *resultobj = 0;
35186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35187 wxTreeItemId *arg2 = 0 ;
35188 wxColour *arg3 = 0 ;
35189 void *argp1 = 0 ;
35190 int res1 = 0 ;
35191 void *argp2 = 0 ;
35192 int res2 = 0 ;
35193 wxColour temp3 ;
35194 PyObject * obj0 = 0 ;
35195 PyObject * obj1 = 0 ;
35196 PyObject * obj2 = 0 ;
35197 char * kwnames[] = {
35198 (char *) "self",(char *) "item",(char *) "col", NULL
35199 };
35200
35201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35203 if (!SWIG_IsOK(res1)) {
35204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35205 }
35206 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35208 if (!SWIG_IsOK(res2)) {
35209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35210 }
35211 if (!argp2) {
35212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35213 }
35214 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35215 {
35216 arg3 = &temp3;
35217 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35218 }
35219 {
35220 PyThreadState* __tstate = wxPyBeginAllowThreads();
35221 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35222 wxPyEndAllowThreads(__tstate);
35223 if (PyErr_Occurred()) SWIG_fail;
35224 }
35225 resultobj = SWIG_Py_Void();
35226 return resultobj;
35227fail:
35228 return NULL;
35229}
35230
35231
35232SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35233 PyObject *resultobj = 0;
35234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35235 wxTreeItemId *arg2 = 0 ;
35236 wxFont *arg3 = 0 ;
35237 void *argp1 = 0 ;
35238 int res1 = 0 ;
35239 void *argp2 = 0 ;
35240 int res2 = 0 ;
35241 void *argp3 = 0 ;
35242 int res3 = 0 ;
35243 PyObject * obj0 = 0 ;
35244 PyObject * obj1 = 0 ;
35245 PyObject * obj2 = 0 ;
35246 char * kwnames[] = {
35247 (char *) "self",(char *) "item",(char *) "font", NULL
35248 };
35249
35250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35252 if (!SWIG_IsOK(res1)) {
35253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35254 }
35255 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35257 if (!SWIG_IsOK(res2)) {
35258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35259 }
35260 if (!argp2) {
35261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35262 }
35263 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35264 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35265 if (!SWIG_IsOK(res3)) {
35266 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35267 }
35268 if (!argp3) {
35269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35270 }
35271 arg3 = reinterpret_cast< wxFont * >(argp3);
35272 {
35273 PyThreadState* __tstate = wxPyBeginAllowThreads();
35274 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35275 wxPyEndAllowThreads(__tstate);
35276 if (PyErr_Occurred()) SWIG_fail;
35277 }
35278 resultobj = SWIG_Py_Void();
35279 return resultobj;
35280fail:
35281 return NULL;
35282}
35283
35284
35285SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35286 PyObject *resultobj = 0;
35287 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35288 wxTreeItemId *arg2 = 0 ;
35289 bool result;
35290 void *argp1 = 0 ;
35291 int res1 = 0 ;
35292 void *argp2 = 0 ;
35293 int res2 = 0 ;
35294 PyObject * obj0 = 0 ;
35295 PyObject * obj1 = 0 ;
35296 char * kwnames[] = {
35297 (char *) "self",(char *) "item", NULL
35298 };
35299
35300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35302 if (!SWIG_IsOK(res1)) {
35303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35304 }
35305 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35307 if (!SWIG_IsOK(res2)) {
35308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35309 }
35310 if (!argp2) {
35311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35312 }
35313 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35314 {
35315 PyThreadState* __tstate = wxPyBeginAllowThreads();
35316 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35317 wxPyEndAllowThreads(__tstate);
35318 if (PyErr_Occurred()) SWIG_fail;
35319 }
35320 {
35321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35322 }
35323 return resultobj;
35324fail:
35325 return NULL;
35326}
35327
35328
35329SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35330 PyObject *resultobj = 0;
35331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35332 wxTreeItemId *arg2 = 0 ;
35333 bool result;
35334 void *argp1 = 0 ;
35335 int res1 = 0 ;
35336 void *argp2 = 0 ;
35337 int res2 = 0 ;
35338 PyObject * obj0 = 0 ;
35339 PyObject * obj1 = 0 ;
35340 char * kwnames[] = {
35341 (char *) "self",(char *) "item", NULL
35342 };
35343
35344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35346 if (!SWIG_IsOK(res1)) {
35347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35348 }
35349 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35351 if (!SWIG_IsOK(res2)) {
35352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35353 }
35354 if (!argp2) {
35355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35356 }
35357 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35358 {
35359 PyThreadState* __tstate = wxPyBeginAllowThreads();
35360 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35361 wxPyEndAllowThreads(__tstate);
35362 if (PyErr_Occurred()) SWIG_fail;
35363 }
35364 {
35365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35366 }
35367 return resultobj;
35368fail:
35369 return NULL;
35370}
35371
35372
35373SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35376 wxTreeItemId *arg2 = 0 ;
35377 bool result;
35378 void *argp1 = 0 ;
35379 int res1 = 0 ;
35380 void *argp2 = 0 ;
35381 int res2 = 0 ;
35382 PyObject * obj0 = 0 ;
35383 PyObject * obj1 = 0 ;
35384 char * kwnames[] = {
35385 (char *) "self",(char *) "item", NULL
35386 };
35387
35388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35390 if (!SWIG_IsOK(res1)) {
35391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35392 }
35393 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35395 if (!SWIG_IsOK(res2)) {
35396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35397 }
35398 if (!argp2) {
35399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35400 }
35401 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35402 {
35403 PyThreadState* __tstate = wxPyBeginAllowThreads();
35404 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35405 wxPyEndAllowThreads(__tstate);
35406 if (PyErr_Occurred()) SWIG_fail;
35407 }
35408 {
35409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35410 }
35411 return resultobj;
35412fail:
35413 return NULL;
35414}
35415
35416
35417SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35418 PyObject *resultobj = 0;
35419 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35420 wxTreeItemId *arg2 = 0 ;
35421 bool result;
35422 void *argp1 = 0 ;
35423 int res1 = 0 ;
35424 void *argp2 = 0 ;
35425 int res2 = 0 ;
35426 PyObject * obj0 = 0 ;
35427 PyObject * obj1 = 0 ;
35428 char * kwnames[] = {
35429 (char *) "self",(char *) "item", NULL
35430 };
35431
35432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35434 if (!SWIG_IsOK(res1)) {
35435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35436 }
35437 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35438 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35439 if (!SWIG_IsOK(res2)) {
35440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35441 }
35442 if (!argp2) {
35443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35444 }
35445 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35446 {
35447 PyThreadState* __tstate = wxPyBeginAllowThreads();
35448 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35449 wxPyEndAllowThreads(__tstate);
35450 if (PyErr_Occurred()) SWIG_fail;
35451 }
35452 {
35453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35454 }
35455 return resultobj;
35456fail:
35457 return NULL;
35458}
35459
35460
35461SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35462 PyObject *resultobj = 0;
35463 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35464 wxTreeItemId *arg2 = 0 ;
35465 bool result;
35466 void *argp1 = 0 ;
35467 int res1 = 0 ;
35468 void *argp2 = 0 ;
35469 int res2 = 0 ;
35470 PyObject * obj0 = 0 ;
35471 PyObject * obj1 = 0 ;
35472 char * kwnames[] = {
35473 (char *) "self",(char *) "item", NULL
35474 };
35475
35476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35478 if (!SWIG_IsOK(res1)) {
35479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35480 }
35481 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35482 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35483 if (!SWIG_IsOK(res2)) {
35484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35485 }
35486 if (!argp2) {
35487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35488 }
35489 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35490 {
35491 PyThreadState* __tstate = wxPyBeginAllowThreads();
35492 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35493 wxPyEndAllowThreads(__tstate);
35494 if (PyErr_Occurred()) SWIG_fail;
35495 }
35496 {
35497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35498 }
35499 return resultobj;
35500fail:
35501 return NULL;
35502}
35503
35504
35505SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35506 PyObject *resultobj = 0;
35507 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35508 wxTreeItemId *arg2 = 0 ;
35509 bool arg3 = (bool) true ;
35510 size_t result;
35511 void *argp1 = 0 ;
35512 int res1 = 0 ;
35513 void *argp2 = 0 ;
35514 int res2 = 0 ;
35515 bool val3 ;
35516 int ecode3 = 0 ;
35517 PyObject * obj0 = 0 ;
35518 PyObject * obj1 = 0 ;
35519 PyObject * obj2 = 0 ;
35520 char * kwnames[] = {
35521 (char *) "self",(char *) "item",(char *) "recursively", NULL
35522 };
35523
35524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35526 if (!SWIG_IsOK(res1)) {
35527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35528 }
35529 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35531 if (!SWIG_IsOK(res2)) {
35532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35533 }
35534 if (!argp2) {
35535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35536 }
35537 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35538 if (obj2) {
35539 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35540 if (!SWIG_IsOK(ecode3)) {
35541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35542 }
35543 arg3 = static_cast< bool >(val3);
35544 }
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35548 wxPyEndAllowThreads(__tstate);
35549 if (PyErr_Occurred()) SWIG_fail;
35550 }
35551 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35552 return resultobj;
35553fail:
35554 return NULL;
d55e5bfc
RD
35555}
35556
35557
1bd55598
RD
35558SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35559 PyObject *resultobj = 0;
35560 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35561 wxTreeItemId result;
35562 void *argp1 = 0 ;
35563 int res1 = 0 ;
35564 PyObject *swig_obj[1] ;
35565
35566 if (!args) SWIG_fail;
35567 swig_obj[0] = args;
35568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35569 if (!SWIG_IsOK(res1)) {
35570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35571 }
35572 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35573 {
35574 PyThreadState* __tstate = wxPyBeginAllowThreads();
35575 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35576 wxPyEndAllowThreads(__tstate);
35577 if (PyErr_Occurred()) SWIG_fail;
35578 }
35579 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35580 return resultobj;
35581fail:
35582 return NULL;
d55e5bfc
RD
35583}
35584
35585
1bd55598
RD
35586SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35587 PyObject *resultobj = 0;
35588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35589 wxTreeItemId result;
35590 void *argp1 = 0 ;
35591 int res1 = 0 ;
35592 PyObject *swig_obj[1] ;
35593
35594 if (!args) SWIG_fail;
35595 swig_obj[0] = args;
35596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35597 if (!SWIG_IsOK(res1)) {
35598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35599 }
35600 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35601 {
35602 PyThreadState* __tstate = wxPyBeginAllowThreads();
35603 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35604 wxPyEndAllowThreads(__tstate);
35605 if (PyErr_Occurred()) SWIG_fail;
35606 }
35607 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35608 return resultobj;
35609fail:
35610 return NULL;
d55e5bfc
RD
35611}
35612
35613
1bd55598
RD
35614SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35615 PyObject *resultobj = 0;
35616 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35617 PyObject *result = 0 ;
35618 void *argp1 = 0 ;
35619 int res1 = 0 ;
35620 PyObject *swig_obj[1] ;
35621
35622 if (!args) SWIG_fail;
35623 swig_obj[0] = args;
35624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35625 if (!SWIG_IsOK(res1)) {
35626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35627 }
35628 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = result;
35636 return resultobj;
35637fail:
35638 return NULL;
35639}
35640
35641
35642SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35643 PyObject *resultobj = 0;
35644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35645 wxTreeItemId *arg2 = 0 ;
35646 wxTreeItemId result;
35647 void *argp1 = 0 ;
35648 int res1 = 0 ;
35649 void *argp2 = 0 ;
35650 int res2 = 0 ;
35651 PyObject * obj0 = 0 ;
35652 PyObject * obj1 = 0 ;
35653 char * kwnames[] = {
35654 (char *) "self",(char *) "item", NULL
35655 };
35656
35657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35659 if (!SWIG_IsOK(res1)) {
35660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35661 }
35662 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35664 if (!SWIG_IsOK(res2)) {
35665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35666 }
35667 if (!argp2) {
35668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35669 }
35670 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35671 {
35672 PyThreadState* __tstate = wxPyBeginAllowThreads();
35673 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35674 wxPyEndAllowThreads(__tstate);
35675 if (PyErr_Occurred()) SWIG_fail;
35676 }
35677 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35678 return resultobj;
35679fail:
35680 return NULL;
35681}
35682
35683
35684SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35685 PyObject *resultobj = 0;
35686 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35687 wxTreeItemId *arg2 = 0 ;
35688 PyObject *result = 0 ;
35689 void *argp1 = 0 ;
35690 int res1 = 0 ;
35691 void *argp2 = 0 ;
35692 int res2 = 0 ;
35693 PyObject * obj0 = 0 ;
35694 PyObject * obj1 = 0 ;
35695 char * kwnames[] = {
35696 (char *) "self",(char *) "item", NULL
35697 };
35698
35699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35701 if (!SWIG_IsOK(res1)) {
35702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35703 }
35704 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35706 if (!SWIG_IsOK(res2)) {
35707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35708 }
35709 if (!argp2) {
35710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35711 }
35712 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35713 {
35714 PyThreadState* __tstate = wxPyBeginAllowThreads();
35715 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35716 wxPyEndAllowThreads(__tstate);
35717 if (PyErr_Occurred()) SWIG_fail;
35718 }
35719 resultobj = result;
35720 return resultobj;
35721fail:
35722 return NULL;
35723}
35724
35725
35726SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35727 PyObject *resultobj = 0;
35728 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35729 wxTreeItemId *arg2 = 0 ;
35730 void *arg3 = (void *) 0 ;
35731 PyObject *result = 0 ;
35732 void *argp1 = 0 ;
35733 int res1 = 0 ;
35734 void *argp2 = 0 ;
35735 int res2 = 0 ;
35736 int res3 ;
35737 PyObject * obj0 = 0 ;
35738 PyObject * obj1 = 0 ;
35739 PyObject * obj2 = 0 ;
35740 char * kwnames[] = {
35741 (char *) "self",(char *) "item",(char *) "cookie", NULL
35742 };
35743
35744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35746 if (!SWIG_IsOK(res1)) {
35747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35748 }
35749 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35751 if (!SWIG_IsOK(res2)) {
35752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35753 }
35754 if (!argp2) {
35755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35756 }
35757 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35758 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35759 if (!SWIG_IsOK(res3)) {
35760 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35761 }
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35765 wxPyEndAllowThreads(__tstate);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 resultobj = result;
35769 return resultobj;
35770fail:
35771 return NULL;
35772}
35773
35774
35775SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35776 PyObject *resultobj = 0;
35777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35778 wxTreeItemId *arg2 = 0 ;
35779 wxTreeItemId result;
35780 void *argp1 = 0 ;
35781 int res1 = 0 ;
35782 void *argp2 = 0 ;
35783 int res2 = 0 ;
35784 PyObject * obj0 = 0 ;
35785 PyObject * obj1 = 0 ;
35786 char * kwnames[] = {
35787 (char *) "self",(char *) "item", NULL
35788 };
35789
35790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35792 if (!SWIG_IsOK(res1)) {
35793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35794 }
35795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35797 if (!SWIG_IsOK(res2)) {
35798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35799 }
35800 if (!argp2) {
35801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35802 }
35803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35804 {
35805 PyThreadState* __tstate = wxPyBeginAllowThreads();
35806 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35807 wxPyEndAllowThreads(__tstate);
35808 if (PyErr_Occurred()) SWIG_fail;
35809 }
35810 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35811 return resultobj;
35812fail:
35813 return NULL;
35814}
35815
35816
35817SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35818 PyObject *resultobj = 0;
35819 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35820 wxTreeItemId *arg2 = 0 ;
35821 wxTreeItemId result;
35822 void *argp1 = 0 ;
35823 int res1 = 0 ;
35824 void *argp2 = 0 ;
35825 int res2 = 0 ;
35826 PyObject * obj0 = 0 ;
35827 PyObject * obj1 = 0 ;
35828 char * kwnames[] = {
35829 (char *) "self",(char *) "item", NULL
35830 };
35831
35832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35834 if (!SWIG_IsOK(res1)) {
35835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35836 }
35837 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35839 if (!SWIG_IsOK(res2)) {
35840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35841 }
35842 if (!argp2) {
35843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35844 }
35845 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35846 {
35847 PyThreadState* __tstate = wxPyBeginAllowThreads();
35848 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35849 wxPyEndAllowThreads(__tstate);
35850 if (PyErr_Occurred()) SWIG_fail;
35851 }
35852 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35853 return resultobj;
35854fail:
35855 return NULL;
35856}
35857
35858
35859SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35860 PyObject *resultobj = 0;
35861 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35862 wxTreeItemId *arg2 = 0 ;
35863 wxTreeItemId result;
35864 void *argp1 = 0 ;
35865 int res1 = 0 ;
35866 void *argp2 = 0 ;
35867 int res2 = 0 ;
35868 PyObject * obj0 = 0 ;
35869 PyObject * obj1 = 0 ;
35870 char * kwnames[] = {
35871 (char *) "self",(char *) "item", NULL
35872 };
35873
35874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35876 if (!SWIG_IsOK(res1)) {
35877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35878 }
35879 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35881 if (!SWIG_IsOK(res2)) {
35882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35883 }
35884 if (!argp2) {
35885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35886 }
35887 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35888 {
35889 PyThreadState* __tstate = wxPyBeginAllowThreads();
35890 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35891 wxPyEndAllowThreads(__tstate);
35892 if (PyErr_Occurred()) SWIG_fail;
35893 }
35894 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35895 return resultobj;
35896fail:
35897 return NULL;
d55e5bfc
RD
35898}
35899
35900
1bd55598
RD
35901SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35902 PyObject *resultobj = 0;
35903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35904 wxTreeItemId result;
35905 void *argp1 = 0 ;
35906 int res1 = 0 ;
35907 PyObject *swig_obj[1] ;
35908
35909 if (!args) SWIG_fail;
35910 swig_obj[0] = args;
35911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35912 if (!SWIG_IsOK(res1)) {
35913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35914 }
35915 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35916 {
35917 PyThreadState* __tstate = wxPyBeginAllowThreads();
35918 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35919 wxPyEndAllowThreads(__tstate);
35920 if (PyErr_Occurred()) SWIG_fail;
35921 }
35922 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35923 return resultobj;
35924fail:
35925 return NULL;
35926}
35927
35928
35929SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35930 PyObject *resultobj = 0;
35931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35932 wxTreeItemId *arg2 = 0 ;
35933 wxTreeItemId result;
35934 void *argp1 = 0 ;
35935 int res1 = 0 ;
35936 void *argp2 = 0 ;
35937 int res2 = 0 ;
35938 PyObject * obj0 = 0 ;
35939 PyObject * obj1 = 0 ;
35940 char * kwnames[] = {
35941 (char *) "self",(char *) "item", NULL
35942 };
35943
35944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35946 if (!SWIG_IsOK(res1)) {
35947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35948 }
35949 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35951 if (!SWIG_IsOK(res2)) {
35952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35953 }
35954 if (!argp2) {
35955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35956 }
35957 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35958 {
35959 PyThreadState* __tstate = wxPyBeginAllowThreads();
35960 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35961 wxPyEndAllowThreads(__tstate);
35962 if (PyErr_Occurred()) SWIG_fail;
35963 }
35964 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35965 return resultobj;
35966fail:
35967 return NULL;
35968}
35969
35970
35971SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35972 PyObject *resultobj = 0;
35973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35974 wxTreeItemId *arg2 = 0 ;
35975 wxTreeItemId result;
35976 void *argp1 = 0 ;
35977 int res1 = 0 ;
35978 void *argp2 = 0 ;
35979 int res2 = 0 ;
35980 PyObject * obj0 = 0 ;
35981 PyObject * obj1 = 0 ;
35982 char * kwnames[] = {
35983 (char *) "self",(char *) "item", NULL
35984 };
35985
35986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35988 if (!SWIG_IsOK(res1)) {
35989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35990 }
35991 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35993 if (!SWIG_IsOK(res2)) {
35994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35995 }
35996 if (!argp2) {
35997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35998 }
35999 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36000 {
36001 PyThreadState* __tstate = wxPyBeginAllowThreads();
36002 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36003 wxPyEndAllowThreads(__tstate);
36004 if (PyErr_Occurred()) SWIG_fail;
36005 }
36006 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36007 return resultobj;
36008fail:
36009 return NULL;
36010}
36011
36012
36013SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36014 PyObject *resultobj = 0;
36015 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36016 wxString *arg2 = 0 ;
36017 int arg3 = (int) -1 ;
36018 int arg4 = (int) -1 ;
36019 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36020 wxTreeItemId result;
36021 void *argp1 = 0 ;
36022 int res1 = 0 ;
36023 bool temp2 = false ;
36024 int val3 ;
36025 int ecode3 = 0 ;
36026 int val4 ;
36027 int ecode4 = 0 ;
36028 int res5 = 0 ;
36029 PyObject * obj0 = 0 ;
36030 PyObject * obj1 = 0 ;
36031 PyObject * obj2 = 0 ;
36032 PyObject * obj3 = 0 ;
36033 PyObject * obj4 = 0 ;
36034 char * kwnames[] = {
36035 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36036 };
36037
36038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36040 if (!SWIG_IsOK(res1)) {
36041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36042 }
36043 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36044 {
36045 arg2 = wxString_in_helper(obj1);
36046 if (arg2 == NULL) SWIG_fail;
36047 temp2 = true;
36048 }
36049 if (obj2) {
36050 ecode3 = SWIG_AsVal_int(obj2, &val3);
36051 if (!SWIG_IsOK(ecode3)) {
36052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36053 }
36054 arg3 = static_cast< int >(val3);
36055 }
36056 if (obj3) {
36057 ecode4 = SWIG_AsVal_int(obj3, &val4);
36058 if (!SWIG_IsOK(ecode4)) {
36059 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36060 }
36061 arg4 = static_cast< int >(val4);
36062 }
36063 if (obj4) {
36064 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36065 if (!SWIG_IsOK(res5)) {
36066 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 36067 }
1bd55598
RD
36068 }
36069 {
36070 PyThreadState* __tstate = wxPyBeginAllowThreads();
36071 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36072 wxPyEndAllowThreads(__tstate);
36073 if (PyErr_Occurred()) SWIG_fail;
36074 }
36075 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36076 {
36077 if (temp2)
36078 delete arg2;
36079 }
36080 return resultobj;
36081fail:
36082 {
36083 if (temp2)
36084 delete arg2;
36085 }
36086 return NULL;
36087}
36088
36089
36090SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36091 PyObject *resultobj = 0;
36092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36093 wxTreeItemId *arg2 = 0 ;
36094 wxString *arg3 = 0 ;
36095 int arg4 = (int) -1 ;
36096 int arg5 = (int) -1 ;
36097 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36098 wxTreeItemId result;
36099 void *argp1 = 0 ;
36100 int res1 = 0 ;
36101 void *argp2 = 0 ;
36102 int res2 = 0 ;
36103 bool temp3 = false ;
36104 int val4 ;
36105 int ecode4 = 0 ;
36106 int val5 ;
36107 int ecode5 = 0 ;
36108 int res6 = 0 ;
36109 PyObject * obj0 = 0 ;
36110 PyObject * obj1 = 0 ;
36111 PyObject * obj2 = 0 ;
36112 PyObject * obj3 = 0 ;
36113 PyObject * obj4 = 0 ;
36114 PyObject * obj5 = 0 ;
36115 char * kwnames[] = {
36116 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36117 };
36118
36119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36121 if (!SWIG_IsOK(res1)) {
36122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36126 if (!SWIG_IsOK(res2)) {
36127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36128 }
36129 if (!argp2) {
36130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36131 }
36132 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36133 {
36134 arg3 = wxString_in_helper(obj2);
36135 if (arg3 == NULL) SWIG_fail;
36136 temp3 = true;
36137 }
36138 if (obj3) {
36139 ecode4 = SWIG_AsVal_int(obj3, &val4);
36140 if (!SWIG_IsOK(ecode4)) {
36141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36142 }
36143 arg4 = static_cast< int >(val4);
36144 }
36145 if (obj4) {
36146 ecode5 = SWIG_AsVal_int(obj4, &val5);
36147 if (!SWIG_IsOK(ecode5)) {
36148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36149 }
36150 arg5 = static_cast< int >(val5);
36151 }
36152 if (obj5) {
36153 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36154 if (!SWIG_IsOK(res6)) {
36155 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36156 }
1bd55598
RD
36157 }
36158 {
36159 PyThreadState* __tstate = wxPyBeginAllowThreads();
36160 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36161 wxPyEndAllowThreads(__tstate);
36162 if (PyErr_Occurred()) SWIG_fail;
36163 }
36164 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36165 {
36166 if (temp3)
36167 delete arg3;
36168 }
36169 return resultobj;
36170fail:
36171 {
36172 if (temp3)
36173 delete arg3;
36174 }
36175 return NULL;
36176}
36177
36178
36179SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36180 PyObject *resultobj = 0;
36181 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36182 wxTreeItemId *arg2 = 0 ;
36183 wxTreeItemId *arg3 = 0 ;
36184 wxString *arg4 = 0 ;
36185 int arg5 = (int) -1 ;
36186 int arg6 = (int) -1 ;
36187 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36188 wxTreeItemId result;
36189 void *argp1 = 0 ;
36190 int res1 = 0 ;
36191 void *argp2 = 0 ;
36192 int res2 = 0 ;
36193 void *argp3 = 0 ;
36194 int res3 = 0 ;
36195 bool temp4 = false ;
36196 int val5 ;
36197 int ecode5 = 0 ;
36198 int val6 ;
36199 int ecode6 = 0 ;
36200 int res7 = 0 ;
36201 PyObject * obj0 = 0 ;
36202 PyObject * obj1 = 0 ;
36203 PyObject * obj2 = 0 ;
36204 PyObject * obj3 = 0 ;
36205 PyObject * obj4 = 0 ;
36206 PyObject * obj5 = 0 ;
36207 PyObject * obj6 = 0 ;
36208 char * kwnames[] = {
36209 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36210 };
36211
36212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36214 if (!SWIG_IsOK(res1)) {
36215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36216 }
36217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36219 if (!SWIG_IsOK(res2)) {
36220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36221 }
36222 if (!argp2) {
36223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36224 }
36225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36226 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36227 if (!SWIG_IsOK(res3)) {
36228 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36229 }
36230 if (!argp3) {
36231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36232 }
36233 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36234 {
36235 arg4 = wxString_in_helper(obj3);
36236 if (arg4 == NULL) SWIG_fail;
36237 temp4 = true;
36238 }
36239 if (obj4) {
36240 ecode5 = SWIG_AsVal_int(obj4, &val5);
36241 if (!SWIG_IsOK(ecode5)) {
36242 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36243 }
36244 arg5 = static_cast< int >(val5);
36245 }
36246 if (obj5) {
36247 ecode6 = SWIG_AsVal_int(obj5, &val6);
36248 if (!SWIG_IsOK(ecode6)) {
36249 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36250 }
36251 arg6 = static_cast< int >(val6);
36252 }
36253 if (obj6) {
36254 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36255 if (!SWIG_IsOK(res7)) {
36256 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36257 }
1bd55598
RD
36258 }
36259 {
36260 PyThreadState* __tstate = wxPyBeginAllowThreads();
36261 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36262 wxPyEndAllowThreads(__tstate);
36263 if (PyErr_Occurred()) SWIG_fail;
36264 }
36265 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36266 {
36267 if (temp4)
36268 delete arg4;
36269 }
36270 return resultobj;
36271fail:
36272 {
36273 if (temp4)
36274 delete arg4;
36275 }
36276 return NULL;
36277}
36278
36279
36280SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36281 PyObject *resultobj = 0;
36282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36283 wxTreeItemId *arg2 = 0 ;
36284 size_t arg3 ;
36285 wxString *arg4 = 0 ;
36286 int arg5 = (int) -1 ;
36287 int arg6 = (int) -1 ;
36288 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36289 wxTreeItemId result;
36290 void *argp1 = 0 ;
36291 int res1 = 0 ;
36292 void *argp2 = 0 ;
36293 int res2 = 0 ;
36294 size_t val3 ;
36295 int ecode3 = 0 ;
36296 bool temp4 = false ;
36297 int val5 ;
36298 int ecode5 = 0 ;
36299 int val6 ;
36300 int ecode6 = 0 ;
36301 int res7 = 0 ;
36302 PyObject * obj0 = 0 ;
36303 PyObject * obj1 = 0 ;
36304 PyObject * obj2 = 0 ;
36305 PyObject * obj3 = 0 ;
36306 PyObject * obj4 = 0 ;
36307 PyObject * obj5 = 0 ;
36308 PyObject * obj6 = 0 ;
36309 char * kwnames[] = {
36310 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36311 };
36312
36313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36315 if (!SWIG_IsOK(res1)) {
36316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36317 }
36318 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36320 if (!SWIG_IsOK(res2)) {
36321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36322 }
36323 if (!argp2) {
36324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36325 }
36326 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36327 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36328 if (!SWIG_IsOK(ecode3)) {
36329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36330 }
36331 arg3 = static_cast< size_t >(val3);
36332 {
36333 arg4 = wxString_in_helper(obj3);
36334 if (arg4 == NULL) SWIG_fail;
36335 temp4 = true;
36336 }
36337 if (obj4) {
36338 ecode5 = SWIG_AsVal_int(obj4, &val5);
36339 if (!SWIG_IsOK(ecode5)) {
36340 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36341 }
36342 arg5 = static_cast< int >(val5);
36343 }
36344 if (obj5) {
36345 ecode6 = SWIG_AsVal_int(obj5, &val6);
36346 if (!SWIG_IsOK(ecode6)) {
36347 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36348 }
36349 arg6 = static_cast< int >(val6);
36350 }
36351 if (obj6) {
36352 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36353 if (!SWIG_IsOK(res7)) {
36354 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36355 }
1bd55598
RD
36356 }
36357 {
36358 PyThreadState* __tstate = wxPyBeginAllowThreads();
36359 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36360 wxPyEndAllowThreads(__tstate);
36361 if (PyErr_Occurred()) SWIG_fail;
36362 }
36363 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36364 {
36365 if (temp4)
36366 delete arg4;
36367 }
36368 return resultobj;
36369fail:
36370 {
36371 if (temp4)
36372 delete arg4;
36373 }
36374 return NULL;
36375}
36376
36377
36378SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36379 PyObject *resultobj = 0;
36380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36381 wxTreeItemId *arg2 = 0 ;
36382 wxString *arg3 = 0 ;
36383 int arg4 = (int) -1 ;
36384 int arg5 = (int) -1 ;
36385 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36386 wxTreeItemId result;
36387 void *argp1 = 0 ;
36388 int res1 = 0 ;
36389 void *argp2 = 0 ;
36390 int res2 = 0 ;
36391 bool temp3 = false ;
36392 int val4 ;
36393 int ecode4 = 0 ;
36394 int val5 ;
36395 int ecode5 = 0 ;
36396 int res6 = 0 ;
36397 PyObject * obj0 = 0 ;
36398 PyObject * obj1 = 0 ;
36399 PyObject * obj2 = 0 ;
36400 PyObject * obj3 = 0 ;
36401 PyObject * obj4 = 0 ;
36402 PyObject * obj5 = 0 ;
36403 char * kwnames[] = {
36404 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36405 };
36406
36407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36409 if (!SWIG_IsOK(res1)) {
36410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36411 }
36412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36414 if (!SWIG_IsOK(res2)) {
36415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36416 }
36417 if (!argp2) {
36418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36419 }
36420 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36421 {
36422 arg3 = wxString_in_helper(obj2);
36423 if (arg3 == NULL) SWIG_fail;
36424 temp3 = true;
36425 }
36426 if (obj3) {
36427 ecode4 = SWIG_AsVal_int(obj3, &val4);
36428 if (!SWIG_IsOK(ecode4)) {
36429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36430 }
36431 arg4 = static_cast< int >(val4);
36432 }
36433 if (obj4) {
36434 ecode5 = SWIG_AsVal_int(obj4, &val5);
36435 if (!SWIG_IsOK(ecode5)) {
36436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36437 }
36438 arg5 = static_cast< int >(val5);
36439 }
36440 if (obj5) {
36441 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36442 if (!SWIG_IsOK(res6)) {
36443 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36444 }
1bd55598
RD
36445 }
36446 {
36447 PyThreadState* __tstate = wxPyBeginAllowThreads();
36448 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36449 wxPyEndAllowThreads(__tstate);
36450 if (PyErr_Occurred()) SWIG_fail;
36451 }
36452 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36453 {
36454 if (temp3)
36455 delete arg3;
36456 }
36457 return resultobj;
36458fail:
36459 {
36460 if (temp3)
36461 delete arg3;
36462 }
36463 return NULL;
36464}
36465
36466
36467SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36468 PyObject *resultobj = 0;
36469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36470 wxTreeItemId *arg2 = 0 ;
36471 void *argp1 = 0 ;
36472 int res1 = 0 ;
36473 void *argp2 = 0 ;
36474 int res2 = 0 ;
36475 PyObject * obj0 = 0 ;
36476 PyObject * obj1 = 0 ;
36477 char * kwnames[] = {
36478 (char *) "self",(char *) "item", NULL
36479 };
36480
36481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36483 if (!SWIG_IsOK(res1)) {
36484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36485 }
36486 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36488 if (!SWIG_IsOK(res2)) {
36489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36490 }
36491 if (!argp2) {
36492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36493 }
36494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36495 {
36496 PyThreadState* __tstate = wxPyBeginAllowThreads();
36497 (arg1)->Delete((wxTreeItemId const &)*arg2);
36498 wxPyEndAllowThreads(__tstate);
36499 if (PyErr_Occurred()) SWIG_fail;
36500 }
36501 resultobj = SWIG_Py_Void();
36502 return resultobj;
36503fail:
36504 return NULL;
36505}
36506
36507
36508SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36509 PyObject *resultobj = 0;
36510 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36511 wxTreeItemId *arg2 = 0 ;
36512 void *argp1 = 0 ;
36513 int res1 = 0 ;
36514 void *argp2 = 0 ;
36515 int res2 = 0 ;
36516 PyObject * obj0 = 0 ;
36517 PyObject * obj1 = 0 ;
36518 char * kwnames[] = {
36519 (char *) "self",(char *) "item", NULL
36520 };
36521
36522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36524 if (!SWIG_IsOK(res1)) {
36525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36526 }
36527 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36528 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36529 if (!SWIG_IsOK(res2)) {
36530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36531 }
36532 if (!argp2) {
36533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36534 }
36535 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36536 {
36537 PyThreadState* __tstate = wxPyBeginAllowThreads();
36538 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36539 wxPyEndAllowThreads(__tstate);
36540 if (PyErr_Occurred()) SWIG_fail;
36541 }
36542 resultobj = SWIG_Py_Void();
36543 return resultobj;
36544fail:
36545 return NULL;
d55e5bfc
RD
36546}
36547
36548
1bd55598
RD
36549SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36550 PyObject *resultobj = 0;
36551 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36552 void *argp1 = 0 ;
36553 int res1 = 0 ;
36554 PyObject *swig_obj[1] ;
36555
36556 if (!args) SWIG_fail;
36557 swig_obj[0] = args;
36558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36559 if (!SWIG_IsOK(res1)) {
36560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36561 }
36562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36563 {
36564 PyThreadState* __tstate = wxPyBeginAllowThreads();
36565 (arg1)->DeleteAllItems();
36566 wxPyEndAllowThreads(__tstate);
36567 if (PyErr_Occurred()) SWIG_fail;
36568 }
36569 resultobj = SWIG_Py_Void();
36570 return resultobj;
36571fail:
36572 return NULL;
36573}
36574
36575
36576SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36577 PyObject *resultobj = 0;
36578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36579 wxTreeItemId *arg2 = 0 ;
36580 void *argp1 = 0 ;
36581 int res1 = 0 ;
36582 void *argp2 = 0 ;
36583 int res2 = 0 ;
36584 PyObject * obj0 = 0 ;
36585 PyObject * obj1 = 0 ;
36586 char * kwnames[] = {
36587 (char *) "self",(char *) "item", NULL
36588 };
36589
36590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36594 }
36595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36597 if (!SWIG_IsOK(res2)) {
36598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36599 }
36600 if (!argp2) {
36601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36602 }
36603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36604 {
36605 PyThreadState* __tstate = wxPyBeginAllowThreads();
36606 (arg1)->Expand((wxTreeItemId const &)*arg2);
36607 wxPyEndAllowThreads(__tstate);
36608 if (PyErr_Occurred()) SWIG_fail;
36609 }
36610 resultobj = SWIG_Py_Void();
36611 return resultobj;
36612fail:
36613 return NULL;
36614}
36615
36616
3d6c9062
RD
36617SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36618 PyObject *resultobj = 0;
36619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36620 wxTreeItemId *arg2 = 0 ;
36621 void *argp1 = 0 ;
36622 int res1 = 0 ;
36623 void *argp2 = 0 ;
36624 int res2 = 0 ;
36625 PyObject * obj0 = 0 ;
36626 PyObject * obj1 = 0 ;
36627 char * kwnames[] = {
36628 (char *) "self",(char *) "item", NULL
36629 };
36630
36631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36633 if (!SWIG_IsOK(res1)) {
36634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36635 }
36636 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36638 if (!SWIG_IsOK(res2)) {
36639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36640 }
36641 if (!argp2) {
36642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36643 }
36644 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36645 {
36646 PyThreadState* __tstate = wxPyBeginAllowThreads();
36647 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36648 wxPyEndAllowThreads(__tstate);
36649 if (PyErr_Occurred()) SWIG_fail;
36650 }
36651 resultobj = SWIG_Py_Void();
36652 return resultobj;
36653fail:
36654 return NULL;
36655}
36656
36657
36658SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36659 PyObject *resultobj = 0;
36660 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36661 void *argp1 = 0 ;
36662 int res1 = 0 ;
36663 PyObject *swig_obj[1] ;
36664
36665 if (!args) SWIG_fail;
36666 swig_obj[0] = args;
36667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36668 if (!SWIG_IsOK(res1)) {
36669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36670 }
36671 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36672 {
36673 PyThreadState* __tstate = wxPyBeginAllowThreads();
36674 (arg1)->ExpandAll();
36675 wxPyEndAllowThreads(__tstate);
36676 if (PyErr_Occurred()) SWIG_fail;
36677 }
36678 resultobj = SWIG_Py_Void();
36679 return resultobj;
36680fail:
36681 return NULL;
36682}
36683
36684
1bd55598
RD
36685SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36686 PyObject *resultobj = 0;
36687 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36688 wxTreeItemId *arg2 = 0 ;
36689 void *argp1 = 0 ;
36690 int res1 = 0 ;
36691 void *argp2 = 0 ;
36692 int res2 = 0 ;
36693 PyObject * obj0 = 0 ;
36694 PyObject * obj1 = 0 ;
36695 char * kwnames[] = {
36696 (char *) "self",(char *) "item", NULL
36697 };
36698
36699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36701 if (!SWIG_IsOK(res1)) {
36702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36703 }
36704 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36706 if (!SWIG_IsOK(res2)) {
36707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36708 }
36709 if (!argp2) {
36710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36711 }
36712 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36713 {
36714 PyThreadState* __tstate = wxPyBeginAllowThreads();
36715 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36716 wxPyEndAllowThreads(__tstate);
36717 if (PyErr_Occurred()) SWIG_fail;
36718 }
36719 resultobj = SWIG_Py_Void();
36720 return resultobj;
36721fail:
36722 return NULL;
36723}
36724
36725
36726SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36727 PyObject *resultobj = 0;
36728 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36729 wxTreeItemId *arg2 = 0 ;
36730 void *argp1 = 0 ;
36731 int res1 = 0 ;
36732 void *argp2 = 0 ;
36733 int res2 = 0 ;
36734 PyObject * obj0 = 0 ;
36735 PyObject * obj1 = 0 ;
36736 char * kwnames[] = {
36737 (char *) "self",(char *) "item", NULL
36738 };
36739
36740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36742 if (!SWIG_IsOK(res1)) {
36743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36744 }
36745 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36747 if (!SWIG_IsOK(res2)) {
36748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36749 }
36750 if (!argp2) {
36751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36752 }
36753 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36754 {
36755 PyThreadState* __tstate = wxPyBeginAllowThreads();
36756 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36757 wxPyEndAllowThreads(__tstate);
36758 if (PyErr_Occurred()) SWIG_fail;
36759 }
36760 resultobj = SWIG_Py_Void();
36761 return resultobj;
36762fail:
36763 return NULL;
36764}
36765
36766
36767SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36768 PyObject *resultobj = 0;
36769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36770 wxTreeItemId *arg2 = 0 ;
36771 void *argp1 = 0 ;
36772 int res1 = 0 ;
36773 void *argp2 = 0 ;
36774 int res2 = 0 ;
36775 PyObject * obj0 = 0 ;
36776 PyObject * obj1 = 0 ;
36777 char * kwnames[] = {
36778 (char *) "self",(char *) "item", NULL
36779 };
36780
36781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36783 if (!SWIG_IsOK(res1)) {
36784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36785 }
36786 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36788 if (!SWIG_IsOK(res2)) {
36789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36790 }
36791 if (!argp2) {
36792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36793 }
36794 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36795 {
36796 PyThreadState* __tstate = wxPyBeginAllowThreads();
36797 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36798 wxPyEndAllowThreads(__tstate);
36799 if (PyErr_Occurred()) SWIG_fail;
36800 }
36801 resultobj = SWIG_Py_Void();
36802 return resultobj;
36803fail:
36804 return NULL;
d55e5bfc
RD
36805}
36806
36807
1bd55598
RD
36808SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36809 PyObject *resultobj = 0;
36810 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36811 void *argp1 = 0 ;
36812 int res1 = 0 ;
36813 PyObject *swig_obj[1] ;
36814
36815 if (!args) SWIG_fail;
36816 swig_obj[0] = args;
36817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36818 if (!SWIG_IsOK(res1)) {
36819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36820 }
36821 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36822 {
36823 PyThreadState* __tstate = wxPyBeginAllowThreads();
36824 (arg1)->Unselect();
36825 wxPyEndAllowThreads(__tstate);
36826 if (PyErr_Occurred()) SWIG_fail;
36827 }
36828 resultobj = SWIG_Py_Void();
36829 return resultobj;
36830fail:
36831 return NULL;
36832}
36833
36834
36835SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36836 PyObject *resultobj = 0;
36837 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36838 wxTreeItemId *arg2 = 0 ;
36839 void *argp1 = 0 ;
36840 int res1 = 0 ;
36841 void *argp2 = 0 ;
36842 int res2 = 0 ;
36843 PyObject * obj0 = 0 ;
36844 PyObject * obj1 = 0 ;
36845 char * kwnames[] = {
36846 (char *) "self",(char *) "item", NULL
36847 };
36848
36849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36851 if (!SWIG_IsOK(res1)) {
36852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36853 }
36854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36856 if (!SWIG_IsOK(res2)) {
36857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36858 }
36859 if (!argp2) {
36860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36861 }
36862 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36863 {
36864 PyThreadState* __tstate = wxPyBeginAllowThreads();
36865 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36866 wxPyEndAllowThreads(__tstate);
36867 if (PyErr_Occurred()) SWIG_fail;
36868 }
36869 resultobj = SWIG_Py_Void();
36870 return resultobj;
36871fail:
36872 return NULL;
d55e5bfc
RD
36873}
36874
36875
1bd55598
RD
36876SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36877 PyObject *resultobj = 0;
36878 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36879 void *argp1 = 0 ;
36880 int res1 = 0 ;
36881 PyObject *swig_obj[1] ;
36882
36883 if (!args) SWIG_fail;
36884 swig_obj[0] = args;
36885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36886 if (!SWIG_IsOK(res1)) {
36887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36888 }
36889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36890 {
36891 PyThreadState* __tstate = wxPyBeginAllowThreads();
36892 (arg1)->UnselectAll();
36893 wxPyEndAllowThreads(__tstate);
36894 if (PyErr_Occurred()) SWIG_fail;
36895 }
36896 resultobj = SWIG_Py_Void();
36897 return resultobj;
36898fail:
36899 return NULL;
36900}
36901
36902
36903SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36904 PyObject *resultobj = 0;
36905 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36906 wxTreeItemId *arg2 = 0 ;
36907 bool arg3 = (bool) true ;
36908 void *argp1 = 0 ;
36909 int res1 = 0 ;
36910 void *argp2 = 0 ;
36911 int res2 = 0 ;
36912 bool val3 ;
36913 int ecode3 = 0 ;
36914 PyObject * obj0 = 0 ;
36915 PyObject * obj1 = 0 ;
36916 PyObject * obj2 = 0 ;
36917 char * kwnames[] = {
36918 (char *) "self",(char *) "item",(char *) "select", NULL
36919 };
36920
36921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36923 if (!SWIG_IsOK(res1)) {
36924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36925 }
36926 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36928 if (!SWIG_IsOK(res2)) {
36929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36930 }
36931 if (!argp2) {
36932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36933 }
36934 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36935 if (obj2) {
36936 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36937 if (!SWIG_IsOK(ecode3)) {
36938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36939 }
36940 arg3 = static_cast< bool >(val3);
36941 }
36942 {
36943 PyThreadState* __tstate = wxPyBeginAllowThreads();
36944 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36945 wxPyEndAllowThreads(__tstate);
36946 if (PyErr_Occurred()) SWIG_fail;
36947 }
36948 resultobj = SWIG_Py_Void();
36949 return resultobj;
36950fail:
36951 return NULL;
36952}
36953
36954
36955SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36956 PyObject *resultobj = 0;
36957 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36958 wxTreeItemId *arg2 = 0 ;
36959 void *argp1 = 0 ;
36960 int res1 = 0 ;
36961 void *argp2 = 0 ;
36962 int res2 = 0 ;
36963 PyObject * obj0 = 0 ;
36964 PyObject * obj1 = 0 ;
36965 char * kwnames[] = {
36966 (char *) "self",(char *) "item", NULL
36967 };
36968
36969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36971 if (!SWIG_IsOK(res1)) {
36972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36973 }
36974 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36976 if (!SWIG_IsOK(res2)) {
36977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36978 }
36979 if (!argp2) {
36980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36981 }
36982 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36983 {
36984 PyThreadState* __tstate = wxPyBeginAllowThreads();
36985 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36986 wxPyEndAllowThreads(__tstate);
36987 if (PyErr_Occurred()) SWIG_fail;
36988 }
36989 resultobj = SWIG_Py_Void();
36990 return resultobj;
36991fail:
36992 return NULL;
36993}
36994
36995
36996SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36997 PyObject *resultobj = 0;
36998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36999 wxTreeItemId *arg2 = 0 ;
37000 void *argp1 = 0 ;
37001 int res1 = 0 ;
37002 void *argp2 = 0 ;
37003 int res2 = 0 ;
37004 PyObject * obj0 = 0 ;
37005 PyObject * obj1 = 0 ;
37006 char * kwnames[] = {
37007 (char *) "self",(char *) "item", NULL
37008 };
37009
37010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37012 if (!SWIG_IsOK(res1)) {
37013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37014 }
37015 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37017 if (!SWIG_IsOK(res2)) {
37018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37019 }
37020 if (!argp2) {
37021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37022 }
37023 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37024 {
37025 PyThreadState* __tstate = wxPyBeginAllowThreads();
37026 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37027 wxPyEndAllowThreads(__tstate);
37028 if (PyErr_Occurred()) SWIG_fail;
37029 }
37030 resultobj = SWIG_Py_Void();
37031 return resultobj;
37032fail:
37033 return NULL;
37034}
37035
37036
37037SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37038 PyObject *resultobj = 0;
37039 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37040 wxTreeItemId *arg2 = 0 ;
37041 void *argp1 = 0 ;
37042 int res1 = 0 ;
37043 void *argp2 = 0 ;
37044 int res2 = 0 ;
37045 PyObject * obj0 = 0 ;
37046 PyObject * obj1 = 0 ;
37047 char * kwnames[] = {
37048 (char *) "self",(char *) "item", NULL
37049 };
37050
37051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37053 if (!SWIG_IsOK(res1)) {
37054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37055 }
37056 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37057 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37058 if (!SWIG_IsOK(res2)) {
37059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37060 }
37061 if (!argp2) {
37062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37063 }
37064 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37065 {
37066 PyThreadState* __tstate = wxPyBeginAllowThreads();
37067 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37068 wxPyEndAllowThreads(__tstate);
37069 if (PyErr_Occurred()) SWIG_fail;
37070 }
37071 resultobj = SWIG_Py_Void();
37072 return resultobj;
37073fail:
37074 return NULL;
37075}
37076
37077
37078SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37079 PyObject *resultobj = 0;
37080 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37081 wxTreeItemId *arg2 = 0 ;
37082 void *argp1 = 0 ;
37083 int res1 = 0 ;
37084 void *argp2 = 0 ;
37085 int res2 = 0 ;
37086 PyObject * obj0 = 0 ;
37087 PyObject * obj1 = 0 ;
37088 char * kwnames[] = {
37089 (char *) "self",(char *) "item", NULL
37090 };
37091
37092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37094 if (!SWIG_IsOK(res1)) {
37095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37096 }
37097 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37099 if (!SWIG_IsOK(res2)) {
37100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37101 }
37102 if (!argp2) {
37103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37104 }
37105 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37106 {
37107 PyThreadState* __tstate = wxPyBeginAllowThreads();
37108 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37109 wxPyEndAllowThreads(__tstate);
37110 if (PyErr_Occurred()) SWIG_fail;
37111 }
37112 resultobj = SWIG_Py_Void();
37113 return resultobj;
37114fail:
37115 return NULL;
d55e5bfc
RD
37116}
37117
37118
1bd55598
RD
37119SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37120 PyObject *resultobj = 0;
37121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37122 wxTextCtrl *result = 0 ;
37123 void *argp1 = 0 ;
37124 int res1 = 0 ;
37125 PyObject *swig_obj[1] ;
37126
37127 if (!args) SWIG_fail;
37128 swig_obj[0] = args;
37129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37130 if (!SWIG_IsOK(res1)) {
37131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37132 }
37133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37134 {
37135 PyThreadState* __tstate = wxPyBeginAllowThreads();
37136 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37137 wxPyEndAllowThreads(__tstate);
37138 if (PyErr_Occurred()) SWIG_fail;
37139 }
37140 {
37141 resultobj = wxPyMake_wxObject(result, 0);
37142 }
37143 return resultobj;
37144fail:
37145 return NULL;
37146}
37147
37148
37149SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37150 PyObject *resultobj = 0;
37151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37152 wxTreeItemId *arg2 = 0 ;
37153 void *argp1 = 0 ;
37154 int res1 = 0 ;
37155 void *argp2 = 0 ;
37156 int res2 = 0 ;
37157 PyObject * obj0 = 0 ;
37158 PyObject * obj1 = 0 ;
37159 char * kwnames[] = {
37160 (char *) "self",(char *) "item", NULL
37161 };
37162
37163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37165 if (!SWIG_IsOK(res1)) {
37166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37167 }
37168 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37170 if (!SWIG_IsOK(res2)) {
37171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37172 }
37173 if (!argp2) {
37174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37175 }
37176 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37177 {
37178 PyThreadState* __tstate = wxPyBeginAllowThreads();
37179 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37180 wxPyEndAllowThreads(__tstate);
37181 if (PyErr_Occurred()) SWIG_fail;
37182 }
37183 resultobj = SWIG_Py_Void();
37184 return resultobj;
37185fail:
37186 return NULL;
37187}
37188
37189
37190SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37191 PyObject *resultobj = 0;
37192 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37193 wxPoint *arg2 = 0 ;
37194 int *arg3 = 0 ;
37195 wxTreeItemId result;
37196 void *argp1 = 0 ;
37197 int res1 = 0 ;
37198 wxPoint temp2 ;
37199 int temp3 ;
37200 int res3 = SWIG_TMPOBJ ;
37201 PyObject * obj0 = 0 ;
37202 PyObject * obj1 = 0 ;
37203 char * kwnames[] = {
37204 (char *) "self",(char *) "point", NULL
37205 };
37206
37207 arg3 = &temp3;
37208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37210 if (!SWIG_IsOK(res1)) {
37211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37212 }
37213 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37214 {
37215 arg2 = &temp2;
37216 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37217 }
37218 {
37219 PyThreadState* __tstate = wxPyBeginAllowThreads();
37220 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37221 wxPyEndAllowThreads(__tstate);
37222 if (PyErr_Occurred()) SWIG_fail;
37223 }
37224 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37225 if (SWIG_IsTmpObj(res3)) {
37226 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37227 } else {
37228 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37230 }
37231 return resultobj;
37232fail:
37233 return NULL;
37234}
37235
37236
37237SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37238 PyObject *resultobj = 0;
37239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37240 wxTreeItemId *arg2 = 0 ;
37241 bool arg3 = (bool) false ;
37242 PyObject *result = 0 ;
37243 void *argp1 = 0 ;
37244 int res1 = 0 ;
37245 void *argp2 = 0 ;
37246 int res2 = 0 ;
37247 bool val3 ;
37248 int ecode3 = 0 ;
37249 PyObject * obj0 = 0 ;
37250 PyObject * obj1 = 0 ;
37251 PyObject * obj2 = 0 ;
37252 char * kwnames[] = {
37253 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37254 };
37255
37256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37258 if (!SWIG_IsOK(res1)) {
37259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37260 }
37261 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37263 if (!SWIG_IsOK(res2)) {
37264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37265 }
37266 if (!argp2) {
37267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37268 }
37269 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37270 if (obj2) {
37271 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37272 if (!SWIG_IsOK(ecode3)) {
37273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37274 }
37275 arg3 = static_cast< bool >(val3);
37276 }
37277 {
37278 PyThreadState* __tstate = wxPyBeginAllowThreads();
37279 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37280 wxPyEndAllowThreads(__tstate);
37281 if (PyErr_Occurred()) SWIG_fail;
37282 }
37283 resultobj = result;
37284 return resultobj;
37285fail:
37286 return NULL;
37287}
37288
37289
37290SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37291 PyObject *resultobj = 0;
37292 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37293 SwigValueWrapper<wxVisualAttributes > result;
37294 int val1 ;
37295 int ecode1 = 0 ;
37296 PyObject * obj0 = 0 ;
37297 char * kwnames[] = {
37298 (char *) "variant", NULL
37299 };
37300
37301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37302 if (obj0) {
37303 ecode1 = SWIG_AsVal_int(obj0, &val1);
37304 if (!SWIG_IsOK(ecode1)) {
37305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37306 }
37307 arg1 = static_cast< wxWindowVariant >(val1);
37308 }
37309 {
37310 if (!wxPyCheckForApp()) SWIG_fail;
37311 PyThreadState* __tstate = wxPyBeginAllowThreads();
37312 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37313 wxPyEndAllowThreads(__tstate);
37314 if (PyErr_Occurred()) SWIG_fail;
37315 }
37316 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37317 return resultobj;
37318fail:
37319 return NULL;
d55e5bfc
RD
37320}
37321
37322
2131d850
RD
37323SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37324 PyObject *resultobj = 0;
37325 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37326 bool arg2 ;
37327 void *argp1 = 0 ;
37328 int res1 = 0 ;
37329 bool val2 ;
37330 int ecode2 = 0 ;
37331 PyObject * obj0 = 0 ;
37332 PyObject * obj1 = 0 ;
37333 char * kwnames[] = {
37334 (char *) "self",(char *) "q", NULL
37335 };
37336
37337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37339 if (!SWIG_IsOK(res1)) {
37340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37341 }
37342 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37343 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37344 if (!SWIG_IsOK(ecode2)) {
37345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37346 }
37347 arg2 = static_cast< bool >(val2);
37348 {
37349 PyThreadState* __tstate = wxPyBeginAllowThreads();
37350 (arg1)->SetQuickBestSize(arg2);
37351 wxPyEndAllowThreads(__tstate);
37352 if (PyErr_Occurred()) SWIG_fail;
37353 }
37354 resultobj = SWIG_Py_Void();
37355 return resultobj;
37356fail:
37357 return NULL;
37358}
37359
37360
37361SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37362 PyObject *resultobj = 0;
37363 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37364 bool result;
37365 void *argp1 = 0 ;
37366 int res1 = 0 ;
37367 PyObject *swig_obj[1] ;
37368
37369 if (!args) SWIG_fail;
37370 swig_obj[0] = args;
37371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37372 if (!SWIG_IsOK(res1)) {
37373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37374 }
37375 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37376 {
37377 PyThreadState* __tstate = wxPyBeginAllowThreads();
37378 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37379 wxPyEndAllowThreads(__tstate);
37380 if (PyErr_Occurred()) SWIG_fail;
37381 }
37382 {
37383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37384 }
37385 return resultobj;
37386fail:
37387 return NULL;
37388}
37389
37390
1bd55598
RD
37391SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37392 PyObject *obj;
37393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37394 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37395 return SWIG_Py_Void();
d55e5bfc
RD
37396}
37397
1bd55598
RD
37398SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37399 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37400}
37401
1bd55598
RD
37402SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37403 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37404 return 1;
d55e5bfc
RD
37405}
37406
37407
1bd55598
RD
37408SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37409 PyObject *pyobj = 0;
37410
37411 {
37412#if wxUSE_UNICODE
37413 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37414#else
37415 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37416#endif
37417 }
37418 return pyobj;
37419}
37420
37421
37422SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37423 PyObject *resultobj = 0;
37424 wxWindow *arg1 = (wxWindow *) 0 ;
37425 int arg2 = (int) (int)-1 ;
37426 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37427 wxString *arg3 = (wxString *) &arg3_defvalue ;
37428 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37429 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37430 wxSize const &arg5_defvalue = wxDefaultSize ;
37431 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37432 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37433 wxString const &arg7_defvalue = wxPyEmptyString ;
37434 wxString *arg7 = (wxString *) &arg7_defvalue ;
37435 int arg8 = (int) 0 ;
37436 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37437 wxString *arg9 = (wxString *) &arg9_defvalue ;
37438 wxGenericDirCtrl *result = 0 ;
37439 void *argp1 = 0 ;
37440 int res1 = 0 ;
37441 int val2 ;
37442 int ecode2 = 0 ;
37443 bool temp3 = false ;
37444 wxPoint temp4 ;
37445 wxSize temp5 ;
37446 long val6 ;
37447 int ecode6 = 0 ;
37448 bool temp7 = false ;
37449 int val8 ;
37450 int ecode8 = 0 ;
37451 bool temp9 = false ;
37452 PyObject * obj0 = 0 ;
37453 PyObject * obj1 = 0 ;
37454 PyObject * obj2 = 0 ;
37455 PyObject * obj3 = 0 ;
37456 PyObject * obj4 = 0 ;
37457 PyObject * obj5 = 0 ;
37458 PyObject * obj6 = 0 ;
37459 PyObject * obj7 = 0 ;
37460 PyObject * obj8 = 0 ;
37461 char * kwnames[] = {
37462 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37463 };
37464
37465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37467 if (!SWIG_IsOK(res1)) {
37468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37469 }
37470 arg1 = reinterpret_cast< wxWindow * >(argp1);
37471 if (obj1) {
37472 ecode2 = SWIG_AsVal_int(obj1, &val2);
37473 if (!SWIG_IsOK(ecode2)) {
37474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37475 }
37476 arg2 = static_cast< int >(val2);
37477 }
37478 if (obj2) {
36ed4f51 37479 {
1bd55598
RD
37480 arg3 = wxString_in_helper(obj2);
37481 if (arg3 == NULL) SWIG_fail;
37482 temp3 = true;
36ed4f51 37483 }
1bd55598
RD
37484 }
37485 if (obj3) {
d55e5bfc 37486 {
1bd55598
RD
37487 arg4 = &temp4;
37488 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37489 }
1bd55598
RD
37490 }
37491 if (obj4) {
36ed4f51 37492 {
1bd55598
RD
37493 arg5 = &temp5;
37494 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37495 }
1bd55598
RD
37496 }
37497 if (obj5) {
37498 ecode6 = SWIG_AsVal_long(obj5, &val6);
37499 if (!SWIG_IsOK(ecode6)) {
37500 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37501 }
37502 arg6 = static_cast< long >(val6);
37503 }
37504 if (obj6) {
36ed4f51 37505 {
1bd55598
RD
37506 arg7 = wxString_in_helper(obj6);
37507 if (arg7 == NULL) SWIG_fail;
37508 temp7 = true;
36ed4f51 37509 }
1bd55598
RD
37510 }
37511 if (obj7) {
37512 ecode8 = SWIG_AsVal_int(obj7, &val8);
37513 if (!SWIG_IsOK(ecode8)) {
37514 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37515 }
37516 arg8 = static_cast< int >(val8);
37517 }
37518 if (obj8) {
d55e5bfc 37519 {
1bd55598
RD
37520 arg9 = wxString_in_helper(obj8);
37521 if (arg9 == NULL) SWIG_fail;
37522 temp9 = true;
d55e5bfc 37523 }
1bd55598
RD
37524 }
37525 {
37526 if (!wxPyCheckForApp()) SWIG_fail;
37527 PyThreadState* __tstate = wxPyBeginAllowThreads();
37528 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37529 wxPyEndAllowThreads(__tstate);
37530 if (PyErr_Occurred()) SWIG_fail;
37531 }
37532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37533 {
37534 if (temp3)
37535 delete arg3;
37536 }
37537 {
37538 if (temp7)
37539 delete arg7;
37540 }
37541 {
37542 if (temp9)
37543 delete arg9;
37544 }
37545 return resultobj;
37546fail:
37547 {
37548 if (temp3)
37549 delete arg3;
37550 }
37551 {
37552 if (temp7)
37553 delete arg7;
37554 }
37555 {
37556 if (temp9)
37557 delete arg9;
37558 }
37559 return NULL;
d55e5bfc
RD
37560}
37561
37562
1bd55598
RD
37563SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37564 PyObject *resultobj = 0;
37565 wxGenericDirCtrl *result = 0 ;
37566
37567 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37568 {
37569 if (!wxPyCheckForApp()) SWIG_fail;
37570 PyThreadState* __tstate = wxPyBeginAllowThreads();
37571 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37572 wxPyEndAllowThreads(__tstate);
37573 if (PyErr_Occurred()) SWIG_fail;
37574 }
37575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37576 return resultobj;
37577fail:
37578 return NULL;
37579}
37580
37581
37582SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37583 PyObject *resultobj = 0;
37584 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37585 wxWindow *arg2 = (wxWindow *) 0 ;
37586 int arg3 = (int) (int)-1 ;
37587 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37588 wxString *arg4 = (wxString *) &arg4_defvalue ;
37589 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37590 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37591 wxSize const &arg6_defvalue = wxDefaultSize ;
37592 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37593 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37594 wxString const &arg8_defvalue = wxPyEmptyString ;
37595 wxString *arg8 = (wxString *) &arg8_defvalue ;
37596 int arg9 = (int) 0 ;
37597 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37598 wxString *arg10 = (wxString *) &arg10_defvalue ;
37599 bool result;
37600 void *argp1 = 0 ;
37601 int res1 = 0 ;
37602 void *argp2 = 0 ;
37603 int res2 = 0 ;
37604 int val3 ;
37605 int ecode3 = 0 ;
37606 bool temp4 = false ;
37607 wxPoint temp5 ;
37608 wxSize temp6 ;
37609 long val7 ;
37610 int ecode7 = 0 ;
37611 bool temp8 = false ;
37612 int val9 ;
37613 int ecode9 = 0 ;
37614 bool temp10 = false ;
37615 PyObject * obj0 = 0 ;
37616 PyObject * obj1 = 0 ;
37617 PyObject * obj2 = 0 ;
37618 PyObject * obj3 = 0 ;
37619 PyObject * obj4 = 0 ;
37620 PyObject * obj5 = 0 ;
37621 PyObject * obj6 = 0 ;
37622 PyObject * obj7 = 0 ;
37623 PyObject * obj8 = 0 ;
37624 PyObject * obj9 = 0 ;
37625 char * kwnames[] = {
37626 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37627 };
37628
37629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37631 if (!SWIG_IsOK(res1)) {
37632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37633 }
37634 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37636 if (!SWIG_IsOK(res2)) {
37637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37638 }
37639 arg2 = reinterpret_cast< wxWindow * >(argp2);
37640 if (obj2) {
37641 ecode3 = SWIG_AsVal_int(obj2, &val3);
37642 if (!SWIG_IsOK(ecode3)) {
37643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37644 }
37645 arg3 = static_cast< int >(val3);
37646 }
37647 if (obj3) {
36ed4f51 37648 {
1bd55598
RD
37649 arg4 = wxString_in_helper(obj3);
37650 if (arg4 == NULL) SWIG_fail;
37651 temp4 = true;
36ed4f51 37652 }
1bd55598
RD
37653 }
37654 if (obj4) {
36ed4f51 37655 {
1bd55598
RD
37656 arg5 = &temp5;
37657 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37658 }
1bd55598
RD
37659 }
37660 if (obj5) {
d55e5bfc 37661 {
1bd55598
RD
37662 arg6 = &temp6;
37663 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37664 }
1bd55598
RD
37665 }
37666 if (obj6) {
37667 ecode7 = SWIG_AsVal_long(obj6, &val7);
37668 if (!SWIG_IsOK(ecode7)) {
37669 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37670 }
37671 arg7 = static_cast< long >(val7);
37672 }
37673 if (obj7) {
d55e5bfc 37674 {
1bd55598
RD
37675 arg8 = wxString_in_helper(obj7);
37676 if (arg8 == NULL) SWIG_fail;
37677 temp8 = true;
d55e5bfc 37678 }
1bd55598
RD
37679 }
37680 if (obj8) {
37681 ecode9 = SWIG_AsVal_int(obj8, &val9);
37682 if (!SWIG_IsOK(ecode9)) {
37683 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37684 }
37685 arg9 = static_cast< int >(val9);
37686 }
37687 if (obj9) {
36ed4f51 37688 {
1bd55598
RD
37689 arg10 = wxString_in_helper(obj9);
37690 if (arg10 == NULL) SWIG_fail;
37691 temp10 = true;
36ed4f51 37692 }
1bd55598
RD
37693 }
37694 {
37695 PyThreadState* __tstate = wxPyBeginAllowThreads();
37696 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37697 wxPyEndAllowThreads(__tstate);
37698 if (PyErr_Occurred()) SWIG_fail;
37699 }
37700 {
37701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37702 }
37703 {
37704 if (temp4)
37705 delete arg4;
37706 }
37707 {
37708 if (temp8)
37709 delete arg8;
37710 }
37711 {
37712 if (temp10)
37713 delete arg10;
37714 }
37715 return resultobj;
37716fail:
37717 {
37718 if (temp4)
37719 delete arg4;
37720 }
37721 {
37722 if (temp8)
37723 delete arg8;
37724 }
37725 {
37726 if (temp10)
37727 delete arg10;
37728 }
37729 return NULL;
37730}
37731
37732
37733SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37734 PyObject *resultobj = 0;
37735 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37736 wxString *arg2 = 0 ;
37737 bool result;
37738 void *argp1 = 0 ;
37739 int res1 = 0 ;
37740 bool temp2 = false ;
37741 PyObject * obj0 = 0 ;
37742 PyObject * obj1 = 0 ;
37743 char * kwnames[] = {
37744 (char *) "self",(char *) "path", NULL
37745 };
37746
37747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37749 if (!SWIG_IsOK(res1)) {
37750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37751 }
37752 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37753 {
37754 arg2 = wxString_in_helper(obj1);
37755 if (arg2 == NULL) SWIG_fail;
37756 temp2 = true;
37757 }
37758 {
37759 PyThreadState* __tstate = wxPyBeginAllowThreads();
37760 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37761 wxPyEndAllowThreads(__tstate);
37762 if (PyErr_Occurred()) SWIG_fail;
37763 }
37764 {
37765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37766 }
37767 {
37768 if (temp2)
37769 delete arg2;
37770 }
37771 return resultobj;
37772fail:
37773 {
37774 if (temp2)
37775 delete arg2;
37776 }
37777 return NULL;
d55e5bfc
RD
37778}
37779
37780
704eda0c
RD
37781SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37782 PyObject *resultobj = 0;
37783 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37784 wxString *arg2 = 0 ;
37785 bool result;
37786 void *argp1 = 0 ;
37787 int res1 = 0 ;
37788 bool temp2 = false ;
37789 PyObject * obj0 = 0 ;
37790 PyObject * obj1 = 0 ;
37791 char * kwnames[] = {
37792 (char *) "self",(char *) "path", NULL
37793 };
37794
37795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37797 if (!SWIG_IsOK(res1)) {
37798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37799 }
37800 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37801 {
37802 arg2 = wxString_in_helper(obj1);
37803 if (arg2 == NULL) SWIG_fail;
37804 temp2 = true;
37805 }
37806 {
37807 PyThreadState* __tstate = wxPyBeginAllowThreads();
37808 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37809 wxPyEndAllowThreads(__tstate);
37810 if (PyErr_Occurred()) SWIG_fail;
37811 }
37812 {
37813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37814 }
37815 {
37816 if (temp2)
37817 delete arg2;
37818 }
37819 return resultobj;
37820fail:
37821 {
37822 if (temp2)
37823 delete arg2;
37824 }
37825 return NULL;
37826}
37827
37828
1bd55598
RD
37829SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37830 PyObject *resultobj = 0;
37831 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37832 wxString result;
37833 void *argp1 = 0 ;
37834 int res1 = 0 ;
37835 PyObject *swig_obj[1] ;
37836
37837 if (!args) SWIG_fail;
37838 swig_obj[0] = args;
37839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37840 if (!SWIG_IsOK(res1)) {
37841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37842 }
37843 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37844 {
37845 PyThreadState* __tstate = wxPyBeginAllowThreads();
37846 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 {
37851#if wxUSE_UNICODE
37852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37853#else
37854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37855#endif
37856 }
37857 return resultobj;
37858fail:
37859 return NULL;
37860}
37861
37862
37863SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37864 PyObject *resultobj = 0;
37865 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37866 wxString *arg2 = 0 ;
37867 void *argp1 = 0 ;
37868 int res1 = 0 ;
37869 bool temp2 = false ;
37870 PyObject * obj0 = 0 ;
37871 PyObject * obj1 = 0 ;
37872 char * kwnames[] = {
37873 (char *) "self",(char *) "path", NULL
37874 };
37875
37876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37878 if (!SWIG_IsOK(res1)) {
37879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37880 }
37881 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37882 {
37883 arg2 = wxString_in_helper(obj1);
37884 if (arg2 == NULL) SWIG_fail;
37885 temp2 = true;
37886 }
37887 {
37888 PyThreadState* __tstate = wxPyBeginAllowThreads();
37889 (arg1)->SetDefaultPath((wxString const &)*arg2);
37890 wxPyEndAllowThreads(__tstate);
37891 if (PyErr_Occurred()) SWIG_fail;
37892 }
37893 resultobj = SWIG_Py_Void();
37894 {
37895 if (temp2)
37896 delete arg2;
37897 }
37898 return resultobj;
37899fail:
37900 {
37901 if (temp2)
37902 delete arg2;
37903 }
37904 return NULL;
d55e5bfc
RD
37905}
37906
37907
1bd55598
RD
37908SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37909 PyObject *resultobj = 0;
37910 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37911 wxString result;
37912 void *argp1 = 0 ;
37913 int res1 = 0 ;
37914 PyObject *swig_obj[1] ;
37915
37916 if (!args) SWIG_fail;
37917 swig_obj[0] = args;
37918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37919 if (!SWIG_IsOK(res1)) {
37920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37921 }
37922 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37923 {
37924 PyThreadState* __tstate = wxPyBeginAllowThreads();
37925 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37926 wxPyEndAllowThreads(__tstate);
37927 if (PyErr_Occurred()) SWIG_fail;
37928 }
37929 {
37930#if wxUSE_UNICODE
37931 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37932#else
37933 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37934#endif
37935 }
37936 return resultobj;
37937fail:
37938 return NULL;
d55e5bfc
RD
37939}
37940
37941
1bd55598
RD
37942SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37943 PyObject *resultobj = 0;
37944 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37945 wxString result;
37946 void *argp1 = 0 ;
37947 int res1 = 0 ;
37948 PyObject *swig_obj[1] ;
37949
37950 if (!args) SWIG_fail;
37951 swig_obj[0] = args;
37952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37953 if (!SWIG_IsOK(res1)) {
37954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37955 }
37956 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37957 {
37958 PyThreadState* __tstate = wxPyBeginAllowThreads();
37959 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37960 wxPyEndAllowThreads(__tstate);
37961 if (PyErr_Occurred()) SWIG_fail;
37962 }
37963 {
37964#if wxUSE_UNICODE
37965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37966#else
37967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37968#endif
37969 }
37970 return resultobj;
37971fail:
37972 return NULL;
37973}
37974
37975
37976SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37977 PyObject *resultobj = 0;
37978 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37979 wxString *arg2 = 0 ;
37980 void *argp1 = 0 ;
37981 int res1 = 0 ;
37982 bool temp2 = false ;
37983 PyObject * obj0 = 0 ;
37984 PyObject * obj1 = 0 ;
37985 char * kwnames[] = {
37986 (char *) "self",(char *) "path", NULL
37987 };
37988
37989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37991 if (!SWIG_IsOK(res1)) {
37992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37993 }
37994 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37995 {
37996 arg2 = wxString_in_helper(obj1);
37997 if (arg2 == NULL) SWIG_fail;
37998 temp2 = true;
37999 }
38000 {
38001 PyThreadState* __tstate = wxPyBeginAllowThreads();
38002 (arg1)->SetPath((wxString const &)*arg2);
38003 wxPyEndAllowThreads(__tstate);
38004 if (PyErr_Occurred()) SWIG_fail;
38005 }
38006 resultobj = SWIG_Py_Void();
38007 {
38008 if (temp2)
38009 delete arg2;
38010 }
38011 return resultobj;
38012fail:
38013 {
38014 if (temp2)
38015 delete arg2;
38016 }
38017 return NULL;
38018}
38019
38020
38021SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38022 PyObject *resultobj = 0;
38023 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38024 bool arg2 ;
38025 void *argp1 = 0 ;
38026 int res1 = 0 ;
38027 bool val2 ;
38028 int ecode2 = 0 ;
38029 PyObject * obj0 = 0 ;
38030 PyObject * obj1 = 0 ;
38031 char * kwnames[] = {
38032 (char *) "self",(char *) "show", NULL
38033 };
38034
38035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38037 if (!SWIG_IsOK(res1)) {
38038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38039 }
38040 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38041 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38042 if (!SWIG_IsOK(ecode2)) {
38043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38044 }
38045 arg2 = static_cast< bool >(val2);
38046 {
38047 PyThreadState* __tstate = wxPyBeginAllowThreads();
38048 (arg1)->ShowHidden(arg2);
38049 wxPyEndAllowThreads(__tstate);
38050 if (PyErr_Occurred()) SWIG_fail;
38051 }
38052 resultobj = SWIG_Py_Void();
38053 return resultobj;
38054fail:
38055 return NULL;
d55e5bfc
RD
38056}
38057
38058
1bd55598
RD
38059SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38060 PyObject *resultobj = 0;
38061 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38062 bool result;
38063 void *argp1 = 0 ;
38064 int res1 = 0 ;
38065 PyObject *swig_obj[1] ;
38066
38067 if (!args) SWIG_fail;
38068 swig_obj[0] = args;
38069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38072 }
38073 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38074 {
38075 PyThreadState* __tstate = wxPyBeginAllowThreads();
38076 result = (bool)(arg1)->GetShowHidden();
38077 wxPyEndAllowThreads(__tstate);
38078 if (PyErr_Occurred()) SWIG_fail;
38079 }
38080 {
38081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38082 }
38083 return resultobj;
38084fail:
38085 return NULL;
d55e5bfc
RD
38086}
38087
38088
1bd55598
RD
38089SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38090 PyObject *resultobj = 0;
38091 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38092 wxString result;
38093 void *argp1 = 0 ;
38094 int res1 = 0 ;
38095 PyObject *swig_obj[1] ;
38096
38097 if (!args) SWIG_fail;
38098 swig_obj[0] = args;
38099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38100 if (!SWIG_IsOK(res1)) {
38101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38102 }
38103 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38104 {
38105 PyThreadState* __tstate = wxPyBeginAllowThreads();
38106 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38107 wxPyEndAllowThreads(__tstate);
38108 if (PyErr_Occurred()) SWIG_fail;
38109 }
38110 {
38111#if wxUSE_UNICODE
38112 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38113#else
38114 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38115#endif
38116 }
38117 return resultobj;
38118fail:
38119 return NULL;
38120}
38121
38122
38123SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38124 PyObject *resultobj = 0;
38125 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38126 wxString *arg2 = 0 ;
38127 void *argp1 = 0 ;
38128 int res1 = 0 ;
38129 bool temp2 = false ;
38130 PyObject * obj0 = 0 ;
38131 PyObject * obj1 = 0 ;
38132 char * kwnames[] = {
38133 (char *) "self",(char *) "filter", NULL
38134 };
38135
38136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38138 if (!SWIG_IsOK(res1)) {
38139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38140 }
38141 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38142 {
38143 arg2 = wxString_in_helper(obj1);
38144 if (arg2 == NULL) SWIG_fail;
38145 temp2 = true;
38146 }
38147 {
38148 PyThreadState* __tstate = wxPyBeginAllowThreads();
38149 (arg1)->SetFilter((wxString const &)*arg2);
38150 wxPyEndAllowThreads(__tstate);
38151 if (PyErr_Occurred()) SWIG_fail;
38152 }
38153 resultobj = SWIG_Py_Void();
38154 {
38155 if (temp2)
38156 delete arg2;
38157 }
38158 return resultobj;
38159fail:
38160 {
38161 if (temp2)
38162 delete arg2;
38163 }
38164 return NULL;
d55e5bfc
RD
38165}
38166
38167
1bd55598
RD
38168SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38169 PyObject *resultobj = 0;
38170 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38171 int result;
38172 void *argp1 = 0 ;
38173 int res1 = 0 ;
38174 PyObject *swig_obj[1] ;
38175
38176 if (!args) SWIG_fail;
38177 swig_obj[0] = args;
38178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38179 if (!SWIG_IsOK(res1)) {
38180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38181 }
38182 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38183 {
38184 PyThreadState* __tstate = wxPyBeginAllowThreads();
38185 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38186 wxPyEndAllowThreads(__tstate);
38187 if (PyErr_Occurred()) SWIG_fail;
38188 }
38189 resultobj = SWIG_From_int(static_cast< int >(result));
38190 return resultobj;
38191fail:
38192 return NULL;
38193}
38194
38195
38196SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38197 PyObject *resultobj = 0;
38198 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38199 int arg2 ;
38200 void *argp1 = 0 ;
38201 int res1 = 0 ;
38202 int val2 ;
38203 int ecode2 = 0 ;
38204 PyObject * obj0 = 0 ;
38205 PyObject * obj1 = 0 ;
38206 char * kwnames[] = {
38207 (char *) "self",(char *) "n", NULL
38208 };
38209
38210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38212 if (!SWIG_IsOK(res1)) {
38213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38214 }
38215 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38216 ecode2 = SWIG_AsVal_int(obj1, &val2);
38217 if (!SWIG_IsOK(ecode2)) {
38218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38219 }
38220 arg2 = static_cast< int >(val2);
38221 {
38222 PyThreadState* __tstate = wxPyBeginAllowThreads();
38223 (arg1)->SetFilterIndex(arg2);
38224 wxPyEndAllowThreads(__tstate);
38225 if (PyErr_Occurred()) SWIG_fail;
38226 }
38227 resultobj = SWIG_Py_Void();
38228 return resultobj;
38229fail:
38230 return NULL;
d55e5bfc
RD
38231}
38232
38233
1bd55598
RD
38234SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38235 PyObject *resultobj = 0;
38236 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38237 wxTreeItemId result;
38238 void *argp1 = 0 ;
38239 int res1 = 0 ;
38240 PyObject *swig_obj[1] ;
38241
38242 if (!args) SWIG_fail;
38243 swig_obj[0] = args;
38244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38245 if (!SWIG_IsOK(res1)) {
38246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38247 }
38248 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38249 {
38250 PyThreadState* __tstate = wxPyBeginAllowThreads();
38251 result = (arg1)->GetRootId();
38252 wxPyEndAllowThreads(__tstate);
38253 if (PyErr_Occurred()) SWIG_fail;
38254 }
38255 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38256 return resultobj;
38257fail:
38258 return NULL;
d55e5bfc
RD
38259}
38260
38261
1bd55598
RD
38262SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38263 PyObject *resultobj = 0;
38264 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38265 wxPyTreeCtrl *result = 0 ;
38266 void *argp1 = 0 ;
38267 int res1 = 0 ;
38268 PyObject *swig_obj[1] ;
38269
38270 if (!args) SWIG_fail;
38271 swig_obj[0] = args;
38272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38273 if (!SWIG_IsOK(res1)) {
38274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38275 }
38276 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38277 {
38278 PyThreadState* __tstate = wxPyBeginAllowThreads();
38279 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38280 wxPyEndAllowThreads(__tstate);
38281 if (PyErr_Occurred()) SWIG_fail;
38282 }
38283 {
38284 resultobj = wxPyMake_wxObject(result, 0);
38285 }
38286 return resultobj;
38287fail:
38288 return NULL;
d55e5bfc
RD
38289}
38290
38291
1bd55598
RD
38292SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38293 PyObject *resultobj = 0;
38294 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38295 wxDirFilterListCtrl *result = 0 ;
38296 void *argp1 = 0 ;
38297 int res1 = 0 ;
38298 PyObject *swig_obj[1] ;
38299
38300 if (!args) SWIG_fail;
38301 swig_obj[0] = args;
38302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38303 if (!SWIG_IsOK(res1)) {
38304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38305 }
38306 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38307 {
38308 PyThreadState* __tstate = wxPyBeginAllowThreads();
38309 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38310 wxPyEndAllowThreads(__tstate);
38311 if (PyErr_Occurred()) SWIG_fail;
38312 }
38313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38314 return resultobj;
38315fail:
38316 return NULL;
38317}
38318
38319
38320SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38321 PyObject *resultobj = 0;
38322 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38323 wxTreeItemId arg2 ;
38324 wxString *arg3 = 0 ;
38325 bool *arg4 = 0 ;
38326 wxTreeItemId result;
38327 void *argp1 = 0 ;
38328 int res1 = 0 ;
38329 void *argp2 ;
38330 int res2 = 0 ;
38331 bool temp3 = false ;
38332 bool temp4 ;
38333 int res4 = SWIG_TMPOBJ ;
38334 PyObject * obj0 = 0 ;
38335 PyObject * obj1 = 0 ;
38336 PyObject * obj2 = 0 ;
38337 char * kwnames[] = {
38338 (char *) "self",(char *) "parentId",(char *) "path", NULL
38339 };
38340
38341 arg4 = &temp4;
38342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38344 if (!SWIG_IsOK(res1)) {
38345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38346 }
38347 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38348 {
38349 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38350 if (!SWIG_IsOK(res2)) {
38351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38352 }
38353 if (!argp2) {
38354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38355 } else {
38356 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38357 arg2 = *temp;
38358 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38359 }
1bd55598
RD
38360 }
38361 {
38362 arg3 = wxString_in_helper(obj2);
38363 if (arg3 == NULL) SWIG_fail;
38364 temp3 = true;
38365 }
38366 {
38367 PyThreadState* __tstate = wxPyBeginAllowThreads();
38368 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38369 wxPyEndAllowThreads(__tstate);
38370 if (PyErr_Occurred()) SWIG_fail;
38371 }
38372 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38373 if (SWIG_IsTmpObj(res4)) {
38374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38375 } else {
38376 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38378 }
38379 {
38380 if (temp3)
38381 delete arg3;
38382 }
38383 return resultobj;
38384fail:
38385 {
38386 if (temp3)
38387 delete arg3;
38388 }
38389 return NULL;
d55e5bfc
RD
38390}
38391
38392
1bd55598
RD
38393SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38394 PyObject *resultobj = 0;
38395 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38396 void *argp1 = 0 ;
38397 int res1 = 0 ;
38398 PyObject *swig_obj[1] ;
38399
38400 if (!args) SWIG_fail;
38401 swig_obj[0] = args;
38402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38403 if (!SWIG_IsOK(res1)) {
38404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38405 }
38406 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38407 {
38408 PyThreadState* __tstate = wxPyBeginAllowThreads();
38409 (arg1)->DoResize();
38410 wxPyEndAllowThreads(__tstate);
38411 if (PyErr_Occurred()) SWIG_fail;
38412 }
38413 resultobj = SWIG_Py_Void();
38414 return resultobj;
38415fail:
38416 return NULL;
38417}
38418
38419
38420SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38421 PyObject *resultobj = 0;
38422 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38423 void *argp1 = 0 ;
38424 int res1 = 0 ;
38425 PyObject *swig_obj[1] ;
38426
38427 if (!args) SWIG_fail;
38428 swig_obj[0] = args;
38429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38430 if (!SWIG_IsOK(res1)) {
38431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38432 }
38433 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38434 {
38435 PyThreadState* __tstate = wxPyBeginAllowThreads();
38436 (arg1)->ReCreateTree();
38437 wxPyEndAllowThreads(__tstate);
38438 if (PyErr_Occurred()) SWIG_fail;
38439 }
38440 resultobj = SWIG_Py_Void();
38441 return resultobj;
38442fail:
38443 return NULL;
38444}
38445
38446
38447SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38448 PyObject *obj;
38449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38450 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38451 return SWIG_Py_Void();
38452}
38453
38454SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38455 return SWIG_Python_InitShadowInstance(args);
38456}
38457
38458SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38459 PyObject *resultobj = 0;
38460 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38461 int arg2 = (int) (int)-1 ;
38462 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38463 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38464 wxSize const &arg4_defvalue = wxDefaultSize ;
38465 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38466 long arg5 = (long) 0 ;
38467 wxDirFilterListCtrl *result = 0 ;
38468 void *argp1 = 0 ;
38469 int res1 = 0 ;
38470 int val2 ;
38471 int ecode2 = 0 ;
38472 wxPoint temp3 ;
38473 wxSize temp4 ;
38474 long val5 ;
38475 int ecode5 = 0 ;
38476 PyObject * obj0 = 0 ;
38477 PyObject * obj1 = 0 ;
38478 PyObject * obj2 = 0 ;
38479 PyObject * obj3 = 0 ;
38480 PyObject * obj4 = 0 ;
38481 char * kwnames[] = {
38482 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38483 };
38484
38485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38487 if (!SWIG_IsOK(res1)) {
38488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38489 }
38490 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38491 if (obj1) {
38492 ecode2 = SWIG_AsVal_int(obj1, &val2);
38493 if (!SWIG_IsOK(ecode2)) {
38494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38495 }
38496 arg2 = static_cast< int >(val2);
38497 }
38498 if (obj2) {
d55e5bfc 38499 {
1bd55598
RD
38500 arg3 = &temp3;
38501 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38502 }
1bd55598
RD
38503 }
38504 if (obj3) {
d55e5bfc 38505 {
1bd55598
RD
38506 arg4 = &temp4;
38507 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38508 }
1bd55598
RD
38509 }
38510 if (obj4) {
38511 ecode5 = SWIG_AsVal_long(obj4, &val5);
38512 if (!SWIG_IsOK(ecode5)) {
38513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38514 }
38515 arg5 = static_cast< long >(val5);
38516 }
38517 {
38518 if (!wxPyCheckForApp()) SWIG_fail;
38519 PyThreadState* __tstate = wxPyBeginAllowThreads();
38520 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38521 wxPyEndAllowThreads(__tstate);
38522 if (PyErr_Occurred()) SWIG_fail;
38523 }
38524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38525 return resultobj;
38526fail:
38527 return NULL;
d55e5bfc
RD
38528}
38529
38530
1bd55598
RD
38531SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38532 PyObject *resultobj = 0;
38533 wxDirFilterListCtrl *result = 0 ;
38534
38535 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38536 {
38537 if (!wxPyCheckForApp()) SWIG_fail;
38538 PyThreadState* __tstate = wxPyBeginAllowThreads();
38539 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38540 wxPyEndAllowThreads(__tstate);
38541 if (PyErr_Occurred()) SWIG_fail;
38542 }
38543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38544 return resultobj;
38545fail:
38546 return NULL;
38547}
38548
38549
38550SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38551 PyObject *resultobj = 0;
38552 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38553 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38554 int arg3 = (int) (int)-1 ;
38555 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38556 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38557 wxSize const &arg5_defvalue = wxDefaultSize ;
38558 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38559 long arg6 = (long) 0 ;
38560 bool result;
38561 void *argp1 = 0 ;
38562 int res1 = 0 ;
38563 void *argp2 = 0 ;
38564 int res2 = 0 ;
38565 int val3 ;
38566 int ecode3 = 0 ;
38567 wxPoint temp4 ;
38568 wxSize temp5 ;
38569 long val6 ;
38570 int ecode6 = 0 ;
38571 PyObject * obj0 = 0 ;
38572 PyObject * obj1 = 0 ;
38573 PyObject * obj2 = 0 ;
38574 PyObject * obj3 = 0 ;
38575 PyObject * obj4 = 0 ;
38576 PyObject * obj5 = 0 ;
38577 char * kwnames[] = {
38578 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38579 };
38580
38581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38583 if (!SWIG_IsOK(res1)) {
38584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38585 }
38586 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38588 if (!SWIG_IsOK(res2)) {
38589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38590 }
38591 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38592 if (obj2) {
38593 ecode3 = SWIG_AsVal_int(obj2, &val3);
38594 if (!SWIG_IsOK(ecode3)) {
38595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38596 }
38597 arg3 = static_cast< int >(val3);
38598 }
38599 if (obj3) {
36ed4f51 38600 {
1bd55598
RD
38601 arg4 = &temp4;
38602 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38603 }
1bd55598
RD
38604 }
38605 if (obj4) {
36ed4f51 38606 {
1bd55598
RD
38607 arg5 = &temp5;
38608 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38609 }
1bd55598
RD
38610 }
38611 if (obj5) {
38612 ecode6 = SWIG_AsVal_long(obj5, &val6);
38613 if (!SWIG_IsOK(ecode6)) {
38614 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38615 }
38616 arg6 = static_cast< long >(val6);
38617 }
38618 {
38619 PyThreadState* __tstate = wxPyBeginAllowThreads();
38620 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38621 wxPyEndAllowThreads(__tstate);
38622 if (PyErr_Occurred()) SWIG_fail;
38623 }
38624 {
38625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38626 }
38627 return resultobj;
38628fail:
38629 return NULL;
38630}
38631
38632
38633SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38634 PyObject *resultobj = 0;
38635 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38636 wxString *arg2 = 0 ;
38637 int arg3 ;
38638 void *argp1 = 0 ;
38639 int res1 = 0 ;
38640 bool temp2 = false ;
38641 int val3 ;
38642 int ecode3 = 0 ;
38643 PyObject * obj0 = 0 ;
38644 PyObject * obj1 = 0 ;
38645 PyObject * obj2 = 0 ;
38646 char * kwnames[] = {
38647 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38648 };
38649
38650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38652 if (!SWIG_IsOK(res1)) {
38653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38654 }
38655 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38656 {
38657 arg2 = wxString_in_helper(obj1);
38658 if (arg2 == NULL) SWIG_fail;
38659 temp2 = true;
38660 }
38661 ecode3 = SWIG_AsVal_int(obj2, &val3);
38662 if (!SWIG_IsOK(ecode3)) {
38663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38664 }
38665 arg3 = static_cast< int >(val3);
38666 {
38667 PyThreadState* __tstate = wxPyBeginAllowThreads();
38668 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38669 wxPyEndAllowThreads(__tstate);
38670 if (PyErr_Occurred()) SWIG_fail;
38671 }
38672 resultobj = SWIG_Py_Void();
38673 {
38674 if (temp2)
38675 delete arg2;
38676 }
38677 return resultobj;
38678fail:
38679 {
38680 if (temp2)
38681 delete arg2;
38682 }
38683 return NULL;
38684}
38685
38686
38687SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38688 PyObject *obj;
38689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38690 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38691 return SWIG_Py_Void();
38692}
38693
38694SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38695 return SWIG_Python_InitShadowInstance(args);
38696}
38697
38698SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38699 PyObject *resultobj = 0;
38700 wxWindow *arg1 = (wxWindow *) 0 ;
38701 int arg2 = (int) (int)-1 ;
38702 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38703 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38704 wxSize const &arg4_defvalue = wxDefaultSize ;
38705 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38706 long arg5 = (long) 0 ;
38707 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38708 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38709 wxString const &arg7_defvalue = wxPyControlNameStr ;
38710 wxString *arg7 = (wxString *) &arg7_defvalue ;
38711 wxPyControl *result = 0 ;
38712 void *argp1 = 0 ;
38713 int res1 = 0 ;
38714 int val2 ;
38715 int ecode2 = 0 ;
38716 wxPoint temp3 ;
38717 wxSize temp4 ;
38718 long val5 ;
38719 int ecode5 = 0 ;
38720 void *argp6 = 0 ;
38721 int res6 = 0 ;
38722 bool temp7 = false ;
38723 PyObject * obj0 = 0 ;
38724 PyObject * obj1 = 0 ;
38725 PyObject * obj2 = 0 ;
38726 PyObject * obj3 = 0 ;
38727 PyObject * obj4 = 0 ;
38728 PyObject * obj5 = 0 ;
38729 PyObject * obj6 = 0 ;
38730 char * kwnames[] = {
38731 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38732 };
38733
38734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38736 if (!SWIG_IsOK(res1)) {
38737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38738 }
38739 arg1 = reinterpret_cast< wxWindow * >(argp1);
38740 if (obj1) {
38741 ecode2 = SWIG_AsVal_int(obj1, &val2);
38742 if (!SWIG_IsOK(ecode2)) {
38743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38744 }
38745 arg2 = static_cast< int >(val2);
38746 }
38747 if (obj2) {
d55e5bfc 38748 {
1bd55598
RD
38749 arg3 = &temp3;
38750 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38751 }
1bd55598
RD
38752 }
38753 if (obj3) {
d55e5bfc 38754 {
1bd55598
RD
38755 arg4 = &temp4;
38756 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38757 }
1bd55598
RD
38758 }
38759 if (obj4) {
38760 ecode5 = SWIG_AsVal_long(obj4, &val5);
38761 if (!SWIG_IsOK(ecode5)) {
38762 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38763 }
38764 arg5 = static_cast< long >(val5);
38765 }
38766 if (obj5) {
38767 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38768 if (!SWIG_IsOK(res6)) {
38769 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38770 }
1bd55598
RD
38771 if (!argp6) {
38772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38773 }
1bd55598
RD
38774 arg6 = reinterpret_cast< wxValidator * >(argp6);
38775 }
38776 if (obj6) {
f20a2e1f 38777 {
1bd55598
RD
38778 arg7 = wxString_in_helper(obj6);
38779 if (arg7 == NULL) SWIG_fail;
38780 temp7 = true;
f20a2e1f 38781 }
1bd55598
RD
38782 }
38783 {
38784 if (!wxPyCheckForApp()) SWIG_fail;
38785 PyThreadState* __tstate = wxPyBeginAllowThreads();
38786 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38787 wxPyEndAllowThreads(__tstate);
38788 if (PyErr_Occurred()) SWIG_fail;
38789 }
38790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38791 {
38792 if (temp7)
38793 delete arg7;
38794 }
38795 return resultobj;
38796fail:
38797 {
38798 if (temp7)
38799 delete arg7;
38800 }
38801 return NULL;
d55e5bfc
RD
38802}
38803
38804
1bd55598
RD
38805SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38806 PyObject *resultobj = 0;
38807 wxPyControl *result = 0 ;
38808
38809 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38810 {
38811 if (!wxPyCheckForApp()) SWIG_fail;
38812 PyThreadState* __tstate = wxPyBeginAllowThreads();
38813 result = (wxPyControl *)new wxPyControl();
38814 wxPyEndAllowThreads(__tstate);
38815 if (PyErr_Occurred()) SWIG_fail;
38816 }
38817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38818 return resultobj;
38819fail:
38820 return NULL;
38821}
38822
38823
38824SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38825 PyObject *resultobj = 0;
38826 wxPyControl *arg1 = (wxPyControl *) 0 ;
38827 PyObject *arg2 = (PyObject *) 0 ;
38828 PyObject *arg3 = (PyObject *) 0 ;
38829 void *argp1 = 0 ;
38830 int res1 = 0 ;
38831 PyObject * obj0 = 0 ;
38832 PyObject * obj1 = 0 ;
38833 PyObject * obj2 = 0 ;
38834 char * kwnames[] = {
38835 (char *) "self",(char *) "self",(char *) "_class", NULL
38836 };
38837
38838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38840 if (!SWIG_IsOK(res1)) {
38841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38842 }
38843 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38844 arg2 = obj1;
38845 arg3 = obj2;
38846 {
38847 PyThreadState* __tstate = wxPyBeginAllowThreads();
38848 (arg1)->_setCallbackInfo(arg2,arg3);
38849 wxPyEndAllowThreads(__tstate);
38850 if (PyErr_Occurred()) SWIG_fail;
38851 }
38852 resultobj = SWIG_Py_Void();
38853 return resultobj;
38854fail:
38855 return NULL;
38856}
38857
38858
1bd55598
RD
38859SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38860 PyObject *resultobj = 0;
38861 wxPyControl *arg1 = (wxPyControl *) 0 ;
38862 wxDC *arg2 = (wxDC *) 0 ;
38863 bool result;
38864 void *argp1 = 0 ;
38865 int res1 = 0 ;
38866 void *argp2 = 0 ;
38867 int res2 = 0 ;
38868 PyObject * obj0 = 0 ;
38869 PyObject * obj1 = 0 ;
38870 char * kwnames[] = {
38871 (char *) "self",(char *) "dc", NULL
38872 };
38873
38874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38876 if (!SWIG_IsOK(res1)) {
38877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38878 }
38879 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38881 if (!SWIG_IsOK(res2)) {
38882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38883 }
38884 arg2 = reinterpret_cast< wxDC * >(argp2);
38885 {
38886 PyThreadState* __tstate = wxPyBeginAllowThreads();
38887 result = (bool)(arg1)->DoEraseBackground(arg2);
38888 wxPyEndAllowThreads(__tstate);
38889 if (PyErr_Occurred()) SWIG_fail;
38890 }
38891 {
38892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38893 }
38894 return resultobj;
38895fail:
38896 return NULL;
38897}
38898
38899
38900SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38901 PyObject *resultobj = 0;
38902 wxPyControl *arg1 = (wxPyControl *) 0 ;
38903 int arg2 ;
38904 int arg3 ;
38905 int arg4 ;
38906 int arg5 ;
38907 void *argp1 = 0 ;
38908 int res1 = 0 ;
38909 int val2 ;
38910 int ecode2 = 0 ;
38911 int val3 ;
38912 int ecode3 = 0 ;
38913 int val4 ;
38914 int ecode4 = 0 ;
38915 int val5 ;
38916 int ecode5 = 0 ;
38917 PyObject * obj0 = 0 ;
38918 PyObject * obj1 = 0 ;
38919 PyObject * obj2 = 0 ;
38920 PyObject * obj3 = 0 ;
38921 PyObject * obj4 = 0 ;
38922 char * kwnames[] = {
38923 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38924 };
38925
38926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38928 if (!SWIG_IsOK(res1)) {
38929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38930 }
38931 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38932 ecode2 = SWIG_AsVal_int(obj1, &val2);
38933 if (!SWIG_IsOK(ecode2)) {
38934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38935 }
38936 arg2 = static_cast< int >(val2);
38937 ecode3 = SWIG_AsVal_int(obj2, &val3);
38938 if (!SWIG_IsOK(ecode3)) {
38939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38940 }
38941 arg3 = static_cast< int >(val3);
38942 ecode4 = SWIG_AsVal_int(obj3, &val4);
38943 if (!SWIG_IsOK(ecode4)) {
38944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38945 }
38946 arg4 = static_cast< int >(val4);
38947 ecode5 = SWIG_AsVal_int(obj4, &val5);
38948 if (!SWIG_IsOK(ecode5)) {
38949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38950 }
38951 arg5 = static_cast< int >(val5);
38952 {
38953 PyThreadState* __tstate = wxPyBeginAllowThreads();
38954 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38955 wxPyEndAllowThreads(__tstate);
38956 if (PyErr_Occurred()) SWIG_fail;
38957 }
38958 resultobj = SWIG_Py_Void();
38959 return resultobj;
38960fail:
38961 return NULL;
38962}
38963
38964
38965SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38966 PyObject *resultobj = 0;
38967 wxPyControl *arg1 = (wxPyControl *) 0 ;
38968 int arg2 ;
38969 int arg3 ;
38970 int arg4 ;
38971 int arg5 ;
38972 int arg6 = (int) wxSIZE_AUTO ;
38973 void *argp1 = 0 ;
38974 int res1 = 0 ;
38975 int val2 ;
38976 int ecode2 = 0 ;
38977 int val3 ;
38978 int ecode3 = 0 ;
38979 int val4 ;
38980 int ecode4 = 0 ;
38981 int val5 ;
38982 int ecode5 = 0 ;
38983 int val6 ;
38984 int ecode6 = 0 ;
38985 PyObject * obj0 = 0 ;
38986 PyObject * obj1 = 0 ;
38987 PyObject * obj2 = 0 ;
38988 PyObject * obj3 = 0 ;
38989 PyObject * obj4 = 0 ;
38990 PyObject * obj5 = 0 ;
38991 char * kwnames[] = {
38992 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38993 };
38994
38995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38997 if (!SWIG_IsOK(res1)) {
38998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38999 }
39000 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39001 ecode2 = SWIG_AsVal_int(obj1, &val2);
39002 if (!SWIG_IsOK(ecode2)) {
39003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39004 }
39005 arg2 = static_cast< int >(val2);
39006 ecode3 = SWIG_AsVal_int(obj2, &val3);
39007 if (!SWIG_IsOK(ecode3)) {
39008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39009 }
39010 arg3 = static_cast< int >(val3);
39011 ecode4 = SWIG_AsVal_int(obj3, &val4);
39012 if (!SWIG_IsOK(ecode4)) {
39013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39014 }
39015 arg4 = static_cast< int >(val4);
39016 ecode5 = SWIG_AsVal_int(obj4, &val5);
39017 if (!SWIG_IsOK(ecode5)) {
39018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39019 }
39020 arg5 = static_cast< int >(val5);
39021 if (obj5) {
39022 ecode6 = SWIG_AsVal_int(obj5, &val6);
39023 if (!SWIG_IsOK(ecode6)) {
39024 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39025 }
39026 arg6 = static_cast< int >(val6);
39027 }
39028 {
39029 PyThreadState* __tstate = wxPyBeginAllowThreads();
39030 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39031 wxPyEndAllowThreads(__tstate);
39032 if (PyErr_Occurred()) SWIG_fail;
39033 }
39034 resultobj = SWIG_Py_Void();
39035 return resultobj;
39036fail:
39037 return NULL;
39038}
39039
39040
39041SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39042 PyObject *resultobj = 0;
39043 wxPyControl *arg1 = (wxPyControl *) 0 ;
39044 int arg2 ;
39045 int arg3 ;
39046 void *argp1 = 0 ;
39047 int res1 = 0 ;
39048 int val2 ;
39049 int ecode2 = 0 ;
39050 int val3 ;
39051 int ecode3 = 0 ;
39052 PyObject * obj0 = 0 ;
39053 PyObject * obj1 = 0 ;
39054 PyObject * obj2 = 0 ;
39055 char * kwnames[] = {
39056 (char *) "self",(char *) "width",(char *) "height", NULL
39057 };
39058
39059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39061 if (!SWIG_IsOK(res1)) {
39062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39063 }
39064 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39065 ecode2 = SWIG_AsVal_int(obj1, &val2);
39066 if (!SWIG_IsOK(ecode2)) {
39067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39068 }
39069 arg2 = static_cast< int >(val2);
39070 ecode3 = SWIG_AsVal_int(obj2, &val3);
39071 if (!SWIG_IsOK(ecode3)) {
39072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39073 }
39074 arg3 = static_cast< int >(val3);
39075 {
39076 PyThreadState* __tstate = wxPyBeginAllowThreads();
39077 (arg1)->DoSetClientSize(arg2,arg3);
39078 wxPyEndAllowThreads(__tstate);
39079 if (PyErr_Occurred()) SWIG_fail;
39080 }
39081 resultobj = SWIG_Py_Void();
39082 return resultobj;
39083fail:
39084 return NULL;
39085}
39086
39087
39088SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39089 PyObject *resultobj = 0;
39090 wxPyControl *arg1 = (wxPyControl *) 0 ;
39091 int arg2 ;
39092 int arg3 ;
39093 void *argp1 = 0 ;
39094 int res1 = 0 ;
39095 int val2 ;
39096 int ecode2 = 0 ;
39097 int val3 ;
39098 int ecode3 = 0 ;
39099 PyObject * obj0 = 0 ;
39100 PyObject * obj1 = 0 ;
39101 PyObject * obj2 = 0 ;
39102 char * kwnames[] = {
39103 (char *) "self",(char *) "x",(char *) "y", NULL
39104 };
39105
39106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39108 if (!SWIG_IsOK(res1)) {
39109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39110 }
39111 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39112 ecode2 = SWIG_AsVal_int(obj1, &val2);
39113 if (!SWIG_IsOK(ecode2)) {
39114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39115 }
39116 arg2 = static_cast< int >(val2);
39117 ecode3 = SWIG_AsVal_int(obj2, &val3);
39118 if (!SWIG_IsOK(ecode3)) {
39119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39120 }
39121 arg3 = static_cast< int >(val3);
39122 {
39123 PyThreadState* __tstate = wxPyBeginAllowThreads();
39124 (arg1)->DoSetVirtualSize(arg2,arg3);
39125 wxPyEndAllowThreads(__tstate);
39126 if (PyErr_Occurred()) SWIG_fail;
39127 }
39128 resultobj = SWIG_Py_Void();
39129 return resultobj;
39130fail:
39131 return NULL;
39132}
39133
39134
39135SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39136 PyObject *resultobj = 0;
39137 wxPyControl *arg1 = (wxPyControl *) 0 ;
39138 int *arg2 = (int *) 0 ;
39139 int *arg3 = (int *) 0 ;
39140 void *argp1 = 0 ;
39141 int res1 = 0 ;
39142 int temp2 ;
39143 int res2 = SWIG_TMPOBJ ;
39144 int temp3 ;
39145 int res3 = SWIG_TMPOBJ ;
39146 PyObject *swig_obj[1] ;
39147
39148 arg2 = &temp2;
39149 arg3 = &temp3;
39150 if (!args) SWIG_fail;
39151 swig_obj[0] = args;
39152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39153 if (!SWIG_IsOK(res1)) {
39154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39155 }
39156 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39157 {
39158 PyThreadState* __tstate = wxPyBeginAllowThreads();
39159 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39160 wxPyEndAllowThreads(__tstate);
39161 if (PyErr_Occurred()) SWIG_fail;
39162 }
39163 resultobj = SWIG_Py_Void();
39164 if (SWIG_IsTmpObj(res2)) {
39165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39166 } else {
39167 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39169 }
39170 if (SWIG_IsTmpObj(res3)) {
39171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39172 } else {
39173 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39175 }
39176 return resultobj;
39177fail:
39178 return NULL;
39179}
39180
39181
39182SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39183 PyObject *resultobj = 0;
39184 wxPyControl *arg1 = (wxPyControl *) 0 ;
39185 int *arg2 = (int *) 0 ;
39186 int *arg3 = (int *) 0 ;
39187 void *argp1 = 0 ;
39188 int res1 = 0 ;
39189 int temp2 ;
39190 int res2 = SWIG_TMPOBJ ;
39191 int temp3 ;
39192 int res3 = SWIG_TMPOBJ ;
39193 PyObject *swig_obj[1] ;
39194
39195 arg2 = &temp2;
39196 arg3 = &temp3;
39197 if (!args) SWIG_fail;
39198 swig_obj[0] = args;
39199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39200 if (!SWIG_IsOK(res1)) {
39201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39202 }
39203 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39204 {
39205 PyThreadState* __tstate = wxPyBeginAllowThreads();
39206 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39207 wxPyEndAllowThreads(__tstate);
39208 if (PyErr_Occurred()) SWIG_fail;
39209 }
39210 resultobj = SWIG_Py_Void();
39211 if (SWIG_IsTmpObj(res2)) {
39212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39213 } else {
39214 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39216 }
39217 if (SWIG_IsTmpObj(res3)) {
39218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39219 } else {
39220 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39222 }
39223 return resultobj;
39224fail:
39225 return NULL;
39226}
39227
39228
39229SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39230 PyObject *resultobj = 0;
39231 wxPyControl *arg1 = (wxPyControl *) 0 ;
39232 int *arg2 = (int *) 0 ;
39233 int *arg3 = (int *) 0 ;
39234 void *argp1 = 0 ;
39235 int res1 = 0 ;
39236 int temp2 ;
39237 int res2 = SWIG_TMPOBJ ;
39238 int temp3 ;
39239 int res3 = SWIG_TMPOBJ ;
39240 PyObject *swig_obj[1] ;
39241
39242 arg2 = &temp2;
39243 arg3 = &temp3;
39244 if (!args) SWIG_fail;
39245 swig_obj[0] = args;
39246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39247 if (!SWIG_IsOK(res1)) {
39248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39249 }
39250 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39251 {
39252 PyThreadState* __tstate = wxPyBeginAllowThreads();
39253 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39254 wxPyEndAllowThreads(__tstate);
39255 if (PyErr_Occurred()) SWIG_fail;
39256 }
39257 resultobj = SWIG_Py_Void();
39258 if (SWIG_IsTmpObj(res2)) {
39259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39260 } else {
39261 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39263 }
39264 if (SWIG_IsTmpObj(res3)) {
39265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39266 } else {
39267 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39269 }
39270 return resultobj;
39271fail:
39272 return NULL;
d55e5bfc
RD
39273}
39274
39275
1bd55598
RD
39276SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39277 PyObject *resultobj = 0;
39278 wxPyControl *arg1 = (wxPyControl *) 0 ;
39279 wxSize result;
39280 void *argp1 = 0 ;
39281 int res1 = 0 ;
39282 PyObject *swig_obj[1] ;
39283
39284 if (!args) SWIG_fail;
39285 swig_obj[0] = args;
39286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39287 if (!SWIG_IsOK(res1)) {
39288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39289 }
39290 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39291 {
39292 PyThreadState* __tstate = wxPyBeginAllowThreads();
39293 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39294 wxPyEndAllowThreads(__tstate);
39295 if (PyErr_Occurred()) SWIG_fail;
39296 }
39297 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39298 return resultobj;
39299fail:
39300 return NULL;
7e08d4ef
RD
39301}
39302
39303
1bd55598
RD
39304SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39305 PyObject *resultobj = 0;
39306 wxPyControl *arg1 = (wxPyControl *) 0 ;
39307 wxSize result;
39308 void *argp1 = 0 ;
39309 int res1 = 0 ;
39310 PyObject *swig_obj[1] ;
39311
39312 if (!args) SWIG_fail;
39313 swig_obj[0] = args;
39314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39315 if (!SWIG_IsOK(res1)) {
39316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39317 }
39318 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39319 {
39320 PyThreadState* __tstate = wxPyBeginAllowThreads();
39321 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39322 wxPyEndAllowThreads(__tstate);
39323 if (PyErr_Occurred()) SWIG_fail;
39324 }
39325 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39326 return resultobj;
39327fail:
39328 return NULL;
d55e5bfc
RD
39329}
39330
39331
1bd55598
RD
39332SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39333 PyObject *resultobj = 0;
39334 wxPyControl *arg1 = (wxPyControl *) 0 ;
39335 SwigValueWrapper<wxVisualAttributes > result;
39336 void *argp1 = 0 ;
39337 int res1 = 0 ;
39338 PyObject *swig_obj[1] ;
39339
39340 if (!args) SWIG_fail;
39341 swig_obj[0] = args;
39342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39343 if (!SWIG_IsOK(res1)) {
39344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39345 }
39346 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39347 {
39348 PyThreadState* __tstate = wxPyBeginAllowThreads();
39349 result = (arg1)->GetDefaultAttributes();
39350 wxPyEndAllowThreads(__tstate);
39351 if (PyErr_Occurred()) SWIG_fail;
39352 }
39353 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39354 return resultobj;
39355fail:
39356 return NULL;
d55e5bfc
RD
39357}
39358
39359
1bd55598
RD
39360SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39361 PyObject *resultobj = 0;
39362 wxPyControl *arg1 = (wxPyControl *) 0 ;
39363 void *argp1 = 0 ;
39364 int res1 = 0 ;
39365 PyObject *swig_obj[1] ;
39366
39367 if (!args) SWIG_fail;
39368 swig_obj[0] = args;
39369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39370 if (!SWIG_IsOK(res1)) {
39371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39372 }
39373 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39374 {
39375 PyThreadState* __tstate = wxPyBeginAllowThreads();
39376 (arg1)->OnInternalIdle();
39377 wxPyEndAllowThreads(__tstate);
39378 if (PyErr_Occurred()) SWIG_fail;
39379 }
39380 resultobj = SWIG_Py_Void();
39381 return resultobj;
39382fail:
39383 return NULL;
39384}
39385
39386
39387SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39388 PyObject *obj;
39389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39390 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39391 return SWIG_Py_Void();
39392}
39393
39394SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39395 return SWIG_Python_InitShadowInstance(args);
39396}
39397
39398SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39399 PyObject *resultobj = 0;
39400 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39401 int arg2 = (int) 0 ;
39402 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39403 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39404 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39405 wxHelpEvent *result = 0 ;
39406 int val1 ;
39407 int ecode1 = 0 ;
39408 int val2 ;
39409 int ecode2 = 0 ;
39410 wxPoint temp3 ;
704eda0c
RD
39411 int val4 ;
39412 int ecode4 = 0 ;
1bd55598
RD
39413 PyObject * obj0 = 0 ;
39414 PyObject * obj1 = 0 ;
39415 PyObject * obj2 = 0 ;
704eda0c 39416 PyObject * obj3 = 0 ;
1bd55598 39417 char * kwnames[] = {
704eda0c 39418 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39419 };
39420
704eda0c 39421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39422 if (obj0) {
39423 ecode1 = SWIG_AsVal_int(obj0, &val1);
39424 if (!SWIG_IsOK(ecode1)) {
39425 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39426 }
39427 arg1 = static_cast< wxEventType >(val1);
39428 }
39429 if (obj1) {
39430 ecode2 = SWIG_AsVal_int(obj1, &val2);
39431 if (!SWIG_IsOK(ecode2)) {
39432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39433 }
39434 arg2 = static_cast< int >(val2);
39435 }
39436 if (obj2) {
d55e5bfc 39437 {
1bd55598
RD
39438 arg3 = &temp3;
39439 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39440 }
1bd55598 39441 }
704eda0c
RD
39442 if (obj3) {
39443 ecode4 = SWIG_AsVal_int(obj3, &val4);
39444 if (!SWIG_IsOK(ecode4)) {
39445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39446 }
39447 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39448 }
1bd55598
RD
39449 {
39450 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39451 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39452 wxPyEndAllowThreads(__tstate);
39453 if (PyErr_Occurred()) SWIG_fail;
39454 }
39455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39456 return resultobj;
39457fail:
39458 return NULL;
d55e5bfc
RD
39459}
39460
39461
1bd55598
RD
39462SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39463 PyObject *resultobj = 0;
39464 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39465 wxPoint result;
39466 void *argp1 = 0 ;
39467 int res1 = 0 ;
39468 PyObject *swig_obj[1] ;
39469
39470 if (!args) SWIG_fail;
39471 swig_obj[0] = args;
39472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39473 if (!SWIG_IsOK(res1)) {
39474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39475 }
39476 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39477 {
39478 PyThreadState* __tstate = wxPyBeginAllowThreads();
39479 result = ((wxHelpEvent const *)arg1)->GetPosition();
39480 wxPyEndAllowThreads(__tstate);
39481 if (PyErr_Occurred()) SWIG_fail;
39482 }
39483 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39484 return resultobj;
39485fail:
39486 return NULL;
39487}
39488
39489
39490SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39491 PyObject *resultobj = 0;
39492 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39493 wxPoint *arg2 = 0 ;
39494 void *argp1 = 0 ;
39495 int res1 = 0 ;
39496 wxPoint temp2 ;
39497 PyObject * obj0 = 0 ;
39498 PyObject * obj1 = 0 ;
39499 char * kwnames[] = {
39500 (char *) "self",(char *) "pos", NULL
39501 };
39502
39503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39505 if (!SWIG_IsOK(res1)) {
39506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39507 }
39508 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39509 {
39510 arg2 = &temp2;
39511 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39512 }
39513 {
39514 PyThreadState* __tstate = wxPyBeginAllowThreads();
39515 (arg1)->SetPosition((wxPoint const &)*arg2);
39516 wxPyEndAllowThreads(__tstate);
39517 if (PyErr_Occurred()) SWIG_fail;
39518 }
39519 resultobj = SWIG_Py_Void();
39520 return resultobj;
39521fail:
39522 return NULL;
d55e5bfc
RD
39523}
39524
39525
1bd55598
RD
39526SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39527 PyObject *resultobj = 0;
39528 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39529 wxString *result = 0 ;
39530 void *argp1 = 0 ;
39531 int res1 = 0 ;
39532 PyObject *swig_obj[1] ;
39533
39534 if (!args) SWIG_fail;
39535 swig_obj[0] = args;
39536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39537 if (!SWIG_IsOK(res1)) {
39538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39539 }
39540 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39541 {
39542 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39543 {
1bd55598
RD
39544 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39545 result = (wxString *) &_result_ref;
d55e5bfc 39546 }
1bd55598
RD
39547 wxPyEndAllowThreads(__tstate);
39548 if (PyErr_Occurred()) SWIG_fail;
39549 }
39550 {
39551#if wxUSE_UNICODE
39552 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39553#else
39554 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39555#endif
39556 }
39557 return resultobj;
39558fail:
39559 return NULL;
39560}
39561
39562
39563SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39564 PyObject *resultobj = 0;
39565 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39566 wxString *arg2 = 0 ;
39567 void *argp1 = 0 ;
39568 int res1 = 0 ;
39569 bool temp2 = false ;
39570 PyObject * obj0 = 0 ;
39571 PyObject * obj1 = 0 ;
39572 char * kwnames[] = {
39573 (char *) "self",(char *) "link", NULL
39574 };
39575
39576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39578 if (!SWIG_IsOK(res1)) {
39579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39580 }
39581 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39582 {
39583 arg2 = wxString_in_helper(obj1);
39584 if (arg2 == NULL) SWIG_fail;
39585 temp2 = true;
39586 }
39587 {
39588 PyThreadState* __tstate = wxPyBeginAllowThreads();
39589 (arg1)->SetLink((wxString const &)*arg2);
39590 wxPyEndAllowThreads(__tstate);
39591 if (PyErr_Occurred()) SWIG_fail;
39592 }
39593 resultobj = SWIG_Py_Void();
39594 {
39595 if (temp2)
39596 delete arg2;
39597 }
39598 return resultobj;
39599fail:
39600 {
39601 if (temp2)
39602 delete arg2;
39603 }
39604 return NULL;
d55e5bfc
RD
39605}
39606
39607
1bd55598
RD
39608SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39609 PyObject *resultobj = 0;
39610 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39611 wxString *result = 0 ;
39612 void *argp1 = 0 ;
39613 int res1 = 0 ;
39614 PyObject *swig_obj[1] ;
39615
39616 if (!args) SWIG_fail;
39617 swig_obj[0] = args;
39618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39619 if (!SWIG_IsOK(res1)) {
39620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39621 }
39622 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39623 {
39624 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39625 {
1bd55598
RD
39626 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39627 result = (wxString *) &_result_ref;
d55e5bfc 39628 }
1bd55598
RD
39629 wxPyEndAllowThreads(__tstate);
39630 if (PyErr_Occurred()) SWIG_fail;
39631 }
39632 {
39633#if wxUSE_UNICODE
39634 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39635#else
39636 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39637#endif
39638 }
39639 return resultobj;
39640fail:
39641 return NULL;
39642}
39643
39644
39645SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39646 PyObject *resultobj = 0;
39647 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39648 wxString *arg2 = 0 ;
39649 void *argp1 = 0 ;
39650 int res1 = 0 ;
39651 bool temp2 = false ;
39652 PyObject * obj0 = 0 ;
39653 PyObject * obj1 = 0 ;
39654 char * kwnames[] = {
39655 (char *) "self",(char *) "target", NULL
39656 };
39657
39658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39660 if (!SWIG_IsOK(res1)) {
39661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39662 }
39663 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39664 {
39665 arg2 = wxString_in_helper(obj1);
39666 if (arg2 == NULL) SWIG_fail;
39667 temp2 = true;
39668 }
39669 {
39670 PyThreadState* __tstate = wxPyBeginAllowThreads();
39671 (arg1)->SetTarget((wxString const &)*arg2);
39672 wxPyEndAllowThreads(__tstate);
39673 if (PyErr_Occurred()) SWIG_fail;
39674 }
39675 resultobj = SWIG_Py_Void();
39676 {
39677 if (temp2)
39678 delete arg2;
39679 }
39680 return resultobj;
39681fail:
39682 {
39683 if (temp2)
39684 delete arg2;
39685 }
39686 return NULL;
d55e5bfc
RD
39687}
39688
39689
704eda0c
RD
39690SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39691 PyObject *resultobj = 0;
39692 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39693 wxHelpEvent::Origin result;
39694 void *argp1 = 0 ;
39695 int res1 = 0 ;
39696 PyObject *swig_obj[1] ;
39697
39698 if (!args) SWIG_fail;
39699 swig_obj[0] = args;
39700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39701 if (!SWIG_IsOK(res1)) {
39702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39703 }
39704 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39705 {
39706 PyThreadState* __tstate = wxPyBeginAllowThreads();
39707 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39708 wxPyEndAllowThreads(__tstate);
39709 if (PyErr_Occurred()) SWIG_fail;
39710 }
39711 resultobj = SWIG_From_int(static_cast< int >(result));
39712 return resultobj;
39713fail:
39714 return NULL;
39715}
39716
39717
39718SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39719 PyObject *resultobj = 0;
39720 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39721 wxHelpEvent::Origin arg2 ;
39722 void *argp1 = 0 ;
39723 int res1 = 0 ;
39724 int val2 ;
39725 int ecode2 = 0 ;
39726 PyObject * obj0 = 0 ;
39727 PyObject * obj1 = 0 ;
39728 char * kwnames[] = {
39729 (char *) "self",(char *) "origin", NULL
39730 };
39731
39732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39734 if (!SWIG_IsOK(res1)) {
39735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39736 }
39737 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39738 ecode2 = SWIG_AsVal_int(obj1, &val2);
39739 if (!SWIG_IsOK(ecode2)) {
39740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39741 }
39742 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39743 {
39744 PyThreadState* __tstate = wxPyBeginAllowThreads();
39745 (arg1)->SetOrigin(arg2);
39746 wxPyEndAllowThreads(__tstate);
39747 if (PyErr_Occurred()) SWIG_fail;
39748 }
39749 resultobj = SWIG_Py_Void();
39750 return resultobj;
39751fail:
39752 return NULL;
39753}
39754
39755
1bd55598
RD
39756SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39757 PyObject *obj;
39758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39759 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39760 return SWIG_Py_Void();
39761}
39762
39763SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39764 return SWIG_Python_InitShadowInstance(args);
39765}
39766
39767SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39768 PyObject *resultobj = 0;
39769 wxWindow *arg1 = (wxWindow *) NULL ;
39770 bool arg2 = (bool) true ;
39771 wxContextHelp *result = 0 ;
39772 void *argp1 = 0 ;
39773 int res1 = 0 ;
39774 bool val2 ;
39775 int ecode2 = 0 ;
39776 PyObject * obj0 = 0 ;
39777 PyObject * obj1 = 0 ;
39778 char * kwnames[] = {
39779 (char *) "window",(char *) "doNow", NULL
39780 };
39781
39782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39783 if (obj0) {
39784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39785 if (!SWIG_IsOK(res1)) {
39786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39787 }
1bd55598
RD
39788 arg1 = reinterpret_cast< wxWindow * >(argp1);
39789 }
39790 if (obj1) {
39791 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39792 if (!SWIG_IsOK(ecode2)) {
39793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39794 }
39795 arg2 = static_cast< bool >(val2);
39796 }
39797 {
39798 if (!wxPyCheckForApp()) SWIG_fail;
39799 PyThreadState* __tstate = wxPyBeginAllowThreads();
39800 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39801 wxPyEndAllowThreads(__tstate);
39802 if (PyErr_Occurred()) SWIG_fail;
39803 }
39804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39805 return resultobj;
39806fail:
39807 return NULL;
d55e5bfc
RD
39808}
39809
39810
1bd55598
RD
39811SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39812 PyObject *resultobj = 0;
39813 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39814 void *argp1 = 0 ;
39815 int res1 = 0 ;
39816 PyObject *swig_obj[1] ;
39817
39818 if (!args) SWIG_fail;
39819 swig_obj[0] = args;
39820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39821 if (!SWIG_IsOK(res1)) {
39822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39823 }
39824 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39825 {
39826 PyThreadState* __tstate = wxPyBeginAllowThreads();
39827 delete arg1;
d55e5bfc 39828
1bd55598
RD
39829 wxPyEndAllowThreads(__tstate);
39830 if (PyErr_Occurred()) SWIG_fail;
39831 }
39832 resultobj = SWIG_Py_Void();
39833 return resultobj;
39834fail:
39835 return NULL;
39836}
39837
39838
39839SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39840 PyObject *resultobj = 0;
39841 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39842 wxWindow *arg2 = (wxWindow *) NULL ;
39843 bool result;
39844 void *argp1 = 0 ;
39845 int res1 = 0 ;
39846 void *argp2 = 0 ;
39847 int res2 = 0 ;
39848 PyObject * obj0 = 0 ;
39849 PyObject * obj1 = 0 ;
39850 char * kwnames[] = {
39851 (char *) "self",(char *) "window", NULL
39852 };
39853
39854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39856 if (!SWIG_IsOK(res1)) {
39857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39858 }
39859 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39860 if (obj1) {
39861 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39862 if (!SWIG_IsOK(res2)) {
39863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39864 }
1bd55598
RD
39865 arg2 = reinterpret_cast< wxWindow * >(argp2);
39866 }
39867 {
39868 PyThreadState* __tstate = wxPyBeginAllowThreads();
39869 result = (bool)(arg1)->BeginContextHelp(arg2);
39870 wxPyEndAllowThreads(__tstate);
39871 if (PyErr_Occurred()) SWIG_fail;
39872 }
39873 {
39874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39875 }
39876 return resultobj;
39877fail:
39878 return NULL;
d55e5bfc
RD
39879}
39880
39881
1bd55598
RD
39882SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39883 PyObject *resultobj = 0;
39884 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39885 bool result;
39886 void *argp1 = 0 ;
39887 int res1 = 0 ;
39888 PyObject *swig_obj[1] ;
39889
39890 if (!args) SWIG_fail;
39891 swig_obj[0] = args;
39892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39893 if (!SWIG_IsOK(res1)) {
39894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39895 }
39896 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39897 {
39898 PyThreadState* __tstate = wxPyBeginAllowThreads();
39899 result = (bool)(arg1)->EndContextHelp();
39900 wxPyEndAllowThreads(__tstate);
39901 if (PyErr_Occurred()) SWIG_fail;
39902 }
39903 {
39904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39905 }
39906 return resultobj;
39907fail:
39908 return NULL;
39909}
39910
39911
39912SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39913 PyObject *obj;
39914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39915 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39916 return SWIG_Py_Void();
39917}
39918
39919SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39920 return SWIG_Python_InitShadowInstance(args);
39921}
39922
39923SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39924 PyObject *resultobj = 0;
39925 wxWindow *arg1 = (wxWindow *) 0 ;
39926 int arg2 = (int) wxID_CONTEXT_HELP ;
39927 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39928 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39929 wxSize const &arg4_defvalue = wxDefaultSize ;
39930 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39931 long arg5 = (long) wxBU_AUTODRAW ;
39932 wxContextHelpButton *result = 0 ;
39933 void *argp1 = 0 ;
39934 int res1 = 0 ;
39935 int val2 ;
39936 int ecode2 = 0 ;
39937 wxPoint temp3 ;
39938 wxSize temp4 ;
39939 long val5 ;
39940 int ecode5 = 0 ;
39941 PyObject * obj0 = 0 ;
39942 PyObject * obj1 = 0 ;
39943 PyObject * obj2 = 0 ;
39944 PyObject * obj3 = 0 ;
39945 PyObject * obj4 = 0 ;
39946 char * kwnames[] = {
39947 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39948 };
39949
39950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39952 if (!SWIG_IsOK(res1)) {
39953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39954 }
39955 arg1 = reinterpret_cast< wxWindow * >(argp1);
39956 if (obj1) {
39957 ecode2 = SWIG_AsVal_int(obj1, &val2);
39958 if (!SWIG_IsOK(ecode2)) {
39959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39960 }
39961 arg2 = static_cast< int >(val2);
39962 }
39963 if (obj2) {
d55e5bfc 39964 {
1bd55598
RD
39965 arg3 = &temp3;
39966 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39967 }
1bd55598
RD
39968 }
39969 if (obj3) {
d55e5bfc 39970 {
1bd55598
RD
39971 arg4 = &temp4;
39972 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39973 }
1bd55598
RD
39974 }
39975 if (obj4) {
39976 ecode5 = SWIG_AsVal_long(obj4, &val5);
39977 if (!SWIG_IsOK(ecode5)) {
39978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39979 }
39980 arg5 = static_cast< long >(val5);
39981 }
39982 {
39983 if (!wxPyCheckForApp()) SWIG_fail;
39984 PyThreadState* __tstate = wxPyBeginAllowThreads();
39985 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39986 wxPyEndAllowThreads(__tstate);
39987 if (PyErr_Occurred()) SWIG_fail;
39988 }
39989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39990 return resultobj;
39991fail:
39992 return NULL;
d55e5bfc
RD
39993}
39994
39995
1bd55598
RD
39996SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39997 PyObject *obj;
39998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39999 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40000 return SWIG_Py_Void();
d55e5bfc
RD
40001}
40002
1bd55598
RD
40003SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40004 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
40005}
40006
f52cbe90
RD
40007SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40008 PyObject *resultobj = 0;
40009 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40010 void *argp1 = 0 ;
40011 int res1 = 0 ;
40012 PyObject *swig_obj[1] ;
40013
40014 if (!args) SWIG_fail;
40015 swig_obj[0] = args;
40016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40017 if (!SWIG_IsOK(res1)) {
40018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40019 }
40020 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40021 {
40022 PyThreadState* __tstate = wxPyBeginAllowThreads();
40023 delete arg1;
40024
40025 wxPyEndAllowThreads(__tstate);
40026 if (PyErr_Occurred()) SWIG_fail;
40027 }
40028 resultobj = SWIG_Py_Void();
40029 return resultobj;
40030fail:
40031 return NULL;
40032}
40033
40034
1bd55598
RD
40035SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40036 PyObject *resultobj = 0;
40037 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40038 wxHelpProvider *result = 0 ;
40039 int res1 = 0 ;
40040 PyObject * obj0 = 0 ;
40041 char * kwnames[] = {
40042 (char *) "helpProvider", NULL
40043 };
40044
40045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40046 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40047 if (!SWIG_IsOK(res1)) {
40048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40049 }
40050 {
40051 PyThreadState* __tstate = wxPyBeginAllowThreads();
40052 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40053 wxPyEndAllowThreads(__tstate);
40054 if (PyErr_Occurred()) SWIG_fail;
40055 }
40056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40057 return resultobj;
40058fail:
40059 return NULL;
d55e5bfc
RD
40060}
40061
40062
1bd55598
RD
40063SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40064 PyObject *resultobj = 0;
40065 wxHelpProvider *result = 0 ;
40066
40067 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40068 {
40069 PyThreadState* __tstate = wxPyBeginAllowThreads();
40070 result = (wxHelpProvider *)wxHelpProvider::Get();
40071 wxPyEndAllowThreads(__tstate);
40072 if (PyErr_Occurred()) SWIG_fail;
40073 }
40074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40075 return resultobj;
40076fail:
40077 return NULL;
40078}
40079
40080
40081SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40082 PyObject *resultobj = 0;
40083 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40084 wxWindow *arg2 = (wxWindow *) 0 ;
40085 wxString result;
40086 void *argp1 = 0 ;
40087 int res1 = 0 ;
40088 void *argp2 = 0 ;
40089 int res2 = 0 ;
40090 PyObject * obj0 = 0 ;
40091 PyObject * obj1 = 0 ;
40092 char * kwnames[] = {
40093 (char *) "self",(char *) "window", NULL
40094 };
40095
40096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40098 if (!SWIG_IsOK(res1)) {
40099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40100 }
40101 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40102 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40103 if (!SWIG_IsOK(res2)) {
40104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40105 }
40106 arg2 = reinterpret_cast< wxWindow * >(argp2);
40107 {
40108 PyThreadState* __tstate = wxPyBeginAllowThreads();
40109 result = (arg1)->GetHelp((wxWindow const *)arg2);
40110 wxPyEndAllowThreads(__tstate);
40111 if (PyErr_Occurred()) SWIG_fail;
40112 }
40113 {
40114#if wxUSE_UNICODE
40115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40116#else
40117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40118#endif
40119 }
40120 return resultobj;
40121fail:
40122 return NULL;
40123}
40124
40125
40126SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40127 PyObject *resultobj = 0;
40128 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40129 wxWindow *arg2 = (wxWindow *) 0 ;
40130 bool result;
40131 void *argp1 = 0 ;
40132 int res1 = 0 ;
40133 void *argp2 = 0 ;
40134 int res2 = 0 ;
40135 PyObject * obj0 = 0 ;
40136 PyObject * obj1 = 0 ;
40137 char * kwnames[] = {
40138 (char *) "self",(char *) "window", NULL
40139 };
40140
40141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40143 if (!SWIG_IsOK(res1)) {
40144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40145 }
40146 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40148 if (!SWIG_IsOK(res2)) {
40149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40150 }
40151 arg2 = reinterpret_cast< wxWindow * >(argp2);
40152 {
40153 PyThreadState* __tstate = wxPyBeginAllowThreads();
40154 result = (bool)(arg1)->ShowHelp(arg2);
40155 wxPyEndAllowThreads(__tstate);
40156 if (PyErr_Occurred()) SWIG_fail;
40157 }
40158 {
40159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40160 }
40161 return resultobj;
40162fail:
40163 return NULL;
40164}
40165
40166
b850e7f3
RD
40167SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40168 PyObject *resultobj = 0;
40169 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40170 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40171 wxPoint *arg3 = 0 ;
40172 wxHelpEvent::Origin arg4 ;
40173 bool result;
40174 void *argp1 = 0 ;
40175 int res1 = 0 ;
40176 void *argp2 = 0 ;
40177 int res2 = 0 ;
40178 wxPoint temp3 ;
40179 int val4 ;
40180 int ecode4 = 0 ;
40181 PyObject * obj0 = 0 ;
40182 PyObject * obj1 = 0 ;
40183 PyObject * obj2 = 0 ;
40184 PyObject * obj3 = 0 ;
40185 char * kwnames[] = {
40186 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40187 };
40188
40189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40191 if (!SWIG_IsOK(res1)) {
40192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40193 }
40194 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40195 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40196 if (!SWIG_IsOK(res2)) {
40197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40198 }
40199 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40200 {
40201 arg3 = &temp3;
40202 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40203 }
40204 ecode4 = SWIG_AsVal_int(obj3, &val4);
40205 if (!SWIG_IsOK(ecode4)) {
40206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40207 }
40208 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40209 {
40210 PyThreadState* __tstate = wxPyBeginAllowThreads();
40211 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40212 wxPyEndAllowThreads(__tstate);
40213 if (PyErr_Occurred()) SWIG_fail;
40214 }
40215 {
40216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40217 }
40218 return resultobj;
40219fail:
40220 return NULL;
40221}
40222
40223
1bd55598
RD
40224SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40225 PyObject *resultobj = 0;
40226 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40227 wxWindow *arg2 = (wxWindow *) 0 ;
40228 wxString *arg3 = 0 ;
40229 void *argp1 = 0 ;
40230 int res1 = 0 ;
40231 void *argp2 = 0 ;
40232 int res2 = 0 ;
40233 bool temp3 = false ;
40234 PyObject * obj0 = 0 ;
40235 PyObject * obj1 = 0 ;
40236 PyObject * obj2 = 0 ;
40237 char * kwnames[] = {
40238 (char *) "self",(char *) "window",(char *) "text", NULL
40239 };
40240
40241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40243 if (!SWIG_IsOK(res1)) {
40244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40245 }
40246 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40248 if (!SWIG_IsOK(res2)) {
40249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40250 }
40251 arg2 = reinterpret_cast< wxWindow * >(argp2);
40252 {
40253 arg3 = wxString_in_helper(obj2);
40254 if (arg3 == NULL) SWIG_fail;
40255 temp3 = true;
40256 }
40257 {
40258 PyThreadState* __tstate = wxPyBeginAllowThreads();
40259 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40260 wxPyEndAllowThreads(__tstate);
40261 if (PyErr_Occurred()) SWIG_fail;
40262 }
40263 resultobj = SWIG_Py_Void();
40264 {
40265 if (temp3)
40266 delete arg3;
40267 }
40268 return resultobj;
40269fail:
40270 {
40271 if (temp3)
40272 delete arg3;
40273 }
40274 return NULL;
40275}
40276
40277
40278SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40279 PyObject *resultobj = 0;
40280 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40281 int arg2 ;
40282 wxString *arg3 = 0 ;
40283 void *argp1 = 0 ;
40284 int res1 = 0 ;
40285 int val2 ;
40286 int ecode2 = 0 ;
40287 bool temp3 = false ;
40288 PyObject * obj0 = 0 ;
40289 PyObject * obj1 = 0 ;
40290 PyObject * obj2 = 0 ;
40291 char * kwnames[] = {
40292 (char *) "self",(char *) "id",(char *) "text", NULL
40293 };
40294
40295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40297 if (!SWIG_IsOK(res1)) {
40298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40299 }
40300 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40301 ecode2 = SWIG_AsVal_int(obj1, &val2);
40302 if (!SWIG_IsOK(ecode2)) {
40303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40304 }
40305 arg2 = static_cast< int >(val2);
40306 {
40307 arg3 = wxString_in_helper(obj2);
40308 if (arg3 == NULL) SWIG_fail;
40309 temp3 = true;
40310 }
40311 {
40312 PyThreadState* __tstate = wxPyBeginAllowThreads();
40313 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40314 wxPyEndAllowThreads(__tstate);
40315 if (PyErr_Occurred()) SWIG_fail;
40316 }
40317 resultobj = SWIG_Py_Void();
40318 {
40319 if (temp3)
40320 delete arg3;
40321 }
40322 return resultobj;
40323fail:
40324 {
40325 if (temp3)
40326 delete arg3;
40327 }
40328 return NULL;
40329}
40330
40331
40332SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40333 PyObject *resultobj = 0;
40334 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40335 wxWindow *arg2 = (wxWindow *) 0 ;
40336 void *argp1 = 0 ;
40337 int res1 = 0 ;
40338 void *argp2 = 0 ;
40339 int res2 = 0 ;
40340 PyObject * obj0 = 0 ;
40341 PyObject * obj1 = 0 ;
40342 char * kwnames[] = {
40343 (char *) "self",(char *) "window", NULL
40344 };
40345
40346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40348 if (!SWIG_IsOK(res1)) {
40349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40350 }
40351 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40353 if (!SWIG_IsOK(res2)) {
40354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40355 }
40356 arg2 = reinterpret_cast< wxWindow * >(argp2);
40357 {
40358 PyThreadState* __tstate = wxPyBeginAllowThreads();
40359 (arg1)->RemoveHelp(arg2);
40360 wxPyEndAllowThreads(__tstate);
40361 if (PyErr_Occurred()) SWIG_fail;
40362 }
40363 resultobj = SWIG_Py_Void();
40364 return resultobj;
40365fail:
40366 return NULL;
d55e5bfc
RD
40367}
40368
40369
1bd55598
RD
40370SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40371 PyObject *resultobj = 0;
40372 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40373 void *argp1 = 0 ;
40374 int res1 = 0 ;
40375 PyObject *swig_obj[1] ;
40376
40377 if (!args) SWIG_fail;
40378 swig_obj[0] = args;
40379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40380 if (!SWIG_IsOK(res1)) {
40381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40382 }
40383 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40384 {
40385 PyThreadState* __tstate = wxPyBeginAllowThreads();
40386 wxHelpProvider_Destroy(arg1);
40387 wxPyEndAllowThreads(__tstate);
40388 if (PyErr_Occurred()) SWIG_fail;
40389 }
40390 resultobj = SWIG_Py_Void();
40391 return resultobj;
40392fail:
40393 return NULL;
d55e5bfc
RD
40394}
40395
40396
1bd55598
RD
40397SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40398 PyObject *obj;
40399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40400 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40401 return SWIG_Py_Void();
d55e5bfc
RD
40402}
40403
1bd55598
RD
40404SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40405 PyObject *resultobj = 0;
40406 wxSimpleHelpProvider *result = 0 ;
40407
40408 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40409 {
40410 PyThreadState* __tstate = wxPyBeginAllowThreads();
40411 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40412 wxPyEndAllowThreads(__tstate);
40413 if (PyErr_Occurred()) SWIG_fail;
40414 }
40415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40416 return resultobj;
40417fail:
40418 return NULL;
40419}
40420
40421
40422SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40423 PyObject *obj;
40424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40425 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40426 return SWIG_Py_Void();
40427}
40428
40429SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40430 return SWIG_Python_InitShadowInstance(args);
40431}
40432
40433SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40434 PyObject *resultobj = 0;
40435 wxBitmap *arg1 = 0 ;
40436 wxCursor const &arg2_defvalue = wxNullCursor ;
40437 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40438 wxGenericDragImage *result = 0 ;
40439 void *argp1 = 0 ;
40440 int res1 = 0 ;
40441 void *argp2 = 0 ;
40442 int res2 = 0 ;
40443 PyObject * obj0 = 0 ;
40444 PyObject * obj1 = 0 ;
40445 char * kwnames[] = {
40446 (char *) "image",(char *) "cursor", NULL
40447 };
40448
40449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40450 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40451 if (!SWIG_IsOK(res1)) {
40452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40453 }
40454 if (!argp1) {
40455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40456 }
40457 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40458 if (obj1) {
40459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40460 if (!SWIG_IsOK(res2)) {
40461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40462 }
1bd55598
RD
40463 if (!argp2) {
40464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40465 }
1bd55598
RD
40466 arg2 = reinterpret_cast< wxCursor * >(argp2);
40467 }
40468 {
40469 if (!wxPyCheckForApp()) SWIG_fail;
40470 PyThreadState* __tstate = wxPyBeginAllowThreads();
40471 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40472 wxPyEndAllowThreads(__tstate);
40473 if (PyErr_Occurred()) SWIG_fail;
40474 }
40475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40476 return resultobj;
40477fail:
40478 return NULL;
40479}
40480
40481
40482SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40483 PyObject *resultobj = 0;
40484 wxIcon *arg1 = 0 ;
40485 wxCursor const &arg2_defvalue = wxNullCursor ;
40486 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40487 wxGenericDragImage *result = 0 ;
40488 void *argp1 = 0 ;
40489 int res1 = 0 ;
40490 void *argp2 = 0 ;
40491 int res2 = 0 ;
40492 PyObject * obj0 = 0 ;
40493 PyObject * obj1 = 0 ;
40494 char * kwnames[] = {
40495 (char *) "image",(char *) "cursor", NULL
40496 };
40497
40498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40499 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40500 if (!SWIG_IsOK(res1)) {
40501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40502 }
40503 if (!argp1) {
40504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40505 }
40506 arg1 = reinterpret_cast< wxIcon * >(argp1);
40507 if (obj1) {
40508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40509 if (!SWIG_IsOK(res2)) {
40510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40511 }
1bd55598
RD
40512 if (!argp2) {
40513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40514 }
1bd55598
RD
40515 arg2 = reinterpret_cast< wxCursor * >(argp2);
40516 }
40517 {
40518 if (!wxPyCheckForApp()) SWIG_fail;
40519 PyThreadState* __tstate = wxPyBeginAllowThreads();
40520 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40521 wxPyEndAllowThreads(__tstate);
40522 if (PyErr_Occurred()) SWIG_fail;
40523 }
40524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40525 return resultobj;
40526fail:
40527 return NULL;
40528}
40529
40530
40531SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40532 PyObject *resultobj = 0;
40533 wxString *arg1 = 0 ;
40534 wxCursor const &arg2_defvalue = wxNullCursor ;
40535 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40536 wxGenericDragImage *result = 0 ;
40537 bool temp1 = false ;
40538 void *argp2 = 0 ;
40539 int res2 = 0 ;
40540 PyObject * obj0 = 0 ;
40541 PyObject * obj1 = 0 ;
40542 char * kwnames[] = {
40543 (char *) "str",(char *) "cursor", NULL
40544 };
40545
40546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40547 {
40548 arg1 = wxString_in_helper(obj0);
40549 if (arg1 == NULL) SWIG_fail;
40550 temp1 = true;
40551 }
40552 if (obj1) {
40553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40554 if (!SWIG_IsOK(res2)) {
40555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40556 }
1bd55598
RD
40557 if (!argp2) {
40558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40559 }
1bd55598
RD
40560 arg2 = reinterpret_cast< wxCursor * >(argp2);
40561 }
40562 {
40563 if (!wxPyCheckForApp()) SWIG_fail;
40564 PyThreadState* __tstate = wxPyBeginAllowThreads();
40565 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40566 wxPyEndAllowThreads(__tstate);
40567 if (PyErr_Occurred()) SWIG_fail;
40568 }
40569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40570 {
40571 if (temp1)
40572 delete arg1;
40573 }
40574 return resultobj;
40575fail:
40576 {
40577 if (temp1)
40578 delete arg1;
40579 }
40580 return NULL;
40581}
40582
40583
40584SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40585 PyObject *resultobj = 0;
40586 wxPyTreeCtrl *arg1 = 0 ;
40587 wxTreeItemId *arg2 = 0 ;
40588 wxGenericDragImage *result = 0 ;
40589 void *argp1 = 0 ;
40590 int res1 = 0 ;
40591 void *argp2 = 0 ;
40592 int res2 = 0 ;
40593 PyObject * obj0 = 0 ;
40594 PyObject * obj1 = 0 ;
40595 char * kwnames[] = {
40596 (char *) "treeCtrl",(char *) "id", NULL
40597 };
40598
40599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40600 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40601 if (!SWIG_IsOK(res1)) {
40602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40603 }
40604 if (!argp1) {
40605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40606 }
40607 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40609 if (!SWIG_IsOK(res2)) {
40610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40611 }
40612 if (!argp2) {
40613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40614 }
40615 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40616 {
40617 if (!wxPyCheckForApp()) SWIG_fail;
40618 PyThreadState* __tstate = wxPyBeginAllowThreads();
40619 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40620 wxPyEndAllowThreads(__tstate);
40621 if (PyErr_Occurred()) SWIG_fail;
40622 }
40623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40624 return resultobj;
40625fail:
40626 return NULL;
40627}
40628
40629
40630SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40631 PyObject *resultobj = 0;
40632 wxPyListCtrl *arg1 = 0 ;
40633 long arg2 ;
40634 wxGenericDragImage *result = 0 ;
40635 void *argp1 = 0 ;
40636 int res1 = 0 ;
40637 long val2 ;
40638 int ecode2 = 0 ;
40639 PyObject * obj0 = 0 ;
40640 PyObject * obj1 = 0 ;
40641 char * kwnames[] = {
40642 (char *) "listCtrl",(char *) "id", NULL
40643 };
40644
40645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40646 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40647 if (!SWIG_IsOK(res1)) {
40648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40649 }
40650 if (!argp1) {
40651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40652 }
40653 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40654 ecode2 = SWIG_AsVal_long(obj1, &val2);
40655 if (!SWIG_IsOK(ecode2)) {
40656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40657 }
40658 arg2 = static_cast< long >(val2);
40659 {
40660 if (!wxPyCheckForApp()) SWIG_fail;
40661 PyThreadState* __tstate = wxPyBeginAllowThreads();
40662 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40663 wxPyEndAllowThreads(__tstate);
40664 if (PyErr_Occurred()) SWIG_fail;
40665 }
40666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40667 return resultobj;
40668fail:
40669 return NULL;
d55e5bfc
RD
40670}
40671
40672
1bd55598
RD
40673SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40674 PyObject *resultobj = 0;
40675 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40676 void *argp1 = 0 ;
40677 int res1 = 0 ;
40678 PyObject *swig_obj[1] ;
40679
40680 if (!args) SWIG_fail;
40681 swig_obj[0] = args;
40682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40683 if (!SWIG_IsOK(res1)) {
40684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40685 }
40686 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40687 {
40688 PyThreadState* __tstate = wxPyBeginAllowThreads();
40689 delete arg1;
d55e5bfc 40690
1bd55598
RD
40691 wxPyEndAllowThreads(__tstate);
40692 if (PyErr_Occurred()) SWIG_fail;
40693 }
40694 resultobj = SWIG_Py_Void();
40695 return resultobj;
40696fail:
40697 return NULL;
40698}
40699
40700
40701SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40702 PyObject *resultobj = 0;
40703 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40704 wxBitmap *arg2 = (wxBitmap *) 0 ;
40705 void *argp1 = 0 ;
40706 int res1 = 0 ;
40707 void *argp2 = 0 ;
40708 int res2 = 0 ;
40709 PyObject * obj0 = 0 ;
40710 PyObject * obj1 = 0 ;
40711 char * kwnames[] = {
40712 (char *) "self",(char *) "bitmap", NULL
40713 };
40714
40715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40717 if (!SWIG_IsOK(res1)) {
40718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40719 }
40720 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40722 if (!SWIG_IsOK(res2)) {
40723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40724 }
40725 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40726 {
40727 PyThreadState* __tstate = wxPyBeginAllowThreads();
40728 (arg1)->SetBackingBitmap(arg2);
40729 wxPyEndAllowThreads(__tstate);
40730 if (PyErr_Occurred()) SWIG_fail;
40731 }
40732 resultobj = SWIG_Py_Void();
40733 return resultobj;
40734fail:
40735 return NULL;
40736}
40737
40738
40739SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40740 PyObject *resultobj = 0;
40741 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40742 wxPoint *arg2 = 0 ;
40743 wxWindow *arg3 = (wxWindow *) 0 ;
40744 bool arg4 = (bool) false ;
40745 wxRect *arg5 = (wxRect *) NULL ;
40746 bool result;
40747 void *argp1 = 0 ;
40748 int res1 = 0 ;
40749 wxPoint temp2 ;
40750 void *argp3 = 0 ;
40751 int res3 = 0 ;
40752 bool val4 ;
40753 int ecode4 = 0 ;
40754 void *argp5 = 0 ;
40755 int res5 = 0 ;
40756 PyObject * obj0 = 0 ;
40757 PyObject * obj1 = 0 ;
40758 PyObject * obj2 = 0 ;
40759 PyObject * obj3 = 0 ;
40760 PyObject * obj4 = 0 ;
40761 char * kwnames[] = {
40762 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40763 };
40764
40765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40767 if (!SWIG_IsOK(res1)) {
40768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40769 }
40770 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40771 {
40772 arg2 = &temp2;
40773 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40774 }
40775 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40776 if (!SWIG_IsOK(res3)) {
40777 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40778 }
40779 arg3 = reinterpret_cast< wxWindow * >(argp3);
40780 if (obj3) {
40781 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40782 if (!SWIG_IsOK(ecode4)) {
40783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40784 }
40785 arg4 = static_cast< bool >(val4);
40786 }
40787 if (obj4) {
40788 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40789 if (!SWIG_IsOK(res5)) {
40790 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40791 }
1bd55598
RD
40792 arg5 = reinterpret_cast< wxRect * >(argp5);
40793 }
40794 {
40795 PyThreadState* __tstate = wxPyBeginAllowThreads();
40796 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40797 wxPyEndAllowThreads(__tstate);
40798 if (PyErr_Occurred()) SWIG_fail;
40799 }
40800 {
40801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40802 }
40803 return resultobj;
40804fail:
40805 return NULL;
40806}
40807
40808
40809SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40810 PyObject *resultobj = 0;
40811 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40812 wxPoint *arg2 = 0 ;
40813 wxWindow *arg3 = (wxWindow *) 0 ;
40814 wxWindow *arg4 = (wxWindow *) 0 ;
40815 bool result;
40816 void *argp1 = 0 ;
40817 int res1 = 0 ;
40818 wxPoint temp2 ;
40819 void *argp3 = 0 ;
40820 int res3 = 0 ;
40821 void *argp4 = 0 ;
40822 int res4 = 0 ;
40823 PyObject * obj0 = 0 ;
40824 PyObject * obj1 = 0 ;
40825 PyObject * obj2 = 0 ;
40826 PyObject * obj3 = 0 ;
40827 char * kwnames[] = {
40828 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40829 };
40830
40831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40833 if (!SWIG_IsOK(res1)) {
40834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40835 }
40836 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40837 {
40838 arg2 = &temp2;
40839 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40840 }
40841 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40842 if (!SWIG_IsOK(res3)) {
40843 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40844 }
40845 arg3 = reinterpret_cast< wxWindow * >(argp3);
40846 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40847 if (!SWIG_IsOK(res4)) {
40848 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40849 }
40850 arg4 = reinterpret_cast< wxWindow * >(argp4);
40851 {
40852 PyThreadState* __tstate = wxPyBeginAllowThreads();
40853 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40854 wxPyEndAllowThreads(__tstate);
40855 if (PyErr_Occurred()) SWIG_fail;
40856 }
40857 {
40858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40859 }
40860 return resultobj;
40861fail:
40862 return NULL;
d55e5bfc
RD
40863}
40864
40865
1bd55598
RD
40866SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40867 PyObject *resultobj = 0;
40868 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40869 bool result;
40870 void *argp1 = 0 ;
40871 int res1 = 0 ;
40872 PyObject *swig_obj[1] ;
40873
40874 if (!args) SWIG_fail;
40875 swig_obj[0] = args;
40876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40877 if (!SWIG_IsOK(res1)) {
40878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40879 }
40880 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40881 {
40882 PyThreadState* __tstate = wxPyBeginAllowThreads();
40883 result = (bool)(arg1)->EndDrag();
40884 wxPyEndAllowThreads(__tstate);
40885 if (PyErr_Occurred()) SWIG_fail;
40886 }
40887 {
40888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40889 }
40890 return resultobj;
40891fail:
40892 return NULL;
40893}
40894
40895
40896SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40897 PyObject *resultobj = 0;
40898 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40899 wxPoint *arg2 = 0 ;
40900 bool result;
40901 void *argp1 = 0 ;
40902 int res1 = 0 ;
40903 wxPoint temp2 ;
40904 PyObject * obj0 = 0 ;
40905 PyObject * obj1 = 0 ;
40906 char * kwnames[] = {
40907 (char *) "self",(char *) "pt", NULL
40908 };
40909
40910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40912 if (!SWIG_IsOK(res1)) {
40913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40914 }
40915 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40916 {
40917 arg2 = &temp2;
40918 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40919 }
40920 {
40921 PyThreadState* __tstate = wxPyBeginAllowThreads();
40922 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40923 wxPyEndAllowThreads(__tstate);
40924 if (PyErr_Occurred()) SWIG_fail;
40925 }
40926 {
40927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40928 }
40929 return resultobj;
40930fail:
40931 return NULL;
d55e5bfc
RD
40932}
40933
40934
1bd55598
RD
40935SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40936 PyObject *resultobj = 0;
40937 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40938 bool result;
40939 void *argp1 = 0 ;
40940 int res1 = 0 ;
40941 PyObject *swig_obj[1] ;
40942
40943 if (!args) SWIG_fail;
40944 swig_obj[0] = args;
40945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40946 if (!SWIG_IsOK(res1)) {
40947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40948 }
40949 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40950 {
40951 PyThreadState* __tstate = wxPyBeginAllowThreads();
40952 result = (bool)(arg1)->Show();
40953 wxPyEndAllowThreads(__tstate);
40954 if (PyErr_Occurred()) SWIG_fail;
40955 }
40956 {
40957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40958 }
40959 return resultobj;
40960fail:
40961 return NULL;
d55e5bfc
RD
40962}
40963
40964
1bd55598
RD
40965SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40966 PyObject *resultobj = 0;
40967 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40968 bool result;
40969 void *argp1 = 0 ;
40970 int res1 = 0 ;
40971 PyObject *swig_obj[1] ;
40972
40973 if (!args) SWIG_fail;
40974 swig_obj[0] = args;
40975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40976 if (!SWIG_IsOK(res1)) {
40977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40978 }
40979 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40980 {
40981 PyThreadState* __tstate = wxPyBeginAllowThreads();
40982 result = (bool)(arg1)->Hide();
40983 wxPyEndAllowThreads(__tstate);
40984 if (PyErr_Occurred()) SWIG_fail;
40985 }
40986 {
40987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40988 }
40989 return resultobj;
40990fail:
40991 return NULL;
40992}
40993
40994
40995SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40996 PyObject *resultobj = 0;
40997 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40998 wxPoint *arg2 = 0 ;
40999 wxRect result;
41000 void *argp1 = 0 ;
41001 int res1 = 0 ;
41002 wxPoint temp2 ;
41003 PyObject * obj0 = 0 ;
41004 PyObject * obj1 = 0 ;
41005 char * kwnames[] = {
41006 (char *) "self",(char *) "pos", NULL
41007 };
41008
41009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41011 if (!SWIG_IsOK(res1)) {
41012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41013 }
41014 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41015 {
41016 arg2 = &temp2;
41017 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41018 }
41019 {
41020 PyThreadState* __tstate = wxPyBeginAllowThreads();
41021 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41022 wxPyEndAllowThreads(__tstate);
41023 if (PyErr_Occurred()) SWIG_fail;
41024 }
41025 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41026 return resultobj;
41027fail:
41028 return NULL;
41029}
41030
41031
41032SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41033 PyObject *resultobj = 0;
41034 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41035 wxDC *arg2 = 0 ;
41036 wxPoint *arg3 = 0 ;
41037 bool result;
41038 void *argp1 = 0 ;
41039 int res1 = 0 ;
41040 void *argp2 = 0 ;
41041 int res2 = 0 ;
41042 wxPoint temp3 ;
41043 PyObject * obj0 = 0 ;
41044 PyObject * obj1 = 0 ;
41045 PyObject * obj2 = 0 ;
41046 char * kwnames[] = {
41047 (char *) "self",(char *) "dc",(char *) "pos", NULL
41048 };
41049
41050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41052 if (!SWIG_IsOK(res1)) {
41053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41054 }
41055 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41057 if (!SWIG_IsOK(res2)) {
41058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41059 }
41060 if (!argp2) {
41061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41062 }
41063 arg2 = reinterpret_cast< wxDC * >(argp2);
41064 {
41065 arg3 = &temp3;
41066 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41067 }
41068 {
41069 PyThreadState* __tstate = wxPyBeginAllowThreads();
41070 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41071 wxPyEndAllowThreads(__tstate);
41072 if (PyErr_Occurred()) SWIG_fail;
41073 }
41074 {
41075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41076 }
41077 return resultobj;
41078fail:
41079 return NULL;
41080}
41081
41082
41083SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41084 PyObject *resultobj = 0;
41085 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41086 wxDC *arg2 = 0 ;
41087 wxMemoryDC *arg3 = 0 ;
41088 wxRect *arg4 = 0 ;
41089 wxRect *arg5 = 0 ;
41090 bool result;
41091 void *argp1 = 0 ;
41092 int res1 = 0 ;
41093 void *argp2 = 0 ;
41094 int res2 = 0 ;
41095 void *argp3 = 0 ;
41096 int res3 = 0 ;
41097 wxRect temp4 ;
41098 wxRect temp5 ;
41099 PyObject * obj0 = 0 ;
41100 PyObject * obj1 = 0 ;
41101 PyObject * obj2 = 0 ;
41102 PyObject * obj3 = 0 ;
41103 PyObject * obj4 = 0 ;
41104 char * kwnames[] = {
41105 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41106 };
41107
41108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41110 if (!SWIG_IsOK(res1)) {
41111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41112 }
41113 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41115 if (!SWIG_IsOK(res2)) {
41116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41117 }
41118 if (!argp2) {
41119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41120 }
41121 arg2 = reinterpret_cast< wxDC * >(argp2);
41122 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41123 if (!SWIG_IsOK(res3)) {
41124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41125 }
41126 if (!argp3) {
41127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41128 }
41129 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41130 {
41131 arg4 = &temp4;
41132 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41133 }
41134 {
41135 arg5 = &temp5;
41136 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41137 }
41138 {
41139 PyThreadState* __tstate = wxPyBeginAllowThreads();
41140 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41141 wxPyEndAllowThreads(__tstate);
41142 if (PyErr_Occurred()) SWIG_fail;
41143 }
41144 {
41145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41146 }
41147 return resultobj;
41148fail:
41149 return NULL;
41150}
41151
41152
41153SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41154 PyObject *resultobj = 0;
41155 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41156 wxPoint *arg2 = 0 ;
41157 wxPoint *arg3 = 0 ;
41158 bool arg4 ;
41159 bool arg5 ;
41160 bool result;
41161 void *argp1 = 0 ;
41162 int res1 = 0 ;
41163 wxPoint temp2 ;
41164 wxPoint temp3 ;
41165 bool val4 ;
41166 int ecode4 = 0 ;
41167 bool val5 ;
41168 int ecode5 = 0 ;
41169 PyObject * obj0 = 0 ;
41170 PyObject * obj1 = 0 ;
41171 PyObject * obj2 = 0 ;
41172 PyObject * obj3 = 0 ;
41173 PyObject * obj4 = 0 ;
41174 char * kwnames[] = {
41175 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41176 };
41177
41178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41180 if (!SWIG_IsOK(res1)) {
41181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41182 }
41183 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41184 {
41185 arg2 = &temp2;
41186 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41187 }
41188 {
41189 arg3 = &temp3;
41190 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41191 }
41192 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41193 if (!SWIG_IsOK(ecode4)) {
41194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41195 }
41196 arg4 = static_cast< bool >(val4);
41197 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41198 if (!SWIG_IsOK(ecode5)) {
41199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41200 }
41201 arg5 = static_cast< bool >(val5);
41202 {
41203 PyThreadState* __tstate = wxPyBeginAllowThreads();
41204 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41205 wxPyEndAllowThreads(__tstate);
41206 if (PyErr_Occurred()) SWIG_fail;
41207 }
41208 {
41209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41210 }
41211 return resultobj;
41212fail:
41213 return NULL;
d55e5bfc
RD
41214}
41215
41216
1bd55598
RD
41217SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41218 PyObject *obj;
41219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41220 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41221 return SWIG_Py_Void();
d55e5bfc
RD
41222}
41223
1bd55598
RD
41224SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41225 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41226}
41227
1bd55598
RD
41228SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41229 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41230 return 1;
d55e5bfc
RD
41231}
41232
41233
1bd55598
RD
41234SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41235 PyObject *pyobj = 0;
41236
41237 {
41238#if wxUSE_UNICODE
41239 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41240#else
41241 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41242#endif
41243 }
41244 return pyobj;
41245}
41246
41247
41248SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41249 PyObject *resultobj = 0;
41250 wxWindow *arg1 = (wxWindow *) 0 ;
41251 int arg2 = (int) -1 ;
41252 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41253 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41254 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41255 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41256 wxSize const &arg5_defvalue = wxDefaultSize ;
41257 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41258 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41259 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41260 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41261 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41262 wxString *arg8 = (wxString *) &arg8_defvalue ;
41263 wxDatePickerCtrl *result = 0 ;
41264 void *argp1 = 0 ;
41265 int res1 = 0 ;
41266 int val2 ;
41267 int ecode2 = 0 ;
41268 void *argp3 = 0 ;
41269 int res3 = 0 ;
41270 wxPoint temp4 ;
41271 wxSize temp5 ;
41272 long val6 ;
41273 int ecode6 = 0 ;
41274 void *argp7 = 0 ;
41275 int res7 = 0 ;
41276 bool temp8 = false ;
41277 PyObject * obj0 = 0 ;
41278 PyObject * obj1 = 0 ;
41279 PyObject * obj2 = 0 ;
41280 PyObject * obj3 = 0 ;
41281 PyObject * obj4 = 0 ;
41282 PyObject * obj5 = 0 ;
41283 PyObject * obj6 = 0 ;
41284 PyObject * obj7 = 0 ;
41285 char * kwnames[] = {
41286 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41287 };
41288
41289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41291 if (!SWIG_IsOK(res1)) {
41292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41293 }
41294 arg1 = reinterpret_cast< wxWindow * >(argp1);
41295 if (obj1) {
41296 ecode2 = SWIG_AsVal_int(obj1, &val2);
41297 if (!SWIG_IsOK(ecode2)) {
41298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41299 }
41300 arg2 = static_cast< int >(val2);
41301 }
41302 if (obj2) {
41303 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41304 if (!SWIG_IsOK(res3)) {
41305 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41306 }
1bd55598
RD
41307 if (!argp3) {
41308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41309 }
1bd55598
RD
41310 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41311 }
41312 if (obj3) {
36ed4f51 41313 {
1bd55598
RD
41314 arg4 = &temp4;
41315 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41316 }
1bd55598
RD
41317 }
41318 if (obj4) {
d55e5bfc 41319 {
1bd55598
RD
41320 arg5 = &temp5;
41321 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41322 }
1bd55598
RD
41323 }
41324 if (obj5) {
41325 ecode6 = SWIG_AsVal_long(obj5, &val6);
41326 if (!SWIG_IsOK(ecode6)) {
41327 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41328 }
41329 arg6 = static_cast< long >(val6);
41330 }
41331 if (obj6) {
41332 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41333 if (!SWIG_IsOK(res7)) {
41334 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41335 }
1bd55598
RD
41336 if (!argp7) {
41337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41338 }
1bd55598
RD
41339 arg7 = reinterpret_cast< wxValidator * >(argp7);
41340 }
41341 if (obj7) {
36ed4f51 41342 {
1bd55598
RD
41343 arg8 = wxString_in_helper(obj7);
41344 if (arg8 == NULL) SWIG_fail;
41345 temp8 = true;
36ed4f51 41346 }
1bd55598
RD
41347 }
41348 {
41349 if (!wxPyCheckForApp()) SWIG_fail;
41350 PyThreadState* __tstate = wxPyBeginAllowThreads();
41351 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41352 wxPyEndAllowThreads(__tstate);
41353 if (PyErr_Occurred()) SWIG_fail;
41354 }
41355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41356 {
41357 if (temp8)
41358 delete arg8;
41359 }
41360 return resultobj;
41361fail:
41362 {
41363 if (temp8)
41364 delete arg8;
41365 }
41366 return NULL;
d55e5bfc
RD
41367}
41368
41369
1bd55598
RD
41370SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41371 PyObject *resultobj = 0;
41372 wxDatePickerCtrl *result = 0 ;
41373
41374 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41375 {
41376 if (!wxPyCheckForApp()) SWIG_fail;
41377 PyThreadState* __tstate = wxPyBeginAllowThreads();
41378 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41379 wxPyEndAllowThreads(__tstate);
41380 if (PyErr_Occurred()) SWIG_fail;
41381 }
41382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41383 return resultobj;
41384fail:
41385 return NULL;
41386}
41387
41388
41389SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41390 PyObject *resultobj = 0;
41391 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41392 wxWindow *arg2 = (wxWindow *) 0 ;
41393 int arg3 = (int) -1 ;
41394 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41395 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41396 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41397 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41398 wxSize const &arg6_defvalue = wxDefaultSize ;
41399 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41400 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41401 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41402 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41403 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41404 wxString *arg9 = (wxString *) &arg9_defvalue ;
41405 bool result;
41406 void *argp1 = 0 ;
41407 int res1 = 0 ;
41408 void *argp2 = 0 ;
41409 int res2 = 0 ;
41410 int val3 ;
41411 int ecode3 = 0 ;
41412 void *argp4 = 0 ;
41413 int res4 = 0 ;
41414 wxPoint temp5 ;
41415 wxSize temp6 ;
41416 long val7 ;
41417 int ecode7 = 0 ;
41418 void *argp8 = 0 ;
41419 int res8 = 0 ;
41420 bool temp9 = false ;
41421 PyObject * obj0 = 0 ;
41422 PyObject * obj1 = 0 ;
41423 PyObject * obj2 = 0 ;
41424 PyObject * obj3 = 0 ;
41425 PyObject * obj4 = 0 ;
41426 PyObject * obj5 = 0 ;
41427 PyObject * obj6 = 0 ;
41428 PyObject * obj7 = 0 ;
41429 PyObject * obj8 = 0 ;
41430 char * kwnames[] = {
41431 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41432 };
41433
41434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41436 if (!SWIG_IsOK(res1)) {
41437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41438 }
41439 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41441 if (!SWIG_IsOK(res2)) {
41442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41443 }
41444 arg2 = reinterpret_cast< wxWindow * >(argp2);
41445 if (obj2) {
41446 ecode3 = SWIG_AsVal_int(obj2, &val3);
41447 if (!SWIG_IsOK(ecode3)) {
41448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41449 }
41450 arg3 = static_cast< int >(val3);
41451 }
41452 if (obj3) {
41453 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41454 if (!SWIG_IsOK(res4)) {
41455 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41456 }
1bd55598
RD
41457 if (!argp4) {
41458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41459 }
1bd55598
RD
41460 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41461 }
41462 if (obj4) {
d55e5bfc 41463 {
1bd55598
RD
41464 arg5 = &temp5;
41465 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41466 }
1bd55598
RD
41467 }
41468 if (obj5) {
d55e5bfc 41469 {
1bd55598
RD
41470 arg6 = &temp6;
41471 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41472 }
1bd55598
RD
41473 }
41474 if (obj6) {
41475 ecode7 = SWIG_AsVal_long(obj6, &val7);
41476 if (!SWIG_IsOK(ecode7)) {
41477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41478 }
41479 arg7 = static_cast< long >(val7);
41480 }
41481 if (obj7) {
41482 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41483 if (!SWIG_IsOK(res8)) {
41484 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41485 }
1bd55598
RD
41486 if (!argp8) {
41487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41488 }
1bd55598
RD
41489 arg8 = reinterpret_cast< wxValidator * >(argp8);
41490 }
41491 if (obj8) {
36ed4f51 41492 {
1bd55598
RD
41493 arg9 = wxString_in_helper(obj8);
41494 if (arg9 == NULL) SWIG_fail;
41495 temp9 = true;
36ed4f51 41496 }
1bd55598
RD
41497 }
41498 {
41499 PyThreadState* __tstate = wxPyBeginAllowThreads();
41500 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41501 wxPyEndAllowThreads(__tstate);
41502 if (PyErr_Occurred()) SWIG_fail;
41503 }
41504 {
41505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41506 }
41507 {
41508 if (temp9)
41509 delete arg9;
41510 }
41511 return resultobj;
41512fail:
41513 {
41514 if (temp9)
41515 delete arg9;
41516 }
41517 return NULL;
41518}
41519
41520
41521SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41522 PyObject *resultobj = 0;
41523 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41524 wxDateTime *arg2 = 0 ;
41525 void *argp1 = 0 ;
41526 int res1 = 0 ;
41527 void *argp2 = 0 ;
41528 int res2 = 0 ;
41529 PyObject * obj0 = 0 ;
41530 PyObject * obj1 = 0 ;
41531 char * kwnames[] = {
41532 (char *) "self",(char *) "dt", NULL
41533 };
41534
41535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41537 if (!SWIG_IsOK(res1)) {
41538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41539 }
41540 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41542 if (!SWIG_IsOK(res2)) {
41543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41544 }
41545 if (!argp2) {
41546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41547 }
41548 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41549 {
41550 PyThreadState* __tstate = wxPyBeginAllowThreads();
41551 (arg1)->SetValue((wxDateTime const &)*arg2);
41552 wxPyEndAllowThreads(__tstate);
41553 if (PyErr_Occurred()) SWIG_fail;
41554 }
41555 resultobj = SWIG_Py_Void();
41556 return resultobj;
41557fail:
41558 return NULL;
d55e5bfc
RD
41559}
41560
41561
1bd55598
RD
41562SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41563 PyObject *resultobj = 0;
41564 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41565 wxDateTime result;
41566 void *argp1 = 0 ;
41567 int res1 = 0 ;
41568 PyObject *swig_obj[1] ;
41569
41570 if (!args) SWIG_fail;
41571 swig_obj[0] = args;
41572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41573 if (!SWIG_IsOK(res1)) {
41574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41575 }
41576 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41577 {
41578 PyThreadState* __tstate = wxPyBeginAllowThreads();
41579 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41580 wxPyEndAllowThreads(__tstate);
41581 if (PyErr_Occurred()) SWIG_fail;
41582 }
41583 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41584 return resultobj;
41585fail:
41586 return NULL;
41587}
41588
41589
41590SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41591 PyObject *resultobj = 0;
41592 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41593 wxDateTime *arg2 = 0 ;
41594 wxDateTime *arg3 = 0 ;
41595 void *argp1 = 0 ;
41596 int res1 = 0 ;
41597 void *argp2 = 0 ;
41598 int res2 = 0 ;
41599 void *argp3 = 0 ;
41600 int res3 = 0 ;
41601 PyObject * obj0 = 0 ;
41602 PyObject * obj1 = 0 ;
41603 PyObject * obj2 = 0 ;
41604 char * kwnames[] = {
41605 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41606 };
41607
41608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41610 if (!SWIG_IsOK(res1)) {
41611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41612 }
41613 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41615 if (!SWIG_IsOK(res2)) {
41616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41617 }
41618 if (!argp2) {
41619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41620 }
41621 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41622 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41623 if (!SWIG_IsOK(res3)) {
41624 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41625 }
41626 if (!argp3) {
41627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41628 }
41629 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41630 {
41631 PyThreadState* __tstate = wxPyBeginAllowThreads();
41632 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41633 wxPyEndAllowThreads(__tstate);
41634 if (PyErr_Occurred()) SWIG_fail;
41635 }
41636 resultobj = SWIG_Py_Void();
41637 return resultobj;
41638fail:
41639 return NULL;
d55e5bfc
RD
41640}
41641
41642
1bd55598
RD
41643SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41644 PyObject *resultobj = 0;
41645 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41646 wxDateTime result;
41647 void *argp1 = 0 ;
41648 int res1 = 0 ;
41649 PyObject *swig_obj[1] ;
41650
41651 if (!args) SWIG_fail;
41652 swig_obj[0] = args;
41653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41654 if (!SWIG_IsOK(res1)) {
41655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41656 }
41657 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41658 {
41659 PyThreadState* __tstate = wxPyBeginAllowThreads();
41660 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41661 wxPyEndAllowThreads(__tstate);
41662 if (PyErr_Occurred()) SWIG_fail;
41663 }
41664 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41665 return resultobj;
41666fail:
41667 return NULL;
d55e5bfc
RD
41668}
41669
41670
1bd55598
RD
41671SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41672 PyObject *resultobj = 0;
41673 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41674 wxDateTime result;
41675 void *argp1 = 0 ;
41676 int res1 = 0 ;
41677 PyObject *swig_obj[1] ;
41678
41679 if (!args) SWIG_fail;
41680 swig_obj[0] = args;
41681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41682 if (!SWIG_IsOK(res1)) {
41683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41684 }
41685 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41686 {
41687 PyThreadState* __tstate = wxPyBeginAllowThreads();
41688 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41689 wxPyEndAllowThreads(__tstate);
41690 if (PyErr_Occurred()) SWIG_fail;
41691 }
41692 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41693 return resultobj;
41694fail:
41695 return NULL;
d55e5bfc
RD
41696}
41697
41698
1bd55598
RD
41699SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41700 PyObject *obj;
41701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41702 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41703 return SWIG_Py_Void();
d55e5bfc
RD
41704}
41705
1bd55598
RD
41706SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41707 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41708}
41709
704eda0c
RD
41710SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41711 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41712 return 1;
41713}
41714
41715
41716SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41717 PyObject *pyobj = 0;
41718
41719 {
41720#if wxUSE_UNICODE
41721 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41722#else
41723 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41724#endif
41725 }
41726 return pyobj;
41727}
41728
41729
41730SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41731 PyObject *resultobj = 0;
41732 wxWindow *arg1 = (wxWindow *) 0 ;
41733 int arg2 ;
41734 wxString *arg3 = 0 ;
41735 wxString *arg4 = 0 ;
41736 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41737 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41738 wxSize const &arg6_defvalue = wxDefaultSize ;
41739 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41740 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41741 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41742 wxString *arg8 = (wxString *) &arg8_defvalue ;
41743 wxHyperlinkCtrl *result = 0 ;
41744 void *argp1 = 0 ;
41745 int res1 = 0 ;
41746 int val2 ;
41747 int ecode2 = 0 ;
41748 bool temp3 = false ;
41749 bool temp4 = false ;
41750 wxPoint temp5 ;
41751 wxSize temp6 ;
41752 long val7 ;
41753 int ecode7 = 0 ;
41754 bool temp8 = false ;
41755 PyObject * obj0 = 0 ;
41756 PyObject * obj1 = 0 ;
41757 PyObject * obj2 = 0 ;
41758 PyObject * obj3 = 0 ;
41759 PyObject * obj4 = 0 ;
41760 PyObject * obj5 = 0 ;
41761 PyObject * obj6 = 0 ;
41762 PyObject * obj7 = 0 ;
41763 char * kwnames[] = {
41764 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41765 };
41766
41767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41769 if (!SWIG_IsOK(res1)) {
41770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41771 }
41772 arg1 = reinterpret_cast< wxWindow * >(argp1);
41773 ecode2 = SWIG_AsVal_int(obj1, &val2);
41774 if (!SWIG_IsOK(ecode2)) {
41775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41776 }
41777 arg2 = static_cast< int >(val2);
41778 {
41779 arg3 = wxString_in_helper(obj2);
41780 if (arg3 == NULL) SWIG_fail;
41781 temp3 = true;
41782 }
41783 {
41784 arg4 = wxString_in_helper(obj3);
41785 if (arg4 == NULL) SWIG_fail;
41786 temp4 = true;
41787 }
41788 if (obj4) {
41789 {
41790 arg5 = &temp5;
41791 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41792 }
41793 }
41794 if (obj5) {
41795 {
41796 arg6 = &temp6;
41797 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41798 }
41799 }
41800 if (obj6) {
41801 ecode7 = SWIG_AsVal_long(obj6, &val7);
41802 if (!SWIG_IsOK(ecode7)) {
41803 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41804 }
41805 arg7 = static_cast< long >(val7);
41806 }
41807 if (obj7) {
41808 {
41809 arg8 = wxString_in_helper(obj7);
41810 if (arg8 == NULL) SWIG_fail;
41811 temp8 = true;
41812 }
41813 }
41814 {
41815 if (!wxPyCheckForApp()) SWIG_fail;
41816 PyThreadState* __tstate = wxPyBeginAllowThreads();
41817 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41818 wxPyEndAllowThreads(__tstate);
41819 if (PyErr_Occurred()) SWIG_fail;
41820 }
41821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41822 {
41823 if (temp3)
41824 delete arg3;
41825 }
41826 {
41827 if (temp4)
41828 delete arg4;
41829 }
41830 {
41831 if (temp8)
41832 delete arg8;
41833 }
41834 return resultobj;
41835fail:
41836 {
41837 if (temp3)
41838 delete arg3;
41839 }
41840 {
41841 if (temp4)
41842 delete arg4;
41843 }
41844 {
41845 if (temp8)
41846 delete arg8;
41847 }
41848 return NULL;
41849}
41850
41851
41852SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41853 PyObject *resultobj = 0;
41854 wxHyperlinkCtrl *result = 0 ;
41855
41856 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41857 {
41858 if (!wxPyCheckForApp()) SWIG_fail;
41859 PyThreadState* __tstate = wxPyBeginAllowThreads();
41860 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41861 wxPyEndAllowThreads(__tstate);
41862 if (PyErr_Occurred()) SWIG_fail;
41863 }
41864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41865 return resultobj;
41866fail:
41867 return NULL;
41868}
41869
41870
41871SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41872 PyObject *resultobj = 0;
41873 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41874 wxWindow *arg2 = (wxWindow *) 0 ;
41875 int arg3 ;
41876 wxString *arg4 = 0 ;
41877 wxString *arg5 = 0 ;
41878 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41879 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41880 wxSize const &arg7_defvalue = wxDefaultSize ;
41881 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41882 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41883 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41884 wxString *arg9 = (wxString *) &arg9_defvalue ;
41885 bool result;
41886 void *argp1 = 0 ;
41887 int res1 = 0 ;
41888 void *argp2 = 0 ;
41889 int res2 = 0 ;
41890 int val3 ;
41891 int ecode3 = 0 ;
41892 bool temp4 = false ;
41893 bool temp5 = false ;
41894 wxPoint temp6 ;
41895 wxSize temp7 ;
41896 long val8 ;
41897 int ecode8 = 0 ;
41898 bool temp9 = false ;
41899 PyObject * obj0 = 0 ;
41900 PyObject * obj1 = 0 ;
41901 PyObject * obj2 = 0 ;
41902 PyObject * obj3 = 0 ;
41903 PyObject * obj4 = 0 ;
41904 PyObject * obj5 = 0 ;
41905 PyObject * obj6 = 0 ;
41906 PyObject * obj7 = 0 ;
41907 PyObject * obj8 = 0 ;
41908 char * kwnames[] = {
41909 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41910 };
41911
41912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41914 if (!SWIG_IsOK(res1)) {
41915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41916 }
41917 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41919 if (!SWIG_IsOK(res2)) {
41920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41921 }
41922 arg2 = reinterpret_cast< wxWindow * >(argp2);
41923 ecode3 = SWIG_AsVal_int(obj2, &val3);
41924 if (!SWIG_IsOK(ecode3)) {
41925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41926 }
41927 arg3 = static_cast< int >(val3);
41928 {
41929 arg4 = wxString_in_helper(obj3);
41930 if (arg4 == NULL) SWIG_fail;
41931 temp4 = true;
41932 }
41933 {
41934 arg5 = wxString_in_helper(obj4);
41935 if (arg5 == NULL) SWIG_fail;
41936 temp5 = true;
41937 }
41938 if (obj5) {
41939 {
41940 arg6 = &temp6;
41941 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41942 }
41943 }
41944 if (obj6) {
41945 {
41946 arg7 = &temp7;
41947 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41948 }
41949 }
41950 if (obj7) {
41951 ecode8 = SWIG_AsVal_long(obj7, &val8);
41952 if (!SWIG_IsOK(ecode8)) {
41953 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41954 }
41955 arg8 = static_cast< long >(val8);
41956 }
41957 if (obj8) {
41958 {
41959 arg9 = wxString_in_helper(obj8);
41960 if (arg9 == NULL) SWIG_fail;
41961 temp9 = true;
41962 }
41963 }
41964 {
41965 PyThreadState* __tstate = wxPyBeginAllowThreads();
41966 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41967 wxPyEndAllowThreads(__tstate);
41968 if (PyErr_Occurred()) SWIG_fail;
41969 }
41970 {
41971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41972 }
41973 {
41974 if (temp4)
41975 delete arg4;
41976 }
41977 {
41978 if (temp5)
41979 delete arg5;
41980 }
41981 {
41982 if (temp9)
41983 delete arg9;
41984 }
41985 return resultobj;
41986fail:
41987 {
41988 if (temp4)
41989 delete arg4;
41990 }
41991 {
41992 if (temp5)
41993 delete arg5;
41994 }
41995 {
41996 if (temp9)
41997 delete arg9;
41998 }
41999 return NULL;
42000}
42001
42002
42003SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42004 PyObject *resultobj = 0;
42005 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42006 wxColour result;
42007 void *argp1 = 0 ;
42008 int res1 = 0 ;
42009 PyObject *swig_obj[1] ;
42010
42011 if (!args) SWIG_fail;
42012 swig_obj[0] = args;
42013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42014 if (!SWIG_IsOK(res1)) {
42015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42016 }
42017 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42018 {
42019 PyThreadState* __tstate = wxPyBeginAllowThreads();
42020 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42021 wxPyEndAllowThreads(__tstate);
42022 if (PyErr_Occurred()) SWIG_fail;
42023 }
42024 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42025 return resultobj;
42026fail:
42027 return NULL;
42028}
42029
42030
42031SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42032 PyObject *resultobj = 0;
42033 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42034 wxColour *arg2 = 0 ;
42035 void *argp1 = 0 ;
42036 int res1 = 0 ;
42037 wxColour temp2 ;
42038 PyObject * obj0 = 0 ;
42039 PyObject * obj1 = 0 ;
42040 char * kwnames[] = {
42041 (char *) "self",(char *) "colour", NULL
42042 };
42043
42044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42046 if (!SWIG_IsOK(res1)) {
42047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42048 }
42049 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42050 {
42051 arg2 = &temp2;
42052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42053 }
42054 {
42055 PyThreadState* __tstate = wxPyBeginAllowThreads();
42056 (arg1)->SetHoverColour((wxColour const &)*arg2);
42057 wxPyEndAllowThreads(__tstate);
42058 if (PyErr_Occurred()) SWIG_fail;
42059 }
42060 resultobj = SWIG_Py_Void();
42061 return resultobj;
42062fail:
42063 return NULL;
42064}
42065
42066
42067SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42068 PyObject *resultobj = 0;
42069 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42070 wxColour result;
42071 void *argp1 = 0 ;
42072 int res1 = 0 ;
42073 PyObject *swig_obj[1] ;
42074
42075 if (!args) SWIG_fail;
42076 swig_obj[0] = args;
42077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42078 if (!SWIG_IsOK(res1)) {
42079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42080 }
42081 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42082 {
42083 PyThreadState* __tstate = wxPyBeginAllowThreads();
42084 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42085 wxPyEndAllowThreads(__tstate);
42086 if (PyErr_Occurred()) SWIG_fail;
42087 }
42088 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42089 return resultobj;
42090fail:
42091 return NULL;
42092}
42093
42094
42095SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42096 PyObject *resultobj = 0;
42097 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42098 wxColour *arg2 = 0 ;
42099 void *argp1 = 0 ;
42100 int res1 = 0 ;
42101 wxColour temp2 ;
42102 PyObject * obj0 = 0 ;
42103 PyObject * obj1 = 0 ;
42104 char * kwnames[] = {
42105 (char *) "self",(char *) "colour", NULL
42106 };
42107
42108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42110 if (!SWIG_IsOK(res1)) {
42111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42112 }
42113 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42114 {
42115 arg2 = &temp2;
42116 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42117 }
42118 {
42119 PyThreadState* __tstate = wxPyBeginAllowThreads();
42120 (arg1)->SetNormalColour((wxColour const &)*arg2);
42121 wxPyEndAllowThreads(__tstate);
42122 if (PyErr_Occurred()) SWIG_fail;
42123 }
42124 resultobj = SWIG_Py_Void();
42125 return resultobj;
42126fail:
42127 return NULL;
42128}
42129
42130
42131SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42132 PyObject *resultobj = 0;
42133 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42134 wxColour result;
42135 void *argp1 = 0 ;
42136 int res1 = 0 ;
42137 PyObject *swig_obj[1] ;
42138
42139 if (!args) SWIG_fail;
42140 swig_obj[0] = args;
42141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42142 if (!SWIG_IsOK(res1)) {
42143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42144 }
42145 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42146 {
42147 PyThreadState* __tstate = wxPyBeginAllowThreads();
42148 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42149 wxPyEndAllowThreads(__tstate);
42150 if (PyErr_Occurred()) SWIG_fail;
42151 }
42152 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42153 return resultobj;
42154fail:
42155 return NULL;
42156}
42157
42158
42159SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42160 PyObject *resultobj = 0;
42161 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42162 wxColour *arg2 = 0 ;
42163 void *argp1 = 0 ;
42164 int res1 = 0 ;
42165 wxColour temp2 ;
42166 PyObject * obj0 = 0 ;
42167 PyObject * obj1 = 0 ;
42168 char * kwnames[] = {
42169 (char *) "self",(char *) "colour", NULL
42170 };
42171
42172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42174 if (!SWIG_IsOK(res1)) {
42175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42176 }
42177 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42178 {
42179 arg2 = &temp2;
42180 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42181 }
42182 {
42183 PyThreadState* __tstate = wxPyBeginAllowThreads();
42184 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42185 wxPyEndAllowThreads(__tstate);
42186 if (PyErr_Occurred()) SWIG_fail;
42187 }
42188 resultobj = SWIG_Py_Void();
42189 return resultobj;
42190fail:
42191 return NULL;
42192}
42193
42194
42195SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42196 PyObject *resultobj = 0;
42197 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42198 wxString result;
42199 void *argp1 = 0 ;
42200 int res1 = 0 ;
42201 PyObject *swig_obj[1] ;
42202
42203 if (!args) SWIG_fail;
42204 swig_obj[0] = args;
42205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42206 if (!SWIG_IsOK(res1)) {
42207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42208 }
42209 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42210 {
42211 PyThreadState* __tstate = wxPyBeginAllowThreads();
42212 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42213 wxPyEndAllowThreads(__tstate);
42214 if (PyErr_Occurred()) SWIG_fail;
42215 }
42216 {
42217#if wxUSE_UNICODE
42218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42219#else
42220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42221#endif
42222 }
42223 return resultobj;
42224fail:
42225 return NULL;
42226}
42227
42228
42229SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42230 PyObject *resultobj = 0;
42231 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42232 wxString *arg2 = 0 ;
42233 void *argp1 = 0 ;
42234 int res1 = 0 ;
42235 bool temp2 = false ;
42236 PyObject * obj0 = 0 ;
42237 PyObject * obj1 = 0 ;
42238 char * kwnames[] = {
42239 (char *) "self",(char *) "url", NULL
42240 };
42241
42242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42244 if (!SWIG_IsOK(res1)) {
42245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42246 }
42247 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42248 {
42249 arg2 = wxString_in_helper(obj1);
42250 if (arg2 == NULL) SWIG_fail;
42251 temp2 = true;
42252 }
42253 {
42254 PyThreadState* __tstate = wxPyBeginAllowThreads();
42255 (arg1)->SetURL((wxString const &)*arg2);
42256 wxPyEndAllowThreads(__tstate);
42257 if (PyErr_Occurred()) SWIG_fail;
42258 }
42259 resultobj = SWIG_Py_Void();
42260 {
42261 if (temp2)
42262 delete arg2;
42263 }
42264 return resultobj;
42265fail:
42266 {
42267 if (temp2)
42268 delete arg2;
42269 }
42270 return NULL;
42271}
42272
42273
42274SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42275 PyObject *resultobj = 0;
42276 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42277 bool arg2 = (bool) true ;
42278 void *argp1 = 0 ;
42279 int res1 = 0 ;
42280 bool val2 ;
42281 int ecode2 = 0 ;
42282 PyObject * obj0 = 0 ;
42283 PyObject * obj1 = 0 ;
42284 char * kwnames[] = {
42285 (char *) "self",(char *) "visited", NULL
42286 };
42287
42288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42290 if (!SWIG_IsOK(res1)) {
42291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42292 }
42293 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42294 if (obj1) {
42295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42296 if (!SWIG_IsOK(ecode2)) {
42297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42298 }
42299 arg2 = static_cast< bool >(val2);
42300 }
42301 {
42302 PyThreadState* __tstate = wxPyBeginAllowThreads();
42303 (arg1)->SetVisited(arg2);
42304 wxPyEndAllowThreads(__tstate);
42305 if (PyErr_Occurred()) SWIG_fail;
42306 }
42307 resultobj = SWIG_Py_Void();
42308 return resultobj;
42309fail:
42310 return NULL;
42311}
42312
42313
42314SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42315 PyObject *resultobj = 0;
42316 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42317 bool result;
42318 void *argp1 = 0 ;
42319 int res1 = 0 ;
42320 PyObject *swig_obj[1] ;
42321
42322 if (!args) SWIG_fail;
42323 swig_obj[0] = args;
42324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42325 if (!SWIG_IsOK(res1)) {
42326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42327 }
42328 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42329 {
42330 PyThreadState* __tstate = wxPyBeginAllowThreads();
42331 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42332 wxPyEndAllowThreads(__tstate);
42333 if (PyErr_Occurred()) SWIG_fail;
42334 }
42335 {
42336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42337 }
42338 return resultobj;
42339fail:
42340 return NULL;
42341}
42342
42343
42344SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42345 PyObject *obj;
42346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42347 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42348 return SWIG_Py_Void();
42349}
42350
42351SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42352 return SWIG_Python_InitShadowInstance(args);
42353}
42354
42355SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42356 PyObject *resultobj = 0;
42357 wxObject *arg1 = (wxObject *) 0 ;
42358 int arg2 ;
42359 wxString *arg3 = 0 ;
42360 wxHyperlinkEvent *result = 0 ;
42361 void *argp1 = 0 ;
42362 int res1 = 0 ;
42363 int val2 ;
42364 int ecode2 = 0 ;
42365 bool temp3 = false ;
42366 PyObject * obj0 = 0 ;
42367 PyObject * obj1 = 0 ;
42368 PyObject * obj2 = 0 ;
42369 char * kwnames[] = {
42370 (char *) "generator",(char *) "id",(char *) "url", NULL
42371 };
42372
42373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42375 if (!SWIG_IsOK(res1)) {
42376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42377 }
42378 arg1 = reinterpret_cast< wxObject * >(argp1);
42379 ecode2 = SWIG_AsVal_int(obj1, &val2);
42380 if (!SWIG_IsOK(ecode2)) {
42381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42382 }
42383 arg2 = static_cast< int >(val2);
42384 {
42385 arg3 = wxString_in_helper(obj2);
42386 if (arg3 == NULL) SWIG_fail;
42387 temp3 = true;
42388 }
42389 {
42390 PyThreadState* __tstate = wxPyBeginAllowThreads();
42391 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42392 wxPyEndAllowThreads(__tstate);
42393 if (PyErr_Occurred()) SWIG_fail;
42394 }
42395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42396 {
42397 if (temp3)
42398 delete arg3;
42399 }
42400 return resultobj;
42401fail:
42402 {
42403 if (temp3)
42404 delete arg3;
42405 }
42406 return NULL;
42407}
42408
42409
42410SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42411 PyObject *resultobj = 0;
42412 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42413 wxString result;
42414 void *argp1 = 0 ;
42415 int res1 = 0 ;
42416 PyObject *swig_obj[1] ;
42417
42418 if (!args) SWIG_fail;
42419 swig_obj[0] = args;
42420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42421 if (!SWIG_IsOK(res1)) {
42422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42423 }
42424 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42425 {
42426 PyThreadState* __tstate = wxPyBeginAllowThreads();
42427 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42428 wxPyEndAllowThreads(__tstate);
42429 if (PyErr_Occurred()) SWIG_fail;
42430 }
42431 {
42432#if wxUSE_UNICODE
42433 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42434#else
42435 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42436#endif
42437 }
42438 return resultobj;
42439fail:
42440 return NULL;
42441}
42442
42443
42444SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42445 PyObject *resultobj = 0;
42446 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42447 wxString *arg2 = 0 ;
42448 void *argp1 = 0 ;
42449 int res1 = 0 ;
42450 bool temp2 = false ;
42451 PyObject * obj0 = 0 ;
42452 PyObject * obj1 = 0 ;
42453 char * kwnames[] = {
42454 (char *) "self",(char *) "url", NULL
42455 };
42456
42457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42459 if (!SWIG_IsOK(res1)) {
42460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42461 }
42462 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42463 {
42464 arg2 = wxString_in_helper(obj1);
42465 if (arg2 == NULL) SWIG_fail;
42466 temp2 = true;
42467 }
42468 {
42469 PyThreadState* __tstate = wxPyBeginAllowThreads();
42470 (arg1)->SetURL((wxString const &)*arg2);
42471 wxPyEndAllowThreads(__tstate);
42472 if (PyErr_Occurred()) SWIG_fail;
42473 }
42474 resultobj = SWIG_Py_Void();
42475 {
42476 if (temp2)
42477 delete arg2;
42478 }
42479 return resultobj;
42480fail:
42481 {
42482 if (temp2)
42483 delete arg2;
42484 }
42485 return NULL;
42486}
42487
42488
42489SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42490 PyObject *obj;
42491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42492 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42493 return SWIG_Py_Void();
42494}
42495
42496SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42497 return SWIG_Python_InitShadowInstance(args);
42498}
42499
b850e7f3
RD
42500SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42501 PyObject *resultobj = 0;
42502 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42503 wxWindow *arg2 = (wxWindow *) 0 ;
42504 int arg3 ;
42505 wxString const &arg4_defvalue = wxEmptyString ;
42506 wxString *arg4 = (wxString *) &arg4_defvalue ;
42507 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42508 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42509 wxSize const &arg6_defvalue = wxDefaultSize ;
42510 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42511 long arg7 = (long) 0 ;
42512 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42513 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42514 wxString const &arg9_defvalue = wxButtonNameStr ;
42515 wxString *arg9 = (wxString *) &arg9_defvalue ;
42516 bool result;
42517 void *argp1 = 0 ;
42518 int res1 = 0 ;
42519 void *argp2 = 0 ;
42520 int res2 = 0 ;
42521 int val3 ;
42522 int ecode3 = 0 ;
42523 bool temp4 = false ;
42524 wxPoint temp5 ;
42525 wxSize temp6 ;
42526 long val7 ;
42527 int ecode7 = 0 ;
42528 void *argp8 = 0 ;
42529 int res8 = 0 ;
42530 bool temp9 = false ;
42531 PyObject * obj0 = 0 ;
42532 PyObject * obj1 = 0 ;
42533 PyObject * obj2 = 0 ;
42534 PyObject * obj3 = 0 ;
42535 PyObject * obj4 = 0 ;
42536 PyObject * obj5 = 0 ;
42537 PyObject * obj6 = 0 ;
42538 PyObject * obj7 = 0 ;
42539 PyObject * obj8 = 0 ;
42540 char * kwnames[] = {
42541 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42542 };
42543
42544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42546 if (!SWIG_IsOK(res1)) {
42547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42548 }
42549 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42551 if (!SWIG_IsOK(res2)) {
42552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42553 }
42554 arg2 = reinterpret_cast< wxWindow * >(argp2);
42555 ecode3 = SWIG_AsVal_int(obj2, &val3);
42556 if (!SWIG_IsOK(ecode3)) {
42557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42558 }
42559 arg3 = static_cast< int >(val3);
42560 if (obj3) {
42561 {
42562 arg4 = wxString_in_helper(obj3);
42563 if (arg4 == NULL) SWIG_fail;
42564 temp4 = true;
42565 }
42566 }
42567 if (obj4) {
42568 {
42569 arg5 = &temp5;
42570 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42571 }
42572 }
42573 if (obj5) {
42574 {
42575 arg6 = &temp6;
42576 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42577 }
42578 }
42579 if (obj6) {
42580 ecode7 = SWIG_AsVal_long(obj6, &val7);
42581 if (!SWIG_IsOK(ecode7)) {
42582 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42583 }
42584 arg7 = static_cast< long >(val7);
42585 }
42586 if (obj7) {
42587 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42588 if (!SWIG_IsOK(res8)) {
42589 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42590 }
42591 if (!argp8) {
42592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42593 }
42594 arg8 = reinterpret_cast< wxValidator * >(argp8);
42595 }
42596 if (obj8) {
42597 {
42598 arg9 = wxString_in_helper(obj8);
42599 if (arg9 == NULL) SWIG_fail;
42600 temp9 = true;
42601 }
42602 }
42603 {
42604 PyThreadState* __tstate = wxPyBeginAllowThreads();
42605 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42606 wxPyEndAllowThreads(__tstate);
42607 if (PyErr_Occurred()) SWIG_fail;
42608 }
42609 {
42610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42611 }
42612 {
42613 if (temp4)
42614 delete arg4;
42615 }
42616 {
42617 if (temp9)
42618 delete arg9;
42619 }
42620 return resultobj;
42621fail:
42622 {
42623 if (temp4)
42624 delete arg4;
42625 }
42626 {
42627 if (temp9)
42628 delete arg9;
42629 }
42630 return NULL;
42631}
42632
42633
42634SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42635 PyObject *resultobj = 0;
42636 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42637 int arg2 ;
42638 void *argp1 = 0 ;
42639 int res1 = 0 ;
42640 int val2 ;
42641 int ecode2 = 0 ;
42642 PyObject * obj0 = 0 ;
42643 PyObject * obj1 = 0 ;
42644 char * kwnames[] = {
42645 (char *) "self",(char *) "newmargin", NULL
42646 };
42647
42648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42650 if (!SWIG_IsOK(res1)) {
42651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42652 }
42653 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42654 ecode2 = SWIG_AsVal_int(obj1, &val2);
42655 if (!SWIG_IsOK(ecode2)) {
42656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42657 }
42658 arg2 = static_cast< int >(val2);
42659 {
42660 PyThreadState* __tstate = wxPyBeginAllowThreads();
42661 (arg1)->SetInternalMargin(arg2);
42662 wxPyEndAllowThreads(__tstate);
42663 if (PyErr_Occurred()) SWIG_fail;
42664 }
42665 resultobj = SWIG_Py_Void();
42666 return resultobj;
42667fail:
42668 return NULL;
42669}
42670
42671
42672SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42673 PyObject *resultobj = 0;
42674 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42675 int result;
42676 void *argp1 = 0 ;
42677 int res1 = 0 ;
42678 PyObject *swig_obj[1] ;
42679
42680 if (!args) SWIG_fail;
42681 swig_obj[0] = args;
42682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42683 if (!SWIG_IsOK(res1)) {
42684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42685 }
42686 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42687 {
42688 PyThreadState* __tstate = wxPyBeginAllowThreads();
42689 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42690 wxPyEndAllowThreads(__tstate);
42691 if (PyErr_Occurred()) SWIG_fail;
42692 }
42693 resultobj = SWIG_From_int(static_cast< int >(result));
42694 return resultobj;
42695fail:
42696 return NULL;
42697}
42698
42699
42700SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42701 PyObject *resultobj = 0;
42702 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42703 int arg2 ;
42704 void *argp1 = 0 ;
42705 int res1 = 0 ;
42706 int val2 ;
42707 int ecode2 = 0 ;
42708 PyObject * obj0 = 0 ;
42709 PyObject * obj1 = 0 ;
42710 char * kwnames[] = {
42711 (char *) "self",(char *) "prop", NULL
42712 };
42713
42714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42716 if (!SWIG_IsOK(res1)) {
42717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42718 }
42719 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42720 ecode2 = SWIG_AsVal_int(obj1, &val2);
42721 if (!SWIG_IsOK(ecode2)) {
42722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42723 }
42724 arg2 = static_cast< int >(val2);
42725 {
42726 PyThreadState* __tstate = wxPyBeginAllowThreads();
42727 (arg1)->SetTextCtrlProportion(arg2);
42728 wxPyEndAllowThreads(__tstate);
42729 if (PyErr_Occurred()) SWIG_fail;
42730 }
42731 resultobj = SWIG_Py_Void();
42732 return resultobj;
42733fail:
42734 return NULL;
42735}
42736
42737
42738SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42739 PyObject *resultobj = 0;
42740 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42741 int result;
42742 void *argp1 = 0 ;
42743 int res1 = 0 ;
42744 PyObject *swig_obj[1] ;
42745
42746 if (!args) SWIG_fail;
42747 swig_obj[0] = args;
42748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42749 if (!SWIG_IsOK(res1)) {
42750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42751 }
42752 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42753 {
42754 PyThreadState* __tstate = wxPyBeginAllowThreads();
42755 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42756 wxPyEndAllowThreads(__tstate);
42757 if (PyErr_Occurred()) SWIG_fail;
42758 }
42759 resultobj = SWIG_From_int(static_cast< int >(result));
42760 return resultobj;
42761fail:
42762 return NULL;
42763}
42764
42765
1eeb270e
RD
42766SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42767 PyObject *resultobj = 0;
42768 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42769 int arg2 ;
42770 void *argp1 = 0 ;
42771 int res1 = 0 ;
42772 int val2 ;
42773 int ecode2 = 0 ;
42774 PyObject * obj0 = 0 ;
42775 PyObject * obj1 = 0 ;
42776 char * kwnames[] = {
42777 (char *) "self",(char *) "prop", NULL
42778 };
42779
42780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42782 if (!SWIG_IsOK(res1)) {
42783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42784 }
42785 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42786 ecode2 = SWIG_AsVal_int(obj1, &val2);
42787 if (!SWIG_IsOK(ecode2)) {
42788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42789 }
42790 arg2 = static_cast< int >(val2);
42791 {
42792 PyThreadState* __tstate = wxPyBeginAllowThreads();
42793 (arg1)->SetPickerCtrlProportion(arg2);
42794 wxPyEndAllowThreads(__tstate);
42795 if (PyErr_Occurred()) SWIG_fail;
42796 }
42797 resultobj = SWIG_Py_Void();
42798 return resultobj;
42799fail:
42800 return NULL;
42801}
42802
42803
42804SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42805 PyObject *resultobj = 0;
42806 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42807 int result;
42808 void *argp1 = 0 ;
42809 int res1 = 0 ;
42810 PyObject *swig_obj[1] ;
42811
42812 if (!args) SWIG_fail;
42813 swig_obj[0] = args;
42814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42815 if (!SWIG_IsOK(res1)) {
42816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42817 }
42818 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42819 {
42820 PyThreadState* __tstate = wxPyBeginAllowThreads();
42821 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42822 wxPyEndAllowThreads(__tstate);
42823 if (PyErr_Occurred()) SWIG_fail;
42824 }
42825 resultobj = SWIG_From_int(static_cast< int >(result));
42826 return resultobj;
42827fail:
42828 return NULL;
42829}
42830
42831
b02396e8
RD
42832SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42833 PyObject *resultobj = 0;
42834 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42835 bool result;
42836 void *argp1 = 0 ;
42837 int res1 = 0 ;
42838 PyObject *swig_obj[1] ;
42839
42840 if (!args) SWIG_fail;
42841 swig_obj[0] = args;
42842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42843 if (!SWIG_IsOK(res1)) {
42844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42845 }
42846 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42847 {
42848 PyThreadState* __tstate = wxPyBeginAllowThreads();
42849 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42850 wxPyEndAllowThreads(__tstate);
42851 if (PyErr_Occurred()) SWIG_fail;
42852 }
42853 {
42854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42855 }
42856 return resultobj;
42857fail:
42858 return NULL;
42859}
42860
42861
42862SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42863 PyObject *resultobj = 0;
42864 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42865 bool arg2 = (bool) true ;
42866 void *argp1 = 0 ;
42867 int res1 = 0 ;
42868 bool val2 ;
42869 int ecode2 = 0 ;
42870 PyObject * obj0 = 0 ;
42871 PyObject * obj1 = 0 ;
42872 char * kwnames[] = {
42873 (char *) "self",(char *) "grow", NULL
42874 };
42875
42876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42878 if (!SWIG_IsOK(res1)) {
42879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42880 }
42881 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42882 if (obj1) {
42883 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42884 if (!SWIG_IsOK(ecode2)) {
42885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42886 }
42887 arg2 = static_cast< bool >(val2);
42888 }
42889 {
42890 PyThreadState* __tstate = wxPyBeginAllowThreads();
42891 (arg1)->SetTextCtrlGrowable(arg2);
42892 wxPyEndAllowThreads(__tstate);
42893 if (PyErr_Occurred()) SWIG_fail;
42894 }
42895 resultobj = SWIG_Py_Void();
42896 return resultobj;
42897fail:
42898 return NULL;
42899}
42900
42901
42902SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42903 PyObject *resultobj = 0;
42904 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42905 bool result;
42906 void *argp1 = 0 ;
42907 int res1 = 0 ;
42908 PyObject *swig_obj[1] ;
42909
42910 if (!args) SWIG_fail;
42911 swig_obj[0] = args;
42912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42913 if (!SWIG_IsOK(res1)) {
42914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42915 }
42916 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42917 {
42918 PyThreadState* __tstate = wxPyBeginAllowThreads();
42919 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42920 wxPyEndAllowThreads(__tstate);
42921 if (PyErr_Occurred()) SWIG_fail;
42922 }
42923 {
42924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42925 }
42926 return resultobj;
42927fail:
42928 return NULL;
42929}
42930
42931
42932SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42933 PyObject *resultobj = 0;
42934 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42935 bool arg2 = (bool) true ;
42936 void *argp1 = 0 ;
42937 int res1 = 0 ;
42938 bool val2 ;
42939 int ecode2 = 0 ;
42940 PyObject * obj0 = 0 ;
42941 PyObject * obj1 = 0 ;
42942 char * kwnames[] = {
42943 (char *) "self",(char *) "grow", NULL
42944 };
42945
42946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42948 if (!SWIG_IsOK(res1)) {
42949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42950 }
42951 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42952 if (obj1) {
42953 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42954 if (!SWIG_IsOK(ecode2)) {
42955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42956 }
42957 arg2 = static_cast< bool >(val2);
42958 }
42959 {
42960 PyThreadState* __tstate = wxPyBeginAllowThreads();
42961 (arg1)->SetPickerCtrlGrowable(arg2);
42962 wxPyEndAllowThreads(__tstate);
42963 if (PyErr_Occurred()) SWIG_fail;
42964 }
42965 resultobj = SWIG_Py_Void();
42966 return resultobj;
42967fail:
42968 return NULL;
42969}
42970
42971
b850e7f3
RD
42972SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42973 PyObject *resultobj = 0;
42974 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42975 bool result;
42976 void *argp1 = 0 ;
42977 int res1 = 0 ;
42978 PyObject *swig_obj[1] ;
42979
42980 if (!args) SWIG_fail;
42981 swig_obj[0] = args;
42982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42983 if (!SWIG_IsOK(res1)) {
42984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42985 }
42986 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42987 {
42988 PyThreadState* __tstate = wxPyBeginAllowThreads();
42989 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42990 wxPyEndAllowThreads(__tstate);
42991 if (PyErr_Occurred()) SWIG_fail;
42992 }
42993 {
42994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42995 }
42996 return resultobj;
42997fail:
42998 return NULL;
42999}
43000
43001
43002SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43003 PyObject *resultobj = 0;
43004 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43005 wxTextCtrl *result = 0 ;
43006 void *argp1 = 0 ;
43007 int res1 = 0 ;
43008 PyObject *swig_obj[1] ;
43009
43010 if (!args) SWIG_fail;
43011 swig_obj[0] = args;
43012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43013 if (!SWIG_IsOK(res1)) {
43014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43015 }
43016 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43017 {
43018 PyThreadState* __tstate = wxPyBeginAllowThreads();
43019 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43020 wxPyEndAllowThreads(__tstate);
43021 if (PyErr_Occurred()) SWIG_fail;
43022 }
43023 {
43024 resultobj = wxPyMake_wxObject(result, 0);
43025 }
43026 return resultobj;
43027fail:
43028 return NULL;
43029}
43030
43031
43032SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43033 PyObject *resultobj = 0;
43034 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43035 wxControl *result = 0 ;
43036 void *argp1 = 0 ;
43037 int res1 = 0 ;
43038 PyObject *swig_obj[1] ;
43039
43040 if (!args) SWIG_fail;
43041 swig_obj[0] = args;
43042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43043 if (!SWIG_IsOK(res1)) {
43044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43045 }
43046 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43047 {
43048 PyThreadState* __tstate = wxPyBeginAllowThreads();
43049 result = (wxControl *)(arg1)->GetPickerCtrl();
43050 wxPyEndAllowThreads(__tstate);
43051 if (PyErr_Occurred()) SWIG_fail;
43052 }
43053 {
43054 resultobj = wxPyMake_wxObject(result, 0);
43055 }
43056 return resultobj;
43057fail:
43058 return NULL;
43059}
43060
43061
43062SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43063 PyObject *obj;
43064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43065 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43066 return SWIG_Py_Void();
43067}
43068
43069SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43070 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43071 return 1;
43072}
43073
43074
43075SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43076 PyObject *pyobj = 0;
43077
43078 {
43079#if wxUSE_UNICODE
43080 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43081#else
43082 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43083#endif
43084 }
43085 return pyobj;
43086}
43087
43088
43089SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43090 PyObject *resultobj = 0;
43091 wxWindow *arg1 = (wxWindow *) 0 ;
43092 int arg2 = (int) -1 ;
43093 wxColour const &arg3_defvalue = *wxBLACK ;
43094 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43097 wxSize const &arg5_defvalue = wxDefaultSize ;
43098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43099 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43102 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43103 wxString *arg8 = (wxString *) &arg8_defvalue ;
43104 wxColourPickerCtrl *result = 0 ;
43105 void *argp1 = 0 ;
43106 int res1 = 0 ;
43107 int val2 ;
43108 int ecode2 = 0 ;
43109 wxColour temp3 ;
43110 wxPoint temp4 ;
43111 wxSize temp5 ;
43112 long val6 ;
43113 int ecode6 = 0 ;
43114 void *argp7 = 0 ;
43115 int res7 = 0 ;
43116 bool temp8 = false ;
43117 PyObject * obj0 = 0 ;
43118 PyObject * obj1 = 0 ;
43119 PyObject * obj2 = 0 ;
43120 PyObject * obj3 = 0 ;
43121 PyObject * obj4 = 0 ;
43122 PyObject * obj5 = 0 ;
43123 PyObject * obj6 = 0 ;
43124 PyObject * obj7 = 0 ;
43125 char * kwnames[] = {
43126 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43127 };
43128
43129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43131 if (!SWIG_IsOK(res1)) {
43132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43133 }
43134 arg1 = reinterpret_cast< wxWindow * >(argp1);
43135 if (obj1) {
43136 ecode2 = SWIG_AsVal_int(obj1, &val2);
43137 if (!SWIG_IsOK(ecode2)) {
43138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43139 }
43140 arg2 = static_cast< int >(val2);
43141 }
43142 if (obj2) {
43143 {
43144 arg3 = &temp3;
43145 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43146 }
43147 }
43148 if (obj3) {
43149 {
43150 arg4 = &temp4;
43151 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43152 }
43153 }
43154 if (obj4) {
43155 {
43156 arg5 = &temp5;
43157 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43158 }
43159 }
43160 if (obj5) {
43161 ecode6 = SWIG_AsVal_long(obj5, &val6);
43162 if (!SWIG_IsOK(ecode6)) {
43163 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43164 }
43165 arg6 = static_cast< long >(val6);
43166 }
43167 if (obj6) {
43168 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43169 if (!SWIG_IsOK(res7)) {
43170 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43171 }
43172 if (!argp7) {
43173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43174 }
43175 arg7 = reinterpret_cast< wxValidator * >(argp7);
43176 }
43177 if (obj7) {
43178 {
43179 arg8 = wxString_in_helper(obj7);
43180 if (arg8 == NULL) SWIG_fail;
43181 temp8 = true;
43182 }
43183 }
43184 {
43185 if (!wxPyCheckForApp()) SWIG_fail;
43186 PyThreadState* __tstate = wxPyBeginAllowThreads();
43187 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43188 wxPyEndAllowThreads(__tstate);
43189 if (PyErr_Occurred()) SWIG_fail;
43190 }
43191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43192 {
43193 if (temp8)
43194 delete arg8;
43195 }
43196 return resultobj;
43197fail:
43198 {
43199 if (temp8)
43200 delete arg8;
43201 }
43202 return NULL;
43203}
43204
43205
43206SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43207 PyObject *resultobj = 0;
43208 wxColourPickerCtrl *result = 0 ;
43209
43210 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43211 {
43212 if (!wxPyCheckForApp()) SWIG_fail;
43213 PyThreadState* __tstate = wxPyBeginAllowThreads();
43214 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43215 wxPyEndAllowThreads(__tstate);
43216 if (PyErr_Occurred()) SWIG_fail;
43217 }
43218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43219 return resultobj;
43220fail:
43221 return NULL;
43222}
43223
43224
43225SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43226 PyObject *resultobj = 0;
43227 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43228 wxWindow *arg2 = (wxWindow *) 0 ;
43229 int arg3 ;
43230 wxColour const &arg4_defvalue = *wxBLACK ;
43231 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43232 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43233 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43234 wxSize const &arg6_defvalue = wxDefaultSize ;
43235 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43236 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43237 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43238 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43239 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43240 wxString *arg9 = (wxString *) &arg9_defvalue ;
43241 bool result;
43242 void *argp1 = 0 ;
43243 int res1 = 0 ;
43244 void *argp2 = 0 ;
43245 int res2 = 0 ;
43246 int val3 ;
43247 int ecode3 = 0 ;
43248 wxColour temp4 ;
43249 wxPoint temp5 ;
43250 wxSize temp6 ;
43251 long val7 ;
43252 int ecode7 = 0 ;
43253 void *argp8 = 0 ;
43254 int res8 = 0 ;
43255 bool temp9 = false ;
43256 PyObject * obj0 = 0 ;
43257 PyObject * obj1 = 0 ;
43258 PyObject * obj2 = 0 ;
43259 PyObject * obj3 = 0 ;
43260 PyObject * obj4 = 0 ;
43261 PyObject * obj5 = 0 ;
43262 PyObject * obj6 = 0 ;
43263 PyObject * obj7 = 0 ;
43264 PyObject * obj8 = 0 ;
43265 char * kwnames[] = {
43266 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43267 };
43268
43269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43271 if (!SWIG_IsOK(res1)) {
43272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43273 }
43274 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43276 if (!SWIG_IsOK(res2)) {
43277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43278 }
43279 arg2 = reinterpret_cast< wxWindow * >(argp2);
43280 ecode3 = SWIG_AsVal_int(obj2, &val3);
43281 if (!SWIG_IsOK(ecode3)) {
43282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43283 }
43284 arg3 = static_cast< int >(val3);
43285 if (obj3) {
43286 {
43287 arg4 = &temp4;
43288 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43289 }
43290 }
43291 if (obj4) {
43292 {
43293 arg5 = &temp5;
43294 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43295 }
43296 }
43297 if (obj5) {
43298 {
43299 arg6 = &temp6;
43300 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43301 }
43302 }
43303 if (obj6) {
43304 ecode7 = SWIG_AsVal_long(obj6, &val7);
43305 if (!SWIG_IsOK(ecode7)) {
43306 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43307 }
43308 arg7 = static_cast< long >(val7);
43309 }
43310 if (obj7) {
43311 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43312 if (!SWIG_IsOK(res8)) {
43313 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43314 }
43315 if (!argp8) {
43316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43317 }
43318 arg8 = reinterpret_cast< wxValidator * >(argp8);
43319 }
43320 if (obj8) {
43321 {
43322 arg9 = wxString_in_helper(obj8);
43323 if (arg9 == NULL) SWIG_fail;
43324 temp9 = true;
43325 }
43326 }
43327 {
43328 PyThreadState* __tstate = wxPyBeginAllowThreads();
43329 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43330 wxPyEndAllowThreads(__tstate);
43331 if (PyErr_Occurred()) SWIG_fail;
43332 }
43333 {
43334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43335 }
43336 {
43337 if (temp9)
43338 delete arg9;
43339 }
43340 return resultobj;
43341fail:
43342 {
43343 if (temp9)
43344 delete arg9;
43345 }
43346 return NULL;
43347}
43348
43349
43350SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43351 PyObject *resultobj = 0;
43352 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43353 wxColour result;
43354 void *argp1 = 0 ;
43355 int res1 = 0 ;
43356 PyObject *swig_obj[1] ;
43357
43358 if (!args) SWIG_fail;
43359 swig_obj[0] = args;
43360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43361 if (!SWIG_IsOK(res1)) {
43362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43363 }
43364 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43365 {
43366 PyThreadState* __tstate = wxPyBeginAllowThreads();
43367 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43368 wxPyEndAllowThreads(__tstate);
43369 if (PyErr_Occurred()) SWIG_fail;
43370 }
43371 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43372 return resultobj;
43373fail:
43374 return NULL;
43375}
43376
43377
43378SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43379 PyObject *resultobj = 0;
43380 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43381 wxColour *arg2 = 0 ;
43382 void *argp1 = 0 ;
43383 int res1 = 0 ;
43384 wxColour temp2 ;
43385 PyObject * obj0 = 0 ;
43386 PyObject * obj1 = 0 ;
43387 char * kwnames[] = {
43388 (char *) "self",(char *) "col", NULL
43389 };
43390
43391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43393 if (!SWIG_IsOK(res1)) {
43394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43395 }
43396 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43397 {
43398 arg2 = &temp2;
43399 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43400 }
43401 {
43402 PyThreadState* __tstate = wxPyBeginAllowThreads();
43403 (arg1)->SetColour((wxColour const &)*arg2);
43404 wxPyEndAllowThreads(__tstate);
43405 if (PyErr_Occurred()) SWIG_fail;
43406 }
43407 resultobj = SWIG_Py_Void();
43408 return resultobj;
43409fail:
43410 return NULL;
43411}
43412
43413
43414SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43415 PyObject *obj;
43416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43417 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43418 return SWIG_Py_Void();
43419}
43420
43421SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43422 return SWIG_Python_InitShadowInstance(args);
43423}
43424
43425SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43426 PyObject *resultobj = 0;
43427 wxObject *arg1 = (wxObject *) 0 ;
43428 int arg2 ;
43429 wxColour *arg3 = 0 ;
43430 wxColourPickerEvent *result = 0 ;
43431 void *argp1 = 0 ;
43432 int res1 = 0 ;
43433 int val2 ;
43434 int ecode2 = 0 ;
43435 wxColour temp3 ;
43436 PyObject * obj0 = 0 ;
43437 PyObject * obj1 = 0 ;
43438 PyObject * obj2 = 0 ;
43439 char * kwnames[] = {
43440 (char *) "generator",(char *) "id",(char *) "col", NULL
43441 };
43442
43443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43445 if (!SWIG_IsOK(res1)) {
43446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43447 }
43448 arg1 = reinterpret_cast< wxObject * >(argp1);
43449 ecode2 = SWIG_AsVal_int(obj1, &val2);
43450 if (!SWIG_IsOK(ecode2)) {
43451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43452 }
43453 arg2 = static_cast< int >(val2);
43454 {
43455 arg3 = &temp3;
43456 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43457 }
43458 {
43459 PyThreadState* __tstate = wxPyBeginAllowThreads();
43460 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43461 wxPyEndAllowThreads(__tstate);
43462 if (PyErr_Occurred()) SWIG_fail;
43463 }
43464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43465 return resultobj;
43466fail:
43467 return NULL;
43468}
43469
43470
43471SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43472 PyObject *resultobj = 0;
43473 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43474 wxColour result;
43475 void *argp1 = 0 ;
43476 int res1 = 0 ;
43477 PyObject *swig_obj[1] ;
43478
43479 if (!args) SWIG_fail;
43480 swig_obj[0] = args;
43481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43482 if (!SWIG_IsOK(res1)) {
43483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43484 }
43485 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43486 {
43487 PyThreadState* __tstate = wxPyBeginAllowThreads();
43488 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43489 wxPyEndAllowThreads(__tstate);
43490 if (PyErr_Occurred()) SWIG_fail;
43491 }
43492 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43493 return resultobj;
43494fail:
43495 return NULL;
43496}
43497
43498
43499SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43500 PyObject *resultobj = 0;
43501 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43502 wxColour *arg2 = 0 ;
43503 void *argp1 = 0 ;
43504 int res1 = 0 ;
43505 wxColour temp2 ;
43506 PyObject * obj0 = 0 ;
43507 PyObject * obj1 = 0 ;
43508 char * kwnames[] = {
43509 (char *) "self",(char *) "c", NULL
43510 };
43511
43512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43514 if (!SWIG_IsOK(res1)) {
43515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43516 }
43517 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43518 {
43519 arg2 = &temp2;
43520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43521 }
43522 {
43523 PyThreadState* __tstate = wxPyBeginAllowThreads();
43524 (arg1)->SetColour((wxColour const &)*arg2);
43525 wxPyEndAllowThreads(__tstate);
43526 if (PyErr_Occurred()) SWIG_fail;
43527 }
43528 resultobj = SWIG_Py_Void();
43529 return resultobj;
43530fail:
43531 return NULL;
43532}
43533
43534
43535SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43536 PyObject *obj;
43537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43538 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43539 return SWIG_Py_Void();
43540}
43541
43542SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43543 return SWIG_Python_InitShadowInstance(args);
43544}
43545
43546SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43547 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43548 return 1;
43549}
43550
43551
43552SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43553 PyObject *pyobj = 0;
43554
43555 {
43556#if wxUSE_UNICODE
43557 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43558#else
43559 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43560#endif
43561 }
43562 return pyobj;
43563}
43564
43565
43566SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43567 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43568 return 1;
43569}
43570
43571
43572SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43573 PyObject *pyobj = 0;
43574
43575 {
43576#if wxUSE_UNICODE
43577 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43578#else
43579 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43580#endif
43581 }
43582 return pyobj;
43583}
43584
43585
43586SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43587 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43588 return 1;
43589}
43590
43591
43592SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43593 PyObject *pyobj = 0;
43594
43595 {
43596#if wxUSE_UNICODE
43597 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43598#else
43599 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43600#endif
43601 }
43602 return pyobj;
43603}
43604
43605
43606SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43607 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43608 return 1;
43609}
43610
43611
43612SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43613 PyObject *pyobj = 0;
43614
43615 {
43616#if wxUSE_UNICODE
43617 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43618#else
43619 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43620#endif
43621 }
43622 return pyobj;
43623}
43624
43625
43626SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43627 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43628 return 1;
43629}
43630
43631
43632SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43633 PyObject *pyobj = 0;
43634
43635 {
43636#if wxUSE_UNICODE
43637 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43638#else
43639 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43640#endif
43641 }
43642 return pyobj;
43643}
43644
43645
43646SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43647 PyObject *resultobj = 0;
43648 wxWindow *arg1 = (wxWindow *) 0 ;
43649 int arg2 = (int) -1 ;
43650 wxString const &arg3_defvalue = wxPyEmptyString ;
43651 wxString *arg3 = (wxString *) &arg3_defvalue ;
43652 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43653 wxString *arg4 = (wxString *) &arg4_defvalue ;
43654 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43655 wxString *arg5 = (wxString *) &arg5_defvalue ;
43656 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43657 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43658 wxSize const &arg7_defvalue = wxDefaultSize ;
43659 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43660 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43661 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43662 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43663 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43664 wxString *arg10 = (wxString *) &arg10_defvalue ;
43665 wxFilePickerCtrl *result = 0 ;
43666 void *argp1 = 0 ;
43667 int res1 = 0 ;
43668 int val2 ;
43669 int ecode2 = 0 ;
43670 bool temp3 = false ;
43671 bool temp4 = false ;
43672 bool temp5 = false ;
43673 wxPoint temp6 ;
43674 wxSize temp7 ;
43675 long val8 ;
43676 int ecode8 = 0 ;
43677 void *argp9 = 0 ;
43678 int res9 = 0 ;
43679 bool temp10 = false ;
43680 PyObject * obj0 = 0 ;
43681 PyObject * obj1 = 0 ;
43682 PyObject * obj2 = 0 ;
43683 PyObject * obj3 = 0 ;
43684 PyObject * obj4 = 0 ;
43685 PyObject * obj5 = 0 ;
43686 PyObject * obj6 = 0 ;
43687 PyObject * obj7 = 0 ;
43688 PyObject * obj8 = 0 ;
43689 PyObject * obj9 = 0 ;
43690 char * kwnames[] = {
43691 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43692 };
43693
43694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43696 if (!SWIG_IsOK(res1)) {
43697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43698 }
43699 arg1 = reinterpret_cast< wxWindow * >(argp1);
43700 if (obj1) {
43701 ecode2 = SWIG_AsVal_int(obj1, &val2);
43702 if (!SWIG_IsOK(ecode2)) {
43703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43704 }
43705 arg2 = static_cast< int >(val2);
43706 }
43707 if (obj2) {
43708 {
43709 arg3 = wxString_in_helper(obj2);
43710 if (arg3 == NULL) SWIG_fail;
43711 temp3 = true;
43712 }
43713 }
43714 if (obj3) {
43715 {
43716 arg4 = wxString_in_helper(obj3);
43717 if (arg4 == NULL) SWIG_fail;
43718 temp4 = true;
43719 }
43720 }
43721 if (obj4) {
43722 {
43723 arg5 = wxString_in_helper(obj4);
43724 if (arg5 == NULL) SWIG_fail;
43725 temp5 = true;
43726 }
43727 }
43728 if (obj5) {
43729 {
43730 arg6 = &temp6;
43731 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43732 }
43733 }
43734 if (obj6) {
43735 {
43736 arg7 = &temp7;
43737 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43738 }
43739 }
43740 if (obj7) {
43741 ecode8 = SWIG_AsVal_long(obj7, &val8);
43742 if (!SWIG_IsOK(ecode8)) {
43743 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43744 }
43745 arg8 = static_cast< long >(val8);
43746 }
43747 if (obj8) {
43748 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43749 if (!SWIG_IsOK(res9)) {
43750 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43751 }
43752 if (!argp9) {
43753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43754 }
43755 arg9 = reinterpret_cast< wxValidator * >(argp9);
43756 }
43757 if (obj9) {
43758 {
43759 arg10 = wxString_in_helper(obj9);
43760 if (arg10 == NULL) SWIG_fail;
43761 temp10 = true;
43762 }
43763 }
43764 {
43765 if (!wxPyCheckForApp()) SWIG_fail;
43766 PyThreadState* __tstate = wxPyBeginAllowThreads();
43767 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);
43768 wxPyEndAllowThreads(__tstate);
43769 if (PyErr_Occurred()) SWIG_fail;
43770 }
43771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43772 {
43773 if (temp3)
43774 delete arg3;
43775 }
43776 {
43777 if (temp4)
43778 delete arg4;
43779 }
43780 {
43781 if (temp5)
43782 delete arg5;
43783 }
43784 {
43785 if (temp10)
43786 delete arg10;
43787 }
43788 return resultobj;
43789fail:
43790 {
43791 if (temp3)
43792 delete arg3;
43793 }
43794 {
43795 if (temp4)
43796 delete arg4;
43797 }
43798 {
43799 if (temp5)
43800 delete arg5;
43801 }
43802 {
43803 if (temp10)
43804 delete arg10;
43805 }
43806 return NULL;
43807}
43808
43809
43810SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43811 PyObject *resultobj = 0;
43812 wxFilePickerCtrl *result = 0 ;
43813
43814 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43815 {
43816 if (!wxPyCheckForApp()) SWIG_fail;
43817 PyThreadState* __tstate = wxPyBeginAllowThreads();
43818 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43819 wxPyEndAllowThreads(__tstate);
43820 if (PyErr_Occurred()) SWIG_fail;
43821 }
43822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43823 return resultobj;
43824fail:
43825 return NULL;
43826}
43827
43828
43829SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43830 PyObject *resultobj = 0;
43831 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43832 wxWindow *arg2 = (wxWindow *) 0 ;
43833 int arg3 = (int) -1 ;
43834 wxString const &arg4_defvalue = wxPyEmptyString ;
43835 wxString *arg4 = (wxString *) &arg4_defvalue ;
43836 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43837 wxString *arg5 = (wxString *) &arg5_defvalue ;
43838 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43839 wxString *arg6 = (wxString *) &arg6_defvalue ;
43840 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43841 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43842 wxSize const &arg8_defvalue = wxDefaultSize ;
43843 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43844 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43845 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43846 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43847 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43848 wxString *arg11 = (wxString *) &arg11_defvalue ;
43849 bool result;
43850 void *argp1 = 0 ;
43851 int res1 = 0 ;
43852 void *argp2 = 0 ;
43853 int res2 = 0 ;
43854 int val3 ;
43855 int ecode3 = 0 ;
43856 bool temp4 = false ;
43857 bool temp5 = false ;
43858 bool temp6 = false ;
43859 wxPoint temp7 ;
43860 wxSize temp8 ;
43861 long val9 ;
43862 int ecode9 = 0 ;
43863 void *argp10 = 0 ;
43864 int res10 = 0 ;
43865 bool temp11 = false ;
43866 PyObject * obj0 = 0 ;
43867 PyObject * obj1 = 0 ;
43868 PyObject * obj2 = 0 ;
43869 PyObject * obj3 = 0 ;
43870 PyObject * obj4 = 0 ;
43871 PyObject * obj5 = 0 ;
43872 PyObject * obj6 = 0 ;
43873 PyObject * obj7 = 0 ;
43874 PyObject * obj8 = 0 ;
43875 PyObject * obj9 = 0 ;
43876 PyObject * obj10 = 0 ;
43877 char * kwnames[] = {
43878 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43879 };
43880
43881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43883 if (!SWIG_IsOK(res1)) {
43884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43885 }
43886 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43887 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43888 if (!SWIG_IsOK(res2)) {
43889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43890 }
43891 arg2 = reinterpret_cast< wxWindow * >(argp2);
43892 if (obj2) {
43893 ecode3 = SWIG_AsVal_int(obj2, &val3);
43894 if (!SWIG_IsOK(ecode3)) {
43895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43896 }
43897 arg3 = static_cast< int >(val3);
43898 }
43899 if (obj3) {
43900 {
43901 arg4 = wxString_in_helper(obj3);
43902 if (arg4 == NULL) SWIG_fail;
43903 temp4 = true;
43904 }
43905 }
43906 if (obj4) {
43907 {
43908 arg5 = wxString_in_helper(obj4);
43909 if (arg5 == NULL) SWIG_fail;
43910 temp5 = true;
43911 }
43912 }
43913 if (obj5) {
43914 {
43915 arg6 = wxString_in_helper(obj5);
43916 if (arg6 == NULL) SWIG_fail;
43917 temp6 = true;
43918 }
43919 }
43920 if (obj6) {
43921 {
43922 arg7 = &temp7;
43923 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43924 }
43925 }
43926 if (obj7) {
43927 {
43928 arg8 = &temp8;
43929 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43930 }
43931 }
43932 if (obj8) {
43933 ecode9 = SWIG_AsVal_long(obj8, &val9);
43934 if (!SWIG_IsOK(ecode9)) {
43935 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43936 }
43937 arg9 = static_cast< long >(val9);
43938 }
43939 if (obj9) {
43940 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43941 if (!SWIG_IsOK(res10)) {
43942 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43943 }
43944 if (!argp10) {
43945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43946 }
43947 arg10 = reinterpret_cast< wxValidator * >(argp10);
43948 }
43949 if (obj10) {
43950 {
43951 arg11 = wxString_in_helper(obj10);
43952 if (arg11 == NULL) SWIG_fail;
43953 temp11 = true;
43954 }
43955 }
43956 {
43957 PyThreadState* __tstate = wxPyBeginAllowThreads();
43958 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);
43959 wxPyEndAllowThreads(__tstate);
43960 if (PyErr_Occurred()) SWIG_fail;
43961 }
43962 {
43963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43964 }
43965 {
43966 if (temp4)
43967 delete arg4;
43968 }
43969 {
43970 if (temp5)
43971 delete arg5;
43972 }
43973 {
43974 if (temp6)
43975 delete arg6;
43976 }
43977 {
43978 if (temp11)
43979 delete arg11;
43980 }
43981 return resultobj;
43982fail:
43983 {
43984 if (temp4)
43985 delete arg4;
43986 }
43987 {
43988 if (temp5)
43989 delete arg5;
43990 }
43991 {
43992 if (temp6)
43993 delete arg6;
43994 }
43995 {
43996 if (temp11)
43997 delete arg11;
43998 }
43999 return NULL;
44000}
44001
44002
44003SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44004 PyObject *resultobj = 0;
44005 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44006 wxString result;
44007 void *argp1 = 0 ;
44008 int res1 = 0 ;
44009 PyObject *swig_obj[1] ;
44010
44011 if (!args) SWIG_fail;
44012 swig_obj[0] = args;
44013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44014 if (!SWIG_IsOK(res1)) {
44015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44016 }
44017 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44018 {
44019 PyThreadState* __tstate = wxPyBeginAllowThreads();
44020 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44021 wxPyEndAllowThreads(__tstate);
44022 if (PyErr_Occurred()) SWIG_fail;
44023 }
44024 {
44025#if wxUSE_UNICODE
44026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44027#else
44028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44029#endif
44030 }
44031 return resultobj;
44032fail:
44033 return NULL;
44034}
44035
44036
44037SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44038 PyObject *resultobj = 0;
44039 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44040 wxString *arg2 = 0 ;
44041 void *argp1 = 0 ;
44042 int res1 = 0 ;
44043 bool temp2 = false ;
44044 PyObject * obj0 = 0 ;
44045 PyObject * obj1 = 0 ;
44046 char * kwnames[] = {
44047 (char *) "self",(char *) "str", NULL
44048 };
44049
44050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44052 if (!SWIG_IsOK(res1)) {
44053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44054 }
44055 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44056 {
44057 arg2 = wxString_in_helper(obj1);
44058 if (arg2 == NULL) SWIG_fail;
44059 temp2 = true;
44060 }
44061 {
44062 PyThreadState* __tstate = wxPyBeginAllowThreads();
44063 (arg1)->SetPath((wxString const &)*arg2);
44064 wxPyEndAllowThreads(__tstate);
44065 if (PyErr_Occurred()) SWIG_fail;
44066 }
44067 resultobj = SWIG_Py_Void();
44068 {
44069 if (temp2)
44070 delete arg2;
44071 }
44072 return resultobj;
44073fail:
44074 {
44075 if (temp2)
44076 delete arg2;
44077 }
44078 return NULL;
44079}
44080
44081
b02396e8
RD
44082SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44083 PyObject *resultobj = 0;
44084 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44085 wxString *arg2 = 0 ;
44086 bool result;
44087 void *argp1 = 0 ;
44088 int res1 = 0 ;
44089 bool temp2 = false ;
44090 PyObject * obj0 = 0 ;
44091 PyObject * obj1 = 0 ;
44092 char * kwnames[] = {
44093 (char *) "self",(char *) "path", NULL
44094 };
44095
44096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44098 if (!SWIG_IsOK(res1)) {
44099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44100 }
44101 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44102 {
44103 arg2 = wxString_in_helper(obj1);
44104 if (arg2 == NULL) SWIG_fail;
44105 temp2 = true;
44106 }
44107 {
44108 PyThreadState* __tstate = wxPyBeginAllowThreads();
44109 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44110 wxPyEndAllowThreads(__tstate);
44111 if (PyErr_Occurred()) SWIG_fail;
44112 }
44113 {
44114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44115 }
44116 {
44117 if (temp2)
44118 delete arg2;
44119 }
44120 return resultobj;
44121fail:
44122 {
44123 if (temp2)
44124 delete arg2;
44125 }
44126 return NULL;
44127}
44128
44129
44130SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44131 PyObject *resultobj = 0;
44132 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44133 wxString result;
44134 void *argp1 = 0 ;
44135 int res1 = 0 ;
44136 PyObject *swig_obj[1] ;
44137
44138 if (!args) SWIG_fail;
44139 swig_obj[0] = args;
44140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44141 if (!SWIG_IsOK(res1)) {
44142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44143 }
44144 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44145 {
44146 PyThreadState* __tstate = wxPyBeginAllowThreads();
44147 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44148 wxPyEndAllowThreads(__tstate);
44149 if (PyErr_Occurred()) SWIG_fail;
44150 }
44151 {
44152#if wxUSE_UNICODE
44153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44154#else
44155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44156#endif
44157 }
44158 return resultobj;
44159fail:
44160 return NULL;
44161}
44162
44163
b850e7f3
RD
44164SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44165 PyObject *obj;
44166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44167 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44168 return SWIG_Py_Void();
44169}
44170
44171SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44172 return SWIG_Python_InitShadowInstance(args);
44173}
44174
44175SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44176 PyObject *resultobj = 0;
44177 wxWindow *arg1 = (wxWindow *) 0 ;
44178 int arg2 = (int) -1 ;
44179 wxString const &arg3_defvalue = wxPyEmptyString ;
44180 wxString *arg3 = (wxString *) &arg3_defvalue ;
44181 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44182 wxString *arg4 = (wxString *) &arg4_defvalue ;
44183 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44184 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44185 wxSize const &arg6_defvalue = wxDefaultSize ;
44186 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44187 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44188 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44189 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44190 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44191 wxString *arg9 = (wxString *) &arg9_defvalue ;
44192 wxDirPickerCtrl *result = 0 ;
44193 void *argp1 = 0 ;
44194 int res1 = 0 ;
44195 int val2 ;
44196 int ecode2 = 0 ;
44197 bool temp3 = false ;
44198 bool temp4 = false ;
44199 wxPoint temp5 ;
44200 wxSize temp6 ;
44201 long val7 ;
44202 int ecode7 = 0 ;
44203 void *argp8 = 0 ;
44204 int res8 = 0 ;
44205 bool temp9 = false ;
44206 PyObject * obj0 = 0 ;
44207 PyObject * obj1 = 0 ;
44208 PyObject * obj2 = 0 ;
44209 PyObject * obj3 = 0 ;
44210 PyObject * obj4 = 0 ;
44211 PyObject * obj5 = 0 ;
44212 PyObject * obj6 = 0 ;
44213 PyObject * obj7 = 0 ;
44214 PyObject * obj8 = 0 ;
44215 char * kwnames[] = {
44216 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44217 };
44218
44219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44221 if (!SWIG_IsOK(res1)) {
44222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44223 }
44224 arg1 = reinterpret_cast< wxWindow * >(argp1);
44225 if (obj1) {
44226 ecode2 = SWIG_AsVal_int(obj1, &val2);
44227 if (!SWIG_IsOK(ecode2)) {
44228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44229 }
44230 arg2 = static_cast< int >(val2);
44231 }
44232 if (obj2) {
44233 {
44234 arg3 = wxString_in_helper(obj2);
44235 if (arg3 == NULL) SWIG_fail;
44236 temp3 = true;
44237 }
44238 }
44239 if (obj3) {
44240 {
44241 arg4 = wxString_in_helper(obj3);
44242 if (arg4 == NULL) SWIG_fail;
44243 temp4 = true;
44244 }
44245 }
44246 if (obj4) {
44247 {
44248 arg5 = &temp5;
44249 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44250 }
44251 }
44252 if (obj5) {
44253 {
44254 arg6 = &temp6;
44255 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44256 }
44257 }
44258 if (obj6) {
44259 ecode7 = SWIG_AsVal_long(obj6, &val7);
44260 if (!SWIG_IsOK(ecode7)) {
44261 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44262 }
44263 arg7 = static_cast< long >(val7);
44264 }
44265 if (obj7) {
44266 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44267 if (!SWIG_IsOK(res8)) {
44268 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44269 }
44270 if (!argp8) {
44271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44272 }
44273 arg8 = reinterpret_cast< wxValidator * >(argp8);
44274 }
44275 if (obj8) {
44276 {
44277 arg9 = wxString_in_helper(obj8);
44278 if (arg9 == NULL) SWIG_fail;
44279 temp9 = true;
44280 }
44281 }
44282 {
44283 if (!wxPyCheckForApp()) SWIG_fail;
44284 PyThreadState* __tstate = wxPyBeginAllowThreads();
44285 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);
44286 wxPyEndAllowThreads(__tstate);
44287 if (PyErr_Occurred()) SWIG_fail;
44288 }
44289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44290 {
44291 if (temp3)
44292 delete arg3;
44293 }
44294 {
44295 if (temp4)
44296 delete arg4;
44297 }
44298 {
44299 if (temp9)
44300 delete arg9;
44301 }
44302 return resultobj;
44303fail:
44304 {
44305 if (temp3)
44306 delete arg3;
44307 }
44308 {
44309 if (temp4)
44310 delete arg4;
44311 }
44312 {
44313 if (temp9)
44314 delete arg9;
44315 }
44316 return NULL;
44317}
44318
44319
44320SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44321 PyObject *resultobj = 0;
44322 wxDirPickerCtrl *result = 0 ;
44323
44324 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44325 {
44326 if (!wxPyCheckForApp()) SWIG_fail;
44327 PyThreadState* __tstate = wxPyBeginAllowThreads();
44328 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44329 wxPyEndAllowThreads(__tstate);
44330 if (PyErr_Occurred()) SWIG_fail;
44331 }
44332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44333 return resultobj;
44334fail:
44335 return NULL;
44336}
44337
44338
44339SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44340 PyObject *resultobj = 0;
44341 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44342 wxWindow *arg2 = (wxWindow *) 0 ;
44343 int arg3 = (int) -1 ;
44344 wxString const &arg4_defvalue = wxPyEmptyString ;
44345 wxString *arg4 = (wxString *) &arg4_defvalue ;
44346 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44347 wxString *arg5 = (wxString *) &arg5_defvalue ;
44348 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44349 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44350 wxSize const &arg7_defvalue = wxDefaultSize ;
44351 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44352 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44353 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44354 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44355 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44356 wxString *arg10 = (wxString *) &arg10_defvalue ;
44357 bool result;
44358 void *argp1 = 0 ;
44359 int res1 = 0 ;
44360 void *argp2 = 0 ;
44361 int res2 = 0 ;
44362 int val3 ;
44363 int ecode3 = 0 ;
44364 bool temp4 = false ;
44365 bool temp5 = false ;
44366 wxPoint temp6 ;
44367 wxSize temp7 ;
44368 long val8 ;
44369 int ecode8 = 0 ;
44370 void *argp9 = 0 ;
44371 int res9 = 0 ;
44372 bool temp10 = false ;
44373 PyObject * obj0 = 0 ;
44374 PyObject * obj1 = 0 ;
44375 PyObject * obj2 = 0 ;
44376 PyObject * obj3 = 0 ;
44377 PyObject * obj4 = 0 ;
44378 PyObject * obj5 = 0 ;
44379 PyObject * obj6 = 0 ;
44380 PyObject * obj7 = 0 ;
44381 PyObject * obj8 = 0 ;
44382 PyObject * obj9 = 0 ;
44383 char * kwnames[] = {
44384 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44385 };
44386
44387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44389 if (!SWIG_IsOK(res1)) {
44390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44391 }
44392 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44393 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44394 if (!SWIG_IsOK(res2)) {
44395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44396 }
44397 arg2 = reinterpret_cast< wxWindow * >(argp2);
44398 if (obj2) {
44399 ecode3 = SWIG_AsVal_int(obj2, &val3);
44400 if (!SWIG_IsOK(ecode3)) {
44401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44402 }
44403 arg3 = static_cast< int >(val3);
44404 }
44405 if (obj3) {
44406 {
44407 arg4 = wxString_in_helper(obj3);
44408 if (arg4 == NULL) SWIG_fail;
44409 temp4 = true;
44410 }
44411 }
44412 if (obj4) {
44413 {
44414 arg5 = wxString_in_helper(obj4);
44415 if (arg5 == NULL) SWIG_fail;
44416 temp5 = true;
44417 }
44418 }
44419 if (obj5) {
44420 {
44421 arg6 = &temp6;
44422 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44423 }
44424 }
44425 if (obj6) {
44426 {
44427 arg7 = &temp7;
44428 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44429 }
44430 }
44431 if (obj7) {
44432 ecode8 = SWIG_AsVal_long(obj7, &val8);
44433 if (!SWIG_IsOK(ecode8)) {
44434 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44435 }
44436 arg8 = static_cast< long >(val8);
44437 }
44438 if (obj8) {
44439 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44440 if (!SWIG_IsOK(res9)) {
44441 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44442 }
44443 if (!argp9) {
44444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44445 }
44446 arg9 = reinterpret_cast< wxValidator * >(argp9);
44447 }
44448 if (obj9) {
44449 {
44450 arg10 = wxString_in_helper(obj9);
44451 if (arg10 == NULL) SWIG_fail;
44452 temp10 = true;
44453 }
44454 }
44455 {
44456 PyThreadState* __tstate = wxPyBeginAllowThreads();
44457 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);
44458 wxPyEndAllowThreads(__tstate);
44459 if (PyErr_Occurred()) SWIG_fail;
44460 }
44461 {
44462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44463 }
44464 {
44465 if (temp4)
44466 delete arg4;
44467 }
44468 {
44469 if (temp5)
44470 delete arg5;
44471 }
44472 {
44473 if (temp10)
44474 delete arg10;
44475 }
44476 return resultobj;
44477fail:
44478 {
44479 if (temp4)
44480 delete arg4;
44481 }
44482 {
44483 if (temp5)
44484 delete arg5;
44485 }
44486 {
44487 if (temp10)
44488 delete arg10;
44489 }
44490 return NULL;
44491}
44492
44493
44494SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44495 PyObject *resultobj = 0;
44496 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44497 wxString result;
44498 void *argp1 = 0 ;
44499 int res1 = 0 ;
44500 PyObject *swig_obj[1] ;
44501
44502 if (!args) SWIG_fail;
44503 swig_obj[0] = args;
44504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44505 if (!SWIG_IsOK(res1)) {
44506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44507 }
44508 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44509 {
44510 PyThreadState* __tstate = wxPyBeginAllowThreads();
44511 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44512 wxPyEndAllowThreads(__tstate);
44513 if (PyErr_Occurred()) SWIG_fail;
44514 }
44515 {
44516#if wxUSE_UNICODE
44517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44518#else
44519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44520#endif
44521 }
44522 return resultobj;
44523fail:
44524 return NULL;
44525}
44526
44527
44528SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44529 PyObject *resultobj = 0;
44530 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44531 wxString *arg2 = 0 ;
44532 void *argp1 = 0 ;
44533 int res1 = 0 ;
44534 bool temp2 = false ;
44535 PyObject * obj0 = 0 ;
44536 PyObject * obj1 = 0 ;
44537 char * kwnames[] = {
44538 (char *) "self",(char *) "str", NULL
44539 };
44540
44541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44543 if (!SWIG_IsOK(res1)) {
44544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44545 }
44546 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44547 {
44548 arg2 = wxString_in_helper(obj1);
44549 if (arg2 == NULL) SWIG_fail;
44550 temp2 = true;
44551 }
44552 {
44553 PyThreadState* __tstate = wxPyBeginAllowThreads();
44554 (arg1)->SetPath((wxString const &)*arg2);
44555 wxPyEndAllowThreads(__tstate);
44556 if (PyErr_Occurred()) SWIG_fail;
44557 }
44558 resultobj = SWIG_Py_Void();
44559 {
44560 if (temp2)
44561 delete arg2;
44562 }
44563 return resultobj;
44564fail:
44565 {
44566 if (temp2)
44567 delete arg2;
44568 }
44569 return NULL;
44570}
44571
44572
b02396e8
RD
44573SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44574 PyObject *resultobj = 0;
44575 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44576 wxString *arg2 = 0 ;
44577 bool result;
44578 void *argp1 = 0 ;
44579 int res1 = 0 ;
44580 bool temp2 = false ;
44581 PyObject * obj0 = 0 ;
44582 PyObject * obj1 = 0 ;
44583 char * kwnames[] = {
44584 (char *) "self",(char *) "path", NULL
44585 };
44586
44587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44589 if (!SWIG_IsOK(res1)) {
44590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44591 }
44592 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44593 {
44594 arg2 = wxString_in_helper(obj1);
44595 if (arg2 == NULL) SWIG_fail;
44596 temp2 = true;
44597 }
44598 {
44599 PyThreadState* __tstate = wxPyBeginAllowThreads();
44600 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44601 wxPyEndAllowThreads(__tstate);
44602 if (PyErr_Occurred()) SWIG_fail;
44603 }
44604 {
44605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44606 }
44607 {
44608 if (temp2)
44609 delete arg2;
44610 }
44611 return resultobj;
44612fail:
44613 {
44614 if (temp2)
44615 delete arg2;
44616 }
44617 return NULL;
44618}
44619
44620
44621SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44622 PyObject *resultobj = 0;
44623 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44624 wxString result;
44625 void *argp1 = 0 ;
44626 int res1 = 0 ;
44627 PyObject *swig_obj[1] ;
44628
44629 if (!args) SWIG_fail;
44630 swig_obj[0] = args;
44631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44632 if (!SWIG_IsOK(res1)) {
44633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44634 }
44635 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44636 {
44637 PyThreadState* __tstate = wxPyBeginAllowThreads();
44638 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44639 wxPyEndAllowThreads(__tstate);
44640 if (PyErr_Occurred()) SWIG_fail;
44641 }
44642 {
44643#if wxUSE_UNICODE
44644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44645#else
44646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44647#endif
44648 }
44649 return resultobj;
44650fail:
44651 return NULL;
44652}
44653
44654
b850e7f3
RD
44655SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44656 PyObject *obj;
44657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44658 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44659 return SWIG_Py_Void();
44660}
44661
44662SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44663 return SWIG_Python_InitShadowInstance(args);
44664}
44665
44666SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44667 PyObject *resultobj = 0;
44668 wxEventType arg1 ;
44669 wxObject *arg2 = (wxObject *) 0 ;
44670 int arg3 ;
44671 wxString *arg4 = 0 ;
44672 wxFileDirPickerEvent *result = 0 ;
44673 int val1 ;
44674 int ecode1 = 0 ;
44675 void *argp2 = 0 ;
44676 int res2 = 0 ;
44677 int val3 ;
44678 int ecode3 = 0 ;
44679 bool temp4 = false ;
44680 PyObject * obj0 = 0 ;
44681 PyObject * obj1 = 0 ;
44682 PyObject * obj2 = 0 ;
44683 PyObject * obj3 = 0 ;
44684 char * kwnames[] = {
44685 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44686 };
44687
44688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44689 ecode1 = SWIG_AsVal_int(obj0, &val1);
44690 if (!SWIG_IsOK(ecode1)) {
44691 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44692 }
44693 arg1 = static_cast< wxEventType >(val1);
44694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44695 if (!SWIG_IsOK(res2)) {
44696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44697 }
44698 arg2 = reinterpret_cast< wxObject * >(argp2);
44699 ecode3 = SWIG_AsVal_int(obj2, &val3);
44700 if (!SWIG_IsOK(ecode3)) {
44701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44702 }
44703 arg3 = static_cast< int >(val3);
44704 {
44705 arg4 = wxString_in_helper(obj3);
44706 if (arg4 == NULL) SWIG_fail;
44707 temp4 = true;
44708 }
44709 {
44710 PyThreadState* __tstate = wxPyBeginAllowThreads();
44711 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44712 wxPyEndAllowThreads(__tstate);
44713 if (PyErr_Occurred()) SWIG_fail;
44714 }
44715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44716 {
44717 if (temp4)
44718 delete arg4;
44719 }
44720 return resultobj;
44721fail:
44722 {
44723 if (temp4)
44724 delete arg4;
44725 }
44726 return NULL;
44727}
44728
44729
44730SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44731 PyObject *resultobj = 0;
44732 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44733 wxString result;
44734 void *argp1 = 0 ;
44735 int res1 = 0 ;
44736 PyObject *swig_obj[1] ;
44737
44738 if (!args) SWIG_fail;
44739 swig_obj[0] = args;
44740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44741 if (!SWIG_IsOK(res1)) {
44742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44743 }
44744 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44745 {
44746 PyThreadState* __tstate = wxPyBeginAllowThreads();
44747 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44748 wxPyEndAllowThreads(__tstate);
44749 if (PyErr_Occurred()) SWIG_fail;
44750 }
44751 {
44752#if wxUSE_UNICODE
44753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44754#else
44755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44756#endif
44757 }
44758 return resultobj;
44759fail:
44760 return NULL;
44761}
44762
44763
44764SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44765 PyObject *resultobj = 0;
44766 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44767 wxString *arg2 = 0 ;
44768 void *argp1 = 0 ;
44769 int res1 = 0 ;
44770 bool temp2 = false ;
44771 PyObject * obj0 = 0 ;
44772 PyObject * obj1 = 0 ;
44773 char * kwnames[] = {
44774 (char *) "self",(char *) "p", NULL
44775 };
44776
44777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44779 if (!SWIG_IsOK(res1)) {
44780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44781 }
44782 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44783 {
44784 arg2 = wxString_in_helper(obj1);
44785 if (arg2 == NULL) SWIG_fail;
44786 temp2 = true;
44787 }
44788 {
44789 PyThreadState* __tstate = wxPyBeginAllowThreads();
44790 (arg1)->SetPath((wxString const &)*arg2);
44791 wxPyEndAllowThreads(__tstate);
44792 if (PyErr_Occurred()) SWIG_fail;
44793 }
44794 resultobj = SWIG_Py_Void();
44795 {
44796 if (temp2)
44797 delete arg2;
44798 }
44799 return resultobj;
44800fail:
44801 {
44802 if (temp2)
44803 delete arg2;
44804 }
44805 return NULL;
44806}
44807
44808
44809SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44810 PyObject *obj;
44811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44812 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44813 return SWIG_Py_Void();
44814}
44815
44816SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44817 return SWIG_Python_InitShadowInstance(args);
44818}
44819
44820SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44821 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44822 return 1;
44823}
44824
44825
44826SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44827 PyObject *pyobj = 0;
44828
44829 {
44830#if wxUSE_UNICODE
44831 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44832#else
44833 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44834#endif
44835 }
44836 return pyobj;
44837}
44838
44839
44840SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44841 PyObject *resultobj = 0;
44842 wxWindow *arg1 = (wxWindow *) 0 ;
44843 int arg2 = (int) -1 ;
f89238b9 44844 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
44845 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44846 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44847 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44848 wxSize const &arg5_defvalue = wxDefaultSize ;
44849 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44850 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44851 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44852 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44853 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44854 wxString *arg8 = (wxString *) &arg8_defvalue ;
44855 wxFontPickerCtrl *result = 0 ;
44856 void *argp1 = 0 ;
44857 int res1 = 0 ;
44858 int val2 ;
44859 int ecode2 = 0 ;
44860 void *argp3 = 0 ;
44861 int res3 = 0 ;
44862 wxPoint temp4 ;
44863 wxSize temp5 ;
44864 long val6 ;
44865 int ecode6 = 0 ;
44866 void *argp7 = 0 ;
44867 int res7 = 0 ;
44868 bool temp8 = false ;
44869 PyObject * obj0 = 0 ;
44870 PyObject * obj1 = 0 ;
44871 PyObject * obj2 = 0 ;
44872 PyObject * obj3 = 0 ;
44873 PyObject * obj4 = 0 ;
44874 PyObject * obj5 = 0 ;
44875 PyObject * obj6 = 0 ;
44876 PyObject * obj7 = 0 ;
44877 char * kwnames[] = {
44878 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44879 };
44880
44881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44883 if (!SWIG_IsOK(res1)) {
44884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44885 }
44886 arg1 = reinterpret_cast< wxWindow * >(argp1);
44887 if (obj1) {
44888 ecode2 = SWIG_AsVal_int(obj1, &val2);
44889 if (!SWIG_IsOK(ecode2)) {
44890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44891 }
44892 arg2 = static_cast< int >(val2);
44893 }
44894 if (obj2) {
44895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44896 if (!SWIG_IsOK(res3)) {
44897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44898 }
44899 if (!argp3) {
44900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44901 }
44902 arg3 = reinterpret_cast< wxFont * >(argp3);
44903 }
44904 if (obj3) {
44905 {
44906 arg4 = &temp4;
44907 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44908 }
44909 }
44910 if (obj4) {
44911 {
44912 arg5 = &temp5;
44913 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44914 }
44915 }
44916 if (obj5) {
44917 ecode6 = SWIG_AsVal_long(obj5, &val6);
44918 if (!SWIG_IsOK(ecode6)) {
44919 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44920 }
44921 arg6 = static_cast< long >(val6);
44922 }
44923 if (obj6) {
44924 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44925 if (!SWIG_IsOK(res7)) {
44926 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44927 }
44928 if (!argp7) {
44929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44930 }
44931 arg7 = reinterpret_cast< wxValidator * >(argp7);
44932 }
44933 if (obj7) {
44934 {
44935 arg8 = wxString_in_helper(obj7);
44936 if (arg8 == NULL) SWIG_fail;
44937 temp8 = true;
44938 }
44939 }
44940 {
44941 if (!wxPyCheckForApp()) SWIG_fail;
44942 PyThreadState* __tstate = wxPyBeginAllowThreads();
44943 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44944 wxPyEndAllowThreads(__tstate);
44945 if (PyErr_Occurred()) SWIG_fail;
44946 }
44947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44948 {
44949 if (temp8)
44950 delete arg8;
44951 }
44952 return resultobj;
44953fail:
44954 {
44955 if (temp8)
44956 delete arg8;
44957 }
44958 return NULL;
44959}
44960
44961
44962SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44963 PyObject *resultobj = 0;
44964 wxFontPickerCtrl *result = 0 ;
44965
44966 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44967 {
44968 if (!wxPyCheckForApp()) SWIG_fail;
44969 PyThreadState* __tstate = wxPyBeginAllowThreads();
44970 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44971 wxPyEndAllowThreads(__tstate);
44972 if (PyErr_Occurred()) SWIG_fail;
44973 }
44974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44975 return resultobj;
44976fail:
44977 return NULL;
44978}
44979
44980
44981SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44982 PyObject *resultobj = 0;
44983 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44984 wxWindow *arg2 = (wxWindow *) 0 ;
44985 int arg3 = (int) -1 ;
f89238b9 44986 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
44987 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44988 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44989 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44990 wxSize const &arg6_defvalue = wxDefaultSize ;
44991 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44992 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44993 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44994 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44995 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44996 wxString *arg9 = (wxString *) &arg9_defvalue ;
44997 bool result;
44998 void *argp1 = 0 ;
44999 int res1 = 0 ;
45000 void *argp2 = 0 ;
45001 int res2 = 0 ;
45002 int val3 ;
45003 int ecode3 = 0 ;
45004 void *argp4 = 0 ;
45005 int res4 = 0 ;
45006 wxPoint temp5 ;
45007 wxSize temp6 ;
45008 long val7 ;
45009 int ecode7 = 0 ;
45010 void *argp8 = 0 ;
45011 int res8 = 0 ;
45012 bool temp9 = false ;
45013 PyObject * obj0 = 0 ;
45014 PyObject * obj1 = 0 ;
45015 PyObject * obj2 = 0 ;
45016 PyObject * obj3 = 0 ;
45017 PyObject * obj4 = 0 ;
45018 PyObject * obj5 = 0 ;
45019 PyObject * obj6 = 0 ;
45020 PyObject * obj7 = 0 ;
45021 PyObject * obj8 = 0 ;
45022 char * kwnames[] = {
45023 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45024 };
45025
45026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45028 if (!SWIG_IsOK(res1)) {
45029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45030 }
45031 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45033 if (!SWIG_IsOK(res2)) {
45034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45035 }
45036 arg2 = reinterpret_cast< wxWindow * >(argp2);
45037 if (obj2) {
45038 ecode3 = SWIG_AsVal_int(obj2, &val3);
45039 if (!SWIG_IsOK(ecode3)) {
45040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45041 }
45042 arg3 = static_cast< int >(val3);
45043 }
45044 if (obj3) {
45045 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45046 if (!SWIG_IsOK(res4)) {
45047 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45048 }
45049 if (!argp4) {
45050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45051 }
45052 arg4 = reinterpret_cast< wxFont * >(argp4);
45053 }
45054 if (obj4) {
45055 {
45056 arg5 = &temp5;
45057 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45058 }
45059 }
45060 if (obj5) {
45061 {
45062 arg6 = &temp6;
45063 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45064 }
45065 }
45066 if (obj6) {
45067 ecode7 = SWIG_AsVal_long(obj6, &val7);
45068 if (!SWIG_IsOK(ecode7)) {
45069 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45070 }
45071 arg7 = static_cast< long >(val7);
45072 }
45073 if (obj7) {
45074 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45075 if (!SWIG_IsOK(res8)) {
45076 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45077 }
45078 if (!argp8) {
45079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45080 }
45081 arg8 = reinterpret_cast< wxValidator * >(argp8);
45082 }
45083 if (obj8) {
45084 {
45085 arg9 = wxString_in_helper(obj8);
45086 if (arg9 == NULL) SWIG_fail;
45087 temp9 = true;
45088 }
45089 }
45090 {
45091 PyThreadState* __tstate = wxPyBeginAllowThreads();
45092 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45093 wxPyEndAllowThreads(__tstate);
45094 if (PyErr_Occurred()) SWIG_fail;
45095 }
45096 {
45097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45098 }
45099 {
45100 if (temp9)
45101 delete arg9;
45102 }
45103 return resultobj;
45104fail:
45105 {
45106 if (temp9)
45107 delete arg9;
45108 }
45109 return NULL;
45110}
45111
45112
45113SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45114 PyObject *resultobj = 0;
45115 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45116 wxFont result;
45117 void *argp1 = 0 ;
45118 int res1 = 0 ;
45119 PyObject *swig_obj[1] ;
45120
45121 if (!args) SWIG_fail;
45122 swig_obj[0] = args;
45123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45124 if (!SWIG_IsOK(res1)) {
45125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45126 }
45127 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45128 {
45129 PyThreadState* __tstate = wxPyBeginAllowThreads();
45130 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45131 wxPyEndAllowThreads(__tstate);
45132 if (PyErr_Occurred()) SWIG_fail;
45133 }
45134 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45135 return resultobj;
45136fail:
45137 return NULL;
45138}
45139
45140
45141SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45142 PyObject *resultobj = 0;
45143 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45144 wxFont *arg2 = 0 ;
45145 void *argp1 = 0 ;
45146 int res1 = 0 ;
45147 void *argp2 = 0 ;
45148 int res2 = 0 ;
45149 PyObject * obj0 = 0 ;
45150 PyObject * obj1 = 0 ;
45151 char * kwnames[] = {
45152 (char *) "self",(char *) "f", NULL
45153 };
45154
45155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45157 if (!SWIG_IsOK(res1)) {
45158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45159 }
45160 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45162 if (!SWIG_IsOK(res2)) {
45163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45164 }
45165 if (!argp2) {
45166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45167 }
45168 arg2 = reinterpret_cast< wxFont * >(argp2);
45169 {
45170 PyThreadState* __tstate = wxPyBeginAllowThreads();
45171 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45172 wxPyEndAllowThreads(__tstate);
45173 if (PyErr_Occurred()) SWIG_fail;
45174 }
45175 resultobj = SWIG_Py_Void();
45176 return resultobj;
45177fail:
45178 return NULL;
45179}
45180
45181
45182SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45183 PyObject *resultobj = 0;
45184 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45185 unsigned int arg2 ;
45186 void *argp1 = 0 ;
45187 int res1 = 0 ;
45188 unsigned int val2 ;
45189 int ecode2 = 0 ;
45190 PyObject * obj0 = 0 ;
45191 PyObject * obj1 = 0 ;
45192 char * kwnames[] = {
45193 (char *) "self",(char *) "max", NULL
45194 };
45195
45196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45198 if (!SWIG_IsOK(res1)) {
45199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45200 }
45201 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45202 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45203 if (!SWIG_IsOK(ecode2)) {
45204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45205 }
45206 arg2 = static_cast< unsigned int >(val2);
45207 {
45208 PyThreadState* __tstate = wxPyBeginAllowThreads();
45209 (arg1)->SetMaxPointSize(arg2);
45210 wxPyEndAllowThreads(__tstate);
45211 if (PyErr_Occurred()) SWIG_fail;
45212 }
45213 resultobj = SWIG_Py_Void();
45214 return resultobj;
45215fail:
45216 return NULL;
45217}
45218
45219
45220SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45221 PyObject *resultobj = 0;
45222 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45223 unsigned int result;
45224 void *argp1 = 0 ;
45225 int res1 = 0 ;
45226 PyObject *swig_obj[1] ;
45227
45228 if (!args) SWIG_fail;
45229 swig_obj[0] = args;
45230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45231 if (!SWIG_IsOK(res1)) {
45232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45233 }
45234 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45235 {
45236 PyThreadState* __tstate = wxPyBeginAllowThreads();
45237 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45238 wxPyEndAllowThreads(__tstate);
45239 if (PyErr_Occurred()) SWIG_fail;
45240 }
45241 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45242 return resultobj;
45243fail:
45244 return NULL;
45245}
45246
45247
45248SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45249 PyObject *obj;
45250 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45251 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45252 return SWIG_Py_Void();
45253}
45254
45255SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45256 return SWIG_Python_InitShadowInstance(args);
45257}
45258
45259SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45260 PyObject *resultobj = 0;
45261 wxObject *arg1 = (wxObject *) 0 ;
45262 int arg2 ;
45263 wxFont *arg3 = 0 ;
45264 wxFontPickerEvent *result = 0 ;
45265 void *argp1 = 0 ;
45266 int res1 = 0 ;
45267 int val2 ;
45268 int ecode2 = 0 ;
45269 void *argp3 = 0 ;
45270 int res3 = 0 ;
45271 PyObject * obj0 = 0 ;
45272 PyObject * obj1 = 0 ;
45273 PyObject * obj2 = 0 ;
45274 char * kwnames[] = {
45275 (char *) "generator",(char *) "id",(char *) "f", NULL
45276 };
45277
45278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45280 if (!SWIG_IsOK(res1)) {
45281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45282 }
45283 arg1 = reinterpret_cast< wxObject * >(argp1);
45284 ecode2 = SWIG_AsVal_int(obj1, &val2);
45285 if (!SWIG_IsOK(ecode2)) {
45286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45287 }
45288 arg2 = static_cast< int >(val2);
45289 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45290 if (!SWIG_IsOK(res3)) {
45291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45292 }
45293 if (!argp3) {
45294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45295 }
45296 arg3 = reinterpret_cast< wxFont * >(argp3);
45297 {
45298 PyThreadState* __tstate = wxPyBeginAllowThreads();
45299 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45300 wxPyEndAllowThreads(__tstate);
45301 if (PyErr_Occurred()) SWIG_fail;
45302 }
45303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45304 return resultobj;
45305fail:
45306 return NULL;
45307}
45308
45309
45310SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45311 PyObject *resultobj = 0;
45312 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45313 wxFont result;
45314 void *argp1 = 0 ;
45315 int res1 = 0 ;
45316 PyObject *swig_obj[1] ;
45317
45318 if (!args) SWIG_fail;
45319 swig_obj[0] = args;
45320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45321 if (!SWIG_IsOK(res1)) {
45322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45323 }
45324 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45325 {
45326 PyThreadState* __tstate = wxPyBeginAllowThreads();
45327 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45328 wxPyEndAllowThreads(__tstate);
45329 if (PyErr_Occurred()) SWIG_fail;
45330 }
45331 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45332 return resultobj;
45333fail:
45334 return NULL;
45335}
45336
45337
45338SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45339 PyObject *resultobj = 0;
45340 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45341 wxFont *arg2 = 0 ;
45342 void *argp1 = 0 ;
45343 int res1 = 0 ;
45344 void *argp2 = 0 ;
45345 int res2 = 0 ;
45346 PyObject * obj0 = 0 ;
45347 PyObject * obj1 = 0 ;
45348 char * kwnames[] = {
45349 (char *) "self",(char *) "c", NULL
45350 };
45351
45352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45354 if (!SWIG_IsOK(res1)) {
45355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45356 }
45357 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45358 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45359 if (!SWIG_IsOK(res2)) {
45360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45361 }
45362 if (!argp2) {
45363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45364 }
45365 arg2 = reinterpret_cast< wxFont * >(argp2);
45366 {
45367 PyThreadState* __tstate = wxPyBeginAllowThreads();
45368 (arg1)->SetFont((wxFont const &)*arg2);
45369 wxPyEndAllowThreads(__tstate);
45370 if (PyErr_Occurred()) SWIG_fail;
45371 }
45372 resultobj = SWIG_Py_Void();
45373 return resultobj;
45374fail:
45375 return NULL;
45376}
45377
45378
45379SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45380 PyObject *obj;
45381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45382 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45383 return SWIG_Py_Void();
45384}
45385
45386SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45387 return SWIG_Python_InitShadowInstance(args);
45388}
45389
5172800e
RD
45390SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45391 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45392 return 1;
45393}
45394
45395
45396SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45397 PyObject *pyobj = 0;
45398
45399 {
45400#if wxUSE_UNICODE
45401 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45402#else
45403 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45404#endif
45405 }
45406 return pyobj;
45407}
45408
45409
45410SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45411 PyObject *resultobj = 0;
45412 wxWindow *arg1 = (wxWindow *) 0 ;
45413 int arg2 = (int) -1 ;
45414 wxString const &arg3_defvalue = wxPyEmptyString ;
45415 wxString *arg3 = (wxString *) &arg3_defvalue ;
45416 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45417 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45418 wxSize const &arg5_defvalue = wxDefaultSize ;
45419 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45420 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45421 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45422 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45423 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45424 wxString *arg8 = (wxString *) &arg8_defvalue ;
45425 wxCollapsiblePane *result = 0 ;
45426 void *argp1 = 0 ;
45427 int res1 = 0 ;
45428 int val2 ;
45429 int ecode2 = 0 ;
45430 bool temp3 = false ;
45431 wxPoint temp4 ;
45432 wxSize temp5 ;
45433 long val6 ;
45434 int ecode6 = 0 ;
45435 void *argp7 = 0 ;
45436 int res7 = 0 ;
45437 bool temp8 = false ;
45438 PyObject * obj0 = 0 ;
45439 PyObject * obj1 = 0 ;
45440 PyObject * obj2 = 0 ;
45441 PyObject * obj3 = 0 ;
45442 PyObject * obj4 = 0 ;
45443 PyObject * obj5 = 0 ;
45444 PyObject * obj6 = 0 ;
45445 PyObject * obj7 = 0 ;
45446 char * kwnames[] = {
45447 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45448 };
45449
45450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45452 if (!SWIG_IsOK(res1)) {
45453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45454 }
45455 arg1 = reinterpret_cast< wxWindow * >(argp1);
45456 if (obj1) {
45457 ecode2 = SWIG_AsVal_int(obj1, &val2);
45458 if (!SWIG_IsOK(ecode2)) {
45459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45460 }
45461 arg2 = static_cast< int >(val2);
45462 }
45463 if (obj2) {
45464 {
45465 arg3 = wxString_in_helper(obj2);
45466 if (arg3 == NULL) SWIG_fail;
45467 temp3 = true;
45468 }
45469 }
45470 if (obj3) {
45471 {
45472 arg4 = &temp4;
45473 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45474 }
45475 }
45476 if (obj4) {
45477 {
45478 arg5 = &temp5;
45479 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45480 }
45481 }
45482 if (obj5) {
45483 ecode6 = SWIG_AsVal_long(obj5, &val6);
45484 if (!SWIG_IsOK(ecode6)) {
45485 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45486 }
45487 arg6 = static_cast< long >(val6);
45488 }
45489 if (obj6) {
45490 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45491 if (!SWIG_IsOK(res7)) {
45492 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45493 }
45494 if (!argp7) {
45495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45496 }
45497 arg7 = reinterpret_cast< wxValidator * >(argp7);
45498 }
45499 if (obj7) {
45500 {
45501 arg8 = wxString_in_helper(obj7);
45502 if (arg8 == NULL) SWIG_fail;
45503 temp8 = true;
45504 }
45505 }
45506 {
45507 if (!wxPyCheckForApp()) SWIG_fail;
45508 PyThreadState* __tstate = wxPyBeginAllowThreads();
45509 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45510 wxPyEndAllowThreads(__tstate);
45511 if (PyErr_Occurred()) SWIG_fail;
45512 }
45513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45514 {
45515 if (temp3)
45516 delete arg3;
45517 }
45518 {
45519 if (temp8)
45520 delete arg8;
45521 }
45522 return resultobj;
45523fail:
45524 {
45525 if (temp3)
45526 delete arg3;
45527 }
45528 {
45529 if (temp8)
45530 delete arg8;
45531 }
45532 return NULL;
45533}
45534
45535
45536SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45537 PyObject *resultobj = 0;
45538 wxCollapsiblePane *result = 0 ;
45539
45540 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45541 {
45542 if (!wxPyCheckForApp()) SWIG_fail;
45543 PyThreadState* __tstate = wxPyBeginAllowThreads();
45544 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45545 wxPyEndAllowThreads(__tstate);
45546 if (PyErr_Occurred()) SWIG_fail;
45547 }
45548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45549 return resultobj;
45550fail:
45551 return NULL;
45552}
45553
45554
45555SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45556 PyObject *resultobj = 0;
45557 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45558 wxWindow *arg2 = (wxWindow *) 0 ;
45559 int arg3 = (int) -1 ;
45560 wxString const &arg4_defvalue = wxPyEmptyString ;
45561 wxString *arg4 = (wxString *) &arg4_defvalue ;
45562 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45563 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45564 wxSize const &arg6_defvalue = wxDefaultSize ;
45565 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45566 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45567 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45568 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45569 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45570 wxString *arg9 = (wxString *) &arg9_defvalue ;
45571 bool result;
45572 void *argp1 = 0 ;
45573 int res1 = 0 ;
45574 void *argp2 = 0 ;
45575 int res2 = 0 ;
45576 int val3 ;
45577 int ecode3 = 0 ;
45578 bool temp4 = false ;
45579 wxPoint temp5 ;
45580 wxSize temp6 ;
45581 long val7 ;
45582 int ecode7 = 0 ;
45583 void *argp8 = 0 ;
45584 int res8 = 0 ;
45585 bool temp9 = false ;
45586 PyObject * obj0 = 0 ;
45587 PyObject * obj1 = 0 ;
45588 PyObject * obj2 = 0 ;
45589 PyObject * obj3 = 0 ;
45590 PyObject * obj4 = 0 ;
45591 PyObject * obj5 = 0 ;
45592 PyObject * obj6 = 0 ;
45593 PyObject * obj7 = 0 ;
45594 PyObject * obj8 = 0 ;
45595 char * kwnames[] = {
45596 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45597 };
45598
45599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45601 if (!SWIG_IsOK(res1)) {
45602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45603 }
45604 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45605 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45606 if (!SWIG_IsOK(res2)) {
45607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45608 }
45609 arg2 = reinterpret_cast< wxWindow * >(argp2);
45610 if (obj2) {
45611 ecode3 = SWIG_AsVal_int(obj2, &val3);
45612 if (!SWIG_IsOK(ecode3)) {
45613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45614 }
45615 arg3 = static_cast< int >(val3);
45616 }
45617 if (obj3) {
45618 {
45619 arg4 = wxString_in_helper(obj3);
45620 if (arg4 == NULL) SWIG_fail;
45621 temp4 = true;
45622 }
45623 }
45624 if (obj4) {
45625 {
45626 arg5 = &temp5;
45627 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45628 }
45629 }
45630 if (obj5) {
45631 {
45632 arg6 = &temp6;
45633 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45634 }
45635 }
45636 if (obj6) {
45637 ecode7 = SWIG_AsVal_long(obj6, &val7);
45638 if (!SWIG_IsOK(ecode7)) {
45639 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45640 }
45641 arg7 = static_cast< long >(val7);
45642 }
45643 if (obj7) {
45644 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45645 if (!SWIG_IsOK(res8)) {
45646 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45647 }
45648 if (!argp8) {
45649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45650 }
45651 arg8 = reinterpret_cast< wxValidator * >(argp8);
45652 }
45653 if (obj8) {
45654 {
45655 arg9 = wxString_in_helper(obj8);
45656 if (arg9 == NULL) SWIG_fail;
45657 temp9 = true;
45658 }
45659 }
45660 {
45661 PyThreadState* __tstate = wxPyBeginAllowThreads();
45662 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45663 wxPyEndAllowThreads(__tstate);
45664 if (PyErr_Occurred()) SWIG_fail;
45665 }
45666 {
45667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45668 }
45669 {
45670 if (temp4)
45671 delete arg4;
45672 }
45673 {
45674 if (temp9)
45675 delete arg9;
45676 }
45677 return resultobj;
45678fail:
45679 {
45680 if (temp4)
45681 delete arg4;
45682 }
45683 {
45684 if (temp9)
45685 delete arg9;
45686 }
45687 return NULL;
45688}
45689
45690
45691SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45692 PyObject *resultobj = 0;
45693 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45694 bool arg2 = (bool) true ;
45695 void *argp1 = 0 ;
45696 int res1 = 0 ;
45697 bool val2 ;
45698 int ecode2 = 0 ;
45699 PyObject * obj0 = 0 ;
45700 PyObject * obj1 = 0 ;
45701 char * kwnames[] = {
45702 (char *) "self",(char *) "collapse", NULL
45703 };
45704
45705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45707 if (!SWIG_IsOK(res1)) {
45708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45709 }
45710 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45711 if (obj1) {
45712 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45713 if (!SWIG_IsOK(ecode2)) {
45714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45715 }
45716 arg2 = static_cast< bool >(val2);
45717 }
45718 {
45719 PyThreadState* __tstate = wxPyBeginAllowThreads();
45720 (arg1)->Collapse(arg2);
45721 wxPyEndAllowThreads(__tstate);
45722 if (PyErr_Occurred()) SWIG_fail;
45723 }
45724 resultobj = SWIG_Py_Void();
45725 return resultobj;
45726fail:
45727 return NULL;
45728}
45729
45730
45731SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45732 PyObject *resultobj = 0;
45733 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45734 void *argp1 = 0 ;
45735 int res1 = 0 ;
45736 PyObject *swig_obj[1] ;
45737
45738 if (!args) SWIG_fail;
45739 swig_obj[0] = args;
45740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45741 if (!SWIG_IsOK(res1)) {
45742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45743 }
45744 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45745 {
45746 PyThreadState* __tstate = wxPyBeginAllowThreads();
45747 (arg1)->Expand();
45748 wxPyEndAllowThreads(__tstate);
45749 if (PyErr_Occurred()) SWIG_fail;
45750 }
45751 resultobj = SWIG_Py_Void();
45752 return resultobj;
45753fail:
45754 return NULL;
45755}
45756
45757
45758SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45759 PyObject *resultobj = 0;
45760 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45761 bool result;
45762 void *argp1 = 0 ;
45763 int res1 = 0 ;
45764 PyObject *swig_obj[1] ;
45765
45766 if (!args) SWIG_fail;
45767 swig_obj[0] = args;
45768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45769 if (!SWIG_IsOK(res1)) {
45770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45771 }
45772 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45773 {
45774 PyThreadState* __tstate = wxPyBeginAllowThreads();
45775 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45776 wxPyEndAllowThreads(__tstate);
45777 if (PyErr_Occurred()) SWIG_fail;
45778 }
45779 {
45780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45781 }
45782 return resultobj;
45783fail:
45784 return NULL;
45785}
45786
45787
45788SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45789 PyObject *resultobj = 0;
45790 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45791 bool result;
45792 void *argp1 = 0 ;
45793 int res1 = 0 ;
45794 PyObject *swig_obj[1] ;
45795
45796 if (!args) SWIG_fail;
45797 swig_obj[0] = args;
45798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45799 if (!SWIG_IsOK(res1)) {
45800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45801 }
45802 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45803 {
45804 PyThreadState* __tstate = wxPyBeginAllowThreads();
45805 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45806 wxPyEndAllowThreads(__tstate);
45807 if (PyErr_Occurred()) SWIG_fail;
45808 }
45809 {
45810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45811 }
45812 return resultobj;
45813fail:
45814 return NULL;
45815}
45816
45817
45818SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45819 PyObject *resultobj = 0;
45820 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45821 wxWindow *result = 0 ;
45822 void *argp1 = 0 ;
45823 int res1 = 0 ;
45824 PyObject *swig_obj[1] ;
45825
45826 if (!args) SWIG_fail;
45827 swig_obj[0] = args;
45828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45829 if (!SWIG_IsOK(res1)) {
45830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45831 }
45832 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45833 {
45834 PyThreadState* __tstate = wxPyBeginAllowThreads();
45835 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45836 wxPyEndAllowThreads(__tstate);
45837 if (PyErr_Occurred()) SWIG_fail;
45838 }
45839 {
45840 resultobj = wxPyMake_wxObject(result, 0);
45841 }
45842 return resultobj;
45843fail:
45844 return NULL;
45845}
45846
45847
45848SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45849 PyObject *obj;
45850 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45851 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45852 return SWIG_Py_Void();
45853}
45854
45855SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45856 return SWIG_Python_InitShadowInstance(args);
45857}
45858
45859SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45860 PyObject *resultobj = 0;
45861 wxObject *arg1 = (wxObject *) 0 ;
45862 int arg2 ;
45863 bool arg3 ;
45864 wxCollapsiblePaneEvent *result = 0 ;
45865 void *argp1 = 0 ;
45866 int res1 = 0 ;
45867 int val2 ;
45868 int ecode2 = 0 ;
45869 bool val3 ;
45870 int ecode3 = 0 ;
45871 PyObject * obj0 = 0 ;
45872 PyObject * obj1 = 0 ;
45873 PyObject * obj2 = 0 ;
45874 char * kwnames[] = {
45875 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45876 };
45877
45878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45880 if (!SWIG_IsOK(res1)) {
45881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45882 }
45883 arg1 = reinterpret_cast< wxObject * >(argp1);
45884 ecode2 = SWIG_AsVal_int(obj1, &val2);
45885 if (!SWIG_IsOK(ecode2)) {
45886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45887 }
45888 arg2 = static_cast< int >(val2);
45889 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45890 if (!SWIG_IsOK(ecode3)) {
45891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45892 }
45893 arg3 = static_cast< bool >(val3);
45894 {
45895 PyThreadState* __tstate = wxPyBeginAllowThreads();
45896 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45897 wxPyEndAllowThreads(__tstate);
45898 if (PyErr_Occurred()) SWIG_fail;
45899 }
45900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45901 return resultobj;
45902fail:
45903 return NULL;
45904}
45905
45906
45907SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45908 PyObject *resultobj = 0;
45909 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45910 bool result;
45911 void *argp1 = 0 ;
45912 int res1 = 0 ;
45913 PyObject *swig_obj[1] ;
45914
45915 if (!args) SWIG_fail;
45916 swig_obj[0] = args;
45917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45918 if (!SWIG_IsOK(res1)) {
45919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45920 }
45921 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45922 {
45923 PyThreadState* __tstate = wxPyBeginAllowThreads();
45924 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45925 wxPyEndAllowThreads(__tstate);
45926 if (PyErr_Occurred()) SWIG_fail;
45927 }
45928 {
45929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45930 }
45931 return resultobj;
45932fail:
45933 return NULL;
45934}
45935
45936
45937SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45938 PyObject *resultobj = 0;
45939 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45940 bool arg2 ;
45941 void *argp1 = 0 ;
45942 int res1 = 0 ;
45943 bool val2 ;
45944 int ecode2 = 0 ;
45945 PyObject * obj0 = 0 ;
45946 PyObject * obj1 = 0 ;
45947 char * kwnames[] = {
45948 (char *) "self",(char *) "c", NULL
45949 };
45950
45951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45953 if (!SWIG_IsOK(res1)) {
45954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45955 }
45956 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45957 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45958 if (!SWIG_IsOK(ecode2)) {
45959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45960 }
45961 arg2 = static_cast< bool >(val2);
45962 {
45963 PyThreadState* __tstate = wxPyBeginAllowThreads();
45964 (arg1)->SetCollapsed(arg2);
45965 wxPyEndAllowThreads(__tstate);
45966 if (PyErr_Occurred()) SWIG_fail;
45967 }
45968 resultobj = SWIG_Py_Void();
45969 return resultobj;
45970fail:
45971 return NULL;
45972}
45973
45974
45975SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45976 PyObject *obj;
45977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45978 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
45979 return SWIG_Py_Void();
45980}
45981
45982SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45983 return SWIG_Python_InitShadowInstance(args);
45984}
45985
3f7f284d
RD
45986SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
45987 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
45988 return 1;
45989}
45990
45991
45992SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
45993 PyObject *pyobj = 0;
45994
45995 {
45996#if wxUSE_UNICODE
45997 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
45998#else
45999 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46000#endif
46001 }
46002 return pyobj;
46003}
46004
46005
46006SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46007 PyObject *resultobj = 0;
46008 wxWindow *arg1 = (wxWindow *) 0 ;
46009 int arg2 = (int) -1 ;
46010 wxString const &arg3_defvalue = wxEmptyString ;
46011 wxString *arg3 = (wxString *) &arg3_defvalue ;
46012 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46013 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46014 wxSize const &arg5_defvalue = wxDefaultSize ;
46015 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46016 long arg6 = (long) 0 ;
46017 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46018 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46019 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46020 wxString *arg8 = (wxString *) &arg8_defvalue ;
46021 wxSearchCtrl *result = 0 ;
46022 void *argp1 = 0 ;
46023 int res1 = 0 ;
46024 int val2 ;
46025 int ecode2 = 0 ;
46026 bool temp3 = false ;
46027 wxPoint temp4 ;
46028 wxSize temp5 ;
46029 long val6 ;
46030 int ecode6 = 0 ;
46031 void *argp7 = 0 ;
46032 int res7 = 0 ;
46033 bool temp8 = false ;
46034 PyObject * obj0 = 0 ;
46035 PyObject * obj1 = 0 ;
46036 PyObject * obj2 = 0 ;
46037 PyObject * obj3 = 0 ;
46038 PyObject * obj4 = 0 ;
46039 PyObject * obj5 = 0 ;
46040 PyObject * obj6 = 0 ;
46041 PyObject * obj7 = 0 ;
46042 char * kwnames[] = {
46043 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46044 };
46045
46046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46048 if (!SWIG_IsOK(res1)) {
46049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46050 }
46051 arg1 = reinterpret_cast< wxWindow * >(argp1);
46052 if (obj1) {
46053 ecode2 = SWIG_AsVal_int(obj1, &val2);
46054 if (!SWIG_IsOK(ecode2)) {
46055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46056 }
46057 arg2 = static_cast< int >(val2);
46058 }
46059 if (obj2) {
46060 {
46061 arg3 = wxString_in_helper(obj2);
46062 if (arg3 == NULL) SWIG_fail;
46063 temp3 = true;
46064 }
46065 }
46066 if (obj3) {
46067 {
46068 arg4 = &temp4;
46069 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46070 }
46071 }
46072 if (obj4) {
46073 {
46074 arg5 = &temp5;
46075 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46076 }
46077 }
46078 if (obj5) {
46079 ecode6 = SWIG_AsVal_long(obj5, &val6);
46080 if (!SWIG_IsOK(ecode6)) {
46081 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46082 }
46083 arg6 = static_cast< long >(val6);
46084 }
46085 if (obj6) {
46086 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46087 if (!SWIG_IsOK(res7)) {
46088 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46089 }
46090 if (!argp7) {
46091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46092 }
46093 arg7 = reinterpret_cast< wxValidator * >(argp7);
46094 }
46095 if (obj7) {
46096 {
46097 arg8 = wxString_in_helper(obj7);
46098 if (arg8 == NULL) SWIG_fail;
46099 temp8 = true;
46100 }
46101 }
46102 {
46103 if (!wxPyCheckForApp()) SWIG_fail;
46104 PyThreadState* __tstate = wxPyBeginAllowThreads();
46105 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46106 wxPyEndAllowThreads(__tstate);
46107 if (PyErr_Occurred()) SWIG_fail;
46108 }
46109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46110 {
46111 if (temp3)
46112 delete arg3;
46113 }
46114 {
46115 if (temp8)
46116 delete arg8;
46117 }
46118 return resultobj;
46119fail:
46120 {
46121 if (temp3)
46122 delete arg3;
46123 }
46124 {
46125 if (temp8)
46126 delete arg8;
46127 }
46128 return NULL;
46129}
46130
46131
46132SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46133 PyObject *resultobj = 0;
46134 wxSearchCtrl *result = 0 ;
46135
46136 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46137 {
46138 if (!wxPyCheckForApp()) SWIG_fail;
46139 PyThreadState* __tstate = wxPyBeginAllowThreads();
46140 result = (wxSearchCtrl *)new wxSearchCtrl();
46141 wxPyEndAllowThreads(__tstate);
46142 if (PyErr_Occurred()) SWIG_fail;
46143 }
46144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46145 return resultobj;
46146fail:
46147 return NULL;
46148}
46149
46150
46151SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46152 PyObject *resultobj = 0;
46153 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46154 wxWindow *arg2 = (wxWindow *) 0 ;
46155 int arg3 = (int) -1 ;
46156 wxString const &arg4_defvalue = wxEmptyString ;
46157 wxString *arg4 = (wxString *) &arg4_defvalue ;
46158 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46159 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46160 wxSize const &arg6_defvalue = wxDefaultSize ;
46161 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46162 long arg7 = (long) 0 ;
46163 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46164 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46165 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46166 wxString *arg9 = (wxString *) &arg9_defvalue ;
46167 bool result;
46168 void *argp1 = 0 ;
46169 int res1 = 0 ;
46170 void *argp2 = 0 ;
46171 int res2 = 0 ;
46172 int val3 ;
46173 int ecode3 = 0 ;
46174 bool temp4 = false ;
46175 wxPoint temp5 ;
46176 wxSize temp6 ;
46177 long val7 ;
46178 int ecode7 = 0 ;
46179 void *argp8 = 0 ;
46180 int res8 = 0 ;
46181 bool temp9 = false ;
46182 PyObject * obj0 = 0 ;
46183 PyObject * obj1 = 0 ;
46184 PyObject * obj2 = 0 ;
46185 PyObject * obj3 = 0 ;
46186 PyObject * obj4 = 0 ;
46187 PyObject * obj5 = 0 ;
46188 PyObject * obj6 = 0 ;
46189 PyObject * obj7 = 0 ;
46190 PyObject * obj8 = 0 ;
46191 char * kwnames[] = {
46192 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46193 };
46194
46195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46197 if (!SWIG_IsOK(res1)) {
46198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46199 }
46200 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46202 if (!SWIG_IsOK(res2)) {
46203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46204 }
46205 arg2 = reinterpret_cast< wxWindow * >(argp2);
46206 if (obj2) {
46207 ecode3 = SWIG_AsVal_int(obj2, &val3);
46208 if (!SWIG_IsOK(ecode3)) {
46209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46210 }
46211 arg3 = static_cast< int >(val3);
46212 }
46213 if (obj3) {
46214 {
46215 arg4 = wxString_in_helper(obj3);
46216 if (arg4 == NULL) SWIG_fail;
46217 temp4 = true;
46218 }
46219 }
46220 if (obj4) {
46221 {
46222 arg5 = &temp5;
46223 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46224 }
46225 }
46226 if (obj5) {
46227 {
46228 arg6 = &temp6;
46229 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46230 }
46231 }
46232 if (obj6) {
46233 ecode7 = SWIG_AsVal_long(obj6, &val7);
46234 if (!SWIG_IsOK(ecode7)) {
46235 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46236 }
46237 arg7 = static_cast< long >(val7);
46238 }
46239 if (obj7) {
46240 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46241 if (!SWIG_IsOK(res8)) {
46242 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46243 }
46244 if (!argp8) {
46245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46246 }
46247 arg8 = reinterpret_cast< wxValidator * >(argp8);
46248 }
46249 if (obj8) {
46250 {
46251 arg9 = wxString_in_helper(obj8);
46252 if (arg9 == NULL) SWIG_fail;
46253 temp9 = true;
46254 }
46255 }
46256 {
46257 PyThreadState* __tstate = wxPyBeginAllowThreads();
46258 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46259 wxPyEndAllowThreads(__tstate);
46260 if (PyErr_Occurred()) SWIG_fail;
46261 }
46262 {
46263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46264 }
46265 {
46266 if (temp4)
46267 delete arg4;
46268 }
46269 {
46270 if (temp9)
46271 delete arg9;
46272 }
46273 return resultobj;
46274fail:
46275 {
46276 if (temp4)
46277 delete arg4;
46278 }
46279 {
46280 if (temp9)
46281 delete arg9;
46282 }
46283 return NULL;
46284}
46285
46286
46287SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46288 PyObject *resultobj = 0;
46289 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46290 wxMenu *arg2 = (wxMenu *) 0 ;
46291 void *argp1 = 0 ;
46292 int res1 = 0 ;
46293 void *argp2 = 0 ;
46294 int res2 = 0 ;
46295 PyObject * obj0 = 0 ;
46296 PyObject * obj1 = 0 ;
46297 char * kwnames[] = {
46298 (char *) "self",(char *) "menu", NULL
46299 };
46300
46301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46303 if (!SWIG_IsOK(res1)) {
46304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46305 }
46306 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46308 if (!SWIG_IsOK(res2)) {
46309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46310 }
46311 arg2 = reinterpret_cast< wxMenu * >(argp2);
46312 {
46313 PyThreadState* __tstate = wxPyBeginAllowThreads();
46314 (arg1)->SetMenu(arg2);
46315 wxPyEndAllowThreads(__tstate);
46316 if (PyErr_Occurred()) SWIG_fail;
46317 }
46318 resultobj = SWIG_Py_Void();
46319 return resultobj;
46320fail:
46321 return NULL;
46322}
46323
46324
46325SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46326 PyObject *resultobj = 0;
46327 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46328 wxMenu *result = 0 ;
46329 void *argp1 = 0 ;
46330 int res1 = 0 ;
46331 PyObject *swig_obj[1] ;
46332
46333 if (!args) SWIG_fail;
46334 swig_obj[0] = args;
46335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46336 if (!SWIG_IsOK(res1)) {
46337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46338 }
46339 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46340 {
46341 PyThreadState* __tstate = wxPyBeginAllowThreads();
46342 result = (wxMenu *)(arg1)->GetMenu();
46343 wxPyEndAllowThreads(__tstate);
46344 if (PyErr_Occurred()) SWIG_fail;
46345 }
46346 {
46347 resultobj = wxPyMake_wxObject(result, 0);
46348 }
46349 return resultobj;
46350fail:
46351 return NULL;
46352}
46353
46354
70b63a99 46355SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3f7f284d
RD
46356 PyObject *resultobj = 0;
46357 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46358 bool arg2 ;
46359 void *argp1 = 0 ;
46360 int res1 = 0 ;
46361 bool val2 ;
46362 int ecode2 = 0 ;
46363 PyObject * obj0 = 0 ;
46364 PyObject * obj1 = 0 ;
46365 char * kwnames[] = {
46366 (char *) "self",(char *) "show", NULL
46367 };
46368
70b63a99 46369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
3f7f284d
RD
46370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46371 if (!SWIG_IsOK(res1)) {
70b63a99 46372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
3f7f284d
RD
46373 }
46374 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46375 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46376 if (!SWIG_IsOK(ecode2)) {
70b63a99 46377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
3f7f284d
RD
46378 }
46379 arg2 = static_cast< bool >(val2);
46380 {
46381 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46382 (arg1)->ShowSearchButton(arg2);
3f7f284d
RD
46383 wxPyEndAllowThreads(__tstate);
46384 if (PyErr_Occurred()) SWIG_fail;
46385 }
46386 resultobj = SWIG_Py_Void();
46387 return resultobj;
46388fail:
46389 return NULL;
46390}
46391
46392
70b63a99 46393SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3f7f284d
RD
46394 PyObject *resultobj = 0;
46395 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46396 bool result;
46397 void *argp1 = 0 ;
46398 int res1 = 0 ;
46399 PyObject *swig_obj[1] ;
46400
46401 if (!args) SWIG_fail;
46402 swig_obj[0] = args;
46403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46404 if (!SWIG_IsOK(res1)) {
70b63a99 46405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
3f7f284d
RD
46406 }
46407 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46408 {
46409 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46410 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
3f7f284d
RD
46411 wxPyEndAllowThreads(__tstate);
46412 if (PyErr_Occurred()) SWIG_fail;
46413 }
46414 {
46415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46416 }
46417 return resultobj;
46418fail:
46419 return NULL;
46420}
46421
46422
70b63a99 46423SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3f7f284d
RD
46424 PyObject *resultobj = 0;
46425 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46426 bool arg2 ;
46427 void *argp1 = 0 ;
46428 int res1 = 0 ;
46429 bool val2 ;
46430 int ecode2 = 0 ;
46431 PyObject * obj0 = 0 ;
46432 PyObject * obj1 = 0 ;
46433 char * kwnames[] = {
46434 (char *) "self",(char *) "show", NULL
46435 };
46436
70b63a99 46437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
3f7f284d
RD
46438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46439 if (!SWIG_IsOK(res1)) {
70b63a99 46440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
3f7f284d
RD
46441 }
46442 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46443 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46444 if (!SWIG_IsOK(ecode2)) {
70b63a99 46445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
3f7f284d
RD
46446 }
46447 arg2 = static_cast< bool >(val2);
46448 {
46449 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46450 (arg1)->ShowCancelButton(arg2);
3f7f284d
RD
46451 wxPyEndAllowThreads(__tstate);
46452 if (PyErr_Occurred()) SWIG_fail;
46453 }
46454 resultobj = SWIG_Py_Void();
46455 return resultobj;
46456fail:
46457 return NULL;
46458}
46459
46460
70b63a99 46461SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3f7f284d
RD
46462 PyObject *resultobj = 0;
46463 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46464 bool result;
46465 void *argp1 = 0 ;
46466 int res1 = 0 ;
46467 PyObject *swig_obj[1] ;
46468
46469 if (!args) SWIG_fail;
46470 swig_obj[0] = args;
46471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46472 if (!SWIG_IsOK(res1)) {
70b63a99 46473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
3f7f284d
RD
46474 }
46475 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46476 {
46477 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46478 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
3f7f284d
RD
46479 wxPyEndAllowThreads(__tstate);
46480 if (PyErr_Occurred()) SWIG_fail;
46481 }
46482 {
46483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46484 }
46485 return resultobj;
46486fail:
46487 return NULL;
46488}
46489
46490
46491SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46492 PyObject *resultobj = 0;
46493 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46494 wxBitmap *arg2 = 0 ;
46495 void *argp1 = 0 ;
46496 int res1 = 0 ;
46497 void *argp2 = 0 ;
46498 int res2 = 0 ;
46499 PyObject * obj0 = 0 ;
46500 PyObject * obj1 = 0 ;
46501 char * kwnames[] = {
46502 (char *) "self",(char *)"arg2", NULL
46503 };
46504
46505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46507 if (!SWIG_IsOK(res1)) {
46508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46509 }
46510 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46512 if (!SWIG_IsOK(res2)) {
46513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46514 }
46515 if (!argp2) {
46516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46517 }
46518 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46519 {
46520 PyThreadState* __tstate = wxPyBeginAllowThreads();
46521 wxSearchCtrl_SetSearchBitmap(arg1,(wxBitmap const &)*arg2);
46522 wxPyEndAllowThreads(__tstate);
46523 if (PyErr_Occurred()) SWIG_fail;
46524 }
46525 resultobj = SWIG_Py_Void();
46526 return resultobj;
46527fail:
46528 return NULL;
46529}
46530
46531
46532SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46533 PyObject *resultobj = 0;
46534 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46535 wxBitmap *arg2 = 0 ;
46536 void *argp1 = 0 ;
46537 int res1 = 0 ;
46538 void *argp2 = 0 ;
46539 int res2 = 0 ;
46540 PyObject * obj0 = 0 ;
46541 PyObject * obj1 = 0 ;
46542 char * kwnames[] = {
46543 (char *) "self",(char *)"arg2", NULL
46544 };
46545
46546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46548 if (!SWIG_IsOK(res1)) {
46549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46550 }
46551 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46553 if (!SWIG_IsOK(res2)) {
46554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46555 }
46556 if (!argp2) {
46557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46558 }
46559 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46560 {
46561 PyThreadState* __tstate = wxPyBeginAllowThreads();
46562 wxSearchCtrl_SetSearchMenuBitmap(arg1,(wxBitmap const &)*arg2);
46563 wxPyEndAllowThreads(__tstate);
46564 if (PyErr_Occurred()) SWIG_fail;
46565 }
46566 resultobj = SWIG_Py_Void();
46567 return resultobj;
46568fail:
46569 return NULL;
46570}
46571
46572
46573SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46574 PyObject *resultobj = 0;
46575 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46576 wxBitmap *arg2 = 0 ;
46577 void *argp1 = 0 ;
46578 int res1 = 0 ;
46579 void *argp2 = 0 ;
46580 int res2 = 0 ;
46581 PyObject * obj0 = 0 ;
46582 PyObject * obj1 = 0 ;
46583 char * kwnames[] = {
46584 (char *) "self",(char *)"arg2", NULL
46585 };
46586
46587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46589 if (!SWIG_IsOK(res1)) {
46590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46591 }
46592 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46594 if (!SWIG_IsOK(res2)) {
46595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46596 }
46597 if (!argp2) {
46598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46599 }
46600 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46601 {
46602 PyThreadState* __tstate = wxPyBeginAllowThreads();
46603 wxSearchCtrl_SetCancelBitmap(arg1,(wxBitmap const &)*arg2);
46604 wxPyEndAllowThreads(__tstate);
46605 if (PyErr_Occurred()) SWIG_fail;
46606 }
46607 resultobj = SWIG_Py_Void();
46608 return resultobj;
46609fail:
46610 return NULL;
46611}
46612
46613
46614SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46615 PyObject *obj;
46616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46617 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
46618 return SWIG_Py_Void();
46619}
46620
46621SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46622 return SWIG_Python_InitShadowInstance(args);
46623}
46624
b850e7f3
RD
46625static PyMethodDef SwigMethods[] = {
46626 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46627 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46628 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46629 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46630 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46631 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46633 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46634 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46635 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46636 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46637 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46638 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46639 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46640 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46641 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46642 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46643 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46645 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46646 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46648 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46649 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46650 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46651 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46652 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46653 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46654 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46655 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46656 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46657 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46658 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46659 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46661 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46662 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46663 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46664 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46665 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46666 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46667 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46669 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46671 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46672 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46674 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46675 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46676 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46677 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46678 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46679 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46680 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46681 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46682 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46683 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46684 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46685 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46686 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46687 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46688 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46689 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46691 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46692 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46693 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46694 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46695 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46696 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46697 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46698 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46699 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46700 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46701 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46702 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46703 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46704 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46705 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46707 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46708 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 46709 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
46710 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46711 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46713 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46715 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46717 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46718 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46720 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46723 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46724 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46726 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46727 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46728 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46729 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46731 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46732 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46733 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46734 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46736 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46738 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46739 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46741 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46743 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46747 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46748 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46750 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46751 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46752 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46754 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46756 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46757 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46759 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46760 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46761 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46762 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46763 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46764 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46765 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46766 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46767 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46768 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46769 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46770 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46772 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46773 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46775 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46776 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46777 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46779 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46780 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46781 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46782 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46783 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46784 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46785 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46786 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46787 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46788 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46790 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46793 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46794 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46795 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46796 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46797 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46798 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46799 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46801 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46802 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46803 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46804 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46805 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46806 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46807 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46808 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46809 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46810 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46811 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46812 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46813 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46814 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46815 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46816 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46817 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46818 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46819 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46820 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46821 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46822 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46824 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46825 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46826 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46827 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46828 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46829 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46830 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46831 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46832 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46834 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46835 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46836 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 46837 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46838 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46840 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46841 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46842 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46843 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46844 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46845 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46846 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46847 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46848 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46849 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46850 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46851 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46852 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46853 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46854 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46855 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46856 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46857 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46858 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46859 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46860 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46861 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46863 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46864 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46865 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46866 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46867 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
d7645bfd 46868 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46869 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
46870 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46871 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46872 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46874 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46875 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46876 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46877 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46878 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46879 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46880 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46881 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46882 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46883 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46885 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46886 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46887 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46888 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46889 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46892 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46893 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46895 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46896 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46897 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46898 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46899 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46900 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46901 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46902 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46904 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46906 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46907 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46909 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46910 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46911 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46913 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46914 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46915 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46916 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46919 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46920 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46922 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46923 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46924 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46925 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46927 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46929 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46930 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46931 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46933 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46934 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46941 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46942 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46944 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46947 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46949 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46950 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46951 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46952 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46953 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46954 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46956 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46957 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46958 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46959 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46960 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46962 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46965 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46966 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46967 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46968 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46971 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46972 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46973 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46974 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46975 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46976 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46977 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46979 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46980 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46981 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46982 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46984 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46985 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46986 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46987 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46989 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46990 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46991 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46992 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46993 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46994 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46995 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46996 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46997 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46998 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46999 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47000 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47001 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47002 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47003 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47004 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47006 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47007 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47009 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 47010 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
47011 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 47013 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
47014 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47016 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47017 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47019 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 47020 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 47021 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47022 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47023 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47025 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47027 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47029 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47031 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47032 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47033 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47034 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47036 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47037 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47038 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47039 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
47040 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47041 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47042 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47043 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47044 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47046 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47047 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47048 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47049 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47050 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47051 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47052 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47053 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47054 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47055 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47056 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47057 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47058 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47059 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47060 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47061 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47062 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47063 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47064 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47065 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47066 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47067 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47069 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47070 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47073 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47074 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47075 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47076 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47077 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47078 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47079 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47080 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47082 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47083 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47084 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47085 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47086 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47087 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47088 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47089 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47090 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47091 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47092 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47093 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47094 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47095 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47096 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47097 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47098 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47099 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47100 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47101 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47102 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47103 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47104 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47105 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47106 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47107 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47109 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47111 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47114 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47115 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47116 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47117 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47118 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47120 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47121 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47122 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47123 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47124 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47125 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47126 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47127 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47128 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47129 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47130 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47131 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47132 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47133 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47134 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47136 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47137 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47139 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47141 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47142 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47144 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47145 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47147 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47150 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47151 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47152 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47153 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47154 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47157 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47158 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47160 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47161 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47163 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47164 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47165 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47166 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47167 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47168 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47169 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47170 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47171 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47172 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47173 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47174 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47175 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47176 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47177 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47178 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47179 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47180 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47181 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47182 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47183 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47184 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47185 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47186 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47187 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47188 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47189 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47190 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47191 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47192 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47193 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47194 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47195 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47197 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47198 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47200 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47202 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47204 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47205 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47206 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47207 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47208 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47209 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47210 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47211 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47212 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47213 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47214 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47215 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47216 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47217 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47218 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47219 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47220 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47221 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47222 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47223 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47224 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47225 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47226 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47227 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47228 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47229 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47230 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47231 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47232 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47233 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47234 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47235 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47236 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47237 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47238 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47239 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47240 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47242 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47243 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47244 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47245 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47246 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47247 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47248 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47249 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47250 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47251 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47252 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47253 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47254 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47255 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47256 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47257 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47258 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47259 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47260 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47261 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47262 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47263 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47264 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47265 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47266 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47267 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47268 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47270 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47273 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47276 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47277 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47278 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47279 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47280 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47284 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47291 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47293 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47294 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47295 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47296 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47298 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47299 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47301 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47307 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47308 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47312 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47313 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47314 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47315 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47316 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47317 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47318 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47319 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47320 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47321 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47322 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47323 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47324 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47325 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47326 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47328 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47329 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47330 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47331 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47333 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47334 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47337 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47339 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47341 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47342 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47343 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47344 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47346 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47347 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47348 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47350 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47353 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47354 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47355 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47356 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47357 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47358 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47359 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47361 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47362 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47363 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47364 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47366 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47367 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47369 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47371 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47372 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 47373 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
47374 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47375 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47376 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47377 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47379 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47380 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47381 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47382 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47384 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47386 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47389 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47390 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47391 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47392 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47393 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47394 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47396 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47397 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47398 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47399 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47401 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47402 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47406 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47412 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47414 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47419 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47423 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47425 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47428 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47430 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47431 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47432 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47434 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47435 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47438 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47439 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47440 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47447 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47449 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
47450 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
47452 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47455 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47456 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47458 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47462 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47464 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47465 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47467 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
47468 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
47470 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47471 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47472 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47474 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47476 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47477 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47478 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47480 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47481 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47484 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47485 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47487 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47489 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47490 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47491 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47493 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47494 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47495 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47496 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47498 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47500 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47501 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47502 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47503 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47504 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47505 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47511 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47512 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47513 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47514 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47515 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47516 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47517 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47518 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47519 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47520 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47521 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47522 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47523 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47525 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
47526 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47527 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47528 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47529 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47530 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47531 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47532 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47534 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47535 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47536 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47538 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 47539 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
47540 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47542 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 47544 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47545 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47547 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47548 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47549 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47550 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47551 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47552 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47553 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47554 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47555 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47556 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47559 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47562 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47563 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47565 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47566 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47567 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47569 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47571 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47572 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47574 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47575 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47577 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47579 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47580 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47581 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
47582 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47584 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47586 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47588 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47590 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47592 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47595 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47596 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47597 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47599 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47601 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
47602 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47603 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47604 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47605 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47606 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
47607 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
47609 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47610 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47612 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47613 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47614 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47615 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47616 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47617 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47619 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47620 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47621 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47622 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47623 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47624 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47625 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47626 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47628 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47629 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47630 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47631 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47632 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47633 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47634 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47636 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47637 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47638 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47640 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47642 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47643 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47645 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47646 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47647 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47649 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47650 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47651 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47652 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47654 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47656 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47657 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47659 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47660 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47661 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47663 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47664 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47665 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
47666 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47667 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47668 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47669 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47670 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47671 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47672 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47673 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47674 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47675 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47676 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47677 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47678 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47679 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47680 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
3f7f284d
RD
47681 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47682 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
47683 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47684 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
47685 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
70b63a99
RD
47686 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
47687 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
47688 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
47689 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
3f7f284d
RD
47690 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47691 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47692 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47693 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
47694 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
1bd55598
RD
47695 { NULL, NULL, 0, NULL }
47696};
47697
47698
47699/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47700
47701static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47702 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47703}
47704static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47705 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47706}
47707static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47708 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47709}
47710static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47711 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47712}
47713static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47714 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47715}
47716static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47717 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47718}
47719static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47720 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47721}
47722static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47723 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47724}
b850e7f3
RD
47725static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47726 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47727}
47728static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47729 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47730}
47731static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47732 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47733}
1bd55598
RD
47734static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47735 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47736}
47737static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47738 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47739}
47740static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47741 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47742}
1bd55598
RD
47743static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47744 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47745}
34e0a3bb
RD
47746static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47747 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47748}
2131d850
RD
47749static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47750 return (void *)((wxEvent *) ((wxPyEvent *) x));
47751}
1bd55598
RD
47752static void *_p_wxListEventTo_p_wxEvent(void *x) {
47753 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47754}
47755static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47756 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47757}
47758static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47759 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47760}
47761static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47762 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47763}
47764static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47765 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47766}
47767static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47768 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47769}
47770static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47771 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47772}
47773static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47774 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47775}
47776static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47777 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47778}
47779static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47780 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47781}
47782static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47783 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47784}
47785static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47786 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47787}
47788static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47789 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47790}
47791static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47792 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47793}
47794static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47795 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47796}
47797static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47798 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47799}
5172800e
RD
47800static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47801 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47802}
1bd55598
RD
47803static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47804 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47805}
47806static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47807 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47808}
34e0a3bb
RD
47809static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47810 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47811}
1bd55598
RD
47812static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47813 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47814}
47815static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47816 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47817}
47818static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47819 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47820}
47821static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47822 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47823}
47824static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47825 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47826}
704eda0c
RD
47827static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47828 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47829}
1bd55598
RD
47830static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47831 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47832}
47833static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47834 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47835}
47836static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47837 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47838}
47839static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47840 return (void *)((wxEvent *) ((wxShowEvent *) x));
47841}
47842static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47843 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47844}
47845static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47846 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47847}
47848static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47849 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47850}
47851static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47852 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47853}
47854static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47855 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47856}
47857static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47858 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47859}
47860static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47861 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47862}
b850e7f3
RD
47863static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47864 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47865}
47866static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47867 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47868}
47869static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47870 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47871}
47872static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47873 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47874}
1bd55598
RD
47875static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47876 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47877}
47878static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47879 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47880}
47881static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47882 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47883}
47884static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47885 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47886}
47887static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47888 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47889}
47890static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47891 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47892}
47893static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47894 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47895}
5172800e
RD
47896static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47897 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47898}
1bd55598
RD
47899static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47900 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47901}
47902static void *_p_wxToolBarTo_p_wxControl(void *x) {
47903 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47904}
b850e7f3
RD
47905static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47906 return (void *)((wxControl *) ((wxPickerBase *) x));
47907}
1bd55598
RD
47908static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47909 return (void *)((wxControl *) ((wxToggleButton *) x));
47910}
47911static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47912 return (void *)((wxControl *) ((wxRadioButton *) x));
47913}
3f7f284d
RD
47914static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
47915 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
47916}
1bd55598
RD
47917static void *_p_wxToolbookTo_p_wxControl(void *x) {
47918 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47919}
47920static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47921 return (void *)((wxControl *) ((wxToolBarBase *) x));
47922}
47923static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47924 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47925}
47926static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47927 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47928}
47929static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47930 return (void *)((wxControl *) ((wxComboBox *) x));
47931}
47932static void *_p_wxPyControlTo_p_wxControl(void *x) {
47933 return (void *)((wxControl *) ((wxPyControl *) x));
47934}
47935static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47936 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47937}
47938static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47939 return (void *)((wxControl *) ((wxScrollBar *) x));
47940}
47941static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47942 return (void *)((wxControl *) ((wxControlWithItems *) x));
47943}
47944static void *_p_wxGaugeTo_p_wxControl(void *x) {
47945 return (void *)((wxControl *) ((wxGauge *) x));
47946}
47947static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47948 return (void *)((wxControl *) ((wxStaticLine *) x));
47949}
47950static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47951 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47952}
47953static void *_p_wxListbookTo_p_wxControl(void *x) {
47954 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47955}
704eda0c
RD
47956static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47957 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47958}
1bd55598
RD
47959static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47960 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47961}
47962static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47963 return (void *)((wxControl *) ((wxCheckBox *) x));
47964}
47965static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47966 return (void *)((wxControl *) ((wxRadioBox *) x));
47967}
47968static void *_p_wxChoiceTo_p_wxControl(void *x) {
47969 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47970}
47971static void *_p_wxListBoxTo_p_wxControl(void *x) {
47972 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47973}
47974static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47975 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47976}
47977static void *_p_wxListViewTo_p_wxControl(void *x) {
47978 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47979}
47980static void *_p_wxNotebookTo_p_wxControl(void *x) {
47981 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47982}
47983static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47984 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47985}
47986static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47987 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47988}
47989static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47990 return (void *)((wxControl *) ((wxStaticText *) x));
47991}
47992static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47993 return (void *)((wxControl *) ((wxStaticBox *) x));
47994}
47995static void *_p_wxSliderTo_p_wxControl(void *x) {
47996 return (void *)((wxControl *) ((wxSlider *) x));
47997}
47998static void *_p_wxTreebookTo_p_wxControl(void *x) {
47999 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48000}
48001static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48002 return (void *)((wxControl *) ((wxSpinButton *) x));
48003}
48004static void *_p_wxButtonTo_p_wxControl(void *x) {
48005 return (void *)((wxControl *) ((wxButton *) x));
48006}
48007static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48008 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48009}
48010static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48011 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48012}
48013static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48014 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48015}
b850e7f3
RD
48016static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48017 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48018}
48019static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48020 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48021}
48022static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48023 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48024}
48025static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48026 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48027}
1bd55598
RD
48028static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48029 return (void *)((wxControl *) ((wxTextCtrl *) x));
48030}
48031static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48032 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48033}
48034static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48035 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48036}
3f7f284d
RD
48037static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48038 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48039}
1bd55598
RD
48040static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48041 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48042}
48043static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48044 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48045}
48046static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48047 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48048}
48049static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48050 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48051}
48052static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48053 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48054}
48055static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48056 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48057}
48058static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48059 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48060}
48061static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48062 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48063}
48064static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48065 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48066}
48067static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48068 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48069}
48070static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48071 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48072}
48073static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48074 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48075}
48076static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48077 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48078}
48079static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48080 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48081}
5172800e
RD
48082static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48083 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48084}
1bd55598
RD
48085static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48086 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48087}
48088static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48089 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48090}
48091static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48092 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48093}
48094static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48095 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48096}
48097static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48098 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48099}
b850e7f3
RD
48100static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48101 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48102}
1bd55598
RD
48103static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48104 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48105}
48106static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48107 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48108}
48109static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48110 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48111}
3f7f284d
RD
48112static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48113 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48114}
1bd55598
RD
48115static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48116 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48117}
48118static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48119 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48120}
48121static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48122 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48123}
48124static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48125 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48126}
48127static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48128 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48129}
48130static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48131 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48132}
48133static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48134 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48135}
48136static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48137 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48138}
48139static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48140 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48141}
48142static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48143 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48144}
48145static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48146 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48147}
48148static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48149 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48150}
48151static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48152 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48153}
48154static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48155 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48156}
48157static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48158 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48159}
48160static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48161 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48162}
704eda0c
RD
48163static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48164 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48165}
1bd55598
RD
48166static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48167 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48168}
48169static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48170 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48171}
48172static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48173 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48174}
48175static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48176 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48177}
48178static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48179 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48180}
48181static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48182 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48183}
48184static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48185 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48186}
48187static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48188 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48189}
48190static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48191 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48192}
48193static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48194 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48195}
48196static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48197 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48198}
48199static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48200 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48201}
48202static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48203 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48204}
48205static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48206 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48207}
48208static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48209 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48210}
48211static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48212 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48213}
48214static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48215 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48216}
48217static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48218 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48219}
48220static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48221 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48222}
b850e7f3
RD
48223static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48224 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48225}
48226static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48227 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48228}
48229static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48230 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48231}
48232static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48233 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48234}
1bd55598
RD
48235static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48236 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48237}
48238static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48239 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48240}
48241static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48242 return (void *)((wxButton *) ((wxBitmapButton *) x));
48243}
48244static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48245 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48246}
48247static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48248 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48249}
48250static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48251 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48252}
48253static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48254 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48255}
48256static void *_p_wxToolbookTo_p_wxObject(void *x) {
48257 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48258}
1bd55598
RD
48259static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48260 return (void *)((wxObject *) ((wxSizerItem *) x));
48261}
34e0a3bb
RD
48262static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48263 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48264}
1bd55598
RD
48265static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48266 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48267}
48268static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48269 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48270}
48271static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48272 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48273}
48274static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48275 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48276}
48277static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48278 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48279}
48280static void *_p_wxSizerTo_p_wxObject(void *x) {
48281 return (void *)((wxObject *) ((wxSizer *) x));
48282}
48283static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48284 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48285}
48286static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48287 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48288}
48289static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48290 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48291}
48292static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48293 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48294}
48295static void *_p_wxEventTo_p_wxObject(void *x) {
48296 return (void *)((wxObject *) ((wxEvent *) x));
48297}
48298static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48299 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48300}
48301static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48302 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48303}
3f7f284d
RD
48304static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48305 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48306}
1bd55598
RD
48307static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48308 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48309}
48310static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48312}
b850e7f3
RD
48313static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48314 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48315}
1bd55598
RD
48316static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48317 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48318}
48319static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48320 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48321}
2131d850
RD
48322static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48323 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48324}
1bd55598
RD
48325static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48326 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48327}
48328static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48329 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48330}
48331static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48332 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48333}
48334static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48335 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48336}
48337static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48338 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48339}
48340static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48341 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48342}
48343static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48344 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48345}
48346static void *_p_wxControlTo_p_wxObject(void *x) {
48347 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48348}
48349static void *_p_wxPyControlTo_p_wxObject(void *x) {
48350 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48351}
48352static void *_p_wxGaugeTo_p_wxObject(void *x) {
48353 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48354}
48355static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48357}
48358static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48360}
48361static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48362 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48363}
48364static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48365 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48366}
b850e7f3
RD
48367static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48368 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48369}
48370static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48371 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48372}
48373static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48374 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48375}
1bd55598
RD
48376static void *_p_wxChoiceTo_p_wxObject(void *x) {
48377 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48378}
48379static void *_p_wxFSFileTo_p_wxObject(void *x) {
48380 return (void *)((wxObject *) ((wxFSFile *) x));
48381}
48382static void *_p_wxPySizerTo_p_wxObject(void *x) {
48383 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48384}
48385static void *_p_wxTreebookTo_p_wxObject(void *x) {
48386 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48387}
48388static void *_p_wxListViewTo_p_wxObject(void *x) {
48389 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48390}
704eda0c
RD
48391static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48392 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48393}
1bd55598
RD
48394static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48396}
48397static void *_p_wxNotebookTo_p_wxObject(void *x) {
48398 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48399}
48400static void *_p_wxPyEventTo_p_wxObject(void *x) {
48401 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48402}
48403static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48405}
48406static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48407 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48408}
48409static void *_p_wxListbookTo_p_wxObject(void *x) {
48410 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48411}
48412static void *_p_wxShowEventTo_p_wxObject(void *x) {
48413 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48414}
48415static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48416 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48417}
48418static void *_p_wxSliderTo_p_wxObject(void *x) {
48419 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48420}
48421static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48422 return (void *)((wxObject *) ((wxMenuItem *) x));
48423}
48424static void *_p_wxDateEventTo_p_wxObject(void *x) {
48425 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48426}
48427static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48428 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48429}
48430static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48431 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48432}
48433static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48434 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48435}
48436static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48437 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48438}
48439static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48440 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48441}
48442static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48443 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48444}
48445static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48446 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48447}
48448static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48449 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48450}
48451static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48452 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48453}
48454static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48455 return (void *)((wxObject *) ((wxContextHelp *) x));
48456}
5172800e
RD
48457static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48459}
1bd55598
RD
48460static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48461 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48462}
48463static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48464 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48465}
48466static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48467 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48468}
48469static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48470 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48471}
48472static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48473 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48474}
48475static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48476 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48477}
48478static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48479 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48480}
48481static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48482 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48483}
48484static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48485 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48486}
48487static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48488 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48489}
48490static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48491 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48492}
48493static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48494 return (void *)((wxObject *) ((wxImageHandler *) x));
48495}
48496static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48497 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48498}
48499static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48500 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48501}
580080c5
RD
48502static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48503 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48504}
1bd55598
RD
48505static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48506 return (void *)((wxObject *) ((wxEvtHandler *) x));
48507}
34e0a3bb
RD
48508static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48509 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48510}
1bd55598
RD
48511static void *_p_wxListEventTo_p_wxObject(void *x) {
48512 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48513}
48514static void *_p_wxListBoxTo_p_wxObject(void *x) {
48515 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48516}
48517static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48518 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48519}
48520static void *_p_wxButtonTo_p_wxObject(void *x) {
48521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48522}
48523static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48524 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48525}
48526static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48527 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48528}
48529static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48530 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48531}
1bd55598
RD
48532static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48533 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48534}
580080c5
RD
48535static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48536 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48537}
1bd55598
RD
48538static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48539 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48540}
48541static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48542 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48543}
48544static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48545 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48546}
48547static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48549}
48550static void *_p_wxListItemTo_p_wxObject(void *x) {
48551 return (void *)((wxObject *) ((wxListItem *) x));
48552}
48553static void *_p_wxImageTo_p_wxObject(void *x) {
48554 return (void *)((wxObject *) ((wxImage *) x));
48555}
48556static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48557 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48558}
48559static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48560 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48561}
48562static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48563 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48564}
48565static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48566 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48567}
48568static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48569 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48570}
48571static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48572 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48573}
48574static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48575 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48576}
48577static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48578 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48579}
48580static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48582}
48583static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48584 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48585}
48586static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48587 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48588}
48589static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48590 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48591}
48592static void *_p_wxWindowTo_p_wxObject(void *x) {
48593 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48594}
48595static void *_p_wxMenuTo_p_wxObject(void *x) {
48596 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48597}
48598static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48599 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48600}
48601static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48602 return (void *)((wxObject *) ((wxFileSystem *) x));
48603}
5172800e
RD
48604static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48605 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48606}
1bd55598
RD
48607static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48608 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48609}
48610static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48611 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48612}
48613static void *_p_wxPyAppTo_p_wxObject(void *x) {
48614 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48615}
48616static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48617 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48618}
48619static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48620 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48621}
48622static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48623 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48624}
48625static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48626 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48627}
48628static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48629 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48630}
48631static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48632 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48633}
48634static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48635 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48636}
48637static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48638 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48639}
48640static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48641 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48642}
48643static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48644 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48645}
48646static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48647 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48648}
48649static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48650 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48651}
b850e7f3
RD
48652static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48653 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48654}
48655static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48656 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48657}
48658static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48659 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48660}
48661static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48662 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48663}
1bd55598
RD
48664static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48665 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48666}
704eda0c
RD
48667static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48668 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48669}
1bd55598
RD
48670static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48671 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48672}
48673static void *_p_wxToolBarTo_p_wxObject(void *x) {
48674 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48675}
48676static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48677 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48678}
48679static void *_p_wxValidatorTo_p_wxObject(void *x) {
48680 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48681}
5172800e
RD
48682static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48683 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48684}
1bd55598
RD
48685static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48686 return (void *)((wxWindow *) ((wxMenuBar *) x));
48687}
48688static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48689 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48690}
48691static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48692 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48693}
b850e7f3
RD
48694static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48695 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48696}
1bd55598
RD
48697static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48698 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48699}
48700static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48701 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48702}
3f7f284d
RD
48703static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
48704 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48705}
1bd55598
RD
48706static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48707 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48708}
48709static void *_p_wxControlTo_p_wxWindow(void *x) {
48710 return (void *)((wxWindow *) ((wxControl *) x));
48711}
48712static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48713 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48714}
48715static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48716 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48717}
48718static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48719 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48720}
48721static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48722 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48723}
48724static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48725 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48726}
48727static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48728 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48729}
48730static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48731 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48732}
48733static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48734 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48735}
48736static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48737 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48738}
48739static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48740 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48741}
48742static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48743 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48744}
48745static void *_p_wxListbookTo_p_wxWindow(void *x) {
48746 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48747}
704eda0c
RD
48748static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48749 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48750}
1bd55598
RD
48751static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48752 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48753}
48754static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48755 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48756}
48757static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48758 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48759}
48760static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48761 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48762}
48763static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48764 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48765}
48766static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48767 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48768}
48769static void *_p_wxListViewTo_p_wxWindow(void *x) {
48770 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48771}
48772static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48773 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48774}
48775static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48776 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48777}
48778static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48779 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48780}
48781static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48782 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48783}
48784static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48785 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48786}
48787static void *_p_wxSliderTo_p_wxWindow(void *x) {
48788 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48789}
48790static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48791 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48792}
48793static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48794 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48795}
48796static void *_p_wxButtonTo_p_wxWindow(void *x) {
48797 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48798}
48799static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48800 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48801}
48802static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48803 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48804}
48805static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48806 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48807}
b850e7f3
RD
48808static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48809 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48810}
48811static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48812 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48813}
48814static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48815 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48816}
48817static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48818 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48819}
1bd55598
RD
48820static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48821 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48822}
48823static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48824 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48825}
48826static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48827 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48828}
48829static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48830 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48831}
48832static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48833 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48834}
48835static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48836 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48837}
48838static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48839 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48840}
704eda0c
RD
48841static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48842 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48843}
2131d850
RD
48844static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48845 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48846}
b850e7f3
RD
48847static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48848 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48849}
48850static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48851 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48852}
48853static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48854 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48855}
1bd55598
RD
48856static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48857 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48858}
48859static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48860 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48861}
48862static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48863 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48864}
48865static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48866 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48867}
48868static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48869 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48870}
1bd55598
RD
48871static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48872 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48873}
2131d850
RD
48874static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48875 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48876}
1bd55598
RD
48877static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48878 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48879}
48880static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48881 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48882}
48883static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48884 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48885}
48886static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48887 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48888}
48889static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48890 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48891}
48892static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48893 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48894}
5172800e
RD
48895static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48896 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48897}
1bd55598
RD
48898static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48899 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48900}
48901static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48902 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48903}
48904static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48905 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48906}
48907static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48908 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48909}
48910static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48911 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48912}
48913static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48914 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48915}
48916static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48917 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48918}
48919static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48920 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48921}
48922static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48923 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48924}
48925static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48926 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48927}
48928static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48929 return (void *)((wxValidator *) ((wxPyValidator *) x));
48930}
48931static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48932static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48933static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
48934static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48935static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48936static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48937static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48938static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48939static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48940static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48941static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48942static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48943static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48944static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48945static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48946static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48947static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48948static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48949static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48950static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48951static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
48952static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48953static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
1bd55598 48954static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
48955static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48956static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48957static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48958static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48959static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 48960static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48961static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48962static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48963static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48964static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48965static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48966static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48967static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48968static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48969static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48970static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48971static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48972static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48973static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48974static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48975static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48976static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 48977static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
48978static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48979static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48980static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48981static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48982static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48983static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48984static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48985static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 48986static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48987static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48988static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48989static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48990static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48991static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48992static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 48993static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48994static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48995static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48996static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48997static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48998static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48999static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49000static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49001static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49002static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49003static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49004static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49005static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49006static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49007static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49008static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
b850e7f3
RD
49009static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49010static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 49011static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
49012static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49013static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
49014static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49015static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49016static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49017static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49018static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
49019static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49020static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
49021static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49022static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49023static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49024static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49025static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49026static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49027static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49028static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49029static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49030static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49031static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49032static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
3f7f284d 49033static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
1bd55598
RD
49034static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49035static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49036static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49037static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49038static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49039static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 49040static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 49041static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
49042static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49043static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49044static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49045static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49046static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49047static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49048static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49049static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49050static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49051static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
49052static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49053static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49054static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
3f7f284d 49055static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
5172800e 49056static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
49057static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49058static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49059static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49060static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 49061static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 49062static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
49063static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49064static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 49065static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
1bd55598 49066static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 49067static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
49068static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49069static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49070static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 49071static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
49072static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49073static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49074static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49075static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49076static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49077static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49078static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49079static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49080static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
3f7f284d 49081static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
49082static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49083static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49084static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49085static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49086static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49087static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49088static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49089static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49090static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49091static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49092static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49093static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49094static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49095static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49096static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49097static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49098static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49099static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49100static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49101static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
49102static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49103static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49104static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49105static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49106static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49107static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49108static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 49109static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
49110
49111static swig_type_info *swig_type_initial[] = {
49112 &_swigt__p_bool,
49113 &_swigt__p_char,
49114 &_swigt__p_form_ops_t,
49115 &_swigt__p_int,
49116 &_swigt__p_long,
49117 &_swigt__p_unsigned_char,
49118 &_swigt__p_unsigned_int,
49119 &_swigt__p_unsigned_long,
49120 &_swigt__p_void,
49121 &_swigt__p_wxANIHandler,
49122 &_swigt__p_wxAcceleratorTable,
49123 &_swigt__p_wxActivateEvent,
49124 &_swigt__p_wxArrayInt,
49125 &_swigt__p_wxArrayString,
49126 &_swigt__p_wxBMPHandler,
49127 &_swigt__p_wxBitmap,
49128 &_swigt__p_wxBitmapButton,
49129 &_swigt__p_wxBookCtrlBase,
49130 &_swigt__p_wxBookCtrlBaseEvent,
49131 &_swigt__p_wxBoxSizer,
49132 &_swigt__p_wxButton,
49133 &_swigt__p_wxCURHandler,
49134 &_swigt__p_wxCheckBox,
49135 &_swigt__p_wxCheckListBox,
49136 &_swigt__p_wxChildFocusEvent,
49137 &_swigt__p_wxChoice,
49138 &_swigt__p_wxChoicebook,
49139 &_swigt__p_wxChoicebookEvent,
2131d850 49140 &_swigt__p_wxClipboardTextEvent,
1bd55598 49141 &_swigt__p_wxCloseEvent,
5172800e
RD
49142 &_swigt__p_wxCollapsiblePane,
49143 &_swigt__p_wxCollapsiblePaneEvent,
1bd55598 49144 &_swigt__p_wxColour,
b850e7f3
RD
49145 &_swigt__p_wxColourPickerCtrl,
49146 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
49147 &_swigt__p_wxComboBox,
49148 &_swigt__p_wxCommandEvent,
49149 &_swigt__p_wxContextHelp,
49150 &_swigt__p_wxContextHelpButton,
49151 &_swigt__p_wxContextMenuEvent,
49152 &_swigt__p_wxControl,
49153 &_swigt__p_wxControlWithItems,
49154 &_swigt__p_wxCursor,
49155 &_swigt__p_wxDC,
49156 &_swigt__p_wxDateEvent,
49157 &_swigt__p_wxDatePickerCtrl,
49158 &_swigt__p_wxDateTime,
49159 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 49160 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
49161 &_swigt__p_wxDisplayChangedEvent,
49162 &_swigt__p_wxDropFilesEvent,
49163 &_swigt__p_wxDuplexMode,
49164 &_swigt__p_wxEraseEvent,
49165 &_swigt__p_wxEvent,
49166 &_swigt__p_wxEvtHandler,
49167 &_swigt__p_wxFSFile,
b850e7f3
RD
49168 &_swigt__p_wxFileDirPickerEvent,
49169 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
49170 &_swigt__p_wxFileSystem,
49171 &_swigt__p_wxFlexGridSizer,
49172 &_swigt__p_wxFocusEvent,
49173 &_swigt__p_wxFont,
b850e7f3
RD
49174 &_swigt__p_wxFontPickerCtrl,
49175 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
49176 &_swigt__p_wxGBSizerItem,
49177 &_swigt__p_wxGIFHandler,
49178 &_swigt__p_wxGauge,
49179 &_swigt__p_wxGenericDirCtrl,
49180 &_swigt__p_wxGenericDragImage,
49181 &_swigt__p_wxGridBagSizer,
49182 &_swigt__p_wxGridSizer,
49183 &_swigt__p_wxHelpEvent,
49184 &_swigt__p_wxHelpProvider,
704eda0c
RD
49185 &_swigt__p_wxHyperlinkCtrl,
49186 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
49187 &_swigt__p_wxICOHandler,
49188 &_swigt__p_wxIcon,
49189 &_swigt__p_wxIconizeEvent,
49190 &_swigt__p_wxIdleEvent,
49191 &_swigt__p_wxImage,
49192 &_swigt__p_wxImageHandler,
49193 &_swigt__p_wxImageList,
49194 &_swigt__p_wxIndividualLayoutConstraint,
49195 &_swigt__p_wxInitDialogEvent,
49196 &_swigt__p_wxItemContainer,
49197 &_swigt__p_wxJPEGHandler,
49198 &_swigt__p_wxKeyEvent,
49199 &_swigt__p_wxLayoutConstraints,
49200 &_swigt__p_wxListBox,
49201 &_swigt__p_wxListEvent,
49202 &_swigt__p_wxListItem,
49203 &_swigt__p_wxListItemAttr,
49204 &_swigt__p_wxListView,
49205 &_swigt__p_wxListbook,
49206 &_swigt__p_wxListbookEvent,
49207 &_swigt__p_wxMaximizeEvent,
49208 &_swigt__p_wxMemoryDC,
49209 &_swigt__p_wxMenu,
49210 &_swigt__p_wxMenuBar,
49211 &_swigt__p_wxMenuEvent,
49212 &_swigt__p_wxMenuItem,
49213 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 49214 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
49215 &_swigt__p_wxMouseEvent,
49216 &_swigt__p_wxMoveEvent,
49217 &_swigt__p_wxNavigationKeyEvent,
49218 &_swigt__p_wxNcPaintEvent,
49219 &_swigt__p_wxNotebook,
49220 &_swigt__p_wxNotebookEvent,
49221 &_swigt__p_wxNotifyEvent,
49222 &_swigt__p_wxObject,
49223 &_swigt__p_wxPCXHandler,
49224 &_swigt__p_wxPNGHandler,
49225 &_swigt__p_wxPNMHandler,
49226 &_swigt__p_wxPaintEvent,
49227 &_swigt__p_wxPaletteChangedEvent,
49228 &_swigt__p_wxPaperSize,
b850e7f3 49229 &_swigt__p_wxPickerBase,
1bd55598
RD
49230 &_swigt__p_wxPoint,
49231 &_swigt__p_wxPyApp,
49232 &_swigt__p_wxPyCommandEvent,
49233 &_swigt__p_wxPyControl,
49234 &_swigt__p_wxPyEvent,
49235 &_swigt__p_wxPyImageHandler,
49236 &_swigt__p_wxPyListCtrl,
49237 &_swigt__p_wxPySizer,
49238 &_swigt__p_wxPyTreeCtrl,
49239 &_swigt__p_wxPyTreeItemData,
49240 &_swigt__p_wxPyValidator,
49241 &_swigt__p_wxQueryNewPaletteEvent,
49242 &_swigt__p_wxRadioBox,
49243 &_swigt__p_wxRadioButton,
49244 &_swigt__p_wxRect,
49245 &_swigt__p_wxScrollBar,
49246 &_swigt__p_wxScrollEvent,
49247 &_swigt__p_wxScrollWinEvent,
3f7f284d 49248 &_swigt__p_wxSearchCtrl,
1bd55598
RD
49249 &_swigt__p_wxSetCursorEvent,
49250 &_swigt__p_wxShowEvent,
49251 &_swigt__p_wxSimpleHelpProvider,
49252 &_swigt__p_wxSize,
49253 &_swigt__p_wxSizeEvent,
49254 &_swigt__p_wxSizer,
49255 &_swigt__p_wxSizerItem,
49256 &_swigt__p_wxSlider,
49257 &_swigt__p_wxSpinButton,
49258 &_swigt__p_wxSpinCtrl,
49259 &_swigt__p_wxSpinEvent,
49260 &_swigt__p_wxStaticBitmap,
49261 &_swigt__p_wxStaticBox,
49262 &_swigt__p_wxStaticBoxSizer,
49263 &_swigt__p_wxStaticLine,
49264 &_swigt__p_wxStaticText,
49265 &_swigt__p_wxStdDialogButtonSizer,
49266 &_swigt__p_wxString,
49267 &_swigt__p_wxSysColourChangedEvent,
580080c5 49268 &_swigt__p_wxTGAHandler,
1bd55598
RD
49269 &_swigt__p_wxTIFFHandler,
49270 &_swigt__p_wxTextAttr,
49271 &_swigt__p_wxTextCtrl,
49272 &_swigt__p_wxTextUrlEvent,
49273 &_swigt__p_wxToggleButton,
49274 &_swigt__p_wxToolBar,
49275 &_swigt__p_wxToolBarBase,
49276 &_swigt__p_wxToolBarToolBase,
49277 &_swigt__p_wxToolbook,
49278 &_swigt__p_wxToolbookEvent,
1bd55598
RD
49279 &_swigt__p_wxTreeEvent,
49280 &_swigt__p_wxTreeItemId,
49281 &_swigt__p_wxTreebook,
49282 &_swigt__p_wxTreebookEvent,
49283 &_swigt__p_wxUpdateUIEvent,
49284 &_swigt__p_wxValidator,
49285 &_swigt__p_wxVisualAttributes,
49286 &_swigt__p_wxWindow,
b850e7f3 49287 &_swigt__p_wxWindowBase,
1bd55598
RD
49288 &_swigt__p_wxWindowCreateEvent,
49289 &_swigt__p_wxWindowDestroyEvent,
49290 &_swigt__p_wxXPMHandler,
49291};
49292
49293static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49294static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49295static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49296static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49297static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49298static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49299static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49300static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49301static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49302static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49303static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49304static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49305static 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}};
49306static 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}};
49307static 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}};
49308static 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}};
49309static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49310static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49311static 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}};
49312static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49313static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
49314static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49315static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49316static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49317static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49318static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49319static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49320static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49321static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49322static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49323static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49324static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49325static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49326static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49327static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49328static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49329static 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49330static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49331static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49332static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49333static 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}};
49334static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49335static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49336static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49337static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49338static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49339static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49340static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49341static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49342static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49343static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49344static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49345static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49346static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49347static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49348static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49349static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49350static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49351static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49352static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49353static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49354static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49355static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49356static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49357static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49358static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49359static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49360static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49361static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49362static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49363static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49364static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49365static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49366static 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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}};
1bd55598
RD
49367static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49368static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49369static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49370static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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}};
b850e7f3
RD
49371static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49372static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49373static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49374static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49375static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49376static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49377static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49378static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49379static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49380static 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
49381static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49382static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49383static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49384static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49385static 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}};
49386static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49387static 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}};
49388static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49389static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49390static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49391static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49392static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49393static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49394static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49395static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49396static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49397static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49398static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49399static 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}};
49400static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49401static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49402static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49403static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49404static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49405static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49406static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49407static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49408static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49409static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49410static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49411static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49412static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49413static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49414static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49415static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49416static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49417static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49418static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49419static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49420static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49421static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 49422static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49423static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49424static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49425static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49426static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49427static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49428static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49429static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49430static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49431static 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_wxSearchCtrl, _p_wxSearchCtrlTo_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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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_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_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_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_wxTGAHandler, _p_wxTGAHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_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}};
1bd55598 49432static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49433static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49434static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49435static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49436static 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}};
49437static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49438static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49439static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49440static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49441static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49442static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49443static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49444static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49445static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49446static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49447static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49448static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49449static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49450static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49451static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49452static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49453static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49454static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49455static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49456static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49457static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49458static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49459static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49460static 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}};
49461static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49462static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49463static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49464static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49465static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49466static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49467static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49468static 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}};
49469static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49470static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
b850e7f3 49471static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49472
49473static swig_cast_info *swig_cast_initial[] = {
49474 _swigc__p_bool,
49475 _swigc__p_char,
49476 _swigc__p_form_ops_t,
49477 _swigc__p_int,
49478 _swigc__p_long,
49479 _swigc__p_unsigned_char,
49480 _swigc__p_unsigned_int,
49481 _swigc__p_unsigned_long,
49482 _swigc__p_void,
49483 _swigc__p_wxANIHandler,
49484 _swigc__p_wxAcceleratorTable,
49485 _swigc__p_wxActivateEvent,
49486 _swigc__p_wxArrayInt,
49487 _swigc__p_wxArrayString,
49488 _swigc__p_wxBMPHandler,
49489 _swigc__p_wxBitmap,
49490 _swigc__p_wxBitmapButton,
49491 _swigc__p_wxBookCtrlBase,
49492 _swigc__p_wxBookCtrlBaseEvent,
49493 _swigc__p_wxBoxSizer,
49494 _swigc__p_wxButton,
49495 _swigc__p_wxCURHandler,
49496 _swigc__p_wxCheckBox,
49497 _swigc__p_wxCheckListBox,
49498 _swigc__p_wxChildFocusEvent,
49499 _swigc__p_wxChoice,
49500 _swigc__p_wxChoicebook,
49501 _swigc__p_wxChoicebookEvent,
2131d850 49502 _swigc__p_wxClipboardTextEvent,
1bd55598 49503 _swigc__p_wxCloseEvent,
5172800e
RD
49504 _swigc__p_wxCollapsiblePane,
49505 _swigc__p_wxCollapsiblePaneEvent,
1bd55598 49506 _swigc__p_wxColour,
b850e7f3
RD
49507 _swigc__p_wxColourPickerCtrl,
49508 _swigc__p_wxColourPickerEvent,
1bd55598
RD
49509 _swigc__p_wxComboBox,
49510 _swigc__p_wxCommandEvent,
49511 _swigc__p_wxContextHelp,
49512 _swigc__p_wxContextHelpButton,
49513 _swigc__p_wxContextMenuEvent,
49514 _swigc__p_wxControl,
49515 _swigc__p_wxControlWithItems,
49516 _swigc__p_wxCursor,
49517 _swigc__p_wxDC,
49518 _swigc__p_wxDateEvent,
49519 _swigc__p_wxDatePickerCtrl,
49520 _swigc__p_wxDateTime,
49521 _swigc__p_wxDirFilterListCtrl,
b850e7f3 49522 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
49523 _swigc__p_wxDisplayChangedEvent,
49524 _swigc__p_wxDropFilesEvent,
49525 _swigc__p_wxDuplexMode,
49526 _swigc__p_wxEraseEvent,
49527 _swigc__p_wxEvent,
49528 _swigc__p_wxEvtHandler,
49529 _swigc__p_wxFSFile,
b850e7f3
RD
49530 _swigc__p_wxFileDirPickerEvent,
49531 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
49532 _swigc__p_wxFileSystem,
49533 _swigc__p_wxFlexGridSizer,
49534 _swigc__p_wxFocusEvent,
49535 _swigc__p_wxFont,
b850e7f3
RD
49536 _swigc__p_wxFontPickerCtrl,
49537 _swigc__p_wxFontPickerEvent,
1bd55598
RD
49538 _swigc__p_wxGBSizerItem,
49539 _swigc__p_wxGIFHandler,
49540 _swigc__p_wxGauge,
49541 _swigc__p_wxGenericDirCtrl,
49542 _swigc__p_wxGenericDragImage,
49543 _swigc__p_wxGridBagSizer,
49544 _swigc__p_wxGridSizer,
49545 _swigc__p_wxHelpEvent,
49546 _swigc__p_wxHelpProvider,
704eda0c
RD
49547 _swigc__p_wxHyperlinkCtrl,
49548 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
49549 _swigc__p_wxICOHandler,
49550 _swigc__p_wxIcon,
49551 _swigc__p_wxIconizeEvent,
49552 _swigc__p_wxIdleEvent,
49553 _swigc__p_wxImage,
49554 _swigc__p_wxImageHandler,
49555 _swigc__p_wxImageList,
49556 _swigc__p_wxIndividualLayoutConstraint,
49557 _swigc__p_wxInitDialogEvent,
49558 _swigc__p_wxItemContainer,
49559 _swigc__p_wxJPEGHandler,
49560 _swigc__p_wxKeyEvent,
49561 _swigc__p_wxLayoutConstraints,
49562 _swigc__p_wxListBox,
49563 _swigc__p_wxListEvent,
49564 _swigc__p_wxListItem,
49565 _swigc__p_wxListItemAttr,
49566 _swigc__p_wxListView,
49567 _swigc__p_wxListbook,
49568 _swigc__p_wxListbookEvent,
49569 _swigc__p_wxMaximizeEvent,
49570 _swigc__p_wxMemoryDC,
49571 _swigc__p_wxMenu,
49572 _swigc__p_wxMenuBar,
49573 _swigc__p_wxMenuEvent,
49574 _swigc__p_wxMenuItem,
49575 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 49576 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
49577 _swigc__p_wxMouseEvent,
49578 _swigc__p_wxMoveEvent,
49579 _swigc__p_wxNavigationKeyEvent,
49580 _swigc__p_wxNcPaintEvent,
49581 _swigc__p_wxNotebook,
49582 _swigc__p_wxNotebookEvent,
49583 _swigc__p_wxNotifyEvent,
49584 _swigc__p_wxObject,
49585 _swigc__p_wxPCXHandler,
49586 _swigc__p_wxPNGHandler,
49587 _swigc__p_wxPNMHandler,
49588 _swigc__p_wxPaintEvent,
49589 _swigc__p_wxPaletteChangedEvent,
49590 _swigc__p_wxPaperSize,
b850e7f3 49591 _swigc__p_wxPickerBase,
1bd55598
RD
49592 _swigc__p_wxPoint,
49593 _swigc__p_wxPyApp,
49594 _swigc__p_wxPyCommandEvent,
49595 _swigc__p_wxPyControl,
49596 _swigc__p_wxPyEvent,
49597 _swigc__p_wxPyImageHandler,
49598 _swigc__p_wxPyListCtrl,
49599 _swigc__p_wxPySizer,
49600 _swigc__p_wxPyTreeCtrl,
49601 _swigc__p_wxPyTreeItemData,
49602 _swigc__p_wxPyValidator,
49603 _swigc__p_wxQueryNewPaletteEvent,
49604 _swigc__p_wxRadioBox,
49605 _swigc__p_wxRadioButton,
49606 _swigc__p_wxRect,
49607 _swigc__p_wxScrollBar,
49608 _swigc__p_wxScrollEvent,
49609 _swigc__p_wxScrollWinEvent,
3f7f284d 49610 _swigc__p_wxSearchCtrl,
1bd55598
RD
49611 _swigc__p_wxSetCursorEvent,
49612 _swigc__p_wxShowEvent,
49613 _swigc__p_wxSimpleHelpProvider,
49614 _swigc__p_wxSize,
49615 _swigc__p_wxSizeEvent,
49616 _swigc__p_wxSizer,
49617 _swigc__p_wxSizerItem,
49618 _swigc__p_wxSlider,
49619 _swigc__p_wxSpinButton,
49620 _swigc__p_wxSpinCtrl,
49621 _swigc__p_wxSpinEvent,
49622 _swigc__p_wxStaticBitmap,
49623 _swigc__p_wxStaticBox,
49624 _swigc__p_wxStaticBoxSizer,
49625 _swigc__p_wxStaticLine,
49626 _swigc__p_wxStaticText,
49627 _swigc__p_wxStdDialogButtonSizer,
49628 _swigc__p_wxString,
49629 _swigc__p_wxSysColourChangedEvent,
580080c5 49630 _swigc__p_wxTGAHandler,
1bd55598
RD
49631 _swigc__p_wxTIFFHandler,
49632 _swigc__p_wxTextAttr,
49633 _swigc__p_wxTextCtrl,
49634 _swigc__p_wxTextUrlEvent,
49635 _swigc__p_wxToggleButton,
49636 _swigc__p_wxToolBar,
49637 _swigc__p_wxToolBarBase,
49638 _swigc__p_wxToolBarToolBase,
49639 _swigc__p_wxToolbook,
49640 _swigc__p_wxToolbookEvent,
1bd55598
RD
49641 _swigc__p_wxTreeEvent,
49642 _swigc__p_wxTreeItemId,
49643 _swigc__p_wxTreebook,
49644 _swigc__p_wxTreebookEvent,
49645 _swigc__p_wxUpdateUIEvent,
49646 _swigc__p_wxValidator,
49647 _swigc__p_wxVisualAttributes,
49648 _swigc__p_wxWindow,
b850e7f3 49649 _swigc__p_wxWindowBase,
1bd55598
RD
49650 _swigc__p_wxWindowCreateEvent,
49651 _swigc__p_wxWindowDestroyEvent,
49652 _swigc__p_wxXPMHandler,
49653};
49654
49655
49656/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49657
49658static swig_const_info swig_const_table[] = {
49659{0, 0, 0, 0.0, 0, 0}};
49660
49661#ifdef __cplusplus
49662}
49663#endif
49664/* -----------------------------------------------------------------------------
49665 * Type initialization:
49666 * This problem is tough by the requirement that no dynamic
49667 * memory is used. Also, since swig_type_info structures store pointers to
49668 * swig_cast_info structures and swig_cast_info structures store pointers back
49669 * to swig_type_info structures, we need some lookup code at initialization.
49670 * The idea is that swig generates all the structures that are needed.
49671 * The runtime then collects these partially filled structures.
49672 * The SWIG_InitializeModule function takes these initial arrays out of
49673 * swig_module, and does all the lookup, filling in the swig_module.types
49674 * array with the correct data and linking the correct swig_cast_info
49675 * structures together.
49676 *
49677 * The generated swig_type_info structures are assigned staticly to an initial
49678 * array. We just loop though that array, and handle each type individually.
49679 * First we lookup if this type has been already loaded, and if so, use the
49680 * loaded structure instead of the generated one. Then we have to fill in the
49681 * cast linked list. The cast data is initially stored in something like a
49682 * two-dimensional array. Each row corresponds to a type (there are the same
49683 * number of rows as there are in the swig_type_initial array). Each entry in
49684 * a column is one of the swig_cast_info structures for that type.
49685 * The cast_initial array is actually an array of arrays, because each row has
49686 * a variable number of columns. So to actually build the cast linked list,
49687 * we find the array of casts associated with the type, and loop through it
49688 * adding the casts to the list. The one last trick we need to do is making
49689 * sure the type pointer in the swig_cast_info struct is correct.
49690 *
49691 * First off, we lookup the cast->type name to see if it is already loaded.
49692 * There are three cases to handle:
49693 * 1) If the cast->type has already been loaded AND the type we are adding
49694 * casting info to has not been loaded (it is in this module), THEN we
49695 * replace the cast->type pointer with the type pointer that has already
49696 * been loaded.
49697 * 2) If BOTH types (the one we are adding casting info to, and the
49698 * cast->type) are loaded, THEN the cast info has already been loaded by
49699 * the previous module so we just ignore it.
49700 * 3) Finally, if cast->type has not already been loaded, then we add that
49701 * swig_cast_info to the linked list (because the cast->type) pointer will
49702 * be correct.
49703 * ----------------------------------------------------------------------------- */
49704
49705#ifdef __cplusplus
49706extern "C" {
49707#if 0
49708} /* c-mode */
49709#endif
49710#endif
49711
49712#if 0
49713#define SWIGRUNTIME_DEBUG
49714#endif
49715
49716SWIGRUNTIME void
49717SWIG_InitializeModule(void *clientdata) {
49718 size_t i;
49719 swig_module_info *module_head;
49720 static int init_run = 0;
49721
49722 clientdata = clientdata;
49723
49724 if (init_run) return;
49725 init_run = 1;
49726
49727 /* Initialize the swig_module */
49728 swig_module.type_initial = swig_type_initial;
49729 swig_module.cast_initial = swig_cast_initial;
49730
49731 /* Try and load any already created modules */
49732 module_head = SWIG_GetModule(clientdata);
49733 if (module_head) {
49734 swig_module.next = module_head->next;
49735 module_head->next = &swig_module;
49736 } else {
49737 /* This is the first module loaded */
49738 swig_module.next = &swig_module;
49739 SWIG_SetModule(clientdata, &swig_module);
49740 }
49741
49742 /* Now work on filling in swig_module.types */
49743#ifdef SWIGRUNTIME_DEBUG
49744 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49745#endif
49746 for (i = 0; i < swig_module.size; ++i) {
49747 swig_type_info *type = 0;
49748 swig_type_info *ret;
49749 swig_cast_info *cast;
d55e5bfc 49750
1bd55598
RD
49751#ifdef SWIGRUNTIME_DEBUG
49752 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49753#endif
d55e5bfc 49754
1bd55598
RD
49755 /* if there is another module already loaded */
49756 if (swig_module.next != &swig_module) {
49757 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 49758 }
1bd55598
RD
49759 if (type) {
49760 /* Overwrite clientdata field */
49761#ifdef SWIGRUNTIME_DEBUG
49762 printf("SWIG_InitializeModule: found type %s\n", type->name);
49763#endif
49764 if (swig_module.type_initial[i]->clientdata) {
49765 type->clientdata = swig_module.type_initial[i]->clientdata;
49766#ifdef SWIGRUNTIME_DEBUG
49767 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49768#endif
49769 }
49770 } else {
49771 type = swig_module.type_initial[i];
36ed4f51 49772 }
d55e5bfc 49773
1bd55598
RD
49774 /* Insert casting types */
49775 cast = swig_module.cast_initial[i];
49776 while (cast->type) {
49777 /* Don't need to add information already in the list */
49778 ret = 0;
49779#ifdef SWIGRUNTIME_DEBUG
49780 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49781#endif
49782 if (swig_module.next != &swig_module) {
49783 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49784#ifdef SWIGRUNTIME_DEBUG
49785 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49786#endif
49787 }
49788 if (ret) {
49789 if (type == swig_module.type_initial[i]) {
49790#ifdef SWIGRUNTIME_DEBUG
49791 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49792#endif
49793 cast->type = ret;
49794 ret = 0;
49795 } else {
49796 /* Check for casting already in the list */
49797 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49798#ifdef SWIGRUNTIME_DEBUG
49799 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49800#endif
49801 if (!ocast) ret = 0;
49802 }
49803 }
49804
49805 if (!ret) {
49806#ifdef SWIGRUNTIME_DEBUG
49807 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49808#endif
49809 if (type->cast) {
49810 type->cast->prev = cast;
49811 cast->next = type->cast;
49812 }
49813 type->cast = cast;
49814 }
49815 cast++;
36ed4f51 49816 }
1bd55598
RD
49817 /* Set entry in modules->types array equal to the type */
49818 swig_module.types[i] = type;
49819 }
49820 swig_module.types[i] = 0;
49821
49822#ifdef SWIGRUNTIME_DEBUG
49823 printf("**** SWIG_InitializeModule: Cast List ******\n");
49824 for (i = 0; i < swig_module.size; ++i) {
49825 int j = 0;
49826 swig_cast_info *cast = swig_module.cast_initial[i];
49827 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49828 while (cast->type) {
49829 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49830 cast++;
49831 ++j;
49832 }
49833 printf("---- Total casts: %d\n",j);
49834 }
49835 printf("**** SWIG_InitializeModule: Cast List ******\n");
49836#endif
49837}
49838
49839/* This function will propagate the clientdata field of type to
49840* any new swig_type_info structures that have been added into the list
49841* of equivalent types. It is like calling
49842* SWIG_TypeClientData(type, clientdata) a second time.
49843*/
49844SWIGRUNTIME void
49845SWIG_PropagateClientData(void) {
49846 size_t i;
49847 swig_cast_info *equiv;
49848 static int init_run = 0;
49849
49850 if (init_run) return;
49851 init_run = 1;
49852
49853 for (i = 0; i < swig_module.size; i++) {
49854 if (swig_module.types[i]->clientdata) {
49855 equiv = swig_module.types[i]->cast;
49856 while (equiv) {
49857 if (!equiv->converter) {
49858 if (equiv->type && !equiv->type->clientdata)
49859 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49860 }
49861 equiv = equiv->next;
49862 }
36ed4f51 49863 }
1bd55598
RD
49864 }
49865}
49866
49867#ifdef __cplusplus
49868#if 0
49869{
49870 /* c-mode */
49871#endif
49872}
49873#endif
49874
49875
49876
49877#ifdef __cplusplus
49878extern "C" {
49879#endif
49880
49881 /* Python-specific SWIG API */
49882#define SWIG_newvarlink() SWIG_Python_newvarlink()
49883#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49884#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49885
49886 /* -----------------------------------------------------------------------------
49887 * global variable support code.
49888 * ----------------------------------------------------------------------------- */
49889
49890 typedef struct swig_globalvar {
49891 char *name; /* Name of global variable */
49892 PyObject *(*get_attr)(void); /* Return the current value */
49893 int (*set_attr)(PyObject *); /* Set the value */
49894 struct swig_globalvar *next;
49895 } swig_globalvar;
49896
49897 typedef struct swig_varlinkobject {
49898 PyObject_HEAD
49899 swig_globalvar *vars;
49900 } swig_varlinkobject;
49901
49902 SWIGINTERN PyObject *
49903 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49904 return PyString_FromString("<Swig global variables>");
49905 }
49906
49907 SWIGINTERN PyObject *
49908 swig_varlink_str(swig_varlinkobject *v) {
49909 PyObject *str = PyString_FromString("(");
49910 swig_globalvar *var;
49911 for (var = v->vars; var; var=var->next) {
49912 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49913 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49914 }
49915 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49916 return str;
49917 }
49918
49919 SWIGINTERN int
49920 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49921 PyObject *str = swig_varlink_str(v);
49922 fprintf(fp,"Swig global variables ");
49923 fprintf(fp,"%s\n", PyString_AsString(str));
49924 Py_DECREF(str);
49925 return 0;
49926 }
49927
49928 SWIGINTERN void
49929 swig_varlink_dealloc(swig_varlinkobject *v) {
49930 swig_globalvar *var = v->vars;
49931 while (var) {
49932 swig_globalvar *n = var->next;
49933 free(var->name);
49934 free(var);
49935 var = n;
36ed4f51 49936 }
1bd55598
RD
49937 }
49938
49939 SWIGINTERN PyObject *
49940 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49941 PyObject *res = NULL;
49942 swig_globalvar *var = v->vars;
49943 while (var) {
49944 if (strcmp(var->name,n) == 0) {
49945 res = (*var->get_attr)();
49946 break;
49947 }
49948 var = var->next;
36ed4f51 49949 }
1bd55598
RD
49950 if (res == NULL && !PyErr_Occurred()) {
49951 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 49952 }
1bd55598
RD
49953 return res;
49954 }
49955
49956 SWIGINTERN int
49957 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49958 int res = 1;
49959 swig_globalvar *var = v->vars;
49960 while (var) {
49961 if (strcmp(var->name,n) == 0) {
49962 res = (*var->set_attr)(p);
49963 break;
49964 }
49965 var = var->next;
36ed4f51 49966 }
1bd55598
RD
49967 if (res == 1 && !PyErr_Occurred()) {
49968 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 49969 }
1bd55598
RD
49970 return res;
49971 }
49972
49973 SWIGINTERN PyTypeObject*
49974 swig_varlink_type(void) {
49975 static char varlink__doc__[] = "Swig var link object";
49976 static PyTypeObject varlink_type;
49977 static int type_init = 0;
49978 if (!type_init) {
49979 const PyTypeObject tmp
49980 = {
49981 PyObject_HEAD_INIT(NULL)
49982 0, /* Number of items in variable part (ob_size) */
49983 (char *)"swigvarlink", /* Type name (tp_name) */
49984 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49985 0, /* Itemsize (tp_itemsize) */
49986 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49987 (printfunc) swig_varlink_print, /* Print (tp_print) */
49988 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49989 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49990 0, /* tp_compare */
49991 (reprfunc) swig_varlink_repr, /* tp_repr */
49992 0, /* tp_as_number */
49993 0, /* tp_as_sequence */
49994 0, /* tp_as_mapping */
49995 0, /* tp_hash */
49996 0, /* tp_call */
49997 (reprfunc)swig_varlink_str, /* tp_str */
49998 0, /* tp_getattro */
49999 0, /* tp_setattro */
50000 0, /* tp_as_buffer */
50001 0, /* tp_flags */
50002 varlink__doc__, /* tp_doc */
50003 0, /* tp_traverse */
50004 0, /* tp_clear */
50005 0, /* tp_richcompare */
50006 0, /* tp_weaklistoffset */
50007#if PY_VERSION_HEX >= 0x02020000
50008 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50009#endif
50010#if PY_VERSION_HEX >= 0x02030000
50011 0, /* tp_del */
50012#endif
50013#ifdef COUNT_ALLOCS
50014 0,0,0,0 /* tp_alloc -> tp_next */
50015#endif
50016 };
50017 varlink_type = tmp;
50018 varlink_type.ob_type = &PyType_Type;
50019 type_init = 1;
53aa7709 50020 }
1bd55598
RD
50021 return &varlink_type;
50022 }
50023
50024 /* Create a variable linking object for use later */
50025 SWIGINTERN PyObject *
50026 SWIG_Python_newvarlink(void) {
50027 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50028 if (result) {
50029 result->vars = 0;
50030 }
50031 return ((PyObject*) result);
50032 }
50033
50034 SWIGINTERN void
50035 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50036 swig_varlinkobject *v = (swig_varlinkobject *) p;
50037 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50038 if (gv) {
50039 size_t size = strlen(name)+1;
50040 gv->name = (char *)malloc(size);
50041 if (gv->name) {
50042 strncpy(gv->name,name,size);
50043 gv->get_attr = get_attr;
50044 gv->set_attr = set_attr;
50045 gv->next = v->vars;
50046 }
53aa7709 50047 }
1bd55598
RD
50048 v->vars = gv;
50049 }
50050
50051 SWIGINTERN PyObject *
50052 SWIG_globals() {
50053 static PyObject *_SWIG_globals = 0;
50054 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50055 return _SWIG_globals;
50056 }
50057
50058 /* -----------------------------------------------------------------------------
50059 * constants/methods manipulation
50060 * ----------------------------------------------------------------------------- */
50061
50062 /* Install Constants */
50063 SWIGINTERN void
50064 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50065 PyObject *obj = 0;
50066 size_t i;
50067 for (i = 0; constants[i].type; ++i) {
50068 switch(constants[i].type) {
50069 case SWIG_PY_POINTER:
50070 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50071 break;
50072 case SWIG_PY_BINARY:
50073 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50074 break;
50075 default:
50076 obj = 0;
50077 break;
50078 }
50079 if (obj) {
50080 PyDict_SetItemString(d, constants[i].name, obj);
50081 Py_DECREF(obj);
50082 }
53aa7709 50083 }
1bd55598
RD
50084 }
50085
50086 /* -----------------------------------------------------------------------------*/
50087 /* Fix SwigMethods to carry the callback ptrs when needed */
50088 /* -----------------------------------------------------------------------------*/
50089
50090 SWIGINTERN void
50091 SWIG_Python_FixMethods(PyMethodDef *methods,
50092 swig_const_info *const_table,
50093 swig_type_info **types,
50094 swig_type_info **types_initial) {
50095 size_t i;
50096 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 50097 const char *c = methods[i].ml_doc;
1bd55598
RD
50098 if (c && (c = strstr(c, "swig_ptr: "))) {
50099 int j;
50100 swig_const_info *ci = 0;
3d6c9062 50101 const char *name = c + 10;
1bd55598
RD
50102 for (j = 0; const_table[j].type; ++j) {
50103 if (strncmp(const_table[j].name, name,
50104 strlen(const_table[j].name)) == 0) {
50105 ci = &(const_table[j]);
50106 break;
50107 }
50108 }
50109 if (ci) {
50110 size_t shift = (ci->ptype) - types;
50111 swig_type_info *ty = types_initial[shift];
50112 size_t ldoc = (c - methods[i].ml_doc);
50113 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50114 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50115 if (ndoc) {
50116 char *buff = ndoc;
50117 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50118 if (ptr) {
50119 strncpy(buff, methods[i].ml_doc, ldoc);
50120 buff += ldoc;
50121 strncpy(buff, "swig_ptr: ", 10);
50122 buff += 10;
50123 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50124 methods[i].ml_doc = ndoc;
50125 }
50126 }
50127 }
50128 }
53aa7709 50129 }
1bd55598
RD
50130 }
50131
50132#ifdef __cplusplus
50133}
50134#endif
50135
50136/* -----------------------------------------------------------------------------*
50137 * Partial Init method
50138 * -----------------------------------------------------------------------------*/
50139
50140#ifdef __cplusplus
50141extern "C"
50142#endif
50143SWIGEXPORT void SWIG_init(void) {
50144 PyObject *m, *d;
50145
50146 /* Fix SwigMethods to carry the callback ptrs when needed */
50147 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50148
50149 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50150 d = PyModule_GetDict(m);
50151
50152 SWIG_InitializeModule(0);
50153 SWIG_InstallConstants(d,swig_const_table);
50154
50155
50156 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50157 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50158 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50159 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50160 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50161 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50162 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50163 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50164 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50165 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50166 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50167 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50168 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50169 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50170 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50171 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50172 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50173 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50174 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50175 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50176 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50177 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
50178 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50179 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50180 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
3f7f284d 50181 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
1bd55598
RD
50182 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50183 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50184 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50185 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50186 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50187 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50188 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50189 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50190 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50191 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50192 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50193 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50194 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50195 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50196 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50197 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50198 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50199 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50200 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50201 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
50202 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50203 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50204 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50205 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50206 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50207 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50208 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50209 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50210 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50211 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50212 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50213 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50214 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50215 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50216 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50217 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50218 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50219 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50220 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50221 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50222 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50223 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50224 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50225 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50226 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50227 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50228 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 50229 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
1bd55598
RD
50230 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50231 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50232 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50233 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50234 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50235 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50236 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50237 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50238 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50239 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50240 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50241 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50242 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50243 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50244 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50245 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50246 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50247 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50248 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50249 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50250 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50251 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50252 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50253 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50254 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50255 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50256 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50257 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50258 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50259 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50260 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50261 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50262 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50263 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50264 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50265 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 50266 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
50267 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50268 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50269 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50270 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50271 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
50272 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50273 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50274 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50275 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50276 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50277 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50278 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50279 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50280 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50281 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50282 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 50283 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
50284 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50285 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50286 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50287 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50288 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50289 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50290 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50291 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50292 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50293 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50294 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50295 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50296 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50297 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50298 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50299 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50300 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50301 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50302 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50303 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50304 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50305 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50306 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50307 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50308 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50309 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50310 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50311 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50312 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
50313 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50314 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50315 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50316 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
1bd55598
RD
50317 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50318 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50319 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50320 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50321 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50322 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50323 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50324 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50325 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 50326 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
50327 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50328 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50329 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50330 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50331 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50332 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50333 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50334 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50335 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50336 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50337 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50338 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50339 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50340 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50341 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50342 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50343 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50344 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50345 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50346 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50347 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50348 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50349 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50350 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50351 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50352 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50353 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50354 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50355 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50356 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50357 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50358 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50359 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50360 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50361 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50362 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50363 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50364 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50365 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50366 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50367 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50368 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50369 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50370 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50371 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50372 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50373 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 50374 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
50375 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50376 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50377 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50378 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50379 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50380 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50381 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50382 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50383 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50384 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50385 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50386 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50387 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50388 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50389 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50390 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50391 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50392 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50393 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50394 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50395 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50396 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50397 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50398 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50399 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50400 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50401 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50402 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50403 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50404 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50405 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50406 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50407 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50408 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50409 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50410 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50411 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50412 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50413 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50414 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50415 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50416 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50417
50418 // Map renamed classes back to their common name for OOR
50419 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50420
50421 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50422 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50423 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50424 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50425 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50426 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50427 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50428 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50429 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50430 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50431 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50432 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50433 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50434 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50435 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
50436 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50437 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50438 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50439 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50440 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50441 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50442 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50443 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50444 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50445 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50446 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50447 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50448 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50449 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50450 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50451 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50452 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50453 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50454 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50455 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50456 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50457 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50458 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50459 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50460 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50461 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50462 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50463 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50464 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50465 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50466 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50467 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50468 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50469 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50470 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50471 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50472 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50473 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50474 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50475 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 50476 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
50477
50478 // Map renamed classes back to their common name for OOR
50479 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50480 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50481
50482 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50483 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50484 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50485 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50486 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50487 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
1bd55598
RD
50488 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50489 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
50490 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50491 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50492 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
50493
50494 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50495
50496 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50497 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50498 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50499 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50500 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50501 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
50502 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50503 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
50504 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50505 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50506 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
50507 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50508 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
50509 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50510 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50511 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50512 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50513 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50514 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50515 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50516 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50517 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50518 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50519 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50520 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50521 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50522 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50523 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50524 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50525 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50526 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50527 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50528 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50529 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50530 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50531 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50532 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50533 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50534 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50535 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50536 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50537 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50538 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
50539 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50540 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50541 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50542 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
3f7f284d 50543 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
4ed51f4d
RD
50544 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
50545 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
d55e5bfc
RD
50546}
50547