]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
Patch #1540143 Add optional labelwidths to filebrowsebutton
[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]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
34e0a3bb
RD
2566#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568#define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotebook swig_types[105]
2572#define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574#define SWIGTYPE_p_wxObject swig_types[108]
2575#define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577#define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578#define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580#define SWIGTYPE_p_wxPaperSize swig_types[114]
2581#define SWIGTYPE_p_wxPickerBase swig_types[115]
2582#define SWIGTYPE_p_wxPoint swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585#define SWIGTYPE_p_wxPyControl swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588#define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589#define SWIGTYPE_p_wxPySizer swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRadioBox swig_types[128]
2595#define SWIGTYPE_p_wxRadioButton swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxScrollBar swig_types[131]
2598#define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSlider swig_types[141]
2608#define SWIGTYPE_p_wxSpinButton swig_types[142]
2609#define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610#define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611#define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612#define SWIGTYPE_p_wxStaticBox swig_types[146]
2613#define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614#define SWIGTYPE_p_wxStaticLine swig_types[148]
2615#define SWIGTYPE_p_wxStaticText swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619#define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620#define SWIGTYPE_p_wxTextAttr swig_types[154]
2621#define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622#define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623#define SWIGTYPE_p_wxToggleButton swig_types[157]
2624#define SWIGTYPE_p_wxToolBar swig_types[158]
2625#define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626#define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627#define SWIGTYPE_p_wxToolbook swig_types[161]
2628#define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631#define SWIGTYPE_p_wxTreebook swig_types[165]
2632#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634#define SWIGTYPE_p_wxValidator swig_types[168]
2635#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636#define SWIGTYPE_p_wxWindow swig_types[170]
2637#define SWIGTYPE_p_wxWindowBase swig_types[171]
2638#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641static swig_type_info *swig_types[176];
2642static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
32fe5131
RD
2643#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2645
2646/* -------- TYPES TABLE (END) -------- */
2647
1bd55598
RD
2648#if (PY_VERSION_HEX <= 0x02000000)
2649# if !defined(SWIG_PYTHON_CLASSIC)
2650# error "This python version requires to use swig with the '-classic' option"
2651# endif
2652#endif
2653#if (PY_VERSION_HEX <= 0x02020000)
2654# error "This python version requires to use swig with the '-nomodern' option"
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodernargs' option"
2658#endif
2659#ifndef METH_O
2660# error "This python version requires to use swig with the '-nofastunpack' option"
2661#endif
36ed4f51
RD
2662
2663/*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666#define SWIG_init init_controls_
2667
2668#define SWIG_name "_controls_"
2669
1bd55598
RD
2670#define SWIGVERSION 0x010329
2671
2672
2673#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677#include <stdexcept>
2678
2679
2680namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723}
2724
2725
2726namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737}
2738
2739
36ed4f51
RD
2740#include "wx/wxPython/wxPython.h"
2741#include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
1bd55598 2751 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2752
2753
1bd55598
RD
2754SWIGINTERNINLINE PyObject *
2755SWIG_From_int (int value)
2756{
2757 return SWIG_From_long (value);
2758}
36ed4f51
RD
2759
2760
1bd55598
RD
2761#include <limits.h>
2762#ifndef LLONG_MIN
2763# define LLONG_MIN LONG_LONG_MIN
2764#endif
2765#ifndef LLONG_MAX
2766# define LLONG_MAX LONG_LONG_MAX
2767#endif
2768#ifndef ULLONG_MAX
2769# define ULLONG_MAX ULONG_LONG_MAX
2770#endif
36ed4f51
RD
2771
2772
2773SWIGINTERN int
1bd55598 2774SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2775{
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
1bd55598 2778 return SWIG_OK;
36ed4f51 2779 }
1bd55598 2780 return SWIG_TypeError;
36ed4f51
RD
2781}
2782
2783
36ed4f51 2784SWIGINTERN int
1bd55598
RD
2785SWIG_AsVal_int (PyObject * obj, int *val)
2786{
36ed4f51 2787 long v;
1bd55598
RD
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
36ed4f51 2792 } else {
1bd55598 2793 if (val) *val = static_cast< int >(v);
36ed4f51 2794 }
1bd55598
RD
2795 }
2796 return res;
d55e5bfc
RD
2797}
2798
c370783e 2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2800
36ed4f51 2801SWIGINTERN int
1bd55598 2802SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2803{
c370783e
RD
2804 if (obj == Py_True) {
2805 if (val) *val = true;
1bd55598
RD
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
c370783e 2808 if (val) *val = false;
1bd55598 2809 return SWIG_OK;
36ed4f51 2810 } else {
1bd55598
RD
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
c370783e 2815 }
d55e5bfc
RD
2816}
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825#include <wx/checklst.h>
d55e5bfc
RD
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2828SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2829 if (clientData)
2830 {
d55e5bfc
RD
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
e9d6f3a4
RD
2833 }
2834 else
d55e5bfc
RD
2835 self->Insert(item, pos);
2836 }
50f151d7
RD
2837
2838SWIGINTERN int
2839SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840{
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848}
2849
2850
2851SWIGINTERN int
2852SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853{
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864}
2865
1bd55598 2866SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
7e08d4ef
RD
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
e9d6f3a4 2875 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2876 return tup;
2877 }
1bd55598 2878SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
1bd55598 2884SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
1bd55598 2890SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2897SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2898 self->AppendText(text);
2899 }
1bd55598 2900SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
1c71765a
RD
2909SWIGINTERNINLINE PyObject*
2910SWIG_From_unsigned_SS_long (unsigned long value)
2911{
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914}
2915
2916
2917SWIGINTERNINLINE PyObject *
2918SWIG_From_size_t (size_t value)
2919{
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921}
2922
2923
50f151d7
RD
2924SWIGINTERNINLINE PyObject *
2925SWIG_From_unsigned_SS_int (unsigned int value)
2926{
2927 return SWIG_From_unsigned_SS_long (value);
2928}
2929
2930
d55e5bfc
RD
2931#include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937#if !wxUSE_TOGGLEBTN
2938// implement dummy items for platforms that don't have this class
2939
2940#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942class wxToggleButton : public wxControl
2943{
2944public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952};
2953#endif
2954
51b83b37 2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2956
7e08d4ef 2957SWIGINTERNINLINE int
1bd55598 2958SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2959{
7e08d4ef 2960 unsigned long v;
1bd55598
RD
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
7e08d4ef 2964}
7e08d4ef 2965
d55e5bfc 2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2967SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
1bd55598 2977SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
1bd55598 2980SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
1bd55598 2987SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
1bd55598 2994SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
1bd55598 3004SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008#include <wx/listctrl.h>
3009
fef4c27a 3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3011SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
5a446332 3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031class wxPyListCtrl : public wxListCtrl {
32fe5131 3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3033public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
84f85550
RD
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3058
d55e5bfc
RD
3059 PYPRIVATE;
3060};
3061
3062IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3065IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3066IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3067IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
d55e5bfc 3069
1bd55598 3070SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
1bd55598 3085SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
1bd55598 3093SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
1bd55598 3098SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
1bd55598 3103SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3104 if (!PyCallable_Check(func))
b411df4a 3105 return false;
d55e5bfc
RD
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
1bd55598 3108SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3109
3110
3111
3112 return (wxWindow*)self->m_mainWin;
3113
3114 }
3115
3116#include <wx/treectrl.h>
3117#include "wx/wxPython/pytree.h"
3118
3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3120SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
d55e5bfc
RD
3126 // C++ version of Python aware wxTreeCtrl
3127class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3129public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
5a446332 3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
3161 wxPyEndBlockThreads(blocked);
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167};
3168
3169IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
1bd55598 3172SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
1bd55598 3181SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
1bd55598 3190SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
1bd55598 3194SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
1bd55598 3203SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3212 PyList_Append(rval, item);
68e533f8 3213 Py_DECREF(item);
d55e5bfc
RD
3214 }
3215 wxPyEndBlockThreads(blocked);
3216 return rval;
3217 }
1bd55598 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3222 PyObject* tup = PyTuple_New(2);
b411df4a 3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3225 wxPyEndBlockThreads(blocked);
3226 return tup;
3227 }
1bd55598 3228SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3231 PyObject* tup = PyTuple_New(2);
b411df4a 3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3234 wxPyEndBlockThreads(blocked);
3235 return tup;
3236 }
1bd55598 3237SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3241 wxRect* r = new wxRect(rect);
b411df4a 3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3243 wxPyEndBlockThreads(blocked);
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3250
32fe5131 3251SWIGINTERNINLINE PyObject*
1bd55598 3252 SWIG_From_bool (bool value)
c370783e 3253{
1bd55598 3254 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3255}
3256
d55e5bfc
RD
3257 // C++ version of Python aware wxControl
3258class wxPyControl : public wxControl
3259{
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
a5ee0656 3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3272
976dbff5
RD
3273 bool DoEraseBackground(wxDC* dc) {
3274#ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276#else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280#endif
3281 }
3282
d55e5bfc
RD
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
a5ee0656 3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3309
51b83b37
RD
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
8d38bd1d
RD
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
d55e5bfc
RD
3314 PYPRIVATE;
3315};
3316
3317IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
a5ee0656 3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3344IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3345
51b83b37 3346IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3347
3348IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
d55e5bfc
RD
3350
3351
1bd55598 3352SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3353
3354#include <wx/generic/dragimgg.h>
3355
53aa7709 3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3357SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
1bd55598 3362SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
704eda0c 3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d55e5bfc
RD
3375#ifdef __cplusplus
3376extern "C" {
3377#endif
1bd55598
RD
3378SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
d55e5bfc
RD
3381}
3382
3383
1bd55598
RD
3384SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
d55e5bfc 3388#if wxUSE_UNICODE
1bd55598 3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3390#else
1bd55598 3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3392#endif
1bd55598
RD
3393 }
3394 return pyobj;
3395}
3396
3397
3398SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
d55e5bfc 3452 {
1bd55598
RD
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
d55e5bfc 3456 }
1bd55598
RD
3457 }
3458 if (obj3) {
d55e5bfc 3459 {
1bd55598
RD
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3462 }
1bd55598
RD
3463 }
3464 if (obj4) {
d55e5bfc 3465 {
1bd55598
RD
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3468 }
1bd55598
RD
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3481 }
1bd55598
RD
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3484 }
1bd55598
RD
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
d55e5bfc 3488 {
1bd55598
RD
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
d55e5bfc 3492 }
1bd55598
RD
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
d55e5bfc
RD
3521}
3522
3523
1bd55598
RD
3524SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538fail:
3539 return NULL;
3540}
3541
3542
3543SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
d55e5bfc 3606 {
1bd55598
RD
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
d55e5bfc 3610 }
1bd55598
RD
3611 }
3612 if (obj4) {
d55e5bfc 3613 {
1bd55598
RD
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3616 }
1bd55598
RD
3617 }
3618 if (obj5) {
d55e5bfc 3619 {
1bd55598
RD
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3622 }
1bd55598
RD
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3635 }
1bd55598
RD
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3638 }
1bd55598
RD
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
d55e5bfc 3642 {
1bd55598
RD
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
d55e5bfc 3646 }
1bd55598
RD
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
d55e5bfc
RD
3676}
3677
3678
1bd55598
RD
3679SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701fail:
3702 return NULL;
d55e5bfc
RD
3703}
3704
3705
1bd55598
RD
3706SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719fail:
3720 return NULL;
3721}
3722
3723
3724SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752fail:
3753 return NULL;
3754}
3755
3756
3757SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762}
3763
3764SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766}
3767
3768SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
d55e5bfc 3833 {
1bd55598
RD
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3836 }
1bd55598
RD
3837 }
3838 if (obj4) {
d55e5bfc 3839 {
1bd55598
RD
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3842 }
1bd55598
RD
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3855 }
1bd55598
RD
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3858 }
1bd55598
RD
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
f20a2e1f 3862 {
1bd55598
RD
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
f20a2e1f 3866 }
1bd55598
RD
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
f20a2e1f
RD
3887}
3888
3889
1bd55598
RD
3890SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904fail:
3905 return NULL;
3906}
3907
3908
3909SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3976 }
1bd55598
RD
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3979 }
1bd55598
RD
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
d55e5bfc 3983 {
1bd55598
RD
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3986 }
1bd55598
RD
3987 }
3988 if (obj5) {
d55e5bfc 3989 {
1bd55598
RD
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4008 }
1bd55598
RD
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
d55e5bfc 4012 {
1bd55598
RD
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
d55e5bfc 4016 }
1bd55598
RD
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
d55e5bfc
RD
4038}
4039
4040
1bd55598
RD
4041SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064fail:
4065 return NULL;
d55e5bfc
RD
4066}
4067
4068
1bd55598
RD
4069SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092fail:
4093 return NULL;
d55e5bfc
RD
4094}
4095
4096
1bd55598
RD
4097SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120fail:
4121 return NULL;
d55e5bfc
RD
4122}
4123
4124
1bd55598
RD
4125SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148fail:
4149 return NULL;
d55e5bfc
RD
4150}
4151
4152
1bd55598
RD
4153SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176fail:
4177 return NULL;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217fail:
4218 return NULL;
4219}
4220
4221
4222SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258fail:
4259 return NULL;
4260}
4261
4262
4263SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299fail:
4300 return NULL;
4301}
4302
4303
4304SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340fail:
4341 return NULL;
4342}
4343
4344
4345SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381fail:
4382 return NULL;
4383}
4384
4385
4386SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL;
d55e5bfc
RD
4430}
4431
4432
1bd55598
RD
4433SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456fail:
4457 return NULL;
d55e5bfc
RD
4458}
4459
4460
1bd55598
RD
4461SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484fail:
4485 return NULL;
b1fcee84
RD
4486}
4487
4488
1bd55598
RD
4489SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
d55e5bfc
RD
4494}
4495
1bd55598
RD
4496SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498}
d55e5bfc 4499
1bd55598
RD
4500SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
d55e5bfc
RD
4503}
4504
4505
1bd55598
RD
4506SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510#if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512#else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514#endif
4515 }
4516 return pyobj;
4517}
4518
4519
4520SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
d55e5bfc 4574 {
1bd55598
RD
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
d55e5bfc 4578 }
1bd55598
RD
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4584 }
1bd55598
RD
4585 }
4586 if (obj4) {
d55e5bfc 4587 {
1bd55598
RD
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4590 }
1bd55598
RD
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4603 }
1bd55598
RD
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
b1fcee84 4610 {
1bd55598
RD
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
b1fcee84 4614 }
1bd55598
RD
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
b1fcee84
RD
4643}
4644
4645
1bd55598
RD
4646SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660fail:
4661 return NULL;
4662}
4663
4664
4665SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
36ed4f51 4728 {
1bd55598
RD
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
36ed4f51 4732 }
1bd55598
RD
4733 }
4734 if (obj4) {
36ed4f51 4735 {
1bd55598
RD
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4738 }
1bd55598
RD
4739 }
4740 if (obj5) {
d55e5bfc 4741 {
1bd55598
RD
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4744 }
1bd55598
RD
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4757 }
1bd55598
RD
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
36ed4f51 4764 {
1bd55598
RD
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
36ed4f51 4768 }
1bd55598
RD
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
d55e5bfc
RD
4798}
4799
4800
1bd55598
RD
4801SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826fail:
4827 return NULL;
d55e5bfc
RD
4828}
4829
4830
1bd55598
RD
4831SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894fail:
4895 return NULL;
d55e5bfc 4896}
1bd55598
RD
4897
4898
4899SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922fail:
4923 return NULL;
4924}
4925
4926
4927SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960fail:
4961 return NULL;
d55e5bfc
RD
4962}
4963
4964
1bd55598
RD
4965SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990fail:
4991 return NULL;
d55e5bfc
RD
4992}
4993
4994
1bd55598
RD
4995SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020fail:
5021 return NULL;
d55e5bfc
RD
5022}
5023
5024
1bd55598
RD
5025SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053fail:
5054 return NULL;
d55e5bfc
RD
5055}
5056
5057
1bd55598
RD
5058SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
d55e5bfc
RD
5063}
5064
1bd55598
RD
5065SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067}
d55e5bfc 5068
1bd55598
RD
5069SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
d55e5bfc
RD
5072}
5073
5074
1bd55598
RD
5075SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079#if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081#else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083#endif
5084 }
5085 return pyobj;
5086}
5087
5088
5089SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
36ed4f51 5143 {
1bd55598
RD
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5146 }
1bd55598
RD
5147 }
5148 if (obj3) {
d55e5bfc 5149 {
1bd55598
RD
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5152 }
1bd55598
RD
5153 }
5154 if (obj4) {
d55e5bfc 5155 {
1bd55598
RD
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
d55e5bfc 5171 }
1bd55598
RD
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5184 }
1bd55598
RD
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
d55e5bfc 5191 {
1bd55598
RD
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
d55e5bfc 5195 }
1bd55598
RD
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
d55e5bfc
RD
5222}
5223
5224
1bd55598
RD
5225SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239fail:
5240 return NULL;
5241}
5242
5243
5244SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
d55e5bfc 5307 {
1bd55598
RD
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5310 }
1bd55598
RD
5311 }
5312 if (obj4) {
d55e5bfc 5313 {
1bd55598
RD
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5316 }
1bd55598
RD
5317 }
5318 if (obj5) {
d55e5bfc 5319 {
1bd55598
RD
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5348 }
1bd55598
RD
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
d55e5bfc 5355 {
1bd55598
RD
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
d55e5bfc 5359 }
1bd55598
RD
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
d55e5bfc
RD
5387}
5388
5389
1bd55598
RD
5390SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413fail:
5414 return NULL;
5415}
5416
5417
5418SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446fail:
5447 return NULL;
f20a2e1f
RD
5448}
5449
5450
1bd55598
RD
5451SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
d55e5bfc 5456}
1bd55598
RD
5457
5458SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460}
5461
5462SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
d55e5bfc
RD
5465}
5466
5467
1bd55598
RD
5468SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
d55e5bfc 5472#if wxUSE_UNICODE
1bd55598 5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5474#else
1bd55598 5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5476#endif
1bd55598
RD
5477 }
5478 return pyobj;
5479}
5480
5481
5482SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
d55e5bfc 5540 {
1bd55598
RD
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
d55e5bfc 5544 }
1bd55598
RD
5545 }
5546 if (obj3) {
d55e5bfc 5547 {
1bd55598
RD
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5550 }
1bd55598
RD
5551 }
5552 if (obj4) {
d55e5bfc 5553 {
1bd55598
RD
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5556 }
1bd55598
RD
5557 }
5558 if (obj5) {
d55e5bfc 5559 {
1bd55598
RD
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
d55e5bfc 5575 }
1bd55598
RD
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
d55e5bfc 5595 {
1bd55598
RD
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
d55e5bfc 5599 }
1bd55598
RD
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
d55e5bfc
RD
5634}
5635
5636
1bd55598
RD
5637SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651fail:
5652 return NULL;
5653}
5654
5655
5656SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
d55e5bfc 5723 {
1bd55598
RD
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
d55e5bfc 5727 }
1bd55598
RD
5728 }
5729 if (obj4) {
d55e5bfc 5730 {
1bd55598
RD
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5733 }
1bd55598
RD
5734 }
5735 if (obj5) {
d55e5bfc 5736 {
1bd55598
RD
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5739 }
1bd55598
RD
5740 }
5741 if (obj6) {
d55e5bfc 5742 {
1bd55598
RD
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
d55e5bfc 5758 }
1bd55598
RD
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5771 }
1bd55598
RD
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5774 }
1bd55598
RD
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
d55e5bfc 5778 {
1bd55598
RD
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
d55e5bfc 5782 }
1bd55598
RD
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
d55e5bfc
RD
5818}
5819
5820
1bd55598
RD
5821SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
d55e5bfc 5843#if wxUSE_UNICODE
1bd55598 5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5845#else
1bd55598 5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5847#endif
1bd55598
RD
5848 }
5849 return resultobj;
5850fail:
5851 return NULL;
5852}
5853
5854
5855SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
d55e5bfc
RD
5897}
5898
5899
1bd55598
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922fail:
5923 return NULL;
d55e5bfc
RD
5924}
5925
5926
1bd55598
RD
5927SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
d55e5bfc
RD
5951}
5952
5953
1bd55598
RD
5954SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976fail:
5977 return NULL;
5978}
5979
5980
5981SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014fail:
6015 return NULL;
d55e5bfc
RD
6016}
6017
6018
1bd55598
RD
6019SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042fail:
6043 return NULL;
d55e5bfc
RD
6044}
6045
6046
1bd55598
RD
6047SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070fail:
6071 return NULL;
6072}
6073
6074
6075SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
2131d850 6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135}
6136
6137
6138SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
2131d850 6153 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180fail:
6181 return NULL;
d55e5bfc
RD
6182}
6183
6184
1bd55598
RD
6185SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 int result;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 PyObject *swig_obj[1] ;
6192
6193 if (!args) SWIG_fail;
6194 swig_obj[0] = args;
6195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6196 if (!SWIG_IsOK(res1)) {
6197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6198 }
6199 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_From_int(static_cast< int >(result));
6207 return resultobj;
6208fail:
6209 return NULL;
6210}
6211
6212
6213SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj = 0;
6215 wxComboBox *arg1 = (wxComboBox *) 0 ;
6216 wxString *arg2 = 0 ;
6217 bool result;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 bool temp2 = false ;
6221 PyObject * obj0 = 0 ;
6222 PyObject * obj1 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "self",(char *) "string", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6231 }
6232 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6233 {
6234 arg2 = wxString_in_helper(obj1);
6235 if (arg2 == NULL) SWIG_fail;
6236 temp2 = true;
6237 }
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 {
6245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6246 }
6247 {
6248 if (temp2)
6249 delete arg2;
6250 }
6251 return resultobj;
6252fail:
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return NULL;
6258}
6259
6260
50f151d7
RD
6261SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxComboBox *arg1 = (wxComboBox *) 0 ;
6264 int arg2 ;
6265 wxString *arg3 = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 int val2 ;
6269 int ecode2 = 0 ;
6270 bool temp3 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 PyObject * obj2 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "self",(char *) "n",(char *) "string", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6282 }
6283 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6284 ecode2 = SWIG_AsVal_int(obj1, &val2);
6285 if (!SWIG_IsOK(ecode2)) {
6286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6287 }
6288 arg2 = static_cast< int >(val2);
6289 {
6290 arg3 = wxString_in_helper(obj2);
6291 if (arg3 == NULL) SWIG_fail;
6292 temp3 = true;
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetString(arg2,(wxString const &)*arg3);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_Py_Void();
6301 {
6302 if (temp3)
6303 delete arg3;
6304 }
6305 return resultobj;
6306fail:
6307 {
6308 if (temp3)
6309 delete arg3;
6310 }
6311 return NULL;
6312}
6313
6314
1bd55598
RD
6315SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj = 0;
6317 wxComboBox *arg1 = (wxComboBox *) 0 ;
6318 bool arg2 ;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool val2 ;
6322 int ecode2 = 0 ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char * kwnames[] = {
6326 (char *) "self",(char *) "editable", NULL
6327 };
6328
6329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6331 if (!SWIG_IsOK(res1)) {
6332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6333 }
6334 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6335 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6336 if (!SWIG_IsOK(ecode2)) {
6337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6338 }
6339 arg2 = static_cast< bool >(val2);
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->SetEditable(arg2);
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_Py_Void();
6347 return resultobj;
6348fail:
6349 return NULL;
d55e5bfc
RD
6350}
6351
6352
1bd55598
RD
6353SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6354 PyObject *resultobj = 0;
6355 wxComboBox *arg1 = (wxComboBox *) 0 ;
6356 void *argp1 = 0 ;
6357 int res1 = 0 ;
6358 PyObject *swig_obj[1] ;
6359
6360 if (!args) SWIG_fail;
6361 swig_obj[0] = args;
6362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6363 if (!SWIG_IsOK(res1)) {
6364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6365 }
6366 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 (arg1)->SetInsertionPointEnd();
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375fail:
6376 return NULL;
6377}
6378
6379
6380SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj = 0;
6382 wxComboBox *arg1 = (wxComboBox *) 0 ;
6383 long arg2 ;
6384 long arg3 ;
6385 void *argp1 = 0 ;
6386 int res1 = 0 ;
6387 long val2 ;
6388 int ecode2 = 0 ;
6389 long val3 ;
6390 int ecode3 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 PyObject * obj2 = 0 ;
6394 char * kwnames[] = {
2131d850 6395 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6396 };
6397
6398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6402 }
6403 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6404 ecode2 = SWIG_AsVal_long(obj1, &val2);
6405 if (!SWIG_IsOK(ecode2)) {
6406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6407 }
6408 arg2 = static_cast< long >(val2);
6409 ecode3 = SWIG_AsVal_long(obj2, &val3);
6410 if (!SWIG_IsOK(ecode3)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6412 }
6413 arg3 = static_cast< long >(val3);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->Remove(arg2,arg3);
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422fail:
6423 return NULL;
d55e5bfc
RD
6424}
6425
6426
1bd55598
RD
6427SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 bool result;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 PyObject *swig_obj[1] ;
6434
6435 if (!args) SWIG_fail;
6436 swig_obj[0] = args;
6437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6440 }
6441 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6450 }
6451 return resultobj;
6452fail:
6453 return NULL;
d55e5bfc
RD
6454}
6455
6456
1bd55598
RD
6457SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 wxComboBox *arg1 = (wxComboBox *) 0 ;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 PyObject *swig_obj[1] ;
6463
6464 if (!args) SWIG_fail;
6465 swig_obj[0] = args;
6466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6469 }
6470 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 (arg1)->Undo();
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_Py_Void();
6478 return resultobj;
6479fail:
6480 return NULL;
d55e5bfc
RD
6481}
6482
6483
1bd55598
RD
6484SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->Redo();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506fail:
6507 return NULL;
d55e5bfc
RD
6508}
6509
6510
1bd55598
RD
6511SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6523 }
6524 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 (arg1)->SelectAll();
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533fail:
6534 return NULL;
943e8dfd
RD
6535}
6536
6537
1bd55598
RD
6538SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxComboBox *arg1 = (wxComboBox *) 0 ;
6541 bool result;
6542 void *argp1 = 0 ;
6543 int res1 = 0 ;
6544 PyObject *swig_obj[1] ;
6545
6546 if (!args) SWIG_fail;
6547 swig_obj[0] = args;
6548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6549 if (!SWIG_IsOK(res1)) {
6550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6551 }
6552 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6553 {
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
6555 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 {
6560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6561 }
6562 return resultobj;
6563fail:
6564 return NULL;
121b9a67
RD
6565}
6566
6567
1bd55598
RD
6568SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6569 PyObject *resultobj = 0;
6570 wxComboBox *arg1 = (wxComboBox *) 0 ;
6571 bool result;
6572 void *argp1 = 0 ;
6573 int res1 = 0 ;
6574 PyObject *swig_obj[1] ;
6575
6576 if (!args) SWIG_fail;
6577 swig_obj[0] = args;
6578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6581 }
6582 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 result = (bool)((wxComboBox const *)arg1)->CanCut();
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6591 }
6592 return resultobj;
6593fail:
6594 return NULL;
121b9a67
RD
6595}
6596
6597
1bd55598
RD
6598SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6599 PyObject *resultobj = 0;
6600 wxComboBox *arg1 = (wxComboBox *) 0 ;
6601 bool result;
6602 void *argp1 = 0 ;
6603 int res1 = 0 ;
6604 PyObject *swig_obj[1] ;
6605
6606 if (!args) SWIG_fail;
6607 swig_obj[0] = args;
6608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6611 }
6612 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 {
6620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6621 }
6622 return resultobj;
6623fail:
6624 return NULL;
d55e5bfc
RD
6625}
6626
6627
1bd55598
RD
6628SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6629 PyObject *resultobj = 0;
6630 wxComboBox *arg1 = (wxComboBox *) 0 ;
6631 bool result;
6632 void *argp1 = 0 ;
6633 int res1 = 0 ;
6634 PyObject *swig_obj[1] ;
6635
6636 if (!args) SWIG_fail;
6637 swig_obj[0] = args;
6638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6639 if (!SWIG_IsOK(res1)) {
6640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6641 }
6642 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6643 {
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6651 }
6652 return resultobj;
6653fail:
6654 return NULL;
d55e5bfc
RD
6655}
6656
6657
1bd55598
RD
6658SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6659 PyObject *resultobj = 0;
6660 wxComboBox *arg1 = (wxComboBox *) 0 ;
6661 bool result;
6662 void *argp1 = 0 ;
6663 int res1 = 0 ;
6664 PyObject *swig_obj[1] ;
6665
6666 if (!args) SWIG_fail;
6667 swig_obj[0] = args;
6668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6669 if (!SWIG_IsOK(res1)) {
6670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6671 }
6672 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6676 wxPyEndAllowThreads(__tstate);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
6679 {
6680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6681 }
6682 return resultobj;
6683fail:
6684 return NULL;
d55e5bfc
RD
6685}
6686
6687
1bd55598
RD
6688SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj = 0;
6690 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6691 SwigValueWrapper<wxVisualAttributes > result;
6692 int val1 ;
6693 int ecode1 = 0 ;
6694 PyObject * obj0 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "variant", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6700 if (obj0) {
6701 ecode1 = SWIG_AsVal_int(obj0, &val1);
6702 if (!SWIG_IsOK(ecode1)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6704 }
6705 arg1 = static_cast< wxWindowVariant >(val1);
6706 }
6707 {
6708 if (!wxPyCheckForApp()) SWIG_fail;
6709 PyThreadState* __tstate = wxPyBeginAllowThreads();
6710 result = wxComboBox::GetClassDefaultAttributes(arg1);
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6715 return resultobj;
6716fail:
6717 return NULL;
5cbf236d
RD
6718}
6719
6720
1bd55598
RD
6721SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6722 PyObject *obj;
6723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6724 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6725 return SWIG_Py_Void();
5cbf236d
RD
6726}
6727
1bd55598
RD
6728SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6729 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6730}
6731
1bd55598
RD
6732SWIGINTERN int GaugeNameStr_set(PyObject *) {
6733 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6734 return 1;
5cbf236d
RD
6735}
6736
6737
1bd55598
RD
6738SWIGINTERN PyObject *GaugeNameStr_get(void) {
6739 PyObject *pyobj = 0;
6740
6741 {
6742#if wxUSE_UNICODE
6743 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6744#else
6745 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6746#endif
6747 }
6748 return pyobj;
6749}
6750
6751
6752SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxWindow *arg1 = (wxWindow *) 0 ;
6755 int arg2 = (int) -1 ;
6756 int arg3 = (int) 100 ;
6757 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6758 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6759 wxSize const &arg5_defvalue = wxDefaultSize ;
6760 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6761 long arg6 = (long) wxGA_HORIZONTAL ;
6762 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6763 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6764 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6765 wxString *arg8 = (wxString *) &arg8_defvalue ;
6766 wxGauge *result = 0 ;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 int val2 ;
6770 int ecode2 = 0 ;
6771 int val3 ;
6772 int ecode3 = 0 ;
6773 wxPoint temp4 ;
6774 wxSize temp5 ;
6775 long val6 ;
6776 int ecode6 = 0 ;
6777 void *argp7 = 0 ;
6778 int res7 = 0 ;
6779 bool temp8 = false ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 PyObject * obj2 = 0 ;
6783 PyObject * obj3 = 0 ;
6784 PyObject * obj4 = 0 ;
6785 PyObject * obj5 = 0 ;
6786 PyObject * obj6 = 0 ;
6787 PyObject * obj7 = 0 ;
6788 char * kwnames[] = {
6789 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6790 };
6791
6792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6794 if (!SWIG_IsOK(res1)) {
6795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6796 }
6797 arg1 = reinterpret_cast< wxWindow * >(argp1);
6798 if (obj1) {
6799 ecode2 = SWIG_AsVal_int(obj1, &val2);
6800 if (!SWIG_IsOK(ecode2)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6802 }
6803 arg2 = static_cast< int >(val2);
6804 }
6805 if (obj2) {
6806 ecode3 = SWIG_AsVal_int(obj2, &val3);
6807 if (!SWIG_IsOK(ecode3)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6809 }
6810 arg3 = static_cast< int >(val3);
6811 }
6812 if (obj3) {
5cbf236d 6813 {
1bd55598
RD
6814 arg4 = &temp4;
6815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6816 }
1bd55598
RD
6817 }
6818 if (obj4) {
5cbf236d 6819 {
1bd55598
RD
6820 arg5 = &temp5;
6821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6822 }
1bd55598
RD
6823 }
6824 if (obj5) {
6825 ecode6 = SWIG_AsVal_long(obj5, &val6);
6826 if (!SWIG_IsOK(ecode6)) {
6827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6828 }
6829 arg6 = static_cast< long >(val6);
6830 }
6831 if (obj6) {
6832 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6833 if (!SWIG_IsOK(res7)) {
6834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6835 }
6836 if (!argp7) {
6837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6838 }
1bd55598
RD
6839 arg7 = reinterpret_cast< wxValidator * >(argp7);
6840 }
6841 if (obj7) {
5cbf236d 6842 {
1bd55598
RD
6843 arg8 = wxString_in_helper(obj7);
6844 if (arg8 == NULL) SWIG_fail;
6845 temp8 = true;
5cbf236d 6846 }
1bd55598
RD
6847 }
6848 {
6849 if (!wxPyCheckForApp()) SWIG_fail;
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6856 {
6857 if (temp8)
6858 delete arg8;
6859 }
6860 return resultobj;
6861fail:
6862 {
6863 if (temp8)
6864 delete arg8;
6865 }
6866 return NULL;
5cbf236d
RD
6867}
6868
6869
1bd55598
RD
6870SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6871 PyObject *resultobj = 0;
6872 wxGauge *result = 0 ;
6873
6874 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6875 {
6876 if (!wxPyCheckForApp()) SWIG_fail;
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (wxGauge *)new wxGauge();
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6883 return resultobj;
6884fail:
6885 return NULL;
6886}
6887
6888
6889SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 wxGauge *arg1 = (wxGauge *) 0 ;
6892 wxWindow *arg2 = (wxWindow *) 0 ;
6893 int arg3 = (int) -1 ;
6894 int arg4 = (int) 100 ;
6895 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6896 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6897 wxSize const &arg6_defvalue = wxDefaultSize ;
6898 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6899 long arg7 = (long) wxGA_HORIZONTAL ;
6900 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6901 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6902 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6903 wxString *arg9 = (wxString *) &arg9_defvalue ;
6904 bool result;
6905 void *argp1 = 0 ;
6906 int res1 = 0 ;
6907 void *argp2 = 0 ;
6908 int res2 = 0 ;
6909 int val3 ;
6910 int ecode3 = 0 ;
6911 int val4 ;
6912 int ecode4 = 0 ;
6913 wxPoint temp5 ;
6914 wxSize temp6 ;
6915 long val7 ;
6916 int ecode7 = 0 ;
6917 void *argp8 = 0 ;
6918 int res8 = 0 ;
6919 bool temp9 = false ;
6920 PyObject * obj0 = 0 ;
6921 PyObject * obj1 = 0 ;
6922 PyObject * obj2 = 0 ;
6923 PyObject * obj3 = 0 ;
6924 PyObject * obj4 = 0 ;
6925 PyObject * obj5 = 0 ;
6926 PyObject * obj6 = 0 ;
6927 PyObject * obj7 = 0 ;
6928 PyObject * obj8 = 0 ;
6929 char * kwnames[] = {
6930 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6931 };
6932
6933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6935 if (!SWIG_IsOK(res1)) {
6936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6937 }
6938 arg1 = reinterpret_cast< wxGauge * >(argp1);
6939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6940 if (!SWIG_IsOK(res2)) {
6941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6942 }
6943 arg2 = reinterpret_cast< wxWindow * >(argp2);
6944 if (obj2) {
6945 ecode3 = SWIG_AsVal_int(obj2, &val3);
6946 if (!SWIG_IsOK(ecode3)) {
6947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6948 }
6949 arg3 = static_cast< int >(val3);
6950 }
6951 if (obj3) {
6952 ecode4 = SWIG_AsVal_int(obj3, &val4);
6953 if (!SWIG_IsOK(ecode4)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6955 }
6956 arg4 = static_cast< int >(val4);
6957 }
6958 if (obj4) {
5cbf236d 6959 {
1bd55598
RD
6960 arg5 = &temp5;
6961 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6962 }
1bd55598
RD
6963 }
6964 if (obj5) {
5cbf236d 6965 {
1bd55598
RD
6966 arg6 = &temp6;
6967 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6968 }
1bd55598
RD
6969 }
6970 if (obj6) {
6971 ecode7 = SWIG_AsVal_long(obj6, &val7);
6972 if (!SWIG_IsOK(ecode7)) {
6973 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6974 }
6975 arg7 = static_cast< long >(val7);
6976 }
6977 if (obj7) {
6978 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6979 if (!SWIG_IsOK(res8)) {
6980 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6981 }
1bd55598
RD
6982 if (!argp8) {
6983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6984 }
6985 arg8 = reinterpret_cast< wxValidator * >(argp8);
6986 }
6987 if (obj8) {
5cbf236d 6988 {
1bd55598
RD
6989 arg9 = wxString_in_helper(obj8);
6990 if (arg9 == NULL) SWIG_fail;
6991 temp9 = true;
5cbf236d 6992 }
1bd55598
RD
6993 }
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 {
7001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7002 }
7003 {
7004 if (temp9)
7005 delete arg9;
7006 }
7007 return resultobj;
7008fail:
7009 {
7010 if (temp9)
7011 delete arg9;
7012 }
7013 return NULL;
7014}
7015
7016
7017SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = 0;
7019 wxGauge *arg1 = (wxGauge *) 0 ;
7020 int arg2 ;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 int val2 ;
7024 int ecode2 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 PyObject * obj1 = 0 ;
7027 char * kwnames[] = {
7028 (char *) "self",(char *) "range", NULL
7029 };
7030
7031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7035 }
7036 arg1 = reinterpret_cast< wxGauge * >(argp1);
7037 ecode2 = SWIG_AsVal_int(obj1, &val2);
7038 if (!SWIG_IsOK(ecode2)) {
7039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7040 }
7041 arg2 = static_cast< int >(val2);
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 (arg1)->SetRange(arg2);
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_Py_Void();
7049 return resultobj;
7050fail:
7051 return NULL;
5cbf236d
RD
7052}
7053
7054
1bd55598
RD
7055SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7056 PyObject *resultobj = 0;
7057 wxGauge *arg1 = (wxGauge *) 0 ;
7058 int result;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061 PyObject *swig_obj[1] ;
7062
7063 if (!args) SWIG_fail;
7064 swig_obj[0] = args;
7065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7066 if (!SWIG_IsOK(res1)) {
7067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7068 }
7069 arg1 = reinterpret_cast< wxGauge * >(argp1);
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 result = (int)((wxGauge const *)arg1)->GetRange();
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_From_int(static_cast< int >(result));
7077 return resultobj;
7078fail:
7079 return NULL;
7080}
7081
7082
7083SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj = 0;
7085 wxGauge *arg1 = (wxGauge *) 0 ;
7086 int arg2 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 int val2 ;
7090 int ecode2 = 0 ;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char * kwnames[] = {
7094 (char *) "self",(char *) "pos", NULL
7095 };
7096
7097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7099 if (!SWIG_IsOK(res1)) {
7100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7101 }
7102 arg1 = reinterpret_cast< wxGauge * >(argp1);
7103 ecode2 = SWIG_AsVal_int(obj1, &val2);
7104 if (!SWIG_IsOK(ecode2)) {
7105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7106 }
7107 arg2 = static_cast< int >(val2);
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 (arg1)->SetValue(arg2);
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 resultobj = SWIG_Py_Void();
7115 return resultobj;
7116fail:
7117 return NULL;
5cbf236d
RD
7118}
7119
7120
1bd55598
RD
7121SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7122 PyObject *resultobj = 0;
7123 wxGauge *arg1 = (wxGauge *) 0 ;
7124 int result;
7125 void *argp1 = 0 ;
7126 int res1 = 0 ;
7127 PyObject *swig_obj[1] ;
7128
7129 if (!args) SWIG_fail;
7130 swig_obj[0] = args;
7131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7132 if (!SWIG_IsOK(res1)) {
7133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7134 }
7135 arg1 = reinterpret_cast< wxGauge * >(argp1);
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 result = (int)((wxGauge const *)arg1)->GetValue();
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 resultobj = SWIG_From_int(static_cast< int >(result));
7143 return resultobj;
7144fail:
7145 return NULL;
f20a2e1f
RD
7146}
7147
7148
1bd55598
RD
7149SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7150 PyObject *resultobj = 0;
7151 wxGauge *arg1 = (wxGauge *) 0 ;
7152 bool result;
7153 void *argp1 = 0 ;
7154 int res1 = 0 ;
7155 PyObject *swig_obj[1] ;
7156
7157 if (!args) SWIG_fail;
7158 swig_obj[0] = args;
7159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7162 }
7163 arg1 = reinterpret_cast< wxGauge * >(argp1);
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 result = (bool)((wxGauge const *)arg1)->IsVertical();
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 {
7171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7172 }
7173 return resultobj;
7174fail:
7175 return NULL;
7176}
7177
7178
7179SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7180 PyObject *resultobj = 0;
7181 wxGauge *arg1 = (wxGauge *) 0 ;
7182 int arg2 ;
7183 void *argp1 = 0 ;
7184 int res1 = 0 ;
7185 int val2 ;
7186 int ecode2 = 0 ;
7187 PyObject * obj0 = 0 ;
7188 PyObject * obj1 = 0 ;
7189 char * kwnames[] = {
7190 (char *) "self",(char *) "w", NULL
7191 };
7192
7193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7195 if (!SWIG_IsOK(res1)) {
7196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7197 }
7198 arg1 = reinterpret_cast< wxGauge * >(argp1);
7199 ecode2 = SWIG_AsVal_int(obj1, &val2);
7200 if (!SWIG_IsOK(ecode2)) {
7201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7202 }
7203 arg2 = static_cast< int >(val2);
7204 {
7205 PyThreadState* __tstate = wxPyBeginAllowThreads();
7206 (arg1)->SetShadowWidth(arg2);
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_Py_Void();
7211 return resultobj;
7212fail:
7213 return NULL;
d55e5bfc
RD
7214}
7215
7216
1bd55598
RD
7217SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7218 PyObject *resultobj = 0;
7219 wxGauge *arg1 = (wxGauge *) 0 ;
7220 int result;
7221 void *argp1 = 0 ;
7222 int res1 = 0 ;
7223 PyObject *swig_obj[1] ;
7224
7225 if (!args) SWIG_fail;
7226 swig_obj[0] = args;
7227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7228 if (!SWIG_IsOK(res1)) {
7229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7230 }
7231 arg1 = reinterpret_cast< wxGauge * >(argp1);
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 resultobj = SWIG_From_int(static_cast< int >(result));
7239 return resultobj;
7240fail:
7241 return NULL;
7242}
7243
7244
7245SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj = 0;
7247 wxGauge *arg1 = (wxGauge *) 0 ;
7248 int arg2 ;
7249 void *argp1 = 0 ;
7250 int res1 = 0 ;
7251 int val2 ;
7252 int ecode2 = 0 ;
7253 PyObject * obj0 = 0 ;
7254 PyObject * obj1 = 0 ;
7255 char * kwnames[] = {
7256 (char *) "self",(char *) "w", NULL
7257 };
7258
7259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7261 if (!SWIG_IsOK(res1)) {
7262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7263 }
7264 arg1 = reinterpret_cast< wxGauge * >(argp1);
7265 ecode2 = SWIG_AsVal_int(obj1, &val2);
7266 if (!SWIG_IsOK(ecode2)) {
7267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7268 }
7269 arg2 = static_cast< int >(val2);
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 (arg1)->SetBezelFace(arg2);
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 resultobj = SWIG_Py_Void();
7277 return resultobj;
7278fail:
7279 return NULL;
d55e5bfc
RD
7280}
7281
7282
1bd55598
RD
7283SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7284 PyObject *resultobj = 0;
7285 wxGauge *arg1 = (wxGauge *) 0 ;
7286 int result;
7287 void *argp1 = 0 ;
7288 int res1 = 0 ;
7289 PyObject *swig_obj[1] ;
7290
7291 if (!args) SWIG_fail;
7292 swig_obj[0] = args;
7293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7294 if (!SWIG_IsOK(res1)) {
7295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7296 }
7297 arg1 = reinterpret_cast< wxGauge * >(argp1);
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 resultobj = SWIG_From_int(static_cast< int >(result));
7305 return resultobj;
7306fail:
7307 return NULL;
7308}
7309
7310
7311SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj = 0;
7313 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7314 SwigValueWrapper<wxVisualAttributes > result;
7315 int val1 ;
7316 int ecode1 = 0 ;
7317 PyObject * obj0 = 0 ;
7318 char * kwnames[] = {
7319 (char *) "variant", NULL
7320 };
7321
7322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7323 if (obj0) {
7324 ecode1 = SWIG_AsVal_int(obj0, &val1);
7325 if (!SWIG_IsOK(ecode1)) {
7326 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7327 }
7328 arg1 = static_cast< wxWindowVariant >(val1);
7329 }
7330 {
7331 if (!wxPyCheckForApp()) SWIG_fail;
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = wxGauge::GetClassDefaultAttributes(arg1);
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7338 return resultobj;
7339fail:
7340 return NULL;
d55e5bfc
RD
7341}
7342
7343
1bd55598
RD
7344SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7345 PyObject *obj;
7346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7347 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7348 return SWIG_Py_Void();
d55e5bfc
RD
7349}
7350
1bd55598
RD
7351SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7352 return SWIG_Python_InitShadowInstance(args);
7353}
d55e5bfc 7354
1bd55598
RD
7355SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7356 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7357 return 1;
d55e5bfc
RD
7358}
7359
7360
1bd55598
RD
7361SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7362 PyObject *pyobj = 0;
7363
7364 {
7365#if wxUSE_UNICODE
7366 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7367#else
7368 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7369#endif
7370 }
7371 return pyobj;
d55e5bfc
RD
7372}
7373
7374
1bd55598
RD
7375SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7376 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7377 return 1;
d55e5bfc
RD
7378}
7379
7380
1bd55598
RD
7381SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7382 PyObject *pyobj = 0;
7383
7384 {
7385#if wxUSE_UNICODE
7386 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7387#else
7388 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7389#endif
7390 }
7391 return pyobj;
d55e5bfc
RD
7392}
7393
7394
1bd55598
RD
7395SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7396 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7397 return 1;
d55e5bfc
RD
7398}
7399
7400
1bd55598
RD
7401SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7402 PyObject *pyobj = 0;
7403
7404 {
7405#if wxUSE_UNICODE
7406 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7407#else
7408 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7409#endif
7410 }
7411 return pyobj;
7412}
7413
7414
7415SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7416 PyObject *resultobj = 0;
7417 wxWindow *arg1 = (wxWindow *) 0 ;
7418 int arg2 = (int) -1 ;
7419 wxString const &arg3_defvalue = wxPyEmptyString ;
7420 wxString *arg3 = (wxString *) &arg3_defvalue ;
7421 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7422 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7423 wxSize const &arg5_defvalue = wxDefaultSize ;
7424 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7425 long arg6 = (long) 0 ;
7426 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7427 wxString *arg7 = (wxString *) &arg7_defvalue ;
7428 wxStaticBox *result = 0 ;
7429 void *argp1 = 0 ;
7430 int res1 = 0 ;
7431 int val2 ;
7432 int ecode2 = 0 ;
7433 bool temp3 = false ;
7434 wxPoint temp4 ;
7435 wxSize temp5 ;
7436 long val6 ;
7437 int ecode6 = 0 ;
7438 bool temp7 = false ;
7439 PyObject * obj0 = 0 ;
7440 PyObject * obj1 = 0 ;
7441 PyObject * obj2 = 0 ;
7442 PyObject * obj3 = 0 ;
7443 PyObject * obj4 = 0 ;
7444 PyObject * obj5 = 0 ;
7445 PyObject * obj6 = 0 ;
7446 char * kwnames[] = {
7447 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7448 };
7449
7450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7452 if (!SWIG_IsOK(res1)) {
7453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7454 }
7455 arg1 = reinterpret_cast< wxWindow * >(argp1);
7456 if (obj1) {
7457 ecode2 = SWIG_AsVal_int(obj1, &val2);
7458 if (!SWIG_IsOK(ecode2)) {
7459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7460 }
7461 arg2 = static_cast< int >(val2);
7462 }
7463 if (obj2) {
36ed4f51 7464 {
1bd55598
RD
7465 arg3 = wxString_in_helper(obj2);
7466 if (arg3 == NULL) SWIG_fail;
7467 temp3 = true;
36ed4f51 7468 }
1bd55598
RD
7469 }
7470 if (obj3) {
d55e5bfc 7471 {
1bd55598
RD
7472 arg4 = &temp4;
7473 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7474 }
1bd55598
RD
7475 }
7476 if (obj4) {
d55e5bfc 7477 {
1bd55598
RD
7478 arg5 = &temp5;
7479 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7480 }
1bd55598
RD
7481 }
7482 if (obj5) {
7483 ecode6 = SWIG_AsVal_long(obj5, &val6);
7484 if (!SWIG_IsOK(ecode6)) {
7485 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7486 }
7487 arg6 = static_cast< long >(val6);
7488 }
7489 if (obj6) {
36ed4f51 7490 {
1bd55598
RD
7491 arg7 = wxString_in_helper(obj6);
7492 if (arg7 == NULL) SWIG_fail;
7493 temp7 = true;
36ed4f51 7494 }
1bd55598
RD
7495 }
7496 {
7497 if (!wxPyCheckForApp()) SWIG_fail;
7498 PyThreadState* __tstate = wxPyBeginAllowThreads();
7499 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7504 {
7505 if (temp3)
7506 delete arg3;
7507 }
7508 {
7509 if (temp7)
7510 delete arg7;
7511 }
7512 return resultobj;
7513fail:
7514 {
7515 if (temp3)
7516 delete arg3;
7517 }
7518 {
7519 if (temp7)
7520 delete arg7;
7521 }
7522 return NULL;
7523}
d55e5bfc 7524
1bd55598
RD
7525
7526SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7527 PyObject *resultobj = 0;
7528 wxStaticBox *result = 0 ;
7529
7530 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7531 {
7532 if (!wxPyCheckForApp()) SWIG_fail;
7533 PyThreadState* __tstate = wxPyBeginAllowThreads();
7534 result = (wxStaticBox *)new wxStaticBox();
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
7538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7539 return resultobj;
7540fail:
7541 return NULL;
7542}
7543
7544
7545SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7546 PyObject *resultobj = 0;
7547 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7548 wxWindow *arg2 = (wxWindow *) 0 ;
7549 int arg3 = (int) -1 ;
7550 wxString const &arg4_defvalue = wxPyEmptyString ;
7551 wxString *arg4 = (wxString *) &arg4_defvalue ;
7552 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7553 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7554 wxSize const &arg6_defvalue = wxDefaultSize ;
7555 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7556 long arg7 = (long) 0 ;
7557 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7558 wxString *arg8 = (wxString *) &arg8_defvalue ;
7559 bool result;
7560 void *argp1 = 0 ;
7561 int res1 = 0 ;
7562 void *argp2 = 0 ;
7563 int res2 = 0 ;
7564 int val3 ;
7565 int ecode3 = 0 ;
7566 bool temp4 = false ;
7567 wxPoint temp5 ;
7568 wxSize temp6 ;
7569 long val7 ;
7570 int ecode7 = 0 ;
7571 bool temp8 = false ;
7572 PyObject * obj0 = 0 ;
7573 PyObject * obj1 = 0 ;
7574 PyObject * obj2 = 0 ;
7575 PyObject * obj3 = 0 ;
7576 PyObject * obj4 = 0 ;
7577 PyObject * obj5 = 0 ;
7578 PyObject * obj6 = 0 ;
7579 PyObject * obj7 = 0 ;
7580 char * kwnames[] = {
7581 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7582 };
7583
7584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7586 if (!SWIG_IsOK(res1)) {
7587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7588 }
7589 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7591 if (!SWIG_IsOK(res2)) {
7592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7593 }
7594 arg2 = reinterpret_cast< wxWindow * >(argp2);
7595 if (obj2) {
7596 ecode3 = SWIG_AsVal_int(obj2, &val3);
7597 if (!SWIG_IsOK(ecode3)) {
7598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7599 }
7600 arg3 = static_cast< int >(val3);
7601 }
7602 if (obj3) {
36ed4f51 7603 {
1bd55598
RD
7604 arg4 = wxString_in_helper(obj3);
7605 if (arg4 == NULL) SWIG_fail;
7606 temp4 = true;
36ed4f51 7607 }
1bd55598
RD
7608 }
7609 if (obj4) {
d55e5bfc 7610 {
1bd55598
RD
7611 arg5 = &temp5;
7612 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7613 }
1bd55598
RD
7614 }
7615 if (obj5) {
d55e5bfc 7616 {
1bd55598
RD
7617 arg6 = &temp6;
7618 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7619 }
1bd55598
RD
7620 }
7621 if (obj6) {
7622 ecode7 = SWIG_AsVal_long(obj6, &val7);
7623 if (!SWIG_IsOK(ecode7)) {
7624 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7625 }
7626 arg7 = static_cast< long >(val7);
7627 }
7628 if (obj7) {
36ed4f51 7629 {
1bd55598
RD
7630 arg8 = wxString_in_helper(obj7);
7631 if (arg8 == NULL) SWIG_fail;
7632 temp8 = true;
36ed4f51 7633 }
1bd55598
RD
7634 }
7635 {
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 {
7642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7643 }
7644 {
7645 if (temp4)
7646 delete arg4;
7647 }
7648 {
7649 if (temp8)
7650 delete arg8;
7651 }
7652 return resultobj;
7653fail:
7654 {
7655 if (temp4)
7656 delete arg4;
7657 }
7658 {
7659 if (temp8)
7660 delete arg8;
7661 }
7662 return NULL;
d55e5bfc
RD
7663}
7664
7665
1bd55598
RD
7666SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7667 PyObject *resultobj = 0;
7668 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7669 SwigValueWrapper<wxVisualAttributes > result;
7670 int val1 ;
7671 int ecode1 = 0 ;
7672 PyObject * obj0 = 0 ;
7673 char * kwnames[] = {
7674 (char *) "variant", NULL
7675 };
7676
7677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7678 if (obj0) {
7679 ecode1 = SWIG_AsVal_int(obj0, &val1);
7680 if (!SWIG_IsOK(ecode1)) {
7681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7682 }
7683 arg1 = static_cast< wxWindowVariant >(val1);
7684 }
7685 {
7686 if (!wxPyCheckForApp()) SWIG_fail;
7687 PyThreadState* __tstate = wxPyBeginAllowThreads();
7688 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7689 wxPyEndAllowThreads(__tstate);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7693 return resultobj;
7694fail:
7695 return NULL;
7696}
7697
7698
7699SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7700 PyObject *obj;
7701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7702 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7703 return SWIG_Py_Void();
7704}
7705
7706SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7707 return SWIG_Python_InitShadowInstance(args);
7708}
7709
7710SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj = 0;
7712 wxWindow *arg1 = (wxWindow *) 0 ;
7713 int arg2 = (int) -1 ;
7714 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7715 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7716 wxSize const &arg4_defvalue = wxDefaultSize ;
7717 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7718 long arg5 = (long) wxLI_HORIZONTAL ;
7719 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7720 wxString *arg6 = (wxString *) &arg6_defvalue ;
7721 wxStaticLine *result = 0 ;
7722 void *argp1 = 0 ;
7723 int res1 = 0 ;
7724 int val2 ;
7725 int ecode2 = 0 ;
7726 wxPoint temp3 ;
7727 wxSize temp4 ;
7728 long val5 ;
7729 int ecode5 = 0 ;
7730 bool temp6 = false ;
7731 PyObject * obj0 = 0 ;
7732 PyObject * obj1 = 0 ;
7733 PyObject * obj2 = 0 ;
7734 PyObject * obj3 = 0 ;
7735 PyObject * obj4 = 0 ;
7736 PyObject * obj5 = 0 ;
7737 char * kwnames[] = {
7738 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7739 };
7740
7741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7743 if (!SWIG_IsOK(res1)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7745 }
7746 arg1 = reinterpret_cast< wxWindow * >(argp1);
7747 if (obj1) {
7748 ecode2 = SWIG_AsVal_int(obj1, &val2);
7749 if (!SWIG_IsOK(ecode2)) {
7750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7751 }
7752 arg2 = static_cast< int >(val2);
7753 }
7754 if (obj2) {
7755 {
7756 arg3 = &temp3;
7757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7758 }
1bd55598
RD
7759 }
7760 if (obj3) {
f20a2e1f 7761 {
1bd55598
RD
7762 arg4 = &temp4;
7763 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7764 }
1bd55598
RD
7765 }
7766 if (obj4) {
7767 ecode5 = SWIG_AsVal_long(obj4, &val5);
7768 if (!SWIG_IsOK(ecode5)) {
7769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7770 }
7771 arg5 = static_cast< long >(val5);
7772 }
7773 if (obj5) {
f20a2e1f 7774 {
1bd55598
RD
7775 arg6 = wxString_in_helper(obj5);
7776 if (arg6 == NULL) SWIG_fail;
7777 temp6 = true;
f20a2e1f 7778 }
1bd55598
RD
7779 }
7780 {
7781 if (!wxPyCheckForApp()) SWIG_fail;
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7788 {
7789 if (temp6)
7790 delete arg6;
7791 }
7792 return resultobj;
7793fail:
7794 {
7795 if (temp6)
7796 delete arg6;
7797 }
7798 return NULL;
d55e5bfc
RD
7799}
7800
7801
1bd55598
RD
7802SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7803 PyObject *resultobj = 0;
7804 wxStaticLine *result = 0 ;
7805
7806 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine();
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7815 return resultobj;
7816fail:
7817 return NULL;
7818}
7819
7820
7821SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7822 PyObject *resultobj = 0;
7823 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7824 wxWindow *arg2 = (wxWindow *) 0 ;
7825 int arg3 = (int) -1 ;
7826 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7827 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7828 wxSize const &arg5_defvalue = wxDefaultSize ;
7829 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7830 long arg6 = (long) wxLI_HORIZONTAL ;
7831 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7832 wxString *arg7 = (wxString *) &arg7_defvalue ;
7833 bool result;
7834 void *argp1 = 0 ;
7835 int res1 = 0 ;
7836 void *argp2 = 0 ;
7837 int res2 = 0 ;
7838 int val3 ;
7839 int ecode3 = 0 ;
7840 wxPoint temp4 ;
7841 wxSize temp5 ;
7842 long val6 ;
7843 int ecode6 = 0 ;
7844 bool temp7 = false ;
7845 PyObject * obj0 = 0 ;
7846 PyObject * obj1 = 0 ;
7847 PyObject * obj2 = 0 ;
7848 PyObject * obj3 = 0 ;
7849 PyObject * obj4 = 0 ;
7850 PyObject * obj5 = 0 ;
7851 PyObject * obj6 = 0 ;
7852 char * kwnames[] = {
7853 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7854 };
7855
7856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7858 if (!SWIG_IsOK(res1)) {
7859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7860 }
7861 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7862 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7863 if (!SWIG_IsOK(res2)) {
7864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7865 }
7866 arg2 = reinterpret_cast< wxWindow * >(argp2);
7867 if (obj2) {
7868 ecode3 = SWIG_AsVal_int(obj2, &val3);
7869 if (!SWIG_IsOK(ecode3)) {
7870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7871 }
7872 arg3 = static_cast< int >(val3);
7873 }
7874 if (obj3) {
d55e5bfc 7875 {
1bd55598
RD
7876 arg4 = &temp4;
7877 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7878 }
1bd55598
RD
7879 }
7880 if (obj4) {
d55e5bfc 7881 {
1bd55598
RD
7882 arg5 = &temp5;
7883 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7884 }
7885 }
7886 if (obj5) {
7887 ecode6 = SWIG_AsVal_long(obj5, &val6);
7888 if (!SWIG_IsOK(ecode6)) {
7889 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7890 }
7891 arg6 = static_cast< long >(val6);
7892 }
7893 if (obj6) {
7894 {
7895 arg7 = wxString_in_helper(obj6);
7896 if (arg7 == NULL) SWIG_fail;
7897 temp7 = true;
d55e5bfc 7898 }
1bd55598
RD
7899 }
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 {
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 }
7909 {
7910 if (temp7)
7911 delete arg7;
7912 }
7913 return resultobj;
7914fail:
7915 {
7916 if (temp7)
7917 delete arg7;
7918 }
7919 return NULL;
d55e5bfc
RD
7920}
7921
7922
1bd55598
RD
7923SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7924 PyObject *resultobj = 0;
7925 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7926 bool result;
7927 void *argp1 = 0 ;
7928 int res1 = 0 ;
7929 PyObject *swig_obj[1] ;
7930
7931 if (!args) SWIG_fail;
7932 swig_obj[0] = args;
7933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7934 if (!SWIG_IsOK(res1)) {
7935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7936 }
7937 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7941 wxPyEndAllowThreads(__tstate);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 }
7944 {
7945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7946 }
7947 return resultobj;
7948fail:
7949 return NULL;
d55e5bfc
RD
7950}
7951
7952
1bd55598
RD
7953SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7954 PyObject *resultobj = 0;
7955 int result;
7956
7957 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (int)wxStaticLine::GetDefaultSize();
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 resultobj = SWIG_From_int(static_cast< int >(result));
7965 return resultobj;
7966fail:
7967 return NULL;
7968}
7969
7970
7971SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7972 PyObject *resultobj = 0;
7973 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7974 SwigValueWrapper<wxVisualAttributes > result;
7975 int val1 ;
7976 int ecode1 = 0 ;
7977 PyObject * obj0 = 0 ;
7978 char * kwnames[] = {
7979 (char *) "variant", NULL
7980 };
7981
7982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7983 if (obj0) {
7984 ecode1 = SWIG_AsVal_int(obj0, &val1);
7985 if (!SWIG_IsOK(ecode1)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7987 }
7988 arg1 = static_cast< wxWindowVariant >(val1);
7989 }
7990 {
7991 if (!wxPyCheckForApp()) SWIG_fail;
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7994 wxPyEndAllowThreads(__tstate);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7998 return resultobj;
7999fail:
8000 return NULL;
8001}
8002
8003
8004SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8005 PyObject *obj;
8006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8007 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8008 return SWIG_Py_Void();
8009}
8010
8011SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8012 return SWIG_Python_InitShadowInstance(args);
8013}
8014
8015SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj = 0;
8017 wxWindow *arg1 = (wxWindow *) 0 ;
8018 int arg2 = (int) -1 ;
8019 wxString const &arg3_defvalue = wxPyEmptyString ;
8020 wxString *arg3 = (wxString *) &arg3_defvalue ;
8021 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8022 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8023 wxSize const &arg5_defvalue = wxDefaultSize ;
8024 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8025 long arg6 = (long) 0 ;
8026 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8027 wxString *arg7 = (wxString *) &arg7_defvalue ;
8028 wxStaticText *result = 0 ;
8029 void *argp1 = 0 ;
8030 int res1 = 0 ;
8031 int val2 ;
8032 int ecode2 = 0 ;
8033 bool temp3 = false ;
8034 wxPoint temp4 ;
8035 wxSize temp5 ;
8036 long val6 ;
8037 int ecode6 = 0 ;
8038 bool temp7 = false ;
8039 PyObject * obj0 = 0 ;
8040 PyObject * obj1 = 0 ;
8041 PyObject * obj2 = 0 ;
8042 PyObject * obj3 = 0 ;
8043 PyObject * obj4 = 0 ;
8044 PyObject * obj5 = 0 ;
8045 PyObject * obj6 = 0 ;
8046 char * kwnames[] = {
8047 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8048 };
8049
8050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8052 if (!SWIG_IsOK(res1)) {
8053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8054 }
8055 arg1 = reinterpret_cast< wxWindow * >(argp1);
8056 if (obj1) {
8057 ecode2 = SWIG_AsVal_int(obj1, &val2);
8058 if (!SWIG_IsOK(ecode2)) {
8059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8060 }
8061 arg2 = static_cast< int >(val2);
8062 }
8063 if (obj2) {
d55e5bfc 8064 {
1bd55598
RD
8065 arg3 = wxString_in_helper(obj2);
8066 if (arg3 == NULL) SWIG_fail;
8067 temp3 = true;
d55e5bfc 8068 }
1bd55598
RD
8069 }
8070 if (obj3) {
d55e5bfc 8071 {
1bd55598
RD
8072 arg4 = &temp4;
8073 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8074 }
1bd55598
RD
8075 }
8076 if (obj4) {
d55e5bfc 8077 {
1bd55598
RD
8078 arg5 = &temp5;
8079 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8080 }
1bd55598
RD
8081 }
8082 if (obj5) {
8083 ecode6 = SWIG_AsVal_long(obj5, &val6);
8084 if (!SWIG_IsOK(ecode6)) {
8085 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8086 }
8087 arg6 = static_cast< long >(val6);
8088 }
8089 if (obj6) {
d55e5bfc 8090 {
1bd55598
RD
8091 arg7 = wxString_in_helper(obj6);
8092 if (arg7 == NULL) SWIG_fail;
8093 temp7 = true;
d55e5bfc 8094 }
1bd55598
RD
8095 }
8096 {
8097 if (!wxPyCheckForApp()) SWIG_fail;
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8104 {
8105 if (temp3)
8106 delete arg3;
8107 }
8108 {
8109 if (temp7)
8110 delete arg7;
8111 }
8112 return resultobj;
8113fail:
8114 {
8115 if (temp3)
8116 delete arg3;
8117 }
8118 {
8119 if (temp7)
8120 delete arg7;
8121 }
8122 return NULL;
d55e5bfc
RD
8123}
8124
8125
1bd55598
RD
8126SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8127 PyObject *resultobj = 0;
8128 wxStaticText *result = 0 ;
8129
8130 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8131 {
8132 if (!wxPyCheckForApp()) SWIG_fail;
8133 PyThreadState* __tstate = wxPyBeginAllowThreads();
8134 result = (wxStaticText *)new wxStaticText();
8135 wxPyEndAllowThreads(__tstate);
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8139 return resultobj;
8140fail:
8141 return NULL;
8142}
8143
8144
8145SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8146 PyObject *resultobj = 0;
8147 wxStaticText *arg1 = (wxStaticText *) 0 ;
8148 wxWindow *arg2 = (wxWindow *) 0 ;
8149 int arg3 = (int) -1 ;
8150 wxString const &arg4_defvalue = wxPyEmptyString ;
8151 wxString *arg4 = (wxString *) &arg4_defvalue ;
8152 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8153 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8154 wxSize const &arg6_defvalue = wxDefaultSize ;
8155 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8156 long arg7 = (long) 0 ;
8157 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8158 wxString *arg8 = (wxString *) &arg8_defvalue ;
8159 bool result;
8160 void *argp1 = 0 ;
8161 int res1 = 0 ;
8162 void *argp2 = 0 ;
8163 int res2 = 0 ;
8164 int val3 ;
8165 int ecode3 = 0 ;
8166 bool temp4 = false ;
8167 wxPoint temp5 ;
8168 wxSize temp6 ;
8169 long val7 ;
8170 int ecode7 = 0 ;
8171 bool temp8 = false ;
8172 PyObject * obj0 = 0 ;
8173 PyObject * obj1 = 0 ;
8174 PyObject * obj2 = 0 ;
8175 PyObject * obj3 = 0 ;
8176 PyObject * obj4 = 0 ;
8177 PyObject * obj5 = 0 ;
8178 PyObject * obj6 = 0 ;
8179 PyObject * obj7 = 0 ;
8180 char * kwnames[] = {
8181 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8182 };
8183
8184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8186 if (!SWIG_IsOK(res1)) {
8187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8188 }
8189 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8190 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8191 if (!SWIG_IsOK(res2)) {
8192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8193 }
8194 arg2 = reinterpret_cast< wxWindow * >(argp2);
8195 if (obj2) {
8196 ecode3 = SWIG_AsVal_int(obj2, &val3);
8197 if (!SWIG_IsOK(ecode3)) {
8198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8199 }
8200 arg3 = static_cast< int >(val3);
8201 }
8202 if (obj3) {
d55e5bfc 8203 {
1bd55598
RD
8204 arg4 = wxString_in_helper(obj3);
8205 if (arg4 == NULL) SWIG_fail;
8206 temp4 = true;
d55e5bfc 8207 }
1bd55598
RD
8208 }
8209 if (obj4) {
d55e5bfc 8210 {
1bd55598
RD
8211 arg5 = &temp5;
8212 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8213 }
1bd55598
RD
8214 }
8215 if (obj5) {
d55e5bfc 8216 {
1bd55598
RD
8217 arg6 = &temp6;
8218 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8219 }
1bd55598
RD
8220 }
8221 if (obj6) {
8222 ecode7 = SWIG_AsVal_long(obj6, &val7);
8223 if (!SWIG_IsOK(ecode7)) {
8224 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8225 }
8226 arg7 = static_cast< long >(val7);
8227 }
8228 if (obj7) {
d55e5bfc 8229 {
1bd55598
RD
8230 arg8 = wxString_in_helper(obj7);
8231 if (arg8 == NULL) SWIG_fail;
8232 temp8 = true;
d55e5bfc 8233 }
1bd55598
RD
8234 }
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8243 }
8244 {
8245 if (temp4)
8246 delete arg4;
8247 }
8248 {
8249 if (temp8)
8250 delete arg8;
8251 }
8252 return resultobj;
8253fail:
8254 {
8255 if (temp4)
8256 delete arg4;
8257 }
8258 {
8259 if (temp8)
8260 delete arg8;
8261 }
8262 return NULL;
8263}
8264
8265
8266SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8267 PyObject *resultobj = 0;
8268 wxStaticText *arg1 = (wxStaticText *) 0 ;
8269 int arg2 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 int val2 ;
8273 int ecode2 = 0 ;
8274 PyObject * obj0 = 0 ;
8275 PyObject * obj1 = 0 ;
8276 char * kwnames[] = {
8277 (char *) "self",(char *) "width", NULL
8278 };
8279
8280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8282 if (!SWIG_IsOK(res1)) {
8283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8284 }
8285 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8286 ecode2 = SWIG_AsVal_int(obj1, &val2);
8287 if (!SWIG_IsOK(ecode2)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8289 }
8290 arg2 = static_cast< int >(val2);
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 (arg1)->Wrap(arg2);
8294 wxPyEndAllowThreads(__tstate);
8295 if (PyErr_Occurred()) SWIG_fail;
8296 }
8297 resultobj = SWIG_Py_Void();
8298 return resultobj;
8299fail:
8300 return NULL;
8301}
8302
8303
8304SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj = 0;
8306 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8307 SwigValueWrapper<wxVisualAttributes > result;
8308 int val1 ;
8309 int ecode1 = 0 ;
8310 PyObject * obj0 = 0 ;
8311 char * kwnames[] = {
8312 (char *) "variant", NULL
8313 };
8314
8315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8316 if (obj0) {
8317 ecode1 = SWIG_AsVal_int(obj0, &val1);
8318 if (!SWIG_IsOK(ecode1)) {
8319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8320 }
8321 arg1 = static_cast< wxWindowVariant >(val1);
8322 }
8323 {
8324 if (!wxPyCheckForApp()) SWIG_fail;
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 result = wxStaticText::GetClassDefaultAttributes(arg1);
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8331 return resultobj;
8332fail:
8333 return NULL;
8334}
8335
8336
8337SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8338 PyObject *obj;
8339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8340 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8341 return SWIG_Py_Void();
8342}
8343
8344SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 return SWIG_Python_InitShadowInstance(args);
8346}
8347
8348SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj = 0;
8350 wxWindow *arg1 = (wxWindow *) 0 ;
8351 int arg2 = (int) -1 ;
8352 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8353 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8354 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8355 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8356 wxSize const &arg5_defvalue = wxDefaultSize ;
8357 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8358 long arg6 = (long) 0 ;
8359 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8360 wxString *arg7 = (wxString *) &arg7_defvalue ;
8361 wxStaticBitmap *result = 0 ;
8362 void *argp1 = 0 ;
8363 int res1 = 0 ;
8364 int val2 ;
8365 int ecode2 = 0 ;
8366 void *argp3 = 0 ;
8367 int res3 = 0 ;
8368 wxPoint temp4 ;
8369 wxSize temp5 ;
8370 long val6 ;
8371 int ecode6 = 0 ;
8372 bool temp7 = false ;
8373 PyObject * obj0 = 0 ;
8374 PyObject * obj1 = 0 ;
8375 PyObject * obj2 = 0 ;
8376 PyObject * obj3 = 0 ;
8377 PyObject * obj4 = 0 ;
8378 PyObject * obj5 = 0 ;
8379 PyObject * obj6 = 0 ;
8380 char * kwnames[] = {
8381 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8382 };
8383
8384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8386 if (!SWIG_IsOK(res1)) {
8387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8388 }
8389 arg1 = reinterpret_cast< wxWindow * >(argp1);
8390 if (obj1) {
8391 ecode2 = SWIG_AsVal_int(obj1, &val2);
8392 if (!SWIG_IsOK(ecode2)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8394 }
8395 arg2 = static_cast< int >(val2);
8396 }
8397 if (obj2) {
8398 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8399 if (!SWIG_IsOK(res3)) {
8400 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8401 }
1bd55598
RD
8402 if (!argp3) {
8403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8404 }
1bd55598
RD
8405 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8406 }
8407 if (obj3) {
d55e5bfc 8408 {
1bd55598
RD
8409 arg4 = &temp4;
8410 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8411 }
1bd55598
RD
8412 }
8413 if (obj4) {
f20a2e1f 8414 {
1bd55598
RD
8415 arg5 = &temp5;
8416 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8417 }
1bd55598
RD
8418 }
8419 if (obj5) {
8420 ecode6 = SWIG_AsVal_long(obj5, &val6);
8421 if (!SWIG_IsOK(ecode6)) {
8422 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8423 }
8424 arg6 = static_cast< long >(val6);
8425 }
8426 if (obj6) {
f20a2e1f 8427 {
1bd55598
RD
8428 arg7 = wxString_in_helper(obj6);
8429 if (arg7 == NULL) SWIG_fail;
8430 temp7 = true;
f20a2e1f 8431 }
1bd55598
RD
8432 }
8433 {
8434 if (!wxPyCheckForApp()) SWIG_fail;
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8441 {
8442 if (temp7)
8443 delete arg7;
8444 }
8445 return resultobj;
8446fail:
8447 {
8448 if (temp7)
8449 delete arg7;
8450 }
8451 return NULL;
f20a2e1f
RD
8452}
8453
8454
1bd55598
RD
8455SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8456 PyObject *resultobj = 0;
8457 wxStaticBitmap *result = 0 ;
8458
8459 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap();
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8468 return resultobj;
8469fail:
8470 return NULL;
8471}
8472
8473
8474SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8475 PyObject *resultobj = 0;
8476 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8477 wxWindow *arg2 = (wxWindow *) 0 ;
8478 int arg3 = (int) -1 ;
8479 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8480 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8481 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8482 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8483 wxSize const &arg6_defvalue = wxDefaultSize ;
8484 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8485 long arg7 = (long) 0 ;
8486 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8487 wxString *arg8 = (wxString *) &arg8_defvalue ;
8488 bool result;
8489 void *argp1 = 0 ;
8490 int res1 = 0 ;
8491 void *argp2 = 0 ;
8492 int res2 = 0 ;
8493 int val3 ;
8494 int ecode3 = 0 ;
8495 void *argp4 = 0 ;
8496 int res4 = 0 ;
8497 wxPoint temp5 ;
8498 wxSize temp6 ;
8499 long val7 ;
8500 int ecode7 = 0 ;
8501 bool temp8 = false ;
8502 PyObject * obj0 = 0 ;
8503 PyObject * obj1 = 0 ;
8504 PyObject * obj2 = 0 ;
8505 PyObject * obj3 = 0 ;
8506 PyObject * obj4 = 0 ;
8507 PyObject * obj5 = 0 ;
8508 PyObject * obj6 = 0 ;
8509 PyObject * obj7 = 0 ;
8510 char * kwnames[] = {
8511 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8512 };
8513
8514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8516 if (!SWIG_IsOK(res1)) {
8517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8518 }
8519 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8520 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8521 if (!SWIG_IsOK(res2)) {
8522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8523 }
8524 arg2 = reinterpret_cast< wxWindow * >(argp2);
8525 if (obj2) {
8526 ecode3 = SWIG_AsVal_int(obj2, &val3);
8527 if (!SWIG_IsOK(ecode3)) {
8528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8529 }
8530 arg3 = static_cast< int >(val3);
8531 }
8532 if (obj3) {
8533 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8534 if (!SWIG_IsOK(res4)) {
8535 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8536 }
1bd55598
RD
8537 if (!argp4) {
8538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8539 }
1bd55598
RD
8540 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8541 }
8542 if (obj4) {
d55e5bfc 8543 {
1bd55598
RD
8544 arg5 = &temp5;
8545 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8546 }
1bd55598
RD
8547 }
8548 if (obj5) {
d55e5bfc 8549 {
1bd55598
RD
8550 arg6 = &temp6;
8551 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8552 }
1bd55598
RD
8553 }
8554 if (obj6) {
8555 ecode7 = SWIG_AsVal_long(obj6, &val7);
8556 if (!SWIG_IsOK(ecode7)) {
8557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8558 }
8559 arg7 = static_cast< long >(val7);
8560 }
8561 if (obj7) {
d55e5bfc 8562 {
1bd55598
RD
8563 arg8 = wxString_in_helper(obj7);
8564 if (arg8 == NULL) SWIG_fail;
8565 temp8 = true;
d55e5bfc 8566 }
1bd55598
RD
8567 }
8568 {
8569 PyThreadState* __tstate = wxPyBeginAllowThreads();
8570 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8571 wxPyEndAllowThreads(__tstate);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 {
8575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8576 }
8577 {
8578 if (temp8)
8579 delete arg8;
8580 }
8581 return resultobj;
8582fail:
8583 {
8584 if (temp8)
8585 delete arg8;
8586 }
8587 return NULL;
d55e5bfc
RD
8588}
8589
8590
1bd55598
RD
8591SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8592 PyObject *resultobj = 0;
8593 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8594 wxBitmap result;
8595 void *argp1 = 0 ;
8596 int res1 = 0 ;
8597 PyObject *swig_obj[1] ;
8598
8599 if (!args) SWIG_fail;
8600 swig_obj[0] = args;
8601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8602 if (!SWIG_IsOK(res1)) {
8603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8604 }
8605 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8606 {
8607 PyThreadState* __tstate = wxPyBeginAllowThreads();
8608 result = (arg1)->GetBitmap();
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8613 return resultobj;
8614fail:
8615 return NULL;
8616}
8617
8618
8619SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj = 0;
8621 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8622 wxBitmap *arg2 = 0 ;
8623 void *argp1 = 0 ;
8624 int res1 = 0 ;
8625 void *argp2 = 0 ;
8626 int res2 = 0 ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 char * kwnames[] = {
8630 (char *) "self",(char *) "bitmap", NULL
8631 };
8632
8633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8637 }
8638 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8640 if (!SWIG_IsOK(res2)) {
8641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8642 }
8643 if (!argp2) {
8644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8645 }
8646 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8647 {
8648 PyThreadState* __tstate = wxPyBeginAllowThreads();
8649 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 resultobj = SWIG_Py_Void();
8654 return resultobj;
8655fail:
8656 return NULL;
8657}
8658
8659
8660SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8661 PyObject *resultobj = 0;
8662 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8663 wxIcon *arg2 = 0 ;
8664 void *argp1 = 0 ;
8665 int res1 = 0 ;
8666 void *argp2 = 0 ;
8667 int res2 = 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 char * kwnames[] = {
8671 (char *) "self",(char *) "icon", NULL
8672 };
8673
8674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8678 }
8679 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8681 if (!SWIG_IsOK(res2)) {
8682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8683 }
8684 if (!argp2) {
8685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8686 }
8687 arg2 = reinterpret_cast< wxIcon * >(argp2);
8688 {
8689 PyThreadState* __tstate = wxPyBeginAllowThreads();
8690 (arg1)->SetIcon((wxIcon const &)*arg2);
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 resultobj = SWIG_Py_Void();
8695 return resultobj;
8696fail:
8697 return NULL;
8698}
8699
8700
8701SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj = 0;
8703 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8704 SwigValueWrapper<wxVisualAttributes > result;
8705 int val1 ;
8706 int ecode1 = 0 ;
8707 PyObject * obj0 = 0 ;
8708 char * kwnames[] = {
8709 (char *) "variant", NULL
8710 };
8711
8712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8713 if (obj0) {
8714 ecode1 = SWIG_AsVal_int(obj0, &val1);
8715 if (!SWIG_IsOK(ecode1)) {
8716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8717 }
8718 arg1 = static_cast< wxWindowVariant >(val1);
8719 }
8720 {
8721 if (!wxPyCheckForApp()) SWIG_fail;
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8728 return resultobj;
8729fail:
8730 return NULL;
d55e5bfc
RD
8731}
8732
8733
1bd55598
RD
8734SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8735 PyObject *obj;
8736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8737 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8738 return SWIG_Py_Void();
d55e5bfc
RD
8739}
8740
1bd55598
RD
8741SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8742 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8743}
8744
1bd55598
RD
8745SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8746 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8747 return 1;
f20a2e1f
RD
8748}
8749
8750
1bd55598
RD
8751SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8752 PyObject *pyobj = 0;
8753
8754 {
8755#if wxUSE_UNICODE
8756 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8757#else
8758 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8759#endif
8760 }
8761 return pyobj;
8762}
8763
8764
8765SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj = 0;
8767 wxWindow *arg1 = (wxWindow *) 0 ;
8768 int arg2 = (int) -1 ;
8769 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8770 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8771 wxSize const &arg4_defvalue = wxDefaultSize ;
8772 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8773 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8774 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8775 long arg6 = (long) 0 ;
8776 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8777 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8778 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8779 wxString *arg8 = (wxString *) &arg8_defvalue ;
8780 wxListBox *result = 0 ;
8781 void *argp1 = 0 ;
8782 int res1 = 0 ;
8783 int val2 ;
8784 int ecode2 = 0 ;
8785 wxPoint temp3 ;
8786 wxSize temp4 ;
8787 bool temp5 = false ;
8788 long val6 ;
8789 int ecode6 = 0 ;
8790 void *argp7 = 0 ;
8791 int res7 = 0 ;
8792 bool temp8 = false ;
8793 PyObject * obj0 = 0 ;
8794 PyObject * obj1 = 0 ;
8795 PyObject * obj2 = 0 ;
8796 PyObject * obj3 = 0 ;
8797 PyObject * obj4 = 0 ;
8798 PyObject * obj5 = 0 ;
8799 PyObject * obj6 = 0 ;
8800 PyObject * obj7 = 0 ;
8801 char * kwnames[] = {
8802 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8803 };
8804
8805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8807 if (!SWIG_IsOK(res1)) {
8808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8809 }
8810 arg1 = reinterpret_cast< wxWindow * >(argp1);
8811 if (obj1) {
8812 ecode2 = SWIG_AsVal_int(obj1, &val2);
8813 if (!SWIG_IsOK(ecode2)) {
8814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8815 }
8816 arg2 = static_cast< int >(val2);
8817 }
8818 if (obj2) {
d55e5bfc 8819 {
1bd55598
RD
8820 arg3 = &temp3;
8821 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8822 }
1bd55598
RD
8823 }
8824 if (obj3) {
d55e5bfc 8825 {
1bd55598
RD
8826 arg4 = &temp4;
8827 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8828 }
1bd55598
RD
8829 }
8830 if (obj4) {
d55e5bfc 8831 {
1bd55598
RD
8832 if (! PySequence_Check(obj4)) {
8833 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8834 SWIG_fail;
8835 }
8836 arg5 = new wxArrayString;
8837 temp5 = true;
8838 int i, len=PySequence_Length(obj4);
8839 for (i=0; i<len; i++) {
8840 PyObject* item = PySequence_GetItem(obj4, i);
8841 wxString* s = wxString_in_helper(item);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 arg5->Add(*s);
8844 delete s;
8845 Py_DECREF(item);
8846 }
d55e5bfc 8847 }
1bd55598
RD
8848 }
8849 if (obj5) {
8850 ecode6 = SWIG_AsVal_long(obj5, &val6);
8851 if (!SWIG_IsOK(ecode6)) {
8852 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8853 }
8854 arg6 = static_cast< long >(val6);
8855 }
8856 if (obj6) {
8857 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8858 if (!SWIG_IsOK(res7)) {
8859 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8860 }
1bd55598
RD
8861 if (!argp7) {
8862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8863 }
1bd55598
RD
8864 arg7 = reinterpret_cast< wxValidator * >(argp7);
8865 }
8866 if (obj7) {
d55e5bfc 8867 {
1bd55598
RD
8868 arg8 = wxString_in_helper(obj7);
8869 if (arg8 == NULL) SWIG_fail;
8870 temp8 = true;
d55e5bfc 8871 }
1bd55598
RD
8872 }
8873 {
8874 if (!wxPyCheckForApp()) SWIG_fail;
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8881 {
8882 if (temp5) delete arg5;
8883 }
8884 {
8885 if (temp8)
8886 delete arg8;
8887 }
8888 return resultobj;
8889fail:
8890 {
8891 if (temp5) delete arg5;
8892 }
8893 {
8894 if (temp8)
8895 delete arg8;
8896 }
8897 return NULL;
d55e5bfc
RD
8898}
8899
8900
1bd55598
RD
8901SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8902 PyObject *resultobj = 0;
8903 wxListBox *result = 0 ;
8904
8905 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8906 {
8907 if (!wxPyCheckForApp()) SWIG_fail;
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (wxListBox *)new wxListBox();
8910 wxPyEndAllowThreads(__tstate);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 }
8913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8914 return resultobj;
8915fail:
8916 return NULL;
8917}
8918
8919
8920SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj = 0;
8922 wxListBox *arg1 = (wxListBox *) 0 ;
8923 wxWindow *arg2 = (wxWindow *) 0 ;
8924 int arg3 = (int) -1 ;
8925 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8926 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8927 wxSize const &arg5_defvalue = wxDefaultSize ;
8928 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8929 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8930 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8931 long arg7 = (long) 0 ;
8932 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8933 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8934 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8935 wxString *arg9 = (wxString *) &arg9_defvalue ;
8936 bool result;
8937 void *argp1 = 0 ;
8938 int res1 = 0 ;
8939 void *argp2 = 0 ;
8940 int res2 = 0 ;
8941 int val3 ;
8942 int ecode3 = 0 ;
8943 wxPoint temp4 ;
8944 wxSize temp5 ;
8945 bool temp6 = false ;
8946 long val7 ;
8947 int ecode7 = 0 ;
8948 void *argp8 = 0 ;
8949 int res8 = 0 ;
8950 bool temp9 = false ;
8951 PyObject * obj0 = 0 ;
8952 PyObject * obj1 = 0 ;
8953 PyObject * obj2 = 0 ;
8954 PyObject * obj3 = 0 ;
8955 PyObject * obj4 = 0 ;
8956 PyObject * obj5 = 0 ;
8957 PyObject * obj6 = 0 ;
8958 PyObject * obj7 = 0 ;
8959 PyObject * obj8 = 0 ;
8960 char * kwnames[] = {
8961 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8962 };
8963
8964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8966 if (!SWIG_IsOK(res1)) {
8967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8968 }
8969 arg1 = reinterpret_cast< wxListBox * >(argp1);
8970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8971 if (!SWIG_IsOK(res2)) {
8972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8973 }
8974 arg2 = reinterpret_cast< wxWindow * >(argp2);
8975 if (obj2) {
8976 ecode3 = SWIG_AsVal_int(obj2, &val3);
8977 if (!SWIG_IsOK(ecode3)) {
8978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8979 }
8980 arg3 = static_cast< int >(val3);
8981 }
8982 if (obj3) {
d55e5bfc 8983 {
1bd55598
RD
8984 arg4 = &temp4;
8985 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8986 }
1bd55598
RD
8987 }
8988 if (obj4) {
d55e5bfc 8989 {
1bd55598
RD
8990 arg5 = &temp5;
8991 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8992 }
1bd55598
RD
8993 }
8994 if (obj5) {
943e8dfd 8995 {
1bd55598
RD
8996 if (! PySequence_Check(obj5)) {
8997 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8998 SWIG_fail;
8999 }
9000 arg6 = new wxArrayString;
9001 temp6 = true;
9002 int i, len=PySequence_Length(obj5);
9003 for (i=0; i<len; i++) {
9004 PyObject* item = PySequence_GetItem(obj5, i);
9005 wxString* s = wxString_in_helper(item);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 arg6->Add(*s);
9008 delete s;
9009 Py_DECREF(item);
9010 }
943e8dfd 9011 }
1bd55598
RD
9012 }
9013 if (obj6) {
9014 ecode7 = SWIG_AsVal_long(obj6, &val7);
9015 if (!SWIG_IsOK(ecode7)) {
9016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9017 }
9018 arg7 = static_cast< long >(val7);
9019 }
9020 if (obj7) {
9021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9022 if (!SWIG_IsOK(res8)) {
9023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9024 }
1bd55598
RD
9025 if (!argp8) {
9026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9027 }
1bd55598
RD
9028 arg8 = reinterpret_cast< wxValidator * >(argp8);
9029 }
9030 if (obj8) {
f20a2e1f 9031 {
1bd55598
RD
9032 arg9 = wxString_in_helper(obj8);
9033 if (arg9 == NULL) SWIG_fail;
9034 temp9 = true;
f20a2e1f 9035 }
1bd55598
RD
9036 }
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 {
9044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9045 }
9046 {
9047 if (temp6) delete arg6;
9048 }
9049 {
9050 if (temp9)
9051 delete arg9;
9052 }
9053 return resultobj;
9054fail:
9055 {
9056 if (temp6) delete arg6;
9057 }
9058 {
9059 if (temp9)
9060 delete arg9;
9061 }
9062 return NULL;
9063}
9064
9065
9066SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj = 0;
9068 wxListBox *arg1 = (wxListBox *) 0 ;
9069 wxString *arg2 = 0 ;
9070 int arg3 ;
9071 PyObject *arg4 = (PyObject *) NULL ;
9072 void *argp1 = 0 ;
9073 int res1 = 0 ;
9074 bool temp2 = false ;
9075 int val3 ;
9076 int ecode3 = 0 ;
9077 PyObject * obj0 = 0 ;
9078 PyObject * obj1 = 0 ;
9079 PyObject * obj2 = 0 ;
9080 PyObject * obj3 = 0 ;
9081 char * kwnames[] = {
9082 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9083 };
9084
9085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9087 if (!SWIG_IsOK(res1)) {
9088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9089 }
9090 arg1 = reinterpret_cast< wxListBox * >(argp1);
9091 {
9092 arg2 = wxString_in_helper(obj1);
9093 if (arg2 == NULL) SWIG_fail;
9094 temp2 = true;
9095 }
9096 ecode3 = SWIG_AsVal_int(obj2, &val3);
9097 if (!SWIG_IsOK(ecode3)) {
9098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9099 }
9100 arg3 = static_cast< int >(val3);
9101 if (obj3) {
9102 arg4 = obj3;
9103 }
9104 {
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 resultobj = SWIG_Py_Void();
9111 {
9112 if (temp2)
9113 delete arg2;
9114 }
9115 return resultobj;
9116fail:
9117 {
9118 if (temp2)
9119 delete arg2;
9120 }
9121 return NULL;
9122}
9123
9124
9125SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9126 PyObject *resultobj = 0;
9127 wxListBox *arg1 = (wxListBox *) 0 ;
9128 wxArrayString *arg2 = 0 ;
50f151d7 9129 unsigned int arg3 ;
1bd55598
RD
9130 void *argp1 = 0 ;
9131 int res1 = 0 ;
9132 bool temp2 = false ;
50f151d7 9133 unsigned int val3 ;
1bd55598
RD
9134 int ecode3 = 0 ;
9135 PyObject * obj0 = 0 ;
9136 PyObject * obj1 = 0 ;
9137 PyObject * obj2 = 0 ;
9138 char * kwnames[] = {
9139 (char *) "self",(char *) "items",(char *) "pos", NULL
9140 };
9141
9142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9144 if (!SWIG_IsOK(res1)) {
9145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9146 }
9147 arg1 = reinterpret_cast< wxListBox * >(argp1);
9148 {
9149 if (! PySequence_Check(obj1)) {
9150 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9151 SWIG_fail;
9152 }
9153 arg2 = new wxArrayString;
9154 temp2 = true;
9155 int i, len=PySequence_Length(obj1);
9156 for (i=0; i<len; i++) {
9157 PyObject* item = PySequence_GetItem(obj1, i);
9158 wxString* s = wxString_in_helper(item);
9159 if (PyErr_Occurred()) SWIG_fail;
9160 arg2->Add(*s);
9161 delete s;
9162 Py_DECREF(item);
f20a2e1f 9163 }
1bd55598 9164 }
50f151d7 9165 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9166 if (!SWIG_IsOK(ecode3)) {
50f151d7 9167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9168 }
50f151d7 9169 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_Py_Void();
9177 {
9178 if (temp2) delete arg2;
9179 }
9180 return resultobj;
9181fail:
9182 {
9183 if (temp2) delete arg2;
9184 }
9185 return NULL;
f20a2e1f
RD
9186}
9187
9188
1bd55598
RD
9189SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9190 PyObject *resultobj = 0;
9191 wxListBox *arg1 = (wxListBox *) 0 ;
9192 wxArrayString *arg2 = 0 ;
9193 void *argp1 = 0 ;
9194 int res1 = 0 ;
9195 bool temp2 = false ;
9196 PyObject * obj0 = 0 ;
9197 PyObject * obj1 = 0 ;
9198 char * kwnames[] = {
9199 (char *) "self",(char *) "items", NULL
9200 };
9201
9202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9204 if (!SWIG_IsOK(res1)) {
9205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9206 }
9207 arg1 = reinterpret_cast< wxListBox * >(argp1);
9208 {
9209 if (! PySequence_Check(obj1)) {
9210 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9211 SWIG_fail;
9212 }
9213 arg2 = new wxArrayString;
9214 temp2 = true;
9215 int i, len=PySequence_Length(obj1);
9216 for (i=0; i<len; i++) {
9217 PyObject* item = PySequence_GetItem(obj1, i);
9218 wxString* s = wxString_in_helper(item);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 arg2->Add(*s);
9221 delete s;
9222 Py_DECREF(item);
bfddbb17 9223 }
1bd55598
RD
9224 }
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 (arg1)->Set((wxArrayString const &)*arg2);
9228 wxPyEndAllowThreads(__tstate);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 resultobj = SWIG_Py_Void();
9232 {
9233 if (temp2) delete arg2;
9234 }
9235 return resultobj;
9236fail:
9237 {
9238 if (temp2) delete arg2;
9239 }
9240 return NULL;
9241}
9242
9243
9244SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj = 0;
9246 wxListBox *arg1 = (wxListBox *) 0 ;
9247 int arg2 ;
9248 bool result;
9249 void *argp1 = 0 ;
9250 int res1 = 0 ;
9251 int val2 ;
9252 int ecode2 = 0 ;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 char * kwnames[] = {
9256 (char *) "self",(char *) "n", NULL
9257 };
9258
9259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9261 if (!SWIG_IsOK(res1)) {
9262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9263 }
9264 arg1 = reinterpret_cast< wxListBox * >(argp1);
9265 ecode2 = SWIG_AsVal_int(obj1, &val2);
9266 if (!SWIG_IsOK(ecode2)) {
9267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9268 }
9269 arg2 = static_cast< int >(val2);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 {
9277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9278 }
9279 return resultobj;
9280fail:
9281 return NULL;
9282}
9283
9284
9285SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9286 PyObject *resultobj = 0;
9287 wxListBox *arg1 = (wxListBox *) 0 ;
9288 int arg2 ;
9289 bool arg3 = (bool) true ;
9290 void *argp1 = 0 ;
9291 int res1 = 0 ;
9292 int val2 ;
9293 int ecode2 = 0 ;
9294 bool val3 ;
9295 int ecode3 = 0 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 PyObject * obj2 = 0 ;
9299 char * kwnames[] = {
9300 (char *) "self",(char *) "n",(char *) "select", NULL
9301 };
9302
9303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9305 if (!SWIG_IsOK(res1)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9307 }
9308 arg1 = reinterpret_cast< wxListBox * >(argp1);
9309 ecode2 = SWIG_AsVal_int(obj1, &val2);
9310 if (!SWIG_IsOK(ecode2)) {
9311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9312 }
9313 arg2 = static_cast< int >(val2);
9314 if (obj2) {
9315 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9316 if (!SWIG_IsOK(ecode3)) {
9317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9318 }
9319 arg3 = static_cast< bool >(val3);
9320 }
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 (arg1)->SetSelection(arg2,arg3);
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 resultobj = SWIG_Py_Void();
9328 return resultobj;
9329fail:
9330 return NULL;
9331}
9332
9333
9334SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj = 0;
9336 wxListBox *arg1 = (wxListBox *) 0 ;
9337 int arg2 ;
9338 void *argp1 = 0 ;
9339 int res1 = 0 ;
9340 int val2 ;
9341 int ecode2 = 0 ;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 char * kwnames[] = {
9345 (char *) "self",(char *) "n", NULL
9346 };
9347
9348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) 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_Select" "', 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_Select" "', expected argument " "2"" of type '" "int""'");
9357 }
9358 arg2 = static_cast< int >(val2);
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->Select(arg2);
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_Py_Void();
9366 return resultobj;
9367fail:
9368 return NULL;
9369}
9370
9371
9372SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj = 0;
9374 wxListBox *arg1 = (wxListBox *) 0 ;
9375 int arg2 ;
9376 void *argp1 = 0 ;
9377 int res1 = 0 ;
9378 int val2 ;
9379 int ecode2 = 0 ;
9380 PyObject * obj0 = 0 ;
9381 PyObject * obj1 = 0 ;
9382 char * kwnames[] = {
9383 (char *) "self",(char *) "n", NULL
9384 };
9385
9386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9388 if (!SWIG_IsOK(res1)) {
9389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9390 }
9391 arg1 = reinterpret_cast< wxListBox * >(argp1);
9392 ecode2 = SWIG_AsVal_int(obj1, &val2);
9393 if (!SWIG_IsOK(ecode2)) {
9394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9395 }
9396 arg2 = static_cast< int >(val2);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 (arg1)->Deselect(arg2);
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_Py_Void();
9404 return resultobj;
9405fail:
9406 return NULL;
9407}
9408
9409
9410SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj = 0;
9412 wxListBox *arg1 = (wxListBox *) 0 ;
9413 int arg2 = (int) -1 ;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 int val2 ;
9417 int ecode2 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "itemToLeaveSelected", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9428 }
9429 arg1 = reinterpret_cast< wxListBox * >(argp1);
9430 if (obj1) {
9431 ecode2 = SWIG_AsVal_int(obj1, &val2);
9432 if (!SWIG_IsOK(ecode2)) {
9433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9434 }
9435 arg2 = static_cast< int >(val2);
9436 }
9437 {
9438 PyThreadState* __tstate = wxPyBeginAllowThreads();
9439 (arg1)->DeselectAll(arg2);
9440 wxPyEndAllowThreads(__tstate);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 resultobj = SWIG_Py_Void();
9444 return resultobj;
9445fail:
9446 return NULL;
9447}
9448
9449
9450SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9451 PyObject *resultobj = 0;
9452 wxListBox *arg1 = (wxListBox *) 0 ;
9453 wxString *arg2 = 0 ;
9454 bool arg3 = (bool) true ;
9455 bool result;
9456 void *argp1 = 0 ;
9457 int res1 = 0 ;
9458 bool temp2 = false ;
9459 bool val3 ;
9460 int ecode3 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 PyObject * obj2 = 0 ;
9464 char * kwnames[] = {
9465 (char *) "self",(char *) "s",(char *) "select", NULL
9466 };
9467
9468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9470 if (!SWIG_IsOK(res1)) {
9471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9472 }
9473 arg1 = reinterpret_cast< wxListBox * >(argp1);
9474 {
9475 arg2 = wxString_in_helper(obj1);
9476 if (arg2 == NULL) SWIG_fail;
9477 temp2 = true;
9478 }
9479 if (obj2) {
9480 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9481 if (!SWIG_IsOK(ecode3)) {
9482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9483 }
9484 arg3 = static_cast< bool >(val3);
9485 }
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 {
9493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9494 }
9495 {
9496 if (temp2)
9497 delete arg2;
9498 }
9499 return resultobj;
9500fail:
9501 {
9502 if (temp2)
9503 delete arg2;
9504 }
9505 return NULL;
d55e5bfc
RD
9506}
9507
9508
1bd55598
RD
9509SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9510 PyObject *resultobj = 0;
9511 wxListBox *arg1 = (wxListBox *) 0 ;
9512 PyObject *result = 0 ;
9513 void *argp1 = 0 ;
9514 int res1 = 0 ;
9515 PyObject *swig_obj[1] ;
9516
9517 if (!args) SWIG_fail;
9518 swig_obj[0] = args;
9519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9520 if (!SWIG_IsOK(res1)) {
9521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9522 }
9523 arg1 = reinterpret_cast< wxListBox * >(argp1);
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 result = (PyObject *)wxListBox_GetSelections(arg1);
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = result;
9531 return resultobj;
9532fail:
9533 return NULL;
9534}
9535
9536
9537SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj = 0;
9539 wxListBox *arg1 = (wxListBox *) 0 ;
9540 int arg2 ;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 int val2 ;
9544 int ecode2 = 0 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 char * kwnames[] = {
9548 (char *) "self",(char *) "n", NULL
9549 };
9550
9551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9553 if (!SWIG_IsOK(res1)) {
9554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9555 }
9556 arg1 = reinterpret_cast< wxListBox * >(argp1);
9557 ecode2 = SWIG_AsVal_int(obj1, &val2);
9558 if (!SWIG_IsOK(ecode2)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9560 }
9561 arg2 = static_cast< int >(val2);
9562 {
9563 PyThreadState* __tstate = wxPyBeginAllowThreads();
9564 (arg1)->SetFirstItem(arg2);
9565 wxPyEndAllowThreads(__tstate);
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
9568 resultobj = SWIG_Py_Void();
9569 return resultobj;
9570fail:
9571 return NULL;
9572}
9573
9574
9575SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj = 0;
9577 wxListBox *arg1 = (wxListBox *) 0 ;
9578 wxString *arg2 = 0 ;
9579 void *argp1 = 0 ;
9580 int res1 = 0 ;
9581 bool temp2 = false ;
9582 PyObject * obj0 = 0 ;
9583 PyObject * obj1 = 0 ;
9584 char * kwnames[] = {
9585 (char *) "self",(char *) "s", NULL
9586 };
9587
9588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9590 if (!SWIG_IsOK(res1)) {
9591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9592 }
9593 arg1 = reinterpret_cast< wxListBox * >(argp1);
9594 {
9595 arg2 = wxString_in_helper(obj1);
9596 if (arg2 == NULL) SWIG_fail;
9597 temp2 = true;
9598 }
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 (arg1)->SetFirstItem((wxString const &)*arg2);
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 resultobj = SWIG_Py_Void();
9606 {
9607 if (temp2)
9608 delete arg2;
9609 }
9610 return resultobj;
9611fail:
9612 {
9613 if (temp2)
9614 delete arg2;
9615 }
9616 return NULL;
9617}
9618
9619
9620SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 int arg2 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 int val2 ;
9627 int ecode2 = 0 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "n", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9638 }
9639 arg1 = reinterpret_cast< wxListBox * >(argp1);
9640 ecode2 = SWIG_AsVal_int(obj1, &val2);
9641 if (!SWIG_IsOK(ecode2)) {
9642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9643 }
9644 arg2 = static_cast< int >(val2);
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 (arg1)->EnsureVisible(arg2);
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 resultobj = SWIG_Py_Void();
9652 return resultobj;
9653fail:
9654 return NULL;
9655}
9656
9657
9658SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9659 PyObject *resultobj = 0;
9660 wxListBox *arg1 = (wxListBox *) 0 ;
9661 wxString *arg2 = 0 ;
9662 void *argp1 = 0 ;
9663 int res1 = 0 ;
9664 bool temp2 = false ;
9665 PyObject * obj0 = 0 ;
9666 PyObject * obj1 = 0 ;
9667 char * kwnames[] = {
9668 (char *) "self",(char *) "s", NULL
9669 };
9670
9671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9675 }
9676 arg1 = reinterpret_cast< wxListBox * >(argp1);
9677 {
9678 arg2 = wxString_in_helper(obj1);
9679 if (arg2 == NULL) SWIG_fail;
9680 temp2 = true;
9681 }
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 resultobj = SWIG_Py_Void();
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return resultobj;
9694fail:
9695 {
9696 if (temp2)
9697 delete arg2;
9698 }
9699 return NULL;
d55e5bfc
RD
9700}
9701
9702
1bd55598
RD
9703SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9704 PyObject *resultobj = 0;
9705 wxListBox *arg1 = (wxListBox *) 0 ;
9706 bool result;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 PyObject *swig_obj[1] ;
9710
9711 if (!args) SWIG_fail;
9712 swig_obj[0] = args;
9713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9716 }
9717 arg1 = reinterpret_cast< wxListBox * >(argp1);
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
9720 result = (bool)((wxListBox const *)arg1)->IsSorted();
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 {
9725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9726 }
9727 return resultobj;
9728fail:
9729 return NULL;
9730}
9731
9732
9733SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9734 PyObject *resultobj = 0;
9735 wxListBox *arg1 = (wxListBox *) 0 ;
9736 wxPoint *arg2 = 0 ;
9737 int result;
9738 void *argp1 = 0 ;
9739 int res1 = 0 ;
9740 wxPoint temp2 ;
9741 PyObject * obj0 = 0 ;
9742 PyObject * obj1 = 0 ;
9743 char * kwnames[] = {
9744 (char *) "self",(char *) "pt", NULL
9745 };
9746
9747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9749 if (!SWIG_IsOK(res1)) {
9750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9751 }
9752 arg1 = reinterpret_cast< wxListBox * >(argp1);
9753 {
9754 arg2 = &temp2;
9755 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9756 }
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 resultobj = SWIG_From_int(static_cast< int >(result));
9764 return resultobj;
9765fail:
9766 return NULL;
9767}
9768
9769
9770SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj = 0;
9772 wxListBox *arg1 = (wxListBox *) 0 ;
9773 int arg2 ;
9774 wxColour *arg3 = 0 ;
9775 void *argp1 = 0 ;
9776 int res1 = 0 ;
9777 int val2 ;
9778 int ecode2 = 0 ;
9779 wxColour temp3 ;
9780 PyObject * obj0 = 0 ;
9781 PyObject * obj1 = 0 ;
9782 PyObject * obj2 = 0 ;
9783 char * kwnames[] = {
9784 (char *) "self",(char *) "item",(char *) "c", NULL
9785 };
9786
9787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9789 if (!SWIG_IsOK(res1)) {
9790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9791 }
9792 arg1 = reinterpret_cast< wxListBox * >(argp1);
9793 ecode2 = SWIG_AsVal_int(obj1, &val2);
9794 if (!SWIG_IsOK(ecode2)) {
9795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9796 }
9797 arg2 = static_cast< int >(val2);
9798 {
9799 arg3 = &temp3;
9800 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9801 }
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_Py_Void();
9809 return resultobj;
9810fail:
9811 return NULL;
9812}
9813
9814
9815SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(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_SetItemBackgroundColour",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_SetItemBackgroundColour" "', 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_SetItemBackgroundColour" "', 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_SetItemBackgroundColour(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_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxListBox *arg1 = (wxListBox *) 0 ;
9863 int arg2 ;
9864 wxFont *arg3 = 0 ;
9865 void *argp1 = 0 ;
9866 int res1 = 0 ;
9867 int val2 ;
9868 int ecode2 = 0 ;
9869 void *argp3 = 0 ;
9870 int res3 = 0 ;
9871 PyObject * obj0 = 0 ;
9872 PyObject * obj1 = 0 ;
9873 PyObject * obj2 = 0 ;
9874 char * kwnames[] = {
9875 (char *) "self",(char *) "item",(char *) "f", NULL
9876 };
9877
9878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9880 if (!SWIG_IsOK(res1)) {
9881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9882 }
9883 arg1 = reinterpret_cast< wxListBox * >(argp1);
9884 ecode2 = SWIG_AsVal_int(obj1, &val2);
9885 if (!SWIG_IsOK(ecode2)) {
9886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9887 }
9888 arg2 = static_cast< int >(val2);
9889 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9890 if (!SWIG_IsOK(res3)) {
9891 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9892 }
9893 if (!argp3) {
9894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9895 }
9896 arg3 = reinterpret_cast< wxFont * >(argp3);
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_Py_Void();
9904 return resultobj;
9905fail:
9906 return NULL;
9907}
9908
9909
9910SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9911 PyObject *resultobj = 0;
9912 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9913 SwigValueWrapper<wxVisualAttributes > result;
9914 int val1 ;
9915 int ecode1 = 0 ;
9916 PyObject * obj0 = 0 ;
9917 char * kwnames[] = {
9918 (char *) "variant", NULL
9919 };
9920
9921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9922 if (obj0) {
9923 ecode1 = SWIG_AsVal_int(obj0, &val1);
9924 if (!SWIG_IsOK(ecode1)) {
9925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9926 }
9927 arg1 = static_cast< wxWindowVariant >(val1);
9928 }
9929 {
9930 if (!wxPyCheckForApp()) SWIG_fail;
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = wxListBox::GetClassDefaultAttributes(arg1);
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9937 return resultobj;
9938fail:
9939 return NULL;
9940}
9941
9942
9943SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9944 PyObject *obj;
9945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9946 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9947 return SWIG_Py_Void();
9948}
9949
9950SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9951 return SWIG_Python_InitShadowInstance(args);
9952}
9953
9954SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj = 0;
9956 wxWindow *arg1 = (wxWindow *) 0 ;
9957 int arg2 = (int) -1 ;
9958 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9959 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9960 wxSize const &arg4_defvalue = wxDefaultSize ;
9961 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9962 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9963 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9964 long arg6 = (long) 0 ;
9965 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9966 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9967 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9968 wxString *arg8 = (wxString *) &arg8_defvalue ;
9969 wxCheckListBox *result = 0 ;
9970 void *argp1 = 0 ;
9971 int res1 = 0 ;
9972 int val2 ;
9973 int ecode2 = 0 ;
9974 wxPoint temp3 ;
9975 wxSize temp4 ;
9976 bool temp5 = false ;
9977 long val6 ;
9978 int ecode6 = 0 ;
9979 void *argp7 = 0 ;
9980 int res7 = 0 ;
9981 bool temp8 = false ;
9982 PyObject * obj0 = 0 ;
9983 PyObject * obj1 = 0 ;
9984 PyObject * obj2 = 0 ;
9985 PyObject * obj3 = 0 ;
9986 PyObject * obj4 = 0 ;
9987 PyObject * obj5 = 0 ;
9988 PyObject * obj6 = 0 ;
9989 PyObject * obj7 = 0 ;
9990 char * kwnames[] = {
9991 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9992 };
9993
9994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9996 if (!SWIG_IsOK(res1)) {
9997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9998 }
9999 arg1 = reinterpret_cast< wxWindow * >(argp1);
10000 if (obj1) {
10001 ecode2 = SWIG_AsVal_int(obj1, &val2);
10002 if (!SWIG_IsOK(ecode2)) {
10003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10004 }
10005 arg2 = static_cast< int >(val2);
10006 }
10007 if (obj2) {
10008 {
10009 arg3 = &temp3;
10010 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 10011 }
1bd55598
RD
10012 }
10013 if (obj3) {
10014 {
10015 arg4 = &temp4;
10016 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10017 }
1bd55598
RD
10018 }
10019 if (obj4) {
10020 {
10021 if (! PySequence_Check(obj4)) {
10022 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10023 SWIG_fail;
10024 }
10025 arg5 = new wxArrayString;
10026 temp5 = true;
10027 int i, len=PySequence_Length(obj4);
10028 for (i=0; i<len; i++) {
10029 PyObject* item = PySequence_GetItem(obj4, i);
10030 wxString* s = wxString_in_helper(item);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 arg5->Add(*s);
10033 delete s;
10034 Py_DECREF(item);
10035 }
d55e5bfc 10036 }
1bd55598
RD
10037 }
10038 if (obj5) {
10039 ecode6 = SWIG_AsVal_long(obj5, &val6);
10040 if (!SWIG_IsOK(ecode6)) {
10041 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10042 }
10043 arg6 = static_cast< long >(val6);
10044 }
10045 if (obj6) {
10046 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10047 if (!SWIG_IsOK(res7)) {
10048 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10049 }
1bd55598
RD
10050 if (!argp7) {
10051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10052 }
1bd55598
RD
10053 arg7 = reinterpret_cast< wxValidator * >(argp7);
10054 }
10055 if (obj7) {
10056 {
10057 arg8 = wxString_in_helper(obj7);
10058 if (arg8 == NULL) SWIG_fail;
10059 temp8 = true;
d55e5bfc 10060 }
1bd55598
RD
10061 }
10062 {
10063 if (!wxPyCheckForApp()) SWIG_fail;
10064 PyThreadState* __tstate = wxPyBeginAllowThreads();
10065 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 }
10069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10070 {
10071 if (temp5) delete arg5;
10072 }
10073 {
10074 if (temp8)
10075 delete arg8;
10076 }
10077 return resultobj;
10078fail:
10079 {
10080 if (temp5) delete arg5;
10081 }
10082 {
10083 if (temp8)
10084 delete arg8;
10085 }
10086 return NULL;
10087}
10088
10089
10090SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10091 PyObject *resultobj = 0;
10092 wxCheckListBox *result = 0 ;
10093
10094 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10095 {
10096 if (!wxPyCheckForApp()) SWIG_fail;
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (wxCheckListBox *)new wxCheckListBox();
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10103 return resultobj;
10104fail:
10105 return NULL;
10106}
10107
10108
10109SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj = 0;
10111 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10112 wxWindow *arg2 = (wxWindow *) 0 ;
10113 int arg3 = (int) -1 ;
10114 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10115 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10116 wxSize const &arg5_defvalue = wxDefaultSize ;
10117 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10118 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10119 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10120 long arg7 = (long) 0 ;
10121 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10122 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10123 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10124 wxString *arg9 = (wxString *) &arg9_defvalue ;
10125 bool result;
10126 void *argp1 = 0 ;
10127 int res1 = 0 ;
10128 void *argp2 = 0 ;
10129 int res2 = 0 ;
10130 int val3 ;
10131 int ecode3 = 0 ;
10132 wxPoint temp4 ;
10133 wxSize temp5 ;
10134 bool temp6 = false ;
10135 long val7 ;
10136 int ecode7 = 0 ;
10137 void *argp8 = 0 ;
10138 int res8 = 0 ;
10139 bool temp9 = false ;
10140 PyObject * obj0 = 0 ;
10141 PyObject * obj1 = 0 ;
10142 PyObject * obj2 = 0 ;
10143 PyObject * obj3 = 0 ;
10144 PyObject * obj4 = 0 ;
10145 PyObject * obj5 = 0 ;
10146 PyObject * obj6 = 0 ;
10147 PyObject * obj7 = 0 ;
10148 PyObject * obj8 = 0 ;
10149 char * kwnames[] = {
10150 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10151 };
10152
10153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10155 if (!SWIG_IsOK(res1)) {
10156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10157 }
10158 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10159 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10160 if (!SWIG_IsOK(res2)) {
10161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10162 }
10163 arg2 = reinterpret_cast< wxWindow * >(argp2);
10164 if (obj2) {
10165 ecode3 = SWIG_AsVal_int(obj2, &val3);
10166 if (!SWIG_IsOK(ecode3)) {
10167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10168 }
10169 arg3 = static_cast< int >(val3);
10170 }
10171 if (obj3) {
d55e5bfc 10172 {
1bd55598
RD
10173 arg4 = &temp4;
10174 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10175 }
1bd55598
RD
10176 }
10177 if (obj4) {
d55e5bfc 10178 {
1bd55598
RD
10179 arg5 = &temp5;
10180 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10181 }
1bd55598
RD
10182 }
10183 if (obj5) {
d55e5bfc 10184 {
1bd55598
RD
10185 if (! PySequence_Check(obj5)) {
10186 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10187 SWIG_fail;
10188 }
10189 arg6 = new wxArrayString;
10190 temp6 = true;
10191 int i, len=PySequence_Length(obj5);
10192 for (i=0; i<len; i++) {
10193 PyObject* item = PySequence_GetItem(obj5, i);
10194 wxString* s = wxString_in_helper(item);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 arg6->Add(*s);
10197 delete s;
10198 Py_DECREF(item);
10199 }
10200 }
10201 }
10202 if (obj6) {
10203 ecode7 = SWIG_AsVal_long(obj6, &val7);
10204 if (!SWIG_IsOK(ecode7)) {
10205 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10206 }
10207 arg7 = static_cast< long >(val7);
10208 }
10209 if (obj7) {
10210 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10211 if (!SWIG_IsOK(res8)) {
10212 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10213 }
10214 if (!argp8) {
10215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10216 }
1bd55598
RD
10217 arg8 = reinterpret_cast< wxValidator * >(argp8);
10218 }
10219 if (obj8) {
d55e5bfc 10220 {
1bd55598
RD
10221 arg9 = wxString_in_helper(obj8);
10222 if (arg9 == NULL) SWIG_fail;
10223 temp9 = true;
d55e5bfc 10224 }
1bd55598
RD
10225 }
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 {
10233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10234 }
10235 {
10236 if (temp6) delete arg6;
10237 }
10238 {
10239 if (temp9)
10240 delete arg9;
10241 }
10242 return resultobj;
10243fail:
10244 {
10245 if (temp6) delete arg6;
10246 }
10247 {
10248 if (temp9)
10249 delete arg9;
10250 }
10251 return NULL;
10252}
10253
10254
10255SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj = 0;
10257 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10258 unsigned int arg2 ;
1bd55598
RD
10259 bool result;
10260 void *argp1 = 0 ;
10261 int res1 = 0 ;
50f151d7 10262 unsigned int val2 ;
1bd55598
RD
10263 int ecode2 = 0 ;
10264 PyObject * obj0 = 0 ;
10265 PyObject * obj1 = 0 ;
10266 char * kwnames[] = {
10267 (char *) "self",(char *) "index", NULL
10268 };
10269
10270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10272 if (!SWIG_IsOK(res1)) {
10273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10274 }
10275 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10276 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10277 if (!SWIG_IsOK(ecode2)) {
50f151d7 10278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10279 }
50f151d7 10280 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (bool)(arg1)->IsChecked(arg2);
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
10288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10289 }
10290 return resultobj;
10291fail:
10292 return NULL;
10293}
10294
10295
10296SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10297 PyObject *resultobj = 0;
10298 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10299 unsigned int arg2 ;
1bd55598
RD
10300 int arg3 = (int) true ;
10301 void *argp1 = 0 ;
10302 int res1 = 0 ;
50f151d7 10303 unsigned int val2 ;
1bd55598
RD
10304 int ecode2 = 0 ;
10305 int val3 ;
10306 int ecode3 = 0 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 PyObject * obj2 = 0 ;
10310 char * kwnames[] = {
10311 (char *) "self",(char *) "index",(char *) "check", NULL
10312 };
10313
10314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10316 if (!SWIG_IsOK(res1)) {
10317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10318 }
10319 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10320 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10321 if (!SWIG_IsOK(ecode2)) {
50f151d7 10322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10323 }
50f151d7 10324 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10325 if (obj2) {
10326 ecode3 = SWIG_AsVal_int(obj2, &val3);
10327 if (!SWIG_IsOK(ecode3)) {
10328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10329 }
10330 arg3 = static_cast< int >(val3);
10331 }
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 (arg1)->Check(arg2,arg3);
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_Py_Void();
10339 return resultobj;
10340fail:
10341 return NULL;
d55e5bfc
RD
10342}
10343
10344
1bd55598
RD
10345SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10346 PyObject *obj;
10347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10348 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10349 return SWIG_Py_Void();
d55e5bfc
RD
10350}
10351
1bd55598
RD
10352SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10353 return SWIG_Python_InitShadowInstance(args);
10354}
d55e5bfc 10355
1bd55598
RD
10356SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10357 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10358 return 1;
d55e5bfc
RD
10359}
10360
10361
1bd55598
RD
10362SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10363 PyObject *pyobj = 0;
10364
10365 {
d55e5bfc 10366#if wxUSE_UNICODE
1bd55598 10367 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10368#else
1bd55598 10369 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10370#endif
1bd55598
RD
10371 }
10372 return pyobj;
10373}
10374
10375
10376SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj = 0;
10378 wxColour const &arg1_defvalue = wxNullColour ;
10379 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10380 wxColour const &arg2_defvalue = wxNullColour ;
10381 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10382 wxFont const &arg3_defvalue = wxNullFont ;
10383 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10384 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10385 wxTextAttr *result = 0 ;
10386 wxColour temp1 ;
10387 wxColour temp2 ;
10388 void *argp3 = 0 ;
10389 int res3 = 0 ;
10390 int val4 ;
10391 int ecode4 = 0 ;
10392 PyObject * obj0 = 0 ;
10393 PyObject * obj1 = 0 ;
10394 PyObject * obj2 = 0 ;
10395 PyObject * obj3 = 0 ;
10396 char * kwnames[] = {
10397 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10398 };
10399
10400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10401 if (obj0) {
d55e5bfc 10402 {
1bd55598
RD
10403 arg1 = &temp1;
10404 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10405 }
1bd55598
RD
10406 }
10407 if (obj1) {
d55e5bfc 10408 {
1bd55598
RD
10409 arg2 = &temp2;
10410 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10411 }
1bd55598
RD
10412 }
10413 if (obj2) {
10414 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10415 if (!SWIG_IsOK(res3)) {
10416 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10417 }
1bd55598
RD
10418 if (!argp3) {
10419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10420 }
1bd55598
RD
10421 arg3 = reinterpret_cast< wxFont * >(argp3);
10422 }
10423 if (obj3) {
10424 ecode4 = SWIG_AsVal_int(obj3, &val4);
10425 if (!SWIG_IsOK(ecode4)) {
10426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10427 }
10428 arg4 = static_cast< wxTextAttrAlignment >(val4);
10429 }
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10433 wxPyEndAllowThreads(__tstate);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
10436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10437 return resultobj;
10438fail:
10439 return NULL;
d55e5bfc
RD
10440}
10441
10442
1bd55598
RD
10443SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10444 PyObject *resultobj = 0;
10445 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10446 void *argp1 = 0 ;
10447 int res1 = 0 ;
10448 PyObject *swig_obj[1] ;
10449
10450 if (!args) SWIG_fail;
10451 swig_obj[0] = args;
10452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10453 if (!SWIG_IsOK(res1)) {
10454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10455 }
10456 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 delete arg1;
d55e5bfc 10460
1bd55598
RD
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_Py_Void();
10465 return resultobj;
10466fail:
10467 return NULL;
d55e5bfc
RD
10468}
10469
10470
1bd55598
RD
10471SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10472 PyObject *resultobj = 0;
10473 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10474 void *argp1 = 0 ;
10475 int res1 = 0 ;
10476 PyObject *swig_obj[1] ;
10477
10478 if (!args) SWIG_fail;
10479 swig_obj[0] = args;
10480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10481 if (!SWIG_IsOK(res1)) {
10482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10483 }
10484 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 (arg1)->Init();
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_Py_Void();
10492 return resultobj;
10493fail:
10494 return NULL;
10495}
10496
10497
2131d850
RD
10498SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = 0 ;
10501 wxTextAttr *arg2 = 0 ;
10502 wxTextAttr result;
10503 void *argp1 = 0 ;
10504 int res1 = 0 ;
10505 void *argp2 = 0 ;
10506 int res2 = 0 ;
10507 PyObject * obj0 = 0 ;
10508 PyObject * obj1 = 0 ;
10509 char * kwnames[] = {
10510 (char *) "base",(char *) "overlay", NULL
10511 };
10512
10513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10514 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10517 }
10518 if (!argp1) {
10519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10520 }
10521 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10523 if (!SWIG_IsOK(res2)) {
10524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10525 }
10526 if (!argp2) {
10527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10528 }
10529 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10537 return resultobj;
10538fail:
10539 return NULL;
10540}
10541
10542
1bd55598
RD
10543SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj = 0;
10545 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10546 wxColour *arg2 = 0 ;
10547 void *argp1 = 0 ;
10548 int res1 = 0 ;
10549 wxColour temp2 ;
10550 PyObject * obj0 = 0 ;
10551 PyObject * obj1 = 0 ;
10552 char * kwnames[] = {
10553 (char *) "self",(char *) "colText", NULL
10554 };
10555
10556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10558 if (!SWIG_IsOK(res1)) {
10559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10560 }
10561 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10562 {
10563 arg2 = &temp2;
10564 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 (arg1)->SetTextColour((wxColour const &)*arg2);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 resultobj = SWIG_Py_Void();
10573 return resultobj;
10574fail:
10575 return NULL;
10576}
10577
10578
10579SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10582 wxColour *arg2 = 0 ;
10583 void *argp1 = 0 ;
10584 int res1 = 0 ;
10585 wxColour temp2 ;
10586 PyObject * obj0 = 0 ;
10587 PyObject * obj1 = 0 ;
10588 char * kwnames[] = {
10589 (char *) "self",(char *) "colBack", NULL
10590 };
10591
10592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10594 if (!SWIG_IsOK(res1)) {
10595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10596 }
10597 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10598 {
10599 arg2 = &temp2;
10600 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10601 }
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_Py_Void();
10609 return resultobj;
10610fail:
10611 return NULL;
10612}
10613
10614
10615SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = 0;
10617 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10618 wxFont *arg2 = 0 ;
10619 long arg3 = (long) wxTEXT_ATTR_FONT ;
10620 void *argp1 = 0 ;
10621 int res1 = 0 ;
10622 void *argp2 = 0 ;
10623 int res2 = 0 ;
10624 long val3 ;
10625 int ecode3 = 0 ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 PyObject * obj2 = 0 ;
10629 char * kwnames[] = {
10630 (char *) "self",(char *) "font",(char *) "flags", NULL
10631 };
10632
10633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10635 if (!SWIG_IsOK(res1)) {
10636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10637 }
10638 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10640 if (!SWIG_IsOK(res2)) {
10641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10642 }
10643 if (!argp2) {
10644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10645 }
10646 arg2 = reinterpret_cast< wxFont * >(argp2);
10647 if (obj2) {
10648 ecode3 = SWIG_AsVal_long(obj2, &val3);
10649 if (!SWIG_IsOK(ecode3)) {
10650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10651 }
10652 arg3 = static_cast< long >(val3);
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_Py_Void();
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10670 wxTextAttrAlignment arg2 ;
10671 void *argp1 = 0 ;
10672 int res1 = 0 ;
10673 int val2 ;
10674 int ecode2 = 0 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "alignment", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10685 }
10686 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10687 ecode2 = SWIG_AsVal_int(obj1, &val2);
10688 if (!SWIG_IsOK(ecode2)) {
10689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10690 }
10691 arg2 = static_cast< wxTextAttrAlignment >(val2);
10692 {
10693 PyThreadState* __tstate = wxPyBeginAllowThreads();
10694 (arg1)->SetAlignment(arg2);
10695 wxPyEndAllowThreads(__tstate);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 resultobj = SWIG_Py_Void();
10699 return resultobj;
10700fail:
10701 return NULL;
10702}
10703
10704
10705SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10706 PyObject *resultobj = 0;
10707 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10708 wxArrayInt *arg2 = 0 ;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 bool temp2 = false ;
10712 PyObject * obj0 = 0 ;
10713 PyObject * obj1 = 0 ;
10714 char * kwnames[] = {
10715 (char *) "self",(char *) "tabs", NULL
10716 };
10717
10718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10720 if (!SWIG_IsOK(res1)) {
10721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10722 }
10723 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10724 {
10725 if (! PySequence_Check(obj1)) {
10726 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10727 SWIG_fail;
10728 }
10729 arg2 = new wxArrayInt;
10730 temp2 = true;
10731 int i, len=PySequence_Length(obj1);
10732 for (i=0; i<len; i++) {
10733 PyObject* item = PySequence_GetItem(obj1, i);
10734 PyObject* number = PyNumber_Int(item);
10735 arg2->Add(PyInt_AS_LONG(number));
10736 Py_DECREF(item);
10737 Py_DECREF(number);
d55e5bfc 10738 }
1bd55598
RD
10739 }
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 resultobj = SWIG_Py_Void();
10747 {
10748 if (temp2) delete arg2;
10749 }
10750 return resultobj;
10751fail:
10752 {
10753 if (temp2) delete arg2;
10754 }
10755 return NULL;
10756}
10757
10758
10759SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj = 0;
10761 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10762 int arg2 ;
10763 int arg3 = (int) 0 ;
10764 void *argp1 = 0 ;
10765 int res1 = 0 ;
10766 int val2 ;
10767 int ecode2 = 0 ;
10768 int val3 ;
10769 int ecode3 = 0 ;
10770 PyObject * obj0 = 0 ;
10771 PyObject * obj1 = 0 ;
10772 PyObject * obj2 = 0 ;
10773 char * kwnames[] = {
10774 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10775 };
10776
10777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10779 if (!SWIG_IsOK(res1)) {
10780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10781 }
10782 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10783 ecode2 = SWIG_AsVal_int(obj1, &val2);
10784 if (!SWIG_IsOK(ecode2)) {
10785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10786 }
10787 arg2 = static_cast< int >(val2);
10788 if (obj2) {
10789 ecode3 = SWIG_AsVal_int(obj2, &val3);
10790 if (!SWIG_IsOK(ecode3)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10792 }
10793 arg3 = static_cast< int >(val3);
10794 }
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetLeftIndent(arg2,arg3);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 return resultobj;
10803fail:
10804 return NULL;
10805}
10806
10807
10808SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10811 int arg2 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char * kwnames[] = {
10819 (char *) "self",(char *) "indent", NULL
10820 };
10821
10822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10826 }
10827 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10828 ecode2 = SWIG_AsVal_int(obj1, &val2);
10829 if (!SWIG_IsOK(ecode2)) {
10830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10831 }
10832 arg2 = static_cast< int >(val2);
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->SetRightIndent(arg2);
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 resultobj = SWIG_Py_Void();
10840 return resultobj;
10841fail:
10842 return NULL;
10843}
10844
10845
10846SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj = 0;
10848 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10849 long arg2 ;
10850 void *argp1 = 0 ;
10851 int res1 = 0 ;
10852 long val2 ;
10853 int ecode2 = 0 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 char * kwnames[] = {
10857 (char *) "self",(char *) "flags", NULL
10858 };
10859
10860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10864 }
10865 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10866 ecode2 = SWIG_AsVal_long(obj1, &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10869 }
10870 arg2 = static_cast< long >(val2);
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 (arg1)->SetFlags(arg2);
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 resultobj = SWIG_Py_Void();
10878 return resultobj;
10879fail:
10880 return NULL;
d55e5bfc
RD
10881}
10882
10883
1bd55598
RD
10884SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10885 PyObject *resultobj = 0;
10886 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10887 bool result;
10888 void *argp1 = 0 ;
10889 int res1 = 0 ;
10890 PyObject *swig_obj[1] ;
10891
10892 if (!args) SWIG_fail;
10893 swig_obj[0] = args;
10894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10895 if (!SWIG_IsOK(res1)) {
10896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10897 }
10898 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 {
10906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10907 }
10908 return resultobj;
10909fail:
10910 return NULL;
d55e5bfc
RD
10911}
10912
10913
1bd55598
RD
10914SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10915 PyObject *resultobj = 0;
10916 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10917 bool result;
10918 void *argp1 = 0 ;
10919 int res1 = 0 ;
10920 PyObject *swig_obj[1] ;
10921
10922 if (!args) SWIG_fail;
10923 swig_obj[0] = args;
10924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10925 if (!SWIG_IsOK(res1)) {
10926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10927 }
10928 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 {
10936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10937 }
10938 return resultobj;
10939fail:
10940 return NULL;
d55e5bfc
RD
10941}
10942
10943
1bd55598
RD
10944SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10945 PyObject *resultobj = 0;
10946 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10947 bool result;
10948 void *argp1 = 0 ;
10949 int res1 = 0 ;
10950 PyObject *swig_obj[1] ;
10951
10952 if (!args) SWIG_fail;
10953 swig_obj[0] = args;
10954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10955 if (!SWIG_IsOK(res1)) {
10956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10957 }
10958 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 {
10966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10967 }
10968 return resultobj;
10969fail:
10970 return NULL;
d55e5bfc
RD
10971}
10972
10973
1bd55598
RD
10974SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10975 PyObject *resultobj = 0;
10976 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10977 bool result;
10978 void *argp1 = 0 ;
10979 int res1 = 0 ;
10980 PyObject *swig_obj[1] ;
10981
10982 if (!args) SWIG_fail;
10983 swig_obj[0] = args;
10984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10985 if (!SWIG_IsOK(res1)) {
10986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10987 }
10988 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
10995 {
10996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10997 }
10998 return resultobj;
10999fail:
11000 return NULL;
d55e5bfc
RD
11001}
11002
11003
1bd55598
RD
11004SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11005 PyObject *resultobj = 0;
11006 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11007 bool result;
11008 void *argp1 = 0 ;
11009 int res1 = 0 ;
11010 PyObject *swig_obj[1] ;
11011
11012 if (!args) SWIG_fail;
11013 swig_obj[0] = args;
11014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11015 if (!SWIG_IsOK(res1)) {
11016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11017 }
11018 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 {
11026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11027 }
11028 return resultobj;
11029fail:
11030 return NULL;
d55e5bfc
RD
11031}
11032
11033
1bd55598
RD
11034SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11035 PyObject *resultobj = 0;
11036 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11037 bool result;
11038 void *argp1 = 0 ;
11039 int res1 = 0 ;
11040 PyObject *swig_obj[1] ;
11041
11042 if (!args) SWIG_fail;
11043 swig_obj[0] = args;
11044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11045 if (!SWIG_IsOK(res1)) {
11046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11047 }
11048 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 {
11056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11057 }
11058 return resultobj;
11059fail:
11060 return NULL;
d55e5bfc
RD
11061}
11062
11063
1bd55598
RD
11064SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11065 PyObject *resultobj = 0;
11066 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11067 bool result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 PyObject *swig_obj[1] ;
11071
11072 if (!args) SWIG_fail;
11073 swig_obj[0] = args;
11074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11075 if (!SWIG_IsOK(res1)) {
11076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11077 }
11078 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 {
11086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11087 }
11088 return resultobj;
11089fail:
11090 return NULL;
11091}
11092
11093
11094SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11095 PyObject *resultobj = 0;
11096 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11097 long arg2 ;
11098 bool result;
11099 void *argp1 = 0 ;
11100 int res1 = 0 ;
11101 long val2 ;
11102 int ecode2 = 0 ;
11103 PyObject * obj0 = 0 ;
11104 PyObject * obj1 = 0 ;
11105 char * kwnames[] = {
11106 (char *) "self",(char *) "flag", NULL
11107 };
11108
11109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11111 if (!SWIG_IsOK(res1)) {
11112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11113 }
11114 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11115 ecode2 = SWIG_AsVal_long(obj1, &val2);
11116 if (!SWIG_IsOK(ecode2)) {
11117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11118 }
11119 arg2 = static_cast< long >(val2);
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11128 }
11129 return resultobj;
11130fail:
11131 return NULL;
d55e5bfc
RD
11132}
11133
11134
1bd55598
RD
11135SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11138 wxColour *result = 0 ;
11139 void *argp1 = 0 ;
11140 int res1 = 0 ;
11141 PyObject *swig_obj[1] ;
11142
11143 if (!args) SWIG_fail;
11144 swig_obj[0] = args;
11145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11148 }
11149 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11152 {
1bd55598
RD
11153 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11154 result = (wxColour *) &_result_ref;
d55e5bfc 11155 }
1bd55598
RD
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11160 return resultobj;
11161fail:
11162 return NULL;
d55e5bfc
RD
11163}
11164
11165
1bd55598
RD
11166SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11169 wxColour *result = 0 ;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject *swig_obj[1] ;
11173
11174 if (!args) SWIG_fail;
11175 swig_obj[0] = args;
11176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11177 if (!SWIG_IsOK(res1)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11179 }
11180 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11183 {
1bd55598
RD
11184 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11185 result = (wxColour *) &_result_ref;
d55e5bfc 11186 }
1bd55598
RD
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11191 return resultobj;
11192fail:
11193 return NULL;
d55e5bfc
RD
11194}
11195
11196
1bd55598
RD
11197SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11198 PyObject *resultobj = 0;
11199 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11200 wxFont *result = 0 ;
11201 void *argp1 = 0 ;
11202 int res1 = 0 ;
11203 PyObject *swig_obj[1] ;
11204
11205 if (!args) SWIG_fail;
11206 swig_obj[0] = args;
11207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11208 if (!SWIG_IsOK(res1)) {
11209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11210 }
11211 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11214 {
1bd55598
RD
11215 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11216 result = (wxFont *) &_result_ref;
d55e5bfc 11217 }
1bd55598
RD
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 {
11222 wxFont* resultptr = new wxFont(*result);
11223 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11224 }
11225 return resultobj;
11226fail:
11227 return NULL;
d55e5bfc
RD
11228}
11229
11230
1bd55598
RD
11231SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11232 PyObject *resultobj = 0;
11233 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11234 wxTextAttrAlignment result;
11235 void *argp1 = 0 ;
11236 int res1 = 0 ;
11237 PyObject *swig_obj[1] ;
11238
11239 if (!args) SWIG_fail;
11240 swig_obj[0] = args;
11241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11242 if (!SWIG_IsOK(res1)) {
11243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11244 }
11245 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 resultobj = SWIG_From_int(static_cast< int >(result));
11253 return resultobj;
11254fail:
11255 return NULL;
d55e5bfc
RD
11256}
11257
11258
1bd55598
RD
11259SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11260 PyObject *resultobj = 0;
11261 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11262 wxArrayInt *result = 0 ;
11263 void *argp1 = 0 ;
11264 int res1 = 0 ;
11265 PyObject *swig_obj[1] ;
11266
11267 if (!args) SWIG_fail;
11268 swig_obj[0] = args;
11269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11272 }
11273 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11276 {
1bd55598
RD
11277 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11278 result = (wxArrayInt *) &_result_ref;
36ed4f51 11279 }
1bd55598
RD
11280 wxPyEndAllowThreads(__tstate);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 {
11284 resultobj = PyList_New(0);
11285 size_t idx;
11286 for (idx = 0; idx < result->GetCount(); idx += 1) {
11287 PyObject* val = PyInt_FromLong( result->Item(idx) );
11288 PyList_Append(resultobj, val);
11289 Py_DECREF(val);
d55e5bfc 11290 }
1bd55598
RD
11291 }
11292 return resultobj;
11293fail:
11294 return NULL;
d55e5bfc
RD
11295}
11296
11297
1bd55598
RD
11298SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11299 PyObject *resultobj = 0;
11300 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11301 long result;
11302 void *argp1 = 0 ;
11303 int res1 = 0 ;
11304 PyObject *swig_obj[1] ;
11305
11306 if (!args) SWIG_fail;
11307 swig_obj[0] = args;
11308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11309 if (!SWIG_IsOK(res1)) {
11310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11311 }
11312 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11316 wxPyEndAllowThreads(__tstate);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
11319 resultobj = SWIG_From_long(static_cast< long >(result));
11320 return resultobj;
11321fail:
11322 return NULL;
d55e5bfc
RD
11323}
11324
11325
1bd55598
RD
11326SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11327 PyObject *resultobj = 0;
11328 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11329 long result;
11330 void *argp1 = 0 ;
11331 int res1 = 0 ;
11332 PyObject *swig_obj[1] ;
11333
11334 if (!args) SWIG_fail;
11335 swig_obj[0] = args;
11336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11337 if (!SWIG_IsOK(res1)) {
11338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11339 }
11340 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 resultobj = SWIG_From_long(static_cast< long >(result));
11348 return resultobj;
11349fail:
11350 return NULL;
d55e5bfc
RD
11351}
11352
11353
1bd55598
RD
11354SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11355 PyObject *resultobj = 0;
11356 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11357 long result;
11358 void *argp1 = 0 ;
11359 int res1 = 0 ;
11360 PyObject *swig_obj[1] ;
11361
11362 if (!args) SWIG_fail;
11363 swig_obj[0] = args;
11364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11365 if (!SWIG_IsOK(res1)) {
11366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11367 }
11368 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11369 {
11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
11371 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 resultobj = SWIG_From_long(static_cast< long >(result));
11376 return resultobj;
11377fail:
11378 return NULL;
d55e5bfc
RD
11379}
11380
11381
1bd55598
RD
11382SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11383 PyObject *resultobj = 0;
11384 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11385 long result;
11386 void *argp1 = 0 ;
11387 int res1 = 0 ;
11388 PyObject *swig_obj[1] ;
11389
11390 if (!args) SWIG_fail;
11391 swig_obj[0] = args;
11392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11395 }
11396 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11397 {
11398 PyThreadState* __tstate = wxPyBeginAllowThreads();
11399 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11400 wxPyEndAllowThreads(__tstate);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 resultobj = SWIG_From_long(static_cast< long >(result));
11404 return resultobj;
11405fail:
11406 return NULL;
d55e5bfc
RD
11407}
11408
11409
1bd55598
RD
11410SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11411 PyObject *resultobj = 0;
11412 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11413 bool result;
11414 void *argp1 = 0 ;
11415 int res1 = 0 ;
11416 PyObject *swig_obj[1] ;
11417
11418 if (!args) SWIG_fail;
11419 swig_obj[0] = args;
11420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11421 if (!SWIG_IsOK(res1)) {
11422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11423 }
11424 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11425 {
11426 PyThreadState* __tstate = wxPyBeginAllowThreads();
11427 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11428 wxPyEndAllowThreads(__tstate);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 }
11431 {
11432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11433 }
11434 return resultobj;
11435fail:
11436 return NULL;
11437}
11438
11439
11440SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj = 0;
11442 wxTextAttr *arg1 = 0 ;
11443 wxTextAttr *arg2 = 0 ;
11444 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11445 wxTextAttr result;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 void *argp2 = 0 ;
11449 int res2 = 0 ;
11450 void *argp3 = 0 ;
11451 int res3 = 0 ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 PyObject * obj2 = 0 ;
11455 char * kwnames[] = {
11456 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11457 };
11458
11459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11460 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11463 }
11464 if (!argp1) {
11465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11469 if (!SWIG_IsOK(res2)) {
11470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11471 }
11472 if (!argp2) {
11473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11474 }
11475 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11476 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11477 if (!SWIG_IsOK(res3)) {
11478 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11479 }
11480 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11488 return resultobj;
11489fail:
11490 return NULL;
11491}
11492
11493
11494SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11495 PyObject *obj;
11496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11497 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11498 return SWIG_Py_Void();
11499}
11500
11501SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 return SWIG_Python_InitShadowInstance(args);
11503}
11504
11505SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11506 PyObject *resultobj = 0;
11507 wxWindow *arg1 = (wxWindow *) 0 ;
11508 int arg2 = (int) -1 ;
11509 wxString const &arg3_defvalue = wxPyEmptyString ;
11510 wxString *arg3 = (wxString *) &arg3_defvalue ;
11511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11513 wxSize const &arg5_defvalue = wxDefaultSize ;
11514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11515 long arg6 = (long) 0 ;
11516 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11517 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11518 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11519 wxString *arg8 = (wxString *) &arg8_defvalue ;
11520 wxTextCtrl *result = 0 ;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 int val2 ;
11524 int ecode2 = 0 ;
11525 bool temp3 = false ;
11526 wxPoint temp4 ;
11527 wxSize temp5 ;
11528 long val6 ;
11529 int ecode6 = 0 ;
11530 void *argp7 = 0 ;
11531 int res7 = 0 ;
11532 bool temp8 = false ;
11533 PyObject * obj0 = 0 ;
11534 PyObject * obj1 = 0 ;
11535 PyObject * obj2 = 0 ;
11536 PyObject * obj3 = 0 ;
11537 PyObject * obj4 = 0 ;
11538 PyObject * obj5 = 0 ;
11539 PyObject * obj6 = 0 ;
11540 PyObject * obj7 = 0 ;
11541 char * kwnames[] = {
11542 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11543 };
11544
11545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11547 if (!SWIG_IsOK(res1)) {
11548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11549 }
11550 arg1 = reinterpret_cast< wxWindow * >(argp1);
11551 if (obj1) {
11552 ecode2 = SWIG_AsVal_int(obj1, &val2);
11553 if (!SWIG_IsOK(ecode2)) {
11554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11555 }
11556 arg2 = static_cast< int >(val2);
11557 }
11558 if (obj2) {
36ed4f51 11559 {
1bd55598
RD
11560 arg3 = wxString_in_helper(obj2);
11561 if (arg3 == NULL) SWIG_fail;
11562 temp3 = true;
36ed4f51 11563 }
1bd55598
RD
11564 }
11565 if (obj3) {
36ed4f51 11566 {
1bd55598
RD
11567 arg4 = &temp4;
11568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11569 }
1bd55598
RD
11570 }
11571 if (obj4) {
d55e5bfc 11572 {
1bd55598
RD
11573 arg5 = &temp5;
11574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11575 }
1bd55598
RD
11576 }
11577 if (obj5) {
11578 ecode6 = SWIG_AsVal_long(obj5, &val6);
11579 if (!SWIG_IsOK(ecode6)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11581 }
11582 arg6 = static_cast< long >(val6);
11583 }
11584 if (obj6) {
11585 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11586 if (!SWIG_IsOK(res7)) {
11587 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11588 }
1bd55598
RD
11589 if (!argp7) {
11590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11591 }
1bd55598
RD
11592 arg7 = reinterpret_cast< wxValidator * >(argp7);
11593 }
11594 if (obj7) {
d55e5bfc 11595 {
1bd55598
RD
11596 arg8 = wxString_in_helper(obj7);
11597 if (arg8 == NULL) SWIG_fail;
11598 temp8 = true;
d55e5bfc 11599 }
1bd55598
RD
11600 }
11601 {
11602 if (!wxPyCheckForApp()) SWIG_fail;
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11609 {
11610 if (temp3)
11611 delete arg3;
11612 }
11613 {
11614 if (temp8)
11615 delete arg8;
11616 }
11617 return resultobj;
11618fail:
11619 {
11620 if (temp3)
11621 delete arg3;
11622 }
11623 {
11624 if (temp8)
11625 delete arg8;
11626 }
11627 return NULL;
d55e5bfc
RD
11628}
11629
11630
1bd55598
RD
11631SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11632 PyObject *resultobj = 0;
11633 wxTextCtrl *result = 0 ;
11634
11635 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11636 {
11637 if (!wxPyCheckForApp()) SWIG_fail;
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (wxTextCtrl *)new wxTextCtrl();
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11644 return resultobj;
11645fail:
11646 return NULL;
11647}
11648
11649
11650SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj = 0;
11652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11653 wxWindow *arg2 = (wxWindow *) 0 ;
11654 int arg3 = (int) -1 ;
11655 wxString const &arg4_defvalue = wxPyEmptyString ;
11656 wxString *arg4 = (wxString *) &arg4_defvalue ;
11657 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11658 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11659 wxSize const &arg6_defvalue = wxDefaultSize ;
11660 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11661 long arg7 = (long) 0 ;
11662 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11663 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11664 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11665 wxString *arg9 = (wxString *) &arg9_defvalue ;
11666 bool result;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 void *argp2 = 0 ;
11670 int res2 = 0 ;
11671 int val3 ;
11672 int ecode3 = 0 ;
11673 bool temp4 = false ;
11674 wxPoint temp5 ;
11675 wxSize temp6 ;
11676 long val7 ;
11677 int ecode7 = 0 ;
11678 void *argp8 = 0 ;
11679 int res8 = 0 ;
11680 bool temp9 = false ;
11681 PyObject * obj0 = 0 ;
11682 PyObject * obj1 = 0 ;
11683 PyObject * obj2 = 0 ;
11684 PyObject * obj3 = 0 ;
11685 PyObject * obj4 = 0 ;
11686 PyObject * obj5 = 0 ;
11687 PyObject * obj6 = 0 ;
11688 PyObject * obj7 = 0 ;
11689 PyObject * obj8 = 0 ;
11690 char * kwnames[] = {
11691 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11692 };
11693
11694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11696 if (!SWIG_IsOK(res1)) {
11697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11698 }
11699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11701 if (!SWIG_IsOK(res2)) {
11702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11703 }
11704 arg2 = reinterpret_cast< wxWindow * >(argp2);
11705 if (obj2) {
11706 ecode3 = SWIG_AsVal_int(obj2, &val3);
11707 if (!SWIG_IsOK(ecode3)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11709 }
11710 arg3 = static_cast< int >(val3);
11711 }
11712 if (obj3) {
d55e5bfc 11713 {
1bd55598
RD
11714 arg4 = wxString_in_helper(obj3);
11715 if (arg4 == NULL) SWIG_fail;
11716 temp4 = true;
d55e5bfc 11717 }
1bd55598
RD
11718 }
11719 if (obj4) {
d55e5bfc 11720 {
1bd55598
RD
11721 arg5 = &temp5;
11722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11723 }
1bd55598
RD
11724 }
11725 if (obj5) {
d55e5bfc 11726 {
1bd55598
RD
11727 arg6 = &temp6;
11728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11729 }
1bd55598
RD
11730 }
11731 if (obj6) {
11732 ecode7 = SWIG_AsVal_long(obj6, &val7);
11733 if (!SWIG_IsOK(ecode7)) {
11734 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11735 }
11736 arg7 = static_cast< long >(val7);
11737 }
11738 if (obj7) {
11739 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11740 if (!SWIG_IsOK(res8)) {
11741 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11742 }
1bd55598
RD
11743 if (!argp8) {
11744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11745 }
11746 arg8 = reinterpret_cast< wxValidator * >(argp8);
11747 }
11748 if (obj8) {
d55e5bfc 11749 {
1bd55598
RD
11750 arg9 = wxString_in_helper(obj8);
11751 if (arg9 == NULL) SWIG_fail;
11752 temp9 = true;
d55e5bfc 11753 }
1bd55598
RD
11754 }
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 {
11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11763 }
11764 {
11765 if (temp4)
11766 delete arg4;
11767 }
11768 {
11769 if (temp9)
11770 delete arg9;
11771 }
11772 return resultobj;
11773fail:
11774 {
11775 if (temp4)
11776 delete arg4;
11777 }
11778 {
11779 if (temp9)
11780 delete arg9;
11781 }
11782 return NULL;
d55e5bfc
RD
11783}
11784
11785
1bd55598
RD
11786SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11787 PyObject *resultobj = 0;
11788 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11789 wxString result;
11790 void *argp1 = 0 ;
11791 int res1 = 0 ;
11792 PyObject *swig_obj[1] ;
11793
11794 if (!args) SWIG_fail;
11795 swig_obj[0] = args;
11796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11797 if (!SWIG_IsOK(res1)) {
11798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11799 }
11800 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11801 {
11802 PyThreadState* __tstate = wxPyBeginAllowThreads();
11803 result = ((wxTextCtrl const *)arg1)->GetValue();
11804 wxPyEndAllowThreads(__tstate);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 }
11807 {
11808#if wxUSE_UNICODE
11809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11810#else
11811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11812#endif
11813 }
11814 return resultobj;
11815fail:
11816 return NULL;
11817}
11818
11819
11820SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11821 PyObject *resultobj = 0;
11822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11823 wxString *arg2 = 0 ;
11824 void *argp1 = 0 ;
11825 int res1 = 0 ;
11826 bool temp2 = false ;
11827 PyObject * obj0 = 0 ;
11828 PyObject * obj1 = 0 ;
11829 char * kwnames[] = {
11830 (char *) "self",(char *) "value", NULL
11831 };
11832
11833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11835 if (!SWIG_IsOK(res1)) {
11836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11837 }
11838 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11839 {
11840 arg2 = wxString_in_helper(obj1);
11841 if (arg2 == NULL) SWIG_fail;
11842 temp2 = true;
11843 }
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 (arg1)->SetValue((wxString const &)*arg2);
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 resultobj = SWIG_Py_Void();
11851 {
11852 if (temp2)
11853 delete arg2;
11854 }
11855 return resultobj;
11856fail:
11857 {
11858 if (temp2)
11859 delete arg2;
11860 }
11861 return NULL;
11862}
11863
11864
11865SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj = 0;
11867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11868 long arg2 ;
11869 long arg3 ;
11870 wxString result;
11871 void *argp1 = 0 ;
11872 int res1 = 0 ;
11873 long val2 ;
11874 int ecode2 = 0 ;
11875 long val3 ;
11876 int ecode3 = 0 ;
11877 PyObject * obj0 = 0 ;
11878 PyObject * obj1 = 0 ;
11879 PyObject * obj2 = 0 ;
11880 char * kwnames[] = {
2131d850 11881 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11882 };
11883
11884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11886 if (!SWIG_IsOK(res1)) {
11887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11888 }
11889 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11890 ecode2 = SWIG_AsVal_long(obj1, &val2);
11891 if (!SWIG_IsOK(ecode2)) {
11892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11893 }
11894 arg2 = static_cast< long >(val2);
11895 ecode3 = SWIG_AsVal_long(obj2, &val3);
11896 if (!SWIG_IsOK(ecode3)) {
11897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11898 }
11899 arg3 = static_cast< long >(val3);
11900 {
11901 PyThreadState* __tstate = wxPyBeginAllowThreads();
11902 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11903 wxPyEndAllowThreads(__tstate);
11904 if (PyErr_Occurred()) SWIG_fail;
11905 }
11906 {
11907#if wxUSE_UNICODE
11908 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11909#else
11910 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11911#endif
11912 }
11913 return resultobj;
11914fail:
11915 return NULL;
11916}
11917
11918
11919SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11920 PyObject *resultobj = 0;
11921 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11922 long arg2 ;
11923 int result;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 long val2 ;
11927 int ecode2 = 0 ;
11928 PyObject * obj0 = 0 ;
11929 PyObject * obj1 = 0 ;
11930 char * kwnames[] = {
11931 (char *) "self",(char *) "lineNo", NULL
11932 };
11933
11934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11938 }
11939 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11940 ecode2 = SWIG_AsVal_long(obj1, &val2);
11941 if (!SWIG_IsOK(ecode2)) {
11942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11943 }
11944 arg2 = static_cast< long >(val2);
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 resultobj = SWIG_From_int(static_cast< int >(result));
11952 return resultobj;
11953fail:
11954 return NULL;
11955}
11956
11957
11958SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj = 0;
11960 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11961 long arg2 ;
11962 wxString result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 long val2 ;
11966 int ecode2 = 0 ;
11967 PyObject * obj0 = 0 ;
11968 PyObject * obj1 = 0 ;
11969 char * kwnames[] = {
11970 (char *) "self",(char *) "lineNo", NULL
11971 };
11972
11973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11975 if (!SWIG_IsOK(res1)) {
11976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11977 }
11978 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11979 ecode2 = SWIG_AsVal_long(obj1, &val2);
11980 if (!SWIG_IsOK(ecode2)) {
11981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11982 }
11983 arg2 = static_cast< long >(val2);
11984 {
11985 PyThreadState* __tstate = wxPyBeginAllowThreads();
11986 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11987 wxPyEndAllowThreads(__tstate);
11988 if (PyErr_Occurred()) SWIG_fail;
11989 }
11990 {
11991#if wxUSE_UNICODE
11992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11993#else
11994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11995#endif
11996 }
11997 return resultobj;
11998fail:
11999 return NULL;
d55e5bfc
RD
12000}
12001
12002
1bd55598
RD
12003SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12004 PyObject *resultobj = 0;
12005 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12006 int result;
12007 void *argp1 = 0 ;
12008 int res1 = 0 ;
12009 PyObject *swig_obj[1] ;
12010
12011 if (!args) SWIG_fail;
12012 swig_obj[0] = args;
12013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12014 if (!SWIG_IsOK(res1)) {
12015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12016 }
12017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 resultobj = SWIG_From_int(static_cast< int >(result));
12025 return resultobj;
12026fail:
12027 return NULL;
d55e5bfc
RD
12028}
12029
12030
1bd55598
RD
12031SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12032 PyObject *resultobj = 0;
12033 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12034 bool result;
12035 void *argp1 = 0 ;
12036 int res1 = 0 ;
12037 PyObject *swig_obj[1] ;
12038
12039 if (!args) SWIG_fail;
12040 swig_obj[0] = args;
12041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12042 if (!SWIG_IsOK(res1)) {
12043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12044 }
12045 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 {
12053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12054 }
12055 return resultobj;
12056fail:
12057 return NULL;
d55e5bfc
RD
12058}
12059
12060
1bd55598
RD
12061SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12062 PyObject *resultobj = 0;
12063 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12064 bool result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 PyObject *swig_obj[1] ;
12068
12069 if (!args) SWIG_fail;
12070 swig_obj[0] = args;
12071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12072 if (!SWIG_IsOK(res1)) {
12073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12074 }
12075 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 {
12083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12084 }
12085 return resultobj;
12086fail:
12087 return NULL;
d55e5bfc
RD
12088}
12089
12090
1bd55598
RD
12091SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12092 PyObject *resultobj = 0;
12093 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12094 bool result;
12095 void *argp1 = 0 ;
12096 int res1 = 0 ;
12097 PyObject *swig_obj[1] ;
12098
12099 if (!args) SWIG_fail;
12100 swig_obj[0] = args;
12101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12102 if (!SWIG_IsOK(res1)) {
12103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12104 }
12105 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12106 {
12107 PyThreadState* __tstate = wxPyBeginAllowThreads();
12108 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12109 wxPyEndAllowThreads(__tstate);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 {
12113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12114 }
12115 return resultobj;
12116fail:
12117 return NULL;
d55e5bfc
RD
12118}
12119
12120
1bd55598
RD
12121SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12122 PyObject *resultobj = 0;
12123 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12124 bool 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_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12134 }
12135 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 {
12143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12144 }
12145 return resultobj;
12146fail:
12147 return NULL;
12148}
12149
12150
12151SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12152 PyObject *resultobj = 0;
12153 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12154 long *arg2 = (long *) 0 ;
12155 long *arg3 = (long *) 0 ;
12156 void *argp1 = 0 ;
12157 int res1 = 0 ;
12158 long temp2 ;
12159 int res2 = SWIG_TMPOBJ ;
12160 long temp3 ;
12161 int res3 = SWIG_TMPOBJ ;
12162 PyObject *swig_obj[1] ;
12163
12164 arg2 = &temp2;
12165 arg3 = &temp3;
12166 if (!args) SWIG_fail;
12167 swig_obj[0] = args;
12168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12171 }
12172 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
12175 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 resultobj = SWIG_Py_Void();
12180 if (SWIG_IsTmpObj(res2)) {
12181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12182 } else {
12183 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12185 }
12186 if (SWIG_IsTmpObj(res3)) {
12187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12188 } else {
12189 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12191 }
12192 return resultobj;
12193fail:
12194 return NULL;
d55e5bfc
RD
12195}
12196
12197
1bd55598
RD
12198SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12201 wxString result;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12211 }
12212 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 {
d55e5bfc 12220#if wxUSE_UNICODE
1bd55598 12221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12222#else
1bd55598 12223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12224#endif
1bd55598
RD
12225 }
12226 return resultobj;
12227fail:
12228 return NULL;
d55e5bfc
RD
12229}
12230
12231
1bd55598
RD
12232SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12233 PyObject *resultobj = 0;
12234 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 PyObject *swig_obj[1] ;
12238
12239 if (!args) SWIG_fail;
12240 swig_obj[0] = args;
12241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12242 if (!SWIG_IsOK(res1)) {
12243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12244 }
12245 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12246 {
12247 PyThreadState* __tstate = wxPyBeginAllowThreads();
12248 (arg1)->Clear();
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 resultobj = SWIG_Py_Void();
12253 return resultobj;
12254fail:
12255 return NULL;
12256}
12257
12258
12259SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj = 0;
12261 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12262 long arg2 ;
12263 long arg3 ;
12264 wxString *arg4 = 0 ;
12265 void *argp1 = 0 ;
12266 int res1 = 0 ;
12267 long val2 ;
12268 int ecode2 = 0 ;
12269 long val3 ;
12270 int ecode3 = 0 ;
12271 bool temp4 = false ;
12272 PyObject * obj0 = 0 ;
12273 PyObject * obj1 = 0 ;
12274 PyObject * obj2 = 0 ;
12275 PyObject * obj3 = 0 ;
12276 char * kwnames[] = {
2131d850 12277 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12278 };
12279
12280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12282 if (!SWIG_IsOK(res1)) {
12283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12284 }
12285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12286 ecode2 = SWIG_AsVal_long(obj1, &val2);
12287 if (!SWIG_IsOK(ecode2)) {
12288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12289 }
12290 arg2 = static_cast< long >(val2);
12291 ecode3 = SWIG_AsVal_long(obj2, &val3);
12292 if (!SWIG_IsOK(ecode3)) {
12293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12294 }
12295 arg3 = static_cast< long >(val3);
12296 {
12297 arg4 = wxString_in_helper(obj3);
12298 if (arg4 == NULL) SWIG_fail;
12299 temp4 = true;
12300 }
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 {
12309 if (temp4)
12310 delete arg4;
12311 }
12312 return resultobj;
12313fail:
12314 {
12315 if (temp4)
12316 delete arg4;
12317 }
12318 return NULL;
12319}
12320
12321
12322SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj = 0;
12324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12325 long arg2 ;
12326 long arg3 ;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 long val2 ;
12330 int ecode2 = 0 ;
12331 long val3 ;
12332 int ecode3 = 0 ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 PyObject * obj2 = 0 ;
12336 char * kwnames[] = {
2131d850 12337 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12338 };
12339
12340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12344 }
12345 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12346 ecode2 = SWIG_AsVal_long(obj1, &val2);
12347 if (!SWIG_IsOK(ecode2)) {
12348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12349 }
12350 arg2 = static_cast< long >(val2);
12351 ecode3 = SWIG_AsVal_long(obj2, &val3);
12352 if (!SWIG_IsOK(ecode3)) {
12353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12354 }
12355 arg3 = static_cast< long >(val3);
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 (arg1)->Remove(arg2,arg3);
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 }
12362 resultobj = SWIG_Py_Void();
12363 return resultobj;
12364fail:
12365 return NULL;
12366}
12367
12368
12369SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12370 PyObject *resultobj = 0;
12371 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12372 wxString *arg2 = 0 ;
12373 bool result;
12374 void *argp1 = 0 ;
12375 int res1 = 0 ;
12376 bool temp2 = false ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379 char * kwnames[] = {
12380 (char *) "self",(char *) "file", NULL
12381 };
12382
12383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12385 if (!SWIG_IsOK(res1)) {
12386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12387 }
12388 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12389 {
12390 arg2 = wxString_in_helper(obj1);
12391 if (arg2 == NULL) SWIG_fail;
12392 temp2 = true;
12393 }
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 {
12401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12402 }
12403 {
12404 if (temp2)
12405 delete arg2;
12406 }
12407 return resultobj;
12408fail:
12409 {
12410 if (temp2)
12411 delete arg2;
12412 }
12413 return NULL;
12414}
12415
12416
12417SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj = 0;
12419 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12420 wxString const &arg2_defvalue = wxPyEmptyString ;
12421 wxString *arg2 = (wxString *) &arg2_defvalue ;
12422 bool result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 bool temp2 = false ;
12426 PyObject * obj0 = 0 ;
12427 PyObject * obj1 = 0 ;
12428 char * kwnames[] = {
12429 (char *) "self",(char *) "file", NULL
12430 };
12431
12432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12434 if (!SWIG_IsOK(res1)) {
12435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12436 }
12437 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12438 if (obj1) {
d55e5bfc 12439 {
1bd55598
RD
12440 arg2 = wxString_in_helper(obj1);
12441 if (arg2 == NULL) SWIG_fail;
12442 temp2 = true;
d55e5bfc 12443 }
1bd55598
RD
12444 }
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 {
12452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12453 }
12454 {
12455 if (temp2)
12456 delete arg2;
12457 }
12458 return resultobj;
12459fail:
12460 {
12461 if (temp2)
12462 delete arg2;
12463 }
12464 return NULL;
d55e5bfc
RD
12465}
12466
12467
1bd55598
RD
12468SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12469 PyObject *resultobj = 0;
12470 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 PyObject *swig_obj[1] ;
12474
12475 if (!args) SWIG_fail;
12476 swig_obj[0] = args;
12477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12478 if (!SWIG_IsOK(res1)) {
12479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12480 }
12481 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 (arg1)->MarkDirty();
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 resultobj = SWIG_Py_Void();
12489 return resultobj;
12490fail:
12491 return NULL;
d55e5bfc
RD
12492}
12493
12494
1bd55598
RD
12495SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12496 PyObject *resultobj = 0;
12497 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 PyObject *swig_obj[1] ;
12501
12502 if (!args) SWIG_fail;
12503 swig_obj[0] = args;
12504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12507 }
12508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 (arg1)->DiscardEdits();
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 resultobj = SWIG_Py_Void();
12516 return resultobj;
12517fail:
12518 return NULL;
12519}
12520
12521
b02396e8
RD
12522SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12523 PyObject *resultobj = 0;
12524 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12525 bool arg2 ;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 bool val2 ;
12529 int ecode2 = 0 ;
12530 PyObject * obj0 = 0 ;
12531 PyObject * obj1 = 0 ;
12532 char * kwnames[] = {
12533 (char *) "self",(char *) "modified", NULL
12534 };
12535
12536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12538 if (!SWIG_IsOK(res1)) {
12539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12540 }
12541 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12542 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12543 if (!SWIG_IsOK(ecode2)) {
12544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12545 }
12546 arg2 = static_cast< bool >(val2);
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 (arg1)->SetModified(arg2);
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 resultobj = SWIG_Py_Void();
12554 return resultobj;
12555fail:
12556 return NULL;
12557}
12558
12559
1bd55598
RD
12560SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj = 0;
12562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12563 unsigned long arg2 ;
12564 void *argp1 = 0 ;
12565 int res1 = 0 ;
12566 unsigned long val2 ;
12567 int ecode2 = 0 ;
12568 PyObject * obj0 = 0 ;
12569 PyObject * obj1 = 0 ;
12570 char * kwnames[] = {
12571 (char *) "self",(char *) "len", NULL
12572 };
12573
12574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12578 }
12579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12580 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12581 if (!SWIG_IsOK(ecode2)) {
12582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12583 }
12584 arg2 = static_cast< unsigned long >(val2);
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 (arg1)->SetMaxLength(arg2);
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 resultobj = SWIG_Py_Void();
12592 return resultobj;
12593fail:
12594 return NULL;
12595}
12596
12597
12598SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj = 0;
12600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12601 wxString *arg2 = 0 ;
12602 void *argp1 = 0 ;
12603 int res1 = 0 ;
12604 bool temp2 = false ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char * kwnames[] = {
12608 (char *) "self",(char *) "text", NULL
12609 };
12610
12611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12613 if (!SWIG_IsOK(res1)) {
12614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12615 }
12616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12617 {
12618 arg2 = wxString_in_helper(obj1);
12619 if (arg2 == NULL) SWIG_fail;
12620 temp2 = true;
12621 }
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->WriteText((wxString const &)*arg2);
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 {
12630 if (temp2)
12631 delete arg2;
12632 }
12633 return resultobj;
12634fail:
12635 {
12636 if (temp2)
12637 delete arg2;
12638 }
12639 return NULL;
d55e5bfc
RD
12640}
12641
12642
1bd55598
RD
12643SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj = 0;
12645 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12646 wxString *arg2 = 0 ;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 bool temp2 = false ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char * kwnames[] = {
12653 (char *) "self",(char *) "text", NULL
12654 };
12655
12656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12660 }
12661 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = true;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 (arg1)->AppendText((wxString const &)*arg2);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 resultobj = SWIG_Py_Void();
12674 {
12675 if (temp2)
12676 delete arg2;
12677 }
12678 return resultobj;
12679fail:
12680 {
12681 if (temp2)
12682 delete arg2;
12683 }
12684 return NULL;
12685}
12686
12687
12688SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12689 PyObject *resultobj = 0;
12690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12691 wxKeyEvent *arg2 = 0 ;
12692 bool result;
12693 void *argp1 = 0 ;
12694 int res1 = 0 ;
12695 void *argp2 = 0 ;
12696 int res2 = 0 ;
12697 PyObject * obj0 = 0 ;
12698 PyObject * obj1 = 0 ;
12699 char * kwnames[] = {
12700 (char *) "self",(char *) "event", NULL
12701 };
12702
12703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12705 if (!SWIG_IsOK(res1)) {
12706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12707 }
12708 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12710 if (!SWIG_IsOK(res2)) {
12711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12712 }
12713 if (!argp2) {
12714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12715 }
12716 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 {
12724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12725 }
12726 return resultobj;
12727fail:
12728 return NULL;
12729}
12730
12731
12732SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12733 PyObject *resultobj = 0;
12734 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12735 long arg2 ;
12736 long arg3 ;
12737 wxTextAttr *arg4 = 0 ;
12738 bool result;
12739 void *argp1 = 0 ;
12740 int res1 = 0 ;
12741 long val2 ;
12742 int ecode2 = 0 ;
12743 long val3 ;
12744 int ecode3 = 0 ;
12745 void *argp4 = 0 ;
12746 int res4 = 0 ;
12747 PyObject * obj0 = 0 ;
12748 PyObject * obj1 = 0 ;
12749 PyObject * obj2 = 0 ;
12750 PyObject * obj3 = 0 ;
12751 char * kwnames[] = {
12752 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12753 };
12754
12755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12757 if (!SWIG_IsOK(res1)) {
12758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12759 }
12760 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12761 ecode2 = SWIG_AsVal_long(obj1, &val2);
12762 if (!SWIG_IsOK(ecode2)) {
12763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12764 }
12765 arg2 = static_cast< long >(val2);
12766 ecode3 = SWIG_AsVal_long(obj2, &val3);
12767 if (!SWIG_IsOK(ecode3)) {
12768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12769 }
12770 arg3 = static_cast< long >(val3);
12771 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12772 if (!SWIG_IsOK(res4)) {
12773 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12774 }
12775 if (!argp4) {
12776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12777 }
12778 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12779 {
12780 PyThreadState* __tstate = wxPyBeginAllowThreads();
12781 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12782 wxPyEndAllowThreads(__tstate);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 {
12786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12787 }
12788 return resultobj;
12789fail:
12790 return NULL;
12791}
12792
12793
12794SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj = 0;
12796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12797 long arg2 ;
12798 wxTextAttr *arg3 = 0 ;
12799 bool result;
12800 void *argp1 = 0 ;
12801 int res1 = 0 ;
12802 long val2 ;
12803 int ecode2 = 0 ;
12804 void *argp3 = 0 ;
12805 int res3 = 0 ;
12806 PyObject * obj0 = 0 ;
12807 PyObject * obj1 = 0 ;
12808 PyObject * obj2 = 0 ;
12809 char * kwnames[] = {
12810 (char *) "self",(char *) "position",(char *) "style", NULL
12811 };
12812
12813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12815 if (!SWIG_IsOK(res1)) {
12816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12817 }
12818 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12819 ecode2 = SWIG_AsVal_long(obj1, &val2);
12820 if (!SWIG_IsOK(ecode2)) {
12821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12822 }
12823 arg2 = static_cast< long >(val2);
12824 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12825 if (!SWIG_IsOK(res3)) {
12826 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12827 }
12828 if (!argp3) {
12829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12830 }
12831 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12835 wxPyEndAllowThreads(__tstate);
12836 if (PyErr_Occurred()) SWIG_fail;
12837 }
12838 {
12839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12840 }
12841 return resultobj;
12842fail:
12843 return NULL;
12844}
12845
12846
12847SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12848 PyObject *resultobj = 0;
12849 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12850 wxTextAttr *arg2 = 0 ;
12851 bool result;
12852 void *argp1 = 0 ;
12853 int res1 = 0 ;
12854 void *argp2 = 0 ;
12855 int res2 = 0 ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char * kwnames[] = {
12859 (char *) "self",(char *) "style", NULL
12860 };
12861
12862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12866 }
12867 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12869 if (!SWIG_IsOK(res2)) {
12870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12871 }
12872 if (!argp2) {
12873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12874 }
12875 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12879 wxPyEndAllowThreads(__tstate);
12880 if (PyErr_Occurred()) SWIG_fail;
12881 }
12882 {
12883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12884 }
12885 return resultobj;
12886fail:
12887 return NULL;
d55e5bfc
RD
12888}
12889
12890
1bd55598
RD
12891SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12892 PyObject *resultobj = 0;
12893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12894 wxTextAttr *result = 0 ;
12895 void *argp1 = 0 ;
12896 int res1 = 0 ;
12897 PyObject *swig_obj[1] ;
12898
12899 if (!args) SWIG_fail;
12900 swig_obj[0] = args;
12901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12902 if (!SWIG_IsOK(res1)) {
12903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12904 }
12905 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12908 {
1bd55598
RD
12909 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12910 result = (wxTextAttr *) &_result_ref;
d55e5bfc 12911 }
1bd55598
RD
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12916 return resultobj;
12917fail:
12918 return NULL;
12919}
12920
12921
12922SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj = 0;
12924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12925 long arg2 ;
12926 long arg3 ;
12927 long result;
12928 void *argp1 = 0 ;
12929 int res1 = 0 ;
12930 long val2 ;
12931 int ecode2 = 0 ;
12932 long val3 ;
12933 int ecode3 = 0 ;
12934 PyObject * obj0 = 0 ;
12935 PyObject * obj1 = 0 ;
12936 PyObject * obj2 = 0 ;
12937 char * kwnames[] = {
12938 (char *) "self",(char *) "x",(char *) "y", NULL
12939 };
12940
12941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12943 if (!SWIG_IsOK(res1)) {
12944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12945 }
12946 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12947 ecode2 = SWIG_AsVal_long(obj1, &val2);
12948 if (!SWIG_IsOK(ecode2)) {
12949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12950 }
12951 arg2 = static_cast< long >(val2);
12952 ecode3 = SWIG_AsVal_long(obj2, &val3);
12953 if (!SWIG_IsOK(ecode3)) {
12954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12955 }
12956 arg3 = static_cast< long >(val3);
12957 {
12958 PyThreadState* __tstate = wxPyBeginAllowThreads();
12959 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 resultobj = SWIG_From_long(static_cast< long >(result));
12964 return resultobj;
12965fail:
12966 return NULL;
12967}
12968
12969
12970SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj = 0;
12972 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12973 long arg2 ;
12974 long *arg3 = (long *) 0 ;
12975 long *arg4 = (long *) 0 ;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 long val2 ;
12979 int ecode2 = 0 ;
12980 long temp3 ;
12981 int res3 = SWIG_TMPOBJ ;
12982 long temp4 ;
12983 int res4 = SWIG_TMPOBJ ;
12984 PyObject * obj0 = 0 ;
12985 PyObject * obj1 = 0 ;
12986 char * kwnames[] = {
12987 (char *) "self",(char *) "pos", NULL
12988 };
12989
12990 arg3 = &temp3;
12991 arg4 = &temp4;
12992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12994 if (!SWIG_IsOK(res1)) {
12995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12996 }
12997 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12998 ecode2 = SWIG_AsVal_long(obj1, &val2);
12999 if (!SWIG_IsOK(ecode2)) {
13000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13001 }
13002 arg2 = static_cast< long >(val2);
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
13005 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_Py_Void();
13010 if (SWIG_IsTmpObj(res3)) {
13011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13012 } else {
13013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13015 }
13016 if (SWIG_IsTmpObj(res4)) {
13017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13018 } else {
13019 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13021 }
13022 return resultobj;
13023fail:
13024 return NULL;
13025}
13026
13027
13028SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13029 PyObject *resultobj = 0;
13030 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13031 long arg2 ;
13032 void *argp1 = 0 ;
13033 int res1 = 0 ;
13034 long val2 ;
13035 int ecode2 = 0 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 char * kwnames[] = {
13039 (char *) "self",(char *) "pos", NULL
13040 };
13041
13042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13044 if (!SWIG_IsOK(res1)) {
13045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13046 }
13047 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13048 ecode2 = SWIG_AsVal_long(obj1, &val2);
13049 if (!SWIG_IsOK(ecode2)) {
13050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13051 }
13052 arg2 = static_cast< long >(val2);
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 (arg1)->ShowPosition(arg2);
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 resultobj = SWIG_Py_Void();
13060 return resultobj;
13061fail:
13062 return NULL;
13063}
13064
13065
13066SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj = 0;
13068 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13069 wxPoint *arg2 = 0 ;
13070 long *arg3 = (long *) 0 ;
13071 long *arg4 = (long *) 0 ;
13072 wxTextCtrlHitTestResult result;
13073 void *argp1 = 0 ;
13074 int res1 = 0 ;
13075 wxPoint temp2 ;
13076 long temp3 ;
13077 int res3 = SWIG_TMPOBJ ;
13078 long temp4 ;
13079 int res4 = SWIG_TMPOBJ ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char * kwnames[] = {
13083 (char *) "self",(char *) "pt", NULL
13084 };
13085
13086 arg3 = &temp3;
13087 arg4 = &temp4;
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13092 }
13093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13094 {
13095 arg2 = &temp2;
13096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13097 }
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_From_int(static_cast< int >(result));
13105 if (SWIG_IsTmpObj(res3)) {
13106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13107 } else {
13108 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13110 }
13111 if (SWIG_IsTmpObj(res4)) {
13112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13113 } else {
13114 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13116 }
13117 return resultobj;
13118fail:
13119 return NULL;
13120}
13121
13122
13123SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj = 0;
13125 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13126 wxPoint *arg2 = 0 ;
13127 long *arg3 = (long *) 0 ;
13128 wxTextCtrlHitTestResult result;
13129 void *argp1 = 0 ;
13130 int res1 = 0 ;
13131 wxPoint temp2 ;
13132 long temp3 ;
13133 int res3 = SWIG_TMPOBJ ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 char * kwnames[] = {
13137 (char *) "self",(char *) "pt", NULL
13138 };
13139
13140 arg3 = &temp3;
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13145 }
13146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13147 {
13148 arg2 = &temp2;
13149 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13150 }
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
13157 resultobj = SWIG_From_int(static_cast< int >(result));
13158 if (SWIG_IsTmpObj(res3)) {
13159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13160 } else {
13161 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13163 }
13164 return resultobj;
13165fail:
13166 return NULL;
d55e5bfc
RD
13167}
13168
13169
1bd55598
RD
13170SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13171 PyObject *resultobj = 0;
13172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13173 void *argp1 = 0 ;
13174 int res1 = 0 ;
13175 PyObject *swig_obj[1] ;
13176
13177 if (!args) SWIG_fail;
13178 swig_obj[0] = args;
13179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13180 if (!SWIG_IsOK(res1)) {
13181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13182 }
13183 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13184 {
13185 PyThreadState* __tstate = wxPyBeginAllowThreads();
13186 (arg1)->Copy();
13187 wxPyEndAllowThreads(__tstate);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 resultobj = SWIG_Py_Void();
13191 return resultobj;
13192fail:
13193 return NULL;
d55e5bfc
RD
13194}
13195
13196
1bd55598
RD
13197SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13198 PyObject *resultobj = 0;
13199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 PyObject *swig_obj[1] ;
13203
13204 if (!args) SWIG_fail;
13205 swig_obj[0] = args;
13206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13207 if (!SWIG_IsOK(res1)) {
13208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13209 }
13210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 (arg1)->Cut();
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 resultobj = SWIG_Py_Void();
13218 return resultobj;
13219fail:
13220 return NULL;
d55e5bfc
RD
13221}
13222
13223
1bd55598
RD
13224SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 PyObject *swig_obj[1] ;
13230
13231 if (!args) SWIG_fail;
13232 swig_obj[0] = args;
13233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13234 if (!SWIG_IsOK(res1)) {
13235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13236 }
13237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 (arg1)->Paste();
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 resultobj = SWIG_Py_Void();
13245 return resultobj;
13246fail:
13247 return NULL;
d55e5bfc
RD
13248}
13249
13250
1bd55598
RD
13251SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13252 PyObject *resultobj = 0;
13253 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13254 bool result;
13255 void *argp1 = 0 ;
13256 int res1 = 0 ;
13257 PyObject *swig_obj[1] ;
13258
13259 if (!args) SWIG_fail;
13260 swig_obj[0] = args;
13261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13262 if (!SWIG_IsOK(res1)) {
13263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13264 }
13265 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 {
13273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13274 }
13275 return resultobj;
13276fail:
13277 return NULL;
d55e5bfc
RD
13278}
13279
13280
1bd55598
RD
13281SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13282 PyObject *resultobj = 0;
13283 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13284 bool result;
13285 void *argp1 = 0 ;
13286 int res1 = 0 ;
13287 PyObject *swig_obj[1] ;
13288
13289 if (!args) SWIG_fail;
13290 swig_obj[0] = args;
13291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13292 if (!SWIG_IsOK(res1)) {
13293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13294 }
13295 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 {
13303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13304 }
13305 return resultobj;
13306fail:
13307 return NULL;
d55e5bfc
RD
13308}
13309
13310
1bd55598
RD
13311SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13312 PyObject *resultobj = 0;
13313 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13314 bool result;
13315 void *argp1 = 0 ;
13316 int res1 = 0 ;
13317 PyObject *swig_obj[1] ;
13318
13319 if (!args) SWIG_fail;
13320 swig_obj[0] = args;
13321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13324 }
13325 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13326 {
13327 PyThreadState* __tstate = wxPyBeginAllowThreads();
13328 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13329 wxPyEndAllowThreads(__tstate);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 }
13332 {
13333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13334 }
13335 return resultobj;
13336fail:
13337 return NULL;
d55e5bfc
RD
13338}
13339
13340
1bd55598
RD
13341SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13342 PyObject *resultobj = 0;
13343 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13344 void *argp1 = 0 ;
13345 int res1 = 0 ;
13346 PyObject *swig_obj[1] ;
13347
13348 if (!args) SWIG_fail;
13349 swig_obj[0] = args;
13350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13351 if (!SWIG_IsOK(res1)) {
13352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13353 }
13354 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13355 {
13356 PyThreadState* __tstate = wxPyBeginAllowThreads();
13357 (arg1)->Undo();
13358 wxPyEndAllowThreads(__tstate);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 resultobj = SWIG_Py_Void();
13362 return resultobj;
13363fail:
13364 return NULL;
d55e5bfc
RD
13365}
13366
13367
1bd55598
RD
13368SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13369 PyObject *resultobj = 0;
13370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13371 void *argp1 = 0 ;
13372 int res1 = 0 ;
13373 PyObject *swig_obj[1] ;
13374
13375 if (!args) SWIG_fail;
13376 swig_obj[0] = args;
13377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13378 if (!SWIG_IsOK(res1)) {
13379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13380 }
13381 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 (arg1)->Redo();
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 resultobj = SWIG_Py_Void();
13389 return resultobj;
13390fail:
13391 return NULL;
d55e5bfc
RD
13392}
13393
13394
1bd55598
RD
13395SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13396 PyObject *resultobj = 0;
13397 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13398 bool result;
13399 void *argp1 = 0 ;
13400 int res1 = 0 ;
13401 PyObject *swig_obj[1] ;
13402
13403 if (!args) SWIG_fail;
13404 swig_obj[0] = args;
13405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13406 if (!SWIG_IsOK(res1)) {
13407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13408 }
13409 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13410 {
13411 PyThreadState* __tstate = wxPyBeginAllowThreads();
13412 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 {
13417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13418 }
13419 return resultobj;
13420fail:
13421 return NULL;
d55e5bfc
RD
13422}
13423
13424
1bd55598
RD
13425SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13426 PyObject *resultobj = 0;
13427 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13428 bool result;
13429 void *argp1 = 0 ;
13430 int res1 = 0 ;
13431 PyObject *swig_obj[1] ;
13432
13433 if (!args) SWIG_fail;
13434 swig_obj[0] = args;
13435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13436 if (!SWIG_IsOK(res1)) {
13437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13438 }
13439 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13440 {
13441 PyThreadState* __tstate = wxPyBeginAllowThreads();
13442 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 {
13447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13448 }
13449 return resultobj;
13450fail:
13451 return NULL;
13452}
13453
13454
13455SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13456 PyObject *resultobj = 0;
13457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13458 long arg2 ;
13459 void *argp1 = 0 ;
13460 int res1 = 0 ;
13461 long val2 ;
13462 int ecode2 = 0 ;
13463 PyObject * obj0 = 0 ;
13464 PyObject * obj1 = 0 ;
13465 char * kwnames[] = {
13466 (char *) "self",(char *) "pos", NULL
13467 };
13468
13469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13471 if (!SWIG_IsOK(res1)) {
13472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13473 }
13474 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13475 ecode2 = SWIG_AsVal_long(obj1, &val2);
13476 if (!SWIG_IsOK(ecode2)) {
13477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13478 }
13479 arg2 = static_cast< long >(val2);
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->SetInsertionPoint(arg2);
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_Py_Void();
13487 return resultobj;
13488fail:
13489 return NULL;
d55e5bfc
RD
13490}
13491
13492
1bd55598
RD
13493SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13494 PyObject *resultobj = 0;
13495 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13505 }
13506 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 (arg1)->SetInsertionPointEnd();
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 resultobj = SWIG_Py_Void();
13514 return resultobj;
13515fail:
13516 return NULL;
d55e5bfc
RD
13517}
13518
13519
1bd55598
RD
13520SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13521 PyObject *resultobj = 0;
13522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13523 long result;
13524 void *argp1 = 0 ;
13525 int res1 = 0 ;
13526 PyObject *swig_obj[1] ;
13527
13528 if (!args) SWIG_fail;
13529 swig_obj[0] = args;
13530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13531 if (!SWIG_IsOK(res1)) {
13532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13533 }
13534 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13535 {
13536 PyThreadState* __tstate = wxPyBeginAllowThreads();
13537 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13538 wxPyEndAllowThreads(__tstate);
13539 if (PyErr_Occurred()) SWIG_fail;
13540 }
13541 resultobj = SWIG_From_long(static_cast< long >(result));
13542 return resultobj;
13543fail:
13544 return NULL;
d55e5bfc
RD
13545}
13546
13547
1bd55598
RD
13548SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13549 PyObject *resultobj = 0;
13550 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13551 long result;
13552 void *argp1 = 0 ;
13553 int res1 = 0 ;
13554 PyObject *swig_obj[1] ;
13555
13556 if (!args) SWIG_fail;
13557 swig_obj[0] = args;
13558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13559 if (!SWIG_IsOK(res1)) {
13560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13561 }
13562 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 resultobj = SWIG_From_long(static_cast< long >(result));
13570 return resultobj;
13571fail:
13572 return NULL;
13573}
13574
13575
13576SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj = 0;
13578 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13579 long arg2 ;
13580 long arg3 ;
13581 void *argp1 = 0 ;
13582 int res1 = 0 ;
13583 long val2 ;
13584 int ecode2 = 0 ;
13585 long val3 ;
13586 int ecode3 = 0 ;
13587 PyObject * obj0 = 0 ;
13588 PyObject * obj1 = 0 ;
13589 PyObject * obj2 = 0 ;
13590 char * kwnames[] = {
2131d850 13591 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13592 };
13593
13594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13596 if (!SWIG_IsOK(res1)) {
13597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13598 }
13599 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13600 ecode2 = SWIG_AsVal_long(obj1, &val2);
13601 if (!SWIG_IsOK(ecode2)) {
13602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13603 }
13604 arg2 = static_cast< long >(val2);
13605 ecode3 = SWIG_AsVal_long(obj2, &val3);
13606 if (!SWIG_IsOK(ecode3)) {
13607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13608 }
13609 arg3 = static_cast< long >(val3);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 (arg1)->SetSelection(arg2,arg3);
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_Py_Void();
13617 return resultobj;
13618fail:
13619 return NULL;
d55e5bfc
RD
13620}
13621
13622
1bd55598
RD
13623SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13624 PyObject *resultobj = 0;
13625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13626 void *argp1 = 0 ;
13627 int res1 = 0 ;
13628 PyObject *swig_obj[1] ;
13629
13630 if (!args) SWIG_fail;
13631 swig_obj[0] = args;
13632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13633 if (!SWIG_IsOK(res1)) {
13634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13635 }
13636 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 (arg1)->SelectAll();
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_Py_Void();
13644 return resultobj;
13645fail:
13646 return NULL;
13647}
13648
13649
13650SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj = 0;
13652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13653 bool arg2 ;
13654 void *argp1 = 0 ;
13655 int res1 = 0 ;
13656 bool val2 ;
13657 int ecode2 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 char * kwnames[] = {
13661 (char *) "self",(char *) "editable", NULL
13662 };
13663
13664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13666 if (!SWIG_IsOK(res1)) {
13667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13668 }
13669 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13670 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13671 if (!SWIG_IsOK(ecode2)) {
13672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13673 }
13674 arg2 = static_cast< bool >(val2);
13675 {
13676 PyThreadState* __tstate = wxPyBeginAllowThreads();
13677 (arg1)->SetEditable(arg2);
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 resultobj = SWIG_Py_Void();
13682 return resultobj;
13683fail:
13684 return NULL;
13685}
13686
13687
13688SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13689 PyObject *resultobj = 0;
13690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13691 wxString *arg2 = 0 ;
13692 void *argp1 = 0 ;
13693 int res1 = 0 ;
13694 bool temp2 = false ;
13695 PyObject * obj0 = 0 ;
13696 PyObject * obj1 = 0 ;
13697 char * kwnames[] = {
13698 (char *) "self",(char *) "text", NULL
13699 };
13700
13701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13703 if (!SWIG_IsOK(res1)) {
13704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13705 }
13706 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13707 {
13708 arg2 = wxString_in_helper(obj1);
13709 if (arg2 == NULL) SWIG_fail;
13710 temp2 = true;
13711 }
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 {
13720 if (temp2)
13721 delete arg2;
13722 }
13723 return resultobj;
13724fail:
13725 {
13726 if (temp2)
13727 delete arg2;
13728 }
13729 return NULL;
13730}
13731
13732
13733SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13734 PyObject *resultobj = 0;
13735 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13736 long arg2 ;
13737 long arg3 ;
13738 wxString result;
13739 void *argp1 = 0 ;
13740 int res1 = 0 ;
13741 long val2 ;
13742 int ecode2 = 0 ;
13743 long val3 ;
13744 int ecode3 = 0 ;
13745 PyObject * obj0 = 0 ;
13746 PyObject * obj1 = 0 ;
13747 PyObject * obj2 = 0 ;
13748 char * kwnames[] = {
2131d850 13749 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13750 };
13751
13752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13754 if (!SWIG_IsOK(res1)) {
13755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13756 }
13757 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13758 ecode2 = SWIG_AsVal_long(obj1, &val2);
13759 if (!SWIG_IsOK(ecode2)) {
13760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13761 }
13762 arg2 = static_cast< long >(val2);
13763 ecode3 = SWIG_AsVal_long(obj2, &val3);
13764 if (!SWIG_IsOK(ecode3)) {
13765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13766 }
13767 arg3 = static_cast< long >(val3);
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 {
13775#if wxUSE_UNICODE
13776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13777#else
13778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13779#endif
13780 }
13781 return resultobj;
13782fail:
13783 return NULL;
d55e5bfc
RD
13784}
13785
13786
1bd55598
RD
13787SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj = 0;
13789 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13790 SwigValueWrapper<wxVisualAttributes > result;
13791 int val1 ;
13792 int ecode1 = 0 ;
13793 PyObject * obj0 = 0 ;
13794 char * kwnames[] = {
13795 (char *) "variant", NULL
13796 };
13797
13798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13799 if (obj0) {
13800 ecode1 = SWIG_AsVal_int(obj0, &val1);
13801 if (!SWIG_IsOK(ecode1)) {
13802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13803 }
13804 arg1 = static_cast< wxWindowVariant >(val1);
13805 }
13806 {
13807 if (!wxPyCheckForApp()) SWIG_fail;
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13810 wxPyEndAllowThreads(__tstate);
13811 if (PyErr_Occurred()) SWIG_fail;
13812 }
13813 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13814 return resultobj;
13815fail:
13816 return NULL;
13817}
13818
13819
13820SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13821 PyObject *obj;
13822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13823 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13824 return SWIG_Py_Void();
13825}
13826
13827SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13828 return SWIG_Python_InitShadowInstance(args);
13829}
13830
13831SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13832 PyObject *resultobj = 0;
13833 int arg1 ;
13834 wxMouseEvent *arg2 = 0 ;
13835 long arg3 ;
13836 long arg4 ;
13837 wxTextUrlEvent *result = 0 ;
13838 int val1 ;
13839 int ecode1 = 0 ;
13840 void *argp2 = 0 ;
13841 int res2 = 0 ;
13842 long val3 ;
13843 int ecode3 = 0 ;
13844 long val4 ;
13845 int ecode4 = 0 ;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 PyObject * obj2 = 0 ;
13849 PyObject * obj3 = 0 ;
13850 char * kwnames[] = {
13851 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13852 };
13853
13854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13855 ecode1 = SWIG_AsVal_int(obj0, &val1);
13856 if (!SWIG_IsOK(ecode1)) {
13857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13858 }
13859 arg1 = static_cast< int >(val1);
13860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13861 if (!SWIG_IsOK(res2)) {
13862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13863 }
13864 if (!argp2) {
13865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13866 }
13867 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13868 ecode3 = SWIG_AsVal_long(obj2, &val3);
13869 if (!SWIG_IsOK(ecode3)) {
13870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13871 }
13872 arg3 = static_cast< long >(val3);
13873 ecode4 = SWIG_AsVal_long(obj3, &val4);
13874 if (!SWIG_IsOK(ecode4)) {
13875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13876 }
13877 arg4 = static_cast< long >(val4);
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13885 return resultobj;
13886fail:
13887 return NULL;
d55e5bfc
RD
13888}
13889
13890
1bd55598
RD
13891SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13892 PyObject *resultobj = 0;
13893 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13894 wxMouseEvent *result = 0 ;
13895 void *argp1 = 0 ;
13896 int res1 = 0 ;
13897 PyObject *swig_obj[1] ;
13898
13899 if (!args) SWIG_fail;
13900 swig_obj[0] = args;
13901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13902 if (!SWIG_IsOK(res1)) {
13903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13904 }
13905 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13908 {
1bd55598
RD
13909 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13910 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 13911 }
1bd55598
RD
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13916 return resultobj;
13917fail:
13918 return NULL;
d55e5bfc
RD
13919}
13920
13921
1bd55598
RD
13922SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13923 PyObject *resultobj = 0;
13924 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13925 long result;
13926 void *argp1 = 0 ;
13927 int res1 = 0 ;
13928 PyObject *swig_obj[1] ;
13929
13930 if (!args) SWIG_fail;
13931 swig_obj[0] = args;
13932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13933 if (!SWIG_IsOK(res1)) {
13934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13935 }
13936 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13937 {
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13940 wxPyEndAllowThreads(__tstate);
13941 if (PyErr_Occurred()) SWIG_fail;
13942 }
13943 resultobj = SWIG_From_long(static_cast< long >(result));
13944 return resultobj;
13945fail:
13946 return NULL;
d55e5bfc
RD
13947}
13948
13949
1bd55598
RD
13950SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13951 PyObject *resultobj = 0;
13952 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13953 long result;
13954 void *argp1 = 0 ;
13955 int res1 = 0 ;
13956 PyObject *swig_obj[1] ;
13957
13958 if (!args) SWIG_fail;
13959 swig_obj[0] = args;
13960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13961 if (!SWIG_IsOK(res1)) {
13962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13963 }
13964 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 resultobj = SWIG_From_long(static_cast< long >(result));
13972 return resultobj;
13973fail:
13974 return NULL;
d55e5bfc
RD
13975}
13976
13977
1bd55598
RD
13978SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13979 PyObject *obj;
13980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13981 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13982 return SWIG_Py_Void();
68e533f8
RD
13983}
13984
1bd55598
RD
13985SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13986 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13987}
13988
1bd55598
RD
13989SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13990 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13991 return 1;
d55e5bfc
RD
13992}
13993
13994
1bd55598
RD
13995SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13996 PyObject *pyobj = 0;
13997
13998 {
13999#if wxUSE_UNICODE
14000 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14001#else
14002 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14003#endif
14004 }
14005 return pyobj;
14006}
14007
14008
14009SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14010 PyObject *resultobj = 0;
14011 wxWindow *arg1 = (wxWindow *) 0 ;
14012 int arg2 = (int) -1 ;
14013 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14014 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14015 wxSize const &arg4_defvalue = wxDefaultSize ;
14016 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14017 long arg5 = (long) wxSB_HORIZONTAL ;
14018 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14019 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14020 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14021 wxString *arg7 = (wxString *) &arg7_defvalue ;
14022 wxScrollBar *result = 0 ;
14023 void *argp1 = 0 ;
14024 int res1 = 0 ;
14025 int val2 ;
14026 int ecode2 = 0 ;
14027 wxPoint temp3 ;
14028 wxSize temp4 ;
14029 long val5 ;
14030 int ecode5 = 0 ;
14031 void *argp6 = 0 ;
14032 int res6 = 0 ;
14033 bool temp7 = false ;
14034 PyObject * obj0 = 0 ;
14035 PyObject * obj1 = 0 ;
14036 PyObject * obj2 = 0 ;
14037 PyObject * obj3 = 0 ;
14038 PyObject * obj4 = 0 ;
14039 PyObject * obj5 = 0 ;
14040 PyObject * obj6 = 0 ;
14041 char * kwnames[] = {
14042 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14043 };
14044
14045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14047 if (!SWIG_IsOK(res1)) {
14048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14049 }
14050 arg1 = reinterpret_cast< wxWindow * >(argp1);
14051 if (obj1) {
14052 ecode2 = SWIG_AsVal_int(obj1, &val2);
14053 if (!SWIG_IsOK(ecode2)) {
14054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14055 }
14056 arg2 = static_cast< int >(val2);
14057 }
14058 if (obj2) {
d55e5bfc 14059 {
1bd55598
RD
14060 arg3 = &temp3;
14061 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14062 }
1bd55598
RD
14063 }
14064 if (obj3) {
36ed4f51 14065 {
1bd55598
RD
14066 arg4 = &temp4;
14067 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14068 }
1bd55598
RD
14069 }
14070 if (obj4) {
14071 ecode5 = SWIG_AsVal_long(obj4, &val5);
14072 if (!SWIG_IsOK(ecode5)) {
14073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14074 }
14075 arg5 = static_cast< long >(val5);
14076 }
14077 if (obj5) {
14078 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14079 if (!SWIG_IsOK(res6)) {
14080 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14081 }
1bd55598
RD
14082 if (!argp6) {
14083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14084 }
1bd55598
RD
14085 arg6 = reinterpret_cast< wxValidator * >(argp6);
14086 }
14087 if (obj6) {
d55e5bfc 14088 {
1bd55598
RD
14089 arg7 = wxString_in_helper(obj6);
14090 if (arg7 == NULL) SWIG_fail;
14091 temp7 = true;
d55e5bfc 14092 }
1bd55598
RD
14093 }
14094 {
14095 if (!wxPyCheckForApp()) SWIG_fail;
14096 PyThreadState* __tstate = wxPyBeginAllowThreads();
14097 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14102 {
14103 if (temp7)
14104 delete arg7;
14105 }
14106 return resultobj;
14107fail:
14108 {
14109 if (temp7)
14110 delete arg7;
14111 }
14112 return NULL;
d55e5bfc
RD
14113}
14114
14115
1bd55598
RD
14116SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14117 PyObject *resultobj = 0;
14118 wxScrollBar *result = 0 ;
14119
14120 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14121 {
14122 if (!wxPyCheckForApp()) SWIG_fail;
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = (wxScrollBar *)new wxScrollBar();
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14129 return resultobj;
14130fail:
14131 return NULL;
14132}
14133
14134
14135SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14136 PyObject *resultobj = 0;
14137 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14138 wxWindow *arg2 = (wxWindow *) 0 ;
14139 int arg3 = (int) -1 ;
14140 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14141 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14142 wxSize const &arg5_defvalue = wxDefaultSize ;
14143 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14144 long arg6 = (long) wxSB_HORIZONTAL ;
14145 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14146 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14147 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14148 wxString *arg8 = (wxString *) &arg8_defvalue ;
14149 bool result;
14150 void *argp1 = 0 ;
14151 int res1 = 0 ;
14152 void *argp2 = 0 ;
14153 int res2 = 0 ;
14154 int val3 ;
14155 int ecode3 = 0 ;
14156 wxPoint temp4 ;
14157 wxSize temp5 ;
14158 long val6 ;
14159 int ecode6 = 0 ;
14160 void *argp7 = 0 ;
14161 int res7 = 0 ;
14162 bool temp8 = false ;
14163 PyObject * obj0 = 0 ;
14164 PyObject * obj1 = 0 ;
14165 PyObject * obj2 = 0 ;
14166 PyObject * obj3 = 0 ;
14167 PyObject * obj4 = 0 ;
14168 PyObject * obj5 = 0 ;
14169 PyObject * obj6 = 0 ;
14170 PyObject * obj7 = 0 ;
14171 char * kwnames[] = {
14172 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14173 };
14174
14175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14177 if (!SWIG_IsOK(res1)) {
14178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14179 }
14180 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14181 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14182 if (!SWIG_IsOK(res2)) {
14183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14184 }
14185 arg2 = reinterpret_cast< wxWindow * >(argp2);
14186 if (obj2) {
14187 ecode3 = SWIG_AsVal_int(obj2, &val3);
14188 if (!SWIG_IsOK(ecode3)) {
14189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14190 }
14191 arg3 = static_cast< int >(val3);
14192 }
14193 if (obj3) {
d55e5bfc 14194 {
1bd55598
RD
14195 arg4 = &temp4;
14196 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14197 }
1bd55598
RD
14198 }
14199 if (obj4) {
d55e5bfc 14200 {
1bd55598
RD
14201 arg5 = &temp5;
14202 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14203 }
1bd55598
RD
14204 }
14205 if (obj5) {
14206 ecode6 = SWIG_AsVal_long(obj5, &val6);
14207 if (!SWIG_IsOK(ecode6)) {
14208 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14209 }
14210 arg6 = static_cast< long >(val6);
14211 }
14212 if (obj6) {
14213 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14214 if (!SWIG_IsOK(res7)) {
14215 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14216 }
1bd55598
RD
14217 if (!argp7) {
14218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14219 }
1bd55598
RD
14220 arg7 = reinterpret_cast< wxValidator * >(argp7);
14221 }
14222 if (obj7) {
d55e5bfc 14223 {
1bd55598
RD
14224 arg8 = wxString_in_helper(obj7);
14225 if (arg8 == NULL) SWIG_fail;
14226 temp8 = true;
d55e5bfc 14227 }
1bd55598
RD
14228 }
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14232 wxPyEndAllowThreads(__tstate);
14233 if (PyErr_Occurred()) SWIG_fail;
14234 }
14235 {
14236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14237 }
14238 {
14239 if (temp8)
14240 delete arg8;
14241 }
14242 return resultobj;
14243fail:
14244 {
14245 if (temp8)
14246 delete arg8;
14247 }
14248 return NULL;
d55e5bfc
RD
14249}
14250
14251
1bd55598
RD
14252SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14253 PyObject *resultobj = 0;
14254 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14255 int result;
14256 void *argp1 = 0 ;
14257 int res1 = 0 ;
14258 PyObject *swig_obj[1] ;
14259
14260 if (!args) SWIG_fail;
14261 swig_obj[0] = args;
14262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14263 if (!SWIG_IsOK(res1)) {
14264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14265 }
14266 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 resultobj = SWIG_From_int(static_cast< int >(result));
14274 return resultobj;
14275fail:
14276 return NULL;
d55e5bfc
RD
14277}
14278
14279
1bd55598
RD
14280SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14281 PyObject *resultobj = 0;
14282 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14283 int result;
14284 void *argp1 = 0 ;
14285 int res1 = 0 ;
14286 PyObject *swig_obj[1] ;
14287
14288 if (!args) SWIG_fail;
14289 swig_obj[0] = args;
14290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14291 if (!SWIG_IsOK(res1)) {
14292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14293 }
14294 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14295 {
14296 PyThreadState* __tstate = wxPyBeginAllowThreads();
14297 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14298 wxPyEndAllowThreads(__tstate);
14299 if (PyErr_Occurred()) SWIG_fail;
14300 }
14301 resultobj = SWIG_From_int(static_cast< int >(result));
14302 return resultobj;
14303fail:
14304 return NULL;
d55e5bfc
RD
14305}
14306
14307
1bd55598
RD
14308SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14309 PyObject *resultobj = 0;
14310 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14311 int result;
14312 void *argp1 = 0 ;
14313 int res1 = 0 ;
14314 PyObject *swig_obj[1] ;
14315
14316 if (!args) SWIG_fail;
14317 swig_obj[0] = args;
14318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14319 if (!SWIG_IsOK(res1)) {
14320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14321 }
14322 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 resultobj = SWIG_From_int(static_cast< int >(result));
14330 return resultobj;
14331fail:
14332 return NULL;
d55e5bfc
RD
14333}
14334
14335
1bd55598
RD
14336SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14337 PyObject *resultobj = 0;
14338 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14339 int result;
14340 void *argp1 = 0 ;
14341 int res1 = 0 ;
14342 PyObject *swig_obj[1] ;
14343
14344 if (!args) SWIG_fail;
14345 swig_obj[0] = args;
14346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14347 if (!SWIG_IsOK(res1)) {
14348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14349 }
14350 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (int)((wxScrollBar const *)arg1)->GetRange();
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 resultobj = SWIG_From_int(static_cast< int >(result));
14358 return resultobj;
14359fail:
14360 return NULL;
d55e5bfc
RD
14361}
14362
14363
1bd55598
RD
14364SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14365 PyObject *resultobj = 0;
14366 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14367 bool result;
14368 void *argp1 = 0 ;
14369 int res1 = 0 ;
14370 PyObject *swig_obj[1] ;
14371
14372 if (!args) SWIG_fail;
14373 swig_obj[0] = args;
14374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14375 if (!SWIG_IsOK(res1)) {
14376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14377 }
14378 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 {
14386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14387 }
14388 return resultobj;
14389fail:
14390 return NULL;
14391}
14392
14393
14394SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = 0;
14396 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14397 int arg2 ;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 int val2 ;
14401 int ecode2 = 0 ;
14402 PyObject * obj0 = 0 ;
14403 PyObject * obj1 = 0 ;
14404 char * kwnames[] = {
14405 (char *) "self",(char *) "viewStart", NULL
14406 };
14407
14408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14410 if (!SWIG_IsOK(res1)) {
14411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14412 }
14413 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14414 ecode2 = SWIG_AsVal_int(obj1, &val2);
14415 if (!SWIG_IsOK(ecode2)) {
14416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14417 }
14418 arg2 = static_cast< int >(val2);
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 (arg1)->SetThumbPosition(arg2);
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 resultobj = SWIG_Py_Void();
14426 return resultobj;
14427fail:
14428 return NULL;
14429}
14430
14431
14432SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14433 PyObject *resultobj = 0;
14434 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14435 SwigValueWrapper<wxVisualAttributes > result;
14436 int val1 ;
14437 int ecode1 = 0 ;
14438 PyObject * obj0 = 0 ;
14439 char * kwnames[] = {
14440 (char *) "variant", NULL
14441 };
14442
14443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14444 if (obj0) {
14445 ecode1 = SWIG_AsVal_int(obj0, &val1);
14446 if (!SWIG_IsOK(ecode1)) {
14447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14448 }
14449 arg1 = static_cast< wxWindowVariant >(val1);
14450 }
14451 {
14452 if (!wxPyCheckForApp()) SWIG_fail;
14453 PyThreadState* __tstate = wxPyBeginAllowThreads();
14454 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14459 return resultobj;
14460fail:
14461 return NULL;
d55e5bfc
RD
14462}
14463
14464
1bd55598
RD
14465SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14466 PyObject *obj;
14467 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14468 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14469 return SWIG_Py_Void();
d55e5bfc
RD
14470}
14471
1bd55598
RD
14472SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14473 return SWIG_Python_InitShadowInstance(args);
14474}
d55e5bfc 14475
1bd55598
RD
14476SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14477 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14478 return 1;
14479}
14480
14481
14482SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14483 PyObject *pyobj = 0;
14484
14485 {
d55e5bfc 14486#if wxUSE_UNICODE
1bd55598 14487 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14488#else
1bd55598 14489 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14490#endif
1bd55598
RD
14491 }
14492 return pyobj;
d55e5bfc
RD
14493}
14494
14495
1bd55598
RD
14496SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14497 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14498 return 1;
d55e5bfc
RD
14499}
14500
14501
1bd55598
RD
14502SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14503 PyObject *pyobj = 0;
14504
14505 {
14506#if wxUSE_UNICODE
14507 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14508#else
14509 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14510#endif
14511 }
14512 return pyobj;
14513}
14514
14515
14516SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14517 PyObject *resultobj = 0;
14518 wxWindow *arg1 = (wxWindow *) 0 ;
14519 int arg2 = (int) -1 ;
14520 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14521 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14522 wxSize const &arg4_defvalue = wxDefaultSize ;
14523 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14524 long arg5 = (long) wxSP_HORIZONTAL ;
14525 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14526 wxString *arg6 = (wxString *) &arg6_defvalue ;
14527 wxSpinButton *result = 0 ;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 int val2 ;
14531 int ecode2 = 0 ;
14532 wxPoint temp3 ;
14533 wxSize temp4 ;
14534 long val5 ;
14535 int ecode5 = 0 ;
14536 bool temp6 = false ;
14537 PyObject * obj0 = 0 ;
14538 PyObject * obj1 = 0 ;
14539 PyObject * obj2 = 0 ;
14540 PyObject * obj3 = 0 ;
14541 PyObject * obj4 = 0 ;
14542 PyObject * obj5 = 0 ;
14543 char * kwnames[] = {
14544 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14545 };
14546
14547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14549 if (!SWIG_IsOK(res1)) {
14550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14551 }
14552 arg1 = reinterpret_cast< wxWindow * >(argp1);
14553 if (obj1) {
14554 ecode2 = SWIG_AsVal_int(obj1, &val2);
14555 if (!SWIG_IsOK(ecode2)) {
14556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14557 }
14558 arg2 = static_cast< int >(val2);
14559 }
14560 if (obj2) {
d55e5bfc 14561 {
1bd55598
RD
14562 arg3 = &temp3;
14563 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14564 }
1bd55598
RD
14565 }
14566 if (obj3) {
d55e5bfc 14567 {
1bd55598
RD
14568 arg4 = &temp4;
14569 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14570 }
1bd55598
RD
14571 }
14572 if (obj4) {
14573 ecode5 = SWIG_AsVal_long(obj4, &val5);
14574 if (!SWIG_IsOK(ecode5)) {
14575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14576 }
14577 arg5 = static_cast< long >(val5);
14578 }
14579 if (obj5) {
d55e5bfc 14580 {
1bd55598
RD
14581 arg6 = wxString_in_helper(obj5);
14582 if (arg6 == NULL) SWIG_fail;
14583 temp6 = true;
d55e5bfc 14584 }
1bd55598
RD
14585 }
14586 {
14587 if (!wxPyCheckForApp()) SWIG_fail;
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14594 {
14595 if (temp6)
14596 delete arg6;
14597 }
14598 return resultobj;
14599fail:
14600 {
14601 if (temp6)
14602 delete arg6;
14603 }
14604 return NULL;
d55e5bfc
RD
14605}
14606
14607
1bd55598
RD
14608SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14609 PyObject *resultobj = 0;
14610 wxSpinButton *result = 0 ;
14611
14612 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14613 {
14614 if (!wxPyCheckForApp()) SWIG_fail;
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = (wxSpinButton *)new wxSpinButton();
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14621 return resultobj;
14622fail:
14623 return NULL;
14624}
14625
14626
14627SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14628 PyObject *resultobj = 0;
14629 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14630 wxWindow *arg2 = (wxWindow *) 0 ;
14631 int arg3 = (int) -1 ;
14632 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14633 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14634 wxSize const &arg5_defvalue = wxDefaultSize ;
14635 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14636 long arg6 = (long) wxSP_HORIZONTAL ;
14637 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14638 wxString *arg7 = (wxString *) &arg7_defvalue ;
14639 bool result;
14640 void *argp1 = 0 ;
14641 int res1 = 0 ;
14642 void *argp2 = 0 ;
14643 int res2 = 0 ;
14644 int val3 ;
14645 int ecode3 = 0 ;
14646 wxPoint temp4 ;
14647 wxSize temp5 ;
14648 long val6 ;
14649 int ecode6 = 0 ;
14650 bool temp7 = false ;
14651 PyObject * obj0 = 0 ;
14652 PyObject * obj1 = 0 ;
14653 PyObject * obj2 = 0 ;
14654 PyObject * obj3 = 0 ;
14655 PyObject * obj4 = 0 ;
14656 PyObject * obj5 = 0 ;
14657 PyObject * obj6 = 0 ;
14658 char * kwnames[] = {
14659 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14660 };
14661
14662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14664 if (!SWIG_IsOK(res1)) {
14665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14666 }
14667 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14669 if (!SWIG_IsOK(res2)) {
14670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14671 }
14672 arg2 = reinterpret_cast< wxWindow * >(argp2);
14673 if (obj2) {
14674 ecode3 = SWIG_AsVal_int(obj2, &val3);
14675 if (!SWIG_IsOK(ecode3)) {
14676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14677 }
14678 arg3 = static_cast< int >(val3);
14679 }
14680 if (obj3) {
d55e5bfc 14681 {
1bd55598
RD
14682 arg4 = &temp4;
14683 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14684 }
1bd55598
RD
14685 }
14686 if (obj4) {
d55e5bfc 14687 {
1bd55598
RD
14688 arg5 = &temp5;
14689 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14690 }
1bd55598
RD
14691 }
14692 if (obj5) {
14693 ecode6 = SWIG_AsVal_long(obj5, &val6);
14694 if (!SWIG_IsOK(ecode6)) {
14695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14696 }
14697 arg6 = static_cast< long >(val6);
14698 }
14699 if (obj6) {
14700 {
14701 arg7 = wxString_in_helper(obj6);
14702 if (arg7 == NULL) SWIG_fail;
14703 temp7 = true;
14704 }
14705 }
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 {
14713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14714 }
14715 {
14716 if (temp7)
14717 delete arg7;
14718 }
14719 return resultobj;
14720fail:
14721 {
14722 if (temp7)
14723 delete arg7;
14724 }
14725 return NULL;
d55e5bfc
RD
14726}
14727
14728
1bd55598
RD
14729SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14730 PyObject *resultobj = 0;
14731 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14732 int result;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 PyObject *swig_obj[1] ;
14736
14737 if (!args) SWIG_fail;
14738 swig_obj[0] = args;
14739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14742 }
14743 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (int)((wxSpinButton const *)arg1)->GetValue();
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_From_int(static_cast< int >(result));
14751 return resultobj;
14752fail:
14753 return NULL;
d55e5bfc
RD
14754}
14755
14756
1bd55598
RD
14757SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14758 PyObject *resultobj = 0;
14759 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14760 int result;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 PyObject *swig_obj[1] ;
14764
14765 if (!args) SWIG_fail;
14766 swig_obj[0] = args;
14767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14770 }
14771 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (int)((wxSpinButton const *)arg1)->GetMin();
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_From_int(static_cast< int >(result));
14779 return resultobj;
14780fail:
14781 return NULL;
d55e5bfc
RD
14782}
14783
14784
1bd55598
RD
14785SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14786 PyObject *resultobj = 0;
14787 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14788 int result;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 PyObject *swig_obj[1] ;
14792
14793 if (!args) SWIG_fail;
14794 swig_obj[0] = args;
14795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14796 if (!SWIG_IsOK(res1)) {
14797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14798 }
14799 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (int)((wxSpinButton const *)arg1)->GetMax();
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_From_int(static_cast< int >(result));
14807 return resultobj;
14808fail:
14809 return NULL;
14810}
14811
14812
14813SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj = 0;
14815 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14816 int arg2 ;
14817 void *argp1 = 0 ;
14818 int res1 = 0 ;
14819 int val2 ;
14820 int ecode2 = 0 ;
14821 PyObject * obj0 = 0 ;
14822 PyObject * obj1 = 0 ;
14823 char * kwnames[] = {
14824 (char *) "self",(char *) "val", NULL
14825 };
14826
14827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14829 if (!SWIG_IsOK(res1)) {
14830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14831 }
14832 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14833 ecode2 = SWIG_AsVal_int(obj1, &val2);
14834 if (!SWIG_IsOK(ecode2)) {
14835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14836 }
14837 arg2 = static_cast< int >(val2);
14838 {
14839 PyThreadState* __tstate = wxPyBeginAllowThreads();
14840 (arg1)->SetValue(arg2);
14841 wxPyEndAllowThreads(__tstate);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 resultobj = SWIG_Py_Void();
14845 return resultobj;
14846fail:
14847 return NULL;
14848}
14849
14850
14851SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj = 0;
14853 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14854 int arg2 ;
14855 void *argp1 = 0 ;
14856 int res1 = 0 ;
14857 int val2 ;
14858 int ecode2 = 0 ;
14859 PyObject * obj0 = 0 ;
14860 PyObject * obj1 = 0 ;
14861 char * kwnames[] = {
14862 (char *) "self",(char *) "minVal", NULL
14863 };
14864
14865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14869 }
14870 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14871 ecode2 = SWIG_AsVal_int(obj1, &val2);
14872 if (!SWIG_IsOK(ecode2)) {
14873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14874 }
14875 arg2 = static_cast< int >(val2);
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetMin(arg2);
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 resultobj = SWIG_Py_Void();
14883 return resultobj;
14884fail:
14885 return NULL;
14886}
14887
14888
14889SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj = 0;
14891 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14892 int arg2 ;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 int val2 ;
14896 int ecode2 = 0 ;
14897 PyObject * obj0 = 0 ;
14898 PyObject * obj1 = 0 ;
14899 char * kwnames[] = {
14900 (char *) "self",(char *) "maxVal", NULL
14901 };
14902
14903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14907 }
14908 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14909 ecode2 = SWIG_AsVal_int(obj1, &val2);
14910 if (!SWIG_IsOK(ecode2)) {
14911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14912 }
14913 arg2 = static_cast< int >(val2);
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 (arg1)->SetMax(arg2);
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = SWIG_Py_Void();
14921 return resultobj;
14922fail:
14923 return NULL;
14924}
14925
14926
14927SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj = 0;
14929 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14930 int arg2 ;
14931 int arg3 ;
14932 void *argp1 = 0 ;
14933 int res1 = 0 ;
14934 int val2 ;
14935 int ecode2 = 0 ;
14936 int val3 ;
14937 int ecode3 = 0 ;
14938 PyObject * obj0 = 0 ;
14939 PyObject * obj1 = 0 ;
14940 PyObject * obj2 = 0 ;
14941 char * kwnames[] = {
14942 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14943 };
14944
14945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14947 if (!SWIG_IsOK(res1)) {
14948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14949 }
14950 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14951 ecode2 = SWIG_AsVal_int(obj1, &val2);
14952 if (!SWIG_IsOK(ecode2)) {
14953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14954 }
14955 arg2 = static_cast< int >(val2);
14956 ecode3 = SWIG_AsVal_int(obj2, &val3);
14957 if (!SWIG_IsOK(ecode3)) {
14958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14959 }
14960 arg3 = static_cast< int >(val3);
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 (arg1)->SetRange(arg2,arg3);
14964 wxPyEndAllowThreads(__tstate);
14965 if (PyErr_Occurred()) SWIG_fail;
14966 }
14967 resultobj = SWIG_Py_Void();
14968 return resultobj;
14969fail:
14970 return NULL;
d55e5bfc
RD
14971}
14972
14973
1bd55598
RD
14974SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14975 PyObject *resultobj = 0;
14976 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14977 bool result;
14978 void *argp1 = 0 ;
14979 int res1 = 0 ;
14980 PyObject *swig_obj[1] ;
14981
14982 if (!args) SWIG_fail;
14983 swig_obj[0] = args;
14984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14985 if (!SWIG_IsOK(res1)) {
14986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14987 }
14988 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 {
14996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14997 }
14998 return resultobj;
14999fail:
15000 return NULL;
d55e5bfc
RD
15001}
15002
15003
1bd55598
RD
15004SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15005 PyObject *resultobj = 0;
15006 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15007 SwigValueWrapper<wxVisualAttributes > result;
15008 int val1 ;
15009 int ecode1 = 0 ;
15010 PyObject * obj0 = 0 ;
15011 char * kwnames[] = {
15012 (char *) "variant", NULL
15013 };
15014
15015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15016 if (obj0) {
15017 ecode1 = SWIG_AsVal_int(obj0, &val1);
15018 if (!SWIG_IsOK(ecode1)) {
15019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15020 }
15021 arg1 = static_cast< wxWindowVariant >(val1);
15022 }
15023 {
15024 if (!wxPyCheckForApp()) SWIG_fail;
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15031 return resultobj;
15032fail:
15033 return NULL;
15034}
15035
15036
15037SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15038 PyObject *obj;
15039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15040 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15041 return SWIG_Py_Void();
15042}
15043
15044SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15045 return SWIG_Python_InitShadowInstance(args);
15046}
15047
15048SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15049 PyObject *resultobj = 0;
15050 wxWindow *arg1 = (wxWindow *) 0 ;
15051 int arg2 = (int) -1 ;
15052 wxString const &arg3_defvalue = wxPyEmptyString ;
15053 wxString *arg3 = (wxString *) &arg3_defvalue ;
15054 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15055 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15056 wxSize const &arg5_defvalue = wxDefaultSize ;
15057 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15058 long arg6 = (long) wxSP_ARROW_KEYS ;
15059 int arg7 = (int) 0 ;
15060 int arg8 = (int) 100 ;
15061 int arg9 = (int) 0 ;
15062 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15063 wxString *arg10 = (wxString *) &arg10_defvalue ;
15064 wxSpinCtrl *result = 0 ;
15065 void *argp1 = 0 ;
15066 int res1 = 0 ;
15067 int val2 ;
15068 int ecode2 = 0 ;
15069 bool temp3 = false ;
15070 wxPoint temp4 ;
15071 wxSize temp5 ;
15072 long val6 ;
15073 int ecode6 = 0 ;
15074 int val7 ;
15075 int ecode7 = 0 ;
15076 int val8 ;
15077 int ecode8 = 0 ;
15078 int val9 ;
15079 int ecode9 = 0 ;
15080 bool temp10 = false ;
15081 PyObject * obj0 = 0 ;
15082 PyObject * obj1 = 0 ;
15083 PyObject * obj2 = 0 ;
15084 PyObject * obj3 = 0 ;
15085 PyObject * obj4 = 0 ;
15086 PyObject * obj5 = 0 ;
15087 PyObject * obj6 = 0 ;
15088 PyObject * obj7 = 0 ;
15089 PyObject * obj8 = 0 ;
15090 PyObject * obj9 = 0 ;
15091 char * kwnames[] = {
15092 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15093 };
15094
15095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15097 if (!SWIG_IsOK(res1)) {
15098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15099 }
15100 arg1 = reinterpret_cast< wxWindow * >(argp1);
15101 if (obj1) {
15102 ecode2 = SWIG_AsVal_int(obj1, &val2);
15103 if (!SWIG_IsOK(ecode2)) {
15104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15105 }
15106 arg2 = static_cast< int >(val2);
15107 }
15108 if (obj2) {
d55e5bfc 15109 {
1bd55598
RD
15110 arg3 = wxString_in_helper(obj2);
15111 if (arg3 == NULL) SWIG_fail;
15112 temp3 = true;
d55e5bfc 15113 }
1bd55598
RD
15114 }
15115 if (obj3) {
d55e5bfc 15116 {
1bd55598
RD
15117 arg4 = &temp4;
15118 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15119 }
1bd55598
RD
15120 }
15121 if (obj4) {
d55e5bfc 15122 {
1bd55598
RD
15123 arg5 = &temp5;
15124 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15125 }
1bd55598
RD
15126 }
15127 if (obj5) {
15128 ecode6 = SWIG_AsVal_long(obj5, &val6);
15129 if (!SWIG_IsOK(ecode6)) {
15130 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15131 }
15132 arg6 = static_cast< long >(val6);
15133 }
15134 if (obj6) {
15135 ecode7 = SWIG_AsVal_int(obj6, &val7);
15136 if (!SWIG_IsOK(ecode7)) {
15137 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15138 }
15139 arg7 = static_cast< int >(val7);
15140 }
15141 if (obj7) {
15142 ecode8 = SWIG_AsVal_int(obj7, &val8);
15143 if (!SWIG_IsOK(ecode8)) {
15144 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15145 }
15146 arg8 = static_cast< int >(val8);
15147 }
15148 if (obj8) {
15149 ecode9 = SWIG_AsVal_int(obj8, &val9);
15150 if (!SWIG_IsOK(ecode9)) {
15151 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15152 }
15153 arg9 = static_cast< int >(val9);
15154 }
15155 if (obj9) {
d55e5bfc 15156 {
1bd55598
RD
15157 arg10 = wxString_in_helper(obj9);
15158 if (arg10 == NULL) SWIG_fail;
15159 temp10 = true;
d55e5bfc 15160 }
1bd55598
RD
15161 }
15162 {
15163 if (!wxPyCheckForApp()) SWIG_fail;
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15170 {
15171 if (temp3)
15172 delete arg3;
15173 }
15174 {
15175 if (temp10)
15176 delete arg10;
15177 }
15178 return resultobj;
15179fail:
15180 {
15181 if (temp3)
15182 delete arg3;
15183 }
15184 {
15185 if (temp10)
15186 delete arg10;
15187 }
15188 return NULL;
d55e5bfc
RD
15189}
15190
15191
1bd55598
RD
15192SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15193 PyObject *resultobj = 0;
15194 wxSpinCtrl *result = 0 ;
15195
15196 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15197 {
15198 if (!wxPyCheckForApp()) SWIG_fail;
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (wxSpinCtrl *)new wxSpinCtrl();
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15205 return resultobj;
15206fail:
15207 return NULL;
15208}
15209
15210
15211SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15212 PyObject *resultobj = 0;
15213 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15214 wxWindow *arg2 = (wxWindow *) 0 ;
15215 int arg3 = (int) -1 ;
15216 wxString const &arg4_defvalue = wxPyEmptyString ;
15217 wxString *arg4 = (wxString *) &arg4_defvalue ;
15218 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15219 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15220 wxSize const &arg6_defvalue = wxDefaultSize ;
15221 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15222 long arg7 = (long) wxSP_ARROW_KEYS ;
15223 int arg8 = (int) 0 ;
15224 int arg9 = (int) 100 ;
15225 int arg10 = (int) 0 ;
15226 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15227 wxString *arg11 = (wxString *) &arg11_defvalue ;
15228 bool result;
15229 void *argp1 = 0 ;
15230 int res1 = 0 ;
15231 void *argp2 = 0 ;
15232 int res2 = 0 ;
15233 int val3 ;
15234 int ecode3 = 0 ;
15235 bool temp4 = false ;
15236 wxPoint temp5 ;
15237 wxSize temp6 ;
15238 long val7 ;
15239 int ecode7 = 0 ;
15240 int val8 ;
15241 int ecode8 = 0 ;
15242 int val9 ;
15243 int ecode9 = 0 ;
15244 int val10 ;
15245 int ecode10 = 0 ;
15246 bool temp11 = false ;
15247 PyObject * obj0 = 0 ;
15248 PyObject * obj1 = 0 ;
15249 PyObject * obj2 = 0 ;
15250 PyObject * obj3 = 0 ;
15251 PyObject * obj4 = 0 ;
15252 PyObject * obj5 = 0 ;
15253 PyObject * obj6 = 0 ;
15254 PyObject * obj7 = 0 ;
15255 PyObject * obj8 = 0 ;
15256 PyObject * obj9 = 0 ;
15257 PyObject * obj10 = 0 ;
15258 char * kwnames[] = {
15259 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15260 };
15261
15262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15264 if (!SWIG_IsOK(res1)) {
15265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15266 }
15267 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15269 if (!SWIG_IsOK(res2)) {
15270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15271 }
15272 arg2 = reinterpret_cast< wxWindow * >(argp2);
15273 if (obj2) {
15274 ecode3 = SWIG_AsVal_int(obj2, &val3);
15275 if (!SWIG_IsOK(ecode3)) {
15276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15277 }
15278 arg3 = static_cast< int >(val3);
15279 }
15280 if (obj3) {
36ed4f51 15281 {
1bd55598
RD
15282 arg4 = wxString_in_helper(obj3);
15283 if (arg4 == NULL) SWIG_fail;
15284 temp4 = true;
36ed4f51 15285 }
1bd55598
RD
15286 }
15287 if (obj4) {
36ed4f51 15288 {
1bd55598
RD
15289 arg5 = &temp5;
15290 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15291 }
1bd55598
RD
15292 }
15293 if (obj5) {
d55e5bfc 15294 {
1bd55598
RD
15295 arg6 = &temp6;
15296 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15297 }
1bd55598
RD
15298 }
15299 if (obj6) {
15300 ecode7 = SWIG_AsVal_long(obj6, &val7);
15301 if (!SWIG_IsOK(ecode7)) {
15302 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15303 }
15304 arg7 = static_cast< long >(val7);
15305 }
15306 if (obj7) {
15307 ecode8 = SWIG_AsVal_int(obj7, &val8);
15308 if (!SWIG_IsOK(ecode8)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15310 }
15311 arg8 = static_cast< int >(val8);
15312 }
15313 if (obj8) {
15314 ecode9 = SWIG_AsVal_int(obj8, &val9);
15315 if (!SWIG_IsOK(ecode9)) {
15316 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15317 }
15318 arg9 = static_cast< int >(val9);
15319 }
15320 if (obj9) {
15321 ecode10 = SWIG_AsVal_int(obj9, &val10);
15322 if (!SWIG_IsOK(ecode10)) {
15323 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15324 }
15325 arg10 = static_cast< int >(val10);
15326 }
15327 if (obj10) {
15328 {
15329 arg11 = wxString_in_helper(obj10);
15330 if (arg11 == NULL) SWIG_fail;
15331 temp11 = true;
15332 }
15333 }
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15342 }
15343 {
15344 if (temp4)
15345 delete arg4;
15346 }
15347 {
15348 if (temp11)
15349 delete arg11;
15350 }
15351 return resultobj;
15352fail:
15353 {
15354 if (temp4)
15355 delete arg4;
15356 }
15357 {
15358 if (temp11)
15359 delete arg11;
15360 }
15361 return NULL;
d55e5bfc
RD
15362}
15363
15364
1bd55598
RD
15365SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15366 PyObject *resultobj = 0;
15367 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15368 int result;
15369 void *argp1 = 0 ;
15370 int res1 = 0 ;
15371 PyObject *swig_obj[1] ;
15372
15373 if (!args) SWIG_fail;
15374 swig_obj[0] = args;
15375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15378 }
15379 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15380 {
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 resultobj = SWIG_From_int(static_cast< int >(result));
15387 return resultobj;
15388fail:
15389 return NULL;
15390}
15391
15392
15393SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj = 0;
15395 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15396 int arg2 ;
15397 void *argp1 = 0 ;
15398 int res1 = 0 ;
15399 int val2 ;
15400 int ecode2 = 0 ;
15401 PyObject * obj0 = 0 ;
15402 PyObject * obj1 = 0 ;
15403 char * kwnames[] = {
15404 (char *) "self",(char *) "value", NULL
15405 };
15406
15407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15409 if (!SWIG_IsOK(res1)) {
15410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15411 }
15412 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15413 ecode2 = SWIG_AsVal_int(obj1, &val2);
15414 if (!SWIG_IsOK(ecode2)) {
15415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15416 }
15417 arg2 = static_cast< int >(val2);
15418 {
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 (arg1)->SetValue(arg2);
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = SWIG_Py_Void();
15425 return resultobj;
15426fail:
15427 return NULL;
15428}
15429
15430
15431SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj = 0;
15433 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15434 wxString *arg2 = 0 ;
15435 void *argp1 = 0 ;
15436 int res1 = 0 ;
15437 bool temp2 = false ;
15438 PyObject * obj0 = 0 ;
15439 PyObject * obj1 = 0 ;
15440 char * kwnames[] = {
15441 (char *) "self",(char *) "text", NULL
15442 };
15443
15444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15446 if (!SWIG_IsOK(res1)) {
15447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15448 }
15449 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15450 {
15451 arg2 = wxString_in_helper(obj1);
15452 if (arg2 == NULL) SWIG_fail;
15453 temp2 = true;
15454 }
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 (arg1)->SetValue((wxString const &)*arg2);
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_Py_Void();
15462 {
15463 if (temp2)
15464 delete arg2;
15465 }
15466 return resultobj;
15467fail:
15468 {
15469 if (temp2)
15470 delete arg2;
15471 }
15472 return NULL;
15473}
15474
15475
15476SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj = 0;
15478 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15479 int arg2 ;
15480 int arg3 ;
15481 void *argp1 = 0 ;
15482 int res1 = 0 ;
15483 int val2 ;
15484 int ecode2 = 0 ;
15485 int val3 ;
15486 int ecode3 = 0 ;
15487 PyObject * obj0 = 0 ;
15488 PyObject * obj1 = 0 ;
15489 PyObject * obj2 = 0 ;
15490 char * kwnames[] = {
15491 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15492 };
15493
15494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15496 if (!SWIG_IsOK(res1)) {
15497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15498 }
15499 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15500 ecode2 = SWIG_AsVal_int(obj1, &val2);
15501 if (!SWIG_IsOK(ecode2)) {
15502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15503 }
15504 arg2 = static_cast< int >(val2);
15505 ecode3 = SWIG_AsVal_int(obj2, &val3);
15506 if (!SWIG_IsOK(ecode3)) {
15507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15508 }
15509 arg3 = static_cast< int >(val3);
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 (arg1)->SetRange(arg2,arg3);
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 resultobj = SWIG_Py_Void();
15517 return resultobj;
15518fail:
15519 return NULL;
d55e5bfc
RD
15520}
15521
15522
1bd55598
RD
15523SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15524 PyObject *resultobj = 0;
15525 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15526 int result;
15527 void *argp1 = 0 ;
15528 int res1 = 0 ;
15529 PyObject *swig_obj[1] ;
15530
15531 if (!args) SWIG_fail;
15532 swig_obj[0] = args;
15533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15534 if (!SWIG_IsOK(res1)) {
15535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15536 }
15537 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15541 wxPyEndAllowThreads(__tstate);
15542 if (PyErr_Occurred()) SWIG_fail;
15543 }
15544 resultobj = SWIG_From_int(static_cast< int >(result));
15545 return resultobj;
15546fail:
15547 return NULL;
d55e5bfc
RD
15548}
15549
15550
1bd55598
RD
15551SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15552 PyObject *resultobj = 0;
15553 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15554 int result;
15555 void *argp1 = 0 ;
15556 int res1 = 0 ;
15557 PyObject *swig_obj[1] ;
15558
15559 if (!args) SWIG_fail;
15560 swig_obj[0] = args;
15561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15562 if (!SWIG_IsOK(res1)) {
15563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15564 }
15565 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 resultobj = SWIG_From_int(static_cast< int >(result));
15573 return resultobj;
15574fail:
15575 return NULL;
15576}
15577
15578
15579SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj = 0;
15581 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15582 long arg2 ;
15583 long arg3 ;
15584 void *argp1 = 0 ;
15585 int res1 = 0 ;
15586 long val2 ;
15587 int ecode2 = 0 ;
15588 long val3 ;
15589 int ecode3 = 0 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 PyObject * obj2 = 0 ;
15593 char * kwnames[] = {
2131d850 15594 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15595 };
15596
15597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15599 if (!SWIG_IsOK(res1)) {
15600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15601 }
15602 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15603 ecode2 = SWIG_AsVal_long(obj1, &val2);
15604 if (!SWIG_IsOK(ecode2)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15606 }
15607 arg2 = static_cast< long >(val2);
15608 ecode3 = SWIG_AsVal_long(obj2, &val3);
15609 if (!SWIG_IsOK(ecode3)) {
15610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15611 }
15612 arg3 = static_cast< long >(val3);
15613 {
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 (arg1)->SetSelection(arg2,arg3);
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_Py_Void();
15620 return resultobj;
15621fail:
15622 return NULL;
15623}
15624
15625
15626SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj = 0;
15628 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15629 SwigValueWrapper<wxVisualAttributes > result;
15630 int val1 ;
15631 int ecode1 = 0 ;
15632 PyObject * obj0 = 0 ;
15633 char * kwnames[] = {
15634 (char *) "variant", NULL
15635 };
15636
15637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15638 if (obj0) {
15639 ecode1 = SWIG_AsVal_int(obj0, &val1);
15640 if (!SWIG_IsOK(ecode1)) {
15641 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15642 }
15643 arg1 = static_cast< wxWindowVariant >(val1);
15644 }
15645 {
15646 if (!wxPyCheckForApp()) SWIG_fail;
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15653 return resultobj;
15654fail:
15655 return NULL;
d55e5bfc
RD
15656}
15657
15658
1bd55598
RD
15659SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15660 PyObject *obj;
15661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15662 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15663 return SWIG_Py_Void();
d55e5bfc
RD
15664}
15665
1bd55598
RD
15666SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15667 return SWIG_Python_InitShadowInstance(args);
15668}
d55e5bfc 15669
1bd55598
RD
15670SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15671 PyObject *resultobj = 0;
15672 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15673 int arg2 = (int) 0 ;
15674 wxSpinEvent *result = 0 ;
15675 int val1 ;
15676 int ecode1 = 0 ;
15677 int val2 ;
15678 int ecode2 = 0 ;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 char * kwnames[] = {
15682 (char *) "commandType",(char *) "winid", NULL
15683 };
15684
15685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15686 if (obj0) {
15687 ecode1 = SWIG_AsVal_int(obj0, &val1);
15688 if (!SWIG_IsOK(ecode1)) {
15689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15690 }
15691 arg1 = static_cast< wxEventType >(val1);
15692 }
15693 if (obj1) {
15694 ecode2 = SWIG_AsVal_int(obj1, &val2);
15695 if (!SWIG_IsOK(ecode2)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15697 }
15698 arg2 = static_cast< int >(val2);
15699 }
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15703 wxPyEndAllowThreads(__tstate);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 }
15706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15707 return resultobj;
15708fail:
15709 return NULL;
d55e5bfc
RD
15710}
15711
15712
1bd55598
RD
15713SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 PyObject *resultobj = 0;
15715 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15716 int result;
15717 void *argp1 = 0 ;
15718 int res1 = 0 ;
15719 PyObject *swig_obj[1] ;
15720
15721 if (!args) SWIG_fail;
15722 swig_obj[0] = args;
15723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15724 if (!SWIG_IsOK(res1)) {
15725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15726 }
15727 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = SWIG_From_int(static_cast< int >(result));
15735 return resultobj;
15736fail:
15737 return NULL;
15738}
15739
15740
15741SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15742 PyObject *resultobj = 0;
15743 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15744 int arg2 ;
15745 void *argp1 = 0 ;
15746 int res1 = 0 ;
15747 int val2 ;
15748 int ecode2 = 0 ;
15749 PyObject * obj0 = 0 ;
15750 PyObject * obj1 = 0 ;
15751 char * kwnames[] = {
15752 (char *) "self",(char *) "pos", NULL
15753 };
15754
15755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15757 if (!SWIG_IsOK(res1)) {
15758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15759 }
15760 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15761 ecode2 = SWIG_AsVal_int(obj1, &val2);
15762 if (!SWIG_IsOK(ecode2)) {
15763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15764 }
15765 arg2 = static_cast< int >(val2);
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 (arg1)->SetPosition(arg2);
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 resultobj = SWIG_Py_Void();
15773 return resultobj;
15774fail:
15775 return NULL;
d55e5bfc
RD
15776}
15777
15778
1bd55598
RD
15779SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15780 PyObject *obj;
15781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15782 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15783 return SWIG_Py_Void();
d55e5bfc
RD
15784}
15785
1bd55598
RD
15786SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15787 return SWIG_Python_InitShadowInstance(args);
15788}
d55e5bfc 15789
1bd55598
RD
15790SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15791 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15792 return 1;
d55e5bfc
RD
15793}
15794
15795
1bd55598
RD
15796SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15797 PyObject *pyobj = 0;
15798
15799 {
15800#if wxUSE_UNICODE
15801 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15802#else
15803 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15804#endif
15805 }
15806 return pyobj;
d55e5bfc
RD
15807}
15808
15809
1bd55598
RD
15810SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15811 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15812 return 1;
15813}
15814
15815
15816SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15817 PyObject *pyobj = 0;
15818
15819 {
15820#if wxUSE_UNICODE
15821 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15822#else
15823 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15824#endif
15825 }
15826 return pyobj;
15827}
15828
15829
15830SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj = 0;
15832 wxWindow *arg1 = (wxWindow *) 0 ;
15833 int arg2 = (int) -1 ;
15834 wxString const &arg3_defvalue = wxPyEmptyString ;
15835 wxString *arg3 = (wxString *) &arg3_defvalue ;
15836 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15837 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15838 wxSize const &arg5_defvalue = wxDefaultSize ;
15839 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15840 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15841 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15842 int arg7 = (int) 0 ;
15843 long arg8 = (long) wxRA_HORIZONTAL ;
15844 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15845 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15846 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15847 wxString *arg10 = (wxString *) &arg10_defvalue ;
15848 wxRadioBox *result = 0 ;
15849 void *argp1 = 0 ;
15850 int res1 = 0 ;
15851 int val2 ;
15852 int ecode2 = 0 ;
15853 bool temp3 = false ;
15854 wxPoint temp4 ;
15855 wxSize temp5 ;
15856 bool temp6 = false ;
15857 int val7 ;
15858 int ecode7 = 0 ;
15859 long val8 ;
15860 int ecode8 = 0 ;
15861 void *argp9 = 0 ;
15862 int res9 = 0 ;
15863 bool temp10 = false ;
15864 PyObject * obj0 = 0 ;
15865 PyObject * obj1 = 0 ;
15866 PyObject * obj2 = 0 ;
15867 PyObject * obj3 = 0 ;
15868 PyObject * obj4 = 0 ;
15869 PyObject * obj5 = 0 ;
15870 PyObject * obj6 = 0 ;
15871 PyObject * obj7 = 0 ;
15872 PyObject * obj8 = 0 ;
15873 PyObject * obj9 = 0 ;
15874 char * kwnames[] = {
15875 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15876 };
15877
15878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15882 }
15883 arg1 = reinterpret_cast< wxWindow * >(argp1);
15884 if (obj1) {
15885 ecode2 = SWIG_AsVal_int(obj1, &val2);
15886 if (!SWIG_IsOK(ecode2)) {
15887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15888 }
15889 arg2 = static_cast< int >(val2);
15890 }
15891 if (obj2) {
36ed4f51 15892 {
1bd55598
RD
15893 arg3 = wxString_in_helper(obj2);
15894 if (arg3 == NULL) SWIG_fail;
15895 temp3 = true;
36ed4f51 15896 }
1bd55598
RD
15897 }
15898 if (obj3) {
36ed4f51 15899 {
1bd55598
RD
15900 arg4 = &temp4;
15901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15902 }
1bd55598
RD
15903 }
15904 if (obj4) {
d55e5bfc 15905 {
1bd55598
RD
15906 arg5 = &temp5;
15907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15908 }
1bd55598
RD
15909 }
15910 if (obj5) {
d55e5bfc 15911 {
1bd55598
RD
15912 if (! PySequence_Check(obj5)) {
15913 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15914 SWIG_fail;
15915 }
15916 arg6 = new wxArrayString;
15917 temp6 = true;
15918 int i, len=PySequence_Length(obj5);
15919 for (i=0; i<len; i++) {
15920 PyObject* item = PySequence_GetItem(obj5, i);
15921 wxString* s = wxString_in_helper(item);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 arg6->Add(*s);
15924 delete s;
15925 Py_DECREF(item);
15926 }
d55e5bfc 15927 }
1bd55598
RD
15928 }
15929 if (obj6) {
15930 ecode7 = SWIG_AsVal_int(obj6, &val7);
15931 if (!SWIG_IsOK(ecode7)) {
15932 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15933 }
15934 arg7 = static_cast< int >(val7);
15935 }
15936 if (obj7) {
15937 ecode8 = SWIG_AsVal_long(obj7, &val8);
15938 if (!SWIG_IsOK(ecode8)) {
15939 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15940 }
15941 arg8 = static_cast< long >(val8);
15942 }
15943 if (obj8) {
15944 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15945 if (!SWIG_IsOK(res9)) {
15946 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15947 }
1bd55598
RD
15948 if (!argp9) {
15949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15950 }
1bd55598
RD
15951 arg9 = reinterpret_cast< wxValidator * >(argp9);
15952 }
15953 if (obj9) {
d55e5bfc 15954 {
1bd55598
RD
15955 arg10 = wxString_in_helper(obj9);
15956 if (arg10 == NULL) SWIG_fail;
15957 temp10 = true;
d55e5bfc 15958 }
1bd55598
RD
15959 }
15960 {
15961 if (!wxPyCheckForApp()) SWIG_fail;
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 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);
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15968 {
15969 if (temp3)
15970 delete arg3;
15971 }
15972 {
15973 if (temp6) delete arg6;
15974 }
15975 {
15976 if (temp10)
15977 delete arg10;
15978 }
15979 return resultobj;
15980fail:
15981 {
15982 if (temp3)
15983 delete arg3;
15984 }
15985 {
15986 if (temp6) delete arg6;
15987 }
15988 {
15989 if (temp10)
15990 delete arg10;
15991 }
15992 return NULL;
d55e5bfc
RD
15993}
15994
15995
1bd55598
RD
15996SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15997 PyObject *resultobj = 0;
15998 wxRadioBox *result = 0 ;
15999
16000 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16001 {
16002 if (!wxPyCheckForApp()) SWIG_fail;
16003 PyThreadState* __tstate = wxPyBeginAllowThreads();
16004 result = (wxRadioBox *)new wxRadioBox();
16005 wxPyEndAllowThreads(__tstate);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 }
16008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16009 return resultobj;
16010fail:
16011 return NULL;
16012}
16013
16014
16015SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj = 0;
16017 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16018 wxWindow *arg2 = (wxWindow *) 0 ;
16019 int arg3 = (int) -1 ;
16020 wxString const &arg4_defvalue = wxPyEmptyString ;
16021 wxString *arg4 = (wxString *) &arg4_defvalue ;
16022 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16023 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16024 wxSize const &arg6_defvalue = wxDefaultSize ;
16025 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16026 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16027 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16028 int arg8 = (int) 0 ;
16029 long arg9 = (long) wxRA_HORIZONTAL ;
16030 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16031 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16032 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16033 wxString *arg11 = (wxString *) &arg11_defvalue ;
16034 bool result;
16035 void *argp1 = 0 ;
16036 int res1 = 0 ;
16037 void *argp2 = 0 ;
16038 int res2 = 0 ;
16039 int val3 ;
16040 int ecode3 = 0 ;
16041 bool temp4 = false ;
16042 wxPoint temp5 ;
16043 wxSize temp6 ;
16044 bool temp7 = false ;
16045 int val8 ;
16046 int ecode8 = 0 ;
16047 long val9 ;
16048 int ecode9 = 0 ;
16049 void *argp10 = 0 ;
16050 int res10 = 0 ;
16051 bool temp11 = false ;
16052 PyObject * obj0 = 0 ;
16053 PyObject * obj1 = 0 ;
16054 PyObject * obj2 = 0 ;
16055 PyObject * obj3 = 0 ;
16056 PyObject * obj4 = 0 ;
16057 PyObject * obj5 = 0 ;
16058 PyObject * obj6 = 0 ;
16059 PyObject * obj7 = 0 ;
16060 PyObject * obj8 = 0 ;
16061 PyObject * obj9 = 0 ;
16062 PyObject * obj10 = 0 ;
16063 char * kwnames[] = {
16064 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16065 };
16066
16067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16069 if (!SWIG_IsOK(res1)) {
16070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16071 }
16072 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16073 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16074 if (!SWIG_IsOK(res2)) {
16075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16076 }
16077 arg2 = reinterpret_cast< wxWindow * >(argp2);
16078 if (obj2) {
16079 ecode3 = SWIG_AsVal_int(obj2, &val3);
16080 if (!SWIG_IsOK(ecode3)) {
16081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16082 }
16083 arg3 = static_cast< int >(val3);
16084 }
16085 if (obj3) {
36ed4f51 16086 {
1bd55598
RD
16087 arg4 = wxString_in_helper(obj3);
16088 if (arg4 == NULL) SWIG_fail;
16089 temp4 = true;
36ed4f51 16090 }
1bd55598
RD
16091 }
16092 if (obj4) {
36ed4f51 16093 {
1bd55598
RD
16094 arg5 = &temp5;
16095 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16096 }
1bd55598
RD
16097 }
16098 if (obj5) {
d55e5bfc 16099 {
1bd55598
RD
16100 arg6 = &temp6;
16101 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16102 }
1bd55598
RD
16103 }
16104 if (obj6) {
36ed4f51 16105 {
1bd55598
RD
16106 if (! PySequence_Check(obj6)) {
16107 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16108 SWIG_fail;
16109 }
16110 arg7 = new wxArrayString;
16111 temp7 = true;
16112 int i, len=PySequence_Length(obj6);
16113 for (i=0; i<len; i++) {
16114 PyObject* item = PySequence_GetItem(obj6, i);
16115 wxString* s = wxString_in_helper(item);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 arg7->Add(*s);
16118 delete s;
16119 Py_DECREF(item);
16120 }
36ed4f51 16121 }
1bd55598
RD
16122 }
16123 if (obj7) {
16124 ecode8 = SWIG_AsVal_int(obj7, &val8);
16125 if (!SWIG_IsOK(ecode8)) {
16126 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16127 }
16128 arg8 = static_cast< int >(val8);
16129 }
16130 if (obj8) {
16131 ecode9 = SWIG_AsVal_long(obj8, &val9);
16132 if (!SWIG_IsOK(ecode9)) {
16133 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16134 }
16135 arg9 = static_cast< long >(val9);
16136 }
16137 if (obj9) {
16138 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16139 if (!SWIG_IsOK(res10)) {
16140 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16141 }
1bd55598
RD
16142 if (!argp10) {
16143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16144 }
1bd55598
RD
16145 arg10 = reinterpret_cast< wxValidator * >(argp10);
16146 }
16147 if (obj10) {
d55e5bfc 16148 {
1bd55598
RD
16149 arg11 = wxString_in_helper(obj10);
16150 if (arg11 == NULL) SWIG_fail;
16151 temp11 = true;
d55e5bfc 16152 }
1bd55598
RD
16153 }
16154 {
16155 PyThreadState* __tstate = wxPyBeginAllowThreads();
16156 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);
16157 wxPyEndAllowThreads(__tstate);
16158 if (PyErr_Occurred()) SWIG_fail;
16159 }
16160 {
16161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16162 }
16163 {
16164 if (temp4)
16165 delete arg4;
16166 }
16167 {
16168 if (temp7) delete arg7;
16169 }
16170 {
16171 if (temp11)
16172 delete arg11;
16173 }
16174 return resultobj;
16175fail:
16176 {
16177 if (temp4)
16178 delete arg4;
16179 }
16180 {
16181 if (temp7) delete arg7;
16182 }
16183 {
16184 if (temp11)
16185 delete arg11;
16186 }
16187 return NULL;
16188}
16189
16190
16191SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj = 0;
16193 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16194 int arg2 ;
16195 void *argp1 = 0 ;
16196 int res1 = 0 ;
16197 int val2 ;
16198 int ecode2 = 0 ;
16199 PyObject * obj0 = 0 ;
16200 PyObject * obj1 = 0 ;
16201 char * kwnames[] = {
16202 (char *) "self",(char *) "n", NULL
16203 };
16204
16205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16209 }
16210 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16211 ecode2 = SWIG_AsVal_int(obj1, &val2);
16212 if (!SWIG_IsOK(ecode2)) {
16213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16214 }
16215 arg2 = static_cast< int >(val2);
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 (arg1)->SetSelection(arg2);
16219 wxPyEndAllowThreads(__tstate);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 resultobj = SWIG_Py_Void();
16223 return resultobj;
16224fail:
16225 return NULL;
d55e5bfc
RD
16226}
16227
16228
1bd55598
RD
16229SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
16231 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16232 int result;
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 PyObject *swig_obj[1] ;
16236
16237 if (!args) SWIG_fail;
16238 swig_obj[0] = args;
16239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16242 }
16243 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 resultobj = SWIG_From_int(static_cast< int >(result));
16251 return resultobj;
16252fail:
16253 return NULL;
d55e5bfc
RD
16254}
16255
16256
1bd55598
RD
16257SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16258 PyObject *resultobj = 0;
16259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16260 wxString result;
16261 void *argp1 = 0 ;
16262 int res1 = 0 ;
16263 PyObject *swig_obj[1] ;
16264
16265 if (!args) SWIG_fail;
16266 swig_obj[0] = args;
16267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16268 if (!SWIG_IsOK(res1)) {
16269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16270 }
16271 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 {
16279#if wxUSE_UNICODE
16280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16281#else
16282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16283#endif
16284 }
16285 return resultobj;
16286fail:
16287 return NULL;
16288}
16289
16290
16291SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16292 PyObject *resultobj = 0;
16293 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16294 wxString *arg2 = 0 ;
16295 bool result;
16296 void *argp1 = 0 ;
16297 int res1 = 0 ;
16298 bool temp2 = false ;
16299 PyObject * obj0 = 0 ;
16300 PyObject * obj1 = 0 ;
16301 char * kwnames[] = {
16302 (char *) "self",(char *) "s", NULL
16303 };
16304
16305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16307 if (!SWIG_IsOK(res1)) {
16308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16309 }
16310 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16311 {
16312 arg2 = wxString_in_helper(obj1);
16313 if (arg2 == NULL) SWIG_fail;
16314 temp2 = true;
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 {
16323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16324 }
16325 {
16326 if (temp2)
16327 delete arg2;
16328 }
16329 return resultobj;
16330fail:
16331 {
16332 if (temp2)
16333 delete arg2;
16334 }
16335 return NULL;
4896ac9e
RD
16336}
16337
16338
1bd55598
RD
16339SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16340 PyObject *resultobj = 0;
16341 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16342 size_t result;
1bd55598
RD
16343 void *argp1 = 0 ;
16344 int res1 = 0 ;
16345 PyObject *swig_obj[1] ;
16346
16347 if (!args) SWIG_fail;
16348 swig_obj[0] = args;
16349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16350 if (!SWIG_IsOK(res1)) {
16351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16352 }
16353 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16356 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16357 wxPyEndAllowThreads(__tstate);
16358 if (PyErr_Occurred()) SWIG_fail;
16359 }
1c71765a 16360 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16361 return resultobj;
16362fail:
16363 return NULL;
16364}
16365
16366
16367SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16368 PyObject *resultobj = 0;
16369 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16370 wxString *arg2 = 0 ;
16371 int result;
16372 void *argp1 = 0 ;
16373 int res1 = 0 ;
16374 bool temp2 = false ;
16375 PyObject * obj0 = 0 ;
16376 PyObject * obj1 = 0 ;
16377 char * kwnames[] = {
16378 (char *) "self",(char *) "s", NULL
16379 };
16380
16381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16383 if (!SWIG_IsOK(res1)) {
16384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16385 }
16386 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16387 {
16388 arg2 = wxString_in_helper(obj1);
16389 if (arg2 == NULL) SWIG_fail;
16390 temp2 = true;
16391 }
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 resultobj = SWIG_From_int(static_cast< int >(result));
16399 {
16400 if (temp2)
16401 delete arg2;
16402 }
16403 return resultobj;
16404fail:
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return NULL;
16410}
16411
16412
16413SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj = 0;
16415 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16416 int arg2 ;
16417 wxString result;
16418 void *argp1 = 0 ;
16419 int res1 = 0 ;
16420 int val2 ;
16421 int ecode2 = 0 ;
16422 PyObject * obj0 = 0 ;
16423 PyObject * obj1 = 0 ;
16424 char * kwnames[] = {
16425 (char *) "self",(char *) "n", NULL
16426 };
16427
16428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16430 if (!SWIG_IsOK(res1)) {
16431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16432 }
16433 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16434 ecode2 = SWIG_AsVal_int(obj1, &val2);
16435 if (!SWIG_IsOK(ecode2)) {
16436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16437 }
16438 arg2 = static_cast< int >(val2);
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 {
16446#if wxUSE_UNICODE
16447 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16448#else
16449 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16450#endif
16451 }
16452 return resultobj;
16453fail:
16454 return NULL;
16455}
16456
16457
16458SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj = 0;
16460 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16461 int arg2 ;
16462 wxString *arg3 = 0 ;
16463 void *argp1 = 0 ;
16464 int res1 = 0 ;
16465 int val2 ;
16466 int ecode2 = 0 ;
16467 bool temp3 = false ;
16468 PyObject * obj0 = 0 ;
16469 PyObject * obj1 = 0 ;
16470 PyObject * obj2 = 0 ;
16471 char * kwnames[] = {
16472 (char *) "self",(char *) "n",(char *) "label", NULL
16473 };
16474
16475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16477 if (!SWIG_IsOK(res1)) {
16478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16479 }
16480 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16481 ecode2 = SWIG_AsVal_int(obj1, &val2);
16482 if (!SWIG_IsOK(ecode2)) {
16483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16484 }
16485 arg2 = static_cast< int >(val2);
16486 {
16487 arg3 = wxString_in_helper(obj2);
16488 if (arg3 == NULL) SWIG_fail;
16489 temp3 = true;
16490 }
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 (arg1)->SetString(arg2,(wxString const &)*arg3);
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 resultobj = SWIG_Py_Void();
16498 {
16499 if (temp3)
16500 delete arg3;
16501 }
16502 return resultobj;
16503fail:
16504 {
16505 if (temp3)
16506 delete arg3;
16507 }
16508 return NULL;
16509}
16510
16511
16512SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16513 PyObject *resultobj = 0;
16514 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16515 unsigned int arg2 ;
1bd55598
RD
16516 bool arg3 = (bool) true ;
16517 void *argp1 = 0 ;
16518 int res1 = 0 ;
50f151d7 16519 unsigned int val2 ;
1bd55598
RD
16520 int ecode2 = 0 ;
16521 bool val3 ;
16522 int ecode3 = 0 ;
16523 PyObject * obj0 = 0 ;
16524 PyObject * obj1 = 0 ;
16525 PyObject * obj2 = 0 ;
16526 char * kwnames[] = {
16527 (char *) "self",(char *) "n",(char *) "enable", NULL
16528 };
16529
16530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16532 if (!SWIG_IsOK(res1)) {
16533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16534 }
16535 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16536 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16537 if (!SWIG_IsOK(ecode2)) {
50f151d7 16538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16539 }
50f151d7 16540 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16541 if (obj2) {
16542 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16543 if (!SWIG_IsOK(ecode3)) {
16544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16545 }
16546 arg3 = static_cast< bool >(val3);
16547 }
16548 {
16549 PyThreadState* __tstate = wxPyBeginAllowThreads();
16550 (arg1)->Enable(arg2,arg3);
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 resultobj = SWIG_Py_Void();
16555 return resultobj;
16556fail:
16557 return NULL;
16558}
16559
16560
16561SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16562 PyObject *resultobj = 0;
16563 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16564 unsigned int arg2 ;
1bd55598
RD
16565 bool arg3 = (bool) true ;
16566 void *argp1 = 0 ;
16567 int res1 = 0 ;
50f151d7 16568 unsigned int val2 ;
1bd55598
RD
16569 int ecode2 = 0 ;
16570 bool val3 ;
16571 int ecode3 = 0 ;
16572 PyObject * obj0 = 0 ;
16573 PyObject * obj1 = 0 ;
16574 PyObject * obj2 = 0 ;
16575 char * kwnames[] = {
16576 (char *) "self",(char *) "n",(char *) "show", NULL
16577 };
16578
16579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16581 if (!SWIG_IsOK(res1)) {
16582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16583 }
16584 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16585 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16586 if (!SWIG_IsOK(ecode2)) {
50f151d7 16587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16588 }
50f151d7 16589 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16590 if (obj2) {
16591 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16592 if (!SWIG_IsOK(ecode3)) {
16593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16594 }
16595 arg3 = static_cast< bool >(val3);
16596 }
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 (arg1)->Show(arg2,arg3);
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 resultobj = SWIG_Py_Void();
16604 return resultobj;
16605fail:
16606 return NULL;
d55e5bfc
RD
16607}
16608
16609
50f151d7
RD
16610SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj = 0;
16612 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16613 unsigned int arg2 ;
16614 bool result;
16615 void *argp1 = 0 ;
16616 int res1 = 0 ;
16617 unsigned int val2 ;
16618 int ecode2 = 0 ;
16619 PyObject * obj0 = 0 ;
16620 PyObject * obj1 = 0 ;
16621 char * kwnames[] = {
16622 (char *) "self",(char *) "n", NULL
16623 };
16624
16625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16627 if (!SWIG_IsOK(res1)) {
16628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16629 }
16630 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16631 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16632 if (!SWIG_IsOK(ecode2)) {
16633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16634 }
16635 arg2 = static_cast< unsigned int >(val2);
16636 {
16637 PyThreadState* __tstate = wxPyBeginAllowThreads();
16638 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16644 }
16645 return resultobj;
16646fail:
16647 return NULL;
16648}
16649
16650
16651SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj = 0;
16653 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16654 unsigned int arg2 ;
16655 bool result;
16656 void *argp1 = 0 ;
16657 int res1 = 0 ;
16658 unsigned int val2 ;
16659 int ecode2 = 0 ;
16660 PyObject * obj0 = 0 ;
16661 PyObject * obj1 = 0 ;
16662 char * kwnames[] = {
16663 (char *) "self",(char *) "n", NULL
16664 };
16665
16666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16668 if (!SWIG_IsOK(res1)) {
16669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16670 }
16671 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16672 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16673 if (!SWIG_IsOK(ecode2)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16675 }
16676 arg2 = static_cast< unsigned int >(val2);
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 {
16684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16685 }
16686 return resultobj;
16687fail:
16688 return NULL;
16689}
16690
16691
1bd55598
RD
16692SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16693 PyObject *resultobj = 0;
16694 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16695 unsigned int result;
1bd55598
RD
16696 void *argp1 = 0 ;
16697 int res1 = 0 ;
16698 PyObject *swig_obj[1] ;
16699
16700 if (!args) SWIG_fail;
16701 swig_obj[0] = args;
16702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16703 if (!SWIG_IsOK(res1)) {
16704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16705 }
16706 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16707 {
16708 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16709 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16710 wxPyEndAllowThreads(__tstate);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
50f151d7 16713 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16714 return resultobj;
16715fail:
16716 return NULL;
d55e5bfc
RD
16717}
16718
16719
1bd55598
RD
16720SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16721 PyObject *resultobj = 0;
16722 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16723 unsigned int result;
1bd55598
RD
16724 void *argp1 = 0 ;
16725 int res1 = 0 ;
16726 PyObject *swig_obj[1] ;
16727
16728 if (!args) SWIG_fail;
16729 swig_obj[0] = args;
16730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16731 if (!SWIG_IsOK(res1)) {
16732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16733 }
16734 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16735 {
16736 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16737 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16738 wxPyEndAllowThreads(__tstate);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 }
50f151d7 16741 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16742 return resultobj;
16743fail:
16744 return NULL;
16745}
16746
16747
16748SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16749 PyObject *resultobj = 0;
16750 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16751 int arg2 ;
16752 wxDirection arg3 ;
16753 long arg4 ;
16754 int result;
16755 void *argp1 = 0 ;
16756 int res1 = 0 ;
16757 int val2 ;
16758 int ecode2 = 0 ;
16759 int val3 ;
16760 int ecode3 = 0 ;
16761 long val4 ;
16762 int ecode4 = 0 ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 PyObject * obj2 = 0 ;
16766 PyObject * obj3 = 0 ;
16767 char * kwnames[] = {
16768 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16769 };
16770
16771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16773 if (!SWIG_IsOK(res1)) {
16774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16775 }
16776 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16777 ecode2 = SWIG_AsVal_int(obj1, &val2);
16778 if (!SWIG_IsOK(ecode2)) {
16779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16780 }
16781 arg2 = static_cast< int >(val2);
16782 ecode3 = SWIG_AsVal_int(obj2, &val3);
16783 if (!SWIG_IsOK(ecode3)) {
16784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16785 }
16786 arg3 = static_cast< wxDirection >(val3);
16787 ecode4 = SWIG_AsVal_long(obj3, &val4);
16788 if (!SWIG_IsOK(ecode4)) {
16789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16790 }
16791 arg4 = static_cast< long >(val4);
16792 {
16793 PyThreadState* __tstate = wxPyBeginAllowThreads();
16794 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16795 wxPyEndAllowThreads(__tstate);
16796 if (PyErr_Occurred()) SWIG_fail;
16797 }
16798 resultobj = SWIG_From_int(static_cast< int >(result));
16799 return resultobj;
16800fail:
16801 return NULL;
16802}
16803
16804
2131d850
RD
16805SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16806 PyObject *resultobj = 0;
16807 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16808 unsigned int arg2 ;
16809 wxString *arg3 = 0 ;
16810 void *argp1 = 0 ;
16811 int res1 = 0 ;
16812 unsigned int val2 ;
16813 int ecode2 = 0 ;
16814 bool temp3 = false ;
16815 PyObject * obj0 = 0 ;
16816 PyObject * obj1 = 0 ;
16817 PyObject * obj2 = 0 ;
16818 char * kwnames[] = {
16819 (char *) "self",(char *) "item",(char *) "text", NULL
16820 };
16821
16822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16824 if (!SWIG_IsOK(res1)) {
16825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16826 }
16827 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16828 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16829 if (!SWIG_IsOK(ecode2)) {
16830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16831 }
16832 arg2 = static_cast< unsigned int >(val2);
16833 {
16834 arg3 = wxString_in_helper(obj2);
16835 if (arg3 == NULL) SWIG_fail;
16836 temp3 = true;
16837 }
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 resultobj = SWIG_Py_Void();
16845 {
16846 if (temp3)
16847 delete arg3;
16848 }
16849 return resultobj;
16850fail:
16851 {
16852 if (temp3)
16853 delete arg3;
16854 }
16855 return NULL;
16856}
16857
16858
16859SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16860 PyObject *resultobj = 0;
16861 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16862 unsigned int arg2 ;
16863 wxToolTip *result = 0 ;
16864 void *argp1 = 0 ;
16865 int res1 = 0 ;
16866 unsigned int val2 ;
16867 int ecode2 = 0 ;
16868 PyObject * obj0 = 0 ;
16869 PyObject * obj1 = 0 ;
16870 char * kwnames[] = {
16871 (char *) "self",(char *) "item", NULL
16872 };
16873
16874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16878 }
16879 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16880 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16881 if (!SWIG_IsOK(ecode2)) {
16882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16883 }
16884 arg2 = static_cast< unsigned int >(val2);
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 {
16892 resultobj = wxPyMake_wxObject(result, (bool)0);
16893 }
16894 return resultobj;
16895fail:
16896 return NULL;
16897}
16898
16899
b850e7f3
RD
16900SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16901 PyObject *resultobj = 0;
16902 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16903 unsigned int arg2 ;
16904 wxString *arg3 = 0 ;
16905 void *argp1 = 0 ;
16906 int res1 = 0 ;
16907 unsigned int val2 ;
16908 int ecode2 = 0 ;
16909 bool temp3 = false ;
16910 PyObject * obj0 = 0 ;
16911 PyObject * obj1 = 0 ;
16912 PyObject * obj2 = 0 ;
16913 char * kwnames[] = {
16914 (char *) "self",(char *) "n",(char *) "helpText", NULL
16915 };
16916
16917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16921 }
16922 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16923 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16924 if (!SWIG_IsOK(ecode2)) {
16925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16926 }
16927 arg2 = static_cast< unsigned int >(val2);
16928 {
16929 arg3 = wxString_in_helper(obj2);
16930 if (arg3 == NULL) SWIG_fail;
16931 temp3 = true;
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
16936 wxPyEndAllowThreads(__tstate);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 resultobj = SWIG_Py_Void();
16940 {
16941 if (temp3)
16942 delete arg3;
16943 }
16944 return resultobj;
16945fail:
16946 {
16947 if (temp3)
16948 delete arg3;
16949 }
16950 return NULL;
16951}
16952
16953
16954SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16957 unsigned int arg2 ;
16958 wxString result;
16959 void *argp1 = 0 ;
16960 int res1 = 0 ;
16961 unsigned int val2 ;
16962 int ecode2 = 0 ;
16963 PyObject * obj0 = 0 ;
16964 PyObject * obj1 = 0 ;
16965 char * kwnames[] = {
16966 (char *) "self",(char *) "n", NULL
16967 };
16968
16969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
16970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16971 if (!SWIG_IsOK(res1)) {
16972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16973 }
16974 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16975 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16976 if (!SWIG_IsOK(ecode2)) {
16977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16978 }
16979 arg2 = static_cast< unsigned int >(val2);
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 {
16987#if wxUSE_UNICODE
16988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16989#else
16990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16991#endif
16992 }
16993 return resultobj;
16994fail:
16995 return NULL;
16996}
16997
16998
1bd55598
RD
16999SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj = 0;
17001 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17002 SwigValueWrapper<wxVisualAttributes > result;
17003 int val1 ;
17004 int ecode1 = 0 ;
17005 PyObject * obj0 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "variant", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17011 if (obj0) {
17012 ecode1 = SWIG_AsVal_int(obj0, &val1);
17013 if (!SWIG_IsOK(ecode1)) {
17014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17015 }
17016 arg1 = static_cast< wxWindowVariant >(val1);
17017 }
17018 {
17019 if (!wxPyCheckForApp()) SWIG_fail;
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17026 return resultobj;
17027fail:
17028 return NULL;
17029}
17030
17031
17032SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17033 PyObject *obj;
17034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17035 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17036 return SWIG_Py_Void();
17037}
17038
17039SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17040 return SWIG_Python_InitShadowInstance(args);
17041}
17042
17043SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj = 0;
17045 wxWindow *arg1 = (wxWindow *) 0 ;
17046 int arg2 = (int) -1 ;
17047 wxString const &arg3_defvalue = wxPyEmptyString ;
17048 wxString *arg3 = (wxString *) &arg3_defvalue ;
17049 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17050 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17051 wxSize const &arg5_defvalue = wxDefaultSize ;
17052 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17053 long arg6 = (long) 0 ;
17054 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17055 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17056 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17057 wxString *arg8 = (wxString *) &arg8_defvalue ;
17058 wxRadioButton *result = 0 ;
17059 void *argp1 = 0 ;
17060 int res1 = 0 ;
17061 int val2 ;
17062 int ecode2 = 0 ;
17063 bool temp3 = false ;
17064 wxPoint temp4 ;
17065 wxSize temp5 ;
17066 long val6 ;
17067 int ecode6 = 0 ;
17068 void *argp7 = 0 ;
17069 int res7 = 0 ;
17070 bool temp8 = false ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 PyObject * obj2 = 0 ;
17074 PyObject * obj3 = 0 ;
17075 PyObject * obj4 = 0 ;
17076 PyObject * obj5 = 0 ;
17077 PyObject * obj6 = 0 ;
17078 PyObject * obj7 = 0 ;
17079 char * kwnames[] = {
17080 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17081 };
17082
17083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17085 if (!SWIG_IsOK(res1)) {
17086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17087 }
17088 arg1 = reinterpret_cast< wxWindow * >(argp1);
17089 if (obj1) {
17090 ecode2 = SWIG_AsVal_int(obj1, &val2);
17091 if (!SWIG_IsOK(ecode2)) {
17092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17093 }
17094 arg2 = static_cast< int >(val2);
17095 }
17096 if (obj2) {
d55e5bfc 17097 {
1bd55598
RD
17098 arg3 = wxString_in_helper(obj2);
17099 if (arg3 == NULL) SWIG_fail;
17100 temp3 = true;
d55e5bfc 17101 }
1bd55598
RD
17102 }
17103 if (obj3) {
d55e5bfc 17104 {
1bd55598
RD
17105 arg4 = &temp4;
17106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17107 }
1bd55598
RD
17108 }
17109 if (obj4) {
d55e5bfc 17110 {
1bd55598
RD
17111 arg5 = &temp5;
17112 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17113 }
1bd55598
RD
17114 }
17115 if (obj5) {
17116 ecode6 = SWIG_AsVal_long(obj5, &val6);
17117 if (!SWIG_IsOK(ecode6)) {
17118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17119 }
17120 arg6 = static_cast< long >(val6);
17121 }
17122 if (obj6) {
17123 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17124 if (!SWIG_IsOK(res7)) {
17125 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17126 }
1bd55598
RD
17127 if (!argp7) {
17128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17129 }
17130 arg7 = reinterpret_cast< wxValidator * >(argp7);
17131 }
17132 if (obj7) {
d55e5bfc 17133 {
1bd55598
RD
17134 arg8 = wxString_in_helper(obj7);
17135 if (arg8 == NULL) SWIG_fail;
17136 temp8 = true;
d55e5bfc 17137 }
1bd55598
RD
17138 }
17139 {
17140 if (!wxPyCheckForApp()) SWIG_fail;
17141 PyThreadState* __tstate = wxPyBeginAllowThreads();
17142 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17143 wxPyEndAllowThreads(__tstate);
17144 if (PyErr_Occurred()) SWIG_fail;
17145 }
17146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17147 {
17148 if (temp3)
17149 delete arg3;
17150 }
17151 {
17152 if (temp8)
17153 delete arg8;
17154 }
17155 return resultobj;
17156fail:
17157 {
17158 if (temp3)
17159 delete arg3;
17160 }
17161 {
17162 if (temp8)
17163 delete arg8;
17164 }
17165 return NULL;
d55e5bfc
RD
17166}
17167
17168
1bd55598
RD
17169SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17170 PyObject *resultobj = 0;
17171 wxRadioButton *result = 0 ;
17172
17173 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17174 {
17175 if (!wxPyCheckForApp()) SWIG_fail;
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = (wxRadioButton *)new wxRadioButton();
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17182 return resultobj;
17183fail:
17184 return NULL;
17185}
17186
17187
17188SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj = 0;
17190 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17191 wxWindow *arg2 = (wxWindow *) 0 ;
17192 int arg3 = (int) -1 ;
17193 wxString const &arg4_defvalue = wxPyEmptyString ;
17194 wxString *arg4 = (wxString *) &arg4_defvalue ;
17195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17197 wxSize const &arg6_defvalue = wxDefaultSize ;
17198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17199 long arg7 = (long) 0 ;
17200 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17201 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17202 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17203 wxString *arg9 = (wxString *) &arg9_defvalue ;
17204 bool result;
17205 void *argp1 = 0 ;
17206 int res1 = 0 ;
17207 void *argp2 = 0 ;
17208 int res2 = 0 ;
17209 int val3 ;
17210 int ecode3 = 0 ;
17211 bool temp4 = false ;
17212 wxPoint temp5 ;
17213 wxSize temp6 ;
17214 long val7 ;
17215 int ecode7 = 0 ;
17216 void *argp8 = 0 ;
17217 int res8 = 0 ;
17218 bool temp9 = false ;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 PyObject * obj2 = 0 ;
17222 PyObject * obj3 = 0 ;
17223 PyObject * obj4 = 0 ;
17224 PyObject * obj5 = 0 ;
17225 PyObject * obj6 = 0 ;
17226 PyObject * obj7 = 0 ;
17227 PyObject * obj8 = 0 ;
17228 char * kwnames[] = {
17229 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17230 };
17231
17232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17234 if (!SWIG_IsOK(res1)) {
17235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17236 }
17237 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17239 if (!SWIG_IsOK(res2)) {
17240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17241 }
17242 arg2 = reinterpret_cast< wxWindow * >(argp2);
17243 if (obj2) {
17244 ecode3 = SWIG_AsVal_int(obj2, &val3);
17245 if (!SWIG_IsOK(ecode3)) {
17246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17247 }
17248 arg3 = static_cast< int >(val3);
17249 }
17250 if (obj3) {
d55e5bfc 17251 {
1bd55598
RD
17252 arg4 = wxString_in_helper(obj3);
17253 if (arg4 == NULL) SWIG_fail;
17254 temp4 = true;
d55e5bfc 17255 }
1bd55598
RD
17256 }
17257 if (obj4) {
d55e5bfc 17258 {
1bd55598
RD
17259 arg5 = &temp5;
17260 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17261 }
1bd55598
RD
17262 }
17263 if (obj5) {
d55e5bfc 17264 {
1bd55598
RD
17265 arg6 = &temp6;
17266 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17267 }
1bd55598
RD
17268 }
17269 if (obj6) {
17270 ecode7 = SWIG_AsVal_long(obj6, &val7);
17271 if (!SWIG_IsOK(ecode7)) {
17272 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17273 }
17274 arg7 = static_cast< long >(val7);
17275 }
17276 if (obj7) {
17277 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17278 if (!SWIG_IsOK(res8)) {
17279 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17280 }
1bd55598
RD
17281 if (!argp8) {
17282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17283 }
1bd55598
RD
17284 arg8 = reinterpret_cast< wxValidator * >(argp8);
17285 }
17286 if (obj8) {
d55e5bfc 17287 {
1bd55598
RD
17288 arg9 = wxString_in_helper(obj8);
17289 if (arg9 == NULL) SWIG_fail;
17290 temp9 = true;
d55e5bfc 17291 }
1bd55598
RD
17292 }
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 {
17300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17301 }
17302 {
17303 if (temp4)
17304 delete arg4;
17305 }
17306 {
17307 if (temp9)
17308 delete arg9;
17309 }
17310 return resultobj;
17311fail:
17312 {
17313 if (temp4)
17314 delete arg4;
17315 }
17316 {
17317 if (temp9)
17318 delete arg9;
17319 }
17320 return NULL;
d55e5bfc
RD
17321}
17322
17323
1bd55598
RD
17324SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17325 PyObject *resultobj = 0;
17326 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17327 bool result;
17328 void *argp1 = 0 ;
17329 int res1 = 0 ;
17330 PyObject *swig_obj[1] ;
17331
17332 if (!args) SWIG_fail;
17333 swig_obj[0] = args;
17334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17335 if (!SWIG_IsOK(res1)) {
17336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17337 }
17338 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = (bool)(arg1)->GetValue();
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 {
17346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17347 }
17348 return resultobj;
17349fail:
17350 return NULL;
17351}
17352
17353
17354SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj = 0;
17356 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17357 bool arg2 ;
17358 void *argp1 = 0 ;
17359 int res1 = 0 ;
17360 bool val2 ;
17361 int ecode2 = 0 ;
17362 PyObject * obj0 = 0 ;
17363 PyObject * obj1 = 0 ;
17364 char * kwnames[] = {
17365 (char *) "self",(char *) "value", NULL
17366 };
17367
17368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17370 if (!SWIG_IsOK(res1)) {
17371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17372 }
17373 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17374 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17375 if (!SWIG_IsOK(ecode2)) {
17376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17377 }
17378 arg2 = static_cast< bool >(val2);
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
17381 (arg1)->SetValue(arg2);
17382 wxPyEndAllowThreads(__tstate);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 resultobj = SWIG_Py_Void();
17386 return resultobj;
17387fail:
17388 return NULL;
17389}
17390
17391
17392SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj = 0;
17394 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17395 SwigValueWrapper<wxVisualAttributes > result;
17396 int val1 ;
17397 int ecode1 = 0 ;
17398 PyObject * obj0 = 0 ;
17399 char * kwnames[] = {
17400 (char *) "variant", NULL
17401 };
17402
17403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17404 if (obj0) {
17405 ecode1 = SWIG_AsVal_int(obj0, &val1);
17406 if (!SWIG_IsOK(ecode1)) {
17407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17408 }
17409 arg1 = static_cast< wxWindowVariant >(val1);
17410 }
17411 {
17412 if (!wxPyCheckForApp()) SWIG_fail;
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17419 return resultobj;
17420fail:
17421 return NULL;
d55e5bfc
RD
17422}
17423
17424
1bd55598
RD
17425SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17426 PyObject *obj;
17427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17428 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17429 return SWIG_Py_Void();
d55e5bfc
RD
17430}
17431
1bd55598
RD
17432SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17433 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17434}
17435
1bd55598
RD
17436SWIGINTERN int SliderNameStr_set(PyObject *) {
17437 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17438 return 1;
d55e5bfc
RD
17439}
17440
17441
1bd55598
RD
17442SWIGINTERN PyObject *SliderNameStr_get(void) {
17443 PyObject *pyobj = 0;
17444
17445 {
17446#if wxUSE_UNICODE
17447 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17448#else
17449 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17450#endif
17451 }
17452 return pyobj;
17453}
17454
17455
17456SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj = 0;
17458 wxWindow *arg1 = (wxWindow *) 0 ;
17459 int arg2 = (int) -1 ;
17460 int arg3 = (int) 0 ;
17461 int arg4 = (int) 0 ;
17462 int arg5 = (int) 100 ;
17463 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17464 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17465 wxSize const &arg7_defvalue = wxDefaultSize ;
17466 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17467 long arg8 = (long) wxSL_HORIZONTAL ;
17468 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17469 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17470 wxString const &arg10_defvalue = wxPySliderNameStr ;
17471 wxString *arg10 = (wxString *) &arg10_defvalue ;
17472 wxSlider *result = 0 ;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 int val2 ;
17476 int ecode2 = 0 ;
17477 int val3 ;
17478 int ecode3 = 0 ;
17479 int val4 ;
17480 int ecode4 = 0 ;
17481 int val5 ;
17482 int ecode5 = 0 ;
17483 wxPoint temp6 ;
17484 wxSize temp7 ;
17485 long val8 ;
17486 int ecode8 = 0 ;
17487 void *argp9 = 0 ;
17488 int res9 = 0 ;
17489 bool temp10 = false ;
17490 PyObject * obj0 = 0 ;
17491 PyObject * obj1 = 0 ;
17492 PyObject * obj2 = 0 ;
17493 PyObject * obj3 = 0 ;
17494 PyObject * obj4 = 0 ;
17495 PyObject * obj5 = 0 ;
17496 PyObject * obj6 = 0 ;
17497 PyObject * obj7 = 0 ;
17498 PyObject * obj8 = 0 ;
17499 PyObject * obj9 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17502 };
17503
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17506 if (!SWIG_IsOK(res1)) {
17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17508 }
17509 arg1 = reinterpret_cast< wxWindow * >(argp1);
17510 if (obj1) {
17511 ecode2 = SWIG_AsVal_int(obj1, &val2);
17512 if (!SWIG_IsOK(ecode2)) {
17513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17514 }
17515 arg2 = static_cast< int >(val2);
17516 }
17517 if (obj2) {
17518 ecode3 = SWIG_AsVal_int(obj2, &val3);
17519 if (!SWIG_IsOK(ecode3)) {
17520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17521 }
17522 arg3 = static_cast< int >(val3);
17523 }
17524 if (obj3) {
17525 ecode4 = SWIG_AsVal_int(obj3, &val4);
17526 if (!SWIG_IsOK(ecode4)) {
17527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17528 }
17529 arg4 = static_cast< int >(val4);
17530 }
17531 if (obj4) {
17532 ecode5 = SWIG_AsVal_int(obj4, &val5);
17533 if (!SWIG_IsOK(ecode5)) {
17534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17535 }
17536 arg5 = static_cast< int >(val5);
17537 }
17538 if (obj5) {
36ed4f51 17539 {
1bd55598
RD
17540 arg6 = &temp6;
17541 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17542 }
1bd55598
RD
17543 }
17544 if (obj6) {
36ed4f51 17545 {
1bd55598
RD
17546 arg7 = &temp7;
17547 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17548 }
1bd55598
RD
17549 }
17550 if (obj7) {
17551 ecode8 = SWIG_AsVal_long(obj7, &val8);
17552 if (!SWIG_IsOK(ecode8)) {
17553 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17554 }
17555 arg8 = static_cast< long >(val8);
17556 }
17557 if (obj8) {
17558 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17559 if (!SWIG_IsOK(res9)) {
17560 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17561 }
1bd55598
RD
17562 if (!argp9) {
17563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17564 }
1bd55598
RD
17565 arg9 = reinterpret_cast< wxValidator * >(argp9);
17566 }
17567 if (obj9) {
d55e5bfc 17568 {
1bd55598
RD
17569 arg10 = wxString_in_helper(obj9);
17570 if (arg10 == NULL) SWIG_fail;
17571 temp10 = true;
d55e5bfc 17572 }
1bd55598
RD
17573 }
17574 {
17575 if (!wxPyCheckForApp()) SWIG_fail;
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17578 wxPyEndAllowThreads(__tstate);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17582 {
17583 if (temp10)
17584 delete arg10;
17585 }
17586 return resultobj;
17587fail:
17588 {
17589 if (temp10)
17590 delete arg10;
17591 }
17592 return NULL;
d55e5bfc
RD
17593}
17594
17595
1bd55598
RD
17596SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17597 PyObject *resultobj = 0;
17598 wxSlider *result = 0 ;
17599
17600 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17601 {
17602 if (!wxPyCheckForApp()) SWIG_fail;
17603 PyThreadState* __tstate = wxPyBeginAllowThreads();
17604 result = (wxSlider *)new wxSlider();
17605 wxPyEndAllowThreads(__tstate);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17609 return resultobj;
17610fail:
17611 return NULL;
17612}
17613
17614
17615SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17616 PyObject *resultobj = 0;
17617 wxSlider *arg1 = (wxSlider *) 0 ;
17618 wxWindow *arg2 = (wxWindow *) 0 ;
17619 int arg3 = (int) -1 ;
17620 int arg4 = (int) 0 ;
17621 int arg5 = (int) 0 ;
17622 int arg6 = (int) 100 ;
17623 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17624 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17625 wxSize const &arg8_defvalue = wxDefaultSize ;
17626 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17627 long arg9 = (long) wxSL_HORIZONTAL ;
17628 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17629 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17630 wxString const &arg11_defvalue = wxPySliderNameStr ;
17631 wxString *arg11 = (wxString *) &arg11_defvalue ;
17632 bool result;
17633 void *argp1 = 0 ;
17634 int res1 = 0 ;
17635 void *argp2 = 0 ;
17636 int res2 = 0 ;
17637 int val3 ;
17638 int ecode3 = 0 ;
17639 int val4 ;
17640 int ecode4 = 0 ;
17641 int val5 ;
17642 int ecode5 = 0 ;
17643 int val6 ;
17644 int ecode6 = 0 ;
17645 wxPoint temp7 ;
17646 wxSize temp8 ;
17647 long val9 ;
17648 int ecode9 = 0 ;
17649 void *argp10 = 0 ;
17650 int res10 = 0 ;
17651 bool temp11 = false ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 PyObject * obj2 = 0 ;
17655 PyObject * obj3 = 0 ;
17656 PyObject * obj4 = 0 ;
17657 PyObject * obj5 = 0 ;
17658 PyObject * obj6 = 0 ;
17659 PyObject * obj7 = 0 ;
17660 PyObject * obj8 = 0 ;
17661 PyObject * obj9 = 0 ;
17662 PyObject * obj10 = 0 ;
17663 char * kwnames[] = {
17664 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17665 };
17666
17667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17669 if (!SWIG_IsOK(res1)) {
17670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17671 }
17672 arg1 = reinterpret_cast< wxSlider * >(argp1);
17673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17674 if (!SWIG_IsOK(res2)) {
17675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17676 }
17677 arg2 = reinterpret_cast< wxWindow * >(argp2);
17678 if (obj2) {
17679 ecode3 = SWIG_AsVal_int(obj2, &val3);
17680 if (!SWIG_IsOK(ecode3)) {
17681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17682 }
17683 arg3 = static_cast< int >(val3);
17684 }
17685 if (obj3) {
17686 ecode4 = SWIG_AsVal_int(obj3, &val4);
17687 if (!SWIG_IsOK(ecode4)) {
17688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17689 }
17690 arg4 = static_cast< int >(val4);
17691 }
17692 if (obj4) {
17693 ecode5 = SWIG_AsVal_int(obj4, &val5);
17694 if (!SWIG_IsOK(ecode5)) {
17695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17696 }
17697 arg5 = static_cast< int >(val5);
17698 }
17699 if (obj5) {
17700 ecode6 = SWIG_AsVal_int(obj5, &val6);
17701 if (!SWIG_IsOK(ecode6)) {
17702 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17703 }
17704 arg6 = static_cast< int >(val6);
17705 }
17706 if (obj6) {
d55e5bfc 17707 {
1bd55598
RD
17708 arg7 = &temp7;
17709 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17710 }
1bd55598
RD
17711 }
17712 if (obj7) {
d55e5bfc 17713 {
1bd55598
RD
17714 arg8 = &temp8;
17715 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17716 }
1bd55598
RD
17717 }
17718 if (obj8) {
17719 ecode9 = SWIG_AsVal_long(obj8, &val9);
17720 if (!SWIG_IsOK(ecode9)) {
17721 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17722 }
17723 arg9 = static_cast< long >(val9);
17724 }
17725 if (obj9) {
17726 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17727 if (!SWIG_IsOK(res10)) {
17728 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17729 }
1bd55598
RD
17730 if (!argp10) {
17731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17732 }
1bd55598
RD
17733 arg10 = reinterpret_cast< wxValidator * >(argp10);
17734 }
17735 if (obj10) {
d55e5bfc 17736 {
1bd55598
RD
17737 arg11 = wxString_in_helper(obj10);
17738 if (arg11 == NULL) SWIG_fail;
17739 temp11 = true;
d55e5bfc 17740 }
1bd55598
RD
17741 }
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17745 wxPyEndAllowThreads(__tstate);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 {
17749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17750 }
17751 {
17752 if (temp11)
17753 delete arg11;
17754 }
17755 return resultobj;
17756fail:
17757 {
17758 if (temp11)
17759 delete arg11;
17760 }
17761 return NULL;
d55e5bfc
RD
17762}
17763
17764
1bd55598
RD
17765SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17766 PyObject *resultobj = 0;
17767 wxSlider *arg1 = (wxSlider *) 0 ;
17768 int result;
17769 void *argp1 = 0 ;
17770 int res1 = 0 ;
17771 PyObject *swig_obj[1] ;
17772
17773 if (!args) SWIG_fail;
17774 swig_obj[0] = args;
17775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17776 if (!SWIG_IsOK(res1)) {
17777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17778 }
17779 arg1 = reinterpret_cast< wxSlider * >(argp1);
17780 {
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 result = (int)((wxSlider const *)arg1)->GetValue();
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_From_int(static_cast< int >(result));
17787 return resultobj;
17788fail:
17789 return NULL;
17790}
17791
17792
17793SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17794 PyObject *resultobj = 0;
17795 wxSlider *arg1 = (wxSlider *) 0 ;
17796 int arg2 ;
17797 void *argp1 = 0 ;
17798 int res1 = 0 ;
17799 int val2 ;
17800 int ecode2 = 0 ;
17801 PyObject * obj0 = 0 ;
17802 PyObject * obj1 = 0 ;
17803 char * kwnames[] = {
17804 (char *) "self",(char *) "value", NULL
17805 };
17806
17807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17809 if (!SWIG_IsOK(res1)) {
17810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17811 }
17812 arg1 = reinterpret_cast< wxSlider * >(argp1);
17813 ecode2 = SWIG_AsVal_int(obj1, &val2);
17814 if (!SWIG_IsOK(ecode2)) {
17815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17816 }
17817 arg2 = static_cast< int >(val2);
17818 {
17819 PyThreadState* __tstate = wxPyBeginAllowThreads();
17820 (arg1)->SetValue(arg2);
17821 wxPyEndAllowThreads(__tstate);
17822 if (PyErr_Occurred()) SWIG_fail;
17823 }
17824 resultobj = SWIG_Py_Void();
17825 return resultobj;
17826fail:
17827 return NULL;
17828}
17829
17830
17831SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17832 PyObject *resultobj = 0;
17833 wxSlider *arg1 = (wxSlider *) 0 ;
17834 int arg2 ;
17835 int arg3 ;
17836 void *argp1 = 0 ;
17837 int res1 = 0 ;
17838 int val2 ;
17839 int ecode2 = 0 ;
17840 int val3 ;
17841 int ecode3 = 0 ;
17842 PyObject * obj0 = 0 ;
17843 PyObject * obj1 = 0 ;
17844 PyObject * obj2 = 0 ;
17845 char * kwnames[] = {
17846 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17847 };
17848
17849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17851 if (!SWIG_IsOK(res1)) {
17852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17853 }
17854 arg1 = reinterpret_cast< wxSlider * >(argp1);
17855 ecode2 = SWIG_AsVal_int(obj1, &val2);
17856 if (!SWIG_IsOK(ecode2)) {
17857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17858 }
17859 arg2 = static_cast< int >(val2);
17860 ecode3 = SWIG_AsVal_int(obj2, &val3);
17861 if (!SWIG_IsOK(ecode3)) {
17862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17863 }
17864 arg3 = static_cast< int >(val3);
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 (arg1)->SetRange(arg2,arg3);
17868 wxPyEndAllowThreads(__tstate);
17869 if (PyErr_Occurred()) SWIG_fail;
17870 }
17871 resultobj = SWIG_Py_Void();
17872 return resultobj;
17873fail:
17874 return NULL;
d55e5bfc
RD
17875}
17876
17877
1bd55598
RD
17878SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17879 PyObject *resultobj = 0;
17880 wxSlider *arg1 = (wxSlider *) 0 ;
17881 int result;
17882 void *argp1 = 0 ;
17883 int res1 = 0 ;
17884 PyObject *swig_obj[1] ;
17885
17886 if (!args) SWIG_fail;
17887 swig_obj[0] = args;
17888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17889 if (!SWIG_IsOK(res1)) {
17890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17891 }
17892 arg1 = reinterpret_cast< wxSlider * >(argp1);
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = (int)((wxSlider const *)arg1)->GetMin();
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_From_int(static_cast< int >(result));
17900 return resultobj;
17901fail:
17902 return NULL;
f20a2e1f
RD
17903}
17904
17905
1bd55598
RD
17906SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17907 PyObject *resultobj = 0;
17908 wxSlider *arg1 = (wxSlider *) 0 ;
17909 int result;
17910 void *argp1 = 0 ;
17911 int res1 = 0 ;
17912 PyObject *swig_obj[1] ;
17913
17914 if (!args) SWIG_fail;
17915 swig_obj[0] = args;
17916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17917 if (!SWIG_IsOK(res1)) {
17918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17919 }
17920 arg1 = reinterpret_cast< wxSlider * >(argp1);
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 result = (int)((wxSlider const *)arg1)->GetMax();
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_From_int(static_cast< int >(result));
17928 return resultobj;
17929fail:
17930 return NULL;
17931}
17932
17933
17934SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj = 0;
17936 wxSlider *arg1 = (wxSlider *) 0 ;
17937 int arg2 ;
17938 void *argp1 = 0 ;
17939 int res1 = 0 ;
17940 int val2 ;
17941 int ecode2 = 0 ;
17942 PyObject * obj0 = 0 ;
17943 PyObject * obj1 = 0 ;
17944 char * kwnames[] = {
17945 (char *) "self",(char *) "minValue", NULL
17946 };
17947
17948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17950 if (!SWIG_IsOK(res1)) {
17951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17952 }
17953 arg1 = reinterpret_cast< wxSlider * >(argp1);
17954 ecode2 = SWIG_AsVal_int(obj1, &val2);
17955 if (!SWIG_IsOK(ecode2)) {
17956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17957 }
17958 arg2 = static_cast< int >(val2);
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 (arg1)->SetMin(arg2);
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 resultobj = SWIG_Py_Void();
17966 return resultobj;
17967fail:
17968 return NULL;
17969}
17970
17971
17972SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj = 0;
17974 wxSlider *arg1 = (wxSlider *) 0 ;
17975 int arg2 ;
17976 void *argp1 = 0 ;
17977 int res1 = 0 ;
17978 int val2 ;
17979 int ecode2 = 0 ;
17980 PyObject * obj0 = 0 ;
17981 PyObject * obj1 = 0 ;
17982 char * kwnames[] = {
17983 (char *) "self",(char *) "maxValue", NULL
17984 };
17985
17986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17988 if (!SWIG_IsOK(res1)) {
17989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17990 }
17991 arg1 = reinterpret_cast< wxSlider * >(argp1);
17992 ecode2 = SWIG_AsVal_int(obj1, &val2);
17993 if (!SWIG_IsOK(ecode2)) {
17994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17995 }
17996 arg2 = static_cast< int >(val2);
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 (arg1)->SetMax(arg2);
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 resultobj = SWIG_Py_Void();
18004 return resultobj;
18005fail:
18006 return NULL;
18007}
18008
18009
18010SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj = 0;
18012 wxSlider *arg1 = (wxSlider *) 0 ;
18013 int arg2 ;
18014 void *argp1 = 0 ;
18015 int res1 = 0 ;
18016 int val2 ;
18017 int ecode2 = 0 ;
18018 PyObject * obj0 = 0 ;
18019 PyObject * obj1 = 0 ;
18020 char * kwnames[] = {
18021 (char *) "self",(char *) "lineSize", NULL
18022 };
18023
18024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18026 if (!SWIG_IsOK(res1)) {
18027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18028 }
18029 arg1 = reinterpret_cast< wxSlider * >(argp1);
18030 ecode2 = SWIG_AsVal_int(obj1, &val2);
18031 if (!SWIG_IsOK(ecode2)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18033 }
18034 arg2 = static_cast< int >(val2);
18035 {
18036 PyThreadState* __tstate = wxPyBeginAllowThreads();
18037 (arg1)->SetLineSize(arg2);
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 resultobj = SWIG_Py_Void();
18042 return resultobj;
18043fail:
18044 return NULL;
18045}
18046
18047
18048SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxSlider *arg1 = (wxSlider *) 0 ;
18051 int arg2 ;
18052 void *argp1 = 0 ;
18053 int res1 = 0 ;
18054 int val2 ;
18055 int ecode2 = 0 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 char * kwnames[] = {
18059 (char *) "self",(char *) "pageSize", NULL
18060 };
18061
18062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18066 }
18067 arg1 = reinterpret_cast< wxSlider * >(argp1);
18068 ecode2 = SWIG_AsVal_int(obj1, &val2);
18069 if (!SWIG_IsOK(ecode2)) {
18070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18071 }
18072 arg2 = static_cast< int >(val2);
18073 {
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 (arg1)->SetPageSize(arg2);
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 resultobj = SWIG_Py_Void();
18080 return resultobj;
18081fail:
18082 return NULL;
d55e5bfc
RD
18083}
18084
18085
1bd55598
RD
18086SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18087 PyObject *resultobj = 0;
18088 wxSlider *arg1 = (wxSlider *) 0 ;
18089 int result;
18090 void *argp1 = 0 ;
18091 int res1 = 0 ;
18092 PyObject *swig_obj[1] ;
18093
18094 if (!args) SWIG_fail;
18095 swig_obj[0] = args;
18096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18097 if (!SWIG_IsOK(res1)) {
18098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18099 }
18100 arg1 = reinterpret_cast< wxSlider * >(argp1);
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 result = (int)((wxSlider const *)arg1)->GetLineSize();
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_From_int(static_cast< int >(result));
18108 return resultobj;
18109fail:
18110 return NULL;
d55e5bfc
RD
18111}
18112
18113
1bd55598
RD
18114SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18115 PyObject *resultobj = 0;
18116 wxSlider *arg1 = (wxSlider *) 0 ;
18117 int result;
18118 void *argp1 = 0 ;
18119 int res1 = 0 ;
18120 PyObject *swig_obj[1] ;
18121
18122 if (!args) SWIG_fail;
18123 swig_obj[0] = args;
18124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18125 if (!SWIG_IsOK(res1)) {
18126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18127 }
18128 arg1 = reinterpret_cast< wxSlider * >(argp1);
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 result = (int)((wxSlider const *)arg1)->GetPageSize();
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 resultobj = SWIG_From_int(static_cast< int >(result));
18136 return resultobj;
18137fail:
18138 return NULL;
18139}
18140
18141
18142SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj = 0;
18144 wxSlider *arg1 = (wxSlider *) 0 ;
18145 int arg2 ;
18146 void *argp1 = 0 ;
18147 int res1 = 0 ;
18148 int val2 ;
18149 int ecode2 = 0 ;
18150 PyObject * obj0 = 0 ;
18151 PyObject * obj1 = 0 ;
18152 char * kwnames[] = {
18153 (char *) "self",(char *) "lenPixels", NULL
18154 };
18155
18156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18158 if (!SWIG_IsOK(res1)) {
18159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18160 }
18161 arg1 = reinterpret_cast< wxSlider * >(argp1);
18162 ecode2 = SWIG_AsVal_int(obj1, &val2);
18163 if (!SWIG_IsOK(ecode2)) {
18164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18165 }
18166 arg2 = static_cast< int >(val2);
18167 {
18168 PyThreadState* __tstate = wxPyBeginAllowThreads();
18169 (arg1)->SetThumbLength(arg2);
18170 wxPyEndAllowThreads(__tstate);
18171 if (PyErr_Occurred()) SWIG_fail;
18172 }
18173 resultobj = SWIG_Py_Void();
18174 return resultobj;
18175fail:
18176 return NULL;
d55e5bfc
RD
18177}
18178
18179
1bd55598
RD
18180SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18181 PyObject *resultobj = 0;
18182 wxSlider *arg1 = (wxSlider *) 0 ;
18183 int result;
18184 void *argp1 = 0 ;
18185 int res1 = 0 ;
18186 PyObject *swig_obj[1] ;
18187
18188 if (!args) SWIG_fail;
18189 swig_obj[0] = args;
18190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18191 if (!SWIG_IsOK(res1)) {
18192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18193 }
18194 arg1 = reinterpret_cast< wxSlider * >(argp1);
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 resultobj = SWIG_From_int(static_cast< int >(result));
18202 return resultobj;
18203fail:
18204 return NULL;
18205}
18206
18207
18208SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18209 PyObject *resultobj = 0;
18210 wxSlider *arg1 = (wxSlider *) 0 ;
18211 int arg2 ;
18212 int arg3 = (int) 1 ;
18213 void *argp1 = 0 ;
18214 int res1 = 0 ;
18215 int val2 ;
18216 int ecode2 = 0 ;
18217 int val3 ;
18218 int ecode3 = 0 ;
18219 PyObject * obj0 = 0 ;
18220 PyObject * obj1 = 0 ;
18221 PyObject * obj2 = 0 ;
18222 char * kwnames[] = {
18223 (char *) "self",(char *) "n",(char *) "pos", NULL
18224 };
18225
18226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18230 }
18231 arg1 = reinterpret_cast< wxSlider * >(argp1);
18232 ecode2 = SWIG_AsVal_int(obj1, &val2);
18233 if (!SWIG_IsOK(ecode2)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18235 }
18236 arg2 = static_cast< int >(val2);
18237 if (obj2) {
18238 ecode3 = SWIG_AsVal_int(obj2, &val3);
18239 if (!SWIG_IsOK(ecode3)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18241 }
18242 arg3 = static_cast< int >(val3);
18243 }
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 (arg1)->SetTickFreq(arg2,arg3);
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 resultobj = SWIG_Py_Void();
18251 return resultobj;
18252fail:
18253 return NULL;
d55e5bfc
RD
18254}
18255
18256
1bd55598
RD
18257SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18258 PyObject *resultobj = 0;
18259 wxSlider *arg1 = (wxSlider *) 0 ;
18260 int result;
18261 void *argp1 = 0 ;
18262 int res1 = 0 ;
18263 PyObject *swig_obj[1] ;
18264
18265 if (!args) SWIG_fail;
18266 swig_obj[0] = args;
18267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18268 if (!SWIG_IsOK(res1)) {
18269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18270 }
18271 arg1 = reinterpret_cast< wxSlider * >(argp1);
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_From_int(static_cast< int >(result));
18279 return resultobj;
18280fail:
18281 return NULL;
d55e5bfc
RD
18282}
18283
18284
1bd55598
RD
18285SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18286 PyObject *resultobj = 0;
18287 wxSlider *arg1 = (wxSlider *) 0 ;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 PyObject *swig_obj[1] ;
18291
18292 if (!args) SWIG_fail;
18293 swig_obj[0] = args;
18294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18295 if (!SWIG_IsOK(res1)) {
18296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18297 }
18298 arg1 = reinterpret_cast< wxSlider * >(argp1);
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->ClearTicks();
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_Py_Void();
18306 return resultobj;
18307fail:
18308 return NULL;
18309}
18310
18311
18312SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj = 0;
18314 wxSlider *arg1 = (wxSlider *) 0 ;
18315 int arg2 ;
18316 void *argp1 = 0 ;
18317 int res1 = 0 ;
18318 int val2 ;
18319 int ecode2 = 0 ;
18320 PyObject * obj0 = 0 ;
18321 PyObject * obj1 = 0 ;
18322 char * kwnames[] = {
18323 (char *) "self",(char *) "tickPos", NULL
18324 };
18325
18326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18328 if (!SWIG_IsOK(res1)) {
18329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18330 }
18331 arg1 = reinterpret_cast< wxSlider * >(argp1);
18332 ecode2 = SWIG_AsVal_int(obj1, &val2);
18333 if (!SWIG_IsOK(ecode2)) {
18334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18335 }
18336 arg2 = static_cast< int >(val2);
18337 {
18338 PyThreadState* __tstate = wxPyBeginAllowThreads();
18339 (arg1)->SetTick(arg2);
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 resultobj = SWIG_Py_Void();
18344 return resultobj;
18345fail:
18346 return NULL;
d55e5bfc
RD
18347}
18348
18349
1bd55598
RD
18350SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18351 PyObject *resultobj = 0;
18352 wxSlider *arg1 = (wxSlider *) 0 ;
18353 void *argp1 = 0 ;
18354 int res1 = 0 ;
18355 PyObject *swig_obj[1] ;
18356
18357 if (!args) SWIG_fail;
18358 swig_obj[0] = args;
18359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18360 if (!SWIG_IsOK(res1)) {
18361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18362 }
18363 arg1 = reinterpret_cast< wxSlider * >(argp1);
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 (arg1)->ClearSel();
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 resultobj = SWIG_Py_Void();
18371 return resultobj;
18372fail:
18373 return NULL;
d55e5bfc
RD
18374}
18375
18376
1bd55598
RD
18377SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18378 PyObject *resultobj = 0;
18379 wxSlider *arg1 = (wxSlider *) 0 ;
18380 int result;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 PyObject *swig_obj[1] ;
18384
18385 if (!args) SWIG_fail;
18386 swig_obj[0] = args;
18387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18388 if (!SWIG_IsOK(res1)) {
18389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18390 }
18391 arg1 = reinterpret_cast< wxSlider * >(argp1);
18392 {
18393 PyThreadState* __tstate = wxPyBeginAllowThreads();
18394 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 resultobj = SWIG_From_int(static_cast< int >(result));
18399 return resultobj;
18400fail:
18401 return NULL;
d55e5bfc
RD
18402}
18403
18404
1bd55598
RD
18405SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18406 PyObject *resultobj = 0;
18407 wxSlider *arg1 = (wxSlider *) 0 ;
18408 int result;
18409 void *argp1 = 0 ;
18410 int res1 = 0 ;
18411 PyObject *swig_obj[1] ;
18412
18413 if (!args) SWIG_fail;
18414 swig_obj[0] = args;
18415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18416 if (!SWIG_IsOK(res1)) {
18417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18418 }
18419 arg1 = reinterpret_cast< wxSlider * >(argp1);
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 result = (int)((wxSlider const *)arg1)->GetSelStart();
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 resultobj = SWIG_From_int(static_cast< int >(result));
18427 return resultobj;
18428fail:
18429 return NULL;
18430}
18431
18432
18433SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18434 PyObject *resultobj = 0;
18435 wxSlider *arg1 = (wxSlider *) 0 ;
18436 int arg2 ;
18437 int arg3 ;
18438 void *argp1 = 0 ;
18439 int res1 = 0 ;
18440 int val2 ;
18441 int ecode2 = 0 ;
18442 int val3 ;
18443 int ecode3 = 0 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 PyObject * obj2 = 0 ;
18447 char * kwnames[] = {
18448 (char *) "self",(char *) "min",(char *) "max", NULL
18449 };
18450
18451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18453 if (!SWIG_IsOK(res1)) {
18454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18455 }
18456 arg1 = reinterpret_cast< wxSlider * >(argp1);
18457 ecode2 = SWIG_AsVal_int(obj1, &val2);
18458 if (!SWIG_IsOK(ecode2)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18460 }
18461 arg2 = static_cast< int >(val2);
18462 ecode3 = SWIG_AsVal_int(obj2, &val3);
18463 if (!SWIG_IsOK(ecode3)) {
18464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18465 }
18466 arg3 = static_cast< int >(val3);
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 (arg1)->SetSelection(arg2,arg3);
18470 wxPyEndAllowThreads(__tstate);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 }
18473 resultobj = SWIG_Py_Void();
18474 return resultobj;
18475fail:
18476 return NULL;
18477}
18478
18479
18480SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18481 PyObject *resultobj = 0;
18482 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18483 SwigValueWrapper<wxVisualAttributes > result;
18484 int val1 ;
18485 int ecode1 = 0 ;
18486 PyObject * obj0 = 0 ;
18487 char * kwnames[] = {
18488 (char *) "variant", NULL
18489 };
18490
18491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18492 if (obj0) {
18493 ecode1 = SWIG_AsVal_int(obj0, &val1);
18494 if (!SWIG_IsOK(ecode1)) {
18495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18496 }
18497 arg1 = static_cast< wxWindowVariant >(val1);
18498 }
18499 {
18500 if (!wxPyCheckForApp()) SWIG_fail;
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 result = wxSlider::GetClassDefaultAttributes(arg1);
18503 wxPyEndAllowThreads(__tstate);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 }
18506 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18507 return resultobj;
18508fail:
18509 return NULL;
d55e5bfc
RD
18510}
18511
18512
1bd55598
RD
18513SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18514 PyObject *obj;
18515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18516 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18517 return SWIG_Py_Void();
d55e5bfc
RD
18518}
18519
1bd55598
RD
18520SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18521 return SWIG_Python_InitShadowInstance(args);
18522}
d55e5bfc 18523
1bd55598
RD
18524SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18525 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18526 return 1;
d55e5bfc
RD
18527}
18528
18529
1bd55598
RD
18530SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18531 PyObject *pyobj = 0;
18532
18533 {
18534#if wxUSE_UNICODE
18535 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18536#else
18537 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18538#endif
18539 }
18540 return pyobj;
18541}
18542
18543
18544SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj = 0;
18546 wxWindow *arg1 = (wxWindow *) 0 ;
18547 int arg2 = (int) -1 ;
18548 wxString const &arg3_defvalue = wxPyEmptyString ;
18549 wxString *arg3 = (wxString *) &arg3_defvalue ;
18550 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18551 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18552 wxSize const &arg5_defvalue = wxDefaultSize ;
18553 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18554 long arg6 = (long) 0 ;
18555 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18556 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18557 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18558 wxString *arg8 = (wxString *) &arg8_defvalue ;
18559 wxToggleButton *result = 0 ;
18560 void *argp1 = 0 ;
18561 int res1 = 0 ;
18562 int val2 ;
18563 int ecode2 = 0 ;
18564 bool temp3 = false ;
18565 wxPoint temp4 ;
18566 wxSize temp5 ;
18567 long val6 ;
18568 int ecode6 = 0 ;
18569 void *argp7 = 0 ;
18570 int res7 = 0 ;
18571 bool temp8 = false ;
18572 PyObject * obj0 = 0 ;
18573 PyObject * obj1 = 0 ;
18574 PyObject * obj2 = 0 ;
18575 PyObject * obj3 = 0 ;
18576 PyObject * obj4 = 0 ;
18577 PyObject * obj5 = 0 ;
18578 PyObject * obj6 = 0 ;
18579 PyObject * obj7 = 0 ;
18580 char * kwnames[] = {
18581 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18582 };
18583
18584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18586 if (!SWIG_IsOK(res1)) {
18587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18588 }
18589 arg1 = reinterpret_cast< wxWindow * >(argp1);
18590 if (obj1) {
18591 ecode2 = SWIG_AsVal_int(obj1, &val2);
18592 if (!SWIG_IsOK(ecode2)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18594 }
18595 arg2 = static_cast< int >(val2);
18596 }
18597 if (obj2) {
d55e5bfc 18598 {
1bd55598
RD
18599 arg3 = wxString_in_helper(obj2);
18600 if (arg3 == NULL) SWIG_fail;
18601 temp3 = true;
d55e5bfc 18602 }
1bd55598
RD
18603 }
18604 if (obj3) {
36ed4f51 18605 {
1bd55598
RD
18606 arg4 = &temp4;
18607 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18608 }
1bd55598
RD
18609 }
18610 if (obj4) {
d55e5bfc 18611 {
1bd55598
RD
18612 arg5 = &temp5;
18613 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18614 }
1bd55598
RD
18615 }
18616 if (obj5) {
18617 ecode6 = SWIG_AsVal_long(obj5, &val6);
18618 if (!SWIG_IsOK(ecode6)) {
18619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18620 }
18621 arg6 = static_cast< long >(val6);
18622 }
18623 if (obj6) {
18624 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18625 if (!SWIG_IsOK(res7)) {
18626 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18627 }
1bd55598
RD
18628 if (!argp7) {
18629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18630 }
1bd55598
RD
18631 arg7 = reinterpret_cast< wxValidator * >(argp7);
18632 }
18633 if (obj7) {
d55e5bfc 18634 {
1bd55598
RD
18635 arg8 = wxString_in_helper(obj7);
18636 if (arg8 == NULL) SWIG_fail;
18637 temp8 = true;
d55e5bfc 18638 }
1bd55598
RD
18639 }
18640 {
18641 if (!wxPyCheckForApp()) SWIG_fail;
18642 PyThreadState* __tstate = wxPyBeginAllowThreads();
18643 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18644 wxPyEndAllowThreads(__tstate);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18648 {
18649 if (temp3)
18650 delete arg3;
18651 }
18652 {
18653 if (temp8)
18654 delete arg8;
18655 }
18656 return resultobj;
18657fail:
18658 {
18659 if (temp3)
18660 delete arg3;
18661 }
18662 {
18663 if (temp8)
18664 delete arg8;
18665 }
18666 return NULL;
d55e5bfc
RD
18667}
18668
18669
1bd55598
RD
18670SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18671 PyObject *resultobj = 0;
18672 wxToggleButton *result = 0 ;
18673
18674 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18675 {
18676 if (!wxPyCheckForApp()) SWIG_fail;
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 result = (wxToggleButton *)new wxToggleButton();
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18683 return resultobj;
18684fail:
18685 return NULL;
18686}
18687
18688
18689SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj = 0;
18691 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18692 wxWindow *arg2 = (wxWindow *) 0 ;
18693 int arg3 = (int) -1 ;
18694 wxString const &arg4_defvalue = wxPyEmptyString ;
18695 wxString *arg4 = (wxString *) &arg4_defvalue ;
18696 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18697 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18698 wxSize const &arg6_defvalue = wxDefaultSize ;
18699 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18700 long arg7 = (long) 0 ;
18701 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18702 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18703 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18704 wxString *arg9 = (wxString *) &arg9_defvalue ;
18705 bool result;
18706 void *argp1 = 0 ;
18707 int res1 = 0 ;
18708 void *argp2 = 0 ;
18709 int res2 = 0 ;
18710 int val3 ;
18711 int ecode3 = 0 ;
18712 bool temp4 = false ;
18713 wxPoint temp5 ;
18714 wxSize temp6 ;
18715 long val7 ;
18716 int ecode7 = 0 ;
18717 void *argp8 = 0 ;
18718 int res8 = 0 ;
18719 bool temp9 = false ;
18720 PyObject * obj0 = 0 ;
18721 PyObject * obj1 = 0 ;
18722 PyObject * obj2 = 0 ;
18723 PyObject * obj3 = 0 ;
18724 PyObject * obj4 = 0 ;
18725 PyObject * obj5 = 0 ;
18726 PyObject * obj6 = 0 ;
18727 PyObject * obj7 = 0 ;
18728 PyObject * obj8 = 0 ;
18729 char * kwnames[] = {
18730 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18731 };
18732
18733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18737 }
18738 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18740 if (!SWIG_IsOK(res2)) {
18741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18742 }
18743 arg2 = reinterpret_cast< wxWindow * >(argp2);
18744 if (obj2) {
18745 ecode3 = SWIG_AsVal_int(obj2, &val3);
18746 if (!SWIG_IsOK(ecode3)) {
18747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18748 }
18749 arg3 = static_cast< int >(val3);
18750 }
18751 if (obj3) {
36ed4f51 18752 {
1bd55598
RD
18753 arg4 = wxString_in_helper(obj3);
18754 if (arg4 == NULL) SWIG_fail;
18755 temp4 = true;
36ed4f51 18756 }
1bd55598
RD
18757 }
18758 if (obj4) {
36ed4f51 18759 {
1bd55598
RD
18760 arg5 = &temp5;
18761 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18762 }
1bd55598
RD
18763 }
18764 if (obj5) {
36ed4f51 18765 {
1bd55598
RD
18766 arg6 = &temp6;
18767 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18768 }
1bd55598
RD
18769 }
18770 if (obj6) {
18771 ecode7 = SWIG_AsVal_long(obj6, &val7);
18772 if (!SWIG_IsOK(ecode7)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18774 }
18775 arg7 = static_cast< long >(val7);
18776 }
18777 if (obj7) {
18778 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18779 if (!SWIG_IsOK(res8)) {
18780 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18781 }
1bd55598
RD
18782 if (!argp8) {
18783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18784 }
1bd55598
RD
18785 arg8 = reinterpret_cast< wxValidator * >(argp8);
18786 }
18787 if (obj8) {
d55e5bfc 18788 {
1bd55598
RD
18789 arg9 = wxString_in_helper(obj8);
18790 if (arg9 == NULL) SWIG_fail;
18791 temp9 = true;
d55e5bfc 18792 }
1bd55598
RD
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 {
18801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18802 }
18803 {
18804 if (temp4)
18805 delete arg4;
18806 }
18807 {
18808 if (temp9)
18809 delete arg9;
18810 }
18811 return resultobj;
18812fail:
18813 {
18814 if (temp4)
18815 delete arg4;
18816 }
18817 {
18818 if (temp9)
18819 delete arg9;
18820 }
18821 return NULL;
18822}
18823
18824
18825SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj = 0;
18827 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18828 bool arg2 ;
18829 void *argp1 = 0 ;
18830 int res1 = 0 ;
18831 bool val2 ;
18832 int ecode2 = 0 ;
18833 PyObject * obj0 = 0 ;
18834 PyObject * obj1 = 0 ;
18835 char * kwnames[] = {
18836 (char *) "self",(char *) "value", NULL
18837 };
18838
18839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18841 if (!SWIG_IsOK(res1)) {
18842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18843 }
18844 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18845 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18846 if (!SWIG_IsOK(ecode2)) {
18847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18848 }
18849 arg2 = static_cast< bool >(val2);
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 (arg1)->SetValue(arg2);
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 resultobj = SWIG_Py_Void();
18857 return resultobj;
18858fail:
18859 return NULL;
d55e5bfc
RD
18860}
18861
18862
1bd55598
RD
18863SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18864 PyObject *resultobj = 0;
18865 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18866 bool result;
18867 void *argp1 = 0 ;
18868 int res1 = 0 ;
18869 PyObject *swig_obj[1] ;
18870
18871 if (!args) SWIG_fail;
18872 swig_obj[0] = args;
18873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18874 if (!SWIG_IsOK(res1)) {
18875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18876 }
18877 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18878 {
18879 PyThreadState* __tstate = wxPyBeginAllowThreads();
18880 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 {
18885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18886 }
18887 return resultobj;
18888fail:
18889 return NULL;
f20a2e1f
RD
18890}
18891
18892
1bd55598
RD
18893SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18894 PyObject *resultobj = 0;
18895 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18896 SwigValueWrapper<wxVisualAttributes > result;
18897 int val1 ;
18898 int ecode1 = 0 ;
18899 PyObject * obj0 = 0 ;
18900 char * kwnames[] = {
18901 (char *) "variant", NULL
18902 };
18903
18904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18905 if (obj0) {
18906 ecode1 = SWIG_AsVal_int(obj0, &val1);
18907 if (!SWIG_IsOK(ecode1)) {
18908 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18909 }
18910 arg1 = static_cast< wxWindowVariant >(val1);
18911 }
18912 {
18913 if (!wxPyCheckForApp()) SWIG_fail;
18914 PyThreadState* __tstate = wxPyBeginAllowThreads();
18915 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18916 wxPyEndAllowThreads(__tstate);
18917 if (PyErr_Occurred()) SWIG_fail;
18918 }
18919 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18920 return resultobj;
18921fail:
18922 return NULL;
d55e5bfc
RD
18923}
18924
18925
1bd55598
RD
18926SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18927 PyObject *obj;
18928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18929 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18930 return SWIG_Py_Void();
d55e5bfc
RD
18931}
18932
1bd55598
RD
18933SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18934 return SWIG_Python_InitShadowInstance(args);
18935}
d55e5bfc 18936
1bd55598
RD
18937SWIGINTERN int NotebookNameStr_set(PyObject *) {
18938 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18939 return 1;
d55e5bfc
RD
18940}
18941
18942
1bd55598
RD
18943SWIGINTERN PyObject *NotebookNameStr_get(void) {
18944 PyObject *pyobj = 0;
18945
18946 {
d55e5bfc 18947#if wxUSE_UNICODE
1bd55598 18948 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18949#else
1bd55598 18950 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18951#endif
1bd55598
RD
18952 }
18953 return pyobj;
d55e5bfc
RD
18954}
18955
18956
1bd55598
RD
18957SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18958 PyObject *resultobj = 0;
18959 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18960 size_t result;
18961 void *argp1 = 0 ;
18962 int res1 = 0 ;
18963 PyObject *swig_obj[1] ;
18964
18965 if (!args) SWIG_fail;
18966 swig_obj[0] = args;
18967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18968 if (!SWIG_IsOK(res1)) {
18969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18970 }
18971 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18972 {
18973 PyThreadState* __tstate = wxPyBeginAllowThreads();
18974 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18975 wxPyEndAllowThreads(__tstate);
18976 if (PyErr_Occurred()) SWIG_fail;
18977 }
18978 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18979 return resultobj;
18980fail:
18981 return NULL;
18982}
18983
18984
18985SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18986 PyObject *resultobj = 0;
18987 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18988 size_t arg2 ;
18989 wxWindow *result = 0 ;
18990 void *argp1 = 0 ;
18991 int res1 = 0 ;
18992 size_t val2 ;
18993 int ecode2 = 0 ;
18994 PyObject * obj0 = 0 ;
18995 PyObject * obj1 = 0 ;
18996 char * kwnames[] = {
18997 (char *) "self",(char *) "n", NULL
18998 };
18999
19000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19004 }
19005 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19006 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19007 if (!SWIG_IsOK(ecode2)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19009 }
19010 arg2 = static_cast< size_t >(val2);
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 result = (wxWindow *)(arg1)->GetPage(arg2);
19014 wxPyEndAllowThreads(__tstate);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 {
19018 resultobj = wxPyMake_wxObject(result, 0);
19019 }
19020 return resultobj;
19021fail:
19022 return NULL;
d55e5bfc
RD
19023}
19024
19025
1bd55598
RD
19026SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19027 PyObject *resultobj = 0;
19028 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19029 wxWindow *result = 0 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 PyObject *swig_obj[1] ;
19033
19034 if (!args) SWIG_fail;
19035 swig_obj[0] = args;
19036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19037 if (!SWIG_IsOK(res1)) {
19038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19039 }
19040 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19041 {
19042 PyThreadState* __tstate = wxPyBeginAllowThreads();
19043 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19044 wxPyEndAllowThreads(__tstate);
19045 if (PyErr_Occurred()) SWIG_fail;
19046 }
19047 {
19048 resultobj = wxPyMake_wxObject(result, 0);
19049 }
19050 return resultobj;
19051fail:
19052 return NULL;
d55e5bfc
RD
19053}
19054
19055
1bd55598
RD
19056SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19057 PyObject *resultobj = 0;
19058 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19059 int result;
19060 void *argp1 = 0 ;
19061 int res1 = 0 ;
19062 PyObject *swig_obj[1] ;
19063
19064 if (!args) SWIG_fail;
19065 swig_obj[0] = args;
19066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19067 if (!SWIG_IsOK(res1)) {
19068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19069 }
19070 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19071 {
19072 PyThreadState* __tstate = wxPyBeginAllowThreads();
19073 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19074 wxPyEndAllowThreads(__tstate);
19075 if (PyErr_Occurred()) SWIG_fail;
19076 }
19077 resultobj = SWIG_From_int(static_cast< int >(result));
19078 return resultobj;
19079fail:
19080 return NULL;
19081}
19082
19083
19084SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19085 PyObject *resultobj = 0;
19086 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19087 size_t arg2 ;
19088 wxString *arg3 = 0 ;
19089 bool result;
19090 void *argp1 = 0 ;
19091 int res1 = 0 ;
19092 size_t val2 ;
19093 int ecode2 = 0 ;
19094 bool temp3 = false ;
19095 PyObject * obj0 = 0 ;
19096 PyObject * obj1 = 0 ;
19097 PyObject * obj2 = 0 ;
19098 char * kwnames[] = {
19099 (char *) "self",(char *) "n",(char *) "strText", NULL
19100 };
19101
19102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19104 if (!SWIG_IsOK(res1)) {
19105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19106 }
19107 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19108 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19109 if (!SWIG_IsOK(ecode2)) {
19110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19111 }
19112 arg2 = static_cast< size_t >(val2);
19113 {
19114 arg3 = wxString_in_helper(obj2);
19115 if (arg3 == NULL) SWIG_fail;
19116 temp3 = true;
19117 }
19118 {
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 {
19125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19126 }
19127 {
19128 if (temp3)
19129 delete arg3;
19130 }
19131 return resultobj;
19132fail:
19133 {
19134 if (temp3)
19135 delete arg3;
19136 }
19137 return NULL;
19138}
19139
19140
19141SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19142 PyObject *resultobj = 0;
19143 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19144 size_t arg2 ;
19145 wxString result;
19146 void *argp1 = 0 ;
19147 int res1 = 0 ;
19148 size_t val2 ;
19149 int ecode2 = 0 ;
19150 PyObject * obj0 = 0 ;
19151 PyObject * obj1 = 0 ;
19152 char * kwnames[] = {
19153 (char *) "self",(char *) "n", NULL
19154 };
19155
19156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19158 if (!SWIG_IsOK(res1)) {
19159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19160 }
19161 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19162 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19163 if (!SWIG_IsOK(ecode2)) {
19164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19165 }
19166 arg2 = static_cast< size_t >(val2);
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19170 wxPyEndAllowThreads(__tstate);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 {
19174#if wxUSE_UNICODE
19175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19176#else
19177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19178#endif
19179 }
19180 return resultobj;
19181fail:
19182 return NULL;
19183}
19184
19185
19186SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj = 0;
19188 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19189 wxImageList *arg2 = (wxImageList *) 0 ;
19190 void *argp1 = 0 ;
19191 int res1 = 0 ;
19192 void *argp2 = 0 ;
19193 int res2 = 0 ;
19194 PyObject * obj0 = 0 ;
19195 PyObject * obj1 = 0 ;
19196 char * kwnames[] = {
19197 (char *) "self",(char *) "imageList", NULL
19198 };
19199
19200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19204 }
19205 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19207 if (!SWIG_IsOK(res2)) {
19208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19209 }
19210 arg2 = reinterpret_cast< wxImageList * >(argp2);
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 (arg1)->SetImageList(arg2);
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 resultobj = SWIG_Py_Void();
19218 return resultobj;
19219fail:
19220 return NULL;
19221}
19222
19223
19224SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj = 0;
19226 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19227 wxImageList *arg2 = (wxImageList *) 0 ;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 int res2 = 0 ;
19231 PyObject * obj0 = 0 ;
19232 PyObject * obj1 = 0 ;
19233 char * kwnames[] = {
19234 (char *) "self",(char *) "imageList", NULL
19235 };
19236
19237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19239 if (!SWIG_IsOK(res1)) {
19240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19241 }
19242 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19243 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19244 if (!SWIG_IsOK(res2)) {
19245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19246 }
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 (arg1)->AssignImageList(arg2);
19250 wxPyEndAllowThreads(__tstate);
19251 if (PyErr_Occurred()) SWIG_fail;
19252 }
19253 resultobj = SWIG_Py_Void();
19254 return resultobj;
19255fail:
19256 return NULL;
d55e5bfc
RD
19257}
19258
19259
1bd55598
RD
19260SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19261 PyObject *resultobj = 0;
19262 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19263 wxImageList *result = 0 ;
19264 void *argp1 = 0 ;
19265 int res1 = 0 ;
19266 PyObject *swig_obj[1] ;
19267
19268 if (!args) SWIG_fail;
19269 swig_obj[0] = args;
19270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19271 if (!SWIG_IsOK(res1)) {
19272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19273 }
19274 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 {
19282 resultobj = wxPyMake_wxObject(result, (bool)0);
19283 }
19284 return resultobj;
19285fail:
19286 return NULL;
19287}
19288
19289
19290SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19291 PyObject *resultobj = 0;
19292 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19293 size_t arg2 ;
19294 int result;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 size_t val2 ;
19298 int ecode2 = 0 ;
19299 PyObject * obj0 = 0 ;
19300 PyObject * obj1 = 0 ;
19301 char * kwnames[] = {
19302 (char *) "self",(char *) "n", NULL
19303 };
19304
19305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19307 if (!SWIG_IsOK(res1)) {
19308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19309 }
19310 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19311 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19312 if (!SWIG_IsOK(ecode2)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19314 }
19315 arg2 = static_cast< size_t >(val2);
19316 {
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 resultobj = SWIG_From_int(static_cast< int >(result));
19323 return resultobj;
19324fail:
19325 return NULL;
19326}
19327
19328
19329SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19330 PyObject *resultobj = 0;
19331 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19332 size_t arg2 ;
19333 int arg3 ;
19334 bool result;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 size_t val2 ;
19338 int ecode2 = 0 ;
19339 int val3 ;
19340 int ecode3 = 0 ;
19341 PyObject * obj0 = 0 ;
19342 PyObject * obj1 = 0 ;
19343 PyObject * obj2 = 0 ;
19344 char * kwnames[] = {
19345 (char *) "self",(char *) "n",(char *) "imageId", NULL
19346 };
19347
19348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19350 if (!SWIG_IsOK(res1)) {
19351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19352 }
19353 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19354 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19355 if (!SWIG_IsOK(ecode2)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19357 }
19358 arg2 = static_cast< size_t >(val2);
19359 ecode3 = SWIG_AsVal_int(obj2, &val3);
19360 if (!SWIG_IsOK(ecode3)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19362 }
19363 arg3 = static_cast< int >(val3);
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 {
19371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19372 }
19373 return resultobj;
19374fail:
19375 return NULL;
19376}
19377
19378
19379SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj = 0;
19381 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19382 wxSize *arg2 = 0 ;
19383 void *argp1 = 0 ;
19384 int res1 = 0 ;
19385 wxSize temp2 ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 char * kwnames[] = {
19389 (char *) "self",(char *) "size", NULL
19390 };
19391
19392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19394 if (!SWIG_IsOK(res1)) {
19395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19396 }
19397 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19398 {
19399 arg2 = &temp2;
19400 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19401 }
19402 {
19403 PyThreadState* __tstate = wxPyBeginAllowThreads();
19404 (arg1)->SetPageSize((wxSize const &)*arg2);
19405 wxPyEndAllowThreads(__tstate);
19406 if (PyErr_Occurred()) SWIG_fail;
19407 }
19408 resultobj = SWIG_Py_Void();
19409 return resultobj;
19410fail:
19411 return NULL;
19412}
19413
19414
19415SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19416 PyObject *resultobj = 0;
19417 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19418 wxSize *arg2 = 0 ;
19419 wxSize result;
19420 void *argp1 = 0 ;
19421 int res1 = 0 ;
19422 wxSize temp2 ;
19423 PyObject * obj0 = 0 ;
19424 PyObject * obj1 = 0 ;
19425 char * kwnames[] = {
19426 (char *) "self",(char *) "sizePage", NULL
19427 };
19428
19429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19431 if (!SWIG_IsOK(res1)) {
19432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19433 }
19434 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19435 {
19436 arg2 = &temp2;
19437 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19438 }
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19446 return resultobj;
19447fail:
19448 return NULL;
d55e5bfc
RD
19449}
19450
19451
1bd55598
RD
19452SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19453 PyObject *resultobj = 0;
19454 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19455 unsigned int result;
1bd55598
RD
19456 void *argp1 = 0 ;
19457 int res1 = 0 ;
19458 PyObject *swig_obj[1] ;
19459
19460 if (!args) SWIG_fail;
19461 swig_obj[0] = args;
19462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19463 if (!SWIG_IsOK(res1)) {
19464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19465 }
19466 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19467 {
19468 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19469 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19470 wxPyEndAllowThreads(__tstate);
19471 if (PyErr_Occurred()) SWIG_fail;
19472 }
e9d6f3a4 19473 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19474 return resultobj;
19475fail:
19476 return NULL;
19477}
19478
19479
19480SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19481 PyObject *resultobj = 0;
19482 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19483 unsigned int arg2 ;
1bd55598
RD
19484 void *argp1 = 0 ;
19485 int res1 = 0 ;
e9d6f3a4 19486 unsigned int val2 ;
1bd55598
RD
19487 int ecode2 = 0 ;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 char * kwnames[] = {
19491 (char *) "self",(char *) "internalBorder", NULL
19492 };
19493
19494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19496 if (!SWIG_IsOK(res1)) {
19497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19498 }
19499 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19500 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19501 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19503 }
e9d6f3a4 19504 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19505 {
19506 PyThreadState* __tstate = wxPyBeginAllowThreads();
19507 (arg1)->SetInternalBorder(arg2);
19508 wxPyEndAllowThreads(__tstate);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 resultobj = SWIG_Py_Void();
19512 return resultobj;
19513fail:
19514 return NULL;
d55e5bfc
RD
19515}
19516
19517
1bd55598
RD
19518SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19519 PyObject *resultobj = 0;
19520 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19521 bool result;
19522 void *argp1 = 0 ;
19523 int res1 = 0 ;
19524 PyObject *swig_obj[1] ;
19525
19526 if (!args) SWIG_fail;
19527 swig_obj[0] = args;
19528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19529 if (!SWIG_IsOK(res1)) {
19530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19531 }
19532 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19533 {
19534 PyThreadState* __tstate = wxPyBeginAllowThreads();
19535 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19536 wxPyEndAllowThreads(__tstate);
19537 if (PyErr_Occurred()) SWIG_fail;
19538 }
19539 {
19540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19541 }
19542 return resultobj;
19543fail:
19544 return NULL;
19545}
19546
19547
e9d6f3a4
RD
19548SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19549 PyObject *resultobj = 0;
19550 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19551 int arg2 ;
19552 void *argp1 = 0 ;
19553 int res1 = 0 ;
19554 int val2 ;
19555 int ecode2 = 0 ;
19556 PyObject * obj0 = 0 ;
19557 PyObject * obj1 = 0 ;
19558 char * kwnames[] = {
19559 (char *) "self",(char *) "margin", NULL
19560 };
19561
19562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19564 if (!SWIG_IsOK(res1)) {
19565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19566 }
19567 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19568 ecode2 = SWIG_AsVal_int(obj1, &val2);
19569 if (!SWIG_IsOK(ecode2)) {
19570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19571 }
19572 arg2 = static_cast< int >(val2);
19573 {
19574 PyThreadState* __tstate = wxPyBeginAllowThreads();
19575 (arg1)->SetControlMargin(arg2);
19576 wxPyEndAllowThreads(__tstate);
19577 if (PyErr_Occurred()) SWIG_fail;
19578 }
19579 resultobj = SWIG_Py_Void();
19580 return resultobj;
19581fail:
19582 return NULL;
19583}
19584
19585
19586SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19587 PyObject *resultobj = 0;
19588 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19589 int result;
19590 void *argp1 = 0 ;
19591 int res1 = 0 ;
19592 PyObject *swig_obj[1] ;
19593
19594 if (!args) SWIG_fail;
19595 swig_obj[0] = args;
19596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19597 if (!SWIG_IsOK(res1)) {
19598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19599 }
19600 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19604 wxPyEndAllowThreads(__tstate);
19605 if (PyErr_Occurred()) SWIG_fail;
19606 }
19607 resultobj = SWIG_From_int(static_cast< int >(result));
19608 return resultobj;
19609fail:
19610 return NULL;
19611}
19612
19613
1bd55598
RD
19614SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19615 PyObject *resultobj = 0;
19616 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19617 bool arg2 ;
19618 void *argp1 = 0 ;
19619 int res1 = 0 ;
19620 bool val2 ;
19621 int ecode2 = 0 ;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 char * kwnames[] = {
19625 (char *) "self",(char *) "fit", NULL
19626 };
19627
19628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19630 if (!SWIG_IsOK(res1)) {
19631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19632 }
19633 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19634 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19635 if (!SWIG_IsOK(ecode2)) {
19636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19637 }
19638 arg2 = static_cast< bool >(val2);
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 (arg1)->SetFitToCurrentPage(arg2);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 resultobj = SWIG_Py_Void();
19646 return resultobj;
19647fail:
19648 return NULL;
d55e5bfc
RD
19649}
19650
19651
1bd55598
RD
19652SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19653 PyObject *resultobj = 0;
19654 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19655 bool result;
19656 void *argp1 = 0 ;
19657 int res1 = 0 ;
19658 PyObject *swig_obj[1] ;
19659
19660 if (!args) SWIG_fail;
19661 swig_obj[0] = args;
19662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19663 if (!SWIG_IsOK(res1)) {
19664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19665 }
19666 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19670 wxPyEndAllowThreads(__tstate);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 {
19674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19675 }
19676 return resultobj;
19677fail:
19678 return NULL;
19679}
19680
19681
e9d6f3a4
RD
19682SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19683 PyObject *resultobj = 0;
19684 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19685 wxSizer *result = 0 ;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 PyObject *swig_obj[1] ;
19689
19690 if (!args) SWIG_fail;
19691 swig_obj[0] = args;
19692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19693 if (!SWIG_IsOK(res1)) {
19694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19695 }
19696 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 {
19704 resultobj = wxPyMake_wxObject(result, (bool)0);
19705 }
19706 return resultobj;
19707fail:
19708 return NULL;
19709}
19710
19711
1bd55598
RD
19712SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj = 0;
19714 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19715 size_t arg2 ;
19716 bool result;
19717 void *argp1 = 0 ;
19718 int res1 = 0 ;
19719 size_t val2 ;
19720 int ecode2 = 0 ;
19721 PyObject * obj0 = 0 ;
19722 PyObject * obj1 = 0 ;
19723 char * kwnames[] = {
19724 (char *) "self",(char *) "n", NULL
19725 };
19726
19727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19731 }
19732 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19733 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19734 if (!SWIG_IsOK(ecode2)) {
19735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19736 }
19737 arg2 = static_cast< size_t >(val2);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)(arg1)->DeletePage(arg2);
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
19753SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19756 size_t arg2 ;
19757 bool result;
19758 void *argp1 = 0 ;
19759 int res1 = 0 ;
19760 size_t val2 ;
19761 int ecode2 = 0 ;
19762 PyObject * obj0 = 0 ;
19763 PyObject * obj1 = 0 ;
19764 char * kwnames[] = {
19765 (char *) "self",(char *) "n", NULL
19766 };
19767
19768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19770 if (!SWIG_IsOK(res1)) {
19771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19772 }
19773 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19774 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19775 if (!SWIG_IsOK(ecode2)) {
19776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19777 }
19778 arg2 = static_cast< size_t >(val2);
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 result = (bool)(arg1)->RemovePage(arg2);
19782 wxPyEndAllowThreads(__tstate);
19783 if (PyErr_Occurred()) SWIG_fail;
19784 }
19785 {
19786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19787 }
19788 return resultobj;
19789fail:
19790 return NULL;
f20a2e1f
RD
19791}
19792
19793
1bd55598
RD
19794SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19795 PyObject *resultobj = 0;
19796 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19797 bool result;
19798 void *argp1 = 0 ;
19799 int res1 = 0 ;
19800 PyObject *swig_obj[1] ;
19801
19802 if (!args) SWIG_fail;
19803 swig_obj[0] = args;
19804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19805 if (!SWIG_IsOK(res1)) {
19806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19807 }
19808 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19809 {
19810 PyThreadState* __tstate = wxPyBeginAllowThreads();
19811 result = (bool)(arg1)->DeleteAllPages();
19812 wxPyEndAllowThreads(__tstate);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 }
19815 {
19816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19817 }
19818 return resultobj;
19819fail:
19820 return NULL;
19821}
19822
19823
19824SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19825 PyObject *resultobj = 0;
19826 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19827 wxWindow *arg2 = (wxWindow *) 0 ;
19828 wxString *arg3 = 0 ;
19829 bool arg4 = (bool) false ;
19830 int arg5 = (int) -1 ;
19831 bool result;
19832 void *argp1 = 0 ;
19833 int res1 = 0 ;
19834 void *argp2 = 0 ;
19835 int res2 = 0 ;
19836 bool temp3 = false ;
19837 bool val4 ;
19838 int ecode4 = 0 ;
19839 int val5 ;
19840 int ecode5 = 0 ;
19841 PyObject * obj0 = 0 ;
19842 PyObject * obj1 = 0 ;
19843 PyObject * obj2 = 0 ;
19844 PyObject * obj3 = 0 ;
19845 PyObject * obj4 = 0 ;
19846 char * kwnames[] = {
19847 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19848 };
19849
19850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19852 if (!SWIG_IsOK(res1)) {
19853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19854 }
19855 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19857 if (!SWIG_IsOK(res2)) {
19858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19859 }
19860 arg2 = reinterpret_cast< wxWindow * >(argp2);
19861 {
19862 arg3 = wxString_in_helper(obj2);
19863 if (arg3 == NULL) SWIG_fail;
19864 temp3 = true;
19865 }
19866 if (obj3) {
19867 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19868 if (!SWIG_IsOK(ecode4)) {
19869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19870 }
19871 arg4 = static_cast< bool >(val4);
19872 }
19873 if (obj4) {
19874 ecode5 = SWIG_AsVal_int(obj4, &val5);
19875 if (!SWIG_IsOK(ecode5)) {
19876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19877 }
19878 arg5 = static_cast< int >(val5);
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 {
19887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19888 }
19889 {
19890 if (temp3)
19891 delete arg3;
19892 }
19893 return resultobj;
19894fail:
19895 {
19896 if (temp3)
19897 delete arg3;
19898 }
19899 return NULL;
19900}
19901
19902
19903SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj = 0;
19905 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19906 size_t arg2 ;
19907 wxWindow *arg3 = (wxWindow *) 0 ;
19908 wxString *arg4 = 0 ;
19909 bool arg5 = (bool) false ;
19910 int arg6 = (int) -1 ;
19911 bool result;
19912 void *argp1 = 0 ;
19913 int res1 = 0 ;
19914 size_t val2 ;
19915 int ecode2 = 0 ;
19916 void *argp3 = 0 ;
19917 int res3 = 0 ;
19918 bool temp4 = false ;
19919 bool val5 ;
19920 int ecode5 = 0 ;
19921 int val6 ;
19922 int ecode6 = 0 ;
19923 PyObject * obj0 = 0 ;
19924 PyObject * obj1 = 0 ;
19925 PyObject * obj2 = 0 ;
19926 PyObject * obj3 = 0 ;
19927 PyObject * obj4 = 0 ;
19928 PyObject * obj5 = 0 ;
19929 char * kwnames[] = {
19930 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19931 };
19932
19933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19935 if (!SWIG_IsOK(res1)) {
19936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19937 }
19938 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19939 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19940 if (!SWIG_IsOK(ecode2)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19942 }
19943 arg2 = static_cast< size_t >(val2);
19944 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19945 if (!SWIG_IsOK(res3)) {
19946 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19947 }
19948 arg3 = reinterpret_cast< wxWindow * >(argp3);
19949 {
19950 arg4 = wxString_in_helper(obj3);
19951 if (arg4 == NULL) SWIG_fail;
19952 temp4 = true;
19953 }
19954 if (obj4) {
19955 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19956 if (!SWIG_IsOK(ecode5)) {
19957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19958 }
19959 arg5 = static_cast< bool >(val5);
19960 }
19961 if (obj5) {
19962 ecode6 = SWIG_AsVal_int(obj5, &val6);
19963 if (!SWIG_IsOK(ecode6)) {
19964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19965 }
19966 arg6 = static_cast< int >(val6);
19967 }
19968 {
19969 PyThreadState* __tstate = wxPyBeginAllowThreads();
19970 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 {
19975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19976 }
19977 {
19978 if (temp4)
19979 delete arg4;
19980 }
19981 return resultobj;
19982fail:
19983 {
19984 if (temp4)
19985 delete arg4;
19986 }
19987 return NULL;
19988}
19989
19990
19991SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19992 PyObject *resultobj = 0;
19993 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19994 size_t arg2 ;
19995 int result;
19996 void *argp1 = 0 ;
19997 int res1 = 0 ;
19998 size_t val2 ;
19999 int ecode2 = 0 ;
20000 PyObject * obj0 = 0 ;
20001 PyObject * obj1 = 0 ;
20002 char * kwnames[] = {
20003 (char *) "self",(char *) "n", NULL
20004 };
20005
20006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20008 if (!SWIG_IsOK(res1)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20010 }
20011 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20012 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20013 if (!SWIG_IsOK(ecode2)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20015 }
20016 arg2 = static_cast< size_t >(val2);
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 result = (int)(arg1)->SetSelection(arg2);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_From_int(static_cast< int >(result));
20024 return resultobj;
20025fail:
20026 return NULL;
20027}
20028
20029
20030SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj = 0;
20032 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20033 bool arg2 = (bool) true ;
20034 void *argp1 = 0 ;
20035 int res1 = 0 ;
20036 bool val2 ;
20037 int ecode2 = 0 ;
20038 PyObject * obj0 = 0 ;
20039 PyObject * obj1 = 0 ;
20040 char * kwnames[] = {
20041 (char *) "self",(char *) "forward", NULL
20042 };
20043
20044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20046 if (!SWIG_IsOK(res1)) {
20047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20048 }
20049 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20050 if (obj1) {
20051 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20052 if (!SWIG_IsOK(ecode2)) {
20053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20054 }
20055 arg2 = static_cast< bool >(val2);
20056 }
20057 {
20058 PyThreadState* __tstate = wxPyBeginAllowThreads();
20059 (arg1)->AdvanceSelection(arg2);
20060 wxPyEndAllowThreads(__tstate);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 resultobj = SWIG_Py_Void();
20064 return resultobj;
20065fail:
20066 return NULL;
20067}
20068
20069
704eda0c
RD
20070SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20071 PyObject *resultobj = 0;
20072 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20073 wxPoint *arg2 = 0 ;
20074 long *arg3 = (long *) 0 ;
20075 int result;
20076 void *argp1 = 0 ;
20077 int res1 = 0 ;
20078 wxPoint temp2 ;
20079 long temp3 ;
20080 int res3 = SWIG_TMPOBJ ;
20081 PyObject * obj0 = 0 ;
20082 PyObject * obj1 = 0 ;
20083 char * kwnames[] = {
20084 (char *) "self",(char *) "pt", NULL
20085 };
20086
20087 arg3 = &temp3;
20088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20090 if (!SWIG_IsOK(res1)) {
20091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20092 }
20093 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20094 {
20095 arg2 = &temp2;
20096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20097 }
20098 {
20099 PyThreadState* __tstate = wxPyBeginAllowThreads();
20100 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20101 wxPyEndAllowThreads(__tstate);
20102 if (PyErr_Occurred()) SWIG_fail;
20103 }
20104 resultobj = SWIG_From_int(static_cast< int >(result));
20105 if (SWIG_IsTmpObj(res3)) {
20106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20107 } else {
20108 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20110 }
20111 return resultobj;
20112fail:
20113 return NULL;
20114}
20115
20116
1bd55598
RD
20117SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20118 PyObject *resultobj = 0;
20119 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20120 SwigValueWrapper<wxVisualAttributes > result;
20121 int val1 ;
20122 int ecode1 = 0 ;
20123 PyObject * obj0 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "variant", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20129 if (obj0) {
20130 ecode1 = SWIG_AsVal_int(obj0, &val1);
20131 if (!SWIG_IsOK(ecode1)) {
20132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20133 }
20134 arg1 = static_cast< wxWindowVariant >(val1);
20135 }
20136 {
20137 if (!wxPyCheckForApp()) SWIG_fail;
20138 PyThreadState* __tstate = wxPyBeginAllowThreads();
20139 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20140 wxPyEndAllowThreads(__tstate);
20141 if (PyErr_Occurred()) SWIG_fail;
20142 }
20143 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20144 return resultobj;
20145fail:
20146 return NULL;
20147}
20148
20149
20150SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20151 PyObject *obj;
20152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20153 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20154 return SWIG_Py_Void();
20155}
20156
20157SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20158 PyObject *resultobj = 0;
20159 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20160 int arg2 = (int) 0 ;
20161 int arg3 = (int) -1 ;
20162 int arg4 = (int) -1 ;
20163 wxBookCtrlBaseEvent *result = 0 ;
20164 int val1 ;
20165 int ecode1 = 0 ;
20166 int val2 ;
20167 int ecode2 = 0 ;
20168 int val3 ;
20169 int ecode3 = 0 ;
20170 int val4 ;
20171 int ecode4 = 0 ;
20172 PyObject * obj0 = 0 ;
20173 PyObject * obj1 = 0 ;
20174 PyObject * obj2 = 0 ;
20175 PyObject * obj3 = 0 ;
20176 char * kwnames[] = {
20177 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20178 };
20179
20180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20181 if (obj0) {
20182 ecode1 = SWIG_AsVal_int(obj0, &val1);
20183 if (!SWIG_IsOK(ecode1)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20185 }
20186 arg1 = static_cast< wxEventType >(val1);
20187 }
20188 if (obj1) {
20189 ecode2 = SWIG_AsVal_int(obj1, &val2);
20190 if (!SWIG_IsOK(ecode2)) {
20191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20192 }
20193 arg2 = static_cast< int >(val2);
20194 }
20195 if (obj2) {
20196 ecode3 = SWIG_AsVal_int(obj2, &val3);
20197 if (!SWIG_IsOK(ecode3)) {
20198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20199 }
20200 arg3 = static_cast< int >(val3);
20201 }
20202 if (obj3) {
20203 ecode4 = SWIG_AsVal_int(obj3, &val4);
20204 if (!SWIG_IsOK(ecode4)) {
20205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20206 }
20207 arg4 = static_cast< int >(val4);
20208 }
20209 {
20210 PyThreadState* __tstate = wxPyBeginAllowThreads();
20211 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20212 wxPyEndAllowThreads(__tstate);
20213 if (PyErr_Occurred()) SWIG_fail;
20214 }
20215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20216 return resultobj;
20217fail:
20218 return NULL;
d55e5bfc
RD
20219}
20220
20221
1bd55598
RD
20222SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20223 PyObject *resultobj = 0;
20224 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20225 int result;
20226 void *argp1 = 0 ;
20227 int res1 = 0 ;
20228 PyObject *swig_obj[1] ;
20229
20230 if (!args) SWIG_fail;
20231 swig_obj[0] = args;
20232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20233 if (!SWIG_IsOK(res1)) {
20234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20235 }
20236 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20237 {
20238 PyThreadState* __tstate = wxPyBeginAllowThreads();
20239 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 resultobj = SWIG_From_int(static_cast< int >(result));
20244 return resultobj;
20245fail:
20246 return NULL;
20247}
20248
20249
20250SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20251 PyObject *resultobj = 0;
20252 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20253 int arg2 ;
20254 void *argp1 = 0 ;
20255 int res1 = 0 ;
20256 int val2 ;
20257 int ecode2 = 0 ;
20258 PyObject * obj0 = 0 ;
20259 PyObject * obj1 = 0 ;
20260 char * kwnames[] = {
20261 (char *) "self",(char *) "nSel", NULL
20262 };
20263
20264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20266 if (!SWIG_IsOK(res1)) {
20267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20268 }
20269 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20270 ecode2 = SWIG_AsVal_int(obj1, &val2);
20271 if (!SWIG_IsOK(ecode2)) {
20272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20273 }
20274 arg2 = static_cast< int >(val2);
20275 {
20276 PyThreadState* __tstate = wxPyBeginAllowThreads();
20277 (arg1)->SetSelection(arg2);
20278 wxPyEndAllowThreads(__tstate);
20279 if (PyErr_Occurred()) SWIG_fail;
20280 }
20281 resultobj = SWIG_Py_Void();
20282 return resultobj;
20283fail:
20284 return NULL;
d55e5bfc
RD
20285}
20286
20287
1bd55598
RD
20288SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20289 PyObject *resultobj = 0;
20290 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20291 int result;
20292 void *argp1 = 0 ;
20293 int res1 = 0 ;
20294 PyObject *swig_obj[1] ;
20295
20296 if (!args) SWIG_fail;
20297 swig_obj[0] = args;
20298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20299 if (!SWIG_IsOK(res1)) {
20300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20301 }
20302 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20303 {
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 resultobj = SWIG_From_int(static_cast< int >(result));
20310 return resultobj;
20311fail:
20312 return NULL;
20313}
20314
20315
20316SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj = 0;
20318 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20319 int arg2 ;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 int val2 ;
20323 int ecode2 = 0 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char * kwnames[] = {
20327 (char *) "self",(char *) "nOldSel", NULL
20328 };
20329
20330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20332 if (!SWIG_IsOK(res1)) {
20333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20334 }
20335 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20336 ecode2 = SWIG_AsVal_int(obj1, &val2);
20337 if (!SWIG_IsOK(ecode2)) {
20338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20339 }
20340 arg2 = static_cast< int >(val2);
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 (arg1)->SetOldSelection(arg2);
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 resultobj = SWIG_Py_Void();
20348 return resultobj;
20349fail:
20350 return NULL;
20351}
20352
20353
20354SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20355 PyObject *obj;
20356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20357 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20358 return SWIG_Py_Void();
20359}
20360
20361SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20362 return SWIG_Python_InitShadowInstance(args);
20363}
20364
20365SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20366 PyObject *resultobj = 0;
20367 wxWindow *arg1 = (wxWindow *) 0 ;
20368 int arg2 = (int) -1 ;
20369 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20370 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20371 wxSize const &arg4_defvalue = wxDefaultSize ;
20372 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20373 long arg5 = (long) 0 ;
20374 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20375 wxString *arg6 = (wxString *) &arg6_defvalue ;
20376 wxNotebook *result = 0 ;
20377 void *argp1 = 0 ;
20378 int res1 = 0 ;
20379 int val2 ;
20380 int ecode2 = 0 ;
20381 wxPoint temp3 ;
20382 wxSize temp4 ;
20383 long val5 ;
20384 int ecode5 = 0 ;
20385 bool temp6 = false ;
20386 PyObject * obj0 = 0 ;
20387 PyObject * obj1 = 0 ;
20388 PyObject * obj2 = 0 ;
20389 PyObject * obj3 = 0 ;
20390 PyObject * obj4 = 0 ;
20391 PyObject * obj5 = 0 ;
20392 char * kwnames[] = {
20393 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20394 };
20395
20396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20398 if (!SWIG_IsOK(res1)) {
20399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20400 }
20401 arg1 = reinterpret_cast< wxWindow * >(argp1);
20402 if (obj1) {
20403 ecode2 = SWIG_AsVal_int(obj1, &val2);
20404 if (!SWIG_IsOK(ecode2)) {
20405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20406 }
20407 arg2 = static_cast< int >(val2);
20408 }
20409 if (obj2) {
20410 {
20411 arg3 = &temp3;
20412 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20413 }
1bd55598
RD
20414 }
20415 if (obj3) {
d55e5bfc 20416 {
1bd55598
RD
20417 arg4 = &temp4;
20418 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20419 }
1bd55598
RD
20420 }
20421 if (obj4) {
20422 ecode5 = SWIG_AsVal_long(obj4, &val5);
20423 if (!SWIG_IsOK(ecode5)) {
20424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20425 }
20426 arg5 = static_cast< long >(val5);
20427 }
20428 if (obj5) {
d55e5bfc 20429 {
1bd55598
RD
20430 arg6 = wxString_in_helper(obj5);
20431 if (arg6 == NULL) SWIG_fail;
20432 temp6 = true;
d55e5bfc 20433 }
1bd55598
RD
20434 }
20435 {
20436 if (!wxPyCheckForApp()) SWIG_fail;
20437 PyThreadState* __tstate = wxPyBeginAllowThreads();
20438 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20439 wxPyEndAllowThreads(__tstate);
20440 if (PyErr_Occurred()) SWIG_fail;
20441 }
20442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20443 {
20444 if (temp6)
20445 delete arg6;
20446 }
20447 return resultobj;
20448fail:
20449 {
20450 if (temp6)
20451 delete arg6;
20452 }
20453 return NULL;
20454}
20455
20456
20457SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20458 PyObject *resultobj = 0;
20459 wxNotebook *result = 0 ;
20460
20461 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20462 {
20463 if (!wxPyCheckForApp()) SWIG_fail;
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 result = (wxNotebook *)new wxNotebook();
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20470 return resultobj;
20471fail:
20472 return NULL;
20473}
20474
20475
20476SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20477 PyObject *resultobj = 0;
20478 wxNotebook *arg1 = (wxNotebook *) 0 ;
20479 wxWindow *arg2 = (wxWindow *) 0 ;
20480 int arg3 = (int) -1 ;
20481 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20482 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20483 wxSize const &arg5_defvalue = wxDefaultSize ;
20484 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20485 long arg6 = (long) 0 ;
20486 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20487 wxString *arg7 = (wxString *) &arg7_defvalue ;
20488 bool result;
20489 void *argp1 = 0 ;
20490 int res1 = 0 ;
20491 void *argp2 = 0 ;
20492 int res2 = 0 ;
20493 int val3 ;
20494 int ecode3 = 0 ;
20495 wxPoint temp4 ;
20496 wxSize temp5 ;
20497 long val6 ;
20498 int ecode6 = 0 ;
20499 bool temp7 = false ;
20500 PyObject * obj0 = 0 ;
20501 PyObject * obj1 = 0 ;
20502 PyObject * obj2 = 0 ;
20503 PyObject * obj3 = 0 ;
20504 PyObject * obj4 = 0 ;
20505 PyObject * obj5 = 0 ;
20506 PyObject * obj6 = 0 ;
20507 char * kwnames[] = {
20508 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20509 };
20510
20511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20513 if (!SWIG_IsOK(res1)) {
20514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20515 }
20516 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20518 if (!SWIG_IsOK(res2)) {
20519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20520 }
20521 arg2 = reinterpret_cast< wxWindow * >(argp2);
20522 if (obj2) {
20523 ecode3 = SWIG_AsVal_int(obj2, &val3);
20524 if (!SWIG_IsOK(ecode3)) {
20525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20526 }
20527 arg3 = static_cast< int >(val3);
20528 }
20529 if (obj3) {
d55e5bfc 20530 {
1bd55598
RD
20531 arg4 = &temp4;
20532 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20533 }
1bd55598
RD
20534 }
20535 if (obj4) {
d55e5bfc 20536 {
1bd55598
RD
20537 arg5 = &temp5;
20538 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20539 }
1bd55598
RD
20540 }
20541 if (obj5) {
20542 ecode6 = SWIG_AsVal_long(obj5, &val6);
20543 if (!SWIG_IsOK(ecode6)) {
20544 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20545 }
20546 arg6 = static_cast< long >(val6);
20547 }
20548 if (obj6) {
d55e5bfc 20549 {
1bd55598
RD
20550 arg7 = wxString_in_helper(obj6);
20551 if (arg7 == NULL) SWIG_fail;
20552 temp7 = true;
d55e5bfc 20553 }
1bd55598
RD
20554 }
20555 {
20556 PyThreadState* __tstate = wxPyBeginAllowThreads();
20557 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20558 wxPyEndAllowThreads(__tstate);
20559 if (PyErr_Occurred()) SWIG_fail;
20560 }
20561 {
20562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20563 }
20564 {
20565 if (temp7)
20566 delete arg7;
20567 }
20568 return resultobj;
20569fail:
20570 {
20571 if (temp7)
20572 delete arg7;
20573 }
20574 return NULL;
d55e5bfc
RD
20575}
20576
20577
1bd55598
RD
20578SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20579 PyObject *resultobj = 0;
20580 wxNotebook *arg1 = (wxNotebook *) 0 ;
20581 int result;
20582 void *argp1 = 0 ;
20583 int res1 = 0 ;
20584 PyObject *swig_obj[1] ;
20585
20586 if (!args) SWIG_fail;
20587 swig_obj[0] = args;
20588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20589 if (!SWIG_IsOK(res1)) {
20590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20591 }
20592 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20593 {
20594 PyThreadState* __tstate = wxPyBeginAllowThreads();
20595 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20596 wxPyEndAllowThreads(__tstate);
20597 if (PyErr_Occurred()) SWIG_fail;
20598 }
20599 resultobj = SWIG_From_int(static_cast< int >(result));
20600 return resultobj;
20601fail:
20602 return NULL;
20603}
20604
20605
20606SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20607 PyObject *resultobj = 0;
20608 wxNotebook *arg1 = (wxNotebook *) 0 ;
20609 wxSize *arg2 = 0 ;
20610 void *argp1 = 0 ;
20611 int res1 = 0 ;
20612 wxSize temp2 ;
20613 PyObject * obj0 = 0 ;
20614 PyObject * obj1 = 0 ;
20615 char * kwnames[] = {
20616 (char *) "self",(char *) "padding", NULL
20617 };
20618
20619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20621 if (!SWIG_IsOK(res1)) {
20622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20623 }
20624 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20625 {
20626 arg2 = &temp2;
20627 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20628 }
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 (arg1)->SetPadding((wxSize const &)*arg2);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_Py_Void();
20636 return resultobj;
20637fail:
20638 return NULL;
20639}
20640
20641
20642SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxNotebook *arg1 = (wxNotebook *) 0 ;
20645 wxSize *arg2 = 0 ;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 wxSize temp2 ;
20649 PyObject * obj0 = 0 ;
20650 PyObject * obj1 = 0 ;
20651 char * kwnames[] = {
20652 (char *) "self",(char *) "sz", NULL
20653 };
20654
20655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20657 if (!SWIG_IsOK(res1)) {
20658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20659 }
20660 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20661 {
20662 arg2 = &temp2;
20663 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20664 }
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 (arg1)->SetTabSize((wxSize const &)*arg2);
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_Py_Void();
20672 return resultobj;
20673fail:
20674 return NULL;
20675}
20676
20677
1bd55598
RD
20678SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20679 PyObject *resultobj = 0;
20680 wxNotebook *arg1 = (wxNotebook *) 0 ;
20681 wxColour result;
20682 void *argp1 = 0 ;
20683 int res1 = 0 ;
20684 PyObject *swig_obj[1] ;
20685
20686 if (!args) SWIG_fail;
20687 swig_obj[0] = args;
20688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20689 if (!SWIG_IsOK(res1)) {
20690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20691 }
20692 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20693 {
20694 PyThreadState* __tstate = wxPyBeginAllowThreads();
20695 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20700 return resultobj;
20701fail:
20702 return NULL;
20703}
20704
20705
20706SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj = 0;
20708 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20709 SwigValueWrapper<wxVisualAttributes > result;
20710 int val1 ;
20711 int ecode1 = 0 ;
20712 PyObject * obj0 = 0 ;
20713 char * kwnames[] = {
20714 (char *) "variant", NULL
20715 };
20716
20717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20718 if (obj0) {
20719 ecode1 = SWIG_AsVal_int(obj0, &val1);
20720 if (!SWIG_IsOK(ecode1)) {
20721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20722 }
20723 arg1 = static_cast< wxWindowVariant >(val1);
20724 }
20725 {
20726 if (!wxPyCheckForApp()) SWIG_fail;
20727 PyThreadState* __tstate = wxPyBeginAllowThreads();
20728 result = wxNotebook::GetClassDefaultAttributes(arg1);
20729 wxPyEndAllowThreads(__tstate);
20730 if (PyErr_Occurred()) SWIG_fail;
20731 }
20732 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20733 return resultobj;
20734fail:
20735 return NULL;
20736}
20737
20738
20739SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20740 PyObject *obj;
20741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20742 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20743 return SWIG_Py_Void();
20744}
20745
20746SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20747 return SWIG_Python_InitShadowInstance(args);
20748}
20749
20750SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20751 PyObject *resultobj = 0;
20752 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20753 int arg2 = (int) 0 ;
20754 int arg3 = (int) -1 ;
20755 int arg4 = (int) -1 ;
20756 wxNotebookEvent *result = 0 ;
20757 int val1 ;
20758 int ecode1 = 0 ;
20759 int val2 ;
20760 int ecode2 = 0 ;
20761 int val3 ;
20762 int ecode3 = 0 ;
20763 int val4 ;
20764 int ecode4 = 0 ;
20765 PyObject * obj0 = 0 ;
20766 PyObject * obj1 = 0 ;
20767 PyObject * obj2 = 0 ;
20768 PyObject * obj3 = 0 ;
20769 char * kwnames[] = {
20770 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20771 };
20772
20773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20774 if (obj0) {
20775 ecode1 = SWIG_AsVal_int(obj0, &val1);
20776 if (!SWIG_IsOK(ecode1)) {
20777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20778 }
20779 arg1 = static_cast< wxEventType >(val1);
20780 }
20781 if (obj1) {
20782 ecode2 = SWIG_AsVal_int(obj1, &val2);
20783 if (!SWIG_IsOK(ecode2)) {
20784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20785 }
20786 arg2 = static_cast< int >(val2);
20787 }
20788 if (obj2) {
20789 ecode3 = SWIG_AsVal_int(obj2, &val3);
20790 if (!SWIG_IsOK(ecode3)) {
20791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20792 }
20793 arg3 = static_cast< int >(val3);
20794 }
20795 if (obj3) {
20796 ecode4 = SWIG_AsVal_int(obj3, &val4);
20797 if (!SWIG_IsOK(ecode4)) {
20798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20799 }
20800 arg4 = static_cast< int >(val4);
20801 }
20802 {
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20809 return resultobj;
20810fail:
20811 return NULL;
20812}
20813
20814
20815SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20816 PyObject *obj;
20817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20818 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20819 return SWIG_Py_Void();
20820}
20821
20822SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20823 return SWIG_Python_InitShadowInstance(args);
20824}
20825
20826SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20827 PyObject *resultobj = 0;
20828 wxWindow *arg1 = (wxWindow *) 0 ;
20829 int arg2 = (int) -1 ;
20830 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20831 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20832 wxSize const &arg4_defvalue = wxDefaultSize ;
20833 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20834 long arg5 = (long) 0 ;
20835 wxString const &arg6_defvalue = wxPyEmptyString ;
20836 wxString *arg6 = (wxString *) &arg6_defvalue ;
20837 wxListbook *result = 0 ;
20838 void *argp1 = 0 ;
20839 int res1 = 0 ;
20840 int val2 ;
20841 int ecode2 = 0 ;
20842 wxPoint temp3 ;
20843 wxSize temp4 ;
20844 long val5 ;
20845 int ecode5 = 0 ;
20846 bool temp6 = false ;
20847 PyObject * obj0 = 0 ;
20848 PyObject * obj1 = 0 ;
20849 PyObject * obj2 = 0 ;
20850 PyObject * obj3 = 0 ;
20851 PyObject * obj4 = 0 ;
20852 PyObject * obj5 = 0 ;
20853 char * kwnames[] = {
20854 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20855 };
20856
20857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20859 if (!SWIG_IsOK(res1)) {
20860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20861 }
20862 arg1 = reinterpret_cast< wxWindow * >(argp1);
20863 if (obj1) {
20864 ecode2 = SWIG_AsVal_int(obj1, &val2);
20865 if (!SWIG_IsOK(ecode2)) {
20866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20867 }
20868 arg2 = static_cast< int >(val2);
20869 }
20870 if (obj2) {
d55e5bfc 20871 {
1bd55598
RD
20872 arg3 = &temp3;
20873 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20874 }
1bd55598
RD
20875 }
20876 if (obj3) {
d55e5bfc 20877 {
1bd55598
RD
20878 arg4 = &temp4;
20879 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20880 }
1bd55598
RD
20881 }
20882 if (obj4) {
20883 ecode5 = SWIG_AsVal_long(obj4, &val5);
20884 if (!SWIG_IsOK(ecode5)) {
20885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20886 }
20887 arg5 = static_cast< long >(val5);
20888 }
20889 if (obj5) {
d55e5bfc 20890 {
1bd55598
RD
20891 arg6 = wxString_in_helper(obj5);
20892 if (arg6 == NULL) SWIG_fail;
20893 temp6 = true;
d55e5bfc 20894 }
1bd55598
RD
20895 }
20896 {
20897 if (!wxPyCheckForApp()) SWIG_fail;
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20904 {
20905 if (temp6)
20906 delete arg6;
20907 }
20908 return resultobj;
20909fail:
20910 {
20911 if (temp6)
20912 delete arg6;
20913 }
20914 return NULL;
20915}
20916
20917
20918SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20919 PyObject *resultobj = 0;
20920 wxListbook *result = 0 ;
20921
20922 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20923 {
20924 if (!wxPyCheckForApp()) SWIG_fail;
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 result = (wxListbook *)new wxListbook();
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20931 return resultobj;
20932fail:
20933 return NULL;
20934}
20935
20936
20937SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20938 PyObject *resultobj = 0;
20939 wxListbook *arg1 = (wxListbook *) 0 ;
20940 wxWindow *arg2 = (wxWindow *) 0 ;
20941 int arg3 = (int) -1 ;
20942 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20943 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20944 wxSize const &arg5_defvalue = wxDefaultSize ;
20945 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20946 long arg6 = (long) 0 ;
20947 wxString const &arg7_defvalue = wxPyEmptyString ;
20948 wxString *arg7 = (wxString *) &arg7_defvalue ;
20949 bool result;
20950 void *argp1 = 0 ;
20951 int res1 = 0 ;
20952 void *argp2 = 0 ;
20953 int res2 = 0 ;
20954 int val3 ;
20955 int ecode3 = 0 ;
20956 wxPoint temp4 ;
20957 wxSize temp5 ;
20958 long val6 ;
20959 int ecode6 = 0 ;
20960 bool temp7 = false ;
20961 PyObject * obj0 = 0 ;
20962 PyObject * obj1 = 0 ;
20963 PyObject * obj2 = 0 ;
20964 PyObject * obj3 = 0 ;
20965 PyObject * obj4 = 0 ;
20966 PyObject * obj5 = 0 ;
20967 PyObject * obj6 = 0 ;
20968 char * kwnames[] = {
20969 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20970 };
20971
20972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20974 if (!SWIG_IsOK(res1)) {
20975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20976 }
20977 arg1 = reinterpret_cast< wxListbook * >(argp1);
20978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20979 if (!SWIG_IsOK(res2)) {
20980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20981 }
20982 arg2 = reinterpret_cast< wxWindow * >(argp2);
20983 if (obj2) {
20984 ecode3 = SWIG_AsVal_int(obj2, &val3);
20985 if (!SWIG_IsOK(ecode3)) {
20986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20987 }
20988 arg3 = static_cast< int >(val3);
20989 }
20990 if (obj3) {
d55e5bfc 20991 {
1bd55598
RD
20992 arg4 = &temp4;
20993 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20994 }
1bd55598
RD
20995 }
20996 if (obj4) {
d55e5bfc 20997 {
1bd55598
RD
20998 arg5 = &temp5;
20999 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21000 }
1bd55598
RD
21001 }
21002 if (obj5) {
21003 ecode6 = SWIG_AsVal_long(obj5, &val6);
21004 if (!SWIG_IsOK(ecode6)) {
21005 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21006 }
21007 arg6 = static_cast< long >(val6);
21008 }
21009 if (obj6) {
d55e5bfc 21010 {
1bd55598
RD
21011 arg7 = wxString_in_helper(obj6);
21012 if (arg7 == NULL) SWIG_fail;
21013 temp7 = true;
d55e5bfc 21014 }
1bd55598
RD
21015 }
21016 {
21017 PyThreadState* __tstate = wxPyBeginAllowThreads();
21018 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 {
21023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21024 }
21025 {
21026 if (temp7)
21027 delete arg7;
21028 }
21029 return resultobj;
21030fail:
21031 {
21032 if (temp7)
21033 delete arg7;
21034 }
21035 return NULL;
d55e5bfc
RD
21036}
21037
21038
1bd55598
RD
21039SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21040 PyObject *resultobj = 0;
21041 wxListbook *arg1 = (wxListbook *) 0 ;
21042 wxListView *result = 0 ;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 PyObject *swig_obj[1] ;
21046
21047 if (!args) SWIG_fail;
21048 swig_obj[0] = args;
21049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21050 if (!SWIG_IsOK(res1)) {
21051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21052 }
21053 arg1 = reinterpret_cast< wxListbook * >(argp1);
21054 {
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (wxListView *)(arg1)->GetListView();
21057 wxPyEndAllowThreads(__tstate);
21058 if (PyErr_Occurred()) SWIG_fail;
21059 }
21060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21061 return resultobj;
21062fail:
21063 return NULL;
21064}
21065
21066
21067SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21068 PyObject *obj;
21069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21070 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21071 return SWIG_Py_Void();
21072}
21073
21074SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21075 return SWIG_Python_InitShadowInstance(args);
21076}
21077
21078SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21079 PyObject *resultobj = 0;
21080 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21081 int arg2 = (int) 0 ;
21082 int arg3 = (int) -1 ;
21083 int arg4 = (int) -1 ;
21084 wxListbookEvent *result = 0 ;
21085 int val1 ;
21086 int ecode1 = 0 ;
21087 int val2 ;
21088 int ecode2 = 0 ;
21089 int val3 ;
21090 int ecode3 = 0 ;
21091 int val4 ;
21092 int ecode4 = 0 ;
21093 PyObject * obj0 = 0 ;
21094 PyObject * obj1 = 0 ;
21095 PyObject * obj2 = 0 ;
21096 PyObject * obj3 = 0 ;
21097 char * kwnames[] = {
21098 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21099 };
21100
21101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21102 if (obj0) {
21103 ecode1 = SWIG_AsVal_int(obj0, &val1);
21104 if (!SWIG_IsOK(ecode1)) {
21105 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21106 }
21107 arg1 = static_cast< wxEventType >(val1);
21108 }
21109 if (obj1) {
21110 ecode2 = SWIG_AsVal_int(obj1, &val2);
21111 if (!SWIG_IsOK(ecode2)) {
21112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21113 }
21114 arg2 = static_cast< int >(val2);
21115 }
21116 if (obj2) {
21117 ecode3 = SWIG_AsVal_int(obj2, &val3);
21118 if (!SWIG_IsOK(ecode3)) {
21119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21120 }
21121 arg3 = static_cast< int >(val3);
21122 }
21123 if (obj3) {
21124 ecode4 = SWIG_AsVal_int(obj3, &val4);
21125 if (!SWIG_IsOK(ecode4)) {
21126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21127 }
21128 arg4 = static_cast< int >(val4);
21129 }
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21133 wxPyEndAllowThreads(__tstate);
21134 if (PyErr_Occurred()) SWIG_fail;
21135 }
21136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21137 return resultobj;
21138fail:
21139 return NULL;
21140}
21141
21142
21143SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21144 PyObject *obj;
21145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21146 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21147 return SWIG_Py_Void();
21148}
21149
21150SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21151 return SWIG_Python_InitShadowInstance(args);
21152}
21153
21154SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21155 PyObject *resultobj = 0;
21156 wxWindow *arg1 = (wxWindow *) 0 ;
21157 int arg2 ;
21158 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21159 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21160 wxSize const &arg4_defvalue = wxDefaultSize ;
21161 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21162 long arg5 = (long) 0 ;
21163 wxString const &arg6_defvalue = wxPyEmptyString ;
21164 wxString *arg6 = (wxString *) &arg6_defvalue ;
21165 wxChoicebook *result = 0 ;
21166 void *argp1 = 0 ;
21167 int res1 = 0 ;
21168 int val2 ;
21169 int ecode2 = 0 ;
21170 wxPoint temp3 ;
21171 wxSize temp4 ;
21172 long val5 ;
21173 int ecode5 = 0 ;
21174 bool temp6 = false ;
21175 PyObject * obj0 = 0 ;
21176 PyObject * obj1 = 0 ;
21177 PyObject * obj2 = 0 ;
21178 PyObject * obj3 = 0 ;
21179 PyObject * obj4 = 0 ;
21180 PyObject * obj5 = 0 ;
21181 char * kwnames[] = {
21182 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21183 };
21184
21185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21187 if (!SWIG_IsOK(res1)) {
21188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21189 }
21190 arg1 = reinterpret_cast< wxWindow * >(argp1);
21191 ecode2 = SWIG_AsVal_int(obj1, &val2);
21192 if (!SWIG_IsOK(ecode2)) {
21193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21194 }
21195 arg2 = static_cast< int >(val2);
21196 if (obj2) {
36ed4f51 21197 {
1bd55598
RD
21198 arg3 = &temp3;
21199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21200 }
1bd55598
RD
21201 }
21202 if (obj3) {
36ed4f51 21203 {
1bd55598
RD
21204 arg4 = &temp4;
21205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21206 }
1bd55598
RD
21207 }
21208 if (obj4) {
21209 ecode5 = SWIG_AsVal_long(obj4, &val5);
21210 if (!SWIG_IsOK(ecode5)) {
21211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21212 }
21213 arg5 = static_cast< long >(val5);
21214 }
21215 if (obj5) {
d55e5bfc 21216 {
1bd55598
RD
21217 arg6 = wxString_in_helper(obj5);
21218 if (arg6 == NULL) SWIG_fail;
21219 temp6 = true;
d55e5bfc 21220 }
1bd55598
RD
21221 }
21222 {
21223 if (!wxPyCheckForApp()) SWIG_fail;
21224 PyThreadState* __tstate = wxPyBeginAllowThreads();
21225 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21226 wxPyEndAllowThreads(__tstate);
21227 if (PyErr_Occurred()) SWIG_fail;
21228 }
21229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21230 {
21231 if (temp6)
21232 delete arg6;
21233 }
21234 return resultobj;
21235fail:
21236 {
21237 if (temp6)
21238 delete arg6;
21239 }
21240 return NULL;
d55e5bfc
RD
21241}
21242
21243
1bd55598
RD
21244SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21245 PyObject *resultobj = 0;
21246 wxChoicebook *result = 0 ;
21247
21248 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21249 {
21250 if (!wxPyCheckForApp()) SWIG_fail;
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = (wxChoicebook *)new wxChoicebook();
21253 wxPyEndAllowThreads(__tstate);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21257 return resultobj;
21258fail:
21259 return NULL;
21260}
21261
21262
21263SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21264 PyObject *resultobj = 0;
21265 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21266 wxWindow *arg2 = (wxWindow *) 0 ;
21267 int arg3 ;
21268 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21269 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21270 wxSize const &arg5_defvalue = wxDefaultSize ;
21271 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21272 long arg6 = (long) 0 ;
21273 wxString const &arg7_defvalue = wxPyEmptyString ;
21274 wxString *arg7 = (wxString *) &arg7_defvalue ;
21275 bool result;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 void *argp2 = 0 ;
21279 int res2 = 0 ;
21280 int val3 ;
21281 int ecode3 = 0 ;
21282 wxPoint temp4 ;
21283 wxSize temp5 ;
21284 long val6 ;
21285 int ecode6 = 0 ;
21286 bool temp7 = false ;
21287 PyObject * obj0 = 0 ;
21288 PyObject * obj1 = 0 ;
21289 PyObject * obj2 = 0 ;
21290 PyObject * obj3 = 0 ;
21291 PyObject * obj4 = 0 ;
21292 PyObject * obj5 = 0 ;
21293 PyObject * obj6 = 0 ;
21294 char * kwnames[] = {
21295 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21296 };
21297
21298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21300 if (!SWIG_IsOK(res1)) {
21301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21302 }
21303 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21305 if (!SWIG_IsOK(res2)) {
21306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21307 }
21308 arg2 = reinterpret_cast< wxWindow * >(argp2);
21309 ecode3 = SWIG_AsVal_int(obj2, &val3);
21310 if (!SWIG_IsOK(ecode3)) {
21311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21312 }
21313 arg3 = static_cast< int >(val3);
21314 if (obj3) {
d55e5bfc 21315 {
1bd55598
RD
21316 arg4 = &temp4;
21317 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21318 }
1bd55598
RD
21319 }
21320 if (obj4) {
d55e5bfc 21321 {
1bd55598
RD
21322 arg5 = &temp5;
21323 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21324 }
1bd55598
RD
21325 }
21326 if (obj5) {
21327 ecode6 = SWIG_AsVal_long(obj5, &val6);
21328 if (!SWIG_IsOK(ecode6)) {
21329 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21330 }
21331 arg6 = static_cast< long >(val6);
21332 }
21333 if (obj6) {
d55e5bfc 21334 {
1bd55598
RD
21335 arg7 = wxString_in_helper(obj6);
21336 if (arg7 == NULL) SWIG_fail;
21337 temp7 = true;
d55e5bfc 21338 }
1bd55598
RD
21339 }
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 {
21347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21348 }
21349 {
21350 if (temp7)
21351 delete arg7;
21352 }
21353 return resultobj;
21354fail:
21355 {
21356 if (temp7)
21357 delete arg7;
21358 }
21359 return NULL;
d55e5bfc
RD
21360}
21361
21362
1bd55598
RD
21363SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21364 PyObject *resultobj = 0;
21365 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21366 wxChoice *result = 0 ;
21367 void *argp1 = 0 ;
21368 int res1 = 0 ;
21369 PyObject *swig_obj[1] ;
21370
21371 if (!args) SWIG_fail;
21372 swig_obj[0] = args;
21373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21374 if (!SWIG_IsOK(res1)) {
21375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21376 }
21377 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21378 {
21379 PyThreadState* __tstate = wxPyBeginAllowThreads();
21380 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21385 return resultobj;
21386fail:
21387 return NULL;
21388}
21389
21390
21391SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21392 PyObject *obj;
21393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21394 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21395 return SWIG_Py_Void();
21396}
21397
21398SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21399 return SWIG_Python_InitShadowInstance(args);
21400}
21401
21402SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21403 PyObject *resultobj = 0;
21404 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21405 int arg2 = (int) 0 ;
21406 int arg3 = (int) -1 ;
21407 int arg4 = (int) -1 ;
21408 wxChoicebookEvent *result = 0 ;
21409 int val1 ;
21410 int ecode1 = 0 ;
21411 int val2 ;
21412 int ecode2 = 0 ;
21413 int val3 ;
21414 int ecode3 = 0 ;
21415 int val4 ;
21416 int ecode4 = 0 ;
21417 PyObject * obj0 = 0 ;
21418 PyObject * obj1 = 0 ;
21419 PyObject * obj2 = 0 ;
21420 PyObject * obj3 = 0 ;
21421 char * kwnames[] = {
21422 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21423 };
21424
21425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21426 if (obj0) {
21427 ecode1 = SWIG_AsVal_int(obj0, &val1);
21428 if (!SWIG_IsOK(ecode1)) {
21429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21430 }
21431 arg1 = static_cast< wxEventType >(val1);
21432 }
21433 if (obj1) {
21434 ecode2 = SWIG_AsVal_int(obj1, &val2);
21435 if (!SWIG_IsOK(ecode2)) {
21436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21437 }
21438 arg2 = static_cast< int >(val2);
21439 }
21440 if (obj2) {
21441 ecode3 = SWIG_AsVal_int(obj2, &val3);
21442 if (!SWIG_IsOK(ecode3)) {
21443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21444 }
21445 arg3 = static_cast< int >(val3);
21446 }
21447 if (obj3) {
21448 ecode4 = SWIG_AsVal_int(obj3, &val4);
21449 if (!SWIG_IsOK(ecode4)) {
21450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21451 }
21452 arg4 = static_cast< int >(val4);
21453 }
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21461 return resultobj;
21462fail:
21463 return NULL;
21464}
21465
21466
21467SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21468 PyObject *obj;
21469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21470 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21471 return SWIG_Py_Void();
21472}
21473
21474SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21475 return SWIG_Python_InitShadowInstance(args);
21476}
21477
21478SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj = 0;
21480 wxWindow *arg1 = (wxWindow *) 0 ;
21481 int arg2 ;
21482 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21483 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21484 wxSize const &arg4_defvalue = wxDefaultSize ;
21485 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21486 long arg5 = (long) wxBK_DEFAULT ;
21487 wxString const &arg6_defvalue = wxPyEmptyString ;
21488 wxString *arg6 = (wxString *) &arg6_defvalue ;
21489 wxTreebook *result = 0 ;
21490 void *argp1 = 0 ;
21491 int res1 = 0 ;
21492 int val2 ;
21493 int ecode2 = 0 ;
21494 wxPoint temp3 ;
21495 wxSize temp4 ;
21496 long val5 ;
21497 int ecode5 = 0 ;
21498 bool temp6 = false ;
21499 PyObject * obj0 = 0 ;
21500 PyObject * obj1 = 0 ;
21501 PyObject * obj2 = 0 ;
21502 PyObject * obj3 = 0 ;
21503 PyObject * obj4 = 0 ;
21504 PyObject * obj5 = 0 ;
21505 char * kwnames[] = {
21506 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21507 };
21508
21509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21511 if (!SWIG_IsOK(res1)) {
21512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21513 }
21514 arg1 = reinterpret_cast< wxWindow * >(argp1);
21515 ecode2 = SWIG_AsVal_int(obj1, &val2);
21516 if (!SWIG_IsOK(ecode2)) {
21517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21518 }
21519 arg2 = static_cast< int >(val2);
21520 if (obj2) {
36ed4f51 21521 {
1bd55598
RD
21522 arg3 = &temp3;
21523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21524 }
1bd55598
RD
21525 }
21526 if (obj3) {
36ed4f51 21527 {
1bd55598
RD
21528 arg4 = &temp4;
21529 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21530 }
1bd55598
RD
21531 }
21532 if (obj4) {
21533 ecode5 = SWIG_AsVal_long(obj4, &val5);
21534 if (!SWIG_IsOK(ecode5)) {
21535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21536 }
21537 arg5 = static_cast< long >(val5);
21538 }
21539 if (obj5) {
d55e5bfc 21540 {
1bd55598
RD
21541 arg6 = wxString_in_helper(obj5);
21542 if (arg6 == NULL) SWIG_fail;
21543 temp6 = true;
d55e5bfc 21544 }
1bd55598
RD
21545 }
21546 {
21547 if (!wxPyCheckForApp()) SWIG_fail;
21548 PyThreadState* __tstate = wxPyBeginAllowThreads();
21549 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21550 wxPyEndAllowThreads(__tstate);
21551 if (PyErr_Occurred()) SWIG_fail;
21552 }
21553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21554 {
21555 if (temp6)
21556 delete arg6;
21557 }
21558 return resultobj;
21559fail:
21560 {
21561 if (temp6)
21562 delete arg6;
21563 }
21564 return NULL;
d55e5bfc
RD
21565}
21566
21567
1bd55598
RD
21568SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21569 PyObject *resultobj = 0;
21570 wxTreebook *result = 0 ;
21571
21572 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21573 {
21574 if (!wxPyCheckForApp()) SWIG_fail;
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 result = (wxTreebook *)new wxTreebook();
21577 wxPyEndAllowThreads(__tstate);
21578 if (PyErr_Occurred()) SWIG_fail;
21579 }
21580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21581 return resultobj;
21582fail:
21583 return NULL;
21584}
21585
21586
21587SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21588 PyObject *resultobj = 0;
21589 wxTreebook *arg1 = (wxTreebook *) 0 ;
21590 wxWindow *arg2 = (wxWindow *) 0 ;
21591 int arg3 ;
21592 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21593 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21594 wxSize const &arg5_defvalue = wxDefaultSize ;
21595 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21596 long arg6 = (long) wxBK_DEFAULT ;
21597 wxString const &arg7_defvalue = wxPyEmptyString ;
21598 wxString *arg7 = (wxString *) &arg7_defvalue ;
21599 bool result;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 void *argp2 = 0 ;
21603 int res2 = 0 ;
21604 int val3 ;
21605 int ecode3 = 0 ;
21606 wxPoint temp4 ;
21607 wxSize temp5 ;
21608 long val6 ;
21609 int ecode6 = 0 ;
21610 bool temp7 = false ;
21611 PyObject * obj0 = 0 ;
21612 PyObject * obj1 = 0 ;
21613 PyObject * obj2 = 0 ;
21614 PyObject * obj3 = 0 ;
21615 PyObject * obj4 = 0 ;
21616 PyObject * obj5 = 0 ;
21617 PyObject * obj6 = 0 ;
21618 char * kwnames[] = {
21619 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21620 };
21621
21622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21624 if (!SWIG_IsOK(res1)) {
21625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21626 }
21627 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21629 if (!SWIG_IsOK(res2)) {
21630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21631 }
21632 arg2 = reinterpret_cast< wxWindow * >(argp2);
21633 ecode3 = SWIG_AsVal_int(obj2, &val3);
21634 if (!SWIG_IsOK(ecode3)) {
21635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21636 }
21637 arg3 = static_cast< int >(val3);
21638 if (obj3) {
36ed4f51 21639 {
1bd55598
RD
21640 arg4 = &temp4;
21641 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21642 }
1bd55598
RD
21643 }
21644 if (obj4) {
d55e5bfc 21645 {
1bd55598
RD
21646 arg5 = &temp5;
21647 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21648 }
1bd55598
RD
21649 }
21650 if (obj5) {
21651 ecode6 = SWIG_AsVal_long(obj5, &val6);
21652 if (!SWIG_IsOK(ecode6)) {
21653 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21654 }
21655 arg6 = static_cast< long >(val6);
21656 }
21657 if (obj6) {
36ed4f51 21658 {
1bd55598
RD
21659 arg7 = wxString_in_helper(obj6);
21660 if (arg7 == NULL) SWIG_fail;
21661 temp7 = true;
36ed4f51 21662 }
1bd55598
RD
21663 }
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 {
21671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21672 }
21673 {
21674 if (temp7)
21675 delete arg7;
21676 }
21677 return resultobj;
21678fail:
21679 {
21680 if (temp7)
21681 delete arg7;
21682 }
21683 return NULL;
21684}
21685
21686
21687SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21688 PyObject *resultobj = 0;
21689 wxTreebook *arg1 = (wxTreebook *) 0 ;
21690 size_t arg2 ;
21691 wxWindow *arg3 = (wxWindow *) 0 ;
21692 wxString *arg4 = 0 ;
21693 bool arg5 = (bool) false ;
21694 int arg6 = (int) wxNOT_FOUND ;
21695 bool result;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 size_t val2 ;
21699 int ecode2 = 0 ;
21700 void *argp3 = 0 ;
21701 int res3 = 0 ;
21702 bool temp4 = false ;
21703 bool val5 ;
21704 int ecode5 = 0 ;
21705 int val6 ;
21706 int ecode6 = 0 ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 PyObject * obj2 = 0 ;
21710 PyObject * obj3 = 0 ;
21711 PyObject * obj4 = 0 ;
21712 PyObject * obj5 = 0 ;
21713 char * kwnames[] = {
21714 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21715 };
21716
21717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21719 if (!SWIG_IsOK(res1)) {
21720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21721 }
21722 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21723 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21724 if (!SWIG_IsOK(ecode2)) {
21725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21726 }
21727 arg2 = static_cast< size_t >(val2);
21728 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21729 if (!SWIG_IsOK(res3)) {
21730 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21731 }
21732 arg3 = reinterpret_cast< wxWindow * >(argp3);
21733 {
21734 arg4 = wxString_in_helper(obj3);
21735 if (arg4 == NULL) SWIG_fail;
21736 temp4 = true;
21737 }
21738 if (obj4) {
21739 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21740 if (!SWIG_IsOK(ecode5)) {
21741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21742 }
21743 arg5 = static_cast< bool >(val5);
21744 }
21745 if (obj5) {
21746 ecode6 = SWIG_AsVal_int(obj5, &val6);
21747 if (!SWIG_IsOK(ecode6)) {
21748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21749 }
21750 arg6 = static_cast< int >(val6);
21751 }
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 {
21759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21760 }
21761 {
21762 if (temp4)
21763 delete arg4;
21764 }
21765 return resultobj;
21766fail:
21767 {
21768 if (temp4)
21769 delete arg4;
21770 }
21771 return NULL;
21772}
21773
21774
21775SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj = 0;
21777 wxTreebook *arg1 = (wxTreebook *) 0 ;
21778 wxWindow *arg2 = (wxWindow *) 0 ;
21779 wxString *arg3 = 0 ;
21780 bool arg4 = (bool) false ;
21781 int arg5 = (int) wxNOT_FOUND ;
21782 bool result;
21783 void *argp1 = 0 ;
21784 int res1 = 0 ;
21785 void *argp2 = 0 ;
21786 int res2 = 0 ;
21787 bool temp3 = false ;
21788 bool val4 ;
21789 int ecode4 = 0 ;
21790 int val5 ;
21791 int ecode5 = 0 ;
21792 PyObject * obj0 = 0 ;
21793 PyObject * obj1 = 0 ;
21794 PyObject * obj2 = 0 ;
21795 PyObject * obj3 = 0 ;
21796 PyObject * obj4 = 0 ;
21797 char * kwnames[] = {
21798 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21799 };
21800
21801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21803 if (!SWIG_IsOK(res1)) {
21804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21805 }
21806 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21808 if (!SWIG_IsOK(res2)) {
21809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21810 }
21811 arg2 = reinterpret_cast< wxWindow * >(argp2);
21812 {
21813 arg3 = wxString_in_helper(obj2);
21814 if (arg3 == NULL) SWIG_fail;
21815 temp3 = true;
21816 }
21817 if (obj3) {
21818 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21819 if (!SWIG_IsOK(ecode4)) {
21820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21821 }
21822 arg4 = static_cast< bool >(val4);
21823 }
21824 if (obj4) {
21825 ecode5 = SWIG_AsVal_int(obj4, &val5);
21826 if (!SWIG_IsOK(ecode5)) {
21827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21828 }
21829 arg5 = static_cast< int >(val5);
21830 }
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 {
21838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21839 }
21840 {
21841 if (temp3)
21842 delete arg3;
21843 }
21844 return resultobj;
21845fail:
21846 {
21847 if (temp3)
21848 delete arg3;
21849 }
21850 return NULL;
21851}
21852
21853
21854SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21855 PyObject *resultobj = 0;
21856 wxTreebook *arg1 = (wxTreebook *) 0 ;
21857 size_t arg2 ;
21858 bool result;
21859 void *argp1 = 0 ;
21860 int res1 = 0 ;
21861 size_t val2 ;
21862 int ecode2 = 0 ;
21863 PyObject * obj0 = 0 ;
21864 PyObject * obj1 = 0 ;
21865 char * kwnames[] = {
21866 (char *) "self",(char *) "pos", NULL
21867 };
21868
21869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21871 if (!SWIG_IsOK(res1)) {
21872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21873 }
21874 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21875 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21876 if (!SWIG_IsOK(ecode2)) {
21877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21878 }
21879 arg2 = static_cast< size_t >(val2);
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 {
21887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21888 }
21889 return resultobj;
21890fail:
21891 return NULL;
21892}
21893
21894
21895SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21896 PyObject *resultobj = 0;
21897 wxTreebook *arg1 = (wxTreebook *) 0 ;
21898 size_t arg2 ;
21899 bool arg3 = (bool) true ;
21900 bool result;
21901 void *argp1 = 0 ;
21902 int res1 = 0 ;
21903 size_t val2 ;
21904 int ecode2 = 0 ;
21905 bool val3 ;
21906 int ecode3 = 0 ;
21907 PyObject * obj0 = 0 ;
21908 PyObject * obj1 = 0 ;
21909 PyObject * obj2 = 0 ;
21910 char * kwnames[] = {
21911 (char *) "self",(char *) "pos",(char *) "expand", NULL
21912 };
21913
21914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21918 }
21919 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21920 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21921 if (!SWIG_IsOK(ecode2)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21923 }
21924 arg2 = static_cast< size_t >(val2);
21925 if (obj2) {
21926 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21927 if (!SWIG_IsOK(ecode3)) {
21928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21929 }
21930 arg3 = static_cast< bool >(val3);
21931 }
21932 {
21933 PyThreadState* __tstate = wxPyBeginAllowThreads();
21934 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21935 wxPyEndAllowThreads(__tstate);
21936 if (PyErr_Occurred()) SWIG_fail;
21937 }
21938 {
21939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21940 }
21941 return resultobj;
21942fail:
21943 return NULL;
21944}
21945
21946
21947SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21948 PyObject *resultobj = 0;
21949 wxTreebook *arg1 = (wxTreebook *) 0 ;
21950 size_t arg2 ;
21951 bool result;
21952 void *argp1 = 0 ;
21953 int res1 = 0 ;
21954 size_t val2 ;
21955 int ecode2 = 0 ;
21956 PyObject * obj0 = 0 ;
21957 PyObject * obj1 = 0 ;
21958 char * kwnames[] = {
21959 (char *) "self",(char *) "pos", NULL
21960 };
21961
21962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21964 if (!SWIG_IsOK(res1)) {
21965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21966 }
21967 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21968 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21969 if (!SWIG_IsOK(ecode2)) {
21970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21971 }
21972 arg2 = static_cast< size_t >(val2);
21973 {
21974 PyThreadState* __tstate = wxPyBeginAllowThreads();
21975 result = (bool)(arg1)->CollapseNode(arg2);
21976 wxPyEndAllowThreads(__tstate);
21977 if (PyErr_Occurred()) SWIG_fail;
21978 }
21979 {
21980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21981 }
21982 return resultobj;
21983fail:
21984 return NULL;
21985}
21986
21987
21988SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21989 PyObject *resultobj = 0;
21990 wxTreebook *arg1 = (wxTreebook *) 0 ;
21991 size_t arg2 ;
21992 int result;
21993 void *argp1 = 0 ;
21994 int res1 = 0 ;
21995 size_t val2 ;
21996 int ecode2 = 0 ;
21997 PyObject * obj0 = 0 ;
21998 PyObject * obj1 = 0 ;
21999 char * kwnames[] = {
22000 (char *) "self",(char *) "pos", NULL
22001 };
22002
22003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22005 if (!SWIG_IsOK(res1)) {
22006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22007 }
22008 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22009 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22010 if (!SWIG_IsOK(ecode2)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22012 }
22013 arg2 = static_cast< size_t >(val2);
22014 {
22015 PyThreadState* __tstate = wxPyBeginAllowThreads();
22016 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 resultobj = SWIG_From_int(static_cast< int >(result));
22021 return resultobj;
22022fail:
22023 return NULL;
d55e5bfc
RD
22024}
22025
22026
1bd55598
RD
22027SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22028 PyObject *resultobj = 0;
22029 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22030 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22031 void *argp1 = 0 ;
22032 int res1 = 0 ;
22033 PyObject *swig_obj[1] ;
22034
22035 if (!args) SWIG_fail;
22036 swig_obj[0] = args;
22037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22038 if (!SWIG_IsOK(res1)) {
22039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22040 }
22041 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22044 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22045 wxPyEndAllowThreads(__tstate);
22046 if (PyErr_Occurred()) SWIG_fail;
22047 }
10044bf1
RD
22048 {
22049 resultobj = wxPyMake_wxObject(result, (bool)0);
22050 }
1bd55598
RD
22051 return resultobj;
22052fail:
22053 return NULL;
22054}
22055
22056
22057SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22058 PyObject *obj;
22059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22060 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22061 return SWIG_Py_Void();
22062}
22063
22064SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22065 return SWIG_Python_InitShadowInstance(args);
22066}
22067
22068SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22069 PyObject *resultobj = 0;
22070 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22071 int arg2 = (int) 0 ;
22072 int arg3 = (int) wxNOT_FOUND ;
22073 int arg4 = (int) wxNOT_FOUND ;
22074 wxTreebookEvent *result = 0 ;
22075 int val1 ;
22076 int ecode1 = 0 ;
22077 int val2 ;
22078 int ecode2 = 0 ;
22079 int val3 ;
22080 int ecode3 = 0 ;
22081 int val4 ;
22082 int ecode4 = 0 ;
22083 PyObject * obj0 = 0 ;
22084 PyObject * obj1 = 0 ;
22085 PyObject * obj2 = 0 ;
22086 PyObject * obj3 = 0 ;
22087 char * kwnames[] = {
22088 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22089 };
22090
22091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22092 if (obj0) {
22093 ecode1 = SWIG_AsVal_int(obj0, &val1);
22094 if (!SWIG_IsOK(ecode1)) {
22095 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22096 }
22097 arg1 = static_cast< wxEventType >(val1);
22098 }
22099 if (obj1) {
22100 ecode2 = SWIG_AsVal_int(obj1, &val2);
22101 if (!SWIG_IsOK(ecode2)) {
22102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22103 }
22104 arg2 = static_cast< int >(val2);
22105 }
22106 if (obj2) {
22107 ecode3 = SWIG_AsVal_int(obj2, &val3);
22108 if (!SWIG_IsOK(ecode3)) {
22109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22110 }
22111 arg3 = static_cast< int >(val3);
22112 }
22113 if (obj3) {
22114 ecode4 = SWIG_AsVal_int(obj3, &val4);
22115 if (!SWIG_IsOK(ecode4)) {
22116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22117 }
22118 arg4 = static_cast< int >(val4);
22119 }
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22123 wxPyEndAllowThreads(__tstate);
22124 if (PyErr_Occurred()) SWIG_fail;
22125 }
22126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22127 return resultobj;
22128fail:
22129 return NULL;
22130}
22131
22132
22133SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22134 PyObject *obj;
22135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22136 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22137 return SWIG_Py_Void();
22138}
22139
22140SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22141 return SWIG_Python_InitShadowInstance(args);
22142}
22143
22144SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22145 PyObject *resultobj = 0;
22146 wxWindow *arg1 = (wxWindow *) 0 ;
22147 int arg2 ;
22148 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22149 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22150 wxSize const &arg4_defvalue = wxDefaultSize ;
22151 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22152 long arg5 = (long) wxBK_DEFAULT ;
22153 wxString const &arg6_defvalue = wxPyEmptyString ;
22154 wxString *arg6 = (wxString *) &arg6_defvalue ;
22155 wxToolbook *result = 0 ;
22156 void *argp1 = 0 ;
22157 int res1 = 0 ;
22158 int val2 ;
22159 int ecode2 = 0 ;
22160 wxPoint temp3 ;
22161 wxSize temp4 ;
22162 long val5 ;
22163 int ecode5 = 0 ;
22164 bool temp6 = false ;
22165 PyObject * obj0 = 0 ;
22166 PyObject * obj1 = 0 ;
22167 PyObject * obj2 = 0 ;
22168 PyObject * obj3 = 0 ;
22169 PyObject * obj4 = 0 ;
22170 PyObject * obj5 = 0 ;
22171 char * kwnames[] = {
22172 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22173 };
22174
22175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22177 if (!SWIG_IsOK(res1)) {
22178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22179 }
22180 arg1 = reinterpret_cast< wxWindow * >(argp1);
22181 ecode2 = SWIG_AsVal_int(obj1, &val2);
22182 if (!SWIG_IsOK(ecode2)) {
22183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22184 }
22185 arg2 = static_cast< int >(val2);
22186 if (obj2) {
36ed4f51 22187 {
1bd55598
RD
22188 arg3 = &temp3;
22189 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22190 }
1bd55598
RD
22191 }
22192 if (obj3) {
36ed4f51 22193 {
1bd55598
RD
22194 arg4 = &temp4;
22195 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22196 }
1bd55598
RD
22197 }
22198 if (obj4) {
22199 ecode5 = SWIG_AsVal_long(obj4, &val5);
22200 if (!SWIG_IsOK(ecode5)) {
22201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22202 }
22203 arg5 = static_cast< long >(val5);
22204 }
22205 if (obj5) {
d55e5bfc 22206 {
1bd55598
RD
22207 arg6 = wxString_in_helper(obj5);
22208 if (arg6 == NULL) SWIG_fail;
22209 temp6 = true;
d55e5bfc 22210 }
1bd55598
RD
22211 }
22212 {
22213 PyThreadState* __tstate = wxPyBeginAllowThreads();
22214 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22215 wxPyEndAllowThreads(__tstate);
22216 if (PyErr_Occurred()) SWIG_fail;
22217 }
22218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22219 {
22220 if (temp6)
22221 delete arg6;
22222 }
22223 return resultobj;
22224fail:
22225 {
22226 if (temp6)
22227 delete arg6;
22228 }
22229 return NULL;
d55e5bfc
RD
22230}
22231
22232
1bd55598
RD
22233SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22234 PyObject *resultobj = 0;
22235 wxToolbook *result = 0 ;
22236
22237 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = (wxToolbook *)new wxToolbook();
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22245 return resultobj;
22246fail:
22247 return NULL;
22248}
22249
22250
22251SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22252 PyObject *resultobj = 0;
22253 wxToolbook *arg1 = (wxToolbook *) 0 ;
22254 wxWindow *arg2 = (wxWindow *) 0 ;
22255 int arg3 ;
22256 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22257 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22258 wxSize const &arg5_defvalue = wxDefaultSize ;
22259 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22260 long arg6 = (long) 0 ;
22261 wxString const &arg7_defvalue = wxEmptyString ;
22262 wxString *arg7 = (wxString *) &arg7_defvalue ;
22263 bool result;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 void *argp2 = 0 ;
22267 int res2 = 0 ;
22268 int val3 ;
22269 int ecode3 = 0 ;
22270 wxPoint temp4 ;
22271 wxSize temp5 ;
22272 long val6 ;
22273 int ecode6 = 0 ;
22274 bool temp7 = false ;
22275 PyObject * obj0 = 0 ;
22276 PyObject * obj1 = 0 ;
22277 PyObject * obj2 = 0 ;
22278 PyObject * obj3 = 0 ;
22279 PyObject * obj4 = 0 ;
22280 PyObject * obj5 = 0 ;
22281 PyObject * obj6 = 0 ;
22282 char * kwnames[] = {
22283 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22284 };
22285
22286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22288 if (!SWIG_IsOK(res1)) {
22289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22290 }
22291 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22292 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22293 if (!SWIG_IsOK(res2)) {
22294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22295 }
22296 arg2 = reinterpret_cast< wxWindow * >(argp2);
22297 ecode3 = SWIG_AsVal_int(obj2, &val3);
22298 if (!SWIG_IsOK(ecode3)) {
22299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22300 }
22301 arg3 = static_cast< int >(val3);
22302 if (obj3) {
22303 {
22304 arg4 = &temp4;
22305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22306 }
1bd55598
RD
22307 }
22308 if (obj4) {
f20a2e1f 22309 {
1bd55598
RD
22310 arg5 = &temp5;
22311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22312 }
1bd55598
RD
22313 }
22314 if (obj5) {
22315 ecode6 = SWIG_AsVal_long(obj5, &val6);
22316 if (!SWIG_IsOK(ecode6)) {
22317 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22318 }
22319 arg6 = static_cast< long >(val6);
22320 }
22321 if (obj6) {
f20a2e1f 22322 {
1bd55598
RD
22323 arg7 = wxString_in_helper(obj6);
22324 if (arg7 == NULL) SWIG_fail;
22325 temp7 = true;
f20a2e1f 22326 }
1bd55598
RD
22327 }
22328 {
22329 PyThreadState* __tstate = wxPyBeginAllowThreads();
22330 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22331 wxPyEndAllowThreads(__tstate);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 {
22335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22336 }
22337 {
22338 if (temp7)
22339 delete arg7;
22340 }
22341 return resultobj;
22342fail:
22343 {
22344 if (temp7)
22345 delete arg7;
22346 }
22347 return NULL;
f20a2e1f
RD
22348}
22349
22350
1bd55598
RD
22351SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22352 PyObject *resultobj = 0;
22353 wxToolbook *arg1 = (wxToolbook *) 0 ;
22354 wxToolBarBase *result = 0 ;
22355 void *argp1 = 0 ;
22356 int res1 = 0 ;
22357 PyObject *swig_obj[1] ;
22358
22359 if (!args) SWIG_fail;
22360 swig_obj[0] = args;
22361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22362 if (!SWIG_IsOK(res1)) {
22363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22364 }
22365 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22366 {
22367 PyThreadState* __tstate = wxPyBeginAllowThreads();
22368 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 {
22373 resultobj = wxPyMake_wxObject(result, (bool)0);
22374 }
22375 return resultobj;
22376fail:
22377 return NULL;
d55e5bfc
RD
22378}
22379
22380
1bd55598
RD
22381SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22382 PyObject *resultobj = 0;
22383 wxToolbook *arg1 = (wxToolbook *) 0 ;
22384 void *argp1 = 0 ;
22385 int res1 = 0 ;
22386 PyObject *swig_obj[1] ;
22387
22388 if (!args) SWIG_fail;
22389 swig_obj[0] = args;
22390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22391 if (!SWIG_IsOK(res1)) {
22392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22393 }
22394 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22395 {
22396 PyThreadState* __tstate = wxPyBeginAllowThreads();
22397 (arg1)->Realize();
22398 wxPyEndAllowThreads(__tstate);
22399 if (PyErr_Occurred()) SWIG_fail;
22400 }
22401 resultobj = SWIG_Py_Void();
22402 return resultobj;
22403fail:
22404 return NULL;
22405}
22406
22407
22408SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22409 PyObject *obj;
22410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22411 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22412 return SWIG_Py_Void();
22413}
22414
22415SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22416 return SWIG_Python_InitShadowInstance(args);
22417}
22418
22419SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22420 PyObject *resultobj = 0;
22421 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22422 int arg2 = (int) 0 ;
22423 int arg3 = (int) wxNOT_FOUND ;
22424 int arg4 = (int) wxNOT_FOUND ;
22425 wxToolbookEvent *result = 0 ;
22426 int val1 ;
22427 int ecode1 = 0 ;
22428 int val2 ;
22429 int ecode2 = 0 ;
22430 int val3 ;
22431 int ecode3 = 0 ;
22432 int val4 ;
22433 int ecode4 = 0 ;
22434 PyObject * obj0 = 0 ;
22435 PyObject * obj1 = 0 ;
22436 PyObject * obj2 = 0 ;
22437 PyObject * obj3 = 0 ;
22438 char * kwnames[] = {
22439 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22440 };
22441
22442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22443 if (obj0) {
22444 ecode1 = SWIG_AsVal_int(obj0, &val1);
22445 if (!SWIG_IsOK(ecode1)) {
22446 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22447 }
22448 arg1 = static_cast< wxEventType >(val1);
22449 }
22450 if (obj1) {
22451 ecode2 = SWIG_AsVal_int(obj1, &val2);
22452 if (!SWIG_IsOK(ecode2)) {
22453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22454 }
22455 arg2 = static_cast< int >(val2);
22456 }
22457 if (obj2) {
22458 ecode3 = SWIG_AsVal_int(obj2, &val3);
22459 if (!SWIG_IsOK(ecode3)) {
22460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22461 }
22462 arg3 = static_cast< int >(val3);
22463 }
22464 if (obj3) {
22465 ecode4 = SWIG_AsVal_int(obj3, &val4);
22466 if (!SWIG_IsOK(ecode4)) {
22467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22468 }
22469 arg4 = static_cast< int >(val4);
22470 }
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
22473 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22474 wxPyEndAllowThreads(__tstate);
22475 if (PyErr_Occurred()) SWIG_fail;
22476 }
22477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22478 return resultobj;
22479fail:
22480 return NULL;
d55e5bfc
RD
22481}
22482
22483
1bd55598
RD
22484SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22485 PyObject *obj;
22486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22487 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22488 return SWIG_Py_Void();
d55e5bfc
RD
22489}
22490
1bd55598
RD
22491SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22492 return SWIG_Python_InitShadowInstance(args);
22493}
d55e5bfc 22494
1bd55598
RD
22495SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22496 PyObject *resultobj = 0;
22497 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22498 int result;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 PyObject *swig_obj[1] ;
22502
22503 if (!args) SWIG_fail;
22504 swig_obj[0] = args;
22505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22506 if (!SWIG_IsOK(res1)) {
22507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22508 }
22509 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 result = (int)(arg1)->GetId();
22513 wxPyEndAllowThreads(__tstate);
22514 if (PyErr_Occurred()) SWIG_fail;
22515 }
22516 resultobj = SWIG_From_int(static_cast< int >(result));
22517 return resultobj;
22518fail:
22519 return NULL;
d55e5bfc 22520}
1bd55598
RD
22521
22522
22523SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22524 PyObject *resultobj = 0;
22525 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22526 wxControl *result = 0 ;
22527 void *argp1 = 0 ;
22528 int res1 = 0 ;
22529 PyObject *swig_obj[1] ;
22530
22531 if (!args) SWIG_fail;
22532 swig_obj[0] = args;
22533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22534 if (!SWIG_IsOK(res1)) {
22535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22536 }
22537 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22538 {
22539 PyThreadState* __tstate = wxPyBeginAllowThreads();
22540 result = (wxControl *)(arg1)->GetControl();
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 {
22545 resultobj = wxPyMake_wxObject(result, 0);
22546 }
22547 return resultobj;
22548fail:
22549 return NULL;
d55e5bfc
RD
22550}
22551
22552
1bd55598
RD
22553SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22554 PyObject *resultobj = 0;
22555 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22556 wxToolBarBase *result = 0 ;
22557 void *argp1 = 0 ;
22558 int res1 = 0 ;
22559 PyObject *swig_obj[1] ;
22560
22561 if (!args) SWIG_fail;
22562 swig_obj[0] = args;
22563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22564 if (!SWIG_IsOK(res1)) {
22565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22566 }
22567 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22568 {
22569 PyThreadState* __tstate = wxPyBeginAllowThreads();
22570 result = (wxToolBarBase *)(arg1)->GetToolBar();
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 {
22575 resultobj = wxPyMake_wxObject(result, (bool)0);
22576 }
22577 return resultobj;
22578fail:
22579 return NULL;
d55e5bfc
RD
22580}
22581
22582
1bd55598
RD
22583SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584 PyObject *resultobj = 0;
22585 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22586 int result;
22587 void *argp1 = 0 ;
22588 int res1 = 0 ;
22589 PyObject *swig_obj[1] ;
22590
22591 if (!args) SWIG_fail;
22592 swig_obj[0] = args;
22593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22594 if (!SWIG_IsOK(res1)) {
22595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22596 }
22597 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (int)(arg1)->IsButton();
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 resultobj = SWIG_From_int(static_cast< int >(result));
22605 return resultobj;
22606fail:
22607 return NULL;
d55e5bfc
RD
22608}
22609
22610
1bd55598
RD
22611SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22612 PyObject *resultobj = 0;
22613 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22614 int result;
22615 void *argp1 = 0 ;
22616 int res1 = 0 ;
22617 PyObject *swig_obj[1] ;
22618
22619 if (!args) SWIG_fail;
22620 swig_obj[0] = args;
22621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22622 if (!SWIG_IsOK(res1)) {
22623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22624 }
22625 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22626 {
22627 PyThreadState* __tstate = wxPyBeginAllowThreads();
22628 result = (int)(arg1)->IsControl();
22629 wxPyEndAllowThreads(__tstate);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 resultobj = SWIG_From_int(static_cast< int >(result));
22633 return resultobj;
22634fail:
22635 return NULL;
d55e5bfc
RD
22636}
22637
22638
1bd55598
RD
22639SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22640 PyObject *resultobj = 0;
22641 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22642 int result;
22643 void *argp1 = 0 ;
22644 int res1 = 0 ;
22645 PyObject *swig_obj[1] ;
22646
22647 if (!args) SWIG_fail;
22648 swig_obj[0] = args;
22649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22650 if (!SWIG_IsOK(res1)) {
22651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22652 }
22653 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 result = (int)(arg1)->IsSeparator();
22657 wxPyEndAllowThreads(__tstate);
22658 if (PyErr_Occurred()) SWIG_fail;
22659 }
22660 resultobj = SWIG_From_int(static_cast< int >(result));
22661 return resultobj;
22662fail:
22663 return NULL;
d55e5bfc
RD
22664}
22665
22666
1bd55598
RD
22667SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22668 PyObject *resultobj = 0;
22669 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22670 int result;
22671 void *argp1 = 0 ;
22672 int res1 = 0 ;
22673 PyObject *swig_obj[1] ;
22674
22675 if (!args) SWIG_fail;
22676 swig_obj[0] = args;
22677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22678 if (!SWIG_IsOK(res1)) {
22679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22680 }
22681 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22682 {
22683 PyThreadState* __tstate = wxPyBeginAllowThreads();
22684 result = (int)(arg1)->GetStyle();
22685 wxPyEndAllowThreads(__tstate);
22686 if (PyErr_Occurred()) SWIG_fail;
22687 }
22688 resultobj = SWIG_From_int(static_cast< int >(result));
22689 return resultobj;
22690fail:
22691 return NULL;
d55e5bfc
RD
22692}
22693
22694
1bd55598
RD
22695SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22696 PyObject *resultobj = 0;
22697 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22698 wxItemKind result;
22699 void *argp1 = 0 ;
22700 int res1 = 0 ;
22701 PyObject *swig_obj[1] ;
22702
22703 if (!args) SWIG_fail;
22704 swig_obj[0] = args;
22705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22706 if (!SWIG_IsOK(res1)) {
22707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22708 }
22709 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22710 {
22711 PyThreadState* __tstate = wxPyBeginAllowThreads();
22712 result = (wxItemKind)(arg1)->GetKind();
22713 wxPyEndAllowThreads(__tstate);
22714 if (PyErr_Occurred()) SWIG_fail;
22715 }
22716 resultobj = SWIG_From_int(static_cast< int >(result));
22717 return resultobj;
22718fail:
22719 return NULL;
d55e5bfc
RD
22720}
22721
22722
1bd55598
RD
22723SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22724 PyObject *resultobj = 0;
22725 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22726 bool result;
22727 void *argp1 = 0 ;
22728 int res1 = 0 ;
22729 PyObject *swig_obj[1] ;
22730
22731 if (!args) SWIG_fail;
22732 swig_obj[0] = args;
22733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22734 if (!SWIG_IsOK(res1)) {
22735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22736 }
22737 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 result = (bool)(arg1)->IsEnabled();
22741 wxPyEndAllowThreads(__tstate);
22742 if (PyErr_Occurred()) SWIG_fail;
22743 }
22744 {
22745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22746 }
22747 return resultobj;
22748fail:
22749 return NULL;
d55e5bfc
RD
22750}
22751
22752
1bd55598
RD
22753SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22754 PyObject *resultobj = 0;
22755 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22756 bool result;
22757 void *argp1 = 0 ;
22758 int res1 = 0 ;
22759 PyObject *swig_obj[1] ;
22760
22761 if (!args) SWIG_fail;
22762 swig_obj[0] = args;
22763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22764 if (!SWIG_IsOK(res1)) {
22765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22766 }
22767 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 result = (bool)(arg1)->IsToggled();
22771 wxPyEndAllowThreads(__tstate);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 {
22775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22776 }
22777 return resultobj;
22778fail:
22779 return NULL;
d55e5bfc
RD
22780}
22781
22782
1bd55598
RD
22783SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22784 PyObject *resultobj = 0;
22785 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22786 bool result;
22787 void *argp1 = 0 ;
22788 int res1 = 0 ;
22789 PyObject *swig_obj[1] ;
22790
22791 if (!args) SWIG_fail;
22792 swig_obj[0] = args;
22793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22794 if (!SWIG_IsOK(res1)) {
22795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22796 }
22797 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22798 {
22799 PyThreadState* __tstate = wxPyBeginAllowThreads();
22800 result = (bool)(arg1)->CanBeToggled();
22801 wxPyEndAllowThreads(__tstate);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 }
22804 {
22805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22806 }
22807 return resultobj;
22808fail:
22809 return NULL;
d55e5bfc
RD
22810}
22811
22812
1bd55598
RD
22813SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22814 PyObject *resultobj = 0;
22815 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22816 wxBitmap *result = 0 ;
22817 void *argp1 = 0 ;
22818 int res1 = 0 ;
22819 PyObject *swig_obj[1] ;
22820
22821 if (!args) SWIG_fail;
22822 swig_obj[0] = args;
22823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22824 if (!SWIG_IsOK(res1)) {
22825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22826 }
22827 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22828 {
22829 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22830 {
1bd55598
RD
22831 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22832 result = (wxBitmap *) &_result_ref;
36ed4f51 22833 }
1bd55598
RD
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 {
22838 wxBitmap* resultptr = new wxBitmap(*result);
22839 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22840 }
22841 return resultobj;
22842fail:
22843 return NULL;
d55e5bfc
RD
22844}
22845
22846
1bd55598
RD
22847SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22848 PyObject *resultobj = 0;
22849 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22850 wxBitmap *result = 0 ;
22851 void *argp1 = 0 ;
22852 int res1 = 0 ;
22853 PyObject *swig_obj[1] ;
22854
22855 if (!args) SWIG_fail;
22856 swig_obj[0] = args;
22857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22858 if (!SWIG_IsOK(res1)) {
22859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22860 }
22861 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 22864 {
1bd55598
RD
22865 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22866 result = (wxBitmap *) &_result_ref;
d55e5bfc 22867 }
1bd55598
RD
22868 wxPyEndAllowThreads(__tstate);
22869 if (PyErr_Occurred()) SWIG_fail;
22870 }
22871 {
22872 wxBitmap* resultptr = new wxBitmap(*result);
22873 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22874 }
22875 return resultobj;
22876fail:
22877 return NULL;
d55e5bfc
RD
22878}
22879
22880
1bd55598
RD
22881SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22882 PyObject *resultobj = 0;
22883 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22884 wxBitmap result;
22885 void *argp1 = 0 ;
22886 int res1 = 0 ;
22887 PyObject *swig_obj[1] ;
22888
22889 if (!args) SWIG_fail;
22890 swig_obj[0] = args;
22891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22892 if (!SWIG_IsOK(res1)) {
22893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22894 }
22895 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 result = (arg1)->GetBitmap();
22899 wxPyEndAllowThreads(__tstate);
22900 if (PyErr_Occurred()) SWIG_fail;
22901 }
22902 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22903 return resultobj;
22904fail:
22905 return NULL;
d55e5bfc
RD
22906}
22907
22908
1bd55598
RD
22909SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22910 PyObject *resultobj = 0;
22911 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22912 wxString result;
22913 void *argp1 = 0 ;
22914 int res1 = 0 ;
22915 PyObject *swig_obj[1] ;
22916
22917 if (!args) SWIG_fail;
22918 swig_obj[0] = args;
22919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22920 if (!SWIG_IsOK(res1)) {
22921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22922 }
22923 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = (arg1)->GetLabel();
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 {
22931#if wxUSE_UNICODE
22932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22933#else
22934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22935#endif
22936 }
22937 return resultobj;
22938fail:
22939 return NULL;
d55e5bfc
RD
22940}
22941
22942
1bd55598
RD
22943SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22944 PyObject *resultobj = 0;
22945 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22946 wxString result;
22947 void *argp1 = 0 ;
22948 int res1 = 0 ;
22949 PyObject *swig_obj[1] ;
22950
22951 if (!args) SWIG_fail;
22952 swig_obj[0] = args;
22953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22954 if (!SWIG_IsOK(res1)) {
22955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22956 }
22957 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22958 {
22959 PyThreadState* __tstate = wxPyBeginAllowThreads();
22960 result = (arg1)->GetShortHelp();
22961 wxPyEndAllowThreads(__tstate);
22962 if (PyErr_Occurred()) SWIG_fail;
22963 }
22964 {
22965#if wxUSE_UNICODE
22966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22967#else
22968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22969#endif
22970 }
22971 return resultobj;
22972fail:
22973 return NULL;
d55e5bfc
RD
22974}
22975
22976
1bd55598
RD
22977SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22978 PyObject *resultobj = 0;
22979 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22980 wxString result;
22981 void *argp1 = 0 ;
22982 int res1 = 0 ;
22983 PyObject *swig_obj[1] ;
22984
22985 if (!args) SWIG_fail;
22986 swig_obj[0] = args;
22987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22988 if (!SWIG_IsOK(res1)) {
22989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22990 }
22991 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22992 {
22993 PyThreadState* __tstate = wxPyBeginAllowThreads();
22994 result = (arg1)->GetLongHelp();
22995 wxPyEndAllowThreads(__tstate);
22996 if (PyErr_Occurred()) SWIG_fail;
22997 }
22998 {
22999#if wxUSE_UNICODE
23000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23001#else
23002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23003#endif
23004 }
23005 return resultobj;
23006fail:
23007 return NULL;
23008}
23009
23010
23011SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23012 PyObject *resultobj = 0;
23013 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23014 bool arg2 ;
23015 bool result;
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 bool val2 ;
23019 int ecode2 = 0 ;
23020 PyObject * obj0 = 0 ;
23021 PyObject * obj1 = 0 ;
23022 char * kwnames[] = {
23023 (char *) "self",(char *) "enable", NULL
23024 };
23025
23026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23028 if (!SWIG_IsOK(res1)) {
23029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23030 }
23031 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23032 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23033 if (!SWIG_IsOK(ecode2)) {
23034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23035 }
23036 arg2 = static_cast< bool >(val2);
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 result = (bool)(arg1)->Enable(arg2);
23040 wxPyEndAllowThreads(__tstate);
23041 if (PyErr_Occurred()) SWIG_fail;
23042 }
23043 {
23044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23045 }
23046 return resultobj;
23047fail:
23048 return NULL;
d55e5bfc
RD
23049}
23050
23051
1bd55598
RD
23052SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23053 PyObject *resultobj = 0;
23054 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23055 void *argp1 = 0 ;
23056 int res1 = 0 ;
23057 PyObject *swig_obj[1] ;
23058
23059 if (!args) SWIG_fail;
23060 swig_obj[0] = args;
23061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23062 if (!SWIG_IsOK(res1)) {
23063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23064 }
23065 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 (arg1)->Toggle();
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 resultobj = SWIG_Py_Void();
23073 return resultobj;
23074fail:
23075 return NULL;
23076}
23077
23078
23079SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23080 PyObject *resultobj = 0;
23081 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23082 bool arg2 ;
23083 bool result;
23084 void *argp1 = 0 ;
23085 int res1 = 0 ;
23086 bool val2 ;
23087 int ecode2 = 0 ;
23088 PyObject * obj0 = 0 ;
23089 PyObject * obj1 = 0 ;
23090 char * kwnames[] = {
23091 (char *) "self",(char *) "toggle", NULL
23092 };
23093
23094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23098 }
23099 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23100 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23101 if (!SWIG_IsOK(ecode2)) {
23102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23103 }
23104 arg2 = static_cast< bool >(val2);
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (bool)(arg1)->SetToggle(arg2);
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 {
23112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23113 }
23114 return resultobj;
23115fail:
23116 return NULL;
23117}
23118
23119
23120SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23121 PyObject *resultobj = 0;
23122 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23123 wxString *arg2 = 0 ;
23124 bool result;
23125 void *argp1 = 0 ;
23126 int res1 = 0 ;
23127 bool temp2 = false ;
23128 PyObject * obj0 = 0 ;
23129 PyObject * obj1 = 0 ;
23130 char * kwnames[] = {
23131 (char *) "self",(char *) "help", NULL
23132 };
23133
23134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23136 if (!SWIG_IsOK(res1)) {
23137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23138 }
23139 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23140 {
23141 arg2 = wxString_in_helper(obj1);
23142 if (arg2 == NULL) SWIG_fail;
23143 temp2 = true;
23144 }
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23148 wxPyEndAllowThreads(__tstate);
23149 if (PyErr_Occurred()) SWIG_fail;
23150 }
23151 {
23152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23153 }
23154 {
23155 if (temp2)
23156 delete arg2;
23157 }
23158 return resultobj;
23159fail:
23160 {
23161 if (temp2)
23162 delete arg2;
23163 }
23164 return NULL;
23165}
23166
23167
23168SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23169 PyObject *resultobj = 0;
23170 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23171 wxString *arg2 = 0 ;
23172 bool result;
23173 void *argp1 = 0 ;
23174 int res1 = 0 ;
23175 bool temp2 = false ;
23176 PyObject * obj0 = 0 ;
23177 PyObject * obj1 = 0 ;
23178 char * kwnames[] = {
23179 (char *) "self",(char *) "help", NULL
23180 };
23181
23182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23184 if (!SWIG_IsOK(res1)) {
23185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23186 }
23187 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23188 {
23189 arg2 = wxString_in_helper(obj1);
23190 if (arg2 == NULL) SWIG_fail;
23191 temp2 = true;
23192 }
23193 {
23194 PyThreadState* __tstate = wxPyBeginAllowThreads();
23195 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 {
23200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23201 }
23202 {
23203 if (temp2)
23204 delete arg2;
23205 }
23206 return resultobj;
23207fail:
23208 {
23209 if (temp2)
23210 delete arg2;
23211 }
23212 return NULL;
23213}
23214
23215
23216SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23217 PyObject *resultobj = 0;
23218 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23219 wxBitmap *arg2 = 0 ;
23220 void *argp1 = 0 ;
23221 int res1 = 0 ;
23222 void *argp2 = 0 ;
23223 int res2 = 0 ;
23224 PyObject * obj0 = 0 ;
23225 PyObject * obj1 = 0 ;
23226 char * kwnames[] = {
23227 (char *) "self",(char *) "bmp", NULL
23228 };
23229
23230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23232 if (!SWIG_IsOK(res1)) {
23233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23234 }
23235 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23236 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23237 if (!SWIG_IsOK(res2)) {
23238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23239 }
23240 if (!argp2) {
23241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23242 }
23243 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23244 {
23245 PyThreadState* __tstate = wxPyBeginAllowThreads();
23246 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23247 wxPyEndAllowThreads(__tstate);
23248 if (PyErr_Occurred()) SWIG_fail;
23249 }
23250 resultobj = SWIG_Py_Void();
23251 return resultobj;
23252fail:
23253 return NULL;
23254}
23255
23256
23257SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23258 PyObject *resultobj = 0;
23259 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23260 wxBitmap *arg2 = 0 ;
23261 void *argp1 = 0 ;
23262 int res1 = 0 ;
23263 void *argp2 = 0 ;
23264 int res2 = 0 ;
23265 PyObject * obj0 = 0 ;
23266 PyObject * obj1 = 0 ;
23267 char * kwnames[] = {
23268 (char *) "self",(char *) "bmp", NULL
23269 };
23270
23271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23273 if (!SWIG_IsOK(res1)) {
23274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23275 }
23276 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23278 if (!SWIG_IsOK(res2)) {
23279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23280 }
23281 if (!argp2) {
23282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23283 }
23284 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23285 {
23286 PyThreadState* __tstate = wxPyBeginAllowThreads();
23287 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23288 wxPyEndAllowThreads(__tstate);
23289 if (PyErr_Occurred()) SWIG_fail;
23290 }
23291 resultobj = SWIG_Py_Void();
23292 return resultobj;
23293fail:
23294 return NULL;
23295}
23296
23297
23298SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23299 PyObject *resultobj = 0;
23300 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23301 wxString *arg2 = 0 ;
23302 void *argp1 = 0 ;
23303 int res1 = 0 ;
23304 bool temp2 = false ;
23305 PyObject * obj0 = 0 ;
23306 PyObject * obj1 = 0 ;
23307 char * kwnames[] = {
23308 (char *) "self",(char *) "label", NULL
23309 };
23310
23311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23313 if (!SWIG_IsOK(res1)) {
23314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23315 }
23316 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23317 {
23318 arg2 = wxString_in_helper(obj1);
23319 if (arg2 == NULL) SWIG_fail;
23320 temp2 = true;
23321 }
23322 {
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 (arg1)->SetLabel((wxString const &)*arg2);
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 resultobj = SWIG_Py_Void();
23329 {
23330 if (temp2)
23331 delete arg2;
23332 }
23333 return resultobj;
23334fail:
23335 {
23336 if (temp2)
23337 delete arg2;
23338 }
23339 return NULL;
d55e5bfc
RD
23340}
23341
23342
1bd55598
RD
23343SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23344 PyObject *resultobj = 0;
23345 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23346 void *argp1 = 0 ;
23347 int res1 = 0 ;
23348 PyObject *swig_obj[1] ;
23349
23350 if (!args) SWIG_fail;
23351 swig_obj[0] = args;
23352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23353 if (!SWIG_IsOK(res1)) {
23354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23355 }
23356 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23357 {
23358 PyThreadState* __tstate = wxPyBeginAllowThreads();
23359 (arg1)->Detach();
23360 wxPyEndAllowThreads(__tstate);
23361 if (PyErr_Occurred()) SWIG_fail;
23362 }
23363 resultobj = SWIG_Py_Void();
23364 return resultobj;
23365fail:
23366 return NULL;
23367}
23368
23369
23370SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23371 PyObject *resultobj = 0;
23372 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23373 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23374 void *argp1 = 0 ;
23375 int res1 = 0 ;
23376 void *argp2 = 0 ;
23377 int res2 = 0 ;
23378 PyObject * obj0 = 0 ;
23379 PyObject * obj1 = 0 ;
23380 char * kwnames[] = {
23381 (char *) "self",(char *) "tbar", NULL
23382 };
23383
23384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23386 if (!SWIG_IsOK(res1)) {
23387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23388 }
23389 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23390 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23391 if (!SWIG_IsOK(res2)) {
23392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23393 }
23394 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23395 {
23396 PyThreadState* __tstate = wxPyBeginAllowThreads();
23397 (arg1)->Attach(arg2);
23398 wxPyEndAllowThreads(__tstate);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 }
23401 resultobj = SWIG_Py_Void();
23402 return resultobj;
23403fail:
23404 return NULL;
d55e5bfc
RD
23405}
23406
23407
1bd55598
RD
23408SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23409 PyObject *resultobj = 0;
23410 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23411 PyObject *result = 0 ;
23412 void *argp1 = 0 ;
23413 int res1 = 0 ;
23414 PyObject *swig_obj[1] ;
23415
23416 if (!args) SWIG_fail;
23417 swig_obj[0] = args;
23418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23419 if (!SWIG_IsOK(res1)) {
23420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23421 }
23422 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23423 {
23424 PyThreadState* __tstate = wxPyBeginAllowThreads();
23425 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
23429 resultobj = result;
23430 return resultobj;
23431fail:
23432 return NULL;
23433}
23434
23435
23436SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23437 PyObject *resultobj = 0;
23438 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23439 PyObject *arg2 = (PyObject *) 0 ;
23440 void *argp1 = 0 ;
23441 int res1 = 0 ;
23442 PyObject * obj0 = 0 ;
23443 PyObject * obj1 = 0 ;
23444 char * kwnames[] = {
23445 (char *) "self",(char *) "clientData", NULL
23446 };
23447
23448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23450 if (!SWIG_IsOK(res1)) {
23451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23452 }
23453 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23454 arg2 = obj1;
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 wxToolBarToolBase_SetClientData(arg1,arg2);
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 resultobj = SWIG_Py_Void();
23462 return resultobj;
23463fail:
23464 return NULL;
23465}
23466
23467
23468SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23469 PyObject *obj;
23470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23471 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23472 return SWIG_Py_Void();
23473}
23474
23475SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23476 PyObject *resultobj = 0;
23477 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23478 int arg2 ;
23479 wxString *arg3 = 0 ;
23480 wxBitmap *arg4 = 0 ;
23481 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23482 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23483 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23484 wxString const &arg7_defvalue = wxPyEmptyString ;
23485 wxString *arg7 = (wxString *) &arg7_defvalue ;
23486 wxString const &arg8_defvalue = wxPyEmptyString ;
23487 wxString *arg8 = (wxString *) &arg8_defvalue ;
23488 PyObject *arg9 = (PyObject *) NULL ;
23489 wxToolBarToolBase *result = 0 ;
23490 void *argp1 = 0 ;
23491 int res1 = 0 ;
23492 int val2 ;
23493 int ecode2 = 0 ;
23494 bool temp3 = false ;
23495 void *argp4 = 0 ;
23496 int res4 = 0 ;
23497 void *argp5 = 0 ;
23498 int res5 = 0 ;
23499 int val6 ;
23500 int ecode6 = 0 ;
23501 bool temp7 = false ;
23502 bool temp8 = false ;
23503 PyObject * obj0 = 0 ;
23504 PyObject * obj1 = 0 ;
23505 PyObject * obj2 = 0 ;
23506 PyObject * obj3 = 0 ;
23507 PyObject * obj4 = 0 ;
23508 PyObject * obj5 = 0 ;
23509 PyObject * obj6 = 0 ;
23510 PyObject * obj7 = 0 ;
23511 PyObject * obj8 = 0 ;
23512 char * kwnames[] = {
23513 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23514 };
23515
23516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23520 }
23521 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23522 ecode2 = SWIG_AsVal_int(obj1, &val2);
23523 if (!SWIG_IsOK(ecode2)) {
23524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23525 }
23526 arg2 = static_cast< int >(val2);
23527 {
23528 arg3 = wxString_in_helper(obj2);
23529 if (arg3 == NULL) SWIG_fail;
23530 temp3 = true;
23531 }
23532 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23533 if (!SWIG_IsOK(res4)) {
23534 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23535 }
23536 if (!argp4) {
23537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23538 }
23539 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23540 if (obj4) {
23541 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23542 if (!SWIG_IsOK(res5)) {
23543 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23544 }
1bd55598
RD
23545 if (!argp5) {
23546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23547 }
1bd55598
RD
23548 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23549 }
23550 if (obj5) {
23551 ecode6 = SWIG_AsVal_int(obj5, &val6);
23552 if (!SWIG_IsOK(ecode6)) {
23553 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23554 }
23555 arg6 = static_cast< wxItemKind >(val6);
23556 }
23557 if (obj6) {
f20a2e1f 23558 {
1bd55598
RD
23559 arg7 = wxString_in_helper(obj6);
23560 if (arg7 == NULL) SWIG_fail;
23561 temp7 = true;
f20a2e1f 23562 }
1bd55598
RD
23563 }
23564 if (obj7) {
f20a2e1f 23565 {
1bd55598
RD
23566 arg8 = wxString_in_helper(obj7);
23567 if (arg8 == NULL) SWIG_fail;
23568 temp8 = true;
d55e5bfc 23569 }
1bd55598
RD
23570 }
23571 if (obj8) {
23572 arg9 = obj8;
23573 }
23574 {
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 {
23581 resultobj = wxPyMake_wxObject(result, (bool)0);
23582 }
23583 {
23584 if (temp3)
23585 delete arg3;
23586 }
23587 {
23588 if (temp7)
23589 delete arg7;
23590 }
23591 {
23592 if (temp8)
23593 delete arg8;
23594 }
23595 return resultobj;
23596fail:
23597 {
23598 if (temp3)
23599 delete arg3;
23600 }
23601 {
23602 if (temp7)
23603 delete arg7;
23604 }
23605 {
23606 if (temp8)
23607 delete arg8;
23608 }
23609 return NULL;
23610}
23611
23612
23613SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj = 0;
23615 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23616 size_t arg2 ;
23617 int arg3 ;
23618 wxString *arg4 = 0 ;
23619 wxBitmap *arg5 = 0 ;
23620 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23621 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23622 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23623 wxString const &arg8_defvalue = wxPyEmptyString ;
23624 wxString *arg8 = (wxString *) &arg8_defvalue ;
23625 wxString const &arg9_defvalue = wxPyEmptyString ;
23626 wxString *arg9 = (wxString *) &arg9_defvalue ;
23627 PyObject *arg10 = (PyObject *) NULL ;
23628 wxToolBarToolBase *result = 0 ;
23629 void *argp1 = 0 ;
23630 int res1 = 0 ;
23631 size_t val2 ;
23632 int ecode2 = 0 ;
23633 int val3 ;
23634 int ecode3 = 0 ;
23635 bool temp4 = false ;
23636 void *argp5 = 0 ;
23637 int res5 = 0 ;
23638 void *argp6 = 0 ;
23639 int res6 = 0 ;
23640 int val7 ;
23641 int ecode7 = 0 ;
23642 bool temp8 = false ;
23643 bool temp9 = false ;
23644 PyObject * obj0 = 0 ;
23645 PyObject * obj1 = 0 ;
23646 PyObject * obj2 = 0 ;
23647 PyObject * obj3 = 0 ;
23648 PyObject * obj4 = 0 ;
23649 PyObject * obj5 = 0 ;
23650 PyObject * obj6 = 0 ;
23651 PyObject * obj7 = 0 ;
23652 PyObject * obj8 = 0 ;
23653 PyObject * obj9 = 0 ;
23654 char * kwnames[] = {
23655 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23656 };
23657
23658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23662 }
23663 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23664 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23665 if (!SWIG_IsOK(ecode2)) {
23666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23667 }
23668 arg2 = static_cast< size_t >(val2);
23669 ecode3 = SWIG_AsVal_int(obj2, &val3);
23670 if (!SWIG_IsOK(ecode3)) {
23671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23672 }
23673 arg3 = static_cast< int >(val3);
23674 {
23675 arg4 = wxString_in_helper(obj3);
23676 if (arg4 == NULL) SWIG_fail;
23677 temp4 = true;
23678 }
23679 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23680 if (!SWIG_IsOK(res5)) {
23681 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23682 }
23683 if (!argp5) {
23684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23685 }
23686 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23687 if (obj5) {
23688 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23689 if (!SWIG_IsOK(res6)) {
23690 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23691 }
1bd55598
RD
23692 if (!argp6) {
23693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23694 }
1bd55598
RD
23695 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23696 }
23697 if (obj6) {
23698 ecode7 = SWIG_AsVal_int(obj6, &val7);
23699 if (!SWIG_IsOK(ecode7)) {
23700 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23701 }
23702 arg7 = static_cast< wxItemKind >(val7);
23703 }
23704 if (obj7) {
d55e5bfc 23705 {
1bd55598
RD
23706 arg8 = wxString_in_helper(obj7);
23707 if (arg8 == NULL) SWIG_fail;
23708 temp8 = true;
d55e5bfc 23709 }
1bd55598
RD
23710 }
23711 if (obj8) {
d55e5bfc 23712 {
1bd55598
RD
23713 arg9 = wxString_in_helper(obj8);
23714 if (arg9 == NULL) SWIG_fail;
23715 temp9 = true;
d55e5bfc 23716 }
1bd55598
RD
23717 }
23718 if (obj9) {
23719 arg10 = obj9;
23720 }
23721 {
23722 PyThreadState* __tstate = wxPyBeginAllowThreads();
23723 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 {
23728 resultobj = wxPyMake_wxObject(result, (bool)0);
23729 }
23730 {
23731 if (temp4)
23732 delete arg4;
23733 }
23734 {
23735 if (temp8)
23736 delete arg8;
23737 }
23738 {
23739 if (temp9)
23740 delete arg9;
23741 }
23742 return resultobj;
23743fail:
23744 {
23745 if (temp4)
23746 delete arg4;
23747 }
23748 {
23749 if (temp8)
23750 delete arg8;
23751 }
23752 {
23753 if (temp9)
23754 delete arg9;
23755 }
23756 return NULL;
23757}
23758
23759
23760SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj = 0;
23762 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23763 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23764 wxToolBarToolBase *result = 0 ;
23765 void *argp1 = 0 ;
23766 int res1 = 0 ;
23767 void *argp2 = 0 ;
23768 int res2 = 0 ;
23769 PyObject * obj0 = 0 ;
23770 PyObject * obj1 = 0 ;
23771 char * kwnames[] = {
23772 (char *) "self",(char *) "tool", NULL
23773 };
23774
23775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23777 if (!SWIG_IsOK(res1)) {
23778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23779 }
23780 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23782 if (!SWIG_IsOK(res2)) {
23783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23784 }
23785 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 {
23793 resultobj = wxPyMake_wxObject(result, (bool)0);
23794 }
23795 return resultobj;
23796fail:
23797 return NULL;
23798}
23799
23800
23801SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23802 PyObject *resultobj = 0;
23803 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23804 size_t arg2 ;
23805 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23806 wxToolBarToolBase *result = 0 ;
23807 void *argp1 = 0 ;
23808 int res1 = 0 ;
23809 size_t val2 ;
23810 int ecode2 = 0 ;
23811 void *argp3 = 0 ;
23812 int res3 = 0 ;
23813 PyObject * obj0 = 0 ;
23814 PyObject * obj1 = 0 ;
23815 PyObject * obj2 = 0 ;
23816 char * kwnames[] = {
23817 (char *) "self",(char *) "pos",(char *) "tool", NULL
23818 };
23819
23820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23824 }
23825 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23826 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23827 if (!SWIG_IsOK(ecode2)) {
23828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23829 }
23830 arg2 = static_cast< size_t >(val2);
23831 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23832 if (!SWIG_IsOK(res3)) {
23833 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23834 }
23835 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 {
23843 resultobj = wxPyMake_wxObject(result, (bool)0);
23844 }
23845 return resultobj;
23846fail:
23847 return NULL;
23848}
23849
23850
23851SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj = 0;
23853 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23854 wxControl *arg2 = (wxControl *) 0 ;
23855 wxToolBarToolBase *result = 0 ;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 void *argp2 = 0 ;
23859 int res2 = 0 ;
23860 PyObject * obj0 = 0 ;
23861 PyObject * obj1 = 0 ;
23862 char * kwnames[] = {
23863 (char *) "self",(char *) "control", NULL
23864 };
23865
23866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23868 if (!SWIG_IsOK(res1)) {
23869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23870 }
23871 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23873 if (!SWIG_IsOK(res2)) {
23874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23875 }
23876 arg2 = reinterpret_cast< wxControl * >(argp2);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 {
23884 resultobj = wxPyMake_wxObject(result, (bool)0);
23885 }
23886 return resultobj;
23887fail:
23888 return NULL;
23889}
23890
23891
23892SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23893 PyObject *resultobj = 0;
23894 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23895 size_t arg2 ;
23896 wxControl *arg3 = (wxControl *) 0 ;
23897 wxToolBarToolBase *result = 0 ;
23898 void *argp1 = 0 ;
23899 int res1 = 0 ;
23900 size_t val2 ;
23901 int ecode2 = 0 ;
23902 void *argp3 = 0 ;
23903 int res3 = 0 ;
23904 PyObject * obj0 = 0 ;
23905 PyObject * obj1 = 0 ;
23906 PyObject * obj2 = 0 ;
23907 char * kwnames[] = {
23908 (char *) "self",(char *) "pos",(char *) "control", NULL
23909 };
23910
23911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23915 }
23916 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23917 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23918 if (!SWIG_IsOK(ecode2)) {
23919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23920 }
23921 arg2 = static_cast< size_t >(val2);
23922 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23923 if (!SWIG_IsOK(res3)) {
23924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23925 }
23926 arg3 = reinterpret_cast< wxControl * >(argp3);
23927 {
23928 PyThreadState* __tstate = wxPyBeginAllowThreads();
23929 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23930 wxPyEndAllowThreads(__tstate);
23931 if (PyErr_Occurred()) SWIG_fail;
23932 }
23933 {
23934 resultobj = wxPyMake_wxObject(result, (bool)0);
23935 }
23936 return resultobj;
23937fail:
23938 return NULL;
23939}
23940
23941
23942SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23943 PyObject *resultobj = 0;
23944 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23945 int arg2 ;
23946 wxControl *result = 0 ;
23947 void *argp1 = 0 ;
23948 int res1 = 0 ;
23949 int val2 ;
23950 int ecode2 = 0 ;
23951 PyObject * obj0 = 0 ;
23952 PyObject * obj1 = 0 ;
23953 char * kwnames[] = {
23954 (char *) "self",(char *) "id", NULL
23955 };
23956
23957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23959 if (!SWIG_IsOK(res1)) {
23960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23961 }
23962 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23963 ecode2 = SWIG_AsVal_int(obj1, &val2);
23964 if (!SWIG_IsOK(ecode2)) {
23965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23966 }
23967 arg2 = static_cast< int >(val2);
23968 {
23969 PyThreadState* __tstate = wxPyBeginAllowThreads();
23970 result = (wxControl *)(arg1)->FindControl(arg2);
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 {
23975 resultobj = wxPyMake_wxObject(result, 0);
23976 }
23977 return resultobj;
23978fail:
23979 return NULL;
d55e5bfc
RD
23980}
23981
23982
1bd55598
RD
23983SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23984 PyObject *resultobj = 0;
23985 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23986 wxToolBarToolBase *result = 0 ;
23987 void *argp1 = 0 ;
23988 int res1 = 0 ;
23989 PyObject *swig_obj[1] ;
23990
23991 if (!args) SWIG_fail;
23992 swig_obj[0] = args;
23993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23994 if (!SWIG_IsOK(res1)) {
23995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23996 }
23997 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23998 {
23999 PyThreadState* __tstate = wxPyBeginAllowThreads();
24000 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 {
24005 resultobj = wxPyMake_wxObject(result, (bool)0);
24006 }
24007 return resultobj;
24008fail:
24009 return NULL;
24010}
24011
24012
24013SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24014 PyObject *resultobj = 0;
24015 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24016 size_t arg2 ;
24017 wxToolBarToolBase *result = 0 ;
24018 void *argp1 = 0 ;
24019 int res1 = 0 ;
24020 size_t val2 ;
24021 int ecode2 = 0 ;
24022 PyObject * obj0 = 0 ;
24023 PyObject * obj1 = 0 ;
24024 char * kwnames[] = {
24025 (char *) "self",(char *) "pos", NULL
24026 };
24027
24028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24030 if (!SWIG_IsOK(res1)) {
24031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24032 }
24033 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24034 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24035 if (!SWIG_IsOK(ecode2)) {
24036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24037 }
24038 arg2 = static_cast< size_t >(val2);
24039 {
24040 PyThreadState* __tstate = wxPyBeginAllowThreads();
24041 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24042 wxPyEndAllowThreads(__tstate);
24043 if (PyErr_Occurred()) SWIG_fail;
24044 }
24045 {
24046 resultobj = wxPyMake_wxObject(result, (bool)0);
24047 }
24048 return resultobj;
24049fail:
24050 return NULL;
24051}
24052
24053
24054SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24055 PyObject *resultobj = 0;
24056 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24057 int arg2 ;
24058 wxToolBarToolBase *result = 0 ;
24059 void *argp1 = 0 ;
24060 int res1 = 0 ;
24061 int val2 ;
24062 int ecode2 = 0 ;
24063 PyObject * obj0 = 0 ;
24064 PyObject * obj1 = 0 ;
24065 char * kwnames[] = {
24066 (char *) "self",(char *) "id", NULL
24067 };
24068
24069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24071 if (!SWIG_IsOK(res1)) {
24072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24073 }
24074 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24075 ecode2 = SWIG_AsVal_int(obj1, &val2);
24076 if (!SWIG_IsOK(ecode2)) {
24077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24078 }
24079 arg2 = static_cast< int >(val2);
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 {
24087 resultobj = wxPyMake_wxObject(result, (bool)0);
24088 }
24089 return resultobj;
24090fail:
24091 return NULL;
24092}
24093
24094
24095SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24096 PyObject *resultobj = 0;
24097 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24098 size_t arg2 ;
24099 bool result;
24100 void *argp1 = 0 ;
24101 int res1 = 0 ;
24102 size_t val2 ;
24103 int ecode2 = 0 ;
24104 PyObject * obj0 = 0 ;
24105 PyObject * obj1 = 0 ;
24106 char * kwnames[] = {
24107 (char *) "self",(char *) "pos", NULL
24108 };
24109
24110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24112 if (!SWIG_IsOK(res1)) {
24113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24114 }
24115 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24116 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24117 if (!SWIG_IsOK(ecode2)) {
24118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24119 }
24120 arg2 = static_cast< size_t >(val2);
24121 {
24122 PyThreadState* __tstate = wxPyBeginAllowThreads();
24123 result = (bool)(arg1)->DeleteToolByPos(arg2);
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 {
24128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24129 }
24130 return resultobj;
24131fail:
24132 return NULL;
24133}
24134
24135
24136SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24137 PyObject *resultobj = 0;
24138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24139 int arg2 ;
24140 bool result;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 int val2 ;
24144 int ecode2 = 0 ;
24145 PyObject * obj0 = 0 ;
24146 PyObject * obj1 = 0 ;
24147 char * kwnames[] = {
24148 (char *) "self",(char *) "id", NULL
24149 };
24150
24151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24153 if (!SWIG_IsOK(res1)) {
24154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24155 }
24156 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24157 ecode2 = SWIG_AsVal_int(obj1, &val2);
24158 if (!SWIG_IsOK(ecode2)) {
24159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24160 }
24161 arg2 = static_cast< int >(val2);
24162 {
24163 PyThreadState* __tstate = wxPyBeginAllowThreads();
24164 result = (bool)(arg1)->DeleteTool(arg2);
24165 wxPyEndAllowThreads(__tstate);
24166 if (PyErr_Occurred()) SWIG_fail;
24167 }
24168 {
24169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24170 }
24171 return resultobj;
24172fail:
24173 return NULL;
d55e5bfc
RD
24174}
24175
24176
1bd55598
RD
24177SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24178 PyObject *resultobj = 0;
24179 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24180 void *argp1 = 0 ;
24181 int res1 = 0 ;
24182 PyObject *swig_obj[1] ;
24183
24184 if (!args) SWIG_fail;
24185 swig_obj[0] = args;
24186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24187 if (!SWIG_IsOK(res1)) {
24188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24189 }
24190 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24191 {
24192 PyThreadState* __tstate = wxPyBeginAllowThreads();
24193 (arg1)->ClearTools();
24194 wxPyEndAllowThreads(__tstate);
24195 if (PyErr_Occurred()) SWIG_fail;
24196 }
24197 resultobj = SWIG_Py_Void();
24198 return resultobj;
24199fail:
24200 return NULL;
d55e5bfc
RD
24201}
24202
24203
1bd55598
RD
24204SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24205 PyObject *resultobj = 0;
24206 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24207 bool result;
24208 void *argp1 = 0 ;
24209 int res1 = 0 ;
24210 PyObject *swig_obj[1] ;
24211
24212 if (!args) SWIG_fail;
24213 swig_obj[0] = args;
24214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24215 if (!SWIG_IsOK(res1)) {
24216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24217 }
24218 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24219 {
24220 PyThreadState* __tstate = wxPyBeginAllowThreads();
24221 result = (bool)(arg1)->Realize();
24222 wxPyEndAllowThreads(__tstate);
24223 if (PyErr_Occurred()) SWIG_fail;
24224 }
24225 {
24226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24227 }
24228 return resultobj;
24229fail:
24230 return NULL;
24231}
24232
24233
24234SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24235 PyObject *resultobj = 0;
24236 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24237 int arg2 ;
24238 bool arg3 ;
24239 void *argp1 = 0 ;
24240 int res1 = 0 ;
24241 int val2 ;
24242 int ecode2 = 0 ;
24243 bool val3 ;
24244 int ecode3 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 PyObject * obj2 = 0 ;
24248 char * kwnames[] = {
24249 (char *) "self",(char *) "id",(char *) "enable", NULL
24250 };
24251
24252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24254 if (!SWIG_IsOK(res1)) {
24255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24256 }
24257 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24258 ecode2 = SWIG_AsVal_int(obj1, &val2);
24259 if (!SWIG_IsOK(ecode2)) {
24260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24261 }
24262 arg2 = static_cast< int >(val2);
24263 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24264 if (!SWIG_IsOK(ecode3)) {
24265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24266 }
24267 arg3 = static_cast< bool >(val3);
24268 {
24269 PyThreadState* __tstate = wxPyBeginAllowThreads();
24270 (arg1)->EnableTool(arg2,arg3);
24271 wxPyEndAllowThreads(__tstate);
24272 if (PyErr_Occurred()) SWIG_fail;
24273 }
24274 resultobj = SWIG_Py_Void();
24275 return resultobj;
24276fail:
24277 return NULL;
24278}
24279
24280
24281SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24282 PyObject *resultobj = 0;
24283 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24284 int arg2 ;
24285 bool arg3 ;
24286 void *argp1 = 0 ;
24287 int res1 = 0 ;
24288 int val2 ;
24289 int ecode2 = 0 ;
24290 bool val3 ;
24291 int ecode3 = 0 ;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24294 PyObject * obj2 = 0 ;
24295 char * kwnames[] = {
24296 (char *) "self",(char *) "id",(char *) "toggle", NULL
24297 };
24298
24299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24301 if (!SWIG_IsOK(res1)) {
24302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24303 }
24304 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24305 ecode2 = SWIG_AsVal_int(obj1, &val2);
24306 if (!SWIG_IsOK(ecode2)) {
24307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24308 }
24309 arg2 = static_cast< int >(val2);
24310 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24311 if (!SWIG_IsOK(ecode3)) {
24312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24313 }
24314 arg3 = static_cast< bool >(val3);
24315 {
24316 PyThreadState* __tstate = wxPyBeginAllowThreads();
24317 (arg1)->ToggleTool(arg2,arg3);
24318 wxPyEndAllowThreads(__tstate);
24319 if (PyErr_Occurred()) SWIG_fail;
24320 }
24321 resultobj = SWIG_Py_Void();
24322 return resultobj;
24323fail:
24324 return NULL;
24325}
24326
24327
24328SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj = 0;
24330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24331 int arg2 ;
24332 bool arg3 ;
24333 void *argp1 = 0 ;
24334 int res1 = 0 ;
24335 int val2 ;
24336 int ecode2 = 0 ;
24337 bool val3 ;
24338 int ecode3 = 0 ;
24339 PyObject * obj0 = 0 ;
24340 PyObject * obj1 = 0 ;
24341 PyObject * obj2 = 0 ;
24342 char * kwnames[] = {
24343 (char *) "self",(char *) "id",(char *) "toggle", NULL
24344 };
24345
24346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24348 if (!SWIG_IsOK(res1)) {
24349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24350 }
24351 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24352 ecode2 = SWIG_AsVal_int(obj1, &val2);
24353 if (!SWIG_IsOK(ecode2)) {
24354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24355 }
24356 arg2 = static_cast< int >(val2);
24357 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24358 if (!SWIG_IsOK(ecode3)) {
24359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24360 }
24361 arg3 = static_cast< bool >(val3);
24362 {
24363 PyThreadState* __tstate = wxPyBeginAllowThreads();
24364 (arg1)->SetToggle(arg2,arg3);
24365 wxPyEndAllowThreads(__tstate);
24366 if (PyErr_Occurred()) SWIG_fail;
24367 }
24368 resultobj = SWIG_Py_Void();
24369 return resultobj;
24370fail:
24371 return NULL;
24372}
24373
24374
24375SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24376 PyObject *resultobj = 0;
24377 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24378 int arg2 ;
24379 PyObject *result = 0 ;
24380 void *argp1 = 0 ;
24381 int res1 = 0 ;
24382 int val2 ;
24383 int ecode2 = 0 ;
24384 PyObject * obj0 = 0 ;
24385 PyObject * obj1 = 0 ;
24386 char * kwnames[] = {
24387 (char *) "self",(char *) "id", NULL
24388 };
24389
24390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24392 if (!SWIG_IsOK(res1)) {
24393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24394 }
24395 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24396 ecode2 = SWIG_AsVal_int(obj1, &val2);
24397 if (!SWIG_IsOK(ecode2)) {
24398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24399 }
24400 arg2 = static_cast< int >(val2);
24401 {
24402 PyThreadState* __tstate = wxPyBeginAllowThreads();
24403 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24404 wxPyEndAllowThreads(__tstate);
24405 if (PyErr_Occurred()) SWIG_fail;
24406 }
24407 resultobj = result;
24408 return resultobj;
24409fail:
24410 return NULL;
24411}
24412
24413
24414SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24415 PyObject *resultobj = 0;
24416 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24417 int arg2 ;
24418 PyObject *arg3 = (PyObject *) 0 ;
24419 void *argp1 = 0 ;
24420 int res1 = 0 ;
24421 int val2 ;
24422 int ecode2 = 0 ;
24423 PyObject * obj0 = 0 ;
24424 PyObject * obj1 = 0 ;
24425 PyObject * obj2 = 0 ;
24426 char * kwnames[] = {
24427 (char *) "self",(char *) "id",(char *) "clientData", NULL
24428 };
24429
24430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24432 if (!SWIG_IsOK(res1)) {
24433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24434 }
24435 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24436 ecode2 = SWIG_AsVal_int(obj1, &val2);
24437 if (!SWIG_IsOK(ecode2)) {
24438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24439 }
24440 arg2 = static_cast< int >(val2);
24441 arg3 = obj2;
24442 {
24443 PyThreadState* __tstate = wxPyBeginAllowThreads();
24444 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24445 wxPyEndAllowThreads(__tstate);
24446 if (PyErr_Occurred()) SWIG_fail;
24447 }
24448 resultobj = SWIG_Py_Void();
24449 return resultobj;
24450fail:
24451 return NULL;
24452}
24453
24454
24455SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24456 PyObject *resultobj = 0;
24457 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24458 int arg2 ;
24459 int result;
24460 void *argp1 = 0 ;
24461 int res1 = 0 ;
24462 int val2 ;
24463 int ecode2 = 0 ;
24464 PyObject * obj0 = 0 ;
24465 PyObject * obj1 = 0 ;
24466 char * kwnames[] = {
24467 (char *) "self",(char *) "id", NULL
24468 };
24469
24470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24472 if (!SWIG_IsOK(res1)) {
24473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24474 }
24475 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24476 ecode2 = SWIG_AsVal_int(obj1, &val2);
24477 if (!SWIG_IsOK(ecode2)) {
24478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24479 }
24480 arg2 = static_cast< int >(val2);
24481 {
24482 PyThreadState* __tstate = wxPyBeginAllowThreads();
24483 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24484 wxPyEndAllowThreads(__tstate);
24485 if (PyErr_Occurred()) SWIG_fail;
24486 }
24487 resultobj = SWIG_From_int(static_cast< int >(result));
24488 return resultobj;
24489fail:
24490 return NULL;
24491}
24492
24493
24494SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24495 PyObject *resultobj = 0;
24496 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24497 int arg2 ;
24498 bool result;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 int val2 ;
24502 int ecode2 = 0 ;
24503 PyObject * obj0 = 0 ;
24504 PyObject * obj1 = 0 ;
24505 char * kwnames[] = {
24506 (char *) "self",(char *) "id", NULL
24507 };
24508
24509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24511 if (!SWIG_IsOK(res1)) {
24512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24513 }
24514 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24515 ecode2 = SWIG_AsVal_int(obj1, &val2);
24516 if (!SWIG_IsOK(ecode2)) {
24517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24518 }
24519 arg2 = static_cast< int >(val2);
24520 {
24521 PyThreadState* __tstate = wxPyBeginAllowThreads();
24522 result = (bool)(arg1)->GetToolState(arg2);
24523 wxPyEndAllowThreads(__tstate);
24524 if (PyErr_Occurred()) SWIG_fail;
24525 }
24526 {
24527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24528 }
24529 return resultobj;
24530fail:
24531 return NULL;
24532}
24533
24534
24535SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24536 PyObject *resultobj = 0;
24537 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24538 int arg2 ;
24539 bool result;
24540 void *argp1 = 0 ;
24541 int res1 = 0 ;
24542 int val2 ;
24543 int ecode2 = 0 ;
24544 PyObject * obj0 = 0 ;
24545 PyObject * obj1 = 0 ;
24546 char * kwnames[] = {
24547 (char *) "self",(char *) "id", NULL
24548 };
24549
24550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24552 if (!SWIG_IsOK(res1)) {
24553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24554 }
24555 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24556 ecode2 = SWIG_AsVal_int(obj1, &val2);
24557 if (!SWIG_IsOK(ecode2)) {
24558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24559 }
24560 arg2 = static_cast< int >(val2);
24561 {
24562 PyThreadState* __tstate = wxPyBeginAllowThreads();
24563 result = (bool)(arg1)->GetToolEnabled(arg2);
24564 wxPyEndAllowThreads(__tstate);
24565 if (PyErr_Occurred()) SWIG_fail;
24566 }
24567 {
24568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24569 }
24570 return resultobj;
24571fail:
24572 return NULL;
24573}
24574
24575
24576SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24577 PyObject *resultobj = 0;
24578 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24579 int arg2 ;
24580 wxString *arg3 = 0 ;
24581 void *argp1 = 0 ;
24582 int res1 = 0 ;
24583 int val2 ;
24584 int ecode2 = 0 ;
24585 bool temp3 = false ;
24586 PyObject * obj0 = 0 ;
24587 PyObject * obj1 = 0 ;
24588 PyObject * obj2 = 0 ;
24589 char * kwnames[] = {
24590 (char *) "self",(char *) "id",(char *) "helpString", NULL
24591 };
24592
24593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24595 if (!SWIG_IsOK(res1)) {
24596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24597 }
24598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24599 ecode2 = SWIG_AsVal_int(obj1, &val2);
24600 if (!SWIG_IsOK(ecode2)) {
24601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24602 }
24603 arg2 = static_cast< int >(val2);
24604 {
24605 arg3 = wxString_in_helper(obj2);
24606 if (arg3 == NULL) SWIG_fail;
24607 temp3 = true;
24608 }
24609 {
24610 PyThreadState* __tstate = wxPyBeginAllowThreads();
24611 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 resultobj = SWIG_Py_Void();
24616 {
24617 if (temp3)
24618 delete arg3;
24619 }
24620 return resultobj;
24621fail:
24622 {
24623 if (temp3)
24624 delete arg3;
24625 }
24626 return NULL;
24627}
24628
24629
24630SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = 0;
24632 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24633 int arg2 ;
24634 wxString result;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 int val2 ;
24638 int ecode2 = 0 ;
24639 PyObject * obj0 = 0 ;
24640 PyObject * obj1 = 0 ;
24641 char * kwnames[] = {
24642 (char *) "self",(char *) "id", NULL
24643 };
24644
24645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24647 if (!SWIG_IsOK(res1)) {
24648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24649 }
24650 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24651 ecode2 = SWIG_AsVal_int(obj1, &val2);
24652 if (!SWIG_IsOK(ecode2)) {
24653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24654 }
24655 arg2 = static_cast< int >(val2);
24656 {
24657 PyThreadState* __tstate = wxPyBeginAllowThreads();
24658 result = (arg1)->GetToolShortHelp(arg2);
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 {
24663#if wxUSE_UNICODE
24664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24665#else
24666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24667#endif
24668 }
24669 return resultobj;
24670fail:
24671 return NULL;
24672}
24673
24674
24675SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24676 PyObject *resultobj = 0;
24677 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24678 int arg2 ;
24679 wxString *arg3 = 0 ;
24680 void *argp1 = 0 ;
24681 int res1 = 0 ;
24682 int val2 ;
24683 int ecode2 = 0 ;
24684 bool temp3 = false ;
24685 PyObject * obj0 = 0 ;
24686 PyObject * obj1 = 0 ;
24687 PyObject * obj2 = 0 ;
24688 char * kwnames[] = {
24689 (char *) "self",(char *) "id",(char *) "helpString", NULL
24690 };
24691
24692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24694 if (!SWIG_IsOK(res1)) {
24695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24696 }
24697 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24698 ecode2 = SWIG_AsVal_int(obj1, &val2);
24699 if (!SWIG_IsOK(ecode2)) {
24700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24701 }
24702 arg2 = static_cast< int >(val2);
24703 {
24704 arg3 = wxString_in_helper(obj2);
24705 if (arg3 == NULL) SWIG_fail;
24706 temp3 = true;
24707 }
24708 {
24709 PyThreadState* __tstate = wxPyBeginAllowThreads();
24710 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24711 wxPyEndAllowThreads(__tstate);
24712 if (PyErr_Occurred()) SWIG_fail;
24713 }
24714 resultobj = SWIG_Py_Void();
24715 {
24716 if (temp3)
24717 delete arg3;
24718 }
24719 return resultobj;
24720fail:
24721 {
24722 if (temp3)
24723 delete arg3;
24724 }
24725 return NULL;
24726}
24727
24728
24729SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj = 0;
24731 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24732 int arg2 ;
24733 wxString result;
24734 void *argp1 = 0 ;
24735 int res1 = 0 ;
24736 int val2 ;
24737 int ecode2 = 0 ;
24738 PyObject * obj0 = 0 ;
24739 PyObject * obj1 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "self",(char *) "id", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24746 if (!SWIG_IsOK(res1)) {
24747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24748 }
24749 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24750 ecode2 = SWIG_AsVal_int(obj1, &val2);
24751 if (!SWIG_IsOK(ecode2)) {
24752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24753 }
24754 arg2 = static_cast< int >(val2);
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 result = (arg1)->GetToolLongHelp(arg2);
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 {
24762#if wxUSE_UNICODE
24763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24764#else
24765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24766#endif
24767 }
24768 return resultobj;
24769fail:
24770 return NULL;
24771}
24772
24773
24774SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24775 PyObject *resultobj = 0;
24776 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24777 int arg2 ;
24778 int arg3 ;
24779 void *argp1 = 0 ;
24780 int res1 = 0 ;
24781 int val2 ;
24782 int ecode2 = 0 ;
24783 int val3 ;
24784 int ecode3 = 0 ;
24785 PyObject * obj0 = 0 ;
24786 PyObject * obj1 = 0 ;
24787 PyObject * obj2 = 0 ;
24788 char * kwnames[] = {
24789 (char *) "self",(char *) "x",(char *) "y", NULL
24790 };
24791
24792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24794 if (!SWIG_IsOK(res1)) {
24795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24796 }
24797 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24798 ecode2 = SWIG_AsVal_int(obj1, &val2);
24799 if (!SWIG_IsOK(ecode2)) {
24800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24801 }
24802 arg2 = static_cast< int >(val2);
24803 ecode3 = SWIG_AsVal_int(obj2, &val3);
24804 if (!SWIG_IsOK(ecode3)) {
24805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24806 }
24807 arg3 = static_cast< int >(val3);
24808 {
24809 PyThreadState* __tstate = wxPyBeginAllowThreads();
24810 (arg1)->SetMargins(arg2,arg3);
24811 wxPyEndAllowThreads(__tstate);
24812 if (PyErr_Occurred()) SWIG_fail;
24813 }
24814 resultobj = SWIG_Py_Void();
24815 return resultobj;
24816fail:
24817 return NULL;
24818}
24819
24820
24821SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24822 PyObject *resultobj = 0;
24823 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24824 wxSize *arg2 = 0 ;
24825 void *argp1 = 0 ;
24826 int res1 = 0 ;
24827 wxSize temp2 ;
24828 PyObject * obj0 = 0 ;
24829 PyObject * obj1 = 0 ;
24830 char * kwnames[] = {
24831 (char *) "self",(char *) "size", NULL
24832 };
24833
24834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24836 if (!SWIG_IsOK(res1)) {
24837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24838 }
24839 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24840 {
24841 arg2 = &temp2;
24842 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24843 }
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 (arg1)->SetMargins((wxSize const &)*arg2);
24847 wxPyEndAllowThreads(__tstate);
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 resultobj = SWIG_Py_Void();
24851 return resultobj;
24852fail:
24853 return NULL;
24854}
24855
24856
24857SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24858 PyObject *resultobj = 0;
24859 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24860 int arg2 ;
24861 void *argp1 = 0 ;
24862 int res1 = 0 ;
24863 int val2 ;
24864 int ecode2 = 0 ;
24865 PyObject * obj0 = 0 ;
24866 PyObject * obj1 = 0 ;
24867 char * kwnames[] = {
24868 (char *) "self",(char *) "packing", NULL
24869 };
24870
24871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24873 if (!SWIG_IsOK(res1)) {
24874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24875 }
24876 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24877 ecode2 = SWIG_AsVal_int(obj1, &val2);
24878 if (!SWIG_IsOK(ecode2)) {
24879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24880 }
24881 arg2 = static_cast< int >(val2);
24882 {
24883 PyThreadState* __tstate = wxPyBeginAllowThreads();
24884 (arg1)->SetToolPacking(arg2);
24885 wxPyEndAllowThreads(__tstate);
24886 if (PyErr_Occurred()) SWIG_fail;
24887 }
24888 resultobj = SWIG_Py_Void();
24889 return resultobj;
24890fail:
24891 return NULL;
24892}
24893
24894
24895SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24896 PyObject *resultobj = 0;
24897 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24898 int arg2 ;
24899 void *argp1 = 0 ;
24900 int res1 = 0 ;
24901 int val2 ;
24902 int ecode2 = 0 ;
24903 PyObject * obj0 = 0 ;
24904 PyObject * obj1 = 0 ;
24905 char * kwnames[] = {
24906 (char *) "self",(char *) "separation", NULL
24907 };
24908
24909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24911 if (!SWIG_IsOK(res1)) {
24912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24913 }
24914 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24915 ecode2 = SWIG_AsVal_int(obj1, &val2);
24916 if (!SWIG_IsOK(ecode2)) {
24917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24918 }
24919 arg2 = static_cast< int >(val2);
24920 {
24921 PyThreadState* __tstate = wxPyBeginAllowThreads();
24922 (arg1)->SetToolSeparation(arg2);
24923 wxPyEndAllowThreads(__tstate);
24924 if (PyErr_Occurred()) SWIG_fail;
24925 }
24926 resultobj = SWIG_Py_Void();
24927 return resultobj;
24928fail:
24929 return NULL;
d55e5bfc
RD
24930}
24931
24932
1bd55598
RD
24933SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24934 PyObject *resultobj = 0;
24935 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24936 wxSize result;
24937 void *argp1 = 0 ;
24938 int res1 = 0 ;
24939 PyObject *swig_obj[1] ;
24940
24941 if (!args) SWIG_fail;
24942 swig_obj[0] = args;
24943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24944 if (!SWIG_IsOK(res1)) {
24945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24946 }
24947 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 result = (arg1)->GetToolMargins();
24951 wxPyEndAllowThreads(__tstate);
24952 if (PyErr_Occurred()) SWIG_fail;
24953 }
24954 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24955 return resultobj;
24956fail:
24957 return NULL;
d55e5bfc
RD
24958}
24959
24960
1bd55598
RD
24961SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24962 PyObject *resultobj = 0;
24963 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24964 wxSize result;
24965 void *argp1 = 0 ;
24966 int res1 = 0 ;
24967 PyObject *swig_obj[1] ;
24968
24969 if (!args) SWIG_fail;
24970 swig_obj[0] = args;
24971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24972 if (!SWIG_IsOK(res1)) {
24973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24974 }
24975 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24976 {
24977 PyThreadState* __tstate = wxPyBeginAllowThreads();
24978 result = (arg1)->GetMargins();
24979 wxPyEndAllowThreads(__tstate);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24983 return resultobj;
24984fail:
24985 return NULL;
d55e5bfc
RD
24986}
24987
24988
1bd55598
RD
24989SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24990 PyObject *resultobj = 0;
24991 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24992 int result;
24993 void *argp1 = 0 ;
24994 int res1 = 0 ;
24995 PyObject *swig_obj[1] ;
24996
24997 if (!args) SWIG_fail;
24998 swig_obj[0] = args;
24999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25000 if (!SWIG_IsOK(res1)) {
25001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25002 }
25003 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25004 {
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 result = (int)(arg1)->GetToolPacking();
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 resultobj = SWIG_From_int(static_cast< int >(result));
25011 return resultobj;
25012fail:
25013 return NULL;
d55e5bfc
RD
25014}
25015
25016
1bd55598
RD
25017SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25018 PyObject *resultobj = 0;
25019 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25020 int result;
25021 void *argp1 = 0 ;
25022 int res1 = 0 ;
25023 PyObject *swig_obj[1] ;
25024
25025 if (!args) SWIG_fail;
25026 swig_obj[0] = args;
25027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25028 if (!SWIG_IsOK(res1)) {
25029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25030 }
25031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25032 {
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 result = (int)(arg1)->GetToolSeparation();
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 resultobj = SWIG_From_int(static_cast< int >(result));
25039 return resultobj;
25040fail:
25041 return NULL;
25042}
25043
25044
25045SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25046 PyObject *resultobj = 0;
25047 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25048 int arg2 ;
25049 void *argp1 = 0 ;
25050 int res1 = 0 ;
25051 int val2 ;
25052 int ecode2 = 0 ;
25053 PyObject * obj0 = 0 ;
25054 PyObject * obj1 = 0 ;
25055 char * kwnames[] = {
25056 (char *) "self",(char *) "nRows", NULL
25057 };
25058
25059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25061 if (!SWIG_IsOK(res1)) {
25062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25063 }
25064 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25065 ecode2 = SWIG_AsVal_int(obj1, &val2);
25066 if (!SWIG_IsOK(ecode2)) {
25067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25068 }
25069 arg2 = static_cast< int >(val2);
25070 {
25071 PyThreadState* __tstate = wxPyBeginAllowThreads();
25072 (arg1)->SetRows(arg2);
25073 wxPyEndAllowThreads(__tstate);
25074 if (PyErr_Occurred()) SWIG_fail;
25075 }
25076 resultobj = SWIG_Py_Void();
25077 return resultobj;
25078fail:
25079 return NULL;
25080}
25081
25082
25083SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25084 PyObject *resultobj = 0;
25085 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25086 int arg2 ;
25087 int arg3 ;
25088 void *argp1 = 0 ;
25089 int res1 = 0 ;
25090 int val2 ;
25091 int ecode2 = 0 ;
25092 int val3 ;
25093 int ecode3 = 0 ;
25094 PyObject * obj0 = 0 ;
25095 PyObject * obj1 = 0 ;
25096 PyObject * obj2 = 0 ;
25097 char * kwnames[] = {
25098 (char *) "self",(char *) "rows",(char *) "cols", NULL
25099 };
25100
25101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25103 if (!SWIG_IsOK(res1)) {
25104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25105 }
25106 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25107 ecode2 = SWIG_AsVal_int(obj1, &val2);
25108 if (!SWIG_IsOK(ecode2)) {
25109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25110 }
25111 arg2 = static_cast< int >(val2);
25112 ecode3 = SWIG_AsVal_int(obj2, &val3);
25113 if (!SWIG_IsOK(ecode3)) {
25114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25115 }
25116 arg3 = static_cast< int >(val3);
25117 {
25118 PyThreadState* __tstate = wxPyBeginAllowThreads();
25119 (arg1)->SetMaxRowsCols(arg2,arg3);
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 resultobj = SWIG_Py_Void();
25124 return resultobj;
25125fail:
25126 return NULL;
d55e5bfc
RD
25127}
25128
25129
1bd55598
RD
25130SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25131 PyObject *resultobj = 0;
25132 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25133 int result;
25134 void *argp1 = 0 ;
25135 int res1 = 0 ;
25136 PyObject *swig_obj[1] ;
25137
25138 if (!args) SWIG_fail;
25139 swig_obj[0] = args;
25140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25141 if (!SWIG_IsOK(res1)) {
25142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25143 }
25144 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25145 {
25146 PyThreadState* __tstate = wxPyBeginAllowThreads();
25147 result = (int)(arg1)->GetMaxRows();
25148 wxPyEndAllowThreads(__tstate);
25149 if (PyErr_Occurred()) SWIG_fail;
25150 }
25151 resultobj = SWIG_From_int(static_cast< int >(result));
25152 return resultobj;
25153fail:
25154 return NULL;
d55e5bfc
RD
25155}
25156
25157
1bd55598
RD
25158SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25159 PyObject *resultobj = 0;
25160 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25161 int result;
25162 void *argp1 = 0 ;
25163 int res1 = 0 ;
25164 PyObject *swig_obj[1] ;
25165
25166 if (!args) SWIG_fail;
25167 swig_obj[0] = args;
25168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25169 if (!SWIG_IsOK(res1)) {
25170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25171 }
25172 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25173 {
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 result = (int)(arg1)->GetMaxCols();
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 resultobj = SWIG_From_int(static_cast< int >(result));
25180 return resultobj;
25181fail:
25182 return NULL;
25183}
25184
25185
25186SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25187 PyObject *resultobj = 0;
25188 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25189 wxSize *arg2 = 0 ;
25190 void *argp1 = 0 ;
25191 int res1 = 0 ;
25192 wxSize temp2 ;
25193 PyObject * obj0 = 0 ;
25194 PyObject * obj1 = 0 ;
25195 char * kwnames[] = {
25196 (char *) "self",(char *) "size", NULL
25197 };
25198
25199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25201 if (!SWIG_IsOK(res1)) {
25202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25203 }
25204 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25205 {
25206 arg2 = &temp2;
25207 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25208 }
25209 {
25210 PyThreadState* __tstate = wxPyBeginAllowThreads();
25211 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25212 wxPyEndAllowThreads(__tstate);
25213 if (PyErr_Occurred()) SWIG_fail;
25214 }
25215 resultobj = SWIG_Py_Void();
25216 return resultobj;
25217fail:
25218 return NULL;
d55e5bfc
RD
25219}
25220
25221
1bd55598
RD
25222SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25223 PyObject *resultobj = 0;
25224 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25225 wxSize result;
25226 void *argp1 = 0 ;
25227 int res1 = 0 ;
25228 PyObject *swig_obj[1] ;
25229
25230 if (!args) SWIG_fail;
25231 swig_obj[0] = args;
25232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25233 if (!SWIG_IsOK(res1)) {
25234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25235 }
25236 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25237 {
25238 PyThreadState* __tstate = wxPyBeginAllowThreads();
25239 result = (arg1)->GetToolBitmapSize();
25240 wxPyEndAllowThreads(__tstate);
25241 if (PyErr_Occurred()) SWIG_fail;
25242 }
25243 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25244 return resultobj;
25245fail:
25246 return NULL;
d55e5bfc
RD
25247}
25248
25249
1bd55598
RD
25250SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25251 PyObject *resultobj = 0;
25252 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25253 wxSize result;
25254 void *argp1 = 0 ;
25255 int res1 = 0 ;
25256 PyObject *swig_obj[1] ;
25257
25258 if (!args) SWIG_fail;
25259 swig_obj[0] = args;
25260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25261 if (!SWIG_IsOK(res1)) {
25262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25263 }
25264 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25265 {
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 result = (arg1)->GetToolSize();
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25272 return resultobj;
25273fail:
25274 return NULL;
25275}
25276
25277
25278SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25279 PyObject *resultobj = 0;
25280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25281 int arg2 ;
25282 int arg3 ;
25283 wxToolBarToolBase *result = 0 ;
25284 void *argp1 = 0 ;
25285 int res1 = 0 ;
25286 int val2 ;
25287 int ecode2 = 0 ;
25288 int val3 ;
25289 int ecode3 = 0 ;
25290 PyObject * obj0 = 0 ;
25291 PyObject * obj1 = 0 ;
25292 PyObject * obj2 = 0 ;
25293 char * kwnames[] = {
25294 (char *) "self",(char *) "x",(char *) "y", NULL
25295 };
25296
25297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25299 if (!SWIG_IsOK(res1)) {
25300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25301 }
25302 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25303 ecode2 = SWIG_AsVal_int(obj1, &val2);
25304 if (!SWIG_IsOK(ecode2)) {
25305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25306 }
25307 arg2 = static_cast< int >(val2);
25308 ecode3 = SWIG_AsVal_int(obj2, &val3);
25309 if (!SWIG_IsOK(ecode3)) {
25310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25311 }
25312 arg3 = static_cast< int >(val3);
25313 {
25314 PyThreadState* __tstate = wxPyBeginAllowThreads();
25315 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25316 wxPyEndAllowThreads(__tstate);
25317 if (PyErr_Occurred()) SWIG_fail;
25318 }
25319 {
25320 resultobj = wxPyMake_wxObject(result, (bool)0);
25321 }
25322 return resultobj;
25323fail:
25324 return NULL;
25325}
25326
25327
25328SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25329 PyObject *resultobj = 0;
25330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25331 int arg2 ;
25332 wxToolBarToolBase *result = 0 ;
25333 void *argp1 = 0 ;
25334 int res1 = 0 ;
25335 int val2 ;
25336 int ecode2 = 0 ;
25337 PyObject * obj0 = 0 ;
25338 PyObject * obj1 = 0 ;
25339 char * kwnames[] = {
25340 (char *) "self",(char *) "toolid", NULL
25341 };
25342
25343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25345 if (!SWIG_IsOK(res1)) {
25346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25347 }
25348 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25349 ecode2 = SWIG_AsVal_int(obj1, &val2);
25350 if (!SWIG_IsOK(ecode2)) {
25351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25352 }
25353 arg2 = static_cast< int >(val2);
25354 {
25355 PyThreadState* __tstate = wxPyBeginAllowThreads();
25356 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25357 wxPyEndAllowThreads(__tstate);
25358 if (PyErr_Occurred()) SWIG_fail;
25359 }
25360 {
25361 resultobj = wxPyMake_wxObject(result, (bool)0);
25362 }
25363 return resultobj;
25364fail:
25365 return NULL;
d55e5bfc
RD
25366}
25367
25368
1bd55598
RD
25369SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25370 PyObject *resultobj = 0;
25371 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25372 bool result;
25373 void *argp1 = 0 ;
25374 int res1 = 0 ;
25375 PyObject *swig_obj[1] ;
25376
25377 if (!args) SWIG_fail;
25378 swig_obj[0] = args;
25379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25380 if (!SWIG_IsOK(res1)) {
25381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25382 }
25383 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 result = (bool)(arg1)->IsVertical();
25387 wxPyEndAllowThreads(__tstate);
25388 if (PyErr_Occurred()) SWIG_fail;
25389 }
25390 {
25391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25392 }
25393 return resultobj;
25394fail:
25395 return NULL;
d55e5bfc
RD
25396}
25397
25398
1bd55598
RD
25399SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25400 PyObject *resultobj = 0;
25401 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25402 size_t result;
25403 void *argp1 = 0 ;
25404 int res1 = 0 ;
25405 PyObject *swig_obj[1] ;
25406
25407 if (!args) SWIG_fail;
25408 swig_obj[0] = args;
25409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25410 if (!SWIG_IsOK(res1)) {
25411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25412 }
25413 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25414 {
25415 PyThreadState* __tstate = wxPyBeginAllowThreads();
25416 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25417 wxPyEndAllowThreads(__tstate);
25418 if (PyErr_Occurred()) SWIG_fail;
25419 }
25420 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25421 return resultobj;
25422fail:
25423 return NULL;
25424}
25425
25426
25427SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25428 PyObject *obj;
25429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25430 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25431 return SWIG_Py_Void();
25432}
25433
25434SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25435 PyObject *resultobj = 0;
25436 wxWindow *arg1 = (wxWindow *) 0 ;
25437 int arg2 = (int) -1 ;
25438 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25439 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25440 wxSize const &arg4_defvalue = wxDefaultSize ;
25441 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25442 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25443 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25444 wxString *arg6 = (wxString *) &arg6_defvalue ;
25445 wxToolBar *result = 0 ;
25446 void *argp1 = 0 ;
25447 int res1 = 0 ;
25448 int val2 ;
25449 int ecode2 = 0 ;
25450 wxPoint temp3 ;
25451 wxSize temp4 ;
25452 long val5 ;
25453 int ecode5 = 0 ;
25454 bool temp6 = false ;
25455 PyObject * obj0 = 0 ;
25456 PyObject * obj1 = 0 ;
25457 PyObject * obj2 = 0 ;
25458 PyObject * obj3 = 0 ;
25459 PyObject * obj4 = 0 ;
25460 PyObject * obj5 = 0 ;
25461 char * kwnames[] = {
25462 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25463 };
25464
25465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25467 if (!SWIG_IsOK(res1)) {
25468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25469 }
25470 arg1 = reinterpret_cast< wxWindow * >(argp1);
25471 if (obj1) {
25472 ecode2 = SWIG_AsVal_int(obj1, &val2);
25473 if (!SWIG_IsOK(ecode2)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25475 }
25476 arg2 = static_cast< int >(val2);
25477 }
25478 if (obj2) {
d55e5bfc 25479 {
1bd55598
RD
25480 arg3 = &temp3;
25481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25482 }
1bd55598
RD
25483 }
25484 if (obj3) {
d55e5bfc 25485 {
1bd55598
RD
25486 arg4 = &temp4;
25487 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25488 }
1bd55598
RD
25489 }
25490 if (obj4) {
25491 ecode5 = SWIG_AsVal_long(obj4, &val5);
25492 if (!SWIG_IsOK(ecode5)) {
25493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25494 }
25495 arg5 = static_cast< long >(val5);
25496 }
25497 if (obj5) {
36ed4f51 25498 {
1bd55598
RD
25499 arg6 = wxString_in_helper(obj5);
25500 if (arg6 == NULL) SWIG_fail;
25501 temp6 = true;
36ed4f51 25502 }
1bd55598
RD
25503 }
25504 {
25505 if (!wxPyCheckForApp()) SWIG_fail;
25506 PyThreadState* __tstate = wxPyBeginAllowThreads();
25507 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25508 wxPyEndAllowThreads(__tstate);
25509 if (PyErr_Occurred()) SWIG_fail;
25510 }
25511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25512 {
25513 if (temp6)
25514 delete arg6;
25515 }
25516 return resultobj;
25517fail:
25518 {
25519 if (temp6)
25520 delete arg6;
25521 }
25522 return NULL;
d55e5bfc
RD
25523}
25524
25525
1bd55598
RD
25526SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25527 PyObject *resultobj = 0;
25528 wxToolBar *result = 0 ;
25529
25530 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25531 {
25532 if (!wxPyCheckForApp()) SWIG_fail;
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 result = (wxToolBar *)new wxToolBar();
25535 wxPyEndAllowThreads(__tstate);
25536 if (PyErr_Occurred()) SWIG_fail;
25537 }
25538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25539 return resultobj;
25540fail:
25541 return NULL;
25542}
25543
25544
25545SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25546 PyObject *resultobj = 0;
25547 wxToolBar *arg1 = (wxToolBar *) 0 ;
25548 wxWindow *arg2 = (wxWindow *) 0 ;
25549 int arg3 = (int) -1 ;
25550 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25551 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25552 wxSize const &arg5_defvalue = wxDefaultSize ;
25553 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25554 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25555 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25556 wxString *arg7 = (wxString *) &arg7_defvalue ;
25557 bool result;
25558 void *argp1 = 0 ;
25559 int res1 = 0 ;
25560 void *argp2 = 0 ;
25561 int res2 = 0 ;
25562 int val3 ;
25563 int ecode3 = 0 ;
25564 wxPoint temp4 ;
25565 wxSize temp5 ;
25566 long val6 ;
25567 int ecode6 = 0 ;
25568 bool temp7 = false ;
25569 PyObject * obj0 = 0 ;
25570 PyObject * obj1 = 0 ;
25571 PyObject * obj2 = 0 ;
25572 PyObject * obj3 = 0 ;
25573 PyObject * obj4 = 0 ;
25574 PyObject * obj5 = 0 ;
25575 PyObject * obj6 = 0 ;
25576 char * kwnames[] = {
25577 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25578 };
25579
25580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25582 if (!SWIG_IsOK(res1)) {
25583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25584 }
25585 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25587 if (!SWIG_IsOK(res2)) {
25588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25589 }
25590 arg2 = reinterpret_cast< wxWindow * >(argp2);
25591 if (obj2) {
25592 ecode3 = SWIG_AsVal_int(obj2, &val3);
25593 if (!SWIG_IsOK(ecode3)) {
25594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25595 }
25596 arg3 = static_cast< int >(val3);
25597 }
25598 if (obj3) {
d55e5bfc 25599 {
1bd55598
RD
25600 arg4 = &temp4;
25601 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25602 }
1bd55598
RD
25603 }
25604 if (obj4) {
d55e5bfc 25605 {
1bd55598
RD
25606 arg5 = &temp5;
25607 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25608 }
1bd55598
RD
25609 }
25610 if (obj5) {
25611 ecode6 = SWIG_AsVal_long(obj5, &val6);
25612 if (!SWIG_IsOK(ecode6)) {
25613 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25614 }
25615 arg6 = static_cast< long >(val6);
25616 }
25617 if (obj6) {
36ed4f51 25618 {
1bd55598
RD
25619 arg7 = wxString_in_helper(obj6);
25620 if (arg7 == NULL) SWIG_fail;
25621 temp7 = true;
36ed4f51 25622 }
1bd55598
RD
25623 }
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25627 wxPyEndAllowThreads(__tstate);
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 {
25631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25632 }
25633 {
25634 if (temp7)
25635 delete arg7;
25636 }
25637 return resultobj;
25638fail:
25639 {
25640 if (temp7)
25641 delete arg7;
25642 }
25643 return NULL;
25644}
25645
25646
1bd55598
RD
25647SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25648 PyObject *resultobj = 0;
25649 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25650 SwigValueWrapper<wxVisualAttributes > result;
25651 int val1 ;
25652 int ecode1 = 0 ;
25653 PyObject * obj0 = 0 ;
25654 char * kwnames[] = {
25655 (char *) "variant", NULL
25656 };
25657
25658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25659 if (obj0) {
25660 ecode1 = SWIG_AsVal_int(obj0, &val1);
25661 if (!SWIG_IsOK(ecode1)) {
25662 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25663 }
25664 arg1 = static_cast< wxWindowVariant >(val1);
25665 }
25666 {
25667 if (!wxPyCheckForApp()) SWIG_fail;
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
25669 result = wxToolBar::GetClassDefaultAttributes(arg1);
25670 wxPyEndAllowThreads(__tstate);
25671 if (PyErr_Occurred()) SWIG_fail;
25672 }
25673 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25674 return resultobj;
25675fail:
25676 return NULL;
d55e5bfc
RD
25677}
25678
25679
1bd55598
RD
25680SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25681 PyObject *obj;
25682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25683 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25684 return SWIG_Py_Void();
d55e5bfc
RD
25685}
25686
1bd55598
RD
25687SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25688 return SWIG_Python_InitShadowInstance(args);
25689}
d55e5bfc 25690
1bd55598
RD
25691SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25692 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25693 return 1;
d55e5bfc
RD
25694}
25695
25696
1bd55598
RD
25697SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25698 PyObject *pyobj = 0;
25699
25700 {
25701#if wxUSE_UNICODE
25702 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25703#else
25704 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25705#endif
25706 }
25707 return pyobj;
25708}
25709
25710
25711SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25712 PyObject *resultobj = 0;
25713 wxColour const &arg1_defvalue = wxNullColour ;
25714 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25715 wxColour const &arg2_defvalue = wxNullColour ;
25716 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25717 wxFont const &arg3_defvalue = wxNullFont ;
25718 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25719 wxListItemAttr *result = 0 ;
25720 wxColour temp1 ;
25721 wxColour temp2 ;
25722 void *argp3 = 0 ;
25723 int res3 = 0 ;
25724 PyObject * obj0 = 0 ;
25725 PyObject * obj1 = 0 ;
25726 PyObject * obj2 = 0 ;
25727 char * kwnames[] = {
25728 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25729 };
25730
25731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25732 if (obj0) {
d55e5bfc 25733 {
1bd55598
RD
25734 arg1 = &temp1;
25735 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 25736 }
1bd55598
RD
25737 }
25738 if (obj1) {
36ed4f51 25739 {
1bd55598
RD
25740 arg2 = &temp2;
25741 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 25742 }
1bd55598
RD
25743 }
25744 if (obj2) {
25745 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25746 if (!SWIG_IsOK(res3)) {
25747 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 25748 }
1bd55598
RD
25749 if (!argp3) {
25750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 25751 }
1bd55598
RD
25752 arg3 = reinterpret_cast< wxFont * >(argp3);
25753 }
25754 {
25755 PyThreadState* __tstate = wxPyBeginAllowThreads();
25756 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25761 return resultobj;
25762fail:
25763 return NULL;
d55e5bfc
RD
25764}
25765
25766
1bd55598
RD
25767SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25768 PyObject *resultobj = 0;
25769 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25770 void *argp1 = 0 ;
25771 int res1 = 0 ;
25772 PyObject *swig_obj[1] ;
25773
25774 if (!args) SWIG_fail;
25775 swig_obj[0] = args;
25776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25777 if (!SWIG_IsOK(res1)) {
25778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25779 }
25780 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25781 {
25782 PyThreadState* __tstate = wxPyBeginAllowThreads();
25783 delete arg1;
d55e5bfc 25784
1bd55598
RD
25785 wxPyEndAllowThreads(__tstate);
25786 if (PyErr_Occurred()) SWIG_fail;
25787 }
25788 resultobj = SWIG_Py_Void();
25789 return resultobj;
25790fail:
25791 return NULL;
25792}
25793
25794
25795SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25796 PyObject *resultobj = 0;
25797 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25798 wxColour *arg2 = 0 ;
25799 void *argp1 = 0 ;
25800 int res1 = 0 ;
25801 wxColour temp2 ;
25802 PyObject * obj0 = 0 ;
25803 PyObject * obj1 = 0 ;
25804 char * kwnames[] = {
25805 (char *) "self",(char *) "colText", NULL
25806 };
25807
25808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25810 if (!SWIG_IsOK(res1)) {
25811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25812 }
25813 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25814 {
25815 arg2 = &temp2;
25816 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25817 }
25818 {
25819 PyThreadState* __tstate = wxPyBeginAllowThreads();
25820 (arg1)->SetTextColour((wxColour const &)*arg2);
25821 wxPyEndAllowThreads(__tstate);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 resultobj = SWIG_Py_Void();
25825 return resultobj;
25826fail:
25827 return NULL;
25828}
25829
25830
25831SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25832 PyObject *resultobj = 0;
25833 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25834 wxColour *arg2 = 0 ;
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
25837 wxColour temp2 ;
25838 PyObject * obj0 = 0 ;
25839 PyObject * obj1 = 0 ;
25840 char * kwnames[] = {
25841 (char *) "self",(char *) "colBack", NULL
25842 };
25843
25844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25846 if (!SWIG_IsOK(res1)) {
25847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25848 }
25849 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25850 {
25851 arg2 = &temp2;
25852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25853 }
25854 {
25855 PyThreadState* __tstate = wxPyBeginAllowThreads();
25856 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25857 wxPyEndAllowThreads(__tstate);
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 resultobj = SWIG_Py_Void();
25861 return resultobj;
25862fail:
25863 return NULL;
25864}
25865
25866
25867SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj = 0;
25869 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25870 wxFont *arg2 = 0 ;
25871 void *argp1 = 0 ;
25872 int res1 = 0 ;
25873 void *argp2 = 0 ;
25874 int res2 = 0 ;
25875 PyObject * obj0 = 0 ;
25876 PyObject * obj1 = 0 ;
25877 char * kwnames[] = {
25878 (char *) "self",(char *) "font", NULL
25879 };
25880
25881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25883 if (!SWIG_IsOK(res1)) {
25884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25885 }
25886 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25888 if (!SWIG_IsOK(res2)) {
25889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25890 }
25891 if (!argp2) {
25892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25893 }
25894 arg2 = reinterpret_cast< wxFont * >(argp2);
25895 {
25896 PyThreadState* __tstate = wxPyBeginAllowThreads();
25897 (arg1)->SetFont((wxFont const &)*arg2);
25898 wxPyEndAllowThreads(__tstate);
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 resultobj = SWIG_Py_Void();
25902 return resultobj;
25903fail:
25904 return NULL;
d55e5bfc
RD
25905}
25906
25907
1bd55598
RD
25908SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25909 PyObject *resultobj = 0;
25910 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25911 bool result;
25912 void *argp1 = 0 ;
25913 int res1 = 0 ;
25914 PyObject *swig_obj[1] ;
25915
25916 if (!args) SWIG_fail;
25917 swig_obj[0] = args;
25918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25921 }
25922 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25923 {
25924 PyThreadState* __tstate = wxPyBeginAllowThreads();
25925 result = (bool)(arg1)->HasTextColour();
25926 wxPyEndAllowThreads(__tstate);
25927 if (PyErr_Occurred()) SWIG_fail;
25928 }
25929 {
25930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25931 }
25932 return resultobj;
25933fail:
25934 return NULL;
f20a2e1f
RD
25935}
25936
25937
1bd55598
RD
25938SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25939 PyObject *resultobj = 0;
25940 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25941 bool result;
25942 void *argp1 = 0 ;
25943 int res1 = 0 ;
25944 PyObject *swig_obj[1] ;
25945
25946 if (!args) SWIG_fail;
25947 swig_obj[0] = args;
25948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25949 if (!SWIG_IsOK(res1)) {
25950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25951 }
25952 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25953 {
25954 PyThreadState* __tstate = wxPyBeginAllowThreads();
25955 result = (bool)(arg1)->HasBackgroundColour();
25956 wxPyEndAllowThreads(__tstate);
25957 if (PyErr_Occurred()) SWIG_fail;
25958 }
25959 {
25960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25961 }
25962 return resultobj;
25963fail:
25964 return NULL;
d55e5bfc 25965}
1bd55598
RD
25966
25967
25968SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25969 PyObject *resultobj = 0;
25970 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25971 bool result;
25972 void *argp1 = 0 ;
25973 int res1 = 0 ;
25974 PyObject *swig_obj[1] ;
25975
25976 if (!args) SWIG_fail;
25977 swig_obj[0] = args;
25978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25979 if (!SWIG_IsOK(res1)) {
25980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25981 }
25982 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25983 {
25984 PyThreadState* __tstate = wxPyBeginAllowThreads();
25985 result = (bool)(arg1)->HasFont();
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 {
25990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25991 }
25992 return resultobj;
25993fail:
25994 return NULL;
d55e5bfc
RD
25995}
25996
25997
1bd55598
RD
25998SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25999 PyObject *resultobj = 0;
26000 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26001 wxColour result;
26002 void *argp1 = 0 ;
26003 int res1 = 0 ;
26004 PyObject *swig_obj[1] ;
26005
26006 if (!args) SWIG_fail;
26007 swig_obj[0] = args;
26008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26009 if (!SWIG_IsOK(res1)) {
26010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26011 }
26012 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26013 {
26014 PyThreadState* __tstate = wxPyBeginAllowThreads();
26015 result = (arg1)->GetTextColour();
26016 wxPyEndAllowThreads(__tstate);
26017 if (PyErr_Occurred()) SWIG_fail;
26018 }
26019 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26020 return resultobj;
26021fail:
26022 return NULL;
d55e5bfc
RD
26023}
26024
26025
1bd55598
RD
26026SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26027 PyObject *resultobj = 0;
26028 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26029 wxColour result;
26030 void *argp1 = 0 ;
26031 int res1 = 0 ;
26032 PyObject *swig_obj[1] ;
26033
26034 if (!args) SWIG_fail;
26035 swig_obj[0] = args;
26036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26037 if (!SWIG_IsOK(res1)) {
26038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26039 }
26040 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26041 {
26042 PyThreadState* __tstate = wxPyBeginAllowThreads();
26043 result = (arg1)->GetBackgroundColour();
26044 wxPyEndAllowThreads(__tstate);
26045 if (PyErr_Occurred()) SWIG_fail;
26046 }
26047 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26048 return resultobj;
26049fail:
26050 return NULL;
d55e5bfc
RD
26051}
26052
26053
1bd55598
RD
26054SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26055 PyObject *resultobj = 0;
26056 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26057 wxFont result;
26058 void *argp1 = 0 ;
26059 int res1 = 0 ;
26060 PyObject *swig_obj[1] ;
26061
26062 if (!args) SWIG_fail;
26063 swig_obj[0] = args;
26064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26065 if (!SWIG_IsOK(res1)) {
26066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26067 }
26068 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26069 {
26070 PyThreadState* __tstate = wxPyBeginAllowThreads();
26071 result = (arg1)->GetFont();
26072 wxPyEndAllowThreads(__tstate);
26073 if (PyErr_Occurred()) SWIG_fail;
26074 }
26075 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26076 return resultobj;
26077fail:
26078 return NULL;
26079}
26080
26081
26082SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26083 PyObject *resultobj = 0;
26084 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26085 wxListItemAttr *arg2 = 0 ;
26086 void *argp1 = 0 ;
26087 int res1 = 0 ;
26088 void *argp2 = 0 ;
26089 int res2 = 0 ;
26090 PyObject * obj0 = 0 ;
26091 PyObject * obj1 = 0 ;
26092 char * kwnames[] = {
26093 (char *) "self",(char *) "source", NULL
26094 };
26095
26096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26098 if (!SWIG_IsOK(res1)) {
26099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26100 }
26101 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26103 if (!SWIG_IsOK(res2)) {
26104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26105 }
26106 if (!argp2) {
26107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26108 }
26109 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26110 {
26111 PyThreadState* __tstate = wxPyBeginAllowThreads();
26112 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26113 wxPyEndAllowThreads(__tstate);
26114 if (PyErr_Occurred()) SWIG_fail;
26115 }
26116 resultobj = SWIG_Py_Void();
26117 return resultobj;
26118fail:
26119 return NULL;
121b9a67
RD
26120}
26121
26122
1bd55598
RD
26123SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26124 PyObject *resultobj = 0;
26125 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 PyObject *swig_obj[1] ;
26129
26130 if (!args) SWIG_fail;
26131 swig_obj[0] = args;
26132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26133 if (!SWIG_IsOK(res1)) {
26134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26135 }
26136 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26137 {
26138 PyThreadState* __tstate = wxPyBeginAllowThreads();
26139 wxListItemAttr_Destroy(arg1);
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 resultobj = SWIG_Py_Void();
26144 return resultobj;
26145fail:
26146 return NULL;
121b9a67
RD
26147}
26148
26149
1bd55598
RD
26150SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26151 PyObject *obj;
26152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26153 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26154 return SWIG_Py_Void();
121b9a67
RD
26155}
26156
1bd55598
RD
26157SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26158 return SWIG_Python_InitShadowInstance(args);
26159}
121b9a67 26160
1bd55598
RD
26161SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26162 PyObject *resultobj = 0;
26163 wxListItem *result = 0 ;
26164
26165 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26166 {
26167 PyThreadState* __tstate = wxPyBeginAllowThreads();
26168 result = (wxListItem *)new wxListItem();
26169 wxPyEndAllowThreads(__tstate);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 {
26173 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26174 }
26175 return resultobj;
26176fail:
26177 return NULL;
121b9a67
RD
26178}
26179
26180
1bd55598
RD
26181SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26182 PyObject *resultobj = 0;
26183 wxListItem *arg1 = (wxListItem *) 0 ;
26184 void *argp1 = 0 ;
26185 int res1 = 0 ;
26186 PyObject *swig_obj[1] ;
26187
26188 if (!args) SWIG_fail;
26189 swig_obj[0] = args;
26190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26191 if (!SWIG_IsOK(res1)) {
26192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26193 }
26194 arg1 = reinterpret_cast< wxListItem * >(argp1);
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 delete arg1;
f20a2e1f 26198
1bd55598
RD
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_Py_Void();
26203 return resultobj;
26204fail:
26205 return NULL;
f20a2e1f
RD
26206}
26207
26208
1bd55598
RD
26209SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26210 PyObject *resultobj = 0;
26211 wxListItem *arg1 = (wxListItem *) 0 ;
26212 void *argp1 = 0 ;
26213 int res1 = 0 ;
26214 PyObject *swig_obj[1] ;
26215
26216 if (!args) SWIG_fail;
26217 swig_obj[0] = args;
26218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26219 if (!SWIG_IsOK(res1)) {
26220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26221 }
26222 arg1 = reinterpret_cast< wxListItem * >(argp1);
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 (arg1)->Clear();
26226 wxPyEndAllowThreads(__tstate);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_Py_Void();
26230 return resultobj;
26231fail:
26232 return NULL;
d55e5bfc 26233}
1bd55598
RD
26234
26235
26236SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *resultobj = 0;
26238 wxListItem *arg1 = (wxListItem *) 0 ;
26239 void *argp1 = 0 ;
26240 int res1 = 0 ;
26241 PyObject *swig_obj[1] ;
26242
26243 if (!args) SWIG_fail;
26244 swig_obj[0] = args;
26245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26248 }
26249 arg1 = reinterpret_cast< wxListItem * >(argp1);
26250 {
26251 PyThreadState* __tstate = wxPyBeginAllowThreads();
26252 (arg1)->ClearAttributes();
26253 wxPyEndAllowThreads(__tstate);
26254 if (PyErr_Occurred()) SWIG_fail;
26255 }
26256 resultobj = SWIG_Py_Void();
26257 return resultobj;
26258fail:
26259 return NULL;
26260}
26261
26262
26263SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26264 PyObject *resultobj = 0;
26265 wxListItem *arg1 = (wxListItem *) 0 ;
26266 long arg2 ;
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 long val2 ;
26270 int ecode2 = 0 ;
26271 PyObject * obj0 = 0 ;
26272 PyObject * obj1 = 0 ;
26273 char * kwnames[] = {
26274 (char *) "self",(char *) "mask", NULL
26275 };
26276
26277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26279 if (!SWIG_IsOK(res1)) {
26280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26281 }
26282 arg1 = reinterpret_cast< wxListItem * >(argp1);
26283 ecode2 = SWIG_AsVal_long(obj1, &val2);
26284 if (!SWIG_IsOK(ecode2)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26286 }
26287 arg2 = static_cast< long >(val2);
26288 {
26289 PyThreadState* __tstate = wxPyBeginAllowThreads();
26290 (arg1)->SetMask(arg2);
26291 wxPyEndAllowThreads(__tstate);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 }
26294 resultobj = SWIG_Py_Void();
26295 return resultobj;
26296fail:
26297 return NULL;
26298}
26299
26300
26301SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26302 PyObject *resultobj = 0;
26303 wxListItem *arg1 = (wxListItem *) 0 ;
26304 long arg2 ;
26305 void *argp1 = 0 ;
26306 int res1 = 0 ;
26307 long val2 ;
26308 int ecode2 = 0 ;
26309 PyObject * obj0 = 0 ;
26310 PyObject * obj1 = 0 ;
26311 char * kwnames[] = {
26312 (char *) "self",(char *) "id", NULL
26313 };
26314
26315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26317 if (!SWIG_IsOK(res1)) {
26318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26319 }
26320 arg1 = reinterpret_cast< wxListItem * >(argp1);
26321 ecode2 = SWIG_AsVal_long(obj1, &val2);
26322 if (!SWIG_IsOK(ecode2)) {
26323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26324 }
26325 arg2 = static_cast< long >(val2);
26326 {
26327 PyThreadState* __tstate = wxPyBeginAllowThreads();
26328 (arg1)->SetId(arg2);
26329 wxPyEndAllowThreads(__tstate);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 }
26332 resultobj = SWIG_Py_Void();
26333 return resultobj;
26334fail:
26335 return NULL;
26336}
26337
26338
26339SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26340 PyObject *resultobj = 0;
26341 wxListItem *arg1 = (wxListItem *) 0 ;
26342 int arg2 ;
26343 void *argp1 = 0 ;
26344 int res1 = 0 ;
26345 int val2 ;
26346 int ecode2 = 0 ;
26347 PyObject * obj0 = 0 ;
26348 PyObject * obj1 = 0 ;
26349 char * kwnames[] = {
26350 (char *) "self",(char *) "col", NULL
26351 };
26352
26353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26355 if (!SWIG_IsOK(res1)) {
26356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26357 }
26358 arg1 = reinterpret_cast< wxListItem * >(argp1);
26359 ecode2 = SWIG_AsVal_int(obj1, &val2);
26360 if (!SWIG_IsOK(ecode2)) {
26361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26362 }
26363 arg2 = static_cast< int >(val2);
26364 {
26365 PyThreadState* __tstate = wxPyBeginAllowThreads();
26366 (arg1)->SetColumn(arg2);
26367 wxPyEndAllowThreads(__tstate);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 resultobj = SWIG_Py_Void();
26371 return resultobj;
26372fail:
26373 return NULL;
26374}
26375
26376
26377SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26378 PyObject *resultobj = 0;
26379 wxListItem *arg1 = (wxListItem *) 0 ;
26380 long arg2 ;
26381 void *argp1 = 0 ;
26382 int res1 = 0 ;
26383 long val2 ;
26384 int ecode2 = 0 ;
26385 PyObject * obj0 = 0 ;
26386 PyObject * obj1 = 0 ;
26387 char * kwnames[] = {
26388 (char *) "self",(char *) "state", NULL
26389 };
26390
26391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26395 }
26396 arg1 = reinterpret_cast< wxListItem * >(argp1);
26397 ecode2 = SWIG_AsVal_long(obj1, &val2);
26398 if (!SWIG_IsOK(ecode2)) {
26399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26400 }
26401 arg2 = static_cast< long >(val2);
26402 {
26403 PyThreadState* __tstate = wxPyBeginAllowThreads();
26404 (arg1)->SetState(arg2);
26405 wxPyEndAllowThreads(__tstate);
26406 if (PyErr_Occurred()) SWIG_fail;
26407 }
26408 resultobj = SWIG_Py_Void();
26409 return resultobj;
26410fail:
26411 return NULL;
26412}
26413
26414
26415SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26416 PyObject *resultobj = 0;
26417 wxListItem *arg1 = (wxListItem *) 0 ;
26418 long arg2 ;
26419 void *argp1 = 0 ;
26420 int res1 = 0 ;
26421 long val2 ;
26422 int ecode2 = 0 ;
26423 PyObject * obj0 = 0 ;
26424 PyObject * obj1 = 0 ;
26425 char * kwnames[] = {
26426 (char *) "self",(char *) "stateMask", NULL
26427 };
26428
26429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26431 if (!SWIG_IsOK(res1)) {
26432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26433 }
26434 arg1 = reinterpret_cast< wxListItem * >(argp1);
26435 ecode2 = SWIG_AsVal_long(obj1, &val2);
26436 if (!SWIG_IsOK(ecode2)) {
26437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26438 }
26439 arg2 = static_cast< long >(val2);
26440 {
26441 PyThreadState* __tstate = wxPyBeginAllowThreads();
26442 (arg1)->SetStateMask(arg2);
26443 wxPyEndAllowThreads(__tstate);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 }
26446 resultobj = SWIG_Py_Void();
26447 return resultobj;
26448fail:
26449 return NULL;
26450}
26451
26452
26453SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26454 PyObject *resultobj = 0;
26455 wxListItem *arg1 = (wxListItem *) 0 ;
26456 wxString *arg2 = 0 ;
26457 void *argp1 = 0 ;
26458 int res1 = 0 ;
26459 bool temp2 = false ;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 char * kwnames[] = {
26463 (char *) "self",(char *) "text", NULL
26464 };
26465
26466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26468 if (!SWIG_IsOK(res1)) {
26469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26470 }
26471 arg1 = reinterpret_cast< wxListItem * >(argp1);
26472 {
26473 arg2 = wxString_in_helper(obj1);
26474 if (arg2 == NULL) SWIG_fail;
26475 temp2 = true;
26476 }
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 (arg1)->SetText((wxString const &)*arg2);
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 resultobj = SWIG_Py_Void();
26484 {
26485 if (temp2)
26486 delete arg2;
26487 }
26488 return resultobj;
26489fail:
26490 {
26491 if (temp2)
26492 delete arg2;
26493 }
26494 return NULL;
26495}
26496
26497
26498SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26499 PyObject *resultobj = 0;
26500 wxListItem *arg1 = (wxListItem *) 0 ;
26501 int arg2 ;
26502 void *argp1 = 0 ;
26503 int res1 = 0 ;
26504 int val2 ;
26505 int ecode2 = 0 ;
26506 PyObject * obj0 = 0 ;
26507 PyObject * obj1 = 0 ;
26508 char * kwnames[] = {
26509 (char *) "self",(char *) "image", NULL
26510 };
26511
26512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26516 }
26517 arg1 = reinterpret_cast< wxListItem * >(argp1);
26518 ecode2 = SWIG_AsVal_int(obj1, &val2);
26519 if (!SWIG_IsOK(ecode2)) {
26520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26521 }
26522 arg2 = static_cast< int >(val2);
26523 {
26524 PyThreadState* __tstate = wxPyBeginAllowThreads();
26525 (arg1)->SetImage(arg2);
26526 wxPyEndAllowThreads(__tstate);
26527 if (PyErr_Occurred()) SWIG_fail;
26528 }
26529 resultobj = SWIG_Py_Void();
26530 return resultobj;
26531fail:
26532 return NULL;
26533}
26534
26535
26536SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26537 PyObject *resultobj = 0;
26538 wxListItem *arg1 = (wxListItem *) 0 ;
26539 long arg2 ;
26540 void *argp1 = 0 ;
26541 int res1 = 0 ;
26542 long val2 ;
26543 int ecode2 = 0 ;
26544 PyObject * obj0 = 0 ;
26545 PyObject * obj1 = 0 ;
26546 char * kwnames[] = {
26547 (char *) "self",(char *) "data", NULL
26548 };
26549
26550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26552 if (!SWIG_IsOK(res1)) {
26553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26554 }
26555 arg1 = reinterpret_cast< wxListItem * >(argp1);
26556 ecode2 = SWIG_AsVal_long(obj1, &val2);
26557 if (!SWIG_IsOK(ecode2)) {
26558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26559 }
26560 arg2 = static_cast< long >(val2);
26561 {
26562 PyThreadState* __tstate = wxPyBeginAllowThreads();
26563 (arg1)->SetData(arg2);
26564 wxPyEndAllowThreads(__tstate);
26565 if (PyErr_Occurred()) SWIG_fail;
26566 }
26567 resultobj = SWIG_Py_Void();
26568 return resultobj;
26569fail:
26570 return NULL;
26571}
26572
26573
26574SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26575 PyObject *resultobj = 0;
26576 wxListItem *arg1 = (wxListItem *) 0 ;
26577 int arg2 ;
26578 void *argp1 = 0 ;
26579 int res1 = 0 ;
26580 int val2 ;
26581 int ecode2 = 0 ;
26582 PyObject * obj0 = 0 ;
26583 PyObject * obj1 = 0 ;
26584 char * kwnames[] = {
26585 (char *) "self",(char *) "width", NULL
26586 };
26587
26588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26590 if (!SWIG_IsOK(res1)) {
26591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26592 }
26593 arg1 = reinterpret_cast< wxListItem * >(argp1);
26594 ecode2 = SWIG_AsVal_int(obj1, &val2);
26595 if (!SWIG_IsOK(ecode2)) {
26596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26597 }
26598 arg2 = static_cast< int >(val2);
26599 {
26600 PyThreadState* __tstate = wxPyBeginAllowThreads();
26601 (arg1)->SetWidth(arg2);
26602 wxPyEndAllowThreads(__tstate);
26603 if (PyErr_Occurred()) SWIG_fail;
26604 }
26605 resultobj = SWIG_Py_Void();
26606 return resultobj;
26607fail:
26608 return NULL;
26609}
26610
26611
26612SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26613 PyObject *resultobj = 0;
26614 wxListItem *arg1 = (wxListItem *) 0 ;
26615 wxListColumnFormat arg2 ;
26616 void *argp1 = 0 ;
26617 int res1 = 0 ;
26618 int val2 ;
26619 int ecode2 = 0 ;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26622 char * kwnames[] = {
26623 (char *) "self",(char *) "align", NULL
26624 };
26625
26626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26628 if (!SWIG_IsOK(res1)) {
26629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26630 }
26631 arg1 = reinterpret_cast< wxListItem * >(argp1);
26632 ecode2 = SWIG_AsVal_int(obj1, &val2);
26633 if (!SWIG_IsOK(ecode2)) {
26634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26635 }
26636 arg2 = static_cast< wxListColumnFormat >(val2);
26637 {
26638 PyThreadState* __tstate = wxPyBeginAllowThreads();
26639 (arg1)->SetAlign(arg2);
26640 wxPyEndAllowThreads(__tstate);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 resultobj = SWIG_Py_Void();
26644 return resultobj;
26645fail:
26646 return NULL;
26647}
26648
26649
26650SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26651 PyObject *resultobj = 0;
26652 wxListItem *arg1 = (wxListItem *) 0 ;
26653 wxColour *arg2 = 0 ;
26654 void *argp1 = 0 ;
26655 int res1 = 0 ;
26656 wxColour temp2 ;
26657 PyObject * obj0 = 0 ;
26658 PyObject * obj1 = 0 ;
26659 char * kwnames[] = {
26660 (char *) "self",(char *) "colText", NULL
26661 };
26662
26663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26665 if (!SWIG_IsOK(res1)) {
26666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26667 }
26668 arg1 = reinterpret_cast< wxListItem * >(argp1);
26669 {
26670 arg2 = &temp2;
26671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26672 }
26673 {
26674 PyThreadState* __tstate = wxPyBeginAllowThreads();
26675 (arg1)->SetTextColour((wxColour const &)*arg2);
26676 wxPyEndAllowThreads(__tstate);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 }
26679 resultobj = SWIG_Py_Void();
26680 return resultobj;
26681fail:
26682 return NULL;
26683}
26684
26685
26686SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26687 PyObject *resultobj = 0;
26688 wxListItem *arg1 = (wxListItem *) 0 ;
26689 wxColour *arg2 = 0 ;
26690 void *argp1 = 0 ;
26691 int res1 = 0 ;
26692 wxColour temp2 ;
26693 PyObject * obj0 = 0 ;
26694 PyObject * obj1 = 0 ;
26695 char * kwnames[] = {
26696 (char *) "self",(char *) "colBack", NULL
26697 };
26698
26699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26701 if (!SWIG_IsOK(res1)) {
26702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26703 }
26704 arg1 = reinterpret_cast< wxListItem * >(argp1);
26705 {
26706 arg2 = &temp2;
26707 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26708 }
26709 {
26710 PyThreadState* __tstate = wxPyBeginAllowThreads();
26711 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = SWIG_Py_Void();
26716 return resultobj;
26717fail:
26718 return NULL;
26719}
26720
26721
26722SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26723 PyObject *resultobj = 0;
26724 wxListItem *arg1 = (wxListItem *) 0 ;
26725 wxFont *arg2 = 0 ;
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
26728 void *argp2 = 0 ;
26729 int res2 = 0 ;
26730 PyObject * obj0 = 0 ;
26731 PyObject * obj1 = 0 ;
26732 char * kwnames[] = {
26733 (char *) "self",(char *) "font", NULL
26734 };
26735
26736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26738 if (!SWIG_IsOK(res1)) {
26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26740 }
26741 arg1 = reinterpret_cast< wxListItem * >(argp1);
26742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26743 if (!SWIG_IsOK(res2)) {
26744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26745 }
26746 if (!argp2) {
26747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26748 }
26749 arg2 = reinterpret_cast< wxFont * >(argp2);
26750 {
26751 PyThreadState* __tstate = wxPyBeginAllowThreads();
26752 (arg1)->SetFont((wxFont const &)*arg2);
26753 wxPyEndAllowThreads(__tstate);
26754 if (PyErr_Occurred()) SWIG_fail;
26755 }
26756 resultobj = SWIG_Py_Void();
26757 return resultobj;
26758fail:
26759 return NULL;
d55e5bfc
RD
26760}
26761
26762
1bd55598
RD
26763SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26764 PyObject *resultobj = 0;
26765 wxListItem *arg1 = (wxListItem *) 0 ;
26766 long result;
26767 void *argp1 = 0 ;
26768 int res1 = 0 ;
26769 PyObject *swig_obj[1] ;
26770
26771 if (!args) SWIG_fail;
26772 swig_obj[0] = args;
26773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26774 if (!SWIG_IsOK(res1)) {
26775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26776 }
26777 arg1 = reinterpret_cast< wxListItem * >(argp1);
26778 {
26779 PyThreadState* __tstate = wxPyBeginAllowThreads();
26780 result = (long)(arg1)->GetMask();
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 resultobj = SWIG_From_long(static_cast< long >(result));
26785 return resultobj;
26786fail:
26787 return NULL;
d55e5bfc
RD
26788}
26789
26790
1bd55598
RD
26791SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26792 PyObject *resultobj = 0;
26793 wxListItem *arg1 = (wxListItem *) 0 ;
26794 long result;
26795 void *argp1 = 0 ;
26796 int res1 = 0 ;
26797 PyObject *swig_obj[1] ;
26798
26799 if (!args) SWIG_fail;
26800 swig_obj[0] = args;
26801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26802 if (!SWIG_IsOK(res1)) {
26803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26804 }
26805 arg1 = reinterpret_cast< wxListItem * >(argp1);
26806 {
26807 PyThreadState* __tstate = wxPyBeginAllowThreads();
26808 result = (long)(arg1)->GetId();
26809 wxPyEndAllowThreads(__tstate);
26810 if (PyErr_Occurred()) SWIG_fail;
26811 }
26812 resultobj = SWIG_From_long(static_cast< long >(result));
26813 return resultobj;
26814fail:
26815 return NULL;
d55e5bfc
RD
26816}
26817
26818
1bd55598
RD
26819SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26820 PyObject *resultobj = 0;
26821 wxListItem *arg1 = (wxListItem *) 0 ;
26822 int result;
26823 void *argp1 = 0 ;
26824 int res1 = 0 ;
26825 PyObject *swig_obj[1] ;
26826
26827 if (!args) SWIG_fail;
26828 swig_obj[0] = args;
26829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26830 if (!SWIG_IsOK(res1)) {
26831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26832 }
26833 arg1 = reinterpret_cast< wxListItem * >(argp1);
26834 {
26835 PyThreadState* __tstate = wxPyBeginAllowThreads();
26836 result = (int)(arg1)->GetColumn();
26837 wxPyEndAllowThreads(__tstate);
26838 if (PyErr_Occurred()) SWIG_fail;
26839 }
26840 resultobj = SWIG_From_int(static_cast< int >(result));
26841 return resultobj;
26842fail:
26843 return NULL;
d55e5bfc
RD
26844}
26845
26846
1bd55598
RD
26847SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26848 PyObject *resultobj = 0;
26849 wxListItem *arg1 = (wxListItem *) 0 ;
26850 long result;
26851 void *argp1 = 0 ;
26852 int res1 = 0 ;
26853 PyObject *swig_obj[1] ;
26854
26855 if (!args) SWIG_fail;
26856 swig_obj[0] = args;
26857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26858 if (!SWIG_IsOK(res1)) {
26859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26860 }
26861 arg1 = reinterpret_cast< wxListItem * >(argp1);
26862 {
26863 PyThreadState* __tstate = wxPyBeginAllowThreads();
26864 result = (long)(arg1)->GetState();
26865 wxPyEndAllowThreads(__tstate);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 }
26868 resultobj = SWIG_From_long(static_cast< long >(result));
26869 return resultobj;
26870fail:
26871 return NULL;
8fb0e70a
RD
26872}
26873
26874
1bd55598
RD
26875SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26876 PyObject *resultobj = 0;
26877 wxListItem *arg1 = (wxListItem *) 0 ;
26878 wxString *result = 0 ;
26879 void *argp1 = 0 ;
26880 int res1 = 0 ;
26881 PyObject *swig_obj[1] ;
26882
26883 if (!args) SWIG_fail;
26884 swig_obj[0] = args;
26885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26886 if (!SWIG_IsOK(res1)) {
26887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26888 }
26889 arg1 = reinterpret_cast< wxListItem * >(argp1);
26890 {
26891 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 26892 {
1bd55598
RD
26893 wxString const &_result_ref = (arg1)->GetText();
26894 result = (wxString *) &_result_ref;
36ed4f51 26895 }
1bd55598
RD
26896 wxPyEndAllowThreads(__tstate);
26897 if (PyErr_Occurred()) SWIG_fail;
26898 }
26899 {
26900#if wxUSE_UNICODE
26901 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26902#else
26903 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26904#endif
26905 }
26906 return resultobj;
26907fail:
26908 return NULL;
d55e5bfc
RD
26909}
26910
26911
1bd55598
RD
26912SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26913 PyObject *resultobj = 0;
26914 wxListItem *arg1 = (wxListItem *) 0 ;
26915 int result;
26916 void *argp1 = 0 ;
26917 int res1 = 0 ;
26918 PyObject *swig_obj[1] ;
26919
26920 if (!args) SWIG_fail;
26921 swig_obj[0] = args;
26922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26923 if (!SWIG_IsOK(res1)) {
26924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26925 }
26926 arg1 = reinterpret_cast< wxListItem * >(argp1);
26927 {
26928 PyThreadState* __tstate = wxPyBeginAllowThreads();
26929 result = (int)(arg1)->GetImage();
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 resultobj = SWIG_From_int(static_cast< int >(result));
26934 return resultobj;
26935fail:
26936 return NULL;
d55e5bfc
RD
26937}
26938
26939
1bd55598
RD
26940SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26941 PyObject *resultobj = 0;
26942 wxListItem *arg1 = (wxListItem *) 0 ;
26943 long result;
26944 void *argp1 = 0 ;
26945 int res1 = 0 ;
26946 PyObject *swig_obj[1] ;
26947
26948 if (!args) SWIG_fail;
26949 swig_obj[0] = args;
26950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26951 if (!SWIG_IsOK(res1)) {
26952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26953 }
26954 arg1 = reinterpret_cast< wxListItem * >(argp1);
26955 {
26956 PyThreadState* __tstate = wxPyBeginAllowThreads();
26957 result = (long)(arg1)->GetData();
26958 wxPyEndAllowThreads(__tstate);
26959 if (PyErr_Occurred()) SWIG_fail;
26960 }
26961 resultobj = SWIG_From_long(static_cast< long >(result));
26962 return resultobj;
26963fail:
26964 return NULL;
d55e5bfc
RD
26965}
26966
26967
1bd55598
RD
26968SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26969 PyObject *resultobj = 0;
26970 wxListItem *arg1 = (wxListItem *) 0 ;
26971 int result;
26972 void *argp1 = 0 ;
26973 int res1 = 0 ;
26974 PyObject *swig_obj[1] ;
26975
26976 if (!args) SWIG_fail;
26977 swig_obj[0] = args;
26978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26979 if (!SWIG_IsOK(res1)) {
26980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26981 }
26982 arg1 = reinterpret_cast< wxListItem * >(argp1);
26983 {
26984 PyThreadState* __tstate = wxPyBeginAllowThreads();
26985 result = (int)(arg1)->GetWidth();
26986 wxPyEndAllowThreads(__tstate);
26987 if (PyErr_Occurred()) SWIG_fail;
26988 }
26989 resultobj = SWIG_From_int(static_cast< int >(result));
26990 return resultobj;
26991fail:
26992 return NULL;
d55e5bfc
RD
26993}
26994
26995
1bd55598
RD
26996SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26997 PyObject *resultobj = 0;
26998 wxListItem *arg1 = (wxListItem *) 0 ;
26999 wxListColumnFormat result;
27000 void *argp1 = 0 ;
27001 int res1 = 0 ;
27002 PyObject *swig_obj[1] ;
27003
27004 if (!args) SWIG_fail;
27005 swig_obj[0] = args;
27006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27007 if (!SWIG_IsOK(res1)) {
27008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27009 }
27010 arg1 = reinterpret_cast< wxListItem * >(argp1);
27011 {
27012 PyThreadState* __tstate = wxPyBeginAllowThreads();
27013 result = (wxListColumnFormat)(arg1)->GetAlign();
27014 wxPyEndAllowThreads(__tstate);
27015 if (PyErr_Occurred()) SWIG_fail;
27016 }
27017 resultobj = SWIG_From_int(static_cast< int >(result));
27018 return resultobj;
27019fail:
27020 return NULL;
d55e5bfc
RD
27021}
27022
27023
1bd55598
RD
27024SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27025 PyObject *resultobj = 0;
27026 wxListItem *arg1 = (wxListItem *) 0 ;
27027 wxListItemAttr *result = 0 ;
27028 void *argp1 = 0 ;
27029 int res1 = 0 ;
27030 PyObject *swig_obj[1] ;
27031
27032 if (!args) SWIG_fail;
27033 swig_obj[0] = args;
27034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27035 if (!SWIG_IsOK(res1)) {
27036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27037 }
27038 arg1 = reinterpret_cast< wxListItem * >(argp1);
27039 {
27040 PyThreadState* __tstate = wxPyBeginAllowThreads();
27041 result = (wxListItemAttr *)(arg1)->GetAttributes();
27042 wxPyEndAllowThreads(__tstate);
27043 if (PyErr_Occurred()) SWIG_fail;
27044 }
27045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27046 return resultobj;
27047fail:
27048 return NULL;
d55e5bfc
RD
27049}
27050
27051
1bd55598
RD
27052SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27053 PyObject *resultobj = 0;
27054 wxListItem *arg1 = (wxListItem *) 0 ;
27055 bool result;
27056 void *argp1 = 0 ;
27057 int res1 = 0 ;
27058 PyObject *swig_obj[1] ;
27059
27060 if (!args) SWIG_fail;
27061 swig_obj[0] = args;
27062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27063 if (!SWIG_IsOK(res1)) {
27064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27065 }
27066 arg1 = reinterpret_cast< wxListItem * >(argp1);
27067 {
27068 PyThreadState* __tstate = wxPyBeginAllowThreads();
27069 result = (bool)(arg1)->HasAttributes();
27070 wxPyEndAllowThreads(__tstate);
27071 if (PyErr_Occurred()) SWIG_fail;
27072 }
27073 {
27074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27075 }
27076 return resultobj;
27077fail:
27078 return NULL;
d55e5bfc
RD
27079}
27080
27081
1bd55598
RD
27082SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27083 PyObject *resultobj = 0;
27084 wxListItem *arg1 = (wxListItem *) 0 ;
27085 wxColour result;
27086 void *argp1 = 0 ;
27087 int res1 = 0 ;
27088 PyObject *swig_obj[1] ;
27089
27090 if (!args) SWIG_fail;
27091 swig_obj[0] = args;
27092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27093 if (!SWIG_IsOK(res1)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27095 }
27096 arg1 = reinterpret_cast< wxListItem * >(argp1);
27097 {
27098 PyThreadState* __tstate = wxPyBeginAllowThreads();
27099 result = ((wxListItem const *)arg1)->GetTextColour();
27100 wxPyEndAllowThreads(__tstate);
27101 if (PyErr_Occurred()) SWIG_fail;
27102 }
27103 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27104 return resultobj;
27105fail:
27106 return NULL;
d55e5bfc
RD
27107}
27108
27109
1bd55598
RD
27110SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27111 PyObject *resultobj = 0;
27112 wxListItem *arg1 = (wxListItem *) 0 ;
27113 wxColour result;
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 PyObject *swig_obj[1] ;
27117
27118 if (!args) SWIG_fail;
27119 swig_obj[0] = args;
27120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27121 if (!SWIG_IsOK(res1)) {
27122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27123 }
27124 arg1 = reinterpret_cast< wxListItem * >(argp1);
27125 {
27126 PyThreadState* __tstate = wxPyBeginAllowThreads();
27127 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27132 return resultobj;
27133fail:
27134 return NULL;
d55e5bfc
RD
27135}
27136
27137
1bd55598
RD
27138SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27139 PyObject *resultobj = 0;
27140 wxListItem *arg1 = (wxListItem *) 0 ;
27141 wxFont result;
27142 void *argp1 = 0 ;
27143 int res1 = 0 ;
27144 PyObject *swig_obj[1] ;
27145
27146 if (!args) SWIG_fail;
27147 swig_obj[0] = args;
27148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27149 if (!SWIG_IsOK(res1)) {
27150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27151 }
27152 arg1 = reinterpret_cast< wxListItem * >(argp1);
27153 {
27154 PyThreadState* __tstate = wxPyBeginAllowThreads();
27155 result = ((wxListItem const *)arg1)->GetFont();
27156 wxPyEndAllowThreads(__tstate);
27157 if (PyErr_Occurred()) SWIG_fail;
27158 }
27159 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27160 return resultobj;
27161fail:
27162 return NULL;
27163}
27164
27165
27166SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27167 PyObject *resultobj = 0;
27168 wxListItem *arg1 = (wxListItem *) 0 ;
27169 long arg2 ;
27170 void *argp1 = 0 ;
27171 int res1 = 0 ;
27172 long val2 ;
27173 int ecode2 = 0 ;
27174 PyObject *swig_obj[2] ;
27175
27176 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27178 if (!SWIG_IsOK(res1)) {
27179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27180 }
27181 arg1 = reinterpret_cast< wxListItem * >(argp1);
27182 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27183 if (!SWIG_IsOK(ecode2)) {
27184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27185 }
27186 arg2 = static_cast< long >(val2);
27187 if (arg1) (arg1)->m_mask = arg2;
27188
27189 resultobj = SWIG_Py_Void();
27190 return resultobj;
27191fail:
27192 return NULL;
d55e5bfc
RD
27193}
27194
27195
1bd55598
RD
27196SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27197 PyObject *resultobj = 0;
27198 wxListItem *arg1 = (wxListItem *) 0 ;
27199 long result;
27200 void *argp1 = 0 ;
27201 int res1 = 0 ;
27202 PyObject *swig_obj[1] ;
27203
27204 if (!args) SWIG_fail;
27205 swig_obj[0] = args;
27206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27207 if (!SWIG_IsOK(res1)) {
27208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27209 }
27210 arg1 = reinterpret_cast< wxListItem * >(argp1);
27211 result = (long) ((arg1)->m_mask);
27212 resultobj = SWIG_From_long(static_cast< long >(result));
27213 return resultobj;
27214fail:
27215 return NULL;
27216}
27217
27218
27219SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27220 PyObject *resultobj = 0;
27221 wxListItem *arg1 = (wxListItem *) 0 ;
27222 long arg2 ;
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 long val2 ;
27226 int ecode2 = 0 ;
27227 PyObject *swig_obj[2] ;
27228
27229 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27231 if (!SWIG_IsOK(res1)) {
27232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27233 }
27234 arg1 = reinterpret_cast< wxListItem * >(argp1);
27235 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27236 if (!SWIG_IsOK(ecode2)) {
27237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27238 }
27239 arg2 = static_cast< long >(val2);
27240 if (arg1) (arg1)->m_itemId = arg2;
27241
27242 resultobj = SWIG_Py_Void();
27243 return resultobj;
27244fail:
27245 return NULL;
7e08d4ef
RD
27246}
27247
27248
1bd55598
RD
27249SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27250 PyObject *resultobj = 0;
27251 wxListItem *arg1 = (wxListItem *) 0 ;
27252 long result;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
27255 PyObject *swig_obj[1] ;
27256
27257 if (!args) SWIG_fail;
27258 swig_obj[0] = args;
27259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27260 if (!SWIG_IsOK(res1)) {
27261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27262 }
27263 arg1 = reinterpret_cast< wxListItem * >(argp1);
27264 result = (long) ((arg1)->m_itemId);
27265 resultobj = SWIG_From_long(static_cast< long >(result));
27266 return resultobj;
27267fail:
27268 return NULL;
27269}
27270
27271
27272SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 int arg2 ;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 int val2 ;
27279 int ecode2 = 0 ;
27280 PyObject *swig_obj[2] ;
27281
27282 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27284 if (!SWIG_IsOK(res1)) {
27285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27286 }
27287 arg1 = reinterpret_cast< wxListItem * >(argp1);
27288 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27289 if (!SWIG_IsOK(ecode2)) {
27290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27291 }
27292 arg2 = static_cast< int >(val2);
27293 if (arg1) (arg1)->m_col = arg2;
27294
27295 resultobj = SWIG_Py_Void();
27296 return resultobj;
27297fail:
27298 return NULL;
7e08d4ef
RD
27299}
27300
27301
1bd55598
RD
27302SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27303 PyObject *resultobj = 0;
27304 wxListItem *arg1 = (wxListItem *) 0 ;
27305 int result;
27306 void *argp1 = 0 ;
27307 int res1 = 0 ;
27308 PyObject *swig_obj[1] ;
27309
27310 if (!args) SWIG_fail;
27311 swig_obj[0] = args;
27312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27313 if (!SWIG_IsOK(res1)) {
27314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27315 }
27316 arg1 = reinterpret_cast< wxListItem * >(argp1);
27317 result = (int) ((arg1)->m_col);
27318 resultobj = SWIG_From_int(static_cast< int >(result));
27319 return resultobj;
27320fail:
27321 return NULL;
27322}
27323
27324
27325SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27326 PyObject *resultobj = 0;
27327 wxListItem *arg1 = (wxListItem *) 0 ;
27328 long arg2 ;
27329 void *argp1 = 0 ;
27330 int res1 = 0 ;
27331 long val2 ;
27332 int ecode2 = 0 ;
27333 PyObject *swig_obj[2] ;
27334
27335 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27337 if (!SWIG_IsOK(res1)) {
27338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27339 }
27340 arg1 = reinterpret_cast< wxListItem * >(argp1);
27341 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27342 if (!SWIG_IsOK(ecode2)) {
27343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27344 }
27345 arg2 = static_cast< long >(val2);
27346 if (arg1) (arg1)->m_state = arg2;
27347
27348 resultobj = SWIG_Py_Void();
27349 return resultobj;
27350fail:
27351 return NULL;
7e08d4ef
RD
27352}
27353
27354
1bd55598
RD
27355SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27356 PyObject *resultobj = 0;
27357 wxListItem *arg1 = (wxListItem *) 0 ;
27358 long result;
27359 void *argp1 = 0 ;
27360 int res1 = 0 ;
27361 PyObject *swig_obj[1] ;
27362
27363 if (!args) SWIG_fail;
27364 swig_obj[0] = args;
27365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27366 if (!SWIG_IsOK(res1)) {
27367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27368 }
27369 arg1 = reinterpret_cast< wxListItem * >(argp1);
27370 result = (long) ((arg1)->m_state);
27371 resultobj = SWIG_From_long(static_cast< long >(result));
27372 return resultobj;
27373fail:
27374 return NULL;
27375}
27376
27377
27378SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27379 PyObject *resultobj = 0;
27380 wxListItem *arg1 = (wxListItem *) 0 ;
27381 long arg2 ;
27382 void *argp1 = 0 ;
27383 int res1 = 0 ;
27384 long val2 ;
27385 int ecode2 = 0 ;
27386 PyObject *swig_obj[2] ;
27387
27388 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27390 if (!SWIG_IsOK(res1)) {
27391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27392 }
27393 arg1 = reinterpret_cast< wxListItem * >(argp1);
27394 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27395 if (!SWIG_IsOK(ecode2)) {
27396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27397 }
27398 arg2 = static_cast< long >(val2);
27399 if (arg1) (arg1)->m_stateMask = arg2;
27400
27401 resultobj = SWIG_Py_Void();
27402 return resultobj;
27403fail:
27404 return NULL;
7e08d4ef
RD
27405}
27406
27407
1bd55598
RD
27408SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27409 PyObject *resultobj = 0;
27410 wxListItem *arg1 = (wxListItem *) 0 ;
27411 long result;
27412 void *argp1 = 0 ;
27413 int res1 = 0 ;
27414 PyObject *swig_obj[1] ;
27415
27416 if (!args) SWIG_fail;
27417 swig_obj[0] = args;
27418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27419 if (!SWIG_IsOK(res1)) {
27420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27421 }
27422 arg1 = reinterpret_cast< wxListItem * >(argp1);
27423 result = (long) ((arg1)->m_stateMask);
27424 resultobj = SWIG_From_long(static_cast< long >(result));
27425 return resultobj;
27426fail:
27427 return NULL;
27428}
27429
27430
27431SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27432 PyObject *resultobj = 0;
27433 wxListItem *arg1 = (wxListItem *) 0 ;
27434 wxString *arg2 = (wxString *) 0 ;
27435 void *argp1 = 0 ;
27436 int res1 = 0 ;
27437 bool temp2 = false ;
27438 PyObject *swig_obj[2] ;
27439
27440 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27442 if (!SWIG_IsOK(res1)) {
27443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27444 }
27445 arg1 = reinterpret_cast< wxListItem * >(argp1);
27446 {
27447 arg2 = wxString_in_helper(swig_obj[1]);
27448 if (arg2 == NULL) SWIG_fail;
27449 temp2 = true;
27450 }
27451 if (arg1) (arg1)->m_text = *arg2;
27452
27453 resultobj = SWIG_Py_Void();
27454 {
27455 if (temp2)
27456 delete arg2;
27457 }
27458 return resultobj;
27459fail:
27460 {
27461 if (temp2)
27462 delete arg2;
27463 }
27464 return NULL;
7e08d4ef
RD
27465}
27466
27467
1bd55598
RD
27468SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27469 PyObject *resultobj = 0;
27470 wxListItem *arg1 = (wxListItem *) 0 ;
27471 wxString *result = 0 ;
27472 void *argp1 = 0 ;
27473 int res1 = 0 ;
27474 PyObject *swig_obj[1] ;
27475
27476 if (!args) SWIG_fail;
27477 swig_obj[0] = args;
27478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27479 if (!SWIG_IsOK(res1)) {
27480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27481 }
27482 arg1 = reinterpret_cast< wxListItem * >(argp1);
27483 result = (wxString *)& ((arg1)->m_text);
27484 {
27485#if wxUSE_UNICODE
27486 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27487#else
27488 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27489#endif
27490 }
27491 return resultobj;
27492fail:
27493 return NULL;
d55e5bfc
RD
27494}
27495
27496
1bd55598
RD
27497SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27498 PyObject *resultobj = 0;
27499 wxListItem *arg1 = (wxListItem *) 0 ;
27500 int arg2 ;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 int val2 ;
27504 int ecode2 = 0 ;
27505 PyObject *swig_obj[2] ;
27506
27507 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27509 if (!SWIG_IsOK(res1)) {
27510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27511 }
27512 arg1 = reinterpret_cast< wxListItem * >(argp1);
27513 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27514 if (!SWIG_IsOK(ecode2)) {
27515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27516 }
27517 arg2 = static_cast< int >(val2);
27518 if (arg1) (arg1)->m_image = arg2;
27519
27520 resultobj = SWIG_Py_Void();
27521 return resultobj;
27522fail:
27523 return NULL;
d55e5bfc
RD
27524}
27525
27526
1bd55598
RD
27527SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27528 PyObject *resultobj = 0;
27529 wxListItem *arg1 = (wxListItem *) 0 ;
27530 int result;
27531 void *argp1 = 0 ;
27532 int res1 = 0 ;
27533 PyObject *swig_obj[1] ;
27534
27535 if (!args) SWIG_fail;
27536 swig_obj[0] = args;
27537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27538 if (!SWIG_IsOK(res1)) {
27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27540 }
27541 arg1 = reinterpret_cast< wxListItem * >(argp1);
27542 result = (int) ((arg1)->m_image);
27543 resultobj = SWIG_From_int(static_cast< int >(result));
27544 return resultobj;
27545fail:
27546 return NULL;
27547}
27548
27549
27550SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *resultobj = 0;
27552 wxListItem *arg1 = (wxListItem *) 0 ;
27553 long arg2 ;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 long val2 ;
27557 int ecode2 = 0 ;
27558 PyObject *swig_obj[2] ;
27559
27560 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27562 if (!SWIG_IsOK(res1)) {
27563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27564 }
27565 arg1 = reinterpret_cast< wxListItem * >(argp1);
27566 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27567 if (!SWIG_IsOK(ecode2)) {
27568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27569 }
27570 arg2 = static_cast< long >(val2);
27571 if (arg1) (arg1)->m_data = arg2;
27572
27573 resultobj = SWIG_Py_Void();
27574 return resultobj;
27575fail:
27576 return NULL;
d55e5bfc
RD
27577}
27578
27579
1bd55598
RD
27580SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27581 PyObject *resultobj = 0;
27582 wxListItem *arg1 = (wxListItem *) 0 ;
27583 long result;
27584 void *argp1 = 0 ;
27585 int res1 = 0 ;
27586 PyObject *swig_obj[1] ;
27587
27588 if (!args) SWIG_fail;
27589 swig_obj[0] = args;
27590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27591 if (!SWIG_IsOK(res1)) {
27592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27593 }
27594 arg1 = reinterpret_cast< wxListItem * >(argp1);
27595 result = (long) ((arg1)->m_data);
27596 resultobj = SWIG_From_long(static_cast< long >(result));
27597 return resultobj;
27598fail:
27599 return NULL;
27600}
27601
27602
27603SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27604 PyObject *resultobj = 0;
27605 wxListItem *arg1 = (wxListItem *) 0 ;
27606 int arg2 ;
27607 void *argp1 = 0 ;
27608 int res1 = 0 ;
27609 int val2 ;
27610 int ecode2 = 0 ;
27611 PyObject *swig_obj[2] ;
27612
27613 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27615 if (!SWIG_IsOK(res1)) {
27616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27617 }
27618 arg1 = reinterpret_cast< wxListItem * >(argp1);
27619 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27620 if (!SWIG_IsOK(ecode2)) {
27621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27622 }
27623 arg2 = static_cast< int >(val2);
27624 if (arg1) (arg1)->m_format = arg2;
27625
27626 resultobj = SWIG_Py_Void();
27627 return resultobj;
27628fail:
27629 return NULL;
d55e5bfc
RD
27630}
27631
27632
1bd55598
RD
27633SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27634 PyObject *resultobj = 0;
27635 wxListItem *arg1 = (wxListItem *) 0 ;
27636 int result;
27637 void *argp1 = 0 ;
27638 int res1 = 0 ;
27639 PyObject *swig_obj[1] ;
27640
27641 if (!args) SWIG_fail;
27642 swig_obj[0] = args;
27643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27644 if (!SWIG_IsOK(res1)) {
27645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27646 }
27647 arg1 = reinterpret_cast< wxListItem * >(argp1);
27648 result = (int) ((arg1)->m_format);
27649 resultobj = SWIG_From_int(static_cast< int >(result));
27650 return resultobj;
27651fail:
27652 return NULL;
27653}
27654
27655
27656SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27657 PyObject *resultobj = 0;
27658 wxListItem *arg1 = (wxListItem *) 0 ;
27659 int arg2 ;
27660 void *argp1 = 0 ;
27661 int res1 = 0 ;
27662 int val2 ;
27663 int ecode2 = 0 ;
27664 PyObject *swig_obj[2] ;
27665
27666 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27668 if (!SWIG_IsOK(res1)) {
27669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27670 }
27671 arg1 = reinterpret_cast< wxListItem * >(argp1);
27672 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27673 if (!SWIG_IsOK(ecode2)) {
27674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27675 }
27676 arg2 = static_cast< int >(val2);
27677 if (arg1) (arg1)->m_width = arg2;
27678
27679 resultobj = SWIG_Py_Void();
27680 return resultobj;
27681fail:
27682 return NULL;
d55e5bfc
RD
27683}
27684
27685
1bd55598
RD
27686SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27687 PyObject *resultobj = 0;
27688 wxListItem *arg1 = (wxListItem *) 0 ;
27689 int result;
27690 void *argp1 = 0 ;
27691 int res1 = 0 ;
27692 PyObject *swig_obj[1] ;
27693
27694 if (!args) SWIG_fail;
27695 swig_obj[0] = args;
27696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27697 if (!SWIG_IsOK(res1)) {
27698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27699 }
27700 arg1 = reinterpret_cast< wxListItem * >(argp1);
27701 result = (int) ((arg1)->m_width);
27702 resultobj = SWIG_From_int(static_cast< int >(result));
27703 return resultobj;
27704fail:
27705 return NULL;
27706}
27707
27708
27709SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27710 PyObject *obj;
27711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27712 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27713 return SWIG_Py_Void();
27714}
27715
27716SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27717 return SWIG_Python_InitShadowInstance(args);
27718}
27719
27720SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27721 PyObject *resultobj = 0;
27722 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27723 int arg2 = (int) 0 ;
27724 wxListEvent *result = 0 ;
27725 int val1 ;
27726 int ecode1 = 0 ;
27727 int val2 ;
27728 int ecode2 = 0 ;
27729 PyObject * obj0 = 0 ;
27730 PyObject * obj1 = 0 ;
27731 char * kwnames[] = {
27732 (char *) "commandType",(char *) "id", NULL
27733 };
27734
27735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27736 if (obj0) {
27737 ecode1 = SWIG_AsVal_int(obj0, &val1);
27738 if (!SWIG_IsOK(ecode1)) {
27739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27740 }
27741 arg1 = static_cast< wxEventType >(val1);
27742 }
27743 if (obj1) {
27744 ecode2 = SWIG_AsVal_int(obj1, &val2);
27745 if (!SWIG_IsOK(ecode2)) {
27746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27747 }
27748 arg2 = static_cast< int >(val2);
27749 }
27750 {
27751 PyThreadState* __tstate = wxPyBeginAllowThreads();
27752 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27753 wxPyEndAllowThreads(__tstate);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27757 return resultobj;
27758fail:
27759 return NULL;
27760}
27761
27762
27763SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27764 PyObject *resultobj = 0;
27765 wxListEvent *arg1 = (wxListEvent *) 0 ;
27766 int arg2 ;
27767 void *argp1 = 0 ;
27768 int res1 = 0 ;
27769 int val2 ;
27770 int ecode2 = 0 ;
27771 PyObject *swig_obj[2] ;
27772
27773 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27775 if (!SWIG_IsOK(res1)) {
27776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27777 }
27778 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27779 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27780 if (!SWIG_IsOK(ecode2)) {
27781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27782 }
27783 arg2 = static_cast< int >(val2);
27784 if (arg1) (arg1)->m_code = arg2;
27785
27786 resultobj = SWIG_Py_Void();
27787 return resultobj;
27788fail:
27789 return NULL;
d55e5bfc
RD
27790}
27791
27792
1bd55598
RD
27793SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27794 PyObject *resultobj = 0;
27795 wxListEvent *arg1 = (wxListEvent *) 0 ;
27796 int result;
27797 void *argp1 = 0 ;
27798 int res1 = 0 ;
27799 PyObject *swig_obj[1] ;
27800
27801 if (!args) SWIG_fail;
27802 swig_obj[0] = args;
27803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27804 if (!SWIG_IsOK(res1)) {
27805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27806 }
27807 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27808 result = (int) ((arg1)->m_code);
27809 resultobj = SWIG_From_int(static_cast< int >(result));
27810 return resultobj;
27811fail:
27812 return NULL;
27813}
27814
27815
27816SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27817 PyObject *resultobj = 0;
27818 wxListEvent *arg1 = (wxListEvent *) 0 ;
27819 long arg2 ;
27820 void *argp1 = 0 ;
27821 int res1 = 0 ;
27822 long val2 ;
27823 int ecode2 = 0 ;
27824 PyObject *swig_obj[2] ;
27825
27826 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27828 if (!SWIG_IsOK(res1)) {
27829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27830 }
27831 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27832 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27833 if (!SWIG_IsOK(ecode2)) {
27834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27835 }
27836 arg2 = static_cast< long >(val2);
27837 if (arg1) (arg1)->m_oldItemIndex = arg2;
27838
27839 resultobj = SWIG_Py_Void();
27840 return resultobj;
27841fail:
27842 return NULL;
d55e5bfc
RD
27843}
27844
27845
1bd55598
RD
27846SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27847 PyObject *resultobj = 0;
27848 wxListEvent *arg1 = (wxListEvent *) 0 ;
27849 long result;
27850 void *argp1 = 0 ;
27851 int res1 = 0 ;
27852 PyObject *swig_obj[1] ;
27853
27854 if (!args) SWIG_fail;
27855 swig_obj[0] = args;
27856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27857 if (!SWIG_IsOK(res1)) {
27858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27859 }
27860 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27861 result = (long) ((arg1)->m_oldItemIndex);
27862 resultobj = SWIG_From_long(static_cast< long >(result));
27863 return resultobj;
27864fail:
27865 return NULL;
27866}
27867
27868
27869SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27870 PyObject *resultobj = 0;
27871 wxListEvent *arg1 = (wxListEvent *) 0 ;
27872 long arg2 ;
27873 void *argp1 = 0 ;
27874 int res1 = 0 ;
27875 long val2 ;
27876 int ecode2 = 0 ;
27877 PyObject *swig_obj[2] ;
27878
27879 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27881 if (!SWIG_IsOK(res1)) {
27882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27883 }
27884 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27885 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27886 if (!SWIG_IsOK(ecode2)) {
27887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27888 }
27889 arg2 = static_cast< long >(val2);
27890 if (arg1) (arg1)->m_itemIndex = arg2;
27891
27892 resultobj = SWIG_Py_Void();
27893 return resultobj;
27894fail:
27895 return NULL;
f20a2e1f
RD
27896}
27897
27898
1bd55598
RD
27899SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27900 PyObject *resultobj = 0;
27901 wxListEvent *arg1 = (wxListEvent *) 0 ;
27902 long result;
27903 void *argp1 = 0 ;
27904 int res1 = 0 ;
27905 PyObject *swig_obj[1] ;
27906
27907 if (!args) SWIG_fail;
27908 swig_obj[0] = args;
27909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27910 if (!SWIG_IsOK(res1)) {
27911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27912 }
27913 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27914 result = (long) ((arg1)->m_itemIndex);
27915 resultobj = SWIG_From_long(static_cast< long >(result));
27916 return resultobj;
27917fail:
27918 return NULL;
27919}
27920
27921
27922SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27923 PyObject *resultobj = 0;
27924 wxListEvent *arg1 = (wxListEvent *) 0 ;
27925 int arg2 ;
27926 void *argp1 = 0 ;
27927 int res1 = 0 ;
27928 int val2 ;
27929 int ecode2 = 0 ;
27930 PyObject *swig_obj[2] ;
27931
27932 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27934 if (!SWIG_IsOK(res1)) {
27935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27936 }
27937 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27938 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27939 if (!SWIG_IsOK(ecode2)) {
27940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27941 }
27942 arg2 = static_cast< int >(val2);
27943 if (arg1) (arg1)->m_col = arg2;
27944
27945 resultobj = SWIG_Py_Void();
27946 return resultobj;
27947fail:
27948 return NULL;
d55e5bfc
RD
27949}
27950
27951
1bd55598
RD
27952SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27953 PyObject *resultobj = 0;
27954 wxListEvent *arg1 = (wxListEvent *) 0 ;
27955 int result;
27956 void *argp1 = 0 ;
27957 int res1 = 0 ;
27958 PyObject *swig_obj[1] ;
27959
27960 if (!args) SWIG_fail;
27961 swig_obj[0] = args;
27962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27963 if (!SWIG_IsOK(res1)) {
27964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27965 }
27966 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27967 result = (int) ((arg1)->m_col);
27968 resultobj = SWIG_From_int(static_cast< int >(result));
27969 return resultobj;
27970fail:
27971 return NULL;
27972}
27973
27974
27975SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxListEvent *arg1 = (wxListEvent *) 0 ;
27978 wxPoint *arg2 = (wxPoint *) 0 ;
27979 void *argp1 = 0 ;
27980 int res1 = 0 ;
27981 void *argp2 = 0 ;
27982 int res2 = 0 ;
27983 PyObject *swig_obj[2] ;
27984
27985 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27987 if (!SWIG_IsOK(res1)) {
27988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27989 }
27990 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27991 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27992 if (!SWIG_IsOK(res2)) {
27993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27994 }
27995 arg2 = reinterpret_cast< wxPoint * >(argp2);
27996 if (arg1) (arg1)->m_pointDrag = *arg2;
27997
27998 resultobj = SWIG_Py_Void();
27999 return resultobj;
28000fail:
28001 return NULL;
d55e5bfc
RD
28002}
28003
28004
1bd55598
RD
28005SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28006 PyObject *resultobj = 0;
28007 wxListEvent *arg1 = (wxListEvent *) 0 ;
28008 wxPoint *result = 0 ;
28009 void *argp1 = 0 ;
28010 int res1 = 0 ;
28011 PyObject *swig_obj[1] ;
28012
28013 if (!args) SWIG_fail;
28014 swig_obj[0] = args;
28015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28016 if (!SWIG_IsOK(res1)) {
28017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28018 }
28019 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28020 result = (wxPoint *)& ((arg1)->m_pointDrag);
28021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28022 return resultobj;
28023fail:
28024 return NULL;
28025}
28026
28027
28028SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28029 PyObject *resultobj = 0;
28030 wxListEvent *arg1 = (wxListEvent *) 0 ;
28031 wxListItem *result = 0 ;
28032 void *argp1 = 0 ;
28033 int res1 = 0 ;
28034 PyObject *swig_obj[1] ;
28035
28036 if (!args) SWIG_fail;
28037 swig_obj[0] = args;
28038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28039 if (!SWIG_IsOK(res1)) {
28040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28041 }
28042 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28043 result = (wxListItem *)& ((arg1)->m_item);
28044 {
28045 resultobj = wxPyMake_wxObject(result, (bool)0);
28046 }
28047 return resultobj;
28048fail:
28049 return NULL;
d55e5bfc
RD
28050}
28051
28052
1bd55598
RD
28053SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28054 PyObject *resultobj = 0;
28055 wxListEvent *arg1 = (wxListEvent *) 0 ;
28056 int result;
28057 void *argp1 = 0 ;
28058 int res1 = 0 ;
28059 PyObject *swig_obj[1] ;
28060
28061 if (!args) SWIG_fail;
28062 swig_obj[0] = args;
28063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28064 if (!SWIG_IsOK(res1)) {
28065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28066 }
28067 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28068 {
28069 PyThreadState* __tstate = wxPyBeginAllowThreads();
28070 result = (int)(arg1)->GetKeyCode();
28071 wxPyEndAllowThreads(__tstate);
28072 if (PyErr_Occurred()) SWIG_fail;
28073 }
28074 resultobj = SWIG_From_int(static_cast< int >(result));
28075 return resultobj;
28076fail:
28077 return NULL;
d55e5bfc
RD
28078}
28079
28080
1bd55598
RD
28081SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28082 PyObject *resultobj = 0;
28083 wxListEvent *arg1 = (wxListEvent *) 0 ;
28084 long result;
28085 void *argp1 = 0 ;
28086 int res1 = 0 ;
28087 PyObject *swig_obj[1] ;
28088
28089 if (!args) SWIG_fail;
28090 swig_obj[0] = args;
28091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28092 if (!SWIG_IsOK(res1)) {
28093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28094 }
28095 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28096 {
28097 PyThreadState* __tstate = wxPyBeginAllowThreads();
28098 result = (long)(arg1)->GetIndex();
28099 wxPyEndAllowThreads(__tstate);
28100 if (PyErr_Occurred()) SWIG_fail;
28101 }
28102 resultobj = SWIG_From_long(static_cast< long >(result));
28103 return resultobj;
28104fail:
28105 return NULL;
d55e5bfc
RD
28106}
28107
28108
1bd55598
RD
28109SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28110 PyObject *resultobj = 0;
28111 wxListEvent *arg1 = (wxListEvent *) 0 ;
28112 int result;
28113 void *argp1 = 0 ;
28114 int res1 = 0 ;
28115 PyObject *swig_obj[1] ;
28116
28117 if (!args) SWIG_fail;
28118 swig_obj[0] = args;
28119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28122 }
28123 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28124 {
28125 PyThreadState* __tstate = wxPyBeginAllowThreads();
28126 result = (int)(arg1)->GetColumn();
28127 wxPyEndAllowThreads(__tstate);
28128 if (PyErr_Occurred()) SWIG_fail;
28129 }
28130 resultobj = SWIG_From_int(static_cast< int >(result));
28131 return resultobj;
28132fail:
28133 return NULL;
d55e5bfc
RD
28134}
28135
28136
1bd55598
RD
28137SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28138 PyObject *resultobj = 0;
28139 wxListEvent *arg1 = (wxListEvent *) 0 ;
28140 wxPoint result;
28141 void *argp1 = 0 ;
28142 int res1 = 0 ;
28143 PyObject *swig_obj[1] ;
28144
28145 if (!args) SWIG_fail;
28146 swig_obj[0] = args;
28147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28148 if (!SWIG_IsOK(res1)) {
28149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28150 }
28151 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28152 {
28153 PyThreadState* __tstate = wxPyBeginAllowThreads();
28154 result = (arg1)->GetPoint();
28155 wxPyEndAllowThreads(__tstate);
28156 if (PyErr_Occurred()) SWIG_fail;
28157 }
28158 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28159 return resultobj;
28160fail:
28161 return NULL;
d55e5bfc
RD
28162}
28163
28164
1bd55598
RD
28165SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28166 PyObject *resultobj = 0;
28167 wxListEvent *arg1 = (wxListEvent *) 0 ;
28168 wxString *result = 0 ;
28169 void *argp1 = 0 ;
28170 int res1 = 0 ;
28171 PyObject *swig_obj[1] ;
28172
28173 if (!args) SWIG_fail;
28174 swig_obj[0] = args;
28175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28176 if (!SWIG_IsOK(res1)) {
28177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28178 }
28179 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28182 {
1bd55598
RD
28183 wxString const &_result_ref = (arg1)->GetLabel();
28184 result = (wxString *) &_result_ref;
d55e5bfc 28185 }
1bd55598
RD
28186 wxPyEndAllowThreads(__tstate);
28187 if (PyErr_Occurred()) SWIG_fail;
28188 }
28189 {
28190#if wxUSE_UNICODE
28191 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28192#else
28193 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28194#endif
28195 }
28196 return resultobj;
28197fail:
28198 return NULL;
d55e5bfc
RD
28199}
28200
28201
1bd55598
RD
28202SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28203 PyObject *resultobj = 0;
28204 wxListEvent *arg1 = (wxListEvent *) 0 ;
28205 wxString *result = 0 ;
28206 void *argp1 = 0 ;
28207 int res1 = 0 ;
28208 PyObject *swig_obj[1] ;
28209
28210 if (!args) SWIG_fail;
28211 swig_obj[0] = args;
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_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28215 }
28216 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28217 {
28218 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28219 {
1bd55598
RD
28220 wxString const &_result_ref = (arg1)->GetText();
28221 result = (wxString *) &_result_ref;
36ed4f51 28222 }
1bd55598
RD
28223 wxPyEndAllowThreads(__tstate);
28224 if (PyErr_Occurred()) SWIG_fail;
28225 }
28226 {
28227#if wxUSE_UNICODE
28228 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28229#else
28230 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28231#endif
28232 }
28233 return resultobj;
28234fail:
28235 return NULL;
d55e5bfc
RD
28236}
28237
28238
1bd55598
RD
28239SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28240 PyObject *resultobj = 0;
28241 wxListEvent *arg1 = (wxListEvent *) 0 ;
28242 int result;
28243 void *argp1 = 0 ;
28244 int res1 = 0 ;
28245 PyObject *swig_obj[1] ;
28246
28247 if (!args) SWIG_fail;
28248 swig_obj[0] = args;
28249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28250 if (!SWIG_IsOK(res1)) {
28251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28252 }
28253 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28254 {
28255 PyThreadState* __tstate = wxPyBeginAllowThreads();
28256 result = (int)(arg1)->GetImage();
28257 wxPyEndAllowThreads(__tstate);
28258 if (PyErr_Occurred()) SWIG_fail;
28259 }
28260 resultobj = SWIG_From_int(static_cast< int >(result));
28261 return resultobj;
28262fail:
28263 return NULL;
d55e5bfc
RD
28264}
28265
28266
1bd55598
RD
28267SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28268 PyObject *resultobj = 0;
28269 wxListEvent *arg1 = (wxListEvent *) 0 ;
28270 long result;
28271 void *argp1 = 0 ;
28272 int res1 = 0 ;
28273 PyObject *swig_obj[1] ;
28274
28275 if (!args) SWIG_fail;
28276 swig_obj[0] = args;
28277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28278 if (!SWIG_IsOK(res1)) {
28279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28280 }
28281 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
28284 result = (long)(arg1)->GetData();
28285 wxPyEndAllowThreads(__tstate);
28286 if (PyErr_Occurred()) SWIG_fail;
28287 }
28288 resultobj = SWIG_From_long(static_cast< long >(result));
28289 return resultobj;
28290fail:
28291 return NULL;
d55e5bfc
RD
28292}
28293
28294
1bd55598
RD
28295SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28296 PyObject *resultobj = 0;
28297 wxListEvent *arg1 = (wxListEvent *) 0 ;
28298 long result;
28299 void *argp1 = 0 ;
28300 int res1 = 0 ;
28301 PyObject *swig_obj[1] ;
28302
28303 if (!args) SWIG_fail;
28304 swig_obj[0] = args;
28305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28306 if (!SWIG_IsOK(res1)) {
28307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28308 }
28309 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28310 {
28311 PyThreadState* __tstate = wxPyBeginAllowThreads();
28312 result = (long)(arg1)->GetMask();
28313 wxPyEndAllowThreads(__tstate);
28314 if (PyErr_Occurred()) SWIG_fail;
28315 }
28316 resultobj = SWIG_From_long(static_cast< long >(result));
28317 return resultobj;
28318fail:
28319 return NULL;
d55e5bfc
RD
28320}
28321
28322
1bd55598
RD
28323SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28324 PyObject *resultobj = 0;
28325 wxListEvent *arg1 = (wxListEvent *) 0 ;
28326 wxListItem *result = 0 ;
28327 void *argp1 = 0 ;
28328 int res1 = 0 ;
28329 PyObject *swig_obj[1] ;
28330
28331 if (!args) SWIG_fail;
28332 swig_obj[0] = args;
28333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28334 if (!SWIG_IsOK(res1)) {
28335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28336 }
28337 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28338 {
28339 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28340 {
1bd55598
RD
28341 wxListItem const &_result_ref = (arg1)->GetItem();
28342 result = (wxListItem *) &_result_ref;
d55e5bfc 28343 }
1bd55598
RD
28344 wxPyEndAllowThreads(__tstate);
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28348 return resultobj;
28349fail:
28350 return NULL;
d55e5bfc
RD
28351}
28352
28353
1bd55598
RD
28354SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28355 PyObject *resultobj = 0;
28356 wxListEvent *arg1 = (wxListEvent *) 0 ;
28357 long result;
28358 void *argp1 = 0 ;
28359 int res1 = 0 ;
28360 PyObject *swig_obj[1] ;
28361
28362 if (!args) SWIG_fail;
28363 swig_obj[0] = args;
28364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28365 if (!SWIG_IsOK(res1)) {
28366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28367 }
28368 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28369 {
28370 PyThreadState* __tstate = wxPyBeginAllowThreads();
28371 result = (long)(arg1)->GetCacheFrom();
28372 wxPyEndAllowThreads(__tstate);
28373 if (PyErr_Occurred()) SWIG_fail;
28374 }
28375 resultobj = SWIG_From_long(static_cast< long >(result));
28376 return resultobj;
28377fail:
28378 return NULL;
d55e5bfc
RD
28379}
28380
28381
1bd55598
RD
28382SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28383 PyObject *resultobj = 0;
28384 wxListEvent *arg1 = (wxListEvent *) 0 ;
28385 long result;
28386 void *argp1 = 0 ;
28387 int res1 = 0 ;
28388 PyObject *swig_obj[1] ;
28389
28390 if (!args) SWIG_fail;
28391 swig_obj[0] = args;
28392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28393 if (!SWIG_IsOK(res1)) {
28394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28395 }
28396 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28397 {
28398 PyThreadState* __tstate = wxPyBeginAllowThreads();
28399 result = (long)(arg1)->GetCacheTo();
28400 wxPyEndAllowThreads(__tstate);
28401 if (PyErr_Occurred()) SWIG_fail;
28402 }
28403 resultobj = SWIG_From_long(static_cast< long >(result));
28404 return resultobj;
28405fail:
28406 return NULL;
7e08d4ef
RD
28407}
28408
28409
1bd55598
RD
28410SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28411 PyObject *resultobj = 0;
28412 wxListEvent *arg1 = (wxListEvent *) 0 ;
28413 bool result;
28414 void *argp1 = 0 ;
28415 int res1 = 0 ;
28416 PyObject *swig_obj[1] ;
28417
28418 if (!args) SWIG_fail;
28419 swig_obj[0] = args;
28420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28421 if (!SWIG_IsOK(res1)) {
28422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28423 }
28424 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28425 {
28426 PyThreadState* __tstate = wxPyBeginAllowThreads();
28427 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28428 wxPyEndAllowThreads(__tstate);
28429 if (PyErr_Occurred()) SWIG_fail;
28430 }
28431 {
28432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28433 }
28434 return resultobj;
28435fail:
28436 return NULL;
28437}
28438
28439
28440SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28441 PyObject *resultobj = 0;
28442 wxListEvent *arg1 = (wxListEvent *) 0 ;
28443 bool arg2 ;
28444 void *argp1 = 0 ;
28445 int res1 = 0 ;
28446 bool val2 ;
28447 int ecode2 = 0 ;
28448 PyObject * obj0 = 0 ;
28449 PyObject * obj1 = 0 ;
28450 char * kwnames[] = {
28451 (char *) "self",(char *) "editCancelled", NULL
28452 };
28453
28454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28456 if (!SWIG_IsOK(res1)) {
28457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28458 }
28459 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28460 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28461 if (!SWIG_IsOK(ecode2)) {
28462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28463 }
28464 arg2 = static_cast< bool >(val2);
28465 {
28466 PyThreadState* __tstate = wxPyBeginAllowThreads();
28467 (arg1)->SetEditCanceled(arg2);
28468 wxPyEndAllowThreads(__tstate);
28469 if (PyErr_Occurred()) SWIG_fail;
28470 }
28471 resultobj = SWIG_Py_Void();
28472 return resultobj;
28473fail:
28474 return NULL;
28475}
28476
28477
28478SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28479 PyObject *obj;
28480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28481 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28482 return SWIG_Py_Void();
28483}
28484
28485SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28486 return SWIG_Python_InitShadowInstance(args);
28487}
28488
28489SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28490 PyObject *resultobj = 0;
28491 wxWindow *arg1 = (wxWindow *) 0 ;
28492 int arg2 = (int) -1 ;
28493 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28494 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28495 wxSize const &arg4_defvalue = wxDefaultSize ;
28496 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28497 long arg5 = (long) wxLC_ICON ;
28498 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28499 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28500 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28501 wxString *arg7 = (wxString *) &arg7_defvalue ;
28502 wxPyListCtrl *result = 0 ;
28503 void *argp1 = 0 ;
28504 int res1 = 0 ;
28505 int val2 ;
28506 int ecode2 = 0 ;
28507 wxPoint temp3 ;
28508 wxSize temp4 ;
28509 long val5 ;
28510 int ecode5 = 0 ;
28511 void *argp6 = 0 ;
28512 int res6 = 0 ;
28513 bool temp7 = false ;
28514 PyObject * obj0 = 0 ;
28515 PyObject * obj1 = 0 ;
28516 PyObject * obj2 = 0 ;
28517 PyObject * obj3 = 0 ;
28518 PyObject * obj4 = 0 ;
28519 PyObject * obj5 = 0 ;
28520 PyObject * obj6 = 0 ;
28521 char * kwnames[] = {
28522 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28523 };
28524
28525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28527 if (!SWIG_IsOK(res1)) {
28528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28529 }
28530 arg1 = reinterpret_cast< wxWindow * >(argp1);
28531 if (obj1) {
28532 ecode2 = SWIG_AsVal_int(obj1, &val2);
28533 if (!SWIG_IsOK(ecode2)) {
28534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28535 }
28536 arg2 = static_cast< int >(val2);
28537 }
28538 if (obj2) {
7e08d4ef 28539 {
1bd55598
RD
28540 arg3 = &temp3;
28541 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28542 }
1bd55598
RD
28543 }
28544 if (obj3) {
7e08d4ef 28545 {
1bd55598
RD
28546 arg4 = &temp4;
28547 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28548 }
1bd55598
RD
28549 }
28550 if (obj4) {
28551 ecode5 = SWIG_AsVal_long(obj4, &val5);
28552 if (!SWIG_IsOK(ecode5)) {
28553 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28554 }
28555 arg5 = static_cast< long >(val5);
28556 }
28557 if (obj5) {
28558 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28559 if (!SWIG_IsOK(res6)) {
28560 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28561 }
1bd55598
RD
28562 if (!argp6) {
28563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28564 }
1bd55598
RD
28565 arg6 = reinterpret_cast< wxValidator * >(argp6);
28566 }
28567 if (obj6) {
7e08d4ef 28568 {
1bd55598
RD
28569 arg7 = wxString_in_helper(obj6);
28570 if (arg7 == NULL) SWIG_fail;
28571 temp7 = true;
7e08d4ef 28572 }
1bd55598
RD
28573 }
28574 {
28575 if (!wxPyCheckForApp()) SWIG_fail;
28576 PyThreadState* __tstate = wxPyBeginAllowThreads();
28577 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28578 wxPyEndAllowThreads(__tstate);
28579 if (PyErr_Occurred()) SWIG_fail;
28580 }
28581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28582 {
28583 if (temp7)
28584 delete arg7;
28585 }
28586 return resultobj;
28587fail:
28588 {
28589 if (temp7)
28590 delete arg7;
28591 }
28592 return NULL;
7e08d4ef
RD
28593}
28594
28595
1bd55598
RD
28596SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28597 PyObject *resultobj = 0;
28598 wxPyListCtrl *result = 0 ;
28599
28600 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28601 {
28602 if (!wxPyCheckForApp()) SWIG_fail;
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 result = (wxPyListCtrl *)new wxPyListCtrl();
28605 wxPyEndAllowThreads(__tstate);
28606 if (PyErr_Occurred()) SWIG_fail;
28607 }
28608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28609 return resultobj;
28610fail:
28611 return NULL;
28612}
28613
28614
28615SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28616 PyObject *resultobj = 0;
28617 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28618 wxWindow *arg2 = (wxWindow *) 0 ;
28619 int arg3 = (int) -1 ;
28620 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28621 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28622 wxSize const &arg5_defvalue = wxDefaultSize ;
28623 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28624 long arg6 = (long) wxLC_ICON ;
28625 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28626 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28627 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28628 wxString *arg8 = (wxString *) &arg8_defvalue ;
28629 bool result;
28630 void *argp1 = 0 ;
28631 int res1 = 0 ;
28632 void *argp2 = 0 ;
28633 int res2 = 0 ;
28634 int val3 ;
28635 int ecode3 = 0 ;
28636 wxPoint temp4 ;
28637 wxSize temp5 ;
28638 long val6 ;
28639 int ecode6 = 0 ;
28640 void *argp7 = 0 ;
28641 int res7 = 0 ;
28642 bool temp8 = false ;
28643 PyObject * obj0 = 0 ;
28644 PyObject * obj1 = 0 ;
28645 PyObject * obj2 = 0 ;
28646 PyObject * obj3 = 0 ;
28647 PyObject * obj4 = 0 ;
28648 PyObject * obj5 = 0 ;
28649 PyObject * obj6 = 0 ;
28650 PyObject * obj7 = 0 ;
28651 char * kwnames[] = {
28652 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28653 };
28654
28655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28657 if (!SWIG_IsOK(res1)) {
28658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28659 }
28660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28662 if (!SWIG_IsOK(res2)) {
28663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28664 }
28665 arg2 = reinterpret_cast< wxWindow * >(argp2);
28666 if (obj2) {
28667 ecode3 = SWIG_AsVal_int(obj2, &val3);
28668 if (!SWIG_IsOK(ecode3)) {
28669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28670 }
28671 arg3 = static_cast< int >(val3);
28672 }
28673 if (obj3) {
7e08d4ef 28674 {
1bd55598
RD
28675 arg4 = &temp4;
28676 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28677 }
1bd55598
RD
28678 }
28679 if (obj4) {
7e08d4ef 28680 {
1bd55598
RD
28681 arg5 = &temp5;
28682 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28683 }
1bd55598
RD
28684 }
28685 if (obj5) {
28686 ecode6 = SWIG_AsVal_long(obj5, &val6);
28687 if (!SWIG_IsOK(ecode6)) {
28688 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28689 }
28690 arg6 = static_cast< long >(val6);
28691 }
28692 if (obj6) {
28693 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28694 if (!SWIG_IsOK(res7)) {
28695 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28696 }
1bd55598
RD
28697 if (!argp7) {
28698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28699 }
1bd55598
RD
28700 arg7 = reinterpret_cast< wxValidator * >(argp7);
28701 }
28702 if (obj7) {
7e08d4ef 28703 {
1bd55598
RD
28704 arg8 = wxString_in_helper(obj7);
28705 if (arg8 == NULL) SWIG_fail;
28706 temp8 = true;
7e08d4ef 28707 }
1bd55598
RD
28708 }
28709 {
28710 PyThreadState* __tstate = wxPyBeginAllowThreads();
28711 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28712 wxPyEndAllowThreads(__tstate);
28713 if (PyErr_Occurred()) SWIG_fail;
28714 }
28715 {
28716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28717 }
28718 {
28719 if (temp8)
28720 delete arg8;
28721 }
28722 return resultobj;
28723fail:
28724 {
28725 if (temp8)
28726 delete arg8;
28727 }
28728 return NULL;
28729}
28730
28731
28732SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28733 PyObject *resultobj = 0;
28734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28735 PyObject *arg2 = (PyObject *) 0 ;
28736 PyObject *arg3 = (PyObject *) 0 ;
28737 void *argp1 = 0 ;
28738 int res1 = 0 ;
28739 PyObject * obj0 = 0 ;
28740 PyObject * obj1 = 0 ;
28741 PyObject * obj2 = 0 ;
28742 char * kwnames[] = {
28743 (char *) "self",(char *) "self",(char *) "_class", NULL
28744 };
28745
28746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28748 if (!SWIG_IsOK(res1)) {
28749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28750 }
28751 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28752 arg2 = obj1;
28753 arg3 = obj2;
28754 {
28755 PyThreadState* __tstate = wxPyBeginAllowThreads();
28756 (arg1)->_setCallbackInfo(arg2,arg3);
28757 wxPyEndAllowThreads(__tstate);
28758 if (PyErr_Occurred()) SWIG_fail;
28759 }
28760 resultobj = SWIG_Py_Void();
28761 return resultobj;
28762fail:
28763 return NULL;
28764}
28765
28766
28767SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28768 PyObject *resultobj = 0;
28769 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28770 int arg2 ;
28771 wxListItem *result = 0 ;
28772 void *argp1 = 0 ;
28773 int res1 = 0 ;
28774 int val2 ;
28775 int ecode2 = 0 ;
28776 PyObject * obj0 = 0 ;
28777 PyObject * obj1 = 0 ;
28778 char * kwnames[] = {
28779 (char *) "self",(char *) "col", NULL
28780 };
28781
28782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28784 if (!SWIG_IsOK(res1)) {
28785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28786 }
28787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28788 ecode2 = SWIG_AsVal_int(obj1, &val2);
28789 if (!SWIG_IsOK(ecode2)) {
28790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28791 }
28792 arg2 = static_cast< int >(val2);
28793 {
28794 PyThreadState* __tstate = wxPyBeginAllowThreads();
28795 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28796 wxPyEndAllowThreads(__tstate);
28797 if (PyErr_Occurred()) SWIG_fail;
28798 }
28799 {
28800 resultobj = wxPyMake_wxObject(result, (bool)0);
28801 }
28802 return resultobj;
28803fail:
28804 return NULL;
28805}
28806
28807
28808SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28809 PyObject *resultobj = 0;
28810 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28811 int arg2 ;
28812 wxListItem *arg3 = 0 ;
28813 bool result;
28814 void *argp1 = 0 ;
28815 int res1 = 0 ;
28816 int val2 ;
28817 int ecode2 = 0 ;
28818 void *argp3 = 0 ;
28819 int res3 = 0 ;
28820 PyObject * obj0 = 0 ;
28821 PyObject * obj1 = 0 ;
28822 PyObject * obj2 = 0 ;
28823 char * kwnames[] = {
28824 (char *) "self",(char *) "col",(char *) "item", NULL
28825 };
28826
28827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28829 if (!SWIG_IsOK(res1)) {
28830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28831 }
28832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28833 ecode2 = SWIG_AsVal_int(obj1, &val2);
28834 if (!SWIG_IsOK(ecode2)) {
28835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28836 }
28837 arg2 = static_cast< int >(val2);
28838 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28839 if (!SWIG_IsOK(res3)) {
28840 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28841 }
28842 if (!argp3) {
28843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28844 }
28845 arg3 = reinterpret_cast< wxListItem * >(argp3);
28846 {
28847 PyThreadState* __tstate = wxPyBeginAllowThreads();
28848 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28849 wxPyEndAllowThreads(__tstate);
28850 if (PyErr_Occurred()) SWIG_fail;
28851 }
28852 {
28853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28854 }
28855 return resultobj;
28856fail:
28857 return NULL;
28858}
28859
28860
28861SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28862 PyObject *resultobj = 0;
28863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28864 int arg2 ;
28865 int result;
28866 void *argp1 = 0 ;
28867 int res1 = 0 ;
28868 int val2 ;
28869 int ecode2 = 0 ;
28870 PyObject * obj0 = 0 ;
28871 PyObject * obj1 = 0 ;
28872 char * kwnames[] = {
28873 (char *) "self",(char *) "col", NULL
28874 };
28875
28876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28878 if (!SWIG_IsOK(res1)) {
28879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28880 }
28881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28882 ecode2 = SWIG_AsVal_int(obj1, &val2);
28883 if (!SWIG_IsOK(ecode2)) {
28884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28885 }
28886 arg2 = static_cast< int >(val2);
28887 {
28888 PyThreadState* __tstate = wxPyBeginAllowThreads();
28889 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28890 wxPyEndAllowThreads(__tstate);
28891 if (PyErr_Occurred()) SWIG_fail;
28892 }
28893 resultobj = SWIG_From_int(static_cast< int >(result));
28894 return resultobj;
28895fail:
28896 return NULL;
28897}
28898
28899
28900SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28901 PyObject *resultobj = 0;
28902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28903 int arg2 ;
28904 int arg3 ;
28905 bool result;
28906 void *argp1 = 0 ;
28907 int res1 = 0 ;
28908 int val2 ;
28909 int ecode2 = 0 ;
28910 int val3 ;
28911 int ecode3 = 0 ;
28912 PyObject * obj0 = 0 ;
28913 PyObject * obj1 = 0 ;
28914 PyObject * obj2 = 0 ;
28915 char * kwnames[] = {
28916 (char *) "self",(char *) "col",(char *) "width", NULL
28917 };
28918
28919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28921 if (!SWIG_IsOK(res1)) {
28922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28923 }
28924 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28925 ecode2 = SWIG_AsVal_int(obj1, &val2);
28926 if (!SWIG_IsOK(ecode2)) {
28927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28928 }
28929 arg2 = static_cast< int >(val2);
28930 ecode3 = SWIG_AsVal_int(obj2, &val3);
28931 if (!SWIG_IsOK(ecode3)) {
28932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28933 }
28934 arg3 = static_cast< int >(val3);
28935 {
28936 PyThreadState* __tstate = wxPyBeginAllowThreads();
28937 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28938 wxPyEndAllowThreads(__tstate);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 }
28941 {
28942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28943 }
28944 return resultobj;
28945fail:
28946 return NULL;
7e08d4ef
RD
28947}
28948
28949
1bd55598
RD
28950SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28951 PyObject *resultobj = 0;
28952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28953 int result;
28954 void *argp1 = 0 ;
28955 int res1 = 0 ;
28956 PyObject *swig_obj[1] ;
28957
28958 if (!args) SWIG_fail;
28959 swig_obj[0] = args;
28960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28961 if (!SWIG_IsOK(res1)) {
28962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28963 }
28964 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28965 {
28966 PyThreadState* __tstate = wxPyBeginAllowThreads();
28967 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28968 wxPyEndAllowThreads(__tstate);
28969 if (PyErr_Occurred()) SWIG_fail;
28970 }
28971 resultobj = SWIG_From_int(static_cast< int >(result));
28972 return resultobj;
28973fail:
28974 return NULL;
7e08d4ef
RD
28975}
28976
28977
1bd55598
RD
28978SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28979 PyObject *resultobj = 0;
28980 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28981 wxRect result;
28982 void *argp1 = 0 ;
28983 int res1 = 0 ;
28984 PyObject *swig_obj[1] ;
28985
28986 if (!args) SWIG_fail;
28987 swig_obj[0] = args;
28988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28989 if (!SWIG_IsOK(res1)) {
28990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28991 }
28992 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28993 {
28994 PyThreadState* __tstate = wxPyBeginAllowThreads();
28995 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28996 wxPyEndAllowThreads(__tstate);
28997 if (PyErr_Occurred()) SWIG_fail;
28998 }
28999 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29000 return resultobj;
29001fail:
29002 return NULL;
7e08d4ef
RD
29003}
29004
29005
1bd55598
RD
29006SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29007 PyObject *resultobj = 0;
29008 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29009 wxTextCtrl *result = 0 ;
29010 void *argp1 = 0 ;
29011 int res1 = 0 ;
29012 PyObject *swig_obj[1] ;
29013
29014 if (!args) SWIG_fail;
29015 swig_obj[0] = args;
29016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29019 }
29020 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29021 {
29022 PyThreadState* __tstate = wxPyBeginAllowThreads();
29023 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29024 wxPyEndAllowThreads(__tstate);
29025 if (PyErr_Occurred()) SWIG_fail;
29026 }
29027 {
29028 resultobj = wxPyMake_wxObject(result, 0);
29029 }
29030 return resultobj;
29031fail:
29032 return NULL;
29033}
29034
29035
29036SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29037 PyObject *resultobj = 0;
29038 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29039 long arg2 ;
29040 int arg3 = (int) 0 ;
29041 wxListItem *result = 0 ;
29042 void *argp1 = 0 ;
29043 int res1 = 0 ;
29044 long val2 ;
29045 int ecode2 = 0 ;
29046 int val3 ;
29047 int ecode3 = 0 ;
29048 PyObject * obj0 = 0 ;
29049 PyObject * obj1 = 0 ;
29050 PyObject * obj2 = 0 ;
29051 char * kwnames[] = {
29052 (char *) "self",(char *) "itemId",(char *) "col", NULL
29053 };
29054
29055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29057 if (!SWIG_IsOK(res1)) {
29058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29059 }
29060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29061 ecode2 = SWIG_AsVal_long(obj1, &val2);
29062 if (!SWIG_IsOK(ecode2)) {
29063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29064 }
29065 arg2 = static_cast< long >(val2);
29066 if (obj2) {
29067 ecode3 = SWIG_AsVal_int(obj2, &val3);
29068 if (!SWIG_IsOK(ecode3)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29070 }
29071 arg3 = static_cast< int >(val3);
29072 }
29073 {
29074 PyThreadState* __tstate = wxPyBeginAllowThreads();
29075 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29076 wxPyEndAllowThreads(__tstate);
29077 if (PyErr_Occurred()) SWIG_fail;
29078 }
29079 {
29080 resultobj = wxPyMake_wxObject(result, (bool)0);
29081 }
29082 return resultobj;
29083fail:
29084 return NULL;
29085}
29086
29087
29088SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29089 PyObject *resultobj = 0;
29090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29091 wxListItem *arg2 = 0 ;
29092 bool result;
29093 void *argp1 = 0 ;
29094 int res1 = 0 ;
29095 void *argp2 = 0 ;
29096 int res2 = 0 ;
29097 PyObject * obj0 = 0 ;
29098 PyObject * obj1 = 0 ;
29099 char * kwnames[] = {
29100 (char *) "self",(char *) "info", NULL
29101 };
29102
29103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29105 if (!SWIG_IsOK(res1)) {
29106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29107 }
29108 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29110 if (!SWIG_IsOK(res2)) {
29111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29112 }
29113 if (!argp2) {
29114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29115 }
29116 arg2 = reinterpret_cast< wxListItem * >(argp2);
29117 {
29118 PyThreadState* __tstate = wxPyBeginAllowThreads();
29119 result = (bool)(arg1)->SetItem(*arg2);
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 {
29124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29125 }
29126 return resultobj;
29127fail:
29128 return NULL;
29129}
29130
29131
29132SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj = 0;
29134 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29135 long arg2 ;
29136 int arg3 ;
29137 wxString *arg4 = 0 ;
29138 int arg5 = (int) -1 ;
29139 long result;
29140 void *argp1 = 0 ;
29141 int res1 = 0 ;
29142 long val2 ;
29143 int ecode2 = 0 ;
29144 int val3 ;
29145 int ecode3 = 0 ;
29146 bool temp4 = false ;
29147 int val5 ;
29148 int ecode5 = 0 ;
29149 PyObject * obj0 = 0 ;
29150 PyObject * obj1 = 0 ;
29151 PyObject * obj2 = 0 ;
29152 PyObject * obj3 = 0 ;
29153 PyObject * obj4 = 0 ;
29154 char * kwnames[] = {
29155 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29156 };
29157
29158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29160 if (!SWIG_IsOK(res1)) {
29161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29162 }
29163 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29164 ecode2 = SWIG_AsVal_long(obj1, &val2);
29165 if (!SWIG_IsOK(ecode2)) {
29166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29167 }
29168 arg2 = static_cast< long >(val2);
29169 ecode3 = SWIG_AsVal_int(obj2, &val3);
29170 if (!SWIG_IsOK(ecode3)) {
29171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29172 }
29173 arg3 = static_cast< int >(val3);
29174 {
29175 arg4 = wxString_in_helper(obj3);
29176 if (arg4 == NULL) SWIG_fail;
29177 temp4 = true;
29178 }
29179 if (obj4) {
29180 ecode5 = SWIG_AsVal_int(obj4, &val5);
29181 if (!SWIG_IsOK(ecode5)) {
29182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29183 }
29184 arg5 = static_cast< int >(val5);
29185 }
29186 {
29187 PyThreadState* __tstate = wxPyBeginAllowThreads();
29188 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29189 wxPyEndAllowThreads(__tstate);
29190 if (PyErr_Occurred()) SWIG_fail;
29191 }
29192 resultobj = SWIG_From_long(static_cast< long >(result));
29193 {
29194 if (temp4)
29195 delete arg4;
29196 }
29197 return resultobj;
29198fail:
29199 {
29200 if (temp4)
29201 delete arg4;
29202 }
29203 return NULL;
29204}
29205
29206
29207SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29208 PyObject *resultobj = 0;
29209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29210 long arg2 ;
29211 long arg3 ;
29212 int result;
29213 void *argp1 = 0 ;
29214 int res1 = 0 ;
29215 long val2 ;
29216 int ecode2 = 0 ;
29217 long val3 ;
29218 int ecode3 = 0 ;
29219 PyObject * obj0 = 0 ;
29220 PyObject * obj1 = 0 ;
29221 PyObject * obj2 = 0 ;
29222 char * kwnames[] = {
29223 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29224 };
29225
29226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29228 if (!SWIG_IsOK(res1)) {
29229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29230 }
29231 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29232 ecode2 = SWIG_AsVal_long(obj1, &val2);
29233 if (!SWIG_IsOK(ecode2)) {
29234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29235 }
29236 arg2 = static_cast< long >(val2);
29237 ecode3 = SWIG_AsVal_long(obj2, &val3);
29238 if (!SWIG_IsOK(ecode3)) {
29239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29240 }
29241 arg3 = static_cast< long >(val3);
29242 {
29243 PyThreadState* __tstate = wxPyBeginAllowThreads();
29244 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29245 wxPyEndAllowThreads(__tstate);
29246 if (PyErr_Occurred()) SWIG_fail;
29247 }
29248 resultobj = SWIG_From_int(static_cast< int >(result));
29249 return resultobj;
29250fail:
29251 return NULL;
29252}
29253
29254
29255SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29256 PyObject *resultobj = 0;
29257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29258 long arg2 ;
29259 long arg3 ;
29260 long arg4 ;
29261 bool result;
29262 void *argp1 = 0 ;
29263 int res1 = 0 ;
29264 long val2 ;
29265 int ecode2 = 0 ;
29266 long val3 ;
29267 int ecode3 = 0 ;
29268 long val4 ;
29269 int ecode4 = 0 ;
29270 PyObject * obj0 = 0 ;
29271 PyObject * obj1 = 0 ;
29272 PyObject * obj2 = 0 ;
29273 PyObject * obj3 = 0 ;
29274 char * kwnames[] = {
29275 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29276 };
29277
29278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29280 if (!SWIG_IsOK(res1)) {
29281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29282 }
29283 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29284 ecode2 = SWIG_AsVal_long(obj1, &val2);
29285 if (!SWIG_IsOK(ecode2)) {
29286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29287 }
29288 arg2 = static_cast< long >(val2);
29289 ecode3 = SWIG_AsVal_long(obj2, &val3);
29290 if (!SWIG_IsOK(ecode3)) {
29291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29292 }
29293 arg3 = static_cast< long >(val3);
29294 ecode4 = SWIG_AsVal_long(obj3, &val4);
29295 if (!SWIG_IsOK(ecode4)) {
29296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29297 }
29298 arg4 = static_cast< long >(val4);
29299 {
29300 PyThreadState* __tstate = wxPyBeginAllowThreads();
29301 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29302 wxPyEndAllowThreads(__tstate);
29303 if (PyErr_Occurred()) SWIG_fail;
29304 }
29305 {
29306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29307 }
29308 return resultobj;
29309fail:
29310 return NULL;
29311}
29312
29313
29314SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29315 PyObject *resultobj = 0;
29316 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29317 long arg2 ;
29318 int arg3 ;
29319 int arg4 = (int) -1 ;
29320 bool result;
29321 void *argp1 = 0 ;
29322 int res1 = 0 ;
29323 long val2 ;
29324 int ecode2 = 0 ;
29325 int val3 ;
29326 int ecode3 = 0 ;
29327 int val4 ;
29328 int ecode4 = 0 ;
29329 PyObject * obj0 = 0 ;
29330 PyObject * obj1 = 0 ;
29331 PyObject * obj2 = 0 ;
29332 PyObject * obj3 = 0 ;
29333 char * kwnames[] = {
29334 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29335 };
29336
29337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29339 if (!SWIG_IsOK(res1)) {
29340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29341 }
29342 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29343 ecode2 = SWIG_AsVal_long(obj1, &val2);
29344 if (!SWIG_IsOK(ecode2)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29346 }
29347 arg2 = static_cast< long >(val2);
29348 ecode3 = SWIG_AsVal_int(obj2, &val3);
29349 if (!SWIG_IsOK(ecode3)) {
29350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29351 }
29352 arg3 = static_cast< int >(val3);
29353 if (obj3) {
29354 ecode4 = SWIG_AsVal_int(obj3, &val4);
29355 if (!SWIG_IsOK(ecode4)) {
29356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29357 }
29358 arg4 = static_cast< int >(val4);
29359 }
29360 {
29361 PyThreadState* __tstate = wxPyBeginAllowThreads();
29362 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29363 wxPyEndAllowThreads(__tstate);
29364 if (PyErr_Occurred()) SWIG_fail;
29365 }
29366 {
29367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29368 }
29369 return resultobj;
29370fail:
29371 return NULL;
29372}
29373
29374
29375SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29376 PyObject *resultobj = 0;
29377 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29378 long arg2 ;
29379 long arg3 ;
29380 int arg4 ;
29381 bool result;
29382 void *argp1 = 0 ;
29383 int res1 = 0 ;
29384 long val2 ;
29385 int ecode2 = 0 ;
29386 long val3 ;
29387 int ecode3 = 0 ;
29388 int val4 ;
29389 int ecode4 = 0 ;
29390 PyObject * obj0 = 0 ;
29391 PyObject * obj1 = 0 ;
29392 PyObject * obj2 = 0 ;
29393 PyObject * obj3 = 0 ;
29394 char * kwnames[] = {
29395 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29396 };
29397
29398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29400 if (!SWIG_IsOK(res1)) {
29401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29402 }
29403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29404 ecode2 = SWIG_AsVal_long(obj1, &val2);
29405 if (!SWIG_IsOK(ecode2)) {
29406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29407 }
29408 arg2 = static_cast< long >(val2);
29409 ecode3 = SWIG_AsVal_long(obj2, &val3);
29410 if (!SWIG_IsOK(ecode3)) {
29411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29412 }
29413 arg3 = static_cast< long >(val3);
29414 ecode4 = SWIG_AsVal_int(obj3, &val4);
29415 if (!SWIG_IsOK(ecode4)) {
29416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29417 }
29418 arg4 = static_cast< int >(val4);
29419 {
29420 PyThreadState* __tstate = wxPyBeginAllowThreads();
29421 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29422 wxPyEndAllowThreads(__tstate);
29423 if (PyErr_Occurred()) SWIG_fail;
29424 }
29425 {
29426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29427 }
29428 return resultobj;
29429fail:
29430 return NULL;
29431}
29432
29433
29434SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29435 PyObject *resultobj = 0;
29436 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29437 long arg2 ;
29438 wxString result;
29439 void *argp1 = 0 ;
29440 int res1 = 0 ;
29441 long val2 ;
29442 int ecode2 = 0 ;
29443 PyObject * obj0 = 0 ;
29444 PyObject * obj1 = 0 ;
29445 char * kwnames[] = {
29446 (char *) "self",(char *) "item", NULL
29447 };
29448
29449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29451 if (!SWIG_IsOK(res1)) {
29452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29453 }
29454 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29455 ecode2 = SWIG_AsVal_long(obj1, &val2);
29456 if (!SWIG_IsOK(ecode2)) {
29457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29458 }
29459 arg2 = static_cast< long >(val2);
29460 {
29461 PyThreadState* __tstate = wxPyBeginAllowThreads();
29462 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29463 wxPyEndAllowThreads(__tstate);
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 {
29467#if wxUSE_UNICODE
29468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29469#else
29470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29471#endif
29472 }
29473 return resultobj;
29474fail:
29475 return NULL;
29476}
29477
29478
29479SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29480 PyObject *resultobj = 0;
29481 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29482 long arg2 ;
29483 wxString *arg3 = 0 ;
29484 void *argp1 = 0 ;
29485 int res1 = 0 ;
29486 long val2 ;
29487 int ecode2 = 0 ;
29488 bool temp3 = false ;
29489 PyObject * obj0 = 0 ;
29490 PyObject * obj1 = 0 ;
29491 PyObject * obj2 = 0 ;
29492 char * kwnames[] = {
29493 (char *) "self",(char *) "item",(char *) "str", NULL
29494 };
29495
29496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29498 if (!SWIG_IsOK(res1)) {
29499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29500 }
29501 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29502 ecode2 = SWIG_AsVal_long(obj1, &val2);
29503 if (!SWIG_IsOK(ecode2)) {
29504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29505 }
29506 arg2 = static_cast< long >(val2);
29507 {
29508 arg3 = wxString_in_helper(obj2);
29509 if (arg3 == NULL) SWIG_fail;
29510 temp3 = true;
29511 }
29512 {
29513 PyThreadState* __tstate = wxPyBeginAllowThreads();
29514 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 resultobj = SWIG_Py_Void();
29519 {
29520 if (temp3)
29521 delete arg3;
29522 }
29523 return resultobj;
29524fail:
29525 {
29526 if (temp3)
29527 delete arg3;
29528 }
29529 return NULL;
29530}
29531
29532
29533SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29534 PyObject *resultobj = 0;
29535 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29536 long arg2 ;
29537 long result;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 long val2 ;
29541 int ecode2 = 0 ;
29542 PyObject * obj0 = 0 ;
29543 PyObject * obj1 = 0 ;
29544 char * kwnames[] = {
29545 (char *) "self",(char *) "item", NULL
29546 };
29547
29548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29550 if (!SWIG_IsOK(res1)) {
29551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29552 }
29553 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29554 ecode2 = SWIG_AsVal_long(obj1, &val2);
29555 if (!SWIG_IsOK(ecode2)) {
29556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29557 }
29558 arg2 = static_cast< long >(val2);
29559 {
29560 PyThreadState* __tstate = wxPyBeginAllowThreads();
29561 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29562 wxPyEndAllowThreads(__tstate);
29563 if (PyErr_Occurred()) SWIG_fail;
29564 }
29565 resultobj = SWIG_From_long(static_cast< long >(result));
29566 return resultobj;
29567fail:
29568 return NULL;
29569}
29570
29571
29572SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29573 PyObject *resultobj = 0;
29574 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29575 long arg2 ;
29576 long arg3 ;
29577 bool result;
29578 void *argp1 = 0 ;
29579 int res1 = 0 ;
29580 long val2 ;
29581 int ecode2 = 0 ;
29582 long val3 ;
29583 int ecode3 = 0 ;
29584 PyObject * obj0 = 0 ;
29585 PyObject * obj1 = 0 ;
29586 PyObject * obj2 = 0 ;
29587 char * kwnames[] = {
29588 (char *) "self",(char *) "item",(char *) "data", NULL
29589 };
29590
29591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29593 if (!SWIG_IsOK(res1)) {
29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29595 }
29596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29597 ecode2 = SWIG_AsVal_long(obj1, &val2);
29598 if (!SWIG_IsOK(ecode2)) {
29599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29600 }
29601 arg2 = static_cast< long >(val2);
29602 ecode3 = SWIG_AsVal_long(obj2, &val3);
29603 if (!SWIG_IsOK(ecode3)) {
29604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29605 }
29606 arg3 = static_cast< long >(val3);
29607 {
29608 PyThreadState* __tstate = wxPyBeginAllowThreads();
29609 result = (bool)(arg1)->SetItemData(arg2,arg3);
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 {
29614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29615 }
29616 return resultobj;
29617fail:
29618 return NULL;
29619}
29620
29621
29622SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29623 PyObject *resultobj = 0;
29624 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29625 long arg2 ;
29626 wxPoint result;
29627 void *argp1 = 0 ;
29628 int res1 = 0 ;
29629 long val2 ;
29630 int ecode2 = 0 ;
29631 PyObject * obj0 = 0 ;
29632 PyObject * obj1 = 0 ;
29633 char * kwnames[] = {
29634 (char *) "self",(char *) "item", NULL
29635 };
29636
29637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29641 }
29642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29643 ecode2 = SWIG_AsVal_long(obj1, &val2);
29644 if (!SWIG_IsOK(ecode2)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29646 }
29647 arg2 = static_cast< long >(val2);
29648 {
29649 PyThreadState* __tstate = wxPyBeginAllowThreads();
29650 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29651 wxPyEndAllowThreads(__tstate);
29652 if (PyErr_Occurred()) SWIG_fail;
29653 }
29654 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29655 return resultobj;
29656fail:
29657 return NULL;
29658}
29659
29660
29661SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29662 PyObject *resultobj = 0;
29663 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29664 long arg2 ;
29665 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29666 wxRect result;
29667 void *argp1 = 0 ;
29668 int res1 = 0 ;
29669 long val2 ;
29670 int ecode2 = 0 ;
29671 int val3 ;
29672 int ecode3 = 0 ;
29673 PyObject * obj0 = 0 ;
29674 PyObject * obj1 = 0 ;
29675 PyObject * obj2 = 0 ;
29676 char * kwnames[] = {
29677 (char *) "self",(char *) "item",(char *) "code", NULL
29678 };
29679
29680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29682 if (!SWIG_IsOK(res1)) {
29683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29684 }
29685 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29686 ecode2 = SWIG_AsVal_long(obj1, &val2);
29687 if (!SWIG_IsOK(ecode2)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29689 }
29690 arg2 = static_cast< long >(val2);
29691 if (obj2) {
29692 ecode3 = SWIG_AsVal_int(obj2, &val3);
29693 if (!SWIG_IsOK(ecode3)) {
29694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29695 }
29696 arg3 = static_cast< int >(val3);
29697 }
29698 {
29699 PyThreadState* __tstate = wxPyBeginAllowThreads();
29700 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29701 wxPyEndAllowThreads(__tstate);
29702 if (PyErr_Occurred()) SWIG_fail;
29703 }
29704 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29705 return resultobj;
29706fail:
29707 return NULL;
29708}
29709
29710
29711SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29712 PyObject *resultobj = 0;
29713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29714 long arg2 ;
29715 wxPoint *arg3 = 0 ;
29716 bool result;
29717 void *argp1 = 0 ;
29718 int res1 = 0 ;
29719 long val2 ;
29720 int ecode2 = 0 ;
29721 wxPoint temp3 ;
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 PyObject * obj2 = 0 ;
29725 char * kwnames[] = {
29726 (char *) "self",(char *) "item",(char *) "pos", NULL
29727 };
29728
29729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29731 if (!SWIG_IsOK(res1)) {
29732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29733 }
29734 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29735 ecode2 = SWIG_AsVal_long(obj1, &val2);
29736 if (!SWIG_IsOK(ecode2)) {
29737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29738 }
29739 arg2 = static_cast< long >(val2);
29740 {
29741 arg3 = &temp3;
29742 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29743 }
29744 {
29745 PyThreadState* __tstate = wxPyBeginAllowThreads();
29746 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29747 wxPyEndAllowThreads(__tstate);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 {
29751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29752 }
29753 return resultobj;
29754fail:
29755 return NULL;
7e08d4ef
RD
29756}
29757
29758
1bd55598
RD
29759SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29760 PyObject *resultobj = 0;
29761 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29762 int result;
29763 void *argp1 = 0 ;
29764 int res1 = 0 ;
29765 PyObject *swig_obj[1] ;
29766
29767 if (!args) SWIG_fail;
29768 swig_obj[0] = args;
29769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29770 if (!SWIG_IsOK(res1)) {
29771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29772 }
29773 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29774 {
29775 PyThreadState* __tstate = wxPyBeginAllowThreads();
29776 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29777 wxPyEndAllowThreads(__tstate);
29778 if (PyErr_Occurred()) SWIG_fail;
29779 }
29780 resultobj = SWIG_From_int(static_cast< int >(result));
29781 return resultobj;
29782fail:
29783 return NULL;
7e08d4ef
RD
29784}
29785
29786
1bd55598
RD
29787SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29788 PyObject *resultobj = 0;
29789 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29790 int result;
29791 void *argp1 = 0 ;
29792 int res1 = 0 ;
29793 PyObject *swig_obj[1] ;
29794
29795 if (!args) SWIG_fail;
29796 swig_obj[0] = args;
29797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29798 if (!SWIG_IsOK(res1)) {
29799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29800 }
29801 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29802 {
29803 PyThreadState* __tstate = wxPyBeginAllowThreads();
29804 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29805 wxPyEndAllowThreads(__tstate);
29806 if (PyErr_Occurred()) SWIG_fail;
29807 }
29808 resultobj = SWIG_From_int(static_cast< int >(result));
29809 return resultobj;
29810fail:
29811 return NULL;
7e08d4ef
RD
29812}
29813
29814
1bd55598
RD
29815SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29816 PyObject *resultobj = 0;
29817 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29818 wxSize result;
29819 void *argp1 = 0 ;
29820 int res1 = 0 ;
29821 PyObject *swig_obj[1] ;
29822
29823 if (!args) SWIG_fail;
29824 swig_obj[0] = args;
29825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29826 if (!SWIG_IsOK(res1)) {
29827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29828 }
29829 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29830 {
29831 PyThreadState* __tstate = wxPyBeginAllowThreads();
29832 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29833 wxPyEndAllowThreads(__tstate);
29834 if (PyErr_Occurred()) SWIG_fail;
29835 }
29836 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29837 return resultobj;
29838fail:
29839 return NULL;
29840}
29841
29842
29843SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29844 PyObject *resultobj = 0;
29845 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29846 int arg2 ;
29847 bool arg3 = (bool) false ;
29848 void *argp1 = 0 ;
29849 int res1 = 0 ;
29850 int val2 ;
29851 int ecode2 = 0 ;
29852 bool val3 ;
29853 int ecode3 = 0 ;
29854 PyObject * obj0 = 0 ;
29855 PyObject * obj1 = 0 ;
29856 PyObject * obj2 = 0 ;
29857 char * kwnames[] = {
29858 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29859 };
29860
29861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29863 if (!SWIG_IsOK(res1)) {
29864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29865 }
29866 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29867 ecode2 = SWIG_AsVal_int(obj1, &val2);
29868 if (!SWIG_IsOK(ecode2)) {
29869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29870 }
29871 arg2 = static_cast< int >(val2);
29872 if (obj2) {
29873 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29874 if (!SWIG_IsOK(ecode3)) {
29875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29876 }
29877 arg3 = static_cast< bool >(val3);
29878 }
29879 {
29880 PyThreadState* __tstate = wxPyBeginAllowThreads();
29881 (arg1)->SetItemSpacing(arg2,arg3);
29882 wxPyEndAllowThreads(__tstate);
29883 if (PyErr_Occurred()) SWIG_fail;
29884 }
29885 resultobj = SWIG_Py_Void();
29886 return resultobj;
29887fail:
29888 return NULL;
7e08d4ef
RD
29889}
29890
29891
1bd55598
RD
29892SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29893 PyObject *resultobj = 0;
29894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29895 int result;
29896 void *argp1 = 0 ;
29897 int res1 = 0 ;
29898 PyObject *swig_obj[1] ;
29899
29900 if (!args) SWIG_fail;
29901 swig_obj[0] = args;
29902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29905 }
29906 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29907 {
29908 PyThreadState* __tstate = wxPyBeginAllowThreads();
29909 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29910 wxPyEndAllowThreads(__tstate);
29911 if (PyErr_Occurred()) SWIG_fail;
29912 }
29913 resultobj = SWIG_From_int(static_cast< int >(result));
29914 return resultobj;
29915fail:
29916 return NULL;
7e08d4ef
RD
29917}
29918
29919
1bd55598
RD
29920SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29921 PyObject *resultobj = 0;
29922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29923 wxColour result;
29924 void *argp1 = 0 ;
29925 int res1 = 0 ;
29926 PyObject *swig_obj[1] ;
29927
29928 if (!args) SWIG_fail;
29929 swig_obj[0] = args;
29930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29931 if (!SWIG_IsOK(res1)) {
29932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29933 }
29934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29935 {
29936 PyThreadState* __tstate = wxPyBeginAllowThreads();
29937 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29938 wxPyEndAllowThreads(__tstate);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29942 return resultobj;
29943fail:
29944 return NULL;
29945}
29946
29947
29948SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29949 PyObject *resultobj = 0;
29950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29951 wxColour *arg2 = 0 ;
29952 void *argp1 = 0 ;
29953 int res1 = 0 ;
29954 wxColour temp2 ;
29955 PyObject * obj0 = 0 ;
29956 PyObject * obj1 = 0 ;
29957 char * kwnames[] = {
29958 (char *) "self",(char *) "col", NULL
29959 };
29960
29961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29963 if (!SWIG_IsOK(res1)) {
29964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29965 }
29966 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29967 {
29968 arg2 = &temp2;
29969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29970 }
29971 {
29972 PyThreadState* __tstate = wxPyBeginAllowThreads();
29973 (arg1)->SetTextColour((wxColour const &)*arg2);
29974 wxPyEndAllowThreads(__tstate);
29975 if (PyErr_Occurred()) SWIG_fail;
29976 }
29977 resultobj = SWIG_Py_Void();
29978 return resultobj;
29979fail:
29980 return NULL;
7e08d4ef
RD
29981}
29982
29983
1bd55598
RD
29984SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29985 PyObject *resultobj = 0;
29986 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29987 long result;
29988 void *argp1 = 0 ;
29989 int res1 = 0 ;
29990 PyObject *swig_obj[1] ;
29991
29992 if (!args) SWIG_fail;
29993 swig_obj[0] = args;
29994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29995 if (!SWIG_IsOK(res1)) {
29996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29997 }
29998 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29999 {
30000 PyThreadState* __tstate = wxPyBeginAllowThreads();
30001 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30002 wxPyEndAllowThreads(__tstate);
30003 if (PyErr_Occurred()) SWIG_fail;
30004 }
30005 resultobj = SWIG_From_long(static_cast< long >(result));
30006 return resultobj;
30007fail:
30008 return NULL;
30009}
30010
30011
30012SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30013 PyObject *resultobj = 0;
30014 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30015 long arg2 ;
30016 bool arg3 = (bool) true ;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 long val2 ;
30020 int ecode2 = 0 ;
30021 bool val3 ;
30022 int ecode3 = 0 ;
30023 PyObject * obj0 = 0 ;
30024 PyObject * obj1 = 0 ;
30025 PyObject * obj2 = 0 ;
30026 char * kwnames[] = {
30027 (char *) "self",(char *) "style",(char *) "add", NULL
30028 };
30029
30030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30032 if (!SWIG_IsOK(res1)) {
30033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30034 }
30035 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30036 ecode2 = SWIG_AsVal_long(obj1, &val2);
30037 if (!SWIG_IsOK(ecode2)) {
30038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30039 }
30040 arg2 = static_cast< long >(val2);
30041 if (obj2) {
30042 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30043 if (!SWIG_IsOK(ecode3)) {
30044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30045 }
30046 arg3 = static_cast< bool >(val3);
30047 }
30048 {
30049 PyThreadState* __tstate = wxPyBeginAllowThreads();
30050 (arg1)->SetSingleStyle(arg2,arg3);
30051 wxPyEndAllowThreads(__tstate);
30052 if (PyErr_Occurred()) SWIG_fail;
30053 }
30054 resultobj = SWIG_Py_Void();
30055 return resultobj;
30056fail:
30057 return NULL;
30058}
30059
30060
30061SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30062 PyObject *resultobj = 0;
30063 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30064 long arg2 ;
30065 int arg3 = (int) wxLIST_NEXT_ALL ;
30066 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30067 long result;
30068 void *argp1 = 0 ;
30069 int res1 = 0 ;
30070 long val2 ;
30071 int ecode2 = 0 ;
30072 int val3 ;
30073 int ecode3 = 0 ;
30074 int val4 ;
30075 int ecode4 = 0 ;
30076 PyObject * obj0 = 0 ;
30077 PyObject * obj1 = 0 ;
30078 PyObject * obj2 = 0 ;
30079 PyObject * obj3 = 0 ;
30080 char * kwnames[] = {
30081 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30082 };
30083
30084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30086 if (!SWIG_IsOK(res1)) {
30087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30088 }
30089 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30090 ecode2 = SWIG_AsVal_long(obj1, &val2);
30091 if (!SWIG_IsOK(ecode2)) {
30092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30093 }
30094 arg2 = static_cast< long >(val2);
30095 if (obj2) {
30096 ecode3 = SWIG_AsVal_int(obj2, &val3);
30097 if (!SWIG_IsOK(ecode3)) {
30098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30099 }
30100 arg3 = static_cast< int >(val3);
30101 }
30102 if (obj3) {
30103 ecode4 = SWIG_AsVal_int(obj3, &val4);
30104 if (!SWIG_IsOK(ecode4)) {
30105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30106 }
30107 arg4 = static_cast< int >(val4);
30108 }
30109 {
30110 PyThreadState* __tstate = wxPyBeginAllowThreads();
30111 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30112 wxPyEndAllowThreads(__tstate);
30113 if (PyErr_Occurred()) SWIG_fail;
30114 }
30115 resultobj = SWIG_From_long(static_cast< long >(result));
30116 return resultobj;
30117fail:
30118 return NULL;
30119}
30120
30121
30122SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30123 PyObject *resultobj = 0;
30124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30125 int arg2 ;
30126 wxImageList *result = 0 ;
30127 void *argp1 = 0 ;
30128 int res1 = 0 ;
30129 int val2 ;
30130 int ecode2 = 0 ;
30131 PyObject * obj0 = 0 ;
30132 PyObject * obj1 = 0 ;
30133 char * kwnames[] = {
30134 (char *) "self",(char *) "which", NULL
30135 };
30136
30137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30139 if (!SWIG_IsOK(res1)) {
30140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30141 }
30142 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30143 ecode2 = SWIG_AsVal_int(obj1, &val2);
30144 if (!SWIG_IsOK(ecode2)) {
30145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30146 }
30147 arg2 = static_cast< int >(val2);
30148 {
30149 PyThreadState* __tstate = wxPyBeginAllowThreads();
30150 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30151 wxPyEndAllowThreads(__tstate);
30152 if (PyErr_Occurred()) SWIG_fail;
30153 }
30154 {
30155 resultobj = wxPyMake_wxObject(result, (bool)0);
30156 }
30157 return resultobj;
30158fail:
30159 return NULL;
30160}
30161
30162
30163SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30164 PyObject *resultobj = 0;
30165 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30166 wxImageList *arg2 = (wxImageList *) 0 ;
30167 int arg3 ;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 void *argp2 = 0 ;
30171 int res2 = 0 ;
30172 int val3 ;
30173 int ecode3 = 0 ;
30174 PyObject * obj0 = 0 ;
30175 PyObject * obj1 = 0 ;
30176 PyObject * obj2 = 0 ;
30177 char * kwnames[] = {
30178 (char *) "self",(char *) "imageList",(char *) "which", NULL
30179 };
30180
30181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30183 if (!SWIG_IsOK(res1)) {
30184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30185 }
30186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30187 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30188 if (!SWIG_IsOK(res2)) {
30189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30190 }
30191 arg2 = reinterpret_cast< wxImageList * >(argp2);
30192 ecode3 = SWIG_AsVal_int(obj2, &val3);
30193 if (!SWIG_IsOK(ecode3)) {
30194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30195 }
30196 arg3 = static_cast< int >(val3);
30197 {
30198 PyThreadState* __tstate = wxPyBeginAllowThreads();
30199 (arg1)->SetImageList(arg2,arg3);
30200 wxPyEndAllowThreads(__tstate);
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
30203 resultobj = SWIG_Py_Void();
30204 return resultobj;
30205fail:
30206 return NULL;
30207}
30208
30209
30210SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30211 PyObject *resultobj = 0;
30212 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30213 wxImageList *arg2 = (wxImageList *) 0 ;
30214 int arg3 ;
30215 void *argp1 = 0 ;
30216 int res1 = 0 ;
30217 int res2 = 0 ;
30218 int val3 ;
30219 int ecode3 = 0 ;
30220 PyObject * obj0 = 0 ;
30221 PyObject * obj1 = 0 ;
30222 PyObject * obj2 = 0 ;
30223 char * kwnames[] = {
30224 (char *) "self",(char *) "imageList",(char *) "which", NULL
30225 };
30226
30227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30229 if (!SWIG_IsOK(res1)) {
30230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30231 }
30232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30233 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30234 if (!SWIG_IsOK(res2)) {
30235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30236 }
30237 ecode3 = SWIG_AsVal_int(obj2, &val3);
30238 if (!SWIG_IsOK(ecode3)) {
30239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30240 }
30241 arg3 = static_cast< int >(val3);
30242 {
30243 PyThreadState* __tstate = wxPyBeginAllowThreads();
30244 (arg1)->AssignImageList(arg2,arg3);
30245 wxPyEndAllowThreads(__tstate);
30246 if (PyErr_Occurred()) SWIG_fail;
30247 }
30248 resultobj = SWIG_Py_Void();
30249 return resultobj;
30250fail:
30251 return NULL;
7e08d4ef
RD
30252}
30253
30254
1bd55598
RD
30255SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30256 PyObject *resultobj = 0;
30257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30258 bool result;
30259 void *argp1 = 0 ;
30260 int res1 = 0 ;
30261 PyObject *swig_obj[1] ;
30262
30263 if (!args) SWIG_fail;
30264 swig_obj[0] = args;
30265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30266 if (!SWIG_IsOK(res1)) {
30267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30268 }
30269 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30270 {
30271 PyThreadState* __tstate = wxPyBeginAllowThreads();
30272 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30273 wxPyEndAllowThreads(__tstate);
30274 if (PyErr_Occurred()) SWIG_fail;
30275 }
30276 {
30277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30278 }
30279 return resultobj;
30280fail:
30281 return NULL;
44bf767a
RD
30282}
30283
30284
1bd55598
RD
30285SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30286 PyObject *resultobj = 0;
30287 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30288 bool result;
30289 void *argp1 = 0 ;
30290 int res1 = 0 ;
30291 PyObject *swig_obj[1] ;
30292
30293 if (!args) SWIG_fail;
30294 swig_obj[0] = args;
30295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30296 if (!SWIG_IsOK(res1)) {
30297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30298 }
30299 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30300 {
30301 PyThreadState* __tstate = wxPyBeginAllowThreads();
30302 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30303 wxPyEndAllowThreads(__tstate);
30304 if (PyErr_Occurred()) SWIG_fail;
30305 }
30306 {
30307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30308 }
30309 return resultobj;
30310fail:
30311 return NULL;
30312}
30313
30314
30315SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30316 PyObject *resultobj = 0;
30317 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30318 long arg2 ;
30319 void *argp1 = 0 ;
30320 int res1 = 0 ;
30321 long val2 ;
30322 int ecode2 = 0 ;
30323 PyObject * obj0 = 0 ;
30324 PyObject * obj1 = 0 ;
30325 char * kwnames[] = {
30326 (char *) "self",(char *) "item", NULL
30327 };
30328
30329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30331 if (!SWIG_IsOK(res1)) {
30332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30333 }
30334 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30335 ecode2 = SWIG_AsVal_long(obj1, &val2);
30336 if (!SWIG_IsOK(ecode2)) {
30337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30338 }
30339 arg2 = static_cast< long >(val2);
30340 {
30341 PyThreadState* __tstate = wxPyBeginAllowThreads();
30342 (arg1)->RefreshItem(arg2);
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_Py_Void();
30347 return resultobj;
30348fail:
30349 return NULL;
30350}
30351
30352
30353SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30356 long arg2 ;
30357 long arg3 ;
30358 void *argp1 = 0 ;
30359 int res1 = 0 ;
30360 long val2 ;
30361 int ecode2 = 0 ;
30362 long val3 ;
30363 int ecode3 = 0 ;
30364 PyObject * obj0 = 0 ;
30365 PyObject * obj1 = 0 ;
30366 PyObject * obj2 = 0 ;
30367 char * kwnames[] = {
30368 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30369 };
30370
30371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30373 if (!SWIG_IsOK(res1)) {
30374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30375 }
30376 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30377 ecode2 = SWIG_AsVal_long(obj1, &val2);
30378 if (!SWIG_IsOK(ecode2)) {
30379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30380 }
30381 arg2 = static_cast< long >(val2);
30382 ecode3 = SWIG_AsVal_long(obj2, &val3);
30383 if (!SWIG_IsOK(ecode3)) {
30384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30385 }
30386 arg3 = static_cast< long >(val3);
30387 {
30388 PyThreadState* __tstate = wxPyBeginAllowThreads();
30389 (arg1)->RefreshItems(arg2,arg3);
30390 wxPyEndAllowThreads(__tstate);
30391 if (PyErr_Occurred()) SWIG_fail;
30392 }
30393 resultobj = SWIG_Py_Void();
30394 return resultobj;
30395fail:
30396 return NULL;
30397}
30398
30399
30400SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30401 PyObject *resultobj = 0;
30402 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30403 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30404 bool result;
30405 void *argp1 = 0 ;
30406 int res1 = 0 ;
30407 int val2 ;
30408 int ecode2 = 0 ;
30409 PyObject * obj0 = 0 ;
30410 PyObject * obj1 = 0 ;
30411 char * kwnames[] = {
30412 (char *) "self",(char *) "flag", NULL
30413 };
30414
30415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30417 if (!SWIG_IsOK(res1)) {
30418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30419 }
30420 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30421 if (obj1) {
30422 ecode2 = SWIG_AsVal_int(obj1, &val2);
30423 if (!SWIG_IsOK(ecode2)) {
30424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30425 }
30426 arg2 = static_cast< int >(val2);
30427 }
30428 {
30429 PyThreadState* __tstate = wxPyBeginAllowThreads();
30430 result = (bool)(arg1)->Arrange(arg2);
30431 wxPyEndAllowThreads(__tstate);
30432 if (PyErr_Occurred()) SWIG_fail;
30433 }
30434 {
30435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30436 }
30437 return resultobj;
30438fail:
30439 return NULL;
30440}
30441
30442
30443SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30444 PyObject *resultobj = 0;
30445 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30446 long arg2 ;
30447 bool result;
30448 void *argp1 = 0 ;
30449 int res1 = 0 ;
30450 long val2 ;
30451 int ecode2 = 0 ;
30452 PyObject * obj0 = 0 ;
30453 PyObject * obj1 = 0 ;
30454 char * kwnames[] = {
30455 (char *) "self",(char *) "item", NULL
30456 };
30457
30458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30460 if (!SWIG_IsOK(res1)) {
30461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30462 }
30463 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30464 ecode2 = SWIG_AsVal_long(obj1, &val2);
30465 if (!SWIG_IsOK(ecode2)) {
30466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30467 }
30468 arg2 = static_cast< long >(val2);
30469 {
30470 PyThreadState* __tstate = wxPyBeginAllowThreads();
30471 result = (bool)(arg1)->DeleteItem(arg2);
30472 wxPyEndAllowThreads(__tstate);
30473 if (PyErr_Occurred()) SWIG_fail;
30474 }
30475 {
30476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30477 }
30478 return resultobj;
30479fail:
30480 return NULL;
d55e5bfc
RD
30481}
30482
30483
1bd55598
RD
30484SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30485 PyObject *resultobj = 0;
30486 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30487 bool result;
30488 void *argp1 = 0 ;
30489 int res1 = 0 ;
30490 PyObject *swig_obj[1] ;
30491
30492 if (!args) SWIG_fail;
30493 swig_obj[0] = args;
30494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30495 if (!SWIG_IsOK(res1)) {
30496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30497 }
30498 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30499 {
30500 PyThreadState* __tstate = wxPyBeginAllowThreads();
30501 result = (bool)(arg1)->DeleteAllItems();
30502 wxPyEndAllowThreads(__tstate);
30503 if (PyErr_Occurred()) SWIG_fail;
30504 }
30505 {
30506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30507 }
30508 return resultobj;
30509fail:
30510 return NULL;
30511}
30512
30513
30514SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30515 PyObject *resultobj = 0;
30516 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30517 int arg2 ;
30518 bool result;
30519 void *argp1 = 0 ;
30520 int res1 = 0 ;
30521 int val2 ;
30522 int ecode2 = 0 ;
30523 PyObject * obj0 = 0 ;
30524 PyObject * obj1 = 0 ;
30525 char * kwnames[] = {
30526 (char *) "self",(char *) "col", NULL
30527 };
30528
30529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30531 if (!SWIG_IsOK(res1)) {
30532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30533 }
30534 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30535 ecode2 = SWIG_AsVal_int(obj1, &val2);
30536 if (!SWIG_IsOK(ecode2)) {
30537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30538 }
30539 arg2 = static_cast< int >(val2);
30540 {
30541 PyThreadState* __tstate = wxPyBeginAllowThreads();
30542 result = (bool)(arg1)->DeleteColumn(arg2);
30543 wxPyEndAllowThreads(__tstate);
30544 if (PyErr_Occurred()) SWIG_fail;
30545 }
30546 {
30547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30548 }
30549 return resultobj;
30550fail:
30551 return NULL;
b411df4a
RD
30552}
30553
30554
1bd55598
RD
30555SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30556 PyObject *resultobj = 0;
30557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30558 bool result;
30559 void *argp1 = 0 ;
30560 int res1 = 0 ;
30561 PyObject *swig_obj[1] ;
30562
30563 if (!args) SWIG_fail;
30564 swig_obj[0] = args;
30565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30566 if (!SWIG_IsOK(res1)) {
30567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30568 }
30569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30570 {
30571 PyThreadState* __tstate = wxPyBeginAllowThreads();
30572 result = (bool)(arg1)->DeleteAllColumns();
30573 wxPyEndAllowThreads(__tstate);
30574 if (PyErr_Occurred()) SWIG_fail;
30575 }
30576 {
30577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30578 }
30579 return resultobj;
30580fail:
30581 return NULL;
b411df4a
RD
30582}
30583
30584
1bd55598
RD
30585SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30586 PyObject *resultobj = 0;
30587 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30588 void *argp1 = 0 ;
30589 int res1 = 0 ;
30590 PyObject *swig_obj[1] ;
30591
30592 if (!args) SWIG_fail;
30593 swig_obj[0] = args;
30594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30595 if (!SWIG_IsOK(res1)) {
30596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30597 }
30598 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30599 {
30600 PyThreadState* __tstate = wxPyBeginAllowThreads();
30601 (arg1)->ClearAll();
30602 wxPyEndAllowThreads(__tstate);
30603 if (PyErr_Occurred()) SWIG_fail;
30604 }
30605 resultobj = SWIG_Py_Void();
30606 return resultobj;
30607fail:
30608 return NULL;
30609}
30610
30611
30612SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30613 PyObject *resultobj = 0;
30614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30615 long arg2 ;
30616 void *argp1 = 0 ;
30617 int res1 = 0 ;
30618 long val2 ;
30619 int ecode2 = 0 ;
30620 PyObject * obj0 = 0 ;
30621 PyObject * obj1 = 0 ;
30622 char * kwnames[] = {
30623 (char *) "self",(char *) "item", NULL
30624 };
30625
30626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30628 if (!SWIG_IsOK(res1)) {
30629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30630 }
30631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30632 ecode2 = SWIG_AsVal_long(obj1, &val2);
30633 if (!SWIG_IsOK(ecode2)) {
30634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30635 }
30636 arg2 = static_cast< long >(val2);
30637 {
30638 PyThreadState* __tstate = wxPyBeginAllowThreads();
30639 (arg1)->EditLabel(arg2);
30640 wxPyEndAllowThreads(__tstate);
30641 if (PyErr_Occurred()) SWIG_fail;
30642 }
30643 resultobj = SWIG_Py_Void();
30644 return resultobj;
30645fail:
30646 return NULL;
30647}
30648
30649
30650SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30651 PyObject *resultobj = 0;
30652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30653 long arg2 ;
30654 bool result;
30655 void *argp1 = 0 ;
30656 int res1 = 0 ;
30657 long val2 ;
30658 int ecode2 = 0 ;
30659 PyObject * obj0 = 0 ;
30660 PyObject * obj1 = 0 ;
30661 char * kwnames[] = {
30662 (char *) "self",(char *) "item", NULL
30663 };
30664
30665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30667 if (!SWIG_IsOK(res1)) {
30668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30669 }
30670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30671 ecode2 = SWIG_AsVal_long(obj1, &val2);
30672 if (!SWIG_IsOK(ecode2)) {
30673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30674 }
30675 arg2 = static_cast< long >(val2);
30676 {
30677 PyThreadState* __tstate = wxPyBeginAllowThreads();
30678 result = (bool)(arg1)->EnsureVisible(arg2);
30679 wxPyEndAllowThreads(__tstate);
30680 if (PyErr_Occurred()) SWIG_fail;
30681 }
30682 {
30683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30684 }
30685 return resultobj;
30686fail:
30687 return NULL;
30688}
30689
30690
30691SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30692 PyObject *resultobj = 0;
30693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30694 long arg2 ;
30695 wxString *arg3 = 0 ;
30696 bool arg4 = (bool) false ;
30697 long result;
30698 void *argp1 = 0 ;
30699 int res1 = 0 ;
30700 long val2 ;
30701 int ecode2 = 0 ;
30702 bool temp3 = false ;
30703 bool val4 ;
30704 int ecode4 = 0 ;
30705 PyObject * obj0 = 0 ;
30706 PyObject * obj1 = 0 ;
30707 PyObject * obj2 = 0 ;
30708 PyObject * obj3 = 0 ;
30709 char * kwnames[] = {
30710 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30711 };
30712
30713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30715 if (!SWIG_IsOK(res1)) {
30716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30717 }
30718 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30719 ecode2 = SWIG_AsVal_long(obj1, &val2);
30720 if (!SWIG_IsOK(ecode2)) {
30721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30722 }
30723 arg2 = static_cast< long >(val2);
30724 {
30725 arg3 = wxString_in_helper(obj2);
30726 if (arg3 == NULL) SWIG_fail;
30727 temp3 = true;
30728 }
30729 if (obj3) {
30730 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30731 if (!SWIG_IsOK(ecode4)) {
30732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30733 }
30734 arg4 = static_cast< bool >(val4);
30735 }
30736 {
30737 PyThreadState* __tstate = wxPyBeginAllowThreads();
30738 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30739 wxPyEndAllowThreads(__tstate);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 resultobj = SWIG_From_long(static_cast< long >(result));
30743 {
30744 if (temp3)
30745 delete arg3;
30746 }
30747 return resultobj;
30748fail:
30749 {
30750 if (temp3)
30751 delete arg3;
30752 }
30753 return NULL;
30754}
30755
30756
30757SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30758 PyObject *resultobj = 0;
30759 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30760 long arg2 ;
30761 long arg3 ;
30762 long result;
30763 void *argp1 = 0 ;
30764 int res1 = 0 ;
30765 long val2 ;
30766 int ecode2 = 0 ;
30767 long val3 ;
30768 int ecode3 = 0 ;
30769 PyObject * obj0 = 0 ;
30770 PyObject * obj1 = 0 ;
30771 PyObject * obj2 = 0 ;
30772 char * kwnames[] = {
30773 (char *) "self",(char *) "start",(char *) "data", NULL
30774 };
30775
30776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30778 if (!SWIG_IsOK(res1)) {
30779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30780 }
30781 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30782 ecode2 = SWIG_AsVal_long(obj1, &val2);
30783 if (!SWIG_IsOK(ecode2)) {
30784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30785 }
30786 arg2 = static_cast< long >(val2);
30787 ecode3 = SWIG_AsVal_long(obj2, &val3);
30788 if (!SWIG_IsOK(ecode3)) {
30789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30790 }
30791 arg3 = static_cast< long >(val3);
30792 {
30793 PyThreadState* __tstate = wxPyBeginAllowThreads();
30794 result = (long)(arg1)->FindItem(arg2,arg3);
30795 wxPyEndAllowThreads(__tstate);
30796 if (PyErr_Occurred()) SWIG_fail;
30797 }
30798 resultobj = SWIG_From_long(static_cast< long >(result));
30799 return resultobj;
30800fail:
30801 return NULL;
30802}
30803
30804
30805SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30806 PyObject *resultobj = 0;
30807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30808 long arg2 ;
30809 wxPoint *arg3 = 0 ;
30810 int arg4 ;
30811 long result;
30812 void *argp1 = 0 ;
30813 int res1 = 0 ;
30814 long val2 ;
30815 int ecode2 = 0 ;
30816 wxPoint temp3 ;
30817 int val4 ;
30818 int ecode4 = 0 ;
30819 PyObject * obj0 = 0 ;
30820 PyObject * obj1 = 0 ;
30821 PyObject * obj2 = 0 ;
30822 PyObject * obj3 = 0 ;
30823 char * kwnames[] = {
30824 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30825 };
30826
30827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30829 if (!SWIG_IsOK(res1)) {
30830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30831 }
30832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30833 ecode2 = SWIG_AsVal_long(obj1, &val2);
30834 if (!SWIG_IsOK(ecode2)) {
30835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30836 }
30837 arg2 = static_cast< long >(val2);
30838 {
30839 arg3 = &temp3;
30840 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30841 }
30842 ecode4 = SWIG_AsVal_int(obj3, &val4);
30843 if (!SWIG_IsOK(ecode4)) {
30844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30845 }
30846 arg4 = static_cast< int >(val4);
30847 {
30848 PyThreadState* __tstate = wxPyBeginAllowThreads();
30849 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30850 wxPyEndAllowThreads(__tstate);
30851 if (PyErr_Occurred()) SWIG_fail;
30852 }
30853 resultobj = SWIG_From_long(static_cast< long >(result));
30854 return resultobj;
30855fail:
30856 return NULL;
30857}
30858
30859
30860SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30861 PyObject *resultobj = 0;
30862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30863 wxPoint *arg2 = 0 ;
30864 int *arg3 = 0 ;
30865 long result;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 wxPoint temp2 ;
30869 int temp3 ;
30870 int res3 = SWIG_TMPOBJ ;
30871 PyObject * obj0 = 0 ;
30872 PyObject * obj1 = 0 ;
30873 char * kwnames[] = {
30874 (char *) "self",(char *) "point", NULL
30875 };
30876
30877 arg3 = &temp3;
30878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30880 if (!SWIG_IsOK(res1)) {
30881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30882 }
30883 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30884 {
30885 arg2 = &temp2;
30886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30887 }
30888 {
30889 PyThreadState* __tstate = wxPyBeginAllowThreads();
30890 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30891 wxPyEndAllowThreads(__tstate);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 resultobj = SWIG_From_long(static_cast< long >(result));
30895 if (SWIG_IsTmpObj(res3)) {
30896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30897 } else {
30898 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30900 }
30901 return resultobj;
30902fail:
30903 return NULL;
30904}
30905
30906
704eda0c
RD
30907SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30908 PyObject *resultobj = 0;
30909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30910 wxPoint *arg2 = 0 ;
30911 int *arg3 = 0 ;
30912 long *arg4 = (long *) 0 ;
30913 long result;
30914 void *argp1 = 0 ;
30915 int res1 = 0 ;
30916 wxPoint temp2 ;
30917 int temp3 ;
30918 int res3 = SWIG_TMPOBJ ;
30919 long temp4 ;
30920 int res4 = SWIG_TMPOBJ ;
30921 PyObject * obj0 = 0 ;
30922 PyObject * obj1 = 0 ;
30923 char * kwnames[] = {
30924 (char *) "self",(char *) "point", NULL
30925 };
30926
30927 arg3 = &temp3;
30928 arg4 = &temp4;
30929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30933 }
30934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30935 {
30936 arg2 = &temp2;
30937 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30938 }
30939 {
30940 PyThreadState* __tstate = wxPyBeginAllowThreads();
30941 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30942 wxPyEndAllowThreads(__tstate);
30943 if (PyErr_Occurred()) SWIG_fail;
30944 }
30945 resultobj = SWIG_From_long(static_cast< long >(result));
30946 if (SWIG_IsTmpObj(res3)) {
30947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30948 } else {
30949 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30951 }
30952 if (SWIG_IsTmpObj(res4)) {
30953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30954 } else {
30955 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30957 }
30958 return resultobj;
30959fail:
30960 return NULL;
30961}
30962
30963
1bd55598
RD
30964SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30965 PyObject *resultobj = 0;
30966 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30967 wxListItem *arg2 = 0 ;
30968 long result;
30969 void *argp1 = 0 ;
30970 int res1 = 0 ;
30971 void *argp2 = 0 ;
30972 int res2 = 0 ;
30973 PyObject * obj0 = 0 ;
30974 PyObject * obj1 = 0 ;
30975 char * kwnames[] = {
30976 (char *) "self",(char *) "info", NULL
30977 };
30978
30979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30981 if (!SWIG_IsOK(res1)) {
30982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30983 }
30984 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30986 if (!SWIG_IsOK(res2)) {
30987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30988 }
30989 if (!argp2) {
30990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30991 }
30992 arg2 = reinterpret_cast< wxListItem * >(argp2);
30993 {
30994 PyThreadState* __tstate = wxPyBeginAllowThreads();
30995 result = (long)(arg1)->InsertItem(*arg2);
30996 wxPyEndAllowThreads(__tstate);
30997 if (PyErr_Occurred()) SWIG_fail;
30998 }
30999 resultobj = SWIG_From_long(static_cast< long >(result));
31000 return resultobj;
31001fail:
31002 return NULL;
31003}
31004
31005
31006SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31007 PyObject *resultobj = 0;
31008 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31009 long arg2 ;
31010 wxString *arg3 = 0 ;
31011 int arg4 = (int) -1 ;
31012 long result;
31013 void *argp1 = 0 ;
31014 int res1 = 0 ;
31015 long val2 ;
31016 int ecode2 = 0 ;
31017 bool temp3 = false ;
31018 int val4 ;
31019 int ecode4 = 0 ;
31020 PyObject * obj0 = 0 ;
31021 PyObject * obj1 = 0 ;
31022 PyObject * obj2 = 0 ;
31023 PyObject * obj3 = 0 ;
31024 char * kwnames[] = {
31025 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31026 };
31027
31028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31030 if (!SWIG_IsOK(res1)) {
31031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31032 }
31033 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31034 ecode2 = SWIG_AsVal_long(obj1, &val2);
31035 if (!SWIG_IsOK(ecode2)) {
31036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31037 }
31038 arg2 = static_cast< long >(val2);
31039 {
31040 arg3 = wxString_in_helper(obj2);
31041 if (arg3 == NULL) SWIG_fail;
31042 temp3 = true;
31043 }
31044 if (obj3) {
31045 ecode4 = SWIG_AsVal_int(obj3, &val4);
31046 if (!SWIG_IsOK(ecode4)) {
31047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31048 }
31049 arg4 = static_cast< int >(val4);
31050 }
31051 {
31052 PyThreadState* __tstate = wxPyBeginAllowThreads();
31053 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31054 wxPyEndAllowThreads(__tstate);
31055 if (PyErr_Occurred()) SWIG_fail;
31056 }
31057 resultobj = SWIG_From_long(static_cast< long >(result));
31058 {
31059 if (temp3)
31060 delete arg3;
31061 }
31062 return resultobj;
31063fail:
31064 {
31065 if (temp3)
31066 delete arg3;
31067 }
31068 return NULL;
31069}
31070
31071
31072SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31073 PyObject *resultobj = 0;
31074 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31075 long arg2 ;
31076 int arg3 ;
31077 long result;
31078 void *argp1 = 0 ;
31079 int res1 = 0 ;
31080 long val2 ;
31081 int ecode2 = 0 ;
31082 int val3 ;
31083 int ecode3 = 0 ;
31084 PyObject * obj0 = 0 ;
31085 PyObject * obj1 = 0 ;
31086 PyObject * obj2 = 0 ;
31087 char * kwnames[] = {
31088 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31089 };
31090
31091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31093 if (!SWIG_IsOK(res1)) {
31094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31095 }
31096 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31097 ecode2 = SWIG_AsVal_long(obj1, &val2);
31098 if (!SWIG_IsOK(ecode2)) {
31099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31100 }
31101 arg2 = static_cast< long >(val2);
31102 ecode3 = SWIG_AsVal_int(obj2, &val3);
31103 if (!SWIG_IsOK(ecode3)) {
31104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31105 }
31106 arg3 = static_cast< int >(val3);
31107 {
31108 PyThreadState* __tstate = wxPyBeginAllowThreads();
31109 result = (long)(arg1)->InsertItem(arg2,arg3);
31110 wxPyEndAllowThreads(__tstate);
31111 if (PyErr_Occurred()) SWIG_fail;
31112 }
31113 resultobj = SWIG_From_long(static_cast< long >(result));
31114 return resultobj;
31115fail:
31116 return NULL;
31117}
31118
31119
31120SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31121 PyObject *resultobj = 0;
31122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31123 long arg2 ;
31124 wxString *arg3 = 0 ;
31125 int arg4 ;
31126 long result;
31127 void *argp1 = 0 ;
31128 int res1 = 0 ;
31129 long val2 ;
31130 int ecode2 = 0 ;
31131 bool temp3 = false ;
31132 int val4 ;
31133 int ecode4 = 0 ;
31134 PyObject * obj0 = 0 ;
31135 PyObject * obj1 = 0 ;
31136 PyObject * obj2 = 0 ;
31137 PyObject * obj3 = 0 ;
31138 char * kwnames[] = {
31139 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31140 };
31141
31142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31144 if (!SWIG_IsOK(res1)) {
31145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31146 }
31147 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31148 ecode2 = SWIG_AsVal_long(obj1, &val2);
31149 if (!SWIG_IsOK(ecode2)) {
31150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31151 }
31152 arg2 = static_cast< long >(val2);
31153 {
31154 arg3 = wxString_in_helper(obj2);
31155 if (arg3 == NULL) SWIG_fail;
31156 temp3 = true;
31157 }
31158 ecode4 = SWIG_AsVal_int(obj3, &val4);
31159 if (!SWIG_IsOK(ecode4)) {
31160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31161 }
31162 arg4 = static_cast< int >(val4);
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 resultobj = SWIG_From_long(static_cast< long >(result));
31170 {
31171 if (temp3)
31172 delete arg3;
31173 }
31174 return resultobj;
31175fail:
31176 {
31177 if (temp3)
31178 delete arg3;
31179 }
31180 return NULL;
31181}
31182
31183
31184SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31185 PyObject *resultobj = 0;
31186 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31187 long arg2 ;
31188 wxListItem *arg3 = 0 ;
31189 long result;
31190 void *argp1 = 0 ;
31191 int res1 = 0 ;
31192 long val2 ;
31193 int ecode2 = 0 ;
31194 void *argp3 = 0 ;
31195 int res3 = 0 ;
31196 PyObject * obj0 = 0 ;
31197 PyObject * obj1 = 0 ;
31198 PyObject * obj2 = 0 ;
31199 char * kwnames[] = {
31200 (char *) "self",(char *) "col",(char *) "info", NULL
31201 };
31202
31203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31205 if (!SWIG_IsOK(res1)) {
31206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31207 }
31208 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31209 ecode2 = SWIG_AsVal_long(obj1, &val2);
31210 if (!SWIG_IsOK(ecode2)) {
31211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31212 }
31213 arg2 = static_cast< long >(val2);
31214 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31215 if (!SWIG_IsOK(res3)) {
31216 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31217 }
31218 if (!argp3) {
31219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31220 }
31221 arg3 = reinterpret_cast< wxListItem * >(argp3);
31222 {
31223 PyThreadState* __tstate = wxPyBeginAllowThreads();
31224 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31225 wxPyEndAllowThreads(__tstate);
31226 if (PyErr_Occurred()) SWIG_fail;
31227 }
31228 resultobj = SWIG_From_long(static_cast< long >(result));
31229 return resultobj;
31230fail:
31231 return NULL;
31232}
31233
31234
31235SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31236 PyObject *resultobj = 0;
31237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31238 long arg2 ;
31239 wxString *arg3 = 0 ;
31240 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31241 int arg5 = (int) -1 ;
31242 long result;
31243 void *argp1 = 0 ;
31244 int res1 = 0 ;
31245 long val2 ;
31246 int ecode2 = 0 ;
31247 bool temp3 = false ;
31248 int val4 ;
31249 int ecode4 = 0 ;
31250 int val5 ;
31251 int ecode5 = 0 ;
31252 PyObject * obj0 = 0 ;
31253 PyObject * obj1 = 0 ;
31254 PyObject * obj2 = 0 ;
31255 PyObject * obj3 = 0 ;
31256 PyObject * obj4 = 0 ;
31257 char * kwnames[] = {
31258 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31259 };
31260
31261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31265 }
31266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31267 ecode2 = SWIG_AsVal_long(obj1, &val2);
31268 if (!SWIG_IsOK(ecode2)) {
31269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31270 }
31271 arg2 = static_cast< long >(val2);
31272 {
31273 arg3 = wxString_in_helper(obj2);
31274 if (arg3 == NULL) SWIG_fail;
31275 temp3 = true;
31276 }
31277 if (obj3) {
31278 ecode4 = SWIG_AsVal_int(obj3, &val4);
31279 if (!SWIG_IsOK(ecode4)) {
31280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31281 }
31282 arg4 = static_cast< int >(val4);
31283 }
31284 if (obj4) {
31285 ecode5 = SWIG_AsVal_int(obj4, &val5);
31286 if (!SWIG_IsOK(ecode5)) {
31287 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31288 }
31289 arg5 = static_cast< int >(val5);
31290 }
31291 {
31292 PyThreadState* __tstate = wxPyBeginAllowThreads();
31293 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31294 wxPyEndAllowThreads(__tstate);
31295 if (PyErr_Occurred()) SWIG_fail;
31296 }
31297 resultobj = SWIG_From_long(static_cast< long >(result));
31298 {
31299 if (temp3)
31300 delete arg3;
31301 }
31302 return resultobj;
31303fail:
31304 {
31305 if (temp3)
31306 delete arg3;
31307 }
31308 return NULL;
31309}
31310
31311
31312SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31313 PyObject *resultobj = 0;
31314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31315 long arg2 ;
31316 void *argp1 = 0 ;
31317 int res1 = 0 ;
31318 long val2 ;
31319 int ecode2 = 0 ;
31320 PyObject * obj0 = 0 ;
31321 PyObject * obj1 = 0 ;
31322 char * kwnames[] = {
31323 (char *) "self",(char *) "count", NULL
31324 };
31325
31326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31328 if (!SWIG_IsOK(res1)) {
31329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31330 }
31331 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31332 ecode2 = SWIG_AsVal_long(obj1, &val2);
31333 if (!SWIG_IsOK(ecode2)) {
31334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31335 }
31336 arg2 = static_cast< long >(val2);
31337 {
31338 PyThreadState* __tstate = wxPyBeginAllowThreads();
31339 (arg1)->SetItemCount(arg2);
31340 wxPyEndAllowThreads(__tstate);
31341 if (PyErr_Occurred()) SWIG_fail;
31342 }
31343 resultobj = SWIG_Py_Void();
31344 return resultobj;
31345fail:
31346 return NULL;
31347}
31348
31349
31350SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31351 PyObject *resultobj = 0;
31352 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31353 int arg2 ;
31354 int arg3 ;
31355 bool result;
31356 void *argp1 = 0 ;
31357 int res1 = 0 ;
31358 int val2 ;
31359 int ecode2 = 0 ;
31360 int val3 ;
31361 int ecode3 = 0 ;
31362 PyObject * obj0 = 0 ;
31363 PyObject * obj1 = 0 ;
31364 PyObject * obj2 = 0 ;
31365 char * kwnames[] = {
31366 (char *) "self",(char *) "dx",(char *) "dy", NULL
31367 };
31368
31369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31371 if (!SWIG_IsOK(res1)) {
31372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31373 }
31374 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31375 ecode2 = SWIG_AsVal_int(obj1, &val2);
31376 if (!SWIG_IsOK(ecode2)) {
31377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31378 }
31379 arg2 = static_cast< int >(val2);
31380 ecode3 = SWIG_AsVal_int(obj2, &val3);
31381 if (!SWIG_IsOK(ecode3)) {
31382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31383 }
31384 arg3 = static_cast< int >(val3);
31385 {
31386 PyThreadState* __tstate = wxPyBeginAllowThreads();
31387 result = (bool)(arg1)->ScrollList(arg2,arg3);
31388 wxPyEndAllowThreads(__tstate);
31389 if (PyErr_Occurred()) SWIG_fail;
31390 }
31391 {
31392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31393 }
31394 return resultobj;
31395fail:
31396 return NULL;
31397}
31398
31399
31400SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = 0;
31402 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31403 long arg2 ;
31404 wxColour *arg3 = 0 ;
31405 void *argp1 = 0 ;
31406 int res1 = 0 ;
31407 long val2 ;
31408 int ecode2 = 0 ;
31409 wxColour temp3 ;
31410 PyObject * obj0 = 0 ;
31411 PyObject * obj1 = 0 ;
31412 PyObject * obj2 = 0 ;
31413 char * kwnames[] = {
31414 (char *) "self",(char *) "item",(char *) "col", NULL
31415 };
31416
31417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31419 if (!SWIG_IsOK(res1)) {
31420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31421 }
31422 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31423 ecode2 = SWIG_AsVal_long(obj1, &val2);
31424 if (!SWIG_IsOK(ecode2)) {
31425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31426 }
31427 arg2 = static_cast< long >(val2);
31428 {
31429 arg3 = &temp3;
31430 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31431 }
31432 {
31433 PyThreadState* __tstate = wxPyBeginAllowThreads();
31434 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31435 wxPyEndAllowThreads(__tstate);
31436 if (PyErr_Occurred()) SWIG_fail;
31437 }
31438 resultobj = SWIG_Py_Void();
31439 return resultobj;
31440fail:
31441 return NULL;
31442}
31443
31444
31445SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31446 PyObject *resultobj = 0;
31447 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31448 long arg2 ;
31449 wxColour result;
31450 void *argp1 = 0 ;
31451 int res1 = 0 ;
31452 long val2 ;
31453 int ecode2 = 0 ;
31454 PyObject * obj0 = 0 ;
31455 PyObject * obj1 = 0 ;
31456 char * kwnames[] = {
31457 (char *) "self",(char *) "item", NULL
31458 };
31459
31460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31462 if (!SWIG_IsOK(res1)) {
31463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31464 }
31465 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31466 ecode2 = SWIG_AsVal_long(obj1, &val2);
31467 if (!SWIG_IsOK(ecode2)) {
31468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31469 }
31470 arg2 = static_cast< long >(val2);
31471 {
31472 PyThreadState* __tstate = wxPyBeginAllowThreads();
31473 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31474 wxPyEndAllowThreads(__tstate);
31475 if (PyErr_Occurred()) SWIG_fail;
31476 }
31477 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31478 return resultobj;
31479fail:
31480 return NULL;
31481}
31482
31483
31484SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31485 PyObject *resultobj = 0;
31486 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31487 long arg2 ;
31488 wxColour *arg3 = 0 ;
31489 void *argp1 = 0 ;
31490 int res1 = 0 ;
31491 long val2 ;
31492 int ecode2 = 0 ;
31493 wxColour temp3 ;
31494 PyObject * obj0 = 0 ;
31495 PyObject * obj1 = 0 ;
31496 PyObject * obj2 = 0 ;
31497 char * kwnames[] = {
31498 (char *) "self",(char *) "item",(char *) "col", NULL
31499 };
31500
31501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31503 if (!SWIG_IsOK(res1)) {
31504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31505 }
31506 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31507 ecode2 = SWIG_AsVal_long(obj1, &val2);
31508 if (!SWIG_IsOK(ecode2)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31510 }
31511 arg2 = static_cast< long >(val2);
31512 {
31513 arg3 = &temp3;
31514 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31515 }
31516 {
31517 PyThreadState* __tstate = wxPyBeginAllowThreads();
31518 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31519 wxPyEndAllowThreads(__tstate);
31520 if (PyErr_Occurred()) SWIG_fail;
31521 }
31522 resultobj = SWIG_Py_Void();
31523 return resultobj;
31524fail:
31525 return NULL;
31526}
31527
31528
31529SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31530 PyObject *resultobj = 0;
31531 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31532 long arg2 ;
31533 wxColour result;
31534 void *argp1 = 0 ;
31535 int res1 = 0 ;
31536 long val2 ;
31537 int ecode2 = 0 ;
31538 PyObject * obj0 = 0 ;
31539 PyObject * obj1 = 0 ;
31540 char * kwnames[] = {
31541 (char *) "self",(char *) "item", NULL
31542 };
31543
31544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31546 if (!SWIG_IsOK(res1)) {
31547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31548 }
31549 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31550 ecode2 = SWIG_AsVal_long(obj1, &val2);
31551 if (!SWIG_IsOK(ecode2)) {
31552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31553 }
31554 arg2 = static_cast< long >(val2);
31555 {
31556 PyThreadState* __tstate = wxPyBeginAllowThreads();
31557 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31558 wxPyEndAllowThreads(__tstate);
31559 if (PyErr_Occurred()) SWIG_fail;
31560 }
31561 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31562 return resultobj;
31563fail:
31564 return NULL;
31565}
31566
31567
31568SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31569 PyObject *resultobj = 0;
31570 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31571 long arg2 ;
31572 wxFont *arg3 = 0 ;
31573 void *argp1 = 0 ;
31574 int res1 = 0 ;
31575 long val2 ;
31576 int ecode2 = 0 ;
31577 void *argp3 = 0 ;
31578 int res3 = 0 ;
31579 PyObject * obj0 = 0 ;
31580 PyObject * obj1 = 0 ;
31581 PyObject * obj2 = 0 ;
31582 char * kwnames[] = {
31583 (char *) "self",(char *) "item",(char *) "f", NULL
31584 };
31585
31586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31588 if (!SWIG_IsOK(res1)) {
31589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31590 }
31591 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31592 ecode2 = SWIG_AsVal_long(obj1, &val2);
31593 if (!SWIG_IsOK(ecode2)) {
31594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31595 }
31596 arg2 = static_cast< long >(val2);
31597 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31598 if (!SWIG_IsOK(res3)) {
31599 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31600 }
31601 if (!argp3) {
31602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31603 }
31604 arg3 = reinterpret_cast< wxFont * >(argp3);
31605 {
31606 PyThreadState* __tstate = wxPyBeginAllowThreads();
31607 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31608 wxPyEndAllowThreads(__tstate);
31609 if (PyErr_Occurred()) SWIG_fail;
31610 }
31611 resultobj = SWIG_Py_Void();
31612 return resultobj;
31613fail:
31614 return NULL;
31615}
31616
31617
31618SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31619 PyObject *resultobj = 0;
31620 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31621 long arg2 ;
31622 wxFont result;
31623 void *argp1 = 0 ;
31624 int res1 = 0 ;
31625 long val2 ;
31626 int ecode2 = 0 ;
31627 PyObject * obj0 = 0 ;
31628 PyObject * obj1 = 0 ;
31629 char * kwnames[] = {
31630 (char *) "self",(char *) "item", NULL
31631 };
31632
31633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31635 if (!SWIG_IsOK(res1)) {
31636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31637 }
31638 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31639 ecode2 = SWIG_AsVal_long(obj1, &val2);
31640 if (!SWIG_IsOK(ecode2)) {
31641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31642 }
31643 arg2 = static_cast< long >(val2);
31644 {
31645 PyThreadState* __tstate = wxPyBeginAllowThreads();
31646 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31647 wxPyEndAllowThreads(__tstate);
31648 if (PyErr_Occurred()) SWIG_fail;
31649 }
31650 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31651 return resultobj;
31652fail:
31653 return NULL;
31654}
31655
31656
31657SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31658 PyObject *resultobj = 0;
31659 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31660 PyObject *arg2 = (PyObject *) 0 ;
31661 bool result;
31662 void *argp1 = 0 ;
31663 int res1 = 0 ;
31664 PyObject * obj0 = 0 ;
31665 PyObject * obj1 = 0 ;
31666 char * kwnames[] = {
31667 (char *) "self",(char *) "func", NULL
31668 };
31669
31670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31672 if (!SWIG_IsOK(res1)) {
31673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31674 }
31675 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31676 arg2 = obj1;
31677 {
31678 PyThreadState* __tstate = wxPyBeginAllowThreads();
31679 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 {
31684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31685 }
31686 return resultobj;
31687fail:
31688 return NULL;
b411df4a
RD
31689}
31690
31691
1bd55598
RD
31692SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31693 PyObject *resultobj = 0;
31694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31695 wxWindow *result = 0 ;
31696 void *argp1 = 0 ;
31697 int res1 = 0 ;
31698 PyObject *swig_obj[1] ;
31699
31700 if (!args) SWIG_fail;
31701 swig_obj[0] = args;
31702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31703 if (!SWIG_IsOK(res1)) {
31704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31705 }
31706 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 {
31714 resultobj = wxPyMake_wxObject(result, 0);
31715 }
31716 return resultobj;
31717fail:
31718 return NULL;
7993762b
RD
31719}
31720
31721
1bd55598
RD
31722SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31723 PyObject *resultobj = 0;
31724 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31725 SwigValueWrapper<wxVisualAttributes > result;
31726 int val1 ;
31727 int ecode1 = 0 ;
31728 PyObject * obj0 = 0 ;
31729 char * kwnames[] = {
31730 (char *) "variant", NULL
31731 };
31732
31733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31734 if (obj0) {
31735 ecode1 = SWIG_AsVal_int(obj0, &val1);
31736 if (!SWIG_IsOK(ecode1)) {
31737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31738 }
31739 arg1 = static_cast< wxWindowVariant >(val1);
31740 }
31741 {
31742 if (!wxPyCheckForApp()) SWIG_fail;
31743 PyThreadState* __tstate = wxPyBeginAllowThreads();
31744 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31745 wxPyEndAllowThreads(__tstate);
31746 if (PyErr_Occurred()) SWIG_fail;
31747 }
31748 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31749 return resultobj;
31750fail:
31751 return NULL;
31752}
31753
31754
31755SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31756 PyObject *obj;
31757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31758 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31759 return SWIG_Py_Void();
31760}
31761
31762SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31763 return SWIG_Python_InitShadowInstance(args);
31764}
31765
31766SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31767 PyObject *resultobj = 0;
31768 wxWindow *arg1 = (wxWindow *) 0 ;
31769 int arg2 = (int) -1 ;
31770 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31771 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31772 wxSize const &arg4_defvalue = wxDefaultSize ;
31773 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31774 long arg5 = (long) wxLC_REPORT ;
31775 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31776 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31777 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31778 wxString *arg7 = (wxString *) &arg7_defvalue ;
31779 wxListView *result = 0 ;
31780 void *argp1 = 0 ;
31781 int res1 = 0 ;
31782 int val2 ;
31783 int ecode2 = 0 ;
31784 wxPoint temp3 ;
31785 wxSize temp4 ;
31786 long val5 ;
31787 int ecode5 = 0 ;
31788 void *argp6 = 0 ;
31789 int res6 = 0 ;
31790 bool temp7 = false ;
31791 PyObject * obj0 = 0 ;
31792 PyObject * obj1 = 0 ;
31793 PyObject * obj2 = 0 ;
31794 PyObject * obj3 = 0 ;
31795 PyObject * obj4 = 0 ;
31796 PyObject * obj5 = 0 ;
31797 PyObject * obj6 = 0 ;
31798 char * kwnames[] = {
31799 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31800 };
31801
31802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31804 if (!SWIG_IsOK(res1)) {
31805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31806 }
31807 arg1 = reinterpret_cast< wxWindow * >(argp1);
31808 if (obj1) {
31809 ecode2 = SWIG_AsVal_int(obj1, &val2);
31810 if (!SWIG_IsOK(ecode2)) {
31811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31812 }
31813 arg2 = static_cast< int >(val2);
31814 }
31815 if (obj2) {
b411df4a 31816 {
1bd55598
RD
31817 arg3 = &temp3;
31818 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 31819 }
1bd55598
RD
31820 }
31821 if (obj3) {
31822 {
31823 arg4 = &temp4;
31824 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 31825 }
1bd55598
RD
31826 }
31827 if (obj4) {
31828 ecode5 = SWIG_AsVal_long(obj4, &val5);
31829 if (!SWIG_IsOK(ecode5)) {
31830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31831 }
31832 arg5 = static_cast< long >(val5);
31833 }
31834 if (obj5) {
31835 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31836 if (!SWIG_IsOK(res6)) {
31837 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31838 }
1bd55598
RD
31839 if (!argp6) {
31840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31841 }
1bd55598
RD
31842 arg6 = reinterpret_cast< wxValidator * >(argp6);
31843 }
31844 if (obj6) {
b411df4a 31845 {
1bd55598
RD
31846 arg7 = wxString_in_helper(obj6);
31847 if (arg7 == NULL) SWIG_fail;
31848 temp7 = true;
b411df4a 31849 }
1bd55598
RD
31850 }
31851 {
31852 if (!wxPyCheckForApp()) SWIG_fail;
31853 PyThreadState* __tstate = wxPyBeginAllowThreads();
31854 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31855 wxPyEndAllowThreads(__tstate);
31856 if (PyErr_Occurred()) SWIG_fail;
31857 }
31858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31859 {
31860 if (temp7)
31861 delete arg7;
31862 }
31863 return resultobj;
31864fail:
31865 {
31866 if (temp7)
31867 delete arg7;
31868 }
31869 return NULL;
b411df4a
RD
31870}
31871
31872
1bd55598
RD
31873SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31874 PyObject *resultobj = 0;
31875 wxListView *result = 0 ;
31876
31877 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31878 {
31879 if (!wxPyCheckForApp()) SWIG_fail;
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 result = (wxListView *)new wxListView();
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31886 return resultobj;
31887fail:
31888 return NULL;
31889}
31890
31891
31892SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31893 PyObject *resultobj = 0;
31894 wxListView *arg1 = (wxListView *) 0 ;
31895 wxWindow *arg2 = (wxWindow *) 0 ;
31896 int arg3 = (int) -1 ;
31897 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31898 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31899 wxSize const &arg5_defvalue = wxDefaultSize ;
31900 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31901 long arg6 = (long) wxLC_REPORT ;
31902 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31903 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31904 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31905 wxString *arg8 = (wxString *) &arg8_defvalue ;
31906 bool result;
31907 void *argp1 = 0 ;
31908 int res1 = 0 ;
31909 void *argp2 = 0 ;
31910 int res2 = 0 ;
31911 int val3 ;
31912 int ecode3 = 0 ;
31913 wxPoint temp4 ;
31914 wxSize temp5 ;
31915 long val6 ;
31916 int ecode6 = 0 ;
31917 void *argp7 = 0 ;
31918 int res7 = 0 ;
31919 bool temp8 = false ;
31920 PyObject * obj0 = 0 ;
31921 PyObject * obj1 = 0 ;
31922 PyObject * obj2 = 0 ;
31923 PyObject * obj3 = 0 ;
31924 PyObject * obj4 = 0 ;
31925 PyObject * obj5 = 0 ;
31926 PyObject * obj6 = 0 ;
31927 PyObject * obj7 = 0 ;
31928 char * kwnames[] = {
31929 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31930 };
31931
31932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31934 if (!SWIG_IsOK(res1)) {
31935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31936 }
31937 arg1 = reinterpret_cast< wxListView * >(argp1);
31938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31939 if (!SWIG_IsOK(res2)) {
31940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31941 }
31942 arg2 = reinterpret_cast< wxWindow * >(argp2);
31943 if (obj2) {
31944 ecode3 = SWIG_AsVal_int(obj2, &val3);
31945 if (!SWIG_IsOK(ecode3)) {
31946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31947 }
31948 arg3 = static_cast< int >(val3);
31949 }
31950 if (obj3) {
d55e5bfc 31951 {
1bd55598
RD
31952 arg4 = &temp4;
31953 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 31954 }
1bd55598
RD
31955 }
31956 if (obj4) {
36ed4f51 31957 {
1bd55598
RD
31958 arg5 = &temp5;
31959 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 31960 }
1bd55598
RD
31961 }
31962 if (obj5) {
31963 ecode6 = SWIG_AsVal_long(obj5, &val6);
31964 if (!SWIG_IsOK(ecode6)) {
31965 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31966 }
31967 arg6 = static_cast< long >(val6);
31968 }
31969 if (obj6) {
31970 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31971 if (!SWIG_IsOK(res7)) {
31972 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 31973 }
1bd55598
RD
31974 if (!argp7) {
31975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31976 }
31977 arg7 = reinterpret_cast< wxValidator * >(argp7);
31978 }
31979 if (obj7) {
d55e5bfc 31980 {
1bd55598
RD
31981 arg8 = wxString_in_helper(obj7);
31982 if (arg8 == NULL) SWIG_fail;
31983 temp8 = true;
d55e5bfc 31984 }
1bd55598
RD
31985 }
31986 {
31987 PyThreadState* __tstate = wxPyBeginAllowThreads();
31988 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31989 wxPyEndAllowThreads(__tstate);
31990 if (PyErr_Occurred()) SWIG_fail;
31991 }
31992 {
31993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31994 }
31995 {
31996 if (temp8)
31997 delete arg8;
31998 }
31999 return resultobj;
32000fail:
32001 {
32002 if (temp8)
32003 delete arg8;
32004 }
32005 return NULL;
32006}
32007
32008
32009SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32010 PyObject *resultobj = 0;
32011 wxListView *arg1 = (wxListView *) 0 ;
32012 long arg2 ;
32013 bool arg3 = (bool) true ;
32014 void *argp1 = 0 ;
32015 int res1 = 0 ;
32016 long val2 ;
32017 int ecode2 = 0 ;
32018 bool val3 ;
32019 int ecode3 = 0 ;
32020 PyObject * obj0 = 0 ;
32021 PyObject * obj1 = 0 ;
32022 PyObject * obj2 = 0 ;
32023 char * kwnames[] = {
32024 (char *) "self",(char *) "n",(char *) "on", NULL
32025 };
32026
32027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32029 if (!SWIG_IsOK(res1)) {
32030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32031 }
32032 arg1 = reinterpret_cast< wxListView * >(argp1);
32033 ecode2 = SWIG_AsVal_long(obj1, &val2);
32034 if (!SWIG_IsOK(ecode2)) {
32035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32036 }
32037 arg2 = static_cast< long >(val2);
32038 if (obj2) {
32039 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32040 if (!SWIG_IsOK(ecode3)) {
32041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32042 }
32043 arg3 = static_cast< bool >(val3);
32044 }
32045 {
32046 PyThreadState* __tstate = wxPyBeginAllowThreads();
32047 (arg1)->Select(arg2,arg3);
32048 wxPyEndAllowThreads(__tstate);
32049 if (PyErr_Occurred()) SWIG_fail;
32050 }
32051 resultobj = SWIG_Py_Void();
32052 return resultobj;
32053fail:
32054 return NULL;
32055}
32056
32057
32058SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32059 PyObject *resultobj = 0;
32060 wxListView *arg1 = (wxListView *) 0 ;
32061 long arg2 ;
32062 void *argp1 = 0 ;
32063 int res1 = 0 ;
32064 long val2 ;
32065 int ecode2 = 0 ;
32066 PyObject * obj0 = 0 ;
32067 PyObject * obj1 = 0 ;
32068 char * kwnames[] = {
32069 (char *) "self",(char *) "index", NULL
32070 };
32071
32072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32074 if (!SWIG_IsOK(res1)) {
32075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32076 }
32077 arg1 = reinterpret_cast< wxListView * >(argp1);
32078 ecode2 = SWIG_AsVal_long(obj1, &val2);
32079 if (!SWIG_IsOK(ecode2)) {
32080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32081 }
32082 arg2 = static_cast< long >(val2);
32083 {
32084 PyThreadState* __tstate = wxPyBeginAllowThreads();
32085 (arg1)->Focus(arg2);
32086 wxPyEndAllowThreads(__tstate);
32087 if (PyErr_Occurred()) SWIG_fail;
32088 }
32089 resultobj = SWIG_Py_Void();
32090 return resultobj;
32091fail:
32092 return NULL;
d55e5bfc
RD
32093}
32094
32095
1bd55598
RD
32096SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32097 PyObject *resultobj = 0;
32098 wxListView *arg1 = (wxListView *) 0 ;
32099 long result;
32100 void *argp1 = 0 ;
32101 int res1 = 0 ;
32102 PyObject *swig_obj[1] ;
32103
32104 if (!args) SWIG_fail;
32105 swig_obj[0] = args;
32106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32107 if (!SWIG_IsOK(res1)) {
32108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32109 }
32110 arg1 = reinterpret_cast< wxListView * >(argp1);
32111 {
32112 PyThreadState* __tstate = wxPyBeginAllowThreads();
32113 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32114 wxPyEndAllowThreads(__tstate);
32115 if (PyErr_Occurred()) SWIG_fail;
32116 }
32117 resultobj = SWIG_From_long(static_cast< long >(result));
32118 return resultobj;
32119fail:
32120 return NULL;
32121}
32122
32123
32124SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32125 PyObject *resultobj = 0;
32126 wxListView *arg1 = (wxListView *) 0 ;
32127 long arg2 ;
32128 long result;
32129 void *argp1 = 0 ;
32130 int res1 = 0 ;
32131 long val2 ;
32132 int ecode2 = 0 ;
32133 PyObject * obj0 = 0 ;
32134 PyObject * obj1 = 0 ;
32135 char * kwnames[] = {
32136 (char *) "self",(char *) "item", NULL
32137 };
32138
32139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32141 if (!SWIG_IsOK(res1)) {
32142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32143 }
32144 arg1 = reinterpret_cast< wxListView * >(argp1);
32145 ecode2 = SWIG_AsVal_long(obj1, &val2);
32146 if (!SWIG_IsOK(ecode2)) {
32147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32148 }
32149 arg2 = static_cast< long >(val2);
32150 {
32151 PyThreadState* __tstate = wxPyBeginAllowThreads();
32152 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32153 wxPyEndAllowThreads(__tstate);
32154 if (PyErr_Occurred()) SWIG_fail;
32155 }
32156 resultobj = SWIG_From_long(static_cast< long >(result));
32157 return resultobj;
32158fail:
32159 return NULL;
d55e5bfc
RD
32160}
32161
32162
1bd55598
RD
32163SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32164 PyObject *resultobj = 0;
32165 wxListView *arg1 = (wxListView *) 0 ;
32166 long result;
32167 void *argp1 = 0 ;
32168 int res1 = 0 ;
32169 PyObject *swig_obj[1] ;
32170
32171 if (!args) SWIG_fail;
32172 swig_obj[0] = args;
32173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32174 if (!SWIG_IsOK(res1)) {
32175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32176 }
32177 arg1 = reinterpret_cast< wxListView * >(argp1);
32178 {
32179 PyThreadState* __tstate = wxPyBeginAllowThreads();
32180 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32181 wxPyEndAllowThreads(__tstate);
32182 if (PyErr_Occurred()) SWIG_fail;
32183 }
32184 resultobj = SWIG_From_long(static_cast< long >(result));
32185 return resultobj;
32186fail:
32187 return NULL;
32188}
32189
32190
32191SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32192 PyObject *resultobj = 0;
32193 wxListView *arg1 = (wxListView *) 0 ;
32194 long arg2 ;
32195 bool result;
32196 void *argp1 = 0 ;
32197 int res1 = 0 ;
32198 long val2 ;
32199 int ecode2 = 0 ;
32200 PyObject * obj0 = 0 ;
32201 PyObject * obj1 = 0 ;
32202 char * kwnames[] = {
32203 (char *) "self",(char *) "index", NULL
32204 };
32205
32206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32208 if (!SWIG_IsOK(res1)) {
32209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32210 }
32211 arg1 = reinterpret_cast< wxListView * >(argp1);
32212 ecode2 = SWIG_AsVal_long(obj1, &val2);
32213 if (!SWIG_IsOK(ecode2)) {
32214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32215 }
32216 arg2 = static_cast< long >(val2);
32217 {
32218 PyThreadState* __tstate = wxPyBeginAllowThreads();
32219 result = (bool)(arg1)->IsSelected(arg2);
32220 wxPyEndAllowThreads(__tstate);
32221 if (PyErr_Occurred()) SWIG_fail;
32222 }
32223 {
32224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32225 }
32226 return resultobj;
32227fail:
32228 return NULL;
32229}
32230
32231
32232SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32233 PyObject *resultobj = 0;
32234 wxListView *arg1 = (wxListView *) 0 ;
32235 int arg2 ;
32236 int arg3 ;
32237 void *argp1 = 0 ;
32238 int res1 = 0 ;
32239 int val2 ;
32240 int ecode2 = 0 ;
32241 int val3 ;
32242 int ecode3 = 0 ;
32243 PyObject * obj0 = 0 ;
32244 PyObject * obj1 = 0 ;
32245 PyObject * obj2 = 0 ;
32246 char * kwnames[] = {
32247 (char *) "self",(char *) "col",(char *) "image", NULL
32248 };
32249
32250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32252 if (!SWIG_IsOK(res1)) {
32253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32254 }
32255 arg1 = reinterpret_cast< wxListView * >(argp1);
32256 ecode2 = SWIG_AsVal_int(obj1, &val2);
32257 if (!SWIG_IsOK(ecode2)) {
32258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32259 }
32260 arg2 = static_cast< int >(val2);
32261 ecode3 = SWIG_AsVal_int(obj2, &val3);
32262 if (!SWIG_IsOK(ecode3)) {
32263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32264 }
32265 arg3 = static_cast< int >(val3);
32266 {
32267 PyThreadState* __tstate = wxPyBeginAllowThreads();
32268 (arg1)->SetColumnImage(arg2,arg3);
32269 wxPyEndAllowThreads(__tstate);
32270 if (PyErr_Occurred()) SWIG_fail;
32271 }
32272 resultobj = SWIG_Py_Void();
32273 return resultobj;
32274fail:
32275 return NULL;
32276}
32277
32278
32279SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32280 PyObject *resultobj = 0;
32281 wxListView *arg1 = (wxListView *) 0 ;
32282 int arg2 ;
32283 void *argp1 = 0 ;
32284 int res1 = 0 ;
32285 int val2 ;
32286 int ecode2 = 0 ;
32287 PyObject * obj0 = 0 ;
32288 PyObject * obj1 = 0 ;
32289 char * kwnames[] = {
32290 (char *) "self",(char *) "col", NULL
32291 };
32292
32293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32295 if (!SWIG_IsOK(res1)) {
32296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32297 }
32298 arg1 = reinterpret_cast< wxListView * >(argp1);
32299 ecode2 = SWIG_AsVal_int(obj1, &val2);
32300 if (!SWIG_IsOK(ecode2)) {
32301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32302 }
32303 arg2 = static_cast< int >(val2);
32304 {
32305 PyThreadState* __tstate = wxPyBeginAllowThreads();
32306 (arg1)->ClearColumnImage(arg2);
32307 wxPyEndAllowThreads(__tstate);
32308 if (PyErr_Occurred()) SWIG_fail;
32309 }
32310 resultobj = SWIG_Py_Void();
32311 return resultobj;
32312fail:
32313 return NULL;
d55e5bfc
RD
32314}
32315
32316
1bd55598
RD
32317SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32318 PyObject *obj;
32319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32320 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32321 return SWIG_Py_Void();
d55e5bfc
RD
32322}
32323
1bd55598
RD
32324SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32325 return SWIG_Python_InitShadowInstance(args);
32326}
d55e5bfc 32327
1bd55598
RD
32328SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32329 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32330 return 1;
d55e5bfc
RD
32331}
32332
32333
1bd55598
RD
32334SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32335 PyObject *pyobj = 0;
32336
32337 {
32338#if wxUSE_UNICODE
32339 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32340#else
32341 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32342#endif
32343 }
32344 return pyobj;
d55e5bfc
RD
32345}
32346
32347
1bd55598
RD
32348SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32349 PyObject *resultobj = 0;
32350 wxTreeItemId *result = 0 ;
32351
32352 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32353 {
32354 PyThreadState* __tstate = wxPyBeginAllowThreads();
32355 result = (wxTreeItemId *)new wxTreeItemId();
32356 wxPyEndAllowThreads(__tstate);
32357 if (PyErr_Occurred()) SWIG_fail;
32358 }
32359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32360 return resultobj;
32361fail:
32362 return NULL;
d55e5bfc
RD
32363}
32364
32365
1bd55598
RD
32366SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32367 PyObject *resultobj = 0;
32368 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32369 void *argp1 = 0 ;
32370 int res1 = 0 ;
32371 PyObject *swig_obj[1] ;
32372
32373 if (!args) SWIG_fail;
32374 swig_obj[0] = args;
32375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32376 if (!SWIG_IsOK(res1)) {
32377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32378 }
32379 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32380 {
32381 PyThreadState* __tstate = wxPyBeginAllowThreads();
32382 delete arg1;
d55e5bfc 32383
1bd55598
RD
32384 wxPyEndAllowThreads(__tstate);
32385 if (PyErr_Occurred()) SWIG_fail;
32386 }
32387 resultobj = SWIG_Py_Void();
32388 return resultobj;
32389fail:
32390 return NULL;
d55e5bfc
RD
32391}
32392
32393
1bd55598
RD
32394SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32395 PyObject *resultobj = 0;
32396 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32397 bool result;
32398 void *argp1 = 0 ;
32399 int res1 = 0 ;
32400 PyObject *swig_obj[1] ;
32401
32402 if (!args) SWIG_fail;
32403 swig_obj[0] = args;
32404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32405 if (!SWIG_IsOK(res1)) {
32406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32407 }
32408 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32409 {
32410 PyThreadState* __tstate = wxPyBeginAllowThreads();
32411 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32412 wxPyEndAllowThreads(__tstate);
32413 if (PyErr_Occurred()) SWIG_fail;
32414 }
32415 {
32416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32417 }
32418 return resultobj;
32419fail:
32420 return NULL;
32421}
32422
32423
32424SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32425 PyObject *resultobj = 0;
32426 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32427 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32428 bool result;
32429 void *argp1 = 0 ;
32430 int res1 = 0 ;
32431 void *argp2 = 0 ;
32432 int res2 = 0 ;
32433 PyObject * obj0 = 0 ;
32434 PyObject * obj1 = 0 ;
32435 char * kwnames[] = {
32436 (char *) "self",(char *) "other", NULL
32437 };
32438
32439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32441 if (!SWIG_IsOK(res1)) {
32442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32443 }
32444 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32445 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32446 if (!SWIG_IsOK(res2)) {
32447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32448 }
32449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 {
32457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32458 }
32459 return resultobj;
32460fail:
32461 return NULL;
32462}
32463
32464
32465SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32466 PyObject *resultobj = 0;
32467 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32468 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32469 bool result;
32470 void *argp1 = 0 ;
32471 int res1 = 0 ;
32472 void *argp2 = 0 ;
32473 int res2 = 0 ;
32474 PyObject * obj0 = 0 ;
32475 PyObject * obj1 = 0 ;
32476 char * kwnames[] = {
32477 (char *) "self",(char *) "other", NULL
32478 };
32479
32480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32482 if (!SWIG_IsOK(res1)) {
32483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32484 }
32485 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32486 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32487 if (!SWIG_IsOK(res2)) {
32488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32489 }
32490 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32491 {
32492 PyThreadState* __tstate = wxPyBeginAllowThreads();
32493 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32494 wxPyEndAllowThreads(__tstate);
32495 if (PyErr_Occurred()) SWIG_fail;
32496 }
32497 {
32498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32499 }
32500 return resultobj;
32501fail:
32502 return NULL;
d55e5bfc
RD
32503}
32504
32505
1bd55598
RD
32506SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32507 PyObject *resultobj = 0;
32508 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32509 void *arg2 = (void *) 0 ;
32510 void *argp1 = 0 ;
32511 int res1 = 0 ;
32512 int res2 ;
32513 PyObject *swig_obj[2] ;
32514
32515 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32517 if (!SWIG_IsOK(res1)) {
32518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32519 }
32520 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32521 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32522 if (!SWIG_IsOK(res2)) {
32523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32524 }
32525 if (arg1) (arg1)->m_pItem = arg2;
32526
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529fail:
32530 return NULL;
d55e5bfc
RD
32531}
32532
32533
1bd55598
RD
32534SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32535 PyObject *resultobj = 0;
32536 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32537 void *result = 0 ;
32538 void *argp1 = 0 ;
32539 int res1 = 0 ;
32540 PyObject *swig_obj[1] ;
32541
32542 if (!args) SWIG_fail;
32543 swig_obj[0] = args;
32544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32545 if (!SWIG_IsOK(res1)) {
32546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32547 }
32548 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32549 result = (void *) ((arg1)->m_pItem);
32550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32551 return resultobj;
32552fail:
32553 return NULL;
d55e5bfc
RD
32554}
32555
32556
1bd55598
RD
32557SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32558 PyObject *obj;
32559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32560 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32561 return SWIG_Py_Void();
d55e5bfc
RD
32562}
32563
1bd55598
RD
32564SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32565 return SWIG_Python_InitShadowInstance(args);
32566}
d55e5bfc 32567
1bd55598
RD
32568SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32569 PyObject *resultobj = 0;
32570 PyObject *arg1 = (PyObject *) NULL ;
32571 wxPyTreeItemData *result = 0 ;
32572 PyObject * obj0 = 0 ;
32573 char * kwnames[] = {
32574 (char *) "obj", NULL
32575 };
32576
32577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32578 if (obj0) {
32579 arg1 = obj0;
32580 }
32581 {
32582 PyThreadState* __tstate = wxPyBeginAllowThreads();
32583 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32584 wxPyEndAllowThreads(__tstate);
32585 if (PyErr_Occurred()) SWIG_fail;
32586 }
32587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32588 return resultobj;
32589fail:
32590 return NULL;
d55e5bfc
RD
32591}
32592
32593
1bd55598
RD
32594SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32595 PyObject *resultobj = 0;
32596 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32597 void *argp1 = 0 ;
32598 int res1 = 0 ;
32599 PyObject *swig_obj[1] ;
32600
32601 if (!args) SWIG_fail;
32602 swig_obj[0] = args;
32603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32604 if (!SWIG_IsOK(res1)) {
32605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32606 }
32607 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32608 {
32609 PyThreadState* __tstate = wxPyBeginAllowThreads();
32610 delete arg1;
d55e5bfc 32611
1bd55598
RD
32612 wxPyEndAllowThreads(__tstate);
32613 if (PyErr_Occurred()) SWIG_fail;
32614 }
32615 resultobj = SWIG_Py_Void();
32616 return resultobj;
32617fail:
32618 return NULL;
d55e5bfc
RD
32619}
32620
32621
1bd55598
RD
32622SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32623 PyObject *resultobj = 0;
32624 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32625 PyObject *result = 0 ;
32626 void *argp1 = 0 ;
32627 int res1 = 0 ;
32628 PyObject *swig_obj[1] ;
32629
32630 if (!args) SWIG_fail;
32631 swig_obj[0] = args;
32632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32633 if (!SWIG_IsOK(res1)) {
32634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32635 }
32636 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32637 {
32638 PyThreadState* __tstate = wxPyBeginAllowThreads();
32639 result = (PyObject *)(arg1)->GetData();
32640 wxPyEndAllowThreads(__tstate);
32641 if (PyErr_Occurred()) SWIG_fail;
32642 }
32643 resultobj = result;
32644 return resultobj;
32645fail:
32646 return NULL;
32647}
32648
32649
32650SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32651 PyObject *resultobj = 0;
32652 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32653 PyObject *arg2 = (PyObject *) 0 ;
32654 void *argp1 = 0 ;
32655 int res1 = 0 ;
32656 PyObject * obj0 = 0 ;
32657 PyObject * obj1 = 0 ;
32658 char * kwnames[] = {
32659 (char *) "self",(char *) "obj", NULL
32660 };
32661
32662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32664 if (!SWIG_IsOK(res1)) {
32665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32666 }
32667 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32668 arg2 = obj1;
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 (arg1)->SetData(arg2);
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_Py_Void();
32676 return resultobj;
32677fail:
32678 return NULL;
d55e5bfc
RD
32679}
32680
32681
1bd55598
RD
32682SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32683 PyObject *resultobj = 0;
32684 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32685 wxTreeItemId *result = 0 ;
32686 void *argp1 = 0 ;
32687 int res1 = 0 ;
32688 PyObject *swig_obj[1] ;
32689
32690 if (!args) SWIG_fail;
32691 swig_obj[0] = args;
32692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32693 if (!SWIG_IsOK(res1)) {
32694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32695 }
32696 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32697 {
32698 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32699 {
1bd55598
RD
32700 wxTreeItemId const &_result_ref = (arg1)->GetId();
32701 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32702 }
1bd55598
RD
32703 wxPyEndAllowThreads(__tstate);
32704 if (PyErr_Occurred()) SWIG_fail;
32705 }
32706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32707 return resultobj;
32708fail:
32709 return NULL;
32710}
32711
32712
32713SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32714 PyObject *resultobj = 0;
32715 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32716 wxTreeItemId *arg2 = 0 ;
32717 void *argp1 = 0 ;
32718 int res1 = 0 ;
32719 void *argp2 = 0 ;
32720 int res2 = 0 ;
32721 PyObject * obj0 = 0 ;
32722 PyObject * obj1 = 0 ;
32723 char * kwnames[] = {
32724 (char *) "self",(char *) "id", NULL
32725 };
32726
32727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32729 if (!SWIG_IsOK(res1)) {
32730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32731 }
32732 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32734 if (!SWIG_IsOK(res2)) {
32735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32736 }
32737 if (!argp2) {
32738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32739 }
32740 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32741 {
32742 PyThreadState* __tstate = wxPyBeginAllowThreads();
32743 (arg1)->SetId((wxTreeItemId const &)*arg2);
32744 wxPyEndAllowThreads(__tstate);
32745 if (PyErr_Occurred()) SWIG_fail;
32746 }
32747 resultobj = SWIG_Py_Void();
32748 return resultobj;
32749fail:
32750 return NULL;
d55e5bfc
RD
32751}
32752
32753
1bd55598
RD
32754SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32755 PyObject *resultobj = 0;
32756 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32757 void *argp1 = 0 ;
32758 int res1 = 0 ;
32759 PyObject *swig_obj[1] ;
32760
32761 if (!args) SWIG_fail;
32762 swig_obj[0] = args;
32763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32764 if (!SWIG_IsOK(res1)) {
32765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32766 }
32767 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32768 {
32769 PyThreadState* __tstate = wxPyBeginAllowThreads();
32770 wxPyTreeItemData_Destroy(arg1);
32771 wxPyEndAllowThreads(__tstate);
32772 if (PyErr_Occurred()) SWIG_fail;
32773 }
32774 resultobj = SWIG_Py_Void();
32775 return resultobj;
32776fail:
32777 return NULL;
d55e5bfc
RD
32778}
32779
32780
1bd55598
RD
32781SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32782 PyObject *obj;
32783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32784 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32785 return SWIG_Py_Void();
d55e5bfc
RD
32786}
32787
1bd55598
RD
32788SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32789 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
32790}
32791
b02396e8
RD
32792SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32793 {
32794 void *argp = 0;
32795 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32796 if (!SWIG_IsOK(res)) {
32797 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32798 }
32799 if (!argp) {
32800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32801 } else {
32802 wxTreeItemId * temp;
32803 temp = reinterpret_cast< wxTreeItemId * >(argp);
32804 wxNullTreeItemId = *temp;
32805 if (SWIG_IsNewObj(res)) delete temp;
32806 }
32807 }
32808 return 0;
32809fail:
32810 return 1;
32811}
32812
32813
32814SWIGINTERN PyObject *NullTreeItemId_get(void) {
32815 PyObject *pyobj = 0;
32816
32817 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32818 return pyobj;
32819}
32820
32821
32822SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
32823 PyObject *resultobj = 0;
32824 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32825 int arg2 = (int) 0 ;
32826 wxTreeEvent *result = 0 ;
32827 int val1 ;
32828 int ecode1 = 0 ;
32829 int val2 ;
32830 int ecode2 = 0 ;
1bd55598 32831
b02396e8
RD
32832 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32833 if (swig_obj[0]) {
32834 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
32835 if (!SWIG_IsOK(ecode1)) {
32836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32837 }
32838 arg1 = static_cast< wxEventType >(val1);
32839 }
b02396e8
RD
32840 if (swig_obj[1]) {
32841 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
32842 if (!SWIG_IsOK(ecode2)) {
32843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32844 }
32845 arg2 = static_cast< int >(val2);
32846 }
32847 {
32848 PyThreadState* __tstate = wxPyBeginAllowThreads();
32849 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32850 wxPyEndAllowThreads(__tstate);
32851 if (PyErr_Occurred()) SWIG_fail;
32852 }
32853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32854 return resultobj;
32855fail:
32856 return NULL;
d55e5bfc
RD
32857}
32858
32859
b02396e8
RD
32860SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32861 PyObject *resultobj = 0;
32862 wxEventType arg1 ;
32863 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32864 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32865 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32866 wxTreeEvent *result = 0 ;
32867 int val1 ;
32868 int ecode1 = 0 ;
32869 void *argp2 = 0 ;
32870 int res2 = 0 ;
32871 void *argp3 = 0 ;
32872 int res3 = 0 ;
32873
32874 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32875 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32876 if (!SWIG_IsOK(ecode1)) {
32877 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32878 }
32879 arg1 = static_cast< wxEventType >(val1);
32880 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32881 if (!SWIG_IsOK(res2)) {
32882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32883 }
32884 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32885 if (swig_obj[2]) {
32886 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32887 if (!SWIG_IsOK(res3)) {
32888 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32889 }
32890 if (!argp3) {
32891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32892 }
32893 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32894 }
32895 {
32896 PyThreadState* __tstate = wxPyBeginAllowThreads();
32897 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32898 wxPyEndAllowThreads(__tstate);
32899 if (PyErr_Occurred()) SWIG_fail;
32900 }
32901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32902 return resultobj;
32903fail:
32904 return NULL;
32905}
32906
32907
32908SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32909 int argc;
32910 PyObject *argv[4];
32911
32912 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32913 --argc;
32914 if ((argc >= 0) && (argc <= 2)) {
32915 int _v = 0;
32916 if (argc > 1) {
32917 {
32918 {
32919 int res = SWIG_AsVal_int(argv[1], NULL);
32920 _v = SWIG_CheckState(res);
32921 }
32922 }
32923 if (!_v) goto check_1;
32924 }
32925 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32926 }
32927check_1:
32928
32929 if ((argc >= 2) && (argc <= 3)) {
32930 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
32931 }
32932
32933fail:
32934 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
32935 return NULL;
32936}
32937
32938
1bd55598
RD
32939SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32940 PyObject *resultobj = 0;
32941 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32942 wxTreeItemId result;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 PyObject *swig_obj[1] ;
32946
32947 if (!args) SWIG_fail;
32948 swig_obj[0] = args;
32949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32950 if (!SWIG_IsOK(res1)) {
32951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32952 }
32953 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32954 {
32955 PyThreadState* __tstate = wxPyBeginAllowThreads();
32956 result = ((wxTreeEvent const *)arg1)->GetItem();
32957 wxPyEndAllowThreads(__tstate);
32958 if (PyErr_Occurred()) SWIG_fail;
32959 }
32960 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32961 return resultobj;
32962fail:
32963 return NULL;
32964}
32965
32966
32967SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32968 PyObject *resultobj = 0;
32969 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32970 wxTreeItemId *arg2 = 0 ;
32971 void *argp1 = 0 ;
32972 int res1 = 0 ;
32973 void *argp2 = 0 ;
32974 int res2 = 0 ;
32975 PyObject * obj0 = 0 ;
32976 PyObject * obj1 = 0 ;
32977 char * kwnames[] = {
32978 (char *) "self",(char *) "item", NULL
32979 };
32980
32981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32983 if (!SWIG_IsOK(res1)) {
32984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32985 }
32986 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32988 if (!SWIG_IsOK(res2)) {
32989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32990 }
32991 if (!argp2) {
32992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32993 }
32994 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32995 {
32996 PyThreadState* __tstate = wxPyBeginAllowThreads();
32997 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32998 wxPyEndAllowThreads(__tstate);
32999 if (PyErr_Occurred()) SWIG_fail;
33000 }
33001 resultobj = SWIG_Py_Void();
33002 return resultobj;
33003fail:
33004 return NULL;
d55e5bfc
RD
33005}
33006
33007
1bd55598
RD
33008SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33009 PyObject *resultobj = 0;
33010 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33011 wxTreeItemId result;
33012 void *argp1 = 0 ;
33013 int res1 = 0 ;
33014 PyObject *swig_obj[1] ;
33015
33016 if (!args) SWIG_fail;
33017 swig_obj[0] = args;
33018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33019 if (!SWIG_IsOK(res1)) {
33020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33021 }
33022 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33023 {
33024 PyThreadState* __tstate = wxPyBeginAllowThreads();
33025 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33026 wxPyEndAllowThreads(__tstate);
33027 if (PyErr_Occurred()) SWIG_fail;
33028 }
33029 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33030 return resultobj;
33031fail:
33032 return NULL;
33033}
33034
33035
33036SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33037 PyObject *resultobj = 0;
33038 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33039 wxTreeItemId *arg2 = 0 ;
33040 void *argp1 = 0 ;
33041 int res1 = 0 ;
33042 void *argp2 = 0 ;
33043 int res2 = 0 ;
33044 PyObject * obj0 = 0 ;
33045 PyObject * obj1 = 0 ;
33046 char * kwnames[] = {
33047 (char *) "self",(char *) "item", NULL
33048 };
33049
33050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33052 if (!SWIG_IsOK(res1)) {
33053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33054 }
33055 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33057 if (!SWIG_IsOK(res2)) {
33058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33059 }
33060 if (!argp2) {
33061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33062 }
33063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33064 {
33065 PyThreadState* __tstate = wxPyBeginAllowThreads();
33066 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33067 wxPyEndAllowThreads(__tstate);
33068 if (PyErr_Occurred()) SWIG_fail;
33069 }
33070 resultobj = SWIG_Py_Void();
33071 return resultobj;
33072fail:
33073 return NULL;
d55e5bfc
RD
33074}
33075
33076
1bd55598
RD
33077SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33078 PyObject *resultobj = 0;
33079 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33080 wxPoint result;
33081 void *argp1 = 0 ;
33082 int res1 = 0 ;
33083 PyObject *swig_obj[1] ;
33084
33085 if (!args) SWIG_fail;
33086 swig_obj[0] = args;
33087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33088 if (!SWIG_IsOK(res1)) {
33089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33090 }
33091 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33092 {
33093 PyThreadState* __tstate = wxPyBeginAllowThreads();
33094 result = ((wxTreeEvent const *)arg1)->GetPoint();
33095 wxPyEndAllowThreads(__tstate);
33096 if (PyErr_Occurred()) SWIG_fail;
33097 }
33098 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33099 return resultobj;
33100fail:
33101 return NULL;
33102}
33103
33104
33105SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33106 PyObject *resultobj = 0;
33107 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33108 wxPoint *arg2 = 0 ;
33109 void *argp1 = 0 ;
33110 int res1 = 0 ;
33111 wxPoint temp2 ;
33112 PyObject * obj0 = 0 ;
33113 PyObject * obj1 = 0 ;
33114 char * kwnames[] = {
33115 (char *) "self",(char *) "pt", NULL
33116 };
33117
33118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33120 if (!SWIG_IsOK(res1)) {
33121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33122 }
33123 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33124 {
33125 arg2 = &temp2;
33126 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33127 }
33128 {
33129 PyThreadState* __tstate = wxPyBeginAllowThreads();
33130 (arg1)->SetPoint((wxPoint const &)*arg2);
33131 wxPyEndAllowThreads(__tstate);
33132 if (PyErr_Occurred()) SWIG_fail;
33133 }
33134 resultobj = SWIG_Py_Void();
33135 return resultobj;
33136fail:
33137 return NULL;
d55e5bfc
RD
33138}
33139
33140
1bd55598
RD
33141SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33142 PyObject *resultobj = 0;
33143 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33144 wxKeyEvent *result = 0 ;
33145 void *argp1 = 0 ;
33146 int res1 = 0 ;
33147 PyObject *swig_obj[1] ;
33148
33149 if (!args) SWIG_fail;
33150 swig_obj[0] = args;
33151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33152 if (!SWIG_IsOK(res1)) {
33153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33154 }
33155 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33156 {
33157 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33158 {
1bd55598
RD
33159 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33160 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33161 }
1bd55598
RD
33162 wxPyEndAllowThreads(__tstate);
33163 if (PyErr_Occurred()) SWIG_fail;
33164 }
33165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33166 return resultobj;
33167fail:
33168 return NULL;
d55e5bfc
RD
33169}
33170
33171
1bd55598
RD
33172SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33173 PyObject *resultobj = 0;
33174 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33175 int result;
33176 void *argp1 = 0 ;
33177 int res1 = 0 ;
33178 PyObject *swig_obj[1] ;
33179
33180 if (!args) SWIG_fail;
33181 swig_obj[0] = args;
33182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33183 if (!SWIG_IsOK(res1)) {
33184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33185 }
33186 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33187 {
33188 PyThreadState* __tstate = wxPyBeginAllowThreads();
33189 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33190 wxPyEndAllowThreads(__tstate);
33191 if (PyErr_Occurred()) SWIG_fail;
33192 }
33193 resultobj = SWIG_From_int(static_cast< int >(result));
33194 return resultobj;
33195fail:
33196 return NULL;
33197}
33198
33199
33200SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33201 PyObject *resultobj = 0;
33202 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33203 wxKeyEvent *arg2 = 0 ;
33204 void *argp1 = 0 ;
33205 int res1 = 0 ;
33206 void *argp2 = 0 ;
33207 int res2 = 0 ;
33208 PyObject * obj0 = 0 ;
33209 PyObject * obj1 = 0 ;
33210 char * kwnames[] = {
33211 (char *) "self",(char *) "evt", NULL
33212 };
33213
33214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33216 if (!SWIG_IsOK(res1)) {
33217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33218 }
33219 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33221 if (!SWIG_IsOK(res2)) {
33222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33223 }
33224 if (!argp2) {
33225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33226 }
33227 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33228 {
33229 PyThreadState* __tstate = wxPyBeginAllowThreads();
33230 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 resultobj = SWIG_Py_Void();
33235 return resultobj;
33236fail:
33237 return NULL;
d55e5bfc
RD
33238}
33239
33240
1bd55598
RD
33241SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33242 PyObject *resultobj = 0;
33243 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33244 wxString *result = 0 ;
33245 void *argp1 = 0 ;
33246 int res1 = 0 ;
33247 PyObject *swig_obj[1] ;
33248
33249 if (!args) SWIG_fail;
33250 swig_obj[0] = args;
33251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33252 if (!SWIG_IsOK(res1)) {
33253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33254 }
33255 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33256 {
33257 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33258 {
1bd55598
RD
33259 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33260 result = (wxString *) &_result_ref;
d55e5bfc 33261 }
1bd55598
RD
33262 wxPyEndAllowThreads(__tstate);
33263 if (PyErr_Occurred()) SWIG_fail;
33264 }
33265 {
33266#if wxUSE_UNICODE
33267 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33268#else
33269 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33270#endif
33271 }
33272 return resultobj;
33273fail:
33274 return NULL;
33275}
33276
33277
33278SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33279 PyObject *resultobj = 0;
33280 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33281 wxString *arg2 = 0 ;
33282 void *argp1 = 0 ;
33283 int res1 = 0 ;
33284 bool temp2 = false ;
33285 PyObject * obj0 = 0 ;
33286 PyObject * obj1 = 0 ;
33287 char * kwnames[] = {
33288 (char *) "self",(char *) "label", NULL
33289 };
33290
33291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33293 if (!SWIG_IsOK(res1)) {
33294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33295 }
33296 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33297 {
33298 arg2 = wxString_in_helper(obj1);
33299 if (arg2 == NULL) SWIG_fail;
33300 temp2 = true;
33301 }
33302 {
33303 PyThreadState* __tstate = wxPyBeginAllowThreads();
33304 (arg1)->SetLabel((wxString const &)*arg2);
33305 wxPyEndAllowThreads(__tstate);
33306 if (PyErr_Occurred()) SWIG_fail;
33307 }
33308 resultobj = SWIG_Py_Void();
33309 {
33310 if (temp2)
33311 delete arg2;
33312 }
33313 return resultobj;
33314fail:
33315 {
33316 if (temp2)
33317 delete arg2;
33318 }
33319 return NULL;
d55e5bfc
RD
33320}
33321
33322
1bd55598
RD
33323SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33324 PyObject *resultobj = 0;
33325 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33326 bool result;
33327 void *argp1 = 0 ;
33328 int res1 = 0 ;
33329 PyObject *swig_obj[1] ;
33330
33331 if (!args) SWIG_fail;
33332 swig_obj[0] = args;
33333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33334 if (!SWIG_IsOK(res1)) {
33335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33336 }
33337 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33338 {
33339 PyThreadState* __tstate = wxPyBeginAllowThreads();
33340 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33341 wxPyEndAllowThreads(__tstate);
33342 if (PyErr_Occurred()) SWIG_fail;
33343 }
33344 {
33345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33346 }
33347 return resultobj;
33348fail:
33349 return NULL;
33350}
33351
33352
33353SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33354 PyObject *resultobj = 0;
33355 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33356 bool arg2 ;
33357 void *argp1 = 0 ;
33358 int res1 = 0 ;
33359 bool val2 ;
33360 int ecode2 = 0 ;
33361 PyObject * obj0 = 0 ;
33362 PyObject * obj1 = 0 ;
33363 char * kwnames[] = {
33364 (char *) "self",(char *) "editCancelled", NULL
33365 };
33366
33367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33369 if (!SWIG_IsOK(res1)) {
33370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33371 }
33372 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33373 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33374 if (!SWIG_IsOK(ecode2)) {
33375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33376 }
33377 arg2 = static_cast< bool >(val2);
33378 {
33379 PyThreadState* __tstate = wxPyBeginAllowThreads();
33380 (arg1)->SetEditCanceled(arg2);
33381 wxPyEndAllowThreads(__tstate);
33382 if (PyErr_Occurred()) SWIG_fail;
33383 }
33384 resultobj = SWIG_Py_Void();
33385 return resultobj;
33386fail:
33387 return NULL;
33388}
33389
33390
33391SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33392 PyObject *resultobj = 0;
33393 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33394 wxString *arg2 = 0 ;
33395 void *argp1 = 0 ;
33396 int res1 = 0 ;
33397 bool temp2 = false ;
33398 PyObject * obj0 = 0 ;
33399 PyObject * obj1 = 0 ;
33400 char * kwnames[] = {
33401 (char *) "self",(char *) "toolTip", NULL
33402 };
33403
33404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33406 if (!SWIG_IsOK(res1)) {
33407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33408 }
33409 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33410 {
33411 arg2 = wxString_in_helper(obj1);
33412 if (arg2 == NULL) SWIG_fail;
33413 temp2 = true;
33414 }
33415 {
33416 PyThreadState* __tstate = wxPyBeginAllowThreads();
33417 (arg1)->SetToolTip((wxString const &)*arg2);
33418 wxPyEndAllowThreads(__tstate);
33419 if (PyErr_Occurred()) SWIG_fail;
33420 }
33421 resultobj = SWIG_Py_Void();
33422 {
33423 if (temp2)
33424 delete arg2;
33425 }
33426 return resultobj;
33427fail:
33428 {
33429 if (temp2)
33430 delete arg2;
33431 }
33432 return NULL;
d55e5bfc
RD
33433}
33434
33435
1bd55598
RD
33436SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33437 PyObject *resultobj = 0;
33438 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33439 wxString result;
33440 void *argp1 = 0 ;
33441 int res1 = 0 ;
33442 PyObject *swig_obj[1] ;
33443
33444 if (!args) SWIG_fail;
33445 swig_obj[0] = args;
33446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33447 if (!SWIG_IsOK(res1)) {
33448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33449 }
33450 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33451 {
33452 PyThreadState* __tstate = wxPyBeginAllowThreads();
33453 result = (arg1)->GetToolTip();
33454 wxPyEndAllowThreads(__tstate);
33455 if (PyErr_Occurred()) SWIG_fail;
33456 }
33457 {
33458#if wxUSE_UNICODE
33459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33460#else
33461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33462#endif
33463 }
33464 return resultobj;
33465fail:
33466 return NULL;
33467}
33468
33469
33470SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33471 PyObject *obj;
33472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33473 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33474 return SWIG_Py_Void();
33475}
33476
33477SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33478 return SWIG_Python_InitShadowInstance(args);
33479}
33480
33481SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33482 PyObject *resultobj = 0;
33483 wxWindow *arg1 = (wxWindow *) 0 ;
33484 int arg2 = (int) -1 ;
33485 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33486 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33487 wxSize const &arg4_defvalue = wxDefaultSize ;
33488 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33489 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33490 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33491 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33492 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33493 wxString *arg7 = (wxString *) &arg7_defvalue ;
33494 wxPyTreeCtrl *result = 0 ;
33495 void *argp1 = 0 ;
33496 int res1 = 0 ;
33497 int val2 ;
33498 int ecode2 = 0 ;
33499 wxPoint temp3 ;
33500 wxSize temp4 ;
33501 long val5 ;
33502 int ecode5 = 0 ;
33503 void *argp6 = 0 ;
33504 int res6 = 0 ;
33505 bool temp7 = false ;
33506 PyObject * obj0 = 0 ;
33507 PyObject * obj1 = 0 ;
33508 PyObject * obj2 = 0 ;
33509 PyObject * obj3 = 0 ;
33510 PyObject * obj4 = 0 ;
33511 PyObject * obj5 = 0 ;
33512 PyObject * obj6 = 0 ;
33513 char * kwnames[] = {
33514 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33515 };
33516
33517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33519 if (!SWIG_IsOK(res1)) {
33520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33521 }
33522 arg1 = reinterpret_cast< wxWindow * >(argp1);
33523 if (obj1) {
33524 ecode2 = SWIG_AsVal_int(obj1, &val2);
33525 if (!SWIG_IsOK(ecode2)) {
33526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33527 }
33528 arg2 = static_cast< int >(val2);
33529 }
33530 if (obj2) {
d55e5bfc 33531 {
1bd55598
RD
33532 arg3 = &temp3;
33533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33534 }
1bd55598
RD
33535 }
33536 if (obj3) {
36ed4f51 33537 {
1bd55598
RD
33538 arg4 = &temp4;
33539 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33540 }
1bd55598
RD
33541 }
33542 if (obj4) {
33543 ecode5 = SWIG_AsVal_long(obj4, &val5);
33544 if (!SWIG_IsOK(ecode5)) {
33545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33546 }
33547 arg5 = static_cast< long >(val5);
33548 }
33549 if (obj5) {
33550 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33551 if (!SWIG_IsOK(res6)) {
33552 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33553 }
1bd55598
RD
33554 if (!argp6) {
33555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33556 }
1bd55598
RD
33557 arg6 = reinterpret_cast< wxValidator * >(argp6);
33558 }
33559 if (obj6) {
d55e5bfc 33560 {
1bd55598
RD
33561 arg7 = wxString_in_helper(obj6);
33562 if (arg7 == NULL) SWIG_fail;
33563 temp7 = true;
d55e5bfc 33564 }
1bd55598
RD
33565 }
33566 {
33567 if (!wxPyCheckForApp()) SWIG_fail;
33568 PyThreadState* __tstate = wxPyBeginAllowThreads();
33569 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33570 wxPyEndAllowThreads(__tstate);
33571 if (PyErr_Occurred()) SWIG_fail;
33572 }
33573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33574 {
33575 if (temp7)
33576 delete arg7;
33577 }
33578 return resultobj;
33579fail:
33580 {
33581 if (temp7)
33582 delete arg7;
33583 }
33584 return NULL;
33585}
33586
33587
33588SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33589 PyObject *resultobj = 0;
33590 wxPyTreeCtrl *result = 0 ;
33591
33592 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33593 {
33594 if (!wxPyCheckForApp()) SWIG_fail;
33595 PyThreadState* __tstate = wxPyBeginAllowThreads();
33596 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33597 wxPyEndAllowThreads(__tstate);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
33600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33601 return resultobj;
33602fail:
33603 return NULL;
33604}
33605
33606
33607SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33608 PyObject *resultobj = 0;
33609 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33610 wxWindow *arg2 = (wxWindow *) 0 ;
33611 int arg3 = (int) -1 ;
33612 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33613 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33614 wxSize const &arg5_defvalue = wxDefaultSize ;
33615 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33616 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33617 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33618 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33619 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33620 wxString *arg8 = (wxString *) &arg8_defvalue ;
33621 bool result;
33622 void *argp1 = 0 ;
33623 int res1 = 0 ;
33624 void *argp2 = 0 ;
33625 int res2 = 0 ;
33626 int val3 ;
33627 int ecode3 = 0 ;
33628 wxPoint temp4 ;
33629 wxSize temp5 ;
33630 long val6 ;
33631 int ecode6 = 0 ;
33632 void *argp7 = 0 ;
33633 int res7 = 0 ;
33634 bool temp8 = false ;
33635 PyObject * obj0 = 0 ;
33636 PyObject * obj1 = 0 ;
33637 PyObject * obj2 = 0 ;
33638 PyObject * obj3 = 0 ;
33639 PyObject * obj4 = 0 ;
33640 PyObject * obj5 = 0 ;
33641 PyObject * obj6 = 0 ;
33642 PyObject * obj7 = 0 ;
33643 char * kwnames[] = {
33644 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33645 };
33646
33647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33649 if (!SWIG_IsOK(res1)) {
33650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33651 }
33652 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33653 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33654 if (!SWIG_IsOK(res2)) {
33655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33656 }
33657 arg2 = reinterpret_cast< wxWindow * >(argp2);
33658 if (obj2) {
33659 ecode3 = SWIG_AsVal_int(obj2, &val3);
33660 if (!SWIG_IsOK(ecode3)) {
33661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33662 }
33663 arg3 = static_cast< int >(val3);
33664 }
33665 if (obj3) {
d55e5bfc 33666 {
1bd55598
RD
33667 arg4 = &temp4;
33668 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33669 }
1bd55598
RD
33670 }
33671 if (obj4) {
d55e5bfc 33672 {
1bd55598
RD
33673 arg5 = &temp5;
33674 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33675 }
1bd55598
RD
33676 }
33677 if (obj5) {
33678 ecode6 = SWIG_AsVal_long(obj5, &val6);
33679 if (!SWIG_IsOK(ecode6)) {
33680 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33681 }
33682 arg6 = static_cast< long >(val6);
33683 }
33684 if (obj6) {
33685 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33686 if (!SWIG_IsOK(res7)) {
33687 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33688 }
1bd55598
RD
33689 if (!argp7) {
33690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33691 }
1bd55598
RD
33692 arg7 = reinterpret_cast< wxValidator * >(argp7);
33693 }
33694 if (obj7) {
d55e5bfc 33695 {
1bd55598
RD
33696 arg8 = wxString_in_helper(obj7);
33697 if (arg8 == NULL) SWIG_fail;
33698 temp8 = true;
d55e5bfc 33699 }
1bd55598
RD
33700 }
33701 {
33702 PyThreadState* __tstate = wxPyBeginAllowThreads();
33703 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33704 wxPyEndAllowThreads(__tstate);
33705 if (PyErr_Occurred()) SWIG_fail;
33706 }
33707 {
33708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33709 }
33710 {
33711 if (temp8)
33712 delete arg8;
33713 }
33714 return resultobj;
33715fail:
33716 {
33717 if (temp8)
33718 delete arg8;
33719 }
33720 return NULL;
33721}
33722
33723
33724SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33725 PyObject *resultobj = 0;
33726 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33727 PyObject *arg2 = (PyObject *) 0 ;
33728 PyObject *arg3 = (PyObject *) 0 ;
33729 void *argp1 = 0 ;
33730 int res1 = 0 ;
33731 PyObject * obj0 = 0 ;
33732 PyObject * obj1 = 0 ;
33733 PyObject * obj2 = 0 ;
33734 char * kwnames[] = {
33735 (char *) "self",(char *) "self",(char *) "_class", NULL
33736 };
33737
33738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33740 if (!SWIG_IsOK(res1)) {
33741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33742 }
33743 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33744 arg2 = obj1;
33745 arg3 = obj2;
33746 {
33747 PyThreadState* __tstate = wxPyBeginAllowThreads();
33748 (arg1)->_setCallbackInfo(arg2,arg3);
33749 wxPyEndAllowThreads(__tstate);
33750 if (PyErr_Occurred()) SWIG_fail;
33751 }
33752 resultobj = SWIG_Py_Void();
33753 return resultobj;
33754fail:
33755 return NULL;
d55e5bfc
RD
33756}
33757
33758
1bd55598
RD
33759SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33760 PyObject *resultobj = 0;
33761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33762 unsigned int result;
1bd55598
RD
33763 void *argp1 = 0 ;
33764 int res1 = 0 ;
33765 PyObject *swig_obj[1] ;
33766
33767 if (!args) SWIG_fail;
33768 swig_obj[0] = args;
33769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33770 if (!SWIG_IsOK(res1)) {
33771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33772 }
33773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33774 {
33775 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33776 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
33777 wxPyEndAllowThreads(__tstate);
33778 if (PyErr_Occurred()) SWIG_fail;
33779 }
e9d6f3a4 33780 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
33781 return resultobj;
33782fail:
33783 return NULL;
d55e5bfc
RD
33784}
33785
33786
1bd55598
RD
33787SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33788 PyObject *resultobj = 0;
33789 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33790 unsigned int result;
33791 void *argp1 = 0 ;
33792 int res1 = 0 ;
33793 PyObject *swig_obj[1] ;
33794
33795 if (!args) SWIG_fail;
33796 swig_obj[0] = args;
33797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33798 if (!SWIG_IsOK(res1)) {
33799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33800 }
33801 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33802 {
33803 PyThreadState* __tstate = wxPyBeginAllowThreads();
33804 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33805 wxPyEndAllowThreads(__tstate);
33806 if (PyErr_Occurred()) SWIG_fail;
33807 }
33808 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33809 return resultobj;
33810fail:
33811 return NULL;
33812}
33813
33814
33815SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33816 PyObject *resultobj = 0;
33817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33818 unsigned int arg2 ;
33819 void *argp1 = 0 ;
33820 int res1 = 0 ;
33821 unsigned int val2 ;
33822 int ecode2 = 0 ;
33823 PyObject * obj0 = 0 ;
33824 PyObject * obj1 = 0 ;
33825 char * kwnames[] = {
33826 (char *) "self",(char *) "indent", NULL
33827 };
33828
33829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33831 if (!SWIG_IsOK(res1)) {
33832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33833 }
33834 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33835 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33836 if (!SWIG_IsOK(ecode2)) {
33837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33838 }
33839 arg2 = static_cast< unsigned int >(val2);
33840 {
33841 PyThreadState* __tstate = wxPyBeginAllowThreads();
33842 (arg1)->SetIndent(arg2);
33843 wxPyEndAllowThreads(__tstate);
33844 if (PyErr_Occurred()) SWIG_fail;
33845 }
33846 resultobj = SWIG_Py_Void();
33847 return resultobj;
33848fail:
33849 return NULL;
d55e5bfc
RD
33850}
33851
33852
1bd55598
RD
33853SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33854 PyObject *resultobj = 0;
33855 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33856 unsigned int result;
33857 void *argp1 = 0 ;
33858 int res1 = 0 ;
33859 PyObject *swig_obj[1] ;
33860
33861 if (!args) SWIG_fail;
33862 swig_obj[0] = args;
33863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33864 if (!SWIG_IsOK(res1)) {
33865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33866 }
33867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33868 {
33869 PyThreadState* __tstate = wxPyBeginAllowThreads();
33870 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33871 wxPyEndAllowThreads(__tstate);
33872 if (PyErr_Occurred()) SWIG_fail;
33873 }
33874 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33875 return resultobj;
33876fail:
33877 return NULL;
33878}
33879
33880
33881SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33882 PyObject *resultobj = 0;
33883 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33884 unsigned int arg2 ;
33885 void *argp1 = 0 ;
33886 int res1 = 0 ;
33887 unsigned int val2 ;
33888 int ecode2 = 0 ;
33889 PyObject * obj0 = 0 ;
33890 PyObject * obj1 = 0 ;
33891 char * kwnames[] = {
33892 (char *) "self",(char *) "spacing", NULL
33893 };
33894
33895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33897 if (!SWIG_IsOK(res1)) {
33898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33899 }
33900 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33901 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33902 if (!SWIG_IsOK(ecode2)) {
33903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33904 }
33905 arg2 = static_cast< unsigned int >(val2);
33906 {
33907 PyThreadState* __tstate = wxPyBeginAllowThreads();
33908 (arg1)->SetSpacing(arg2);
33909 wxPyEndAllowThreads(__tstate);
33910 if (PyErr_Occurred()) SWIG_fail;
33911 }
33912 resultobj = SWIG_Py_Void();
33913 return resultobj;
33914fail:
33915 return NULL;
d55e5bfc
RD
33916}
33917
33918
1bd55598
RD
33919SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33920 PyObject *resultobj = 0;
33921 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33922 wxImageList *result = 0 ;
33923 void *argp1 = 0 ;
33924 int res1 = 0 ;
33925 PyObject *swig_obj[1] ;
33926
33927 if (!args) SWIG_fail;
33928 swig_obj[0] = args;
33929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33930 if (!SWIG_IsOK(res1)) {
33931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33932 }
33933 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33934 {
33935 PyThreadState* __tstate = wxPyBeginAllowThreads();
33936 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33937 wxPyEndAllowThreads(__tstate);
33938 if (PyErr_Occurred()) SWIG_fail;
33939 }
33940 {
33941 resultobj = wxPyMake_wxObject(result, (bool)0);
33942 }
33943 return resultobj;
33944fail:
33945 return NULL;
d55e5bfc
RD
33946}
33947
33948
1bd55598
RD
33949SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33950 PyObject *resultobj = 0;
33951 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33952 wxImageList *result = 0 ;
33953 void *argp1 = 0 ;
33954 int res1 = 0 ;
33955 PyObject *swig_obj[1] ;
33956
33957 if (!args) SWIG_fail;
33958 swig_obj[0] = args;
33959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33960 if (!SWIG_IsOK(res1)) {
33961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33962 }
33963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 {
33971 resultobj = wxPyMake_wxObject(result, (bool)0);
33972 }
33973 return resultobj;
33974fail:
33975 return NULL;
33976}
33977
33978
33979SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33980 PyObject *resultobj = 0;
33981 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33982 wxImageList *arg2 = (wxImageList *) 0 ;
33983 void *argp1 = 0 ;
33984 int res1 = 0 ;
33985 void *argp2 = 0 ;
33986 int res2 = 0 ;
33987 PyObject * obj0 = 0 ;
33988 PyObject * obj1 = 0 ;
33989 char * kwnames[] = {
33990 (char *) "self",(char *) "imageList", NULL
33991 };
33992
33993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33995 if (!SWIG_IsOK(res1)) {
33996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33997 }
33998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34000 if (!SWIG_IsOK(res2)) {
34001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34002 }
34003 arg2 = reinterpret_cast< wxImageList * >(argp2);
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 (arg1)->SetImageList(arg2);
34007 wxPyEndAllowThreads(__tstate);
34008 if (PyErr_Occurred()) SWIG_fail;
34009 }
34010 resultobj = SWIG_Py_Void();
34011 return resultobj;
34012fail:
34013 return NULL;
34014}
34015
34016
34017SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34018 PyObject *resultobj = 0;
34019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34020 wxImageList *arg2 = (wxImageList *) 0 ;
34021 void *argp1 = 0 ;
34022 int res1 = 0 ;
34023 void *argp2 = 0 ;
34024 int res2 = 0 ;
34025 PyObject * obj0 = 0 ;
34026 PyObject * obj1 = 0 ;
34027 char * kwnames[] = {
34028 (char *) "self",(char *) "imageList", NULL
34029 };
34030
34031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34033 if (!SWIG_IsOK(res1)) {
34034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34035 }
34036 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34038 if (!SWIG_IsOK(res2)) {
34039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34040 }
34041 arg2 = reinterpret_cast< wxImageList * >(argp2);
34042 {
34043 PyThreadState* __tstate = wxPyBeginAllowThreads();
34044 (arg1)->SetStateImageList(arg2);
34045 wxPyEndAllowThreads(__tstate);
34046 if (PyErr_Occurred()) SWIG_fail;
34047 }
34048 resultobj = SWIG_Py_Void();
34049 return resultobj;
34050fail:
34051 return NULL;
34052}
34053
34054
34055SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34056 PyObject *resultobj = 0;
34057 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34058 wxImageList *arg2 = (wxImageList *) 0 ;
34059 void *argp1 = 0 ;
34060 int res1 = 0 ;
34061 int res2 = 0 ;
34062 PyObject * obj0 = 0 ;
34063 PyObject * obj1 = 0 ;
34064 char * kwnames[] = {
34065 (char *) "self",(char *) "imageList", NULL
34066 };
34067
34068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34070 if (!SWIG_IsOK(res1)) {
34071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34072 }
34073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34074 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34075 if (!SWIG_IsOK(res2)) {
34076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34077 }
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 (arg1)->AssignImageList(arg2);
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_Py_Void();
34085 return resultobj;
34086fail:
34087 return NULL;
34088}
34089
34090
34091SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34092 PyObject *resultobj = 0;
34093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34094 wxImageList *arg2 = (wxImageList *) 0 ;
34095 void *argp1 = 0 ;
34096 int res1 = 0 ;
34097 int res2 = 0 ;
34098 PyObject * obj0 = 0 ;
34099 PyObject * obj1 = 0 ;
34100 char * kwnames[] = {
34101 (char *) "self",(char *) "imageList", NULL
34102 };
34103
34104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34106 if (!SWIG_IsOK(res1)) {
34107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34108 }
34109 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34110 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34111 if (!SWIG_IsOK(res2)) {
34112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34113 }
34114 {
34115 PyThreadState* __tstate = wxPyBeginAllowThreads();
34116 (arg1)->AssignStateImageList(arg2);
34117 wxPyEndAllowThreads(__tstate);
34118 if (PyErr_Occurred()) SWIG_fail;
34119 }
34120 resultobj = SWIG_Py_Void();
34121 return resultobj;
34122fail:
34123 return NULL;
34124}
34125
34126
34127SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34128 PyObject *resultobj = 0;
34129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34130 wxTreeItemId *arg2 = 0 ;
34131 wxString result;
34132 void *argp1 = 0 ;
34133 int res1 = 0 ;
34134 void *argp2 = 0 ;
34135 int res2 = 0 ;
34136 PyObject * obj0 = 0 ;
34137 PyObject * obj1 = 0 ;
34138 char * kwnames[] = {
34139 (char *) "self",(char *) "item", NULL
34140 };
34141
34142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34144 if (!SWIG_IsOK(res1)) {
34145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34146 }
34147 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34149 if (!SWIG_IsOK(res2)) {
34150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34151 }
34152 if (!argp2) {
34153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34154 }
34155 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34156 {
34157 PyThreadState* __tstate = wxPyBeginAllowThreads();
34158 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34159 wxPyEndAllowThreads(__tstate);
34160 if (PyErr_Occurred()) SWIG_fail;
34161 }
34162 {
34163#if wxUSE_UNICODE
34164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34165#else
34166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34167#endif
34168 }
34169 return resultobj;
34170fail:
34171 return NULL;
34172}
34173
34174
34175SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34176 PyObject *resultobj = 0;
34177 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34178 wxTreeItemId *arg2 = 0 ;
34179 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34180 int result;
34181 void *argp1 = 0 ;
34182 int res1 = 0 ;
34183 void *argp2 = 0 ;
34184 int res2 = 0 ;
34185 int val3 ;
34186 int ecode3 = 0 ;
34187 PyObject * obj0 = 0 ;
34188 PyObject * obj1 = 0 ;
34189 PyObject * obj2 = 0 ;
34190 char * kwnames[] = {
34191 (char *) "self",(char *) "item",(char *) "which", NULL
34192 };
34193
34194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34196 if (!SWIG_IsOK(res1)) {
34197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34198 }
34199 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34201 if (!SWIG_IsOK(res2)) {
34202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34203 }
34204 if (!argp2) {
34205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34206 }
34207 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34208 if (obj2) {
34209 ecode3 = SWIG_AsVal_int(obj2, &val3);
34210 if (!SWIG_IsOK(ecode3)) {
34211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34212 }
34213 arg3 = static_cast< wxTreeItemIcon >(val3);
34214 }
34215 {
34216 PyThreadState* __tstate = wxPyBeginAllowThreads();
34217 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34218 wxPyEndAllowThreads(__tstate);
34219 if (PyErr_Occurred()) SWIG_fail;
34220 }
34221 resultobj = SWIG_From_int(static_cast< int >(result));
34222 return resultobj;
34223fail:
34224 return NULL;
34225}
34226
34227
34228SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34229 PyObject *resultobj = 0;
34230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34231 wxTreeItemId *arg2 = 0 ;
34232 wxPyTreeItemData *result = 0 ;
34233 void *argp1 = 0 ;
34234 int res1 = 0 ;
34235 void *argp2 = 0 ;
34236 int res2 = 0 ;
34237 PyObject * obj0 = 0 ;
34238 PyObject * obj1 = 0 ;
34239 char * kwnames[] = {
34240 (char *) "self",(char *) "item", NULL
34241 };
34242
34243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34245 if (!SWIG_IsOK(res1)) {
34246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34247 }
34248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34250 if (!SWIG_IsOK(res2)) {
34251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34252 }
34253 if (!argp2) {
34254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34255 }
34256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34257 {
34258 PyThreadState* __tstate = wxPyBeginAllowThreads();
34259 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34260 wxPyEndAllowThreads(__tstate);
34261 if (PyErr_Occurred()) SWIG_fail;
34262 }
34263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34264 return resultobj;
34265fail:
34266 return NULL;
34267}
34268
34269
34270SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34271 PyObject *resultobj = 0;
34272 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34273 wxTreeItemId *arg2 = 0 ;
34274 PyObject *result = 0 ;
34275 void *argp1 = 0 ;
34276 int res1 = 0 ;
34277 void *argp2 = 0 ;
34278 int res2 = 0 ;
34279 PyObject * obj0 = 0 ;
34280 PyObject * obj1 = 0 ;
34281 char * kwnames[] = {
34282 (char *) "self",(char *) "item", NULL
34283 };
34284
34285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34287 if (!SWIG_IsOK(res1)) {
34288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34289 }
34290 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34292 if (!SWIG_IsOK(res2)) {
34293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34294 }
34295 if (!argp2) {
34296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34297 }
34298 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34299 {
34300 PyThreadState* __tstate = wxPyBeginAllowThreads();
34301 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34302 wxPyEndAllowThreads(__tstate);
34303 if (PyErr_Occurred()) SWIG_fail;
34304 }
34305 resultobj = result;
34306 return resultobj;
34307fail:
34308 return NULL;
34309}
34310
34311
34312SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34315 wxTreeItemId *arg2 = 0 ;
34316 wxColour result;
34317 void *argp1 = 0 ;
34318 int res1 = 0 ;
34319 void *argp2 = 0 ;
34320 int res2 = 0 ;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 char * kwnames[] = {
34324 (char *) "self",(char *) "item", NULL
34325 };
34326
34327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34329 if (!SWIG_IsOK(res1)) {
34330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34331 }
34332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34334 if (!SWIG_IsOK(res2)) {
34335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34336 }
34337 if (!argp2) {
34338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34339 }
34340 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34341 {
34342 PyThreadState* __tstate = wxPyBeginAllowThreads();
34343 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34344 wxPyEndAllowThreads(__tstate);
34345 if (PyErr_Occurred()) SWIG_fail;
34346 }
34347 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34348 return resultobj;
34349fail:
34350 return NULL;
34351}
34352
34353
34354SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34355 PyObject *resultobj = 0;
34356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34357 wxTreeItemId *arg2 = 0 ;
34358 wxColour result;
34359 void *argp1 = 0 ;
34360 int res1 = 0 ;
34361 void *argp2 = 0 ;
34362 int res2 = 0 ;
34363 PyObject * obj0 = 0 ;
34364 PyObject * obj1 = 0 ;
34365 char * kwnames[] = {
34366 (char *) "self",(char *) "item", NULL
34367 };
34368
34369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34371 if (!SWIG_IsOK(res1)) {
34372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34373 }
34374 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34376 if (!SWIG_IsOK(res2)) {
34377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34378 }
34379 if (!argp2) {
34380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34381 }
34382 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34383 {
34384 PyThreadState* __tstate = wxPyBeginAllowThreads();
34385 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34386 wxPyEndAllowThreads(__tstate);
34387 if (PyErr_Occurred()) SWIG_fail;
34388 }
34389 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34390 return resultobj;
34391fail:
34392 return NULL;
34393}
34394
34395
34396SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34397 PyObject *resultobj = 0;
34398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34399 wxTreeItemId *arg2 = 0 ;
34400 wxFont result;
34401 void *argp1 = 0 ;
34402 int res1 = 0 ;
34403 void *argp2 = 0 ;
34404 int res2 = 0 ;
34405 PyObject * obj0 = 0 ;
34406 PyObject * obj1 = 0 ;
34407 char * kwnames[] = {
34408 (char *) "self",(char *) "item", NULL
34409 };
34410
34411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34413 if (!SWIG_IsOK(res1)) {
34414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34415 }
34416 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34418 if (!SWIG_IsOK(res2)) {
34419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34420 }
34421 if (!argp2) {
34422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34423 }
34424 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34425 {
34426 PyThreadState* __tstate = wxPyBeginAllowThreads();
34427 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34428 wxPyEndAllowThreads(__tstate);
34429 if (PyErr_Occurred()) SWIG_fail;
34430 }
34431 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34432 return resultobj;
34433fail:
34434 return NULL;
34435}
34436
34437
34438SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34439 PyObject *resultobj = 0;
34440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34441 wxTreeItemId *arg2 = 0 ;
34442 wxString *arg3 = 0 ;
34443 void *argp1 = 0 ;
34444 int res1 = 0 ;
34445 void *argp2 = 0 ;
34446 int res2 = 0 ;
34447 bool temp3 = false ;
34448 PyObject * obj0 = 0 ;
34449 PyObject * obj1 = 0 ;
34450 PyObject * obj2 = 0 ;
34451 char * kwnames[] = {
34452 (char *) "self",(char *) "item",(char *) "text", NULL
34453 };
34454
34455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34457 if (!SWIG_IsOK(res1)) {
34458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34459 }
34460 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34462 if (!SWIG_IsOK(res2)) {
34463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34464 }
34465 if (!argp2) {
34466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34467 }
34468 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34469 {
34470 arg3 = wxString_in_helper(obj2);
34471 if (arg3 == NULL) SWIG_fail;
34472 temp3 = true;
34473 }
34474 {
34475 PyThreadState* __tstate = wxPyBeginAllowThreads();
34476 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34477 wxPyEndAllowThreads(__tstate);
34478 if (PyErr_Occurred()) SWIG_fail;
34479 }
34480 resultobj = SWIG_Py_Void();
34481 {
34482 if (temp3)
34483 delete arg3;
34484 }
34485 return resultobj;
34486fail:
34487 {
34488 if (temp3)
34489 delete arg3;
34490 }
34491 return NULL;
34492}
34493
34494
34495SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34496 PyObject *resultobj = 0;
34497 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34498 wxTreeItemId *arg2 = 0 ;
34499 int arg3 ;
34500 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34501 void *argp1 = 0 ;
34502 int res1 = 0 ;
34503 void *argp2 = 0 ;
34504 int res2 = 0 ;
34505 int val3 ;
34506 int ecode3 = 0 ;
34507 int val4 ;
34508 int ecode4 = 0 ;
34509 PyObject * obj0 = 0 ;
34510 PyObject * obj1 = 0 ;
34511 PyObject * obj2 = 0 ;
34512 PyObject * obj3 = 0 ;
34513 char * kwnames[] = {
34514 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34515 };
34516
34517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34519 if (!SWIG_IsOK(res1)) {
34520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34521 }
34522 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34523 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34524 if (!SWIG_IsOK(res2)) {
34525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34526 }
34527 if (!argp2) {
34528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34529 }
34530 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34531 ecode3 = SWIG_AsVal_int(obj2, &val3);
34532 if (!SWIG_IsOK(ecode3)) {
34533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34534 }
34535 arg3 = static_cast< int >(val3);
34536 if (obj3) {
34537 ecode4 = SWIG_AsVal_int(obj3, &val4);
34538 if (!SWIG_IsOK(ecode4)) {
34539 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34540 }
34541 arg4 = static_cast< wxTreeItemIcon >(val4);
34542 }
34543 {
34544 PyThreadState* __tstate = wxPyBeginAllowThreads();
34545 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34546 wxPyEndAllowThreads(__tstate);
34547 if (PyErr_Occurred()) SWIG_fail;
34548 }
34549 resultobj = SWIG_Py_Void();
34550 return resultobj;
34551fail:
34552 return NULL;
34553}
34554
34555
34556SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34557 PyObject *resultobj = 0;
34558 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34559 wxTreeItemId *arg2 = 0 ;
34560 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34561 void *argp1 = 0 ;
34562 int res1 = 0 ;
34563 void *argp2 = 0 ;
34564 int res2 = 0 ;
34565 int res3 = 0 ;
34566 PyObject * obj0 = 0 ;
34567 PyObject * obj1 = 0 ;
34568 PyObject * obj2 = 0 ;
34569 char * kwnames[] = {
34570 (char *) "self",(char *) "item",(char *) "data", NULL
34571 };
34572
34573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34575 if (!SWIG_IsOK(res1)) {
34576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34577 }
34578 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34580 if (!SWIG_IsOK(res2)) {
34581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34582 }
34583 if (!argp2) {
34584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34585 }
34586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34587 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34588 if (!SWIG_IsOK(res3)) {
34589 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34590 }
34591 {
34592 PyThreadState* __tstate = wxPyBeginAllowThreads();
34593 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34594 wxPyEndAllowThreads(__tstate);
34595 if (PyErr_Occurred()) SWIG_fail;
34596 }
34597 resultobj = SWIG_Py_Void();
34598 return resultobj;
34599fail:
34600 return NULL;
34601}
34602
34603
34604SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34605 PyObject *resultobj = 0;
34606 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34607 wxTreeItemId *arg2 = 0 ;
34608 PyObject *arg3 = (PyObject *) 0 ;
34609 void *argp1 = 0 ;
34610 int res1 = 0 ;
34611 void *argp2 = 0 ;
34612 int res2 = 0 ;
34613 PyObject * obj0 = 0 ;
34614 PyObject * obj1 = 0 ;
34615 PyObject * obj2 = 0 ;
34616 char * kwnames[] = {
34617 (char *) "self",(char *) "item",(char *) "obj", NULL
34618 };
34619
34620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34622 if (!SWIG_IsOK(res1)) {
34623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34624 }
34625 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34627 if (!SWIG_IsOK(res2)) {
34628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34629 }
34630 if (!argp2) {
34631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34632 }
34633 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34634 arg3 = obj2;
34635 {
34636 PyThreadState* __tstate = wxPyBeginAllowThreads();
34637 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34638 wxPyEndAllowThreads(__tstate);
34639 if (PyErr_Occurred()) SWIG_fail;
34640 }
34641 resultobj = SWIG_Py_Void();
34642 return resultobj;
34643fail:
34644 return NULL;
34645}
34646
34647
34648SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34649 PyObject *resultobj = 0;
34650 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34651 wxTreeItemId *arg2 = 0 ;
34652 bool arg3 = (bool) true ;
34653 void *argp1 = 0 ;
34654 int res1 = 0 ;
34655 void *argp2 = 0 ;
34656 int res2 = 0 ;
34657 bool val3 ;
34658 int ecode3 = 0 ;
34659 PyObject * obj0 = 0 ;
34660 PyObject * obj1 = 0 ;
34661 PyObject * obj2 = 0 ;
34662 char * kwnames[] = {
34663 (char *) "self",(char *) "item",(char *) "has", NULL
34664 };
34665
34666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34668 if (!SWIG_IsOK(res1)) {
34669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34670 }
34671 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34673 if (!SWIG_IsOK(res2)) {
34674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34675 }
34676 if (!argp2) {
34677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34678 }
34679 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34680 if (obj2) {
34681 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34682 if (!SWIG_IsOK(ecode3)) {
34683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34684 }
34685 arg3 = static_cast< bool >(val3);
34686 }
34687 {
34688 PyThreadState* __tstate = wxPyBeginAllowThreads();
34689 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34690 wxPyEndAllowThreads(__tstate);
34691 if (PyErr_Occurred()) SWIG_fail;
34692 }
34693 resultobj = SWIG_Py_Void();
34694 return resultobj;
34695fail:
34696 return NULL;
34697}
34698
34699
34700SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34701 PyObject *resultobj = 0;
34702 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34703 wxTreeItemId *arg2 = 0 ;
34704 bool arg3 = (bool) true ;
34705 void *argp1 = 0 ;
34706 int res1 = 0 ;
34707 void *argp2 = 0 ;
34708 int res2 = 0 ;
34709 bool val3 ;
34710 int ecode3 = 0 ;
34711 PyObject * obj0 = 0 ;
34712 PyObject * obj1 = 0 ;
34713 PyObject * obj2 = 0 ;
34714 char * kwnames[] = {
34715 (char *) "self",(char *) "item",(char *) "bold", NULL
34716 };
34717
34718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34722 }
34723 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34725 if (!SWIG_IsOK(res2)) {
34726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34727 }
34728 if (!argp2) {
34729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34730 }
34731 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34732 if (obj2) {
34733 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34734 if (!SWIG_IsOK(ecode3)) {
34735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34736 }
34737 arg3 = static_cast< bool >(val3);
34738 }
34739 {
34740 PyThreadState* __tstate = wxPyBeginAllowThreads();
34741 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34742 wxPyEndAllowThreads(__tstate);
34743 if (PyErr_Occurred()) SWIG_fail;
34744 }
34745 resultobj = SWIG_Py_Void();
34746 return resultobj;
34747fail:
34748 return NULL;
34749}
34750
34751
34752SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34753 PyObject *resultobj = 0;
34754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34755 wxTreeItemId *arg2 = 0 ;
34756 bool arg3 = (bool) true ;
34757 void *argp1 = 0 ;
34758 int res1 = 0 ;
34759 void *argp2 = 0 ;
34760 int res2 = 0 ;
34761 bool val3 ;
34762 int ecode3 = 0 ;
34763 PyObject * obj0 = 0 ;
34764 PyObject * obj1 = 0 ;
34765 PyObject * obj2 = 0 ;
34766 char * kwnames[] = {
34767 (char *) "self",(char *) "item",(char *) "highlight", NULL
34768 };
34769
34770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34772 if (!SWIG_IsOK(res1)) {
34773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34774 }
34775 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34777 if (!SWIG_IsOK(res2)) {
34778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34779 }
34780 if (!argp2) {
34781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34782 }
34783 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34784 if (obj2) {
34785 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34786 if (!SWIG_IsOK(ecode3)) {
34787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34788 }
34789 arg3 = static_cast< bool >(val3);
34790 }
34791 {
34792 PyThreadState* __tstate = wxPyBeginAllowThreads();
34793 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34794 wxPyEndAllowThreads(__tstate);
34795 if (PyErr_Occurred()) SWIG_fail;
34796 }
34797 resultobj = SWIG_Py_Void();
34798 return resultobj;
34799fail:
34800 return NULL;
34801}
34802
34803
34804SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34805 PyObject *resultobj = 0;
34806 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34807 wxTreeItemId *arg2 = 0 ;
34808 wxColour *arg3 = 0 ;
34809 void *argp1 = 0 ;
34810 int res1 = 0 ;
34811 void *argp2 = 0 ;
34812 int res2 = 0 ;
34813 wxColour temp3 ;
34814 PyObject * obj0 = 0 ;
34815 PyObject * obj1 = 0 ;
34816 PyObject * obj2 = 0 ;
34817 char * kwnames[] = {
34818 (char *) "self",(char *) "item",(char *) "col", NULL
34819 };
34820
34821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34823 if (!SWIG_IsOK(res1)) {
34824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34825 }
34826 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34828 if (!SWIG_IsOK(res2)) {
34829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34830 }
34831 if (!argp2) {
34832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34833 }
34834 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34835 {
34836 arg3 = &temp3;
34837 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34838 }
34839 {
34840 PyThreadState* __tstate = wxPyBeginAllowThreads();
34841 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34842 wxPyEndAllowThreads(__tstate);
34843 if (PyErr_Occurred()) SWIG_fail;
34844 }
34845 resultobj = SWIG_Py_Void();
34846 return resultobj;
34847fail:
34848 return NULL;
34849}
34850
34851
34852SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34853 PyObject *resultobj = 0;
34854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34855 wxTreeItemId *arg2 = 0 ;
34856 wxColour *arg3 = 0 ;
34857 void *argp1 = 0 ;
34858 int res1 = 0 ;
34859 void *argp2 = 0 ;
34860 int res2 = 0 ;
34861 wxColour temp3 ;
34862 PyObject * obj0 = 0 ;
34863 PyObject * obj1 = 0 ;
34864 PyObject * obj2 = 0 ;
34865 char * kwnames[] = {
34866 (char *) "self",(char *) "item",(char *) "col", NULL
34867 };
34868
34869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34871 if (!SWIG_IsOK(res1)) {
34872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34873 }
34874 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34876 if (!SWIG_IsOK(res2)) {
34877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34878 }
34879 if (!argp2) {
34880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34881 }
34882 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34883 {
34884 arg3 = &temp3;
34885 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34886 }
34887 {
34888 PyThreadState* __tstate = wxPyBeginAllowThreads();
34889 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34890 wxPyEndAllowThreads(__tstate);
34891 if (PyErr_Occurred()) SWIG_fail;
34892 }
34893 resultobj = SWIG_Py_Void();
34894 return resultobj;
34895fail:
34896 return NULL;
34897}
34898
34899
34900SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34901 PyObject *resultobj = 0;
34902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34903 wxTreeItemId *arg2 = 0 ;
34904 wxFont *arg3 = 0 ;
34905 void *argp1 = 0 ;
34906 int res1 = 0 ;
34907 void *argp2 = 0 ;
34908 int res2 = 0 ;
34909 void *argp3 = 0 ;
34910 int res3 = 0 ;
34911 PyObject * obj0 = 0 ;
34912 PyObject * obj1 = 0 ;
34913 PyObject * obj2 = 0 ;
34914 char * kwnames[] = {
34915 (char *) "self",(char *) "item",(char *) "font", NULL
34916 };
34917
34918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34920 if (!SWIG_IsOK(res1)) {
34921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34922 }
34923 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34925 if (!SWIG_IsOK(res2)) {
34926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34927 }
34928 if (!argp2) {
34929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34930 }
34931 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34932 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34933 if (!SWIG_IsOK(res3)) {
34934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34935 }
34936 if (!argp3) {
34937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34938 }
34939 arg3 = reinterpret_cast< wxFont * >(argp3);
34940 {
34941 PyThreadState* __tstate = wxPyBeginAllowThreads();
34942 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34943 wxPyEndAllowThreads(__tstate);
34944 if (PyErr_Occurred()) SWIG_fail;
34945 }
34946 resultobj = SWIG_Py_Void();
34947 return resultobj;
34948fail:
34949 return NULL;
34950}
34951
34952
34953SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34954 PyObject *resultobj = 0;
34955 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34956 wxTreeItemId *arg2 = 0 ;
34957 bool result;
34958 void *argp1 = 0 ;
34959 int res1 = 0 ;
34960 void *argp2 = 0 ;
34961 int res2 = 0 ;
34962 PyObject * obj0 = 0 ;
34963 PyObject * obj1 = 0 ;
34964 char * kwnames[] = {
34965 (char *) "self",(char *) "item", NULL
34966 };
34967
34968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34970 if (!SWIG_IsOK(res1)) {
34971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34972 }
34973 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34975 if (!SWIG_IsOK(res2)) {
34976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34977 }
34978 if (!argp2) {
34979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34980 }
34981 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34982 {
34983 PyThreadState* __tstate = wxPyBeginAllowThreads();
34984 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34985 wxPyEndAllowThreads(__tstate);
34986 if (PyErr_Occurred()) SWIG_fail;
34987 }
34988 {
34989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34990 }
34991 return resultobj;
34992fail:
34993 return NULL;
34994}
34995
34996
34997SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34998 PyObject *resultobj = 0;
34999 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35000 wxTreeItemId *arg2 = 0 ;
35001 bool result;
35002 void *argp1 = 0 ;
35003 int res1 = 0 ;
35004 void *argp2 = 0 ;
35005 int res2 = 0 ;
35006 PyObject * obj0 = 0 ;
35007 PyObject * obj1 = 0 ;
35008 char * kwnames[] = {
35009 (char *) "self",(char *) "item", NULL
35010 };
35011
35012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35014 if (!SWIG_IsOK(res1)) {
35015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35016 }
35017 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35019 if (!SWIG_IsOK(res2)) {
35020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35021 }
35022 if (!argp2) {
35023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35024 }
35025 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35026 {
35027 PyThreadState* __tstate = wxPyBeginAllowThreads();
35028 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35029 wxPyEndAllowThreads(__tstate);
35030 if (PyErr_Occurred()) SWIG_fail;
35031 }
35032 {
35033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35034 }
35035 return resultobj;
35036fail:
35037 return NULL;
35038}
35039
35040
35041SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35042 PyObject *resultobj = 0;
35043 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35044 wxTreeItemId *arg2 = 0 ;
35045 bool result;
35046 void *argp1 = 0 ;
35047 int res1 = 0 ;
35048 void *argp2 = 0 ;
35049 int res2 = 0 ;
35050 PyObject * obj0 = 0 ;
35051 PyObject * obj1 = 0 ;
35052 char * kwnames[] = {
35053 (char *) "self",(char *) "item", NULL
35054 };
35055
35056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35058 if (!SWIG_IsOK(res1)) {
35059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35060 }
35061 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35063 if (!SWIG_IsOK(res2)) {
35064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35065 }
35066 if (!argp2) {
35067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35068 }
35069 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35070 {
35071 PyThreadState* __tstate = wxPyBeginAllowThreads();
35072 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35073 wxPyEndAllowThreads(__tstate);
35074 if (PyErr_Occurred()) SWIG_fail;
35075 }
35076 {
35077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35078 }
35079 return resultobj;
35080fail:
35081 return NULL;
35082}
35083
35084
35085SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj = 0;
35087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35088 wxTreeItemId *arg2 = 0 ;
35089 bool result;
35090 void *argp1 = 0 ;
35091 int res1 = 0 ;
35092 void *argp2 = 0 ;
35093 int res2 = 0 ;
35094 PyObject * obj0 = 0 ;
35095 PyObject * obj1 = 0 ;
35096 char * kwnames[] = {
35097 (char *) "self",(char *) "item", NULL
35098 };
35099
35100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35104 }
35105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35107 if (!SWIG_IsOK(res2)) {
35108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35109 }
35110 if (!argp2) {
35111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35112 }
35113 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35114 {
35115 PyThreadState* __tstate = wxPyBeginAllowThreads();
35116 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35117 wxPyEndAllowThreads(__tstate);
35118 if (PyErr_Occurred()) SWIG_fail;
35119 }
35120 {
35121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35122 }
35123 return resultobj;
35124fail:
35125 return NULL;
35126}
35127
35128
35129SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35130 PyObject *resultobj = 0;
35131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35132 wxTreeItemId *arg2 = 0 ;
35133 bool result;
35134 void *argp1 = 0 ;
35135 int res1 = 0 ;
35136 void *argp2 = 0 ;
35137 int res2 = 0 ;
35138 PyObject * obj0 = 0 ;
35139 PyObject * obj1 = 0 ;
35140 char * kwnames[] = {
35141 (char *) "self",(char *) "item", NULL
35142 };
35143
35144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35146 if (!SWIG_IsOK(res1)) {
35147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35148 }
35149 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35151 if (!SWIG_IsOK(res2)) {
35152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35153 }
35154 if (!argp2) {
35155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35156 }
35157 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35158 {
35159 PyThreadState* __tstate = wxPyBeginAllowThreads();
35160 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35161 wxPyEndAllowThreads(__tstate);
35162 if (PyErr_Occurred()) SWIG_fail;
35163 }
35164 {
35165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35166 }
35167 return resultobj;
35168fail:
35169 return NULL;
35170}
35171
35172
35173SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35174 PyObject *resultobj = 0;
35175 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35176 wxTreeItemId *arg2 = 0 ;
35177 bool arg3 = (bool) true ;
35178 size_t result;
35179 void *argp1 = 0 ;
35180 int res1 = 0 ;
35181 void *argp2 = 0 ;
35182 int res2 = 0 ;
35183 bool val3 ;
35184 int ecode3 = 0 ;
35185 PyObject * obj0 = 0 ;
35186 PyObject * obj1 = 0 ;
35187 PyObject * obj2 = 0 ;
35188 char * kwnames[] = {
35189 (char *) "self",(char *) "item",(char *) "recursively", NULL
35190 };
35191
35192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35194 if (!SWIG_IsOK(res1)) {
35195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35196 }
35197 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35199 if (!SWIG_IsOK(res2)) {
35200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35201 }
35202 if (!argp2) {
35203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35204 }
35205 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35206 if (obj2) {
35207 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35208 if (!SWIG_IsOK(ecode3)) {
35209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35210 }
35211 arg3 = static_cast< bool >(val3);
35212 }
35213 {
35214 PyThreadState* __tstate = wxPyBeginAllowThreads();
35215 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35216 wxPyEndAllowThreads(__tstate);
35217 if (PyErr_Occurred()) SWIG_fail;
35218 }
35219 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35220 return resultobj;
35221fail:
35222 return NULL;
d55e5bfc
RD
35223}
35224
35225
1bd55598
RD
35226SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35227 PyObject *resultobj = 0;
35228 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35229 wxTreeItemId result;
35230 void *argp1 = 0 ;
35231 int res1 = 0 ;
35232 PyObject *swig_obj[1] ;
35233
35234 if (!args) SWIG_fail;
35235 swig_obj[0] = args;
35236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35237 if (!SWIG_IsOK(res1)) {
35238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35239 }
35240 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35241 {
35242 PyThreadState* __tstate = wxPyBeginAllowThreads();
35243 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35244 wxPyEndAllowThreads(__tstate);
35245 if (PyErr_Occurred()) SWIG_fail;
35246 }
35247 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35248 return resultobj;
35249fail:
35250 return NULL;
d55e5bfc
RD
35251}
35252
35253
1bd55598
RD
35254SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35255 PyObject *resultobj = 0;
35256 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35257 wxTreeItemId result;
35258 void *argp1 = 0 ;
35259 int res1 = 0 ;
35260 PyObject *swig_obj[1] ;
35261
35262 if (!args) SWIG_fail;
35263 swig_obj[0] = args;
35264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35265 if (!SWIG_IsOK(res1)) {
35266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35267 }
35268 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35269 {
35270 PyThreadState* __tstate = wxPyBeginAllowThreads();
35271 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35272 wxPyEndAllowThreads(__tstate);
35273 if (PyErr_Occurred()) SWIG_fail;
35274 }
35275 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35276 return resultobj;
35277fail:
35278 return NULL;
d55e5bfc
RD
35279}
35280
35281
1bd55598
RD
35282SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35283 PyObject *resultobj = 0;
35284 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35285 PyObject *result = 0 ;
35286 void *argp1 = 0 ;
35287 int res1 = 0 ;
35288 PyObject *swig_obj[1] ;
35289
35290 if (!args) SWIG_fail;
35291 swig_obj[0] = args;
35292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35293 if (!SWIG_IsOK(res1)) {
35294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35295 }
35296 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35297 {
35298 PyThreadState* __tstate = wxPyBeginAllowThreads();
35299 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35300 wxPyEndAllowThreads(__tstate);
35301 if (PyErr_Occurred()) SWIG_fail;
35302 }
35303 resultobj = result;
35304 return resultobj;
35305fail:
35306 return NULL;
35307}
35308
35309
35310SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35311 PyObject *resultobj = 0;
35312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35313 wxTreeItemId *arg2 = 0 ;
35314 wxTreeItemId result;
35315 void *argp1 = 0 ;
35316 int res1 = 0 ;
35317 void *argp2 = 0 ;
35318 int res2 = 0 ;
35319 PyObject * obj0 = 0 ;
35320 PyObject * obj1 = 0 ;
35321 char * kwnames[] = {
35322 (char *) "self",(char *) "item", NULL
35323 };
35324
35325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35327 if (!SWIG_IsOK(res1)) {
35328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35329 }
35330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35332 if (!SWIG_IsOK(res2)) {
35333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35334 }
35335 if (!argp2) {
35336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35337 }
35338 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35339 {
35340 PyThreadState* __tstate = wxPyBeginAllowThreads();
35341 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35342 wxPyEndAllowThreads(__tstate);
35343 if (PyErr_Occurred()) SWIG_fail;
35344 }
35345 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35346 return resultobj;
35347fail:
35348 return NULL;
35349}
35350
35351
35352SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35353 PyObject *resultobj = 0;
35354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35355 wxTreeItemId *arg2 = 0 ;
35356 PyObject *result = 0 ;
35357 void *argp1 = 0 ;
35358 int res1 = 0 ;
35359 void *argp2 = 0 ;
35360 int res2 = 0 ;
35361 PyObject * obj0 = 0 ;
35362 PyObject * obj1 = 0 ;
35363 char * kwnames[] = {
35364 (char *) "self",(char *) "item", NULL
35365 };
35366
35367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35369 if (!SWIG_IsOK(res1)) {
35370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35371 }
35372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35374 if (!SWIG_IsOK(res2)) {
35375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35376 }
35377 if (!argp2) {
35378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35379 }
35380 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35384 wxPyEndAllowThreads(__tstate);
35385 if (PyErr_Occurred()) SWIG_fail;
35386 }
35387 resultobj = result;
35388 return resultobj;
35389fail:
35390 return NULL;
35391}
35392
35393
35394SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35395 PyObject *resultobj = 0;
35396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35397 wxTreeItemId *arg2 = 0 ;
35398 void *arg3 = (void *) 0 ;
35399 PyObject *result = 0 ;
35400 void *argp1 = 0 ;
35401 int res1 = 0 ;
35402 void *argp2 = 0 ;
35403 int res2 = 0 ;
35404 int res3 ;
35405 PyObject * obj0 = 0 ;
35406 PyObject * obj1 = 0 ;
35407 PyObject * obj2 = 0 ;
35408 char * kwnames[] = {
35409 (char *) "self",(char *) "item",(char *) "cookie", NULL
35410 };
35411
35412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35414 if (!SWIG_IsOK(res1)) {
35415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35416 }
35417 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35419 if (!SWIG_IsOK(res2)) {
35420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35421 }
35422 if (!argp2) {
35423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35424 }
35425 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35426 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35427 if (!SWIG_IsOK(res3)) {
35428 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35429 }
35430 {
35431 PyThreadState* __tstate = wxPyBeginAllowThreads();
35432 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35433 wxPyEndAllowThreads(__tstate);
35434 if (PyErr_Occurred()) SWIG_fail;
35435 }
35436 resultobj = result;
35437 return resultobj;
35438fail:
35439 return NULL;
35440}
35441
35442
35443SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35444 PyObject *resultobj = 0;
35445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35446 wxTreeItemId *arg2 = 0 ;
35447 wxTreeItemId result;
35448 void *argp1 = 0 ;
35449 int res1 = 0 ;
35450 void *argp2 = 0 ;
35451 int res2 = 0 ;
35452 PyObject * obj0 = 0 ;
35453 PyObject * obj1 = 0 ;
35454 char * kwnames[] = {
35455 (char *) "self",(char *) "item", NULL
35456 };
35457
35458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35460 if (!SWIG_IsOK(res1)) {
35461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35462 }
35463 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35465 if (!SWIG_IsOK(res2)) {
35466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35467 }
35468 if (!argp2) {
35469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35470 }
35471 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35472 {
35473 PyThreadState* __tstate = wxPyBeginAllowThreads();
35474 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35475 wxPyEndAllowThreads(__tstate);
35476 if (PyErr_Occurred()) SWIG_fail;
35477 }
35478 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35479 return resultobj;
35480fail:
35481 return NULL;
35482}
35483
35484
35485SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35486 PyObject *resultobj = 0;
35487 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35488 wxTreeItemId *arg2 = 0 ;
35489 wxTreeItemId result;
35490 void *argp1 = 0 ;
35491 int res1 = 0 ;
35492 void *argp2 = 0 ;
35493 int res2 = 0 ;
35494 PyObject * obj0 = 0 ;
35495 PyObject * obj1 = 0 ;
35496 char * kwnames[] = {
35497 (char *) "self",(char *) "item", NULL
35498 };
35499
35500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35502 if (!SWIG_IsOK(res1)) {
35503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35504 }
35505 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35507 if (!SWIG_IsOK(res2)) {
35508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35509 }
35510 if (!argp2) {
35511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35512 }
35513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35514 {
35515 PyThreadState* __tstate = wxPyBeginAllowThreads();
35516 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35517 wxPyEndAllowThreads(__tstate);
35518 if (PyErr_Occurred()) SWIG_fail;
35519 }
35520 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35521 return resultobj;
35522fail:
35523 return NULL;
35524}
35525
35526
35527SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35528 PyObject *resultobj = 0;
35529 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35530 wxTreeItemId *arg2 = 0 ;
35531 wxTreeItemId result;
35532 void *argp1 = 0 ;
35533 int res1 = 0 ;
35534 void *argp2 = 0 ;
35535 int res2 = 0 ;
35536 PyObject * obj0 = 0 ;
35537 PyObject * obj1 = 0 ;
35538 char * kwnames[] = {
35539 (char *) "self",(char *) "item", NULL
35540 };
35541
35542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35544 if (!SWIG_IsOK(res1)) {
35545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35546 }
35547 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35549 if (!SWIG_IsOK(res2)) {
35550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35551 }
35552 if (!argp2) {
35553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35554 }
35555 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35556 {
35557 PyThreadState* __tstate = wxPyBeginAllowThreads();
35558 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35559 wxPyEndAllowThreads(__tstate);
35560 if (PyErr_Occurred()) SWIG_fail;
35561 }
35562 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35563 return resultobj;
35564fail:
35565 return NULL;
d55e5bfc
RD
35566}
35567
35568
1bd55598
RD
35569SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35570 PyObject *resultobj = 0;
35571 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35572 wxTreeItemId result;
35573 void *argp1 = 0 ;
35574 int res1 = 0 ;
35575 PyObject *swig_obj[1] ;
35576
35577 if (!args) SWIG_fail;
35578 swig_obj[0] = args;
35579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35580 if (!SWIG_IsOK(res1)) {
35581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35582 }
35583 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35584 {
35585 PyThreadState* __tstate = wxPyBeginAllowThreads();
35586 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35587 wxPyEndAllowThreads(__tstate);
35588 if (PyErr_Occurred()) SWIG_fail;
35589 }
35590 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35591 return resultobj;
35592fail:
35593 return NULL;
35594}
35595
35596
35597SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35598 PyObject *resultobj = 0;
35599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35600 wxTreeItemId *arg2 = 0 ;
35601 wxTreeItemId result;
35602 void *argp1 = 0 ;
35603 int res1 = 0 ;
35604 void *argp2 = 0 ;
35605 int res2 = 0 ;
35606 PyObject * obj0 = 0 ;
35607 PyObject * obj1 = 0 ;
35608 char * kwnames[] = {
35609 (char *) "self",(char *) "item", NULL
35610 };
35611
35612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35614 if (!SWIG_IsOK(res1)) {
35615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35616 }
35617 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35619 if (!SWIG_IsOK(res2)) {
35620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35621 }
35622 if (!argp2) {
35623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35624 }
35625 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35626 {
35627 PyThreadState* __tstate = wxPyBeginAllowThreads();
35628 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35629 wxPyEndAllowThreads(__tstate);
35630 if (PyErr_Occurred()) SWIG_fail;
35631 }
35632 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35633 return resultobj;
35634fail:
35635 return NULL;
35636}
35637
35638
35639SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35640 PyObject *resultobj = 0;
35641 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35642 wxTreeItemId *arg2 = 0 ;
35643 wxTreeItemId result;
35644 void *argp1 = 0 ;
35645 int res1 = 0 ;
35646 void *argp2 = 0 ;
35647 int res2 = 0 ;
35648 PyObject * obj0 = 0 ;
35649 PyObject * obj1 = 0 ;
35650 char * kwnames[] = {
35651 (char *) "self",(char *) "item", NULL
35652 };
35653
35654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35656 if (!SWIG_IsOK(res1)) {
35657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35658 }
35659 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35661 if (!SWIG_IsOK(res2)) {
35662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35663 }
35664 if (!argp2) {
35665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35666 }
35667 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35668 {
35669 PyThreadState* __tstate = wxPyBeginAllowThreads();
35670 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35671 wxPyEndAllowThreads(__tstate);
35672 if (PyErr_Occurred()) SWIG_fail;
35673 }
35674 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35675 return resultobj;
35676fail:
35677 return NULL;
35678}
35679
35680
35681SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35682 PyObject *resultobj = 0;
35683 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35684 wxString *arg2 = 0 ;
35685 int arg3 = (int) -1 ;
35686 int arg4 = (int) -1 ;
35687 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35688 wxTreeItemId result;
35689 void *argp1 = 0 ;
35690 int res1 = 0 ;
35691 bool temp2 = false ;
35692 int val3 ;
35693 int ecode3 = 0 ;
35694 int val4 ;
35695 int ecode4 = 0 ;
35696 int res5 = 0 ;
35697 PyObject * obj0 = 0 ;
35698 PyObject * obj1 = 0 ;
35699 PyObject * obj2 = 0 ;
35700 PyObject * obj3 = 0 ;
35701 PyObject * obj4 = 0 ;
35702 char * kwnames[] = {
35703 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35704 };
35705
35706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35708 if (!SWIG_IsOK(res1)) {
35709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35710 }
35711 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35712 {
35713 arg2 = wxString_in_helper(obj1);
35714 if (arg2 == NULL) SWIG_fail;
35715 temp2 = true;
35716 }
35717 if (obj2) {
35718 ecode3 = SWIG_AsVal_int(obj2, &val3);
35719 if (!SWIG_IsOK(ecode3)) {
35720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35721 }
35722 arg3 = static_cast< int >(val3);
35723 }
35724 if (obj3) {
35725 ecode4 = SWIG_AsVal_int(obj3, &val4);
35726 if (!SWIG_IsOK(ecode4)) {
35727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35728 }
35729 arg4 = static_cast< int >(val4);
35730 }
35731 if (obj4) {
35732 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35733 if (!SWIG_IsOK(res5)) {
35734 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 35735 }
1bd55598
RD
35736 }
35737 {
35738 PyThreadState* __tstate = wxPyBeginAllowThreads();
35739 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35740 wxPyEndAllowThreads(__tstate);
35741 if (PyErr_Occurred()) SWIG_fail;
35742 }
35743 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35744 {
35745 if (temp2)
35746 delete arg2;
35747 }
35748 return resultobj;
35749fail:
35750 {
35751 if (temp2)
35752 delete arg2;
35753 }
35754 return NULL;
35755}
35756
35757
35758SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35759 PyObject *resultobj = 0;
35760 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35761 wxTreeItemId *arg2 = 0 ;
35762 wxString *arg3 = 0 ;
35763 int arg4 = (int) -1 ;
35764 int arg5 = (int) -1 ;
35765 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35766 wxTreeItemId result;
35767 void *argp1 = 0 ;
35768 int res1 = 0 ;
35769 void *argp2 = 0 ;
35770 int res2 = 0 ;
35771 bool temp3 = false ;
35772 int val4 ;
35773 int ecode4 = 0 ;
35774 int val5 ;
35775 int ecode5 = 0 ;
35776 int res6 = 0 ;
35777 PyObject * obj0 = 0 ;
35778 PyObject * obj1 = 0 ;
35779 PyObject * obj2 = 0 ;
35780 PyObject * obj3 = 0 ;
35781 PyObject * obj4 = 0 ;
35782 PyObject * obj5 = 0 ;
35783 char * kwnames[] = {
35784 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35785 };
35786
35787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35789 if (!SWIG_IsOK(res1)) {
35790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35791 }
35792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35794 if (!SWIG_IsOK(res2)) {
35795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35796 }
35797 if (!argp2) {
35798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35799 }
35800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35801 {
35802 arg3 = wxString_in_helper(obj2);
35803 if (arg3 == NULL) SWIG_fail;
35804 temp3 = true;
35805 }
35806 if (obj3) {
35807 ecode4 = SWIG_AsVal_int(obj3, &val4);
35808 if (!SWIG_IsOK(ecode4)) {
35809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35810 }
35811 arg4 = static_cast< int >(val4);
35812 }
35813 if (obj4) {
35814 ecode5 = SWIG_AsVal_int(obj4, &val5);
35815 if (!SWIG_IsOK(ecode5)) {
35816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35817 }
35818 arg5 = static_cast< int >(val5);
35819 }
35820 if (obj5) {
35821 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35822 if (!SWIG_IsOK(res6)) {
35823 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35824 }
1bd55598
RD
35825 }
35826 {
35827 PyThreadState* __tstate = wxPyBeginAllowThreads();
35828 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35829 wxPyEndAllowThreads(__tstate);
35830 if (PyErr_Occurred()) SWIG_fail;
35831 }
35832 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35833 {
35834 if (temp3)
35835 delete arg3;
35836 }
35837 return resultobj;
35838fail:
35839 {
35840 if (temp3)
35841 delete arg3;
35842 }
35843 return NULL;
35844}
35845
35846
35847SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35848 PyObject *resultobj = 0;
35849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35850 wxTreeItemId *arg2 = 0 ;
35851 wxTreeItemId *arg3 = 0 ;
35852 wxString *arg4 = 0 ;
35853 int arg5 = (int) -1 ;
35854 int arg6 = (int) -1 ;
35855 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35856 wxTreeItemId result;
35857 void *argp1 = 0 ;
35858 int res1 = 0 ;
35859 void *argp2 = 0 ;
35860 int res2 = 0 ;
35861 void *argp3 = 0 ;
35862 int res3 = 0 ;
35863 bool temp4 = false ;
35864 int val5 ;
35865 int ecode5 = 0 ;
35866 int val6 ;
35867 int ecode6 = 0 ;
35868 int res7 = 0 ;
35869 PyObject * obj0 = 0 ;
35870 PyObject * obj1 = 0 ;
35871 PyObject * obj2 = 0 ;
35872 PyObject * obj3 = 0 ;
35873 PyObject * obj4 = 0 ;
35874 PyObject * obj5 = 0 ;
35875 PyObject * obj6 = 0 ;
35876 char * kwnames[] = {
35877 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35878 };
35879
35880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35882 if (!SWIG_IsOK(res1)) {
35883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35884 }
35885 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35887 if (!SWIG_IsOK(res2)) {
35888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35889 }
35890 if (!argp2) {
35891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35892 }
35893 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35894 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35895 if (!SWIG_IsOK(res3)) {
35896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35897 }
35898 if (!argp3) {
35899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35900 }
35901 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35902 {
35903 arg4 = wxString_in_helper(obj3);
35904 if (arg4 == NULL) SWIG_fail;
35905 temp4 = true;
35906 }
35907 if (obj4) {
35908 ecode5 = SWIG_AsVal_int(obj4, &val5);
35909 if (!SWIG_IsOK(ecode5)) {
35910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35911 }
35912 arg5 = static_cast< int >(val5);
35913 }
35914 if (obj5) {
35915 ecode6 = SWIG_AsVal_int(obj5, &val6);
35916 if (!SWIG_IsOK(ecode6)) {
35917 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35918 }
35919 arg6 = static_cast< int >(val6);
35920 }
35921 if (obj6) {
35922 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35923 if (!SWIG_IsOK(res7)) {
35924 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35925 }
1bd55598
RD
35926 }
35927 {
35928 PyThreadState* __tstate = wxPyBeginAllowThreads();
35929 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35930 wxPyEndAllowThreads(__tstate);
35931 if (PyErr_Occurred()) SWIG_fail;
35932 }
35933 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35934 {
35935 if (temp4)
35936 delete arg4;
35937 }
35938 return resultobj;
35939fail:
35940 {
35941 if (temp4)
35942 delete arg4;
35943 }
35944 return NULL;
35945}
35946
35947
35948SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35949 PyObject *resultobj = 0;
35950 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35951 wxTreeItemId *arg2 = 0 ;
35952 size_t arg3 ;
35953 wxString *arg4 = 0 ;
35954 int arg5 = (int) -1 ;
35955 int arg6 = (int) -1 ;
35956 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35957 wxTreeItemId result;
35958 void *argp1 = 0 ;
35959 int res1 = 0 ;
35960 void *argp2 = 0 ;
35961 int res2 = 0 ;
35962 size_t val3 ;
35963 int ecode3 = 0 ;
35964 bool temp4 = false ;
35965 int val5 ;
35966 int ecode5 = 0 ;
35967 int val6 ;
35968 int ecode6 = 0 ;
35969 int res7 = 0 ;
35970 PyObject * obj0 = 0 ;
35971 PyObject * obj1 = 0 ;
35972 PyObject * obj2 = 0 ;
35973 PyObject * obj3 = 0 ;
35974 PyObject * obj4 = 0 ;
35975 PyObject * obj5 = 0 ;
35976 PyObject * obj6 = 0 ;
35977 char * kwnames[] = {
35978 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35979 };
35980
35981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35983 if (!SWIG_IsOK(res1)) {
35984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35985 }
35986 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35988 if (!SWIG_IsOK(res2)) {
35989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35990 }
35991 if (!argp2) {
35992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35993 }
35994 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35995 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35996 if (!SWIG_IsOK(ecode3)) {
35997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35998 }
35999 arg3 = static_cast< size_t >(val3);
36000 {
36001 arg4 = wxString_in_helper(obj3);
36002 if (arg4 == NULL) SWIG_fail;
36003 temp4 = true;
36004 }
36005 if (obj4) {
36006 ecode5 = SWIG_AsVal_int(obj4, &val5);
36007 if (!SWIG_IsOK(ecode5)) {
36008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36009 }
36010 arg5 = static_cast< int >(val5);
36011 }
36012 if (obj5) {
36013 ecode6 = SWIG_AsVal_int(obj5, &val6);
36014 if (!SWIG_IsOK(ecode6)) {
36015 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36016 }
36017 arg6 = static_cast< int >(val6);
36018 }
36019 if (obj6) {
36020 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36021 if (!SWIG_IsOK(res7)) {
36022 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36023 }
1bd55598
RD
36024 }
36025 {
36026 PyThreadState* __tstate = wxPyBeginAllowThreads();
36027 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36028 wxPyEndAllowThreads(__tstate);
36029 if (PyErr_Occurred()) SWIG_fail;
36030 }
36031 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36032 {
36033 if (temp4)
36034 delete arg4;
36035 }
36036 return resultobj;
36037fail:
36038 {
36039 if (temp4)
36040 delete arg4;
36041 }
36042 return NULL;
36043}
36044
36045
36046SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36047 PyObject *resultobj = 0;
36048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36049 wxTreeItemId *arg2 = 0 ;
36050 wxString *arg3 = 0 ;
36051 int arg4 = (int) -1 ;
36052 int arg5 = (int) -1 ;
36053 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36054 wxTreeItemId result;
36055 void *argp1 = 0 ;
36056 int res1 = 0 ;
36057 void *argp2 = 0 ;
36058 int res2 = 0 ;
36059 bool temp3 = false ;
36060 int val4 ;
36061 int ecode4 = 0 ;
36062 int val5 ;
36063 int ecode5 = 0 ;
36064 int res6 = 0 ;
36065 PyObject * obj0 = 0 ;
36066 PyObject * obj1 = 0 ;
36067 PyObject * obj2 = 0 ;
36068 PyObject * obj3 = 0 ;
36069 PyObject * obj4 = 0 ;
36070 PyObject * obj5 = 0 ;
36071 char * kwnames[] = {
36072 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36073 };
36074
36075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36077 if (!SWIG_IsOK(res1)) {
36078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36079 }
36080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36082 if (!SWIG_IsOK(res2)) {
36083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36084 }
36085 if (!argp2) {
36086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36087 }
36088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36089 {
36090 arg3 = wxString_in_helper(obj2);
36091 if (arg3 == NULL) SWIG_fail;
36092 temp3 = true;
36093 }
36094 if (obj3) {
36095 ecode4 = SWIG_AsVal_int(obj3, &val4);
36096 if (!SWIG_IsOK(ecode4)) {
36097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36098 }
36099 arg4 = static_cast< int >(val4);
36100 }
36101 if (obj4) {
36102 ecode5 = SWIG_AsVal_int(obj4, &val5);
36103 if (!SWIG_IsOK(ecode5)) {
36104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36105 }
36106 arg5 = static_cast< int >(val5);
36107 }
36108 if (obj5) {
36109 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36110 if (!SWIG_IsOK(res6)) {
36111 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36112 }
1bd55598
RD
36113 }
36114 {
36115 PyThreadState* __tstate = wxPyBeginAllowThreads();
36116 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36117 wxPyEndAllowThreads(__tstate);
36118 if (PyErr_Occurred()) SWIG_fail;
36119 }
36120 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36121 {
36122 if (temp3)
36123 delete arg3;
36124 }
36125 return resultobj;
36126fail:
36127 {
36128 if (temp3)
36129 delete arg3;
36130 }
36131 return NULL;
36132}
36133
36134
36135SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36136 PyObject *resultobj = 0;
36137 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36138 wxTreeItemId *arg2 = 0 ;
36139 void *argp1 = 0 ;
36140 int res1 = 0 ;
36141 void *argp2 = 0 ;
36142 int res2 = 0 ;
36143 PyObject * obj0 = 0 ;
36144 PyObject * obj1 = 0 ;
36145 char * kwnames[] = {
36146 (char *) "self",(char *) "item", NULL
36147 };
36148
36149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36151 if (!SWIG_IsOK(res1)) {
36152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36153 }
36154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36156 if (!SWIG_IsOK(res2)) {
36157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36158 }
36159 if (!argp2) {
36160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36163 {
36164 PyThreadState* __tstate = wxPyBeginAllowThreads();
36165 (arg1)->Delete((wxTreeItemId const &)*arg2);
36166 wxPyEndAllowThreads(__tstate);
36167 if (PyErr_Occurred()) SWIG_fail;
36168 }
36169 resultobj = SWIG_Py_Void();
36170 return resultobj;
36171fail:
36172 return NULL;
36173}
36174
36175
36176SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36177 PyObject *resultobj = 0;
36178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36179 wxTreeItemId *arg2 = 0 ;
36180 void *argp1 = 0 ;
36181 int res1 = 0 ;
36182 void *argp2 = 0 ;
36183 int res2 = 0 ;
36184 PyObject * obj0 = 0 ;
36185 PyObject * obj1 = 0 ;
36186 char * kwnames[] = {
36187 (char *) "self",(char *) "item", NULL
36188 };
36189
36190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36192 if (!SWIG_IsOK(res1)) {
36193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36194 }
36195 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36197 if (!SWIG_IsOK(res2)) {
36198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36199 }
36200 if (!argp2) {
36201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36202 }
36203 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36204 {
36205 PyThreadState* __tstate = wxPyBeginAllowThreads();
36206 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36207 wxPyEndAllowThreads(__tstate);
36208 if (PyErr_Occurred()) SWIG_fail;
36209 }
36210 resultobj = SWIG_Py_Void();
36211 return resultobj;
36212fail:
36213 return NULL;
d55e5bfc
RD
36214}
36215
36216
1bd55598
RD
36217SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36218 PyObject *resultobj = 0;
36219 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36220 void *argp1 = 0 ;
36221 int res1 = 0 ;
36222 PyObject *swig_obj[1] ;
36223
36224 if (!args) SWIG_fail;
36225 swig_obj[0] = args;
36226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36227 if (!SWIG_IsOK(res1)) {
36228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36229 }
36230 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36231 {
36232 PyThreadState* __tstate = wxPyBeginAllowThreads();
36233 (arg1)->DeleteAllItems();
36234 wxPyEndAllowThreads(__tstate);
36235 if (PyErr_Occurred()) SWIG_fail;
36236 }
36237 resultobj = SWIG_Py_Void();
36238 return resultobj;
36239fail:
36240 return NULL;
36241}
36242
36243
36244SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36245 PyObject *resultobj = 0;
36246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36247 wxTreeItemId *arg2 = 0 ;
36248 void *argp1 = 0 ;
36249 int res1 = 0 ;
36250 void *argp2 = 0 ;
36251 int res2 = 0 ;
36252 PyObject * obj0 = 0 ;
36253 PyObject * obj1 = 0 ;
36254 char * kwnames[] = {
36255 (char *) "self",(char *) "item", NULL
36256 };
36257
36258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36260 if (!SWIG_IsOK(res1)) {
36261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36262 }
36263 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36265 if (!SWIG_IsOK(res2)) {
36266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36267 }
36268 if (!argp2) {
36269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36272 {
36273 PyThreadState* __tstate = wxPyBeginAllowThreads();
36274 (arg1)->Expand((wxTreeItemId const &)*arg2);
36275 wxPyEndAllowThreads(__tstate);
36276 if (PyErr_Occurred()) SWIG_fail;
36277 }
36278 resultobj = SWIG_Py_Void();
36279 return resultobj;
36280fail:
36281 return NULL;
36282}
36283
36284
3d6c9062
RD
36285SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36286 PyObject *resultobj = 0;
36287 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36288 wxTreeItemId *arg2 = 0 ;
36289 void *argp1 = 0 ;
36290 int res1 = 0 ;
36291 void *argp2 = 0 ;
36292 int res2 = 0 ;
36293 PyObject * obj0 = 0 ;
36294 PyObject * obj1 = 0 ;
36295 char * kwnames[] = {
36296 (char *) "self",(char *) "item", NULL
36297 };
36298
36299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36301 if (!SWIG_IsOK(res1)) {
36302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36303 }
36304 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36305 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36306 if (!SWIG_IsOK(res2)) {
36307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36308 }
36309 if (!argp2) {
36310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36311 }
36312 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36313 {
36314 PyThreadState* __tstate = wxPyBeginAllowThreads();
36315 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36316 wxPyEndAllowThreads(__tstate);
36317 if (PyErr_Occurred()) SWIG_fail;
36318 }
36319 resultobj = SWIG_Py_Void();
36320 return resultobj;
36321fail:
36322 return NULL;
36323}
36324
36325
36326SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36327 PyObject *resultobj = 0;
36328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36329 void *argp1 = 0 ;
36330 int res1 = 0 ;
36331 PyObject *swig_obj[1] ;
36332
36333 if (!args) SWIG_fail;
36334 swig_obj[0] = args;
36335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36336 if (!SWIG_IsOK(res1)) {
36337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36338 }
36339 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36340 {
36341 PyThreadState* __tstate = wxPyBeginAllowThreads();
36342 (arg1)->ExpandAll();
36343 wxPyEndAllowThreads(__tstate);
36344 if (PyErr_Occurred()) SWIG_fail;
36345 }
36346 resultobj = SWIG_Py_Void();
36347 return resultobj;
36348fail:
36349 return NULL;
36350}
36351
36352
1bd55598
RD
36353SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36354 PyObject *resultobj = 0;
36355 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36356 wxTreeItemId *arg2 = 0 ;
36357 void *argp1 = 0 ;
36358 int res1 = 0 ;
36359 void *argp2 = 0 ;
36360 int res2 = 0 ;
36361 PyObject * obj0 = 0 ;
36362 PyObject * obj1 = 0 ;
36363 char * kwnames[] = {
36364 (char *) "self",(char *) "item", NULL
36365 };
36366
36367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36369 if (!SWIG_IsOK(res1)) {
36370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36371 }
36372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36374 if (!SWIG_IsOK(res2)) {
36375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36376 }
36377 if (!argp2) {
36378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36379 }
36380 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36381 {
36382 PyThreadState* __tstate = wxPyBeginAllowThreads();
36383 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36384 wxPyEndAllowThreads(__tstate);
36385 if (PyErr_Occurred()) SWIG_fail;
36386 }
36387 resultobj = SWIG_Py_Void();
36388 return resultobj;
36389fail:
36390 return NULL;
36391}
36392
36393
36394SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36395 PyObject *resultobj = 0;
36396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36397 wxTreeItemId *arg2 = 0 ;
36398 void *argp1 = 0 ;
36399 int res1 = 0 ;
36400 void *argp2 = 0 ;
36401 int res2 = 0 ;
36402 PyObject * obj0 = 0 ;
36403 PyObject * obj1 = 0 ;
36404 char * kwnames[] = {
36405 (char *) "self",(char *) "item", NULL
36406 };
36407
36408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36410 if (!SWIG_IsOK(res1)) {
36411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36412 }
36413 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36415 if (!SWIG_IsOK(res2)) {
36416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36417 }
36418 if (!argp2) {
36419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36420 }
36421 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36422 {
36423 PyThreadState* __tstate = wxPyBeginAllowThreads();
36424 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36425 wxPyEndAllowThreads(__tstate);
36426 if (PyErr_Occurred()) SWIG_fail;
36427 }
36428 resultobj = SWIG_Py_Void();
36429 return resultobj;
36430fail:
36431 return NULL;
36432}
36433
36434
36435SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36436 PyObject *resultobj = 0;
36437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36438 wxTreeItemId *arg2 = 0 ;
36439 void *argp1 = 0 ;
36440 int res1 = 0 ;
36441 void *argp2 = 0 ;
36442 int res2 = 0 ;
36443 PyObject * obj0 = 0 ;
36444 PyObject * obj1 = 0 ;
36445 char * kwnames[] = {
36446 (char *) "self",(char *) "item", NULL
36447 };
36448
36449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36451 if (!SWIG_IsOK(res1)) {
36452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36453 }
36454 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36456 if (!SWIG_IsOK(res2)) {
36457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36458 }
36459 if (!argp2) {
36460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36461 }
36462 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36463 {
36464 PyThreadState* __tstate = wxPyBeginAllowThreads();
36465 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36466 wxPyEndAllowThreads(__tstate);
36467 if (PyErr_Occurred()) SWIG_fail;
36468 }
36469 resultobj = SWIG_Py_Void();
36470 return resultobj;
36471fail:
36472 return NULL;
d55e5bfc
RD
36473}
36474
36475
1bd55598
RD
36476SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36477 PyObject *resultobj = 0;
36478 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36479 void *argp1 = 0 ;
36480 int res1 = 0 ;
36481 PyObject *swig_obj[1] ;
36482
36483 if (!args) SWIG_fail;
36484 swig_obj[0] = args;
36485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36486 if (!SWIG_IsOK(res1)) {
36487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36488 }
36489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36490 {
36491 PyThreadState* __tstate = wxPyBeginAllowThreads();
36492 (arg1)->Unselect();
36493 wxPyEndAllowThreads(__tstate);
36494 if (PyErr_Occurred()) SWIG_fail;
36495 }
36496 resultobj = SWIG_Py_Void();
36497 return resultobj;
36498fail:
36499 return NULL;
36500}
36501
36502
36503SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36504 PyObject *resultobj = 0;
36505 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36506 wxTreeItemId *arg2 = 0 ;
36507 void *argp1 = 0 ;
36508 int res1 = 0 ;
36509 void *argp2 = 0 ;
36510 int res2 = 0 ;
36511 PyObject * obj0 = 0 ;
36512 PyObject * obj1 = 0 ;
36513 char * kwnames[] = {
36514 (char *) "self",(char *) "item", NULL
36515 };
36516
36517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36519 if (!SWIG_IsOK(res1)) {
36520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36521 }
36522 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36523 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36524 if (!SWIG_IsOK(res2)) {
36525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36526 }
36527 if (!argp2) {
36528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36529 }
36530 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36531 {
36532 PyThreadState* __tstate = wxPyBeginAllowThreads();
36533 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36534 wxPyEndAllowThreads(__tstate);
36535 if (PyErr_Occurred()) SWIG_fail;
36536 }
36537 resultobj = SWIG_Py_Void();
36538 return resultobj;
36539fail:
36540 return NULL;
d55e5bfc
RD
36541}
36542
36543
1bd55598
RD
36544SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36545 PyObject *resultobj = 0;
36546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36547 void *argp1 = 0 ;
36548 int res1 = 0 ;
36549 PyObject *swig_obj[1] ;
36550
36551 if (!args) SWIG_fail;
36552 swig_obj[0] = args;
36553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36554 if (!SWIG_IsOK(res1)) {
36555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36556 }
36557 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36558 {
36559 PyThreadState* __tstate = wxPyBeginAllowThreads();
36560 (arg1)->UnselectAll();
36561 wxPyEndAllowThreads(__tstate);
36562 if (PyErr_Occurred()) SWIG_fail;
36563 }
36564 resultobj = SWIG_Py_Void();
36565 return resultobj;
36566fail:
36567 return NULL;
36568}
36569
36570
36571SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36572 PyObject *resultobj = 0;
36573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36574 wxTreeItemId *arg2 = 0 ;
36575 bool arg3 = (bool) true ;
36576 void *argp1 = 0 ;
36577 int res1 = 0 ;
36578 void *argp2 = 0 ;
36579 int res2 = 0 ;
36580 bool val3 ;
36581 int ecode3 = 0 ;
36582 PyObject * obj0 = 0 ;
36583 PyObject * obj1 = 0 ;
36584 PyObject * obj2 = 0 ;
36585 char * kwnames[] = {
36586 (char *) "self",(char *) "item",(char *) "select", NULL
36587 };
36588
36589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36591 if (!SWIG_IsOK(res1)) {
36592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36593 }
36594 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36596 if (!SWIG_IsOK(res2)) {
36597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36598 }
36599 if (!argp2) {
36600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36601 }
36602 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36603 if (obj2) {
36604 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36605 if (!SWIG_IsOK(ecode3)) {
36606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36607 }
36608 arg3 = static_cast< bool >(val3);
36609 }
36610 {
36611 PyThreadState* __tstate = wxPyBeginAllowThreads();
36612 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36613 wxPyEndAllowThreads(__tstate);
36614 if (PyErr_Occurred()) SWIG_fail;
36615 }
36616 resultobj = SWIG_Py_Void();
36617 return resultobj;
36618fail:
36619 return NULL;
36620}
36621
36622
36623SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36624 PyObject *resultobj = 0;
36625 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36626 wxTreeItemId *arg2 = 0 ;
36627 void *argp1 = 0 ;
36628 int res1 = 0 ;
36629 void *argp2 = 0 ;
36630 int res2 = 0 ;
36631 PyObject * obj0 = 0 ;
36632 PyObject * obj1 = 0 ;
36633 char * kwnames[] = {
36634 (char *) "self",(char *) "item", NULL
36635 };
36636
36637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36639 if (!SWIG_IsOK(res1)) {
36640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36641 }
36642 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36644 if (!SWIG_IsOK(res2)) {
36645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36646 }
36647 if (!argp2) {
36648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36649 }
36650 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36651 {
36652 PyThreadState* __tstate = wxPyBeginAllowThreads();
36653 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36654 wxPyEndAllowThreads(__tstate);
36655 if (PyErr_Occurred()) SWIG_fail;
36656 }
36657 resultobj = SWIG_Py_Void();
36658 return resultobj;
36659fail:
36660 return NULL;
36661}
36662
36663
36664SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36665 PyObject *resultobj = 0;
36666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36667 wxTreeItemId *arg2 = 0 ;
36668 void *argp1 = 0 ;
36669 int res1 = 0 ;
36670 void *argp2 = 0 ;
36671 int res2 = 0 ;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674 char * kwnames[] = {
36675 (char *) "self",(char *) "item", NULL
36676 };
36677
36678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36680 if (!SWIG_IsOK(res1)) {
36681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36682 }
36683 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36685 if (!SWIG_IsOK(res2)) {
36686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36687 }
36688 if (!argp2) {
36689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36690 }
36691 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36692 {
36693 PyThreadState* __tstate = wxPyBeginAllowThreads();
36694 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36695 wxPyEndAllowThreads(__tstate);
36696 if (PyErr_Occurred()) SWIG_fail;
36697 }
36698 resultobj = SWIG_Py_Void();
36699 return resultobj;
36700fail:
36701 return NULL;
36702}
36703
36704
36705SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36706 PyObject *resultobj = 0;
36707 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36708 wxTreeItemId *arg2 = 0 ;
36709 void *argp1 = 0 ;
36710 int res1 = 0 ;
36711 void *argp2 = 0 ;
36712 int res2 = 0 ;
36713 PyObject * obj0 = 0 ;
36714 PyObject * obj1 = 0 ;
36715 char * kwnames[] = {
36716 (char *) "self",(char *) "item", NULL
36717 };
36718
36719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36721 if (!SWIG_IsOK(res1)) {
36722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36723 }
36724 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36726 if (!SWIG_IsOK(res2)) {
36727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36728 }
36729 if (!argp2) {
36730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36731 }
36732 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36733 {
36734 PyThreadState* __tstate = wxPyBeginAllowThreads();
36735 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36736 wxPyEndAllowThreads(__tstate);
36737 if (PyErr_Occurred()) SWIG_fail;
36738 }
36739 resultobj = SWIG_Py_Void();
36740 return resultobj;
36741fail:
36742 return NULL;
36743}
36744
36745
36746SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36747 PyObject *resultobj = 0;
36748 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36749 wxTreeItemId *arg2 = 0 ;
36750 void *argp1 = 0 ;
36751 int res1 = 0 ;
36752 void *argp2 = 0 ;
36753 int res2 = 0 ;
36754 PyObject * obj0 = 0 ;
36755 PyObject * obj1 = 0 ;
36756 char * kwnames[] = {
36757 (char *) "self",(char *) "item", NULL
36758 };
36759
36760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36762 if (!SWIG_IsOK(res1)) {
36763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36764 }
36765 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36767 if (!SWIG_IsOK(res2)) {
36768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36769 }
36770 if (!argp2) {
36771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36772 }
36773 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36774 {
36775 PyThreadState* __tstate = wxPyBeginAllowThreads();
36776 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36777 wxPyEndAllowThreads(__tstate);
36778 if (PyErr_Occurred()) SWIG_fail;
36779 }
36780 resultobj = SWIG_Py_Void();
36781 return resultobj;
36782fail:
36783 return NULL;
d55e5bfc
RD
36784}
36785
36786
1bd55598
RD
36787SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36788 PyObject *resultobj = 0;
36789 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36790 wxTextCtrl *result = 0 ;
36791 void *argp1 = 0 ;
36792 int res1 = 0 ;
36793 PyObject *swig_obj[1] ;
36794
36795 if (!args) SWIG_fail;
36796 swig_obj[0] = args;
36797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36798 if (!SWIG_IsOK(res1)) {
36799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36800 }
36801 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36802 {
36803 PyThreadState* __tstate = wxPyBeginAllowThreads();
36804 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36805 wxPyEndAllowThreads(__tstate);
36806 if (PyErr_Occurred()) SWIG_fail;
36807 }
36808 {
36809 resultobj = wxPyMake_wxObject(result, 0);
36810 }
36811 return resultobj;
36812fail:
36813 return NULL;
36814}
36815
36816
36817SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36818 PyObject *resultobj = 0;
36819 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36820 wxTreeItemId *arg2 = 0 ;
36821 void *argp1 = 0 ;
36822 int res1 = 0 ;
36823 void *argp2 = 0 ;
36824 int res2 = 0 ;
36825 PyObject * obj0 = 0 ;
36826 PyObject * obj1 = 0 ;
36827 char * kwnames[] = {
36828 (char *) "self",(char *) "item", NULL
36829 };
36830
36831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36833 if (!SWIG_IsOK(res1)) {
36834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36835 }
36836 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36838 if (!SWIG_IsOK(res2)) {
36839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36840 }
36841 if (!argp2) {
36842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36843 }
36844 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36845 {
36846 PyThreadState* __tstate = wxPyBeginAllowThreads();
36847 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36848 wxPyEndAllowThreads(__tstate);
36849 if (PyErr_Occurred()) SWIG_fail;
36850 }
36851 resultobj = SWIG_Py_Void();
36852 return resultobj;
36853fail:
36854 return NULL;
36855}
36856
36857
36858SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36859 PyObject *resultobj = 0;
36860 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36861 wxPoint *arg2 = 0 ;
36862 int *arg3 = 0 ;
36863 wxTreeItemId result;
36864 void *argp1 = 0 ;
36865 int res1 = 0 ;
36866 wxPoint temp2 ;
36867 int temp3 ;
36868 int res3 = SWIG_TMPOBJ ;
36869 PyObject * obj0 = 0 ;
36870 PyObject * obj1 = 0 ;
36871 char * kwnames[] = {
36872 (char *) "self",(char *) "point", NULL
36873 };
36874
36875 arg3 = &temp3;
36876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36878 if (!SWIG_IsOK(res1)) {
36879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36880 }
36881 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36882 {
36883 arg2 = &temp2;
36884 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36885 }
36886 {
36887 PyThreadState* __tstate = wxPyBeginAllowThreads();
36888 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36889 wxPyEndAllowThreads(__tstate);
36890 if (PyErr_Occurred()) SWIG_fail;
36891 }
36892 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36893 if (SWIG_IsTmpObj(res3)) {
36894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36895 } else {
36896 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36898 }
36899 return resultobj;
36900fail:
36901 return NULL;
36902}
36903
36904
36905SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36906 PyObject *resultobj = 0;
36907 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36908 wxTreeItemId *arg2 = 0 ;
36909 bool arg3 = (bool) false ;
36910 PyObject *result = 0 ;
36911 void *argp1 = 0 ;
36912 int res1 = 0 ;
36913 void *argp2 = 0 ;
36914 int res2 = 0 ;
36915 bool val3 ;
36916 int ecode3 = 0 ;
36917 PyObject * obj0 = 0 ;
36918 PyObject * obj1 = 0 ;
36919 PyObject * obj2 = 0 ;
36920 char * kwnames[] = {
36921 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36922 };
36923
36924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36926 if (!SWIG_IsOK(res1)) {
36927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36928 }
36929 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36931 if (!SWIG_IsOK(res2)) {
36932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36933 }
36934 if (!argp2) {
36935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36936 }
36937 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36938 if (obj2) {
36939 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36940 if (!SWIG_IsOK(ecode3)) {
36941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36942 }
36943 arg3 = static_cast< bool >(val3);
36944 }
36945 {
36946 PyThreadState* __tstate = wxPyBeginAllowThreads();
36947 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36948 wxPyEndAllowThreads(__tstate);
36949 if (PyErr_Occurred()) SWIG_fail;
36950 }
36951 resultobj = result;
36952 return resultobj;
36953fail:
36954 return NULL;
36955}
36956
36957
36958SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36959 PyObject *resultobj = 0;
36960 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36961 SwigValueWrapper<wxVisualAttributes > result;
36962 int val1 ;
36963 int ecode1 = 0 ;
36964 PyObject * obj0 = 0 ;
36965 char * kwnames[] = {
36966 (char *) "variant", NULL
36967 };
36968
36969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36970 if (obj0) {
36971 ecode1 = SWIG_AsVal_int(obj0, &val1);
36972 if (!SWIG_IsOK(ecode1)) {
36973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36974 }
36975 arg1 = static_cast< wxWindowVariant >(val1);
36976 }
36977 {
36978 if (!wxPyCheckForApp()) SWIG_fail;
36979 PyThreadState* __tstate = wxPyBeginAllowThreads();
36980 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36981 wxPyEndAllowThreads(__tstate);
36982 if (PyErr_Occurred()) SWIG_fail;
36983 }
36984 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36985 return resultobj;
36986fail:
36987 return NULL;
d55e5bfc
RD
36988}
36989
36990
2131d850
RD
36991SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36992 PyObject *resultobj = 0;
36993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36994 bool arg2 ;
36995 void *argp1 = 0 ;
36996 int res1 = 0 ;
36997 bool val2 ;
36998 int ecode2 = 0 ;
36999 PyObject * obj0 = 0 ;
37000 PyObject * obj1 = 0 ;
37001 char * kwnames[] = {
37002 (char *) "self",(char *) "q", NULL
37003 };
37004
37005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37007 if (!SWIG_IsOK(res1)) {
37008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37009 }
37010 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37011 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37012 if (!SWIG_IsOK(ecode2)) {
37013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37014 }
37015 arg2 = static_cast< bool >(val2);
37016 {
37017 PyThreadState* __tstate = wxPyBeginAllowThreads();
37018 (arg1)->SetQuickBestSize(arg2);
37019 wxPyEndAllowThreads(__tstate);
37020 if (PyErr_Occurred()) SWIG_fail;
37021 }
37022 resultobj = SWIG_Py_Void();
37023 return resultobj;
37024fail:
37025 return NULL;
37026}
37027
37028
37029SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37030 PyObject *resultobj = 0;
37031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37032 bool result;
37033 void *argp1 = 0 ;
37034 int res1 = 0 ;
37035 PyObject *swig_obj[1] ;
37036
37037 if (!args) SWIG_fail;
37038 swig_obj[0] = args;
37039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37040 if (!SWIG_IsOK(res1)) {
37041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37042 }
37043 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37044 {
37045 PyThreadState* __tstate = wxPyBeginAllowThreads();
37046 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37047 wxPyEndAllowThreads(__tstate);
37048 if (PyErr_Occurred()) SWIG_fail;
37049 }
37050 {
37051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37052 }
37053 return resultobj;
37054fail:
37055 return NULL;
37056}
37057
37058
1bd55598
RD
37059SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37060 PyObject *obj;
37061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37062 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37063 return SWIG_Py_Void();
d55e5bfc
RD
37064}
37065
1bd55598
RD
37066SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37067 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37068}
37069
1bd55598
RD
37070SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37071 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37072 return 1;
d55e5bfc
RD
37073}
37074
37075
1bd55598
RD
37076SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37077 PyObject *pyobj = 0;
37078
37079 {
37080#if wxUSE_UNICODE
37081 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37082#else
37083 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37084#endif
37085 }
37086 return pyobj;
37087}
37088
37089
37090SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37091 PyObject *resultobj = 0;
37092 wxWindow *arg1 = (wxWindow *) 0 ;
37093 int arg2 = (int) (int)-1 ;
37094 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37095 wxString *arg3 = (wxString *) &arg3_defvalue ;
37096 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37097 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37098 wxSize const &arg5_defvalue = wxDefaultSize ;
37099 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37100 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37101 wxString const &arg7_defvalue = wxPyEmptyString ;
37102 wxString *arg7 = (wxString *) &arg7_defvalue ;
37103 int arg8 = (int) 0 ;
37104 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37105 wxString *arg9 = (wxString *) &arg9_defvalue ;
37106 wxGenericDirCtrl *result = 0 ;
37107 void *argp1 = 0 ;
37108 int res1 = 0 ;
37109 int val2 ;
37110 int ecode2 = 0 ;
37111 bool temp3 = false ;
37112 wxPoint temp4 ;
37113 wxSize temp5 ;
37114 long val6 ;
37115 int ecode6 = 0 ;
37116 bool temp7 = false ;
37117 int val8 ;
37118 int ecode8 = 0 ;
37119 bool temp9 = false ;
37120 PyObject * obj0 = 0 ;
37121 PyObject * obj1 = 0 ;
37122 PyObject * obj2 = 0 ;
37123 PyObject * obj3 = 0 ;
37124 PyObject * obj4 = 0 ;
37125 PyObject * obj5 = 0 ;
37126 PyObject * obj6 = 0 ;
37127 PyObject * obj7 = 0 ;
37128 PyObject * obj8 = 0 ;
37129 char * kwnames[] = {
37130 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37131 };
37132
37133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37135 if (!SWIG_IsOK(res1)) {
37136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37137 }
37138 arg1 = reinterpret_cast< wxWindow * >(argp1);
37139 if (obj1) {
37140 ecode2 = SWIG_AsVal_int(obj1, &val2);
37141 if (!SWIG_IsOK(ecode2)) {
37142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37143 }
37144 arg2 = static_cast< int >(val2);
37145 }
37146 if (obj2) {
36ed4f51 37147 {
1bd55598
RD
37148 arg3 = wxString_in_helper(obj2);
37149 if (arg3 == NULL) SWIG_fail;
37150 temp3 = true;
36ed4f51 37151 }
1bd55598
RD
37152 }
37153 if (obj3) {
d55e5bfc 37154 {
1bd55598
RD
37155 arg4 = &temp4;
37156 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37157 }
1bd55598
RD
37158 }
37159 if (obj4) {
36ed4f51 37160 {
1bd55598
RD
37161 arg5 = &temp5;
37162 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37163 }
1bd55598
RD
37164 }
37165 if (obj5) {
37166 ecode6 = SWIG_AsVal_long(obj5, &val6);
37167 if (!SWIG_IsOK(ecode6)) {
37168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37169 }
37170 arg6 = static_cast< long >(val6);
37171 }
37172 if (obj6) {
36ed4f51 37173 {
1bd55598
RD
37174 arg7 = wxString_in_helper(obj6);
37175 if (arg7 == NULL) SWIG_fail;
37176 temp7 = true;
36ed4f51 37177 }
1bd55598
RD
37178 }
37179 if (obj7) {
37180 ecode8 = SWIG_AsVal_int(obj7, &val8);
37181 if (!SWIG_IsOK(ecode8)) {
37182 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37183 }
37184 arg8 = static_cast< int >(val8);
37185 }
37186 if (obj8) {
d55e5bfc 37187 {
1bd55598
RD
37188 arg9 = wxString_in_helper(obj8);
37189 if (arg9 == NULL) SWIG_fail;
37190 temp9 = true;
d55e5bfc 37191 }
1bd55598
RD
37192 }
37193 {
37194 if (!wxPyCheckForApp()) SWIG_fail;
37195 PyThreadState* __tstate = wxPyBeginAllowThreads();
37196 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37197 wxPyEndAllowThreads(__tstate);
37198 if (PyErr_Occurred()) SWIG_fail;
37199 }
37200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37201 {
37202 if (temp3)
37203 delete arg3;
37204 }
37205 {
37206 if (temp7)
37207 delete arg7;
37208 }
37209 {
37210 if (temp9)
37211 delete arg9;
37212 }
37213 return resultobj;
37214fail:
37215 {
37216 if (temp3)
37217 delete arg3;
37218 }
37219 {
37220 if (temp7)
37221 delete arg7;
37222 }
37223 {
37224 if (temp9)
37225 delete arg9;
37226 }
37227 return NULL;
d55e5bfc
RD
37228}
37229
37230
1bd55598
RD
37231SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37232 PyObject *resultobj = 0;
37233 wxGenericDirCtrl *result = 0 ;
37234
37235 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37236 {
37237 if (!wxPyCheckForApp()) SWIG_fail;
37238 PyThreadState* __tstate = wxPyBeginAllowThreads();
37239 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37240 wxPyEndAllowThreads(__tstate);
37241 if (PyErr_Occurred()) SWIG_fail;
37242 }
37243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37244 return resultobj;
37245fail:
37246 return NULL;
37247}
37248
37249
37250SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37251 PyObject *resultobj = 0;
37252 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37253 wxWindow *arg2 = (wxWindow *) 0 ;
37254 int arg3 = (int) (int)-1 ;
37255 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37256 wxString *arg4 = (wxString *) &arg4_defvalue ;
37257 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37258 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37259 wxSize const &arg6_defvalue = wxDefaultSize ;
37260 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37261 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37262 wxString const &arg8_defvalue = wxPyEmptyString ;
37263 wxString *arg8 = (wxString *) &arg8_defvalue ;
37264 int arg9 = (int) 0 ;
37265 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37266 wxString *arg10 = (wxString *) &arg10_defvalue ;
37267 bool result;
37268 void *argp1 = 0 ;
37269 int res1 = 0 ;
37270 void *argp2 = 0 ;
37271 int res2 = 0 ;
37272 int val3 ;
37273 int ecode3 = 0 ;
37274 bool temp4 = false ;
37275 wxPoint temp5 ;
37276 wxSize temp6 ;
37277 long val7 ;
37278 int ecode7 = 0 ;
37279 bool temp8 = false ;
37280 int val9 ;
37281 int ecode9 = 0 ;
37282 bool temp10 = false ;
37283 PyObject * obj0 = 0 ;
37284 PyObject * obj1 = 0 ;
37285 PyObject * obj2 = 0 ;
37286 PyObject * obj3 = 0 ;
37287 PyObject * obj4 = 0 ;
37288 PyObject * obj5 = 0 ;
37289 PyObject * obj6 = 0 ;
37290 PyObject * obj7 = 0 ;
37291 PyObject * obj8 = 0 ;
37292 PyObject * obj9 = 0 ;
37293 char * kwnames[] = {
37294 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37295 };
37296
37297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37299 if (!SWIG_IsOK(res1)) {
37300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37301 }
37302 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37304 if (!SWIG_IsOK(res2)) {
37305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37306 }
37307 arg2 = reinterpret_cast< wxWindow * >(argp2);
37308 if (obj2) {
37309 ecode3 = SWIG_AsVal_int(obj2, &val3);
37310 if (!SWIG_IsOK(ecode3)) {
37311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37312 }
37313 arg3 = static_cast< int >(val3);
37314 }
37315 if (obj3) {
36ed4f51 37316 {
1bd55598
RD
37317 arg4 = wxString_in_helper(obj3);
37318 if (arg4 == NULL) SWIG_fail;
37319 temp4 = true;
36ed4f51 37320 }
1bd55598
RD
37321 }
37322 if (obj4) {
36ed4f51 37323 {
1bd55598
RD
37324 arg5 = &temp5;
37325 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37326 }
1bd55598
RD
37327 }
37328 if (obj5) {
d55e5bfc 37329 {
1bd55598
RD
37330 arg6 = &temp6;
37331 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37332 }
1bd55598
RD
37333 }
37334 if (obj6) {
37335 ecode7 = SWIG_AsVal_long(obj6, &val7);
37336 if (!SWIG_IsOK(ecode7)) {
37337 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37338 }
37339 arg7 = static_cast< long >(val7);
37340 }
37341 if (obj7) {
d55e5bfc 37342 {
1bd55598
RD
37343 arg8 = wxString_in_helper(obj7);
37344 if (arg8 == NULL) SWIG_fail;
37345 temp8 = true;
d55e5bfc 37346 }
1bd55598
RD
37347 }
37348 if (obj8) {
37349 ecode9 = SWIG_AsVal_int(obj8, &val9);
37350 if (!SWIG_IsOK(ecode9)) {
37351 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37352 }
37353 arg9 = static_cast< int >(val9);
37354 }
37355 if (obj9) {
36ed4f51 37356 {
1bd55598
RD
37357 arg10 = wxString_in_helper(obj9);
37358 if (arg10 == NULL) SWIG_fail;
37359 temp10 = true;
36ed4f51 37360 }
1bd55598
RD
37361 }
37362 {
37363 PyThreadState* __tstate = wxPyBeginAllowThreads();
37364 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37365 wxPyEndAllowThreads(__tstate);
37366 if (PyErr_Occurred()) SWIG_fail;
37367 }
37368 {
37369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37370 }
37371 {
37372 if (temp4)
37373 delete arg4;
37374 }
37375 {
37376 if (temp8)
37377 delete arg8;
37378 }
37379 {
37380 if (temp10)
37381 delete arg10;
37382 }
37383 return resultobj;
37384fail:
37385 {
37386 if (temp4)
37387 delete arg4;
37388 }
37389 {
37390 if (temp8)
37391 delete arg8;
37392 }
37393 {
37394 if (temp10)
37395 delete arg10;
37396 }
37397 return NULL;
37398}
37399
37400
37401SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37402 PyObject *resultobj = 0;
37403 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37404 wxString *arg2 = 0 ;
37405 bool result;
37406 void *argp1 = 0 ;
37407 int res1 = 0 ;
37408 bool temp2 = false ;
37409 PyObject * obj0 = 0 ;
37410 PyObject * obj1 = 0 ;
37411 char * kwnames[] = {
37412 (char *) "self",(char *) "path", NULL
37413 };
37414
37415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37417 if (!SWIG_IsOK(res1)) {
37418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37419 }
37420 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37421 {
37422 arg2 = wxString_in_helper(obj1);
37423 if (arg2 == NULL) SWIG_fail;
37424 temp2 = true;
37425 }
37426 {
37427 PyThreadState* __tstate = wxPyBeginAllowThreads();
37428 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37429 wxPyEndAllowThreads(__tstate);
37430 if (PyErr_Occurred()) SWIG_fail;
37431 }
37432 {
37433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37434 }
37435 {
37436 if (temp2)
37437 delete arg2;
37438 }
37439 return resultobj;
37440fail:
37441 {
37442 if (temp2)
37443 delete arg2;
37444 }
37445 return NULL;
d55e5bfc
RD
37446}
37447
37448
704eda0c
RD
37449SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37450 PyObject *resultobj = 0;
37451 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37452 wxString *arg2 = 0 ;
37453 bool result;
37454 void *argp1 = 0 ;
37455 int res1 = 0 ;
37456 bool temp2 = false ;
37457 PyObject * obj0 = 0 ;
37458 PyObject * obj1 = 0 ;
37459 char * kwnames[] = {
37460 (char *) "self",(char *) "path", NULL
37461 };
37462
37463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37465 if (!SWIG_IsOK(res1)) {
37466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37467 }
37468 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37469 {
37470 arg2 = wxString_in_helper(obj1);
37471 if (arg2 == NULL) SWIG_fail;
37472 temp2 = true;
37473 }
37474 {
37475 PyThreadState* __tstate = wxPyBeginAllowThreads();
37476 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37477 wxPyEndAllowThreads(__tstate);
37478 if (PyErr_Occurred()) SWIG_fail;
37479 }
37480 {
37481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37482 }
37483 {
37484 if (temp2)
37485 delete arg2;
37486 }
37487 return resultobj;
37488fail:
37489 {
37490 if (temp2)
37491 delete arg2;
37492 }
37493 return NULL;
37494}
37495
37496
1bd55598
RD
37497SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37498 PyObject *resultobj = 0;
37499 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37500 wxString result;
37501 void *argp1 = 0 ;
37502 int res1 = 0 ;
37503 PyObject *swig_obj[1] ;
37504
37505 if (!args) SWIG_fail;
37506 swig_obj[0] = args;
37507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37508 if (!SWIG_IsOK(res1)) {
37509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37510 }
37511 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37512 {
37513 PyThreadState* __tstate = wxPyBeginAllowThreads();
37514 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37515 wxPyEndAllowThreads(__tstate);
37516 if (PyErr_Occurred()) SWIG_fail;
37517 }
37518 {
37519#if wxUSE_UNICODE
37520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37521#else
37522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37523#endif
37524 }
37525 return resultobj;
37526fail:
37527 return NULL;
37528}
37529
37530
37531SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37532 PyObject *resultobj = 0;
37533 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37534 wxString *arg2 = 0 ;
37535 void *argp1 = 0 ;
37536 int res1 = 0 ;
37537 bool temp2 = false ;
37538 PyObject * obj0 = 0 ;
37539 PyObject * obj1 = 0 ;
37540 char * kwnames[] = {
37541 (char *) "self",(char *) "path", NULL
37542 };
37543
37544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37546 if (!SWIG_IsOK(res1)) {
37547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37548 }
37549 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37550 {
37551 arg2 = wxString_in_helper(obj1);
37552 if (arg2 == NULL) SWIG_fail;
37553 temp2 = true;
37554 }
37555 {
37556 PyThreadState* __tstate = wxPyBeginAllowThreads();
37557 (arg1)->SetDefaultPath((wxString const &)*arg2);
37558 wxPyEndAllowThreads(__tstate);
37559 if (PyErr_Occurred()) SWIG_fail;
37560 }
37561 resultobj = SWIG_Py_Void();
37562 {
37563 if (temp2)
37564 delete arg2;
37565 }
37566 return resultobj;
37567fail:
37568 {
37569 if (temp2)
37570 delete arg2;
37571 }
37572 return NULL;
d55e5bfc
RD
37573}
37574
37575
1bd55598
RD
37576SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37577 PyObject *resultobj = 0;
37578 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37579 wxString result;
37580 void *argp1 = 0 ;
37581 int res1 = 0 ;
37582 PyObject *swig_obj[1] ;
37583
37584 if (!args) SWIG_fail;
37585 swig_obj[0] = args;
37586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37587 if (!SWIG_IsOK(res1)) {
37588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37589 }
37590 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37591 {
37592 PyThreadState* __tstate = wxPyBeginAllowThreads();
37593 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37594 wxPyEndAllowThreads(__tstate);
37595 if (PyErr_Occurred()) SWIG_fail;
37596 }
37597 {
37598#if wxUSE_UNICODE
37599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37600#else
37601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37602#endif
37603 }
37604 return resultobj;
37605fail:
37606 return NULL;
d55e5bfc
RD
37607}
37608
37609
1bd55598
RD
37610SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37611 PyObject *resultobj = 0;
37612 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37613 wxString result;
37614 void *argp1 = 0 ;
37615 int res1 = 0 ;
37616 PyObject *swig_obj[1] ;
37617
37618 if (!args) SWIG_fail;
37619 swig_obj[0] = args;
37620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37621 if (!SWIG_IsOK(res1)) {
37622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37623 }
37624 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37625 {
37626 PyThreadState* __tstate = wxPyBeginAllowThreads();
37627 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37628 wxPyEndAllowThreads(__tstate);
37629 if (PyErr_Occurred()) SWIG_fail;
37630 }
37631 {
37632#if wxUSE_UNICODE
37633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37634#else
37635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37636#endif
37637 }
37638 return resultobj;
37639fail:
37640 return NULL;
37641}
37642
37643
37644SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37645 PyObject *resultobj = 0;
37646 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37647 wxString *arg2 = 0 ;
37648 void *argp1 = 0 ;
37649 int res1 = 0 ;
37650 bool temp2 = false ;
37651 PyObject * obj0 = 0 ;
37652 PyObject * obj1 = 0 ;
37653 char * kwnames[] = {
37654 (char *) "self",(char *) "path", NULL
37655 };
37656
37657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37659 if (!SWIG_IsOK(res1)) {
37660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37661 }
37662 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37663 {
37664 arg2 = wxString_in_helper(obj1);
37665 if (arg2 == NULL) SWIG_fail;
37666 temp2 = true;
37667 }
37668 {
37669 PyThreadState* __tstate = wxPyBeginAllowThreads();
37670 (arg1)->SetPath((wxString const &)*arg2);
37671 wxPyEndAllowThreads(__tstate);
37672 if (PyErr_Occurred()) SWIG_fail;
37673 }
37674 resultobj = SWIG_Py_Void();
37675 {
37676 if (temp2)
37677 delete arg2;
37678 }
37679 return resultobj;
37680fail:
37681 {
37682 if (temp2)
37683 delete arg2;
37684 }
37685 return NULL;
37686}
37687
37688
37689SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37690 PyObject *resultobj = 0;
37691 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37692 bool arg2 ;
37693 void *argp1 = 0 ;
37694 int res1 = 0 ;
37695 bool val2 ;
37696 int ecode2 = 0 ;
37697 PyObject * obj0 = 0 ;
37698 PyObject * obj1 = 0 ;
37699 char * kwnames[] = {
37700 (char *) "self",(char *) "show", NULL
37701 };
37702
37703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37705 if (!SWIG_IsOK(res1)) {
37706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37707 }
37708 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37709 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37710 if (!SWIG_IsOK(ecode2)) {
37711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37712 }
37713 arg2 = static_cast< bool >(val2);
37714 {
37715 PyThreadState* __tstate = wxPyBeginAllowThreads();
37716 (arg1)->ShowHidden(arg2);
37717 wxPyEndAllowThreads(__tstate);
37718 if (PyErr_Occurred()) SWIG_fail;
37719 }
37720 resultobj = SWIG_Py_Void();
37721 return resultobj;
37722fail:
37723 return NULL;
d55e5bfc
RD
37724}
37725
37726
1bd55598
RD
37727SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37728 PyObject *resultobj = 0;
37729 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37730 bool result;
37731 void *argp1 = 0 ;
37732 int res1 = 0 ;
37733 PyObject *swig_obj[1] ;
37734
37735 if (!args) SWIG_fail;
37736 swig_obj[0] = args;
37737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37738 if (!SWIG_IsOK(res1)) {
37739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37740 }
37741 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37742 {
37743 PyThreadState* __tstate = wxPyBeginAllowThreads();
37744 result = (bool)(arg1)->GetShowHidden();
37745 wxPyEndAllowThreads(__tstate);
37746 if (PyErr_Occurred()) SWIG_fail;
37747 }
37748 {
37749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37750 }
37751 return resultobj;
37752fail:
37753 return NULL;
d55e5bfc
RD
37754}
37755
37756
1bd55598
RD
37757SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37758 PyObject *resultobj = 0;
37759 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37760 wxString result;
37761 void *argp1 = 0 ;
37762 int res1 = 0 ;
37763 PyObject *swig_obj[1] ;
37764
37765 if (!args) SWIG_fail;
37766 swig_obj[0] = args;
37767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37768 if (!SWIG_IsOK(res1)) {
37769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37770 }
37771 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37772 {
37773 PyThreadState* __tstate = wxPyBeginAllowThreads();
37774 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37775 wxPyEndAllowThreads(__tstate);
37776 if (PyErr_Occurred()) SWIG_fail;
37777 }
37778 {
37779#if wxUSE_UNICODE
37780 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37781#else
37782 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37783#endif
37784 }
37785 return resultobj;
37786fail:
37787 return NULL;
37788}
37789
37790
37791SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37792 PyObject *resultobj = 0;
37793 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37794 wxString *arg2 = 0 ;
37795 void *argp1 = 0 ;
37796 int res1 = 0 ;
37797 bool temp2 = false ;
37798 PyObject * obj0 = 0 ;
37799 PyObject * obj1 = 0 ;
37800 char * kwnames[] = {
37801 (char *) "self",(char *) "filter", NULL
37802 };
37803
37804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37806 if (!SWIG_IsOK(res1)) {
37807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37808 }
37809 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37810 {
37811 arg2 = wxString_in_helper(obj1);
37812 if (arg2 == NULL) SWIG_fail;
37813 temp2 = true;
37814 }
37815 {
37816 PyThreadState* __tstate = wxPyBeginAllowThreads();
37817 (arg1)->SetFilter((wxString const &)*arg2);
37818 wxPyEndAllowThreads(__tstate);
37819 if (PyErr_Occurred()) SWIG_fail;
37820 }
37821 resultobj = SWIG_Py_Void();
37822 {
37823 if (temp2)
37824 delete arg2;
37825 }
37826 return resultobj;
37827fail:
37828 {
37829 if (temp2)
37830 delete arg2;
37831 }
37832 return NULL;
d55e5bfc
RD
37833}
37834
37835
1bd55598
RD
37836SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37837 PyObject *resultobj = 0;
37838 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37839 int result;
37840 void *argp1 = 0 ;
37841 int res1 = 0 ;
37842 PyObject *swig_obj[1] ;
37843
37844 if (!args) SWIG_fail;
37845 swig_obj[0] = args;
37846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37847 if (!SWIG_IsOK(res1)) {
37848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37849 }
37850 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37851 {
37852 PyThreadState* __tstate = wxPyBeginAllowThreads();
37853 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37854 wxPyEndAllowThreads(__tstate);
37855 if (PyErr_Occurred()) SWIG_fail;
37856 }
37857 resultobj = SWIG_From_int(static_cast< int >(result));
37858 return resultobj;
37859fail:
37860 return NULL;
37861}
37862
37863
37864SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37865 PyObject *resultobj = 0;
37866 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37867 int arg2 ;
37868 void *argp1 = 0 ;
37869 int res1 = 0 ;
37870 int val2 ;
37871 int ecode2 = 0 ;
37872 PyObject * obj0 = 0 ;
37873 PyObject * obj1 = 0 ;
37874 char * kwnames[] = {
37875 (char *) "self",(char *) "n", NULL
37876 };
37877
37878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37880 if (!SWIG_IsOK(res1)) {
37881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37882 }
37883 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37884 ecode2 = SWIG_AsVal_int(obj1, &val2);
37885 if (!SWIG_IsOK(ecode2)) {
37886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37887 }
37888 arg2 = static_cast< int >(val2);
37889 {
37890 PyThreadState* __tstate = wxPyBeginAllowThreads();
37891 (arg1)->SetFilterIndex(arg2);
37892 wxPyEndAllowThreads(__tstate);
37893 if (PyErr_Occurred()) SWIG_fail;
37894 }
37895 resultobj = SWIG_Py_Void();
37896 return resultobj;
37897fail:
37898 return NULL;
d55e5bfc
RD
37899}
37900
37901
1bd55598
RD
37902SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37903 PyObject *resultobj = 0;
37904 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37905 wxTreeItemId result;
37906 void *argp1 = 0 ;
37907 int res1 = 0 ;
37908 PyObject *swig_obj[1] ;
37909
37910 if (!args) SWIG_fail;
37911 swig_obj[0] = args;
37912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37913 if (!SWIG_IsOK(res1)) {
37914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37915 }
37916 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37917 {
37918 PyThreadState* __tstate = wxPyBeginAllowThreads();
37919 result = (arg1)->GetRootId();
37920 wxPyEndAllowThreads(__tstate);
37921 if (PyErr_Occurred()) SWIG_fail;
37922 }
37923 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37924 return resultobj;
37925fail:
37926 return NULL;
d55e5bfc
RD
37927}
37928
37929
1bd55598
RD
37930SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37931 PyObject *resultobj = 0;
37932 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37933 wxPyTreeCtrl *result = 0 ;
37934 void *argp1 = 0 ;
37935 int res1 = 0 ;
37936 PyObject *swig_obj[1] ;
37937
37938 if (!args) SWIG_fail;
37939 swig_obj[0] = args;
37940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37941 if (!SWIG_IsOK(res1)) {
37942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37943 }
37944 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37945 {
37946 PyThreadState* __tstate = wxPyBeginAllowThreads();
37947 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37948 wxPyEndAllowThreads(__tstate);
37949 if (PyErr_Occurred()) SWIG_fail;
37950 }
37951 {
37952 resultobj = wxPyMake_wxObject(result, 0);
37953 }
37954 return resultobj;
37955fail:
37956 return NULL;
d55e5bfc
RD
37957}
37958
37959
1bd55598
RD
37960SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37961 PyObject *resultobj = 0;
37962 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37963 wxDirFilterListCtrl *result = 0 ;
37964 void *argp1 = 0 ;
37965 int res1 = 0 ;
37966 PyObject *swig_obj[1] ;
37967
37968 if (!args) SWIG_fail;
37969 swig_obj[0] = args;
37970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37971 if (!SWIG_IsOK(res1)) {
37972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37973 }
37974 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37975 {
37976 PyThreadState* __tstate = wxPyBeginAllowThreads();
37977 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37978 wxPyEndAllowThreads(__tstate);
37979 if (PyErr_Occurred()) SWIG_fail;
37980 }
37981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37982 return resultobj;
37983fail:
37984 return NULL;
37985}
37986
37987
37988SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37989 PyObject *resultobj = 0;
37990 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37991 wxTreeItemId arg2 ;
37992 wxString *arg3 = 0 ;
37993 bool *arg4 = 0 ;
37994 wxTreeItemId result;
37995 void *argp1 = 0 ;
37996 int res1 = 0 ;
37997 void *argp2 ;
37998 int res2 = 0 ;
37999 bool temp3 = false ;
38000 bool temp4 ;
38001 int res4 = SWIG_TMPOBJ ;
38002 PyObject * obj0 = 0 ;
38003 PyObject * obj1 = 0 ;
38004 PyObject * obj2 = 0 ;
38005 char * kwnames[] = {
38006 (char *) "self",(char *) "parentId",(char *) "path", NULL
38007 };
38008
38009 arg4 = &temp4;
38010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38012 if (!SWIG_IsOK(res1)) {
38013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38014 }
38015 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38016 {
38017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38018 if (!SWIG_IsOK(res2)) {
38019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38020 }
38021 if (!argp2) {
38022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38023 } else {
38024 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38025 arg2 = *temp;
38026 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38027 }
1bd55598
RD
38028 }
38029 {
38030 arg3 = wxString_in_helper(obj2);
38031 if (arg3 == NULL) SWIG_fail;
38032 temp3 = true;
38033 }
38034 {
38035 PyThreadState* __tstate = wxPyBeginAllowThreads();
38036 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38037 wxPyEndAllowThreads(__tstate);
38038 if (PyErr_Occurred()) SWIG_fail;
38039 }
38040 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38041 if (SWIG_IsTmpObj(res4)) {
38042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38043 } else {
38044 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38046 }
38047 {
38048 if (temp3)
38049 delete arg3;
38050 }
38051 return resultobj;
38052fail:
38053 {
38054 if (temp3)
38055 delete arg3;
38056 }
38057 return NULL;
d55e5bfc
RD
38058}
38059
38060
1bd55598
RD
38061SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38062 PyObject *resultobj = 0;
38063 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38064 void *argp1 = 0 ;
38065 int res1 = 0 ;
38066 PyObject *swig_obj[1] ;
38067
38068 if (!args) SWIG_fail;
38069 swig_obj[0] = args;
38070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38071 if (!SWIG_IsOK(res1)) {
38072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38073 }
38074 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38075 {
38076 PyThreadState* __tstate = wxPyBeginAllowThreads();
38077 (arg1)->DoResize();
38078 wxPyEndAllowThreads(__tstate);
38079 if (PyErr_Occurred()) SWIG_fail;
38080 }
38081 resultobj = SWIG_Py_Void();
38082 return resultobj;
38083fail:
38084 return NULL;
38085}
38086
38087
38088SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38089 PyObject *resultobj = 0;
38090 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38091 void *argp1 = 0 ;
38092 int res1 = 0 ;
38093 PyObject *swig_obj[1] ;
38094
38095 if (!args) SWIG_fail;
38096 swig_obj[0] = args;
38097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38098 if (!SWIG_IsOK(res1)) {
38099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38100 }
38101 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->ReCreateTree();
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 return resultobj;
38110fail:
38111 return NULL;
38112}
38113
38114
38115SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38116 PyObject *obj;
38117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38118 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38119 return SWIG_Py_Void();
38120}
38121
38122SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38123 return SWIG_Python_InitShadowInstance(args);
38124}
38125
38126SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38127 PyObject *resultobj = 0;
38128 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38129 int arg2 = (int) (int)-1 ;
38130 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38131 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38132 wxSize const &arg4_defvalue = wxDefaultSize ;
38133 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38134 long arg5 = (long) 0 ;
38135 wxDirFilterListCtrl *result = 0 ;
38136 void *argp1 = 0 ;
38137 int res1 = 0 ;
38138 int val2 ;
38139 int ecode2 = 0 ;
38140 wxPoint temp3 ;
38141 wxSize temp4 ;
38142 long val5 ;
38143 int ecode5 = 0 ;
38144 PyObject * obj0 = 0 ;
38145 PyObject * obj1 = 0 ;
38146 PyObject * obj2 = 0 ;
38147 PyObject * obj3 = 0 ;
38148 PyObject * obj4 = 0 ;
38149 char * kwnames[] = {
38150 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38151 };
38152
38153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38155 if (!SWIG_IsOK(res1)) {
38156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38157 }
38158 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38159 if (obj1) {
38160 ecode2 = SWIG_AsVal_int(obj1, &val2);
38161 if (!SWIG_IsOK(ecode2)) {
38162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38163 }
38164 arg2 = static_cast< int >(val2);
38165 }
38166 if (obj2) {
d55e5bfc 38167 {
1bd55598
RD
38168 arg3 = &temp3;
38169 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38170 }
1bd55598
RD
38171 }
38172 if (obj3) {
d55e5bfc 38173 {
1bd55598
RD
38174 arg4 = &temp4;
38175 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38176 }
1bd55598
RD
38177 }
38178 if (obj4) {
38179 ecode5 = SWIG_AsVal_long(obj4, &val5);
38180 if (!SWIG_IsOK(ecode5)) {
38181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38182 }
38183 arg5 = static_cast< long >(val5);
38184 }
38185 {
38186 if (!wxPyCheckForApp()) SWIG_fail;
38187 PyThreadState* __tstate = wxPyBeginAllowThreads();
38188 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38189 wxPyEndAllowThreads(__tstate);
38190 if (PyErr_Occurred()) SWIG_fail;
38191 }
38192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38193 return resultobj;
38194fail:
38195 return NULL;
d55e5bfc
RD
38196}
38197
38198
1bd55598
RD
38199SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38200 PyObject *resultobj = 0;
38201 wxDirFilterListCtrl *result = 0 ;
38202
38203 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38204 {
38205 if (!wxPyCheckForApp()) SWIG_fail;
38206 PyThreadState* __tstate = wxPyBeginAllowThreads();
38207 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38208 wxPyEndAllowThreads(__tstate);
38209 if (PyErr_Occurred()) SWIG_fail;
38210 }
38211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38212 return resultobj;
38213fail:
38214 return NULL;
38215}
38216
38217
38218SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38219 PyObject *resultobj = 0;
38220 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38221 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38222 int arg3 = (int) (int)-1 ;
38223 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38224 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38225 wxSize const &arg5_defvalue = wxDefaultSize ;
38226 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38227 long arg6 = (long) 0 ;
38228 bool result;
38229 void *argp1 = 0 ;
38230 int res1 = 0 ;
38231 void *argp2 = 0 ;
38232 int res2 = 0 ;
38233 int val3 ;
38234 int ecode3 = 0 ;
38235 wxPoint temp4 ;
38236 wxSize temp5 ;
38237 long val6 ;
38238 int ecode6 = 0 ;
38239 PyObject * obj0 = 0 ;
38240 PyObject * obj1 = 0 ;
38241 PyObject * obj2 = 0 ;
38242 PyObject * obj3 = 0 ;
38243 PyObject * obj4 = 0 ;
38244 PyObject * obj5 = 0 ;
38245 char * kwnames[] = {
38246 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38247 };
38248
38249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38251 if (!SWIG_IsOK(res1)) {
38252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38253 }
38254 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38255 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38256 if (!SWIG_IsOK(res2)) {
38257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38258 }
38259 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38260 if (obj2) {
38261 ecode3 = SWIG_AsVal_int(obj2, &val3);
38262 if (!SWIG_IsOK(ecode3)) {
38263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38264 }
38265 arg3 = static_cast< int >(val3);
38266 }
38267 if (obj3) {
36ed4f51 38268 {
1bd55598
RD
38269 arg4 = &temp4;
38270 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38271 }
1bd55598
RD
38272 }
38273 if (obj4) {
36ed4f51 38274 {
1bd55598
RD
38275 arg5 = &temp5;
38276 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38277 }
1bd55598
RD
38278 }
38279 if (obj5) {
38280 ecode6 = SWIG_AsVal_long(obj5, &val6);
38281 if (!SWIG_IsOK(ecode6)) {
38282 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38283 }
38284 arg6 = static_cast< long >(val6);
38285 }
38286 {
38287 PyThreadState* __tstate = wxPyBeginAllowThreads();
38288 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38289 wxPyEndAllowThreads(__tstate);
38290 if (PyErr_Occurred()) SWIG_fail;
38291 }
38292 {
38293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38294 }
38295 return resultobj;
38296fail:
38297 return NULL;
38298}
38299
38300
38301SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38302 PyObject *resultobj = 0;
38303 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38304 wxString *arg2 = 0 ;
38305 int arg3 ;
38306 void *argp1 = 0 ;
38307 int res1 = 0 ;
38308 bool temp2 = false ;
38309 int val3 ;
38310 int ecode3 = 0 ;
38311 PyObject * obj0 = 0 ;
38312 PyObject * obj1 = 0 ;
38313 PyObject * obj2 = 0 ;
38314 char * kwnames[] = {
38315 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38316 };
38317
38318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38320 if (!SWIG_IsOK(res1)) {
38321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38322 }
38323 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38324 {
38325 arg2 = wxString_in_helper(obj1);
38326 if (arg2 == NULL) SWIG_fail;
38327 temp2 = true;
38328 }
38329 ecode3 = SWIG_AsVal_int(obj2, &val3);
38330 if (!SWIG_IsOK(ecode3)) {
38331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38332 }
38333 arg3 = static_cast< int >(val3);
38334 {
38335 PyThreadState* __tstate = wxPyBeginAllowThreads();
38336 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38337 wxPyEndAllowThreads(__tstate);
38338 if (PyErr_Occurred()) SWIG_fail;
38339 }
38340 resultobj = SWIG_Py_Void();
38341 {
38342 if (temp2)
38343 delete arg2;
38344 }
38345 return resultobj;
38346fail:
38347 {
38348 if (temp2)
38349 delete arg2;
38350 }
38351 return NULL;
38352}
38353
38354
38355SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38356 PyObject *obj;
38357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38358 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38359 return SWIG_Py_Void();
38360}
38361
38362SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38363 return SWIG_Python_InitShadowInstance(args);
38364}
38365
38366SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38367 PyObject *resultobj = 0;
38368 wxWindow *arg1 = (wxWindow *) 0 ;
38369 int arg2 = (int) (int)-1 ;
38370 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38371 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38372 wxSize const &arg4_defvalue = wxDefaultSize ;
38373 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38374 long arg5 = (long) 0 ;
38375 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38376 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38377 wxString const &arg7_defvalue = wxPyControlNameStr ;
38378 wxString *arg7 = (wxString *) &arg7_defvalue ;
38379 wxPyControl *result = 0 ;
38380 void *argp1 = 0 ;
38381 int res1 = 0 ;
38382 int val2 ;
38383 int ecode2 = 0 ;
38384 wxPoint temp3 ;
38385 wxSize temp4 ;
38386 long val5 ;
38387 int ecode5 = 0 ;
38388 void *argp6 = 0 ;
38389 int res6 = 0 ;
38390 bool temp7 = false ;
38391 PyObject * obj0 = 0 ;
38392 PyObject * obj1 = 0 ;
38393 PyObject * obj2 = 0 ;
38394 PyObject * obj3 = 0 ;
38395 PyObject * obj4 = 0 ;
38396 PyObject * obj5 = 0 ;
38397 PyObject * obj6 = 0 ;
38398 char * kwnames[] = {
38399 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38400 };
38401
38402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38404 if (!SWIG_IsOK(res1)) {
38405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38406 }
38407 arg1 = reinterpret_cast< wxWindow * >(argp1);
38408 if (obj1) {
38409 ecode2 = SWIG_AsVal_int(obj1, &val2);
38410 if (!SWIG_IsOK(ecode2)) {
38411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38412 }
38413 arg2 = static_cast< int >(val2);
38414 }
38415 if (obj2) {
d55e5bfc 38416 {
1bd55598
RD
38417 arg3 = &temp3;
38418 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38419 }
1bd55598
RD
38420 }
38421 if (obj3) {
d55e5bfc 38422 {
1bd55598
RD
38423 arg4 = &temp4;
38424 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38425 }
1bd55598
RD
38426 }
38427 if (obj4) {
38428 ecode5 = SWIG_AsVal_long(obj4, &val5);
38429 if (!SWIG_IsOK(ecode5)) {
38430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38431 }
38432 arg5 = static_cast< long >(val5);
38433 }
38434 if (obj5) {
38435 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38436 if (!SWIG_IsOK(res6)) {
38437 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38438 }
1bd55598
RD
38439 if (!argp6) {
38440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38441 }
1bd55598
RD
38442 arg6 = reinterpret_cast< wxValidator * >(argp6);
38443 }
38444 if (obj6) {
f20a2e1f 38445 {
1bd55598
RD
38446 arg7 = wxString_in_helper(obj6);
38447 if (arg7 == NULL) SWIG_fail;
38448 temp7 = true;
f20a2e1f 38449 }
1bd55598
RD
38450 }
38451 {
38452 if (!wxPyCheckForApp()) SWIG_fail;
38453 PyThreadState* __tstate = wxPyBeginAllowThreads();
38454 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38455 wxPyEndAllowThreads(__tstate);
38456 if (PyErr_Occurred()) SWIG_fail;
38457 }
38458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38459 {
38460 if (temp7)
38461 delete arg7;
38462 }
38463 return resultobj;
38464fail:
38465 {
38466 if (temp7)
38467 delete arg7;
38468 }
38469 return NULL;
d55e5bfc
RD
38470}
38471
38472
1bd55598
RD
38473SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38474 PyObject *resultobj = 0;
38475 wxPyControl *result = 0 ;
38476
38477 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38478 {
38479 if (!wxPyCheckForApp()) SWIG_fail;
38480 PyThreadState* __tstate = wxPyBeginAllowThreads();
38481 result = (wxPyControl *)new wxPyControl();
38482 wxPyEndAllowThreads(__tstate);
38483 if (PyErr_Occurred()) SWIG_fail;
38484 }
38485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38486 return resultobj;
38487fail:
38488 return NULL;
38489}
38490
38491
38492SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38493 PyObject *resultobj = 0;
38494 wxPyControl *arg1 = (wxPyControl *) 0 ;
38495 PyObject *arg2 = (PyObject *) 0 ;
38496 PyObject *arg3 = (PyObject *) 0 ;
38497 void *argp1 = 0 ;
38498 int res1 = 0 ;
38499 PyObject * obj0 = 0 ;
38500 PyObject * obj1 = 0 ;
38501 PyObject * obj2 = 0 ;
38502 char * kwnames[] = {
38503 (char *) "self",(char *) "self",(char *) "_class", NULL
38504 };
38505
38506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38508 if (!SWIG_IsOK(res1)) {
38509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38510 }
38511 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38512 arg2 = obj1;
38513 arg3 = obj2;
38514 {
38515 PyThreadState* __tstate = wxPyBeginAllowThreads();
38516 (arg1)->_setCallbackInfo(arg2,arg3);
38517 wxPyEndAllowThreads(__tstate);
38518 if (PyErr_Occurred()) SWIG_fail;
38519 }
38520 resultobj = SWIG_Py_Void();
38521 return resultobj;
38522fail:
38523 return NULL;
38524}
38525
38526
38527SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38528 PyObject *resultobj = 0;
38529 wxPyControl *arg1 = (wxPyControl *) 0 ;
38530 wxSize *arg2 = 0 ;
38531 void *argp1 = 0 ;
38532 int res1 = 0 ;
38533 wxSize temp2 ;
38534 PyObject * obj0 = 0 ;
38535 PyObject * obj1 = 0 ;
38536 char * kwnames[] = {
38537 (char *) "self",(char *) "size", NULL
38538 };
38539
38540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38542 if (!SWIG_IsOK(res1)) {
38543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38544 }
38545 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38546 {
38547 arg2 = &temp2;
38548 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38549 }
38550 {
38551 PyThreadState* __tstate = wxPyBeginAllowThreads();
38552 (arg1)->SetBestSize((wxSize const &)*arg2);
38553 wxPyEndAllowThreads(__tstate);
38554 if (PyErr_Occurred()) SWIG_fail;
38555 }
38556 resultobj = SWIG_Py_Void();
38557 return resultobj;
38558fail:
38559 return NULL;
38560}
38561
38562
38563SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38564 PyObject *resultobj = 0;
38565 wxPyControl *arg1 = (wxPyControl *) 0 ;
38566 wxDC *arg2 = (wxDC *) 0 ;
38567 bool result;
38568 void *argp1 = 0 ;
38569 int res1 = 0 ;
38570 void *argp2 = 0 ;
38571 int res2 = 0 ;
38572 PyObject * obj0 = 0 ;
38573 PyObject * obj1 = 0 ;
38574 char * kwnames[] = {
38575 (char *) "self",(char *) "dc", NULL
38576 };
38577
38578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38580 if (!SWIG_IsOK(res1)) {
38581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38582 }
38583 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38585 if (!SWIG_IsOK(res2)) {
38586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38587 }
38588 arg2 = reinterpret_cast< wxDC * >(argp2);
38589 {
38590 PyThreadState* __tstate = wxPyBeginAllowThreads();
38591 result = (bool)(arg1)->DoEraseBackground(arg2);
38592 wxPyEndAllowThreads(__tstate);
38593 if (PyErr_Occurred()) SWIG_fail;
38594 }
38595 {
38596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38597 }
38598 return resultobj;
38599fail:
38600 return NULL;
38601}
38602
38603
38604SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38605 PyObject *resultobj = 0;
38606 wxPyControl *arg1 = (wxPyControl *) 0 ;
38607 int arg2 ;
38608 int arg3 ;
38609 int arg4 ;
38610 int arg5 ;
38611 void *argp1 = 0 ;
38612 int res1 = 0 ;
38613 int val2 ;
38614 int ecode2 = 0 ;
38615 int val3 ;
38616 int ecode3 = 0 ;
38617 int val4 ;
38618 int ecode4 = 0 ;
38619 int val5 ;
38620 int ecode5 = 0 ;
38621 PyObject * obj0 = 0 ;
38622 PyObject * obj1 = 0 ;
38623 PyObject * obj2 = 0 ;
38624 PyObject * obj3 = 0 ;
38625 PyObject * obj4 = 0 ;
38626 char * kwnames[] = {
38627 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38628 };
38629
38630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38632 if (!SWIG_IsOK(res1)) {
38633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38634 }
38635 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38636 ecode2 = SWIG_AsVal_int(obj1, &val2);
38637 if (!SWIG_IsOK(ecode2)) {
38638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38639 }
38640 arg2 = static_cast< int >(val2);
38641 ecode3 = SWIG_AsVal_int(obj2, &val3);
38642 if (!SWIG_IsOK(ecode3)) {
38643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38644 }
38645 arg3 = static_cast< int >(val3);
38646 ecode4 = SWIG_AsVal_int(obj3, &val4);
38647 if (!SWIG_IsOK(ecode4)) {
38648 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38649 }
38650 arg4 = static_cast< int >(val4);
38651 ecode5 = SWIG_AsVal_int(obj4, &val5);
38652 if (!SWIG_IsOK(ecode5)) {
38653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38654 }
38655 arg5 = static_cast< int >(val5);
38656 {
38657 PyThreadState* __tstate = wxPyBeginAllowThreads();
38658 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38659 wxPyEndAllowThreads(__tstate);
38660 if (PyErr_Occurred()) SWIG_fail;
38661 }
38662 resultobj = SWIG_Py_Void();
38663 return resultobj;
38664fail:
38665 return NULL;
38666}
38667
38668
38669SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38670 PyObject *resultobj = 0;
38671 wxPyControl *arg1 = (wxPyControl *) 0 ;
38672 int arg2 ;
38673 int arg3 ;
38674 int arg4 ;
38675 int arg5 ;
38676 int arg6 = (int) wxSIZE_AUTO ;
38677 void *argp1 = 0 ;
38678 int res1 = 0 ;
38679 int val2 ;
38680 int ecode2 = 0 ;
38681 int val3 ;
38682 int ecode3 = 0 ;
38683 int val4 ;
38684 int ecode4 = 0 ;
38685 int val5 ;
38686 int ecode5 = 0 ;
38687 int val6 ;
38688 int ecode6 = 0 ;
38689 PyObject * obj0 = 0 ;
38690 PyObject * obj1 = 0 ;
38691 PyObject * obj2 = 0 ;
38692 PyObject * obj3 = 0 ;
38693 PyObject * obj4 = 0 ;
38694 PyObject * obj5 = 0 ;
38695 char * kwnames[] = {
38696 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38697 };
38698
38699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38701 if (!SWIG_IsOK(res1)) {
38702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38703 }
38704 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38705 ecode2 = SWIG_AsVal_int(obj1, &val2);
38706 if (!SWIG_IsOK(ecode2)) {
38707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38708 }
38709 arg2 = static_cast< int >(val2);
38710 ecode3 = SWIG_AsVal_int(obj2, &val3);
38711 if (!SWIG_IsOK(ecode3)) {
38712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38713 }
38714 arg3 = static_cast< int >(val3);
38715 ecode4 = SWIG_AsVal_int(obj3, &val4);
38716 if (!SWIG_IsOK(ecode4)) {
38717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38718 }
38719 arg4 = static_cast< int >(val4);
38720 ecode5 = SWIG_AsVal_int(obj4, &val5);
38721 if (!SWIG_IsOK(ecode5)) {
38722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38723 }
38724 arg5 = static_cast< int >(val5);
38725 if (obj5) {
38726 ecode6 = SWIG_AsVal_int(obj5, &val6);
38727 if (!SWIG_IsOK(ecode6)) {
38728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38729 }
38730 arg6 = static_cast< int >(val6);
38731 }
38732 {
38733 PyThreadState* __tstate = wxPyBeginAllowThreads();
38734 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38735 wxPyEndAllowThreads(__tstate);
38736 if (PyErr_Occurred()) SWIG_fail;
38737 }
38738 resultobj = SWIG_Py_Void();
38739 return resultobj;
38740fail:
38741 return NULL;
38742}
38743
38744
38745SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38746 PyObject *resultobj = 0;
38747 wxPyControl *arg1 = (wxPyControl *) 0 ;
38748 int arg2 ;
38749 int arg3 ;
38750 void *argp1 = 0 ;
38751 int res1 = 0 ;
38752 int val2 ;
38753 int ecode2 = 0 ;
38754 int val3 ;
38755 int ecode3 = 0 ;
38756 PyObject * obj0 = 0 ;
38757 PyObject * obj1 = 0 ;
38758 PyObject * obj2 = 0 ;
38759 char * kwnames[] = {
38760 (char *) "self",(char *) "width",(char *) "height", NULL
38761 };
38762
38763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38765 if (!SWIG_IsOK(res1)) {
38766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38767 }
38768 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38769 ecode2 = SWIG_AsVal_int(obj1, &val2);
38770 if (!SWIG_IsOK(ecode2)) {
38771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38772 }
38773 arg2 = static_cast< int >(val2);
38774 ecode3 = SWIG_AsVal_int(obj2, &val3);
38775 if (!SWIG_IsOK(ecode3)) {
38776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38777 }
38778 arg3 = static_cast< int >(val3);
38779 {
38780 PyThreadState* __tstate = wxPyBeginAllowThreads();
38781 (arg1)->DoSetClientSize(arg2,arg3);
38782 wxPyEndAllowThreads(__tstate);
38783 if (PyErr_Occurred()) SWIG_fail;
38784 }
38785 resultobj = SWIG_Py_Void();
38786 return resultobj;
38787fail:
38788 return NULL;
38789}
38790
38791
38792SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38793 PyObject *resultobj = 0;
38794 wxPyControl *arg1 = (wxPyControl *) 0 ;
38795 int arg2 ;
38796 int arg3 ;
38797 void *argp1 = 0 ;
38798 int res1 = 0 ;
38799 int val2 ;
38800 int ecode2 = 0 ;
38801 int val3 ;
38802 int ecode3 = 0 ;
38803 PyObject * obj0 = 0 ;
38804 PyObject * obj1 = 0 ;
38805 PyObject * obj2 = 0 ;
38806 char * kwnames[] = {
38807 (char *) "self",(char *) "x",(char *) "y", NULL
38808 };
38809
38810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38812 if (!SWIG_IsOK(res1)) {
38813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38814 }
38815 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38816 ecode2 = SWIG_AsVal_int(obj1, &val2);
38817 if (!SWIG_IsOK(ecode2)) {
38818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38819 }
38820 arg2 = static_cast< int >(val2);
38821 ecode3 = SWIG_AsVal_int(obj2, &val3);
38822 if (!SWIG_IsOK(ecode3)) {
38823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38824 }
38825 arg3 = static_cast< int >(val3);
38826 {
38827 PyThreadState* __tstate = wxPyBeginAllowThreads();
38828 (arg1)->DoSetVirtualSize(arg2,arg3);
38829 wxPyEndAllowThreads(__tstate);
38830 if (PyErr_Occurred()) SWIG_fail;
38831 }
38832 resultobj = SWIG_Py_Void();
38833 return resultobj;
38834fail:
38835 return NULL;
38836}
38837
38838
38839SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38840 PyObject *resultobj = 0;
38841 wxPyControl *arg1 = (wxPyControl *) 0 ;
38842 int *arg2 = (int *) 0 ;
38843 int *arg3 = (int *) 0 ;
38844 void *argp1 = 0 ;
38845 int res1 = 0 ;
38846 int temp2 ;
38847 int res2 = SWIG_TMPOBJ ;
38848 int temp3 ;
38849 int res3 = SWIG_TMPOBJ ;
38850 PyObject *swig_obj[1] ;
38851
38852 arg2 = &temp2;
38853 arg3 = &temp3;
38854 if (!args) SWIG_fail;
38855 swig_obj[0] = args;
38856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38857 if (!SWIG_IsOK(res1)) {
38858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38859 }
38860 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38861 {
38862 PyThreadState* __tstate = wxPyBeginAllowThreads();
38863 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38864 wxPyEndAllowThreads(__tstate);
38865 if (PyErr_Occurred()) SWIG_fail;
38866 }
38867 resultobj = SWIG_Py_Void();
38868 if (SWIG_IsTmpObj(res2)) {
38869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38870 } else {
38871 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38873 }
38874 if (SWIG_IsTmpObj(res3)) {
38875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38876 } else {
38877 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38879 }
38880 return resultobj;
38881fail:
38882 return NULL;
38883}
38884
38885
38886SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38887 PyObject *resultobj = 0;
38888 wxPyControl *arg1 = (wxPyControl *) 0 ;
38889 int *arg2 = (int *) 0 ;
38890 int *arg3 = (int *) 0 ;
38891 void *argp1 = 0 ;
38892 int res1 = 0 ;
38893 int temp2 ;
38894 int res2 = SWIG_TMPOBJ ;
38895 int temp3 ;
38896 int res3 = SWIG_TMPOBJ ;
38897 PyObject *swig_obj[1] ;
38898
38899 arg2 = &temp2;
38900 arg3 = &temp3;
38901 if (!args) SWIG_fail;
38902 swig_obj[0] = args;
38903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38904 if (!SWIG_IsOK(res1)) {
38905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38906 }
38907 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38908 {
38909 PyThreadState* __tstate = wxPyBeginAllowThreads();
38910 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38911 wxPyEndAllowThreads(__tstate);
38912 if (PyErr_Occurred()) SWIG_fail;
38913 }
38914 resultobj = SWIG_Py_Void();
38915 if (SWIG_IsTmpObj(res2)) {
38916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38917 } else {
38918 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38920 }
38921 if (SWIG_IsTmpObj(res3)) {
38922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38923 } else {
38924 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38926 }
38927 return resultobj;
38928fail:
38929 return NULL;
38930}
38931
38932
38933SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38934 PyObject *resultobj = 0;
38935 wxPyControl *arg1 = (wxPyControl *) 0 ;
38936 int *arg2 = (int *) 0 ;
38937 int *arg3 = (int *) 0 ;
38938 void *argp1 = 0 ;
38939 int res1 = 0 ;
38940 int temp2 ;
38941 int res2 = SWIG_TMPOBJ ;
38942 int temp3 ;
38943 int res3 = SWIG_TMPOBJ ;
38944 PyObject *swig_obj[1] ;
38945
38946 arg2 = &temp2;
38947 arg3 = &temp3;
38948 if (!args) SWIG_fail;
38949 swig_obj[0] = args;
38950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38951 if (!SWIG_IsOK(res1)) {
38952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38953 }
38954 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38955 {
38956 PyThreadState* __tstate = wxPyBeginAllowThreads();
38957 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38958 wxPyEndAllowThreads(__tstate);
38959 if (PyErr_Occurred()) SWIG_fail;
38960 }
38961 resultobj = SWIG_Py_Void();
38962 if (SWIG_IsTmpObj(res2)) {
38963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38964 } else {
38965 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38967 }
38968 if (SWIG_IsTmpObj(res3)) {
38969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38970 } else {
38971 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38973 }
38974 return resultobj;
38975fail:
38976 return NULL;
d55e5bfc
RD
38977}
38978
38979
1bd55598
RD
38980SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38981 PyObject *resultobj = 0;
38982 wxPyControl *arg1 = (wxPyControl *) 0 ;
38983 wxSize result;
38984 void *argp1 = 0 ;
38985 int res1 = 0 ;
38986 PyObject *swig_obj[1] ;
38987
38988 if (!args) SWIG_fail;
38989 swig_obj[0] = args;
38990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38991 if (!SWIG_IsOK(res1)) {
38992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38993 }
38994 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38995 {
38996 PyThreadState* __tstate = wxPyBeginAllowThreads();
38997 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38998 wxPyEndAllowThreads(__tstate);
38999 if (PyErr_Occurred()) SWIG_fail;
39000 }
39001 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39002 return resultobj;
39003fail:
39004 return NULL;
7e08d4ef
RD
39005}
39006
39007
1bd55598
RD
39008SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39009 PyObject *resultobj = 0;
39010 wxPyControl *arg1 = (wxPyControl *) 0 ;
39011 wxSize result;
39012 void *argp1 = 0 ;
39013 int res1 = 0 ;
39014 PyObject *swig_obj[1] ;
39015
39016 if (!args) SWIG_fail;
39017 swig_obj[0] = args;
39018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39019 if (!SWIG_IsOK(res1)) {
39020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39021 }
39022 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39023 {
39024 PyThreadState* __tstate = wxPyBeginAllowThreads();
39025 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39026 wxPyEndAllowThreads(__tstate);
39027 if (PyErr_Occurred()) SWIG_fail;
39028 }
39029 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39030 return resultobj;
39031fail:
39032 return NULL;
d55e5bfc
RD
39033}
39034
39035
1bd55598
RD
39036SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39037 PyObject *resultobj = 0;
39038 wxPyControl *arg1 = (wxPyControl *) 0 ;
39039 SwigValueWrapper<wxVisualAttributes > result;
39040 void *argp1 = 0 ;
39041 int res1 = 0 ;
39042 PyObject *swig_obj[1] ;
39043
39044 if (!args) SWIG_fail;
39045 swig_obj[0] = args;
39046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39047 if (!SWIG_IsOK(res1)) {
39048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39049 }
39050 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39051 {
39052 PyThreadState* __tstate = wxPyBeginAllowThreads();
39053 result = (arg1)->GetDefaultAttributes();
39054 wxPyEndAllowThreads(__tstate);
39055 if (PyErr_Occurred()) SWIG_fail;
39056 }
39057 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39058 return resultobj;
39059fail:
39060 return NULL;
d55e5bfc
RD
39061}
39062
39063
1bd55598
RD
39064SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39065 PyObject *resultobj = 0;
39066 wxPyControl *arg1 = (wxPyControl *) 0 ;
39067 void *argp1 = 0 ;
39068 int res1 = 0 ;
39069 PyObject *swig_obj[1] ;
39070
39071 if (!args) SWIG_fail;
39072 swig_obj[0] = args;
39073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39074 if (!SWIG_IsOK(res1)) {
39075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39076 }
39077 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39078 {
39079 PyThreadState* __tstate = wxPyBeginAllowThreads();
39080 (arg1)->OnInternalIdle();
39081 wxPyEndAllowThreads(__tstate);
39082 if (PyErr_Occurred()) SWIG_fail;
39083 }
39084 resultobj = SWIG_Py_Void();
39085 return resultobj;
39086fail:
39087 return NULL;
39088}
39089
39090
39091SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39092 PyObject *obj;
39093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39094 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39095 return SWIG_Py_Void();
39096}
39097
39098SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39099 return SWIG_Python_InitShadowInstance(args);
39100}
39101
39102SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39103 PyObject *resultobj = 0;
39104 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39105 int arg2 = (int) 0 ;
39106 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39107 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39108 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39109 wxHelpEvent *result = 0 ;
39110 int val1 ;
39111 int ecode1 = 0 ;
39112 int val2 ;
39113 int ecode2 = 0 ;
39114 wxPoint temp3 ;
704eda0c
RD
39115 int val4 ;
39116 int ecode4 = 0 ;
1bd55598
RD
39117 PyObject * obj0 = 0 ;
39118 PyObject * obj1 = 0 ;
39119 PyObject * obj2 = 0 ;
704eda0c 39120 PyObject * obj3 = 0 ;
1bd55598 39121 char * kwnames[] = {
704eda0c 39122 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39123 };
39124
704eda0c 39125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39126 if (obj0) {
39127 ecode1 = SWIG_AsVal_int(obj0, &val1);
39128 if (!SWIG_IsOK(ecode1)) {
39129 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39130 }
39131 arg1 = static_cast< wxEventType >(val1);
39132 }
39133 if (obj1) {
39134 ecode2 = SWIG_AsVal_int(obj1, &val2);
39135 if (!SWIG_IsOK(ecode2)) {
39136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39137 }
39138 arg2 = static_cast< int >(val2);
39139 }
39140 if (obj2) {
d55e5bfc 39141 {
1bd55598
RD
39142 arg3 = &temp3;
39143 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39144 }
1bd55598 39145 }
704eda0c
RD
39146 if (obj3) {
39147 ecode4 = SWIG_AsVal_int(obj3, &val4);
39148 if (!SWIG_IsOK(ecode4)) {
39149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39150 }
39151 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39152 }
1bd55598
RD
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39155 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39156 wxPyEndAllowThreads(__tstate);
39157 if (PyErr_Occurred()) SWIG_fail;
39158 }
39159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39160 return resultobj;
39161fail:
39162 return NULL;
d55e5bfc
RD
39163}
39164
39165
1bd55598
RD
39166SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39167 PyObject *resultobj = 0;
39168 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39169 wxPoint result;
39170 void *argp1 = 0 ;
39171 int res1 = 0 ;
39172 PyObject *swig_obj[1] ;
39173
39174 if (!args) SWIG_fail;
39175 swig_obj[0] = args;
39176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39177 if (!SWIG_IsOK(res1)) {
39178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39179 }
39180 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39181 {
39182 PyThreadState* __tstate = wxPyBeginAllowThreads();
39183 result = ((wxHelpEvent const *)arg1)->GetPosition();
39184 wxPyEndAllowThreads(__tstate);
39185 if (PyErr_Occurred()) SWIG_fail;
39186 }
39187 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39188 return resultobj;
39189fail:
39190 return NULL;
39191}
39192
39193
39194SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39195 PyObject *resultobj = 0;
39196 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39197 wxPoint *arg2 = 0 ;
39198 void *argp1 = 0 ;
39199 int res1 = 0 ;
39200 wxPoint temp2 ;
39201 PyObject * obj0 = 0 ;
39202 PyObject * obj1 = 0 ;
39203 char * kwnames[] = {
39204 (char *) "self",(char *) "pos", NULL
39205 };
39206
39207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39209 if (!SWIG_IsOK(res1)) {
39210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39211 }
39212 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39213 {
39214 arg2 = &temp2;
39215 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39216 }
39217 {
39218 PyThreadState* __tstate = wxPyBeginAllowThreads();
39219 (arg1)->SetPosition((wxPoint const &)*arg2);
39220 wxPyEndAllowThreads(__tstate);
39221 if (PyErr_Occurred()) SWIG_fail;
39222 }
39223 resultobj = SWIG_Py_Void();
39224 return resultobj;
39225fail:
39226 return NULL;
d55e5bfc
RD
39227}
39228
39229
1bd55598
RD
39230SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39231 PyObject *resultobj = 0;
39232 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39233 wxString *result = 0 ;
39234 void *argp1 = 0 ;
39235 int res1 = 0 ;
39236 PyObject *swig_obj[1] ;
39237
39238 if (!args) SWIG_fail;
39239 swig_obj[0] = args;
39240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39241 if (!SWIG_IsOK(res1)) {
39242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39243 }
39244 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39245 {
39246 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39247 {
1bd55598
RD
39248 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39249 result = (wxString *) &_result_ref;
d55e5bfc 39250 }
1bd55598
RD
39251 wxPyEndAllowThreads(__tstate);
39252 if (PyErr_Occurred()) SWIG_fail;
39253 }
39254 {
39255#if wxUSE_UNICODE
39256 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39257#else
39258 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39259#endif
39260 }
39261 return resultobj;
39262fail:
39263 return NULL;
39264}
39265
39266
39267SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39268 PyObject *resultobj = 0;
39269 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39270 wxString *arg2 = 0 ;
39271 void *argp1 = 0 ;
39272 int res1 = 0 ;
39273 bool temp2 = false ;
39274 PyObject * obj0 = 0 ;
39275 PyObject * obj1 = 0 ;
39276 char * kwnames[] = {
39277 (char *) "self",(char *) "link", NULL
39278 };
39279
39280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39282 if (!SWIG_IsOK(res1)) {
39283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39284 }
39285 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39286 {
39287 arg2 = wxString_in_helper(obj1);
39288 if (arg2 == NULL) SWIG_fail;
39289 temp2 = true;
39290 }
39291 {
39292 PyThreadState* __tstate = wxPyBeginAllowThreads();
39293 (arg1)->SetLink((wxString const &)*arg2);
39294 wxPyEndAllowThreads(__tstate);
39295 if (PyErr_Occurred()) SWIG_fail;
39296 }
39297 resultobj = SWIG_Py_Void();
39298 {
39299 if (temp2)
39300 delete arg2;
39301 }
39302 return resultobj;
39303fail:
39304 {
39305 if (temp2)
39306 delete arg2;
39307 }
39308 return NULL;
d55e5bfc
RD
39309}
39310
39311
1bd55598
RD
39312SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39313 PyObject *resultobj = 0;
39314 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39315 wxString *result = 0 ;
39316 void *argp1 = 0 ;
39317 int res1 = 0 ;
39318 PyObject *swig_obj[1] ;
39319
39320 if (!args) SWIG_fail;
39321 swig_obj[0] = args;
39322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39323 if (!SWIG_IsOK(res1)) {
39324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39325 }
39326 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39327 {
39328 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39329 {
1bd55598
RD
39330 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39331 result = (wxString *) &_result_ref;
d55e5bfc 39332 }
1bd55598
RD
39333 wxPyEndAllowThreads(__tstate);
39334 if (PyErr_Occurred()) SWIG_fail;
39335 }
39336 {
39337#if wxUSE_UNICODE
39338 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39339#else
39340 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39341#endif
39342 }
39343 return resultobj;
39344fail:
39345 return NULL;
39346}
39347
39348
39349SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39350 PyObject *resultobj = 0;
39351 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39352 wxString *arg2 = 0 ;
39353 void *argp1 = 0 ;
39354 int res1 = 0 ;
39355 bool temp2 = false ;
39356 PyObject * obj0 = 0 ;
39357 PyObject * obj1 = 0 ;
39358 char * kwnames[] = {
39359 (char *) "self",(char *) "target", NULL
39360 };
39361
39362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39364 if (!SWIG_IsOK(res1)) {
39365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39366 }
39367 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39368 {
39369 arg2 = wxString_in_helper(obj1);
39370 if (arg2 == NULL) SWIG_fail;
39371 temp2 = true;
39372 }
39373 {
39374 PyThreadState* __tstate = wxPyBeginAllowThreads();
39375 (arg1)->SetTarget((wxString const &)*arg2);
39376 wxPyEndAllowThreads(__tstate);
39377 if (PyErr_Occurred()) SWIG_fail;
39378 }
39379 resultobj = SWIG_Py_Void();
39380 {
39381 if (temp2)
39382 delete arg2;
39383 }
39384 return resultobj;
39385fail:
39386 {
39387 if (temp2)
39388 delete arg2;
39389 }
39390 return NULL;
d55e5bfc
RD
39391}
39392
39393
704eda0c
RD
39394SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39395 PyObject *resultobj = 0;
39396 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39397 wxHelpEvent::Origin result;
39398 void *argp1 = 0 ;
39399 int res1 = 0 ;
39400 PyObject *swig_obj[1] ;
39401
39402 if (!args) SWIG_fail;
39403 swig_obj[0] = args;
39404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39405 if (!SWIG_IsOK(res1)) {
39406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39407 }
39408 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39409 {
39410 PyThreadState* __tstate = wxPyBeginAllowThreads();
39411 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39412 wxPyEndAllowThreads(__tstate);
39413 if (PyErr_Occurred()) SWIG_fail;
39414 }
39415 resultobj = SWIG_From_int(static_cast< int >(result));
39416 return resultobj;
39417fail:
39418 return NULL;
39419}
39420
39421
39422SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39423 PyObject *resultobj = 0;
39424 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39425 wxHelpEvent::Origin arg2 ;
39426 void *argp1 = 0 ;
39427 int res1 = 0 ;
39428 int val2 ;
39429 int ecode2 = 0 ;
39430 PyObject * obj0 = 0 ;
39431 PyObject * obj1 = 0 ;
39432 char * kwnames[] = {
39433 (char *) "self",(char *) "origin", NULL
39434 };
39435
39436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39438 if (!SWIG_IsOK(res1)) {
39439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39440 }
39441 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39442 ecode2 = SWIG_AsVal_int(obj1, &val2);
39443 if (!SWIG_IsOK(ecode2)) {
39444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39445 }
39446 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39447 {
39448 PyThreadState* __tstate = wxPyBeginAllowThreads();
39449 (arg1)->SetOrigin(arg2);
39450 wxPyEndAllowThreads(__tstate);
39451 if (PyErr_Occurred()) SWIG_fail;
39452 }
39453 resultobj = SWIG_Py_Void();
39454 return resultobj;
39455fail:
39456 return NULL;
39457}
39458
39459
1bd55598
RD
39460SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39461 PyObject *obj;
39462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39463 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39464 return SWIG_Py_Void();
39465}
39466
39467SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39468 return SWIG_Python_InitShadowInstance(args);
39469}
39470
39471SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39472 PyObject *resultobj = 0;
39473 wxWindow *arg1 = (wxWindow *) NULL ;
39474 bool arg2 = (bool) true ;
39475 wxContextHelp *result = 0 ;
39476 void *argp1 = 0 ;
39477 int res1 = 0 ;
39478 bool val2 ;
39479 int ecode2 = 0 ;
39480 PyObject * obj0 = 0 ;
39481 PyObject * obj1 = 0 ;
39482 char * kwnames[] = {
39483 (char *) "window",(char *) "doNow", NULL
39484 };
39485
39486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39487 if (obj0) {
39488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39489 if (!SWIG_IsOK(res1)) {
39490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39491 }
1bd55598
RD
39492 arg1 = reinterpret_cast< wxWindow * >(argp1);
39493 }
39494 if (obj1) {
39495 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39496 if (!SWIG_IsOK(ecode2)) {
39497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39498 }
39499 arg2 = static_cast< bool >(val2);
39500 }
39501 {
39502 if (!wxPyCheckForApp()) SWIG_fail;
39503 PyThreadState* __tstate = wxPyBeginAllowThreads();
39504 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39505 wxPyEndAllowThreads(__tstate);
39506 if (PyErr_Occurred()) SWIG_fail;
39507 }
39508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39509 return resultobj;
39510fail:
39511 return NULL;
d55e5bfc
RD
39512}
39513
39514
1bd55598
RD
39515SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39516 PyObject *resultobj = 0;
39517 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39518 void *argp1 = 0 ;
39519 int res1 = 0 ;
39520 PyObject *swig_obj[1] ;
39521
39522 if (!args) SWIG_fail;
39523 swig_obj[0] = args;
39524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39525 if (!SWIG_IsOK(res1)) {
39526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39527 }
39528 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39529 {
39530 PyThreadState* __tstate = wxPyBeginAllowThreads();
39531 delete arg1;
d55e5bfc 39532
1bd55598
RD
39533 wxPyEndAllowThreads(__tstate);
39534 if (PyErr_Occurred()) SWIG_fail;
39535 }
39536 resultobj = SWIG_Py_Void();
39537 return resultobj;
39538fail:
39539 return NULL;
39540}
39541
39542
39543SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39544 PyObject *resultobj = 0;
39545 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39546 wxWindow *arg2 = (wxWindow *) NULL ;
39547 bool result;
39548 void *argp1 = 0 ;
39549 int res1 = 0 ;
39550 void *argp2 = 0 ;
39551 int res2 = 0 ;
39552 PyObject * obj0 = 0 ;
39553 PyObject * obj1 = 0 ;
39554 char * kwnames[] = {
39555 (char *) "self",(char *) "window", NULL
39556 };
39557
39558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39560 if (!SWIG_IsOK(res1)) {
39561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39562 }
39563 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39564 if (obj1) {
39565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39566 if (!SWIG_IsOK(res2)) {
39567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39568 }
1bd55598
RD
39569 arg2 = reinterpret_cast< wxWindow * >(argp2);
39570 }
39571 {
39572 PyThreadState* __tstate = wxPyBeginAllowThreads();
39573 result = (bool)(arg1)->BeginContextHelp(arg2);
39574 wxPyEndAllowThreads(__tstate);
39575 if (PyErr_Occurred()) SWIG_fail;
39576 }
39577 {
39578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39579 }
39580 return resultobj;
39581fail:
39582 return NULL;
d55e5bfc
RD
39583}
39584
39585
1bd55598
RD
39586SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39587 PyObject *resultobj = 0;
39588 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39589 bool result;
39590 void *argp1 = 0 ;
39591 int res1 = 0 ;
39592 PyObject *swig_obj[1] ;
39593
39594 if (!args) SWIG_fail;
39595 swig_obj[0] = args;
39596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39597 if (!SWIG_IsOK(res1)) {
39598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39599 }
39600 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39601 {
39602 PyThreadState* __tstate = wxPyBeginAllowThreads();
39603 result = (bool)(arg1)->EndContextHelp();
39604 wxPyEndAllowThreads(__tstate);
39605 if (PyErr_Occurred()) SWIG_fail;
39606 }
39607 {
39608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39609 }
39610 return resultobj;
39611fail:
39612 return NULL;
39613}
39614
39615
39616SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39617 PyObject *obj;
39618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39619 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39620 return SWIG_Py_Void();
39621}
39622
39623SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39624 return SWIG_Python_InitShadowInstance(args);
39625}
39626
39627SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39628 PyObject *resultobj = 0;
39629 wxWindow *arg1 = (wxWindow *) 0 ;
39630 int arg2 = (int) wxID_CONTEXT_HELP ;
39631 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39632 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39633 wxSize const &arg4_defvalue = wxDefaultSize ;
39634 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39635 long arg5 = (long) wxBU_AUTODRAW ;
39636 wxContextHelpButton *result = 0 ;
39637 void *argp1 = 0 ;
39638 int res1 = 0 ;
39639 int val2 ;
39640 int ecode2 = 0 ;
39641 wxPoint temp3 ;
39642 wxSize temp4 ;
39643 long val5 ;
39644 int ecode5 = 0 ;
39645 PyObject * obj0 = 0 ;
39646 PyObject * obj1 = 0 ;
39647 PyObject * obj2 = 0 ;
39648 PyObject * obj3 = 0 ;
39649 PyObject * obj4 = 0 ;
39650 char * kwnames[] = {
39651 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39652 };
39653
39654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39656 if (!SWIG_IsOK(res1)) {
39657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39658 }
39659 arg1 = reinterpret_cast< wxWindow * >(argp1);
39660 if (obj1) {
39661 ecode2 = SWIG_AsVal_int(obj1, &val2);
39662 if (!SWIG_IsOK(ecode2)) {
39663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39664 }
39665 arg2 = static_cast< int >(val2);
39666 }
39667 if (obj2) {
d55e5bfc 39668 {
1bd55598
RD
39669 arg3 = &temp3;
39670 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39671 }
1bd55598
RD
39672 }
39673 if (obj3) {
d55e5bfc 39674 {
1bd55598
RD
39675 arg4 = &temp4;
39676 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39677 }
1bd55598
RD
39678 }
39679 if (obj4) {
39680 ecode5 = SWIG_AsVal_long(obj4, &val5);
39681 if (!SWIG_IsOK(ecode5)) {
39682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39683 }
39684 arg5 = static_cast< long >(val5);
39685 }
39686 {
39687 if (!wxPyCheckForApp()) SWIG_fail;
39688 PyThreadState* __tstate = wxPyBeginAllowThreads();
39689 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39690 wxPyEndAllowThreads(__tstate);
39691 if (PyErr_Occurred()) SWIG_fail;
39692 }
39693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39694 return resultobj;
39695fail:
39696 return NULL;
d55e5bfc
RD
39697}
39698
39699
1bd55598
RD
39700SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39701 PyObject *obj;
39702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39703 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39704 return SWIG_Py_Void();
d55e5bfc
RD
39705}
39706
1bd55598
RD
39707SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39708 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39709}
39710
f52cbe90
RD
39711SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39712 PyObject *resultobj = 0;
39713 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39714 void *argp1 = 0 ;
39715 int res1 = 0 ;
39716 PyObject *swig_obj[1] ;
39717
39718 if (!args) SWIG_fail;
39719 swig_obj[0] = args;
39720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39721 if (!SWIG_IsOK(res1)) {
39722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39723 }
39724 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39725 {
39726 PyThreadState* __tstate = wxPyBeginAllowThreads();
39727 delete arg1;
39728
39729 wxPyEndAllowThreads(__tstate);
39730 if (PyErr_Occurred()) SWIG_fail;
39731 }
39732 resultobj = SWIG_Py_Void();
39733 return resultobj;
39734fail:
39735 return NULL;
39736}
39737
39738
1bd55598
RD
39739SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39740 PyObject *resultobj = 0;
39741 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39742 wxHelpProvider *result = 0 ;
39743 int res1 = 0 ;
39744 PyObject * obj0 = 0 ;
39745 char * kwnames[] = {
39746 (char *) "helpProvider", NULL
39747 };
39748
39749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39750 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39751 if (!SWIG_IsOK(res1)) {
39752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39753 }
39754 {
39755 PyThreadState* __tstate = wxPyBeginAllowThreads();
39756 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39757 wxPyEndAllowThreads(__tstate);
39758 if (PyErr_Occurred()) SWIG_fail;
39759 }
39760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39761 return resultobj;
39762fail:
39763 return NULL;
d55e5bfc
RD
39764}
39765
39766
1bd55598
RD
39767SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39768 PyObject *resultobj = 0;
39769 wxHelpProvider *result = 0 ;
39770
39771 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39772 {
39773 PyThreadState* __tstate = wxPyBeginAllowThreads();
39774 result = (wxHelpProvider *)wxHelpProvider::Get();
39775 wxPyEndAllowThreads(__tstate);
39776 if (PyErr_Occurred()) SWIG_fail;
39777 }
39778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39779 return resultobj;
39780fail:
39781 return NULL;
39782}
39783
39784
39785SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39786 PyObject *resultobj = 0;
39787 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39788 wxWindow *arg2 = (wxWindow *) 0 ;
39789 wxString result;
39790 void *argp1 = 0 ;
39791 int res1 = 0 ;
39792 void *argp2 = 0 ;
39793 int res2 = 0 ;
39794 PyObject * obj0 = 0 ;
39795 PyObject * obj1 = 0 ;
39796 char * kwnames[] = {
39797 (char *) "self",(char *) "window", NULL
39798 };
39799
39800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39802 if (!SWIG_IsOK(res1)) {
39803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39804 }
39805 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39807 if (!SWIG_IsOK(res2)) {
39808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39809 }
39810 arg2 = reinterpret_cast< wxWindow * >(argp2);
39811 {
39812 PyThreadState* __tstate = wxPyBeginAllowThreads();
39813 result = (arg1)->GetHelp((wxWindow const *)arg2);
39814 wxPyEndAllowThreads(__tstate);
39815 if (PyErr_Occurred()) SWIG_fail;
39816 }
39817 {
39818#if wxUSE_UNICODE
39819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39820#else
39821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39822#endif
39823 }
39824 return resultobj;
39825fail:
39826 return NULL;
39827}
39828
39829
39830SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39831 PyObject *resultobj = 0;
39832 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39833 wxWindow *arg2 = (wxWindow *) 0 ;
39834 bool result;
39835 void *argp1 = 0 ;
39836 int res1 = 0 ;
39837 void *argp2 = 0 ;
39838 int res2 = 0 ;
39839 PyObject * obj0 = 0 ;
39840 PyObject * obj1 = 0 ;
39841 char * kwnames[] = {
39842 (char *) "self",(char *) "window", NULL
39843 };
39844
39845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39847 if (!SWIG_IsOK(res1)) {
39848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39849 }
39850 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39852 if (!SWIG_IsOK(res2)) {
39853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39854 }
39855 arg2 = reinterpret_cast< wxWindow * >(argp2);
39856 {
39857 PyThreadState* __tstate = wxPyBeginAllowThreads();
39858 result = (bool)(arg1)->ShowHelp(arg2);
39859 wxPyEndAllowThreads(__tstate);
39860 if (PyErr_Occurred()) SWIG_fail;
39861 }
39862 {
39863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39864 }
39865 return resultobj;
39866fail:
39867 return NULL;
39868}
39869
39870
b850e7f3
RD
39871SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39872 PyObject *resultobj = 0;
39873 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39874 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39875 wxPoint *arg3 = 0 ;
39876 wxHelpEvent::Origin arg4 ;
39877 bool result;
39878 void *argp1 = 0 ;
39879 int res1 = 0 ;
39880 void *argp2 = 0 ;
39881 int res2 = 0 ;
39882 wxPoint temp3 ;
39883 int val4 ;
39884 int ecode4 = 0 ;
39885 PyObject * obj0 = 0 ;
39886 PyObject * obj1 = 0 ;
39887 PyObject * obj2 = 0 ;
39888 PyObject * obj3 = 0 ;
39889 char * kwnames[] = {
39890 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39891 };
39892
39893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39895 if (!SWIG_IsOK(res1)) {
39896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39897 }
39898 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39899 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39900 if (!SWIG_IsOK(res2)) {
39901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39902 }
39903 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39904 {
39905 arg3 = &temp3;
39906 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39907 }
39908 ecode4 = SWIG_AsVal_int(obj3, &val4);
39909 if (!SWIG_IsOK(ecode4)) {
39910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39911 }
39912 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39913 {
39914 PyThreadState* __tstate = wxPyBeginAllowThreads();
39915 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39916 wxPyEndAllowThreads(__tstate);
39917 if (PyErr_Occurred()) SWIG_fail;
39918 }
39919 {
39920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39921 }
39922 return resultobj;
39923fail:
39924 return NULL;
39925}
39926
39927
1bd55598
RD
39928SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39929 PyObject *resultobj = 0;
39930 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39931 wxWindow *arg2 = (wxWindow *) 0 ;
39932 wxString *arg3 = 0 ;
39933 void *argp1 = 0 ;
39934 int res1 = 0 ;
39935 void *argp2 = 0 ;
39936 int res2 = 0 ;
39937 bool temp3 = false ;
39938 PyObject * obj0 = 0 ;
39939 PyObject * obj1 = 0 ;
39940 PyObject * obj2 = 0 ;
39941 char * kwnames[] = {
39942 (char *) "self",(char *) "window",(char *) "text", NULL
39943 };
39944
39945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39947 if (!SWIG_IsOK(res1)) {
39948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39949 }
39950 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39952 if (!SWIG_IsOK(res2)) {
39953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39954 }
39955 arg2 = reinterpret_cast< wxWindow * >(argp2);
39956 {
39957 arg3 = wxString_in_helper(obj2);
39958 if (arg3 == NULL) SWIG_fail;
39959 temp3 = true;
39960 }
39961 {
39962 PyThreadState* __tstate = wxPyBeginAllowThreads();
39963 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39964 wxPyEndAllowThreads(__tstate);
39965 if (PyErr_Occurred()) SWIG_fail;
39966 }
39967 resultobj = SWIG_Py_Void();
39968 {
39969 if (temp3)
39970 delete arg3;
39971 }
39972 return resultobj;
39973fail:
39974 {
39975 if (temp3)
39976 delete arg3;
39977 }
39978 return NULL;
39979}
39980
39981
39982SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39983 PyObject *resultobj = 0;
39984 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39985 int arg2 ;
39986 wxString *arg3 = 0 ;
39987 void *argp1 = 0 ;
39988 int res1 = 0 ;
39989 int val2 ;
39990 int ecode2 = 0 ;
39991 bool temp3 = false ;
39992 PyObject * obj0 = 0 ;
39993 PyObject * obj1 = 0 ;
39994 PyObject * obj2 = 0 ;
39995 char * kwnames[] = {
39996 (char *) "self",(char *) "id",(char *) "text", NULL
39997 };
39998
39999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40001 if (!SWIG_IsOK(res1)) {
40002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40003 }
40004 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40005 ecode2 = SWIG_AsVal_int(obj1, &val2);
40006 if (!SWIG_IsOK(ecode2)) {
40007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40008 }
40009 arg2 = static_cast< int >(val2);
40010 {
40011 arg3 = wxString_in_helper(obj2);
40012 if (arg3 == NULL) SWIG_fail;
40013 temp3 = true;
40014 }
40015 {
40016 PyThreadState* __tstate = wxPyBeginAllowThreads();
40017 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40018 wxPyEndAllowThreads(__tstate);
40019 if (PyErr_Occurred()) SWIG_fail;
40020 }
40021 resultobj = SWIG_Py_Void();
40022 {
40023 if (temp3)
40024 delete arg3;
40025 }
40026 return resultobj;
40027fail:
40028 {
40029 if (temp3)
40030 delete arg3;
40031 }
40032 return NULL;
40033}
40034
40035
40036SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40037 PyObject *resultobj = 0;
40038 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40039 wxWindow *arg2 = (wxWindow *) 0 ;
40040 void *argp1 = 0 ;
40041 int res1 = 0 ;
40042 void *argp2 = 0 ;
40043 int res2 = 0 ;
40044 PyObject * obj0 = 0 ;
40045 PyObject * obj1 = 0 ;
40046 char * kwnames[] = {
40047 (char *) "self",(char *) "window", NULL
40048 };
40049
40050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40052 if (!SWIG_IsOK(res1)) {
40053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40054 }
40055 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40057 if (!SWIG_IsOK(res2)) {
40058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40059 }
40060 arg2 = reinterpret_cast< wxWindow * >(argp2);
40061 {
40062 PyThreadState* __tstate = wxPyBeginAllowThreads();
40063 (arg1)->RemoveHelp(arg2);
40064 wxPyEndAllowThreads(__tstate);
40065 if (PyErr_Occurred()) SWIG_fail;
40066 }
40067 resultobj = SWIG_Py_Void();
40068 return resultobj;
40069fail:
40070 return NULL;
d55e5bfc
RD
40071}
40072
40073
1bd55598
RD
40074SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40075 PyObject *resultobj = 0;
40076 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40077 void *argp1 = 0 ;
40078 int res1 = 0 ;
40079 PyObject *swig_obj[1] ;
40080
40081 if (!args) SWIG_fail;
40082 swig_obj[0] = args;
40083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40084 if (!SWIG_IsOK(res1)) {
40085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40086 }
40087 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40088 {
40089 PyThreadState* __tstate = wxPyBeginAllowThreads();
40090 wxHelpProvider_Destroy(arg1);
40091 wxPyEndAllowThreads(__tstate);
40092 if (PyErr_Occurred()) SWIG_fail;
40093 }
40094 resultobj = SWIG_Py_Void();
40095 return resultobj;
40096fail:
40097 return NULL;
d55e5bfc
RD
40098}
40099
40100
1bd55598
RD
40101SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40102 PyObject *obj;
40103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40104 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40105 return SWIG_Py_Void();
d55e5bfc
RD
40106}
40107
1bd55598
RD
40108SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40109 PyObject *resultobj = 0;
40110 wxSimpleHelpProvider *result = 0 ;
40111
40112 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40113 {
40114 PyThreadState* __tstate = wxPyBeginAllowThreads();
40115 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40116 wxPyEndAllowThreads(__tstate);
40117 if (PyErr_Occurred()) SWIG_fail;
40118 }
40119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40120 return resultobj;
40121fail:
40122 return NULL;
40123}
40124
40125
40126SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40127 PyObject *obj;
40128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40129 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40130 return SWIG_Py_Void();
40131}
40132
40133SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40134 return SWIG_Python_InitShadowInstance(args);
40135}
40136
40137SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40138 PyObject *resultobj = 0;
40139 wxBitmap *arg1 = 0 ;
40140 wxCursor const &arg2_defvalue = wxNullCursor ;
40141 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40142 wxGenericDragImage *result = 0 ;
40143 void *argp1 = 0 ;
40144 int res1 = 0 ;
40145 void *argp2 = 0 ;
40146 int res2 = 0 ;
40147 PyObject * obj0 = 0 ;
40148 PyObject * obj1 = 0 ;
40149 char * kwnames[] = {
40150 (char *) "image",(char *) "cursor", NULL
40151 };
40152
40153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40154 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40155 if (!SWIG_IsOK(res1)) {
40156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40157 }
40158 if (!argp1) {
40159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40160 }
40161 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40162 if (obj1) {
40163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40164 if (!SWIG_IsOK(res2)) {
40165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40166 }
1bd55598
RD
40167 if (!argp2) {
40168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40169 }
1bd55598
RD
40170 arg2 = reinterpret_cast< wxCursor * >(argp2);
40171 }
40172 {
40173 if (!wxPyCheckForApp()) SWIG_fail;
40174 PyThreadState* __tstate = wxPyBeginAllowThreads();
40175 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40176 wxPyEndAllowThreads(__tstate);
40177 if (PyErr_Occurred()) SWIG_fail;
40178 }
40179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40180 return resultobj;
40181fail:
40182 return NULL;
40183}
40184
40185
40186SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40187 PyObject *resultobj = 0;
40188 wxIcon *arg1 = 0 ;
40189 wxCursor const &arg2_defvalue = wxNullCursor ;
40190 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40191 wxGenericDragImage *result = 0 ;
40192 void *argp1 = 0 ;
40193 int res1 = 0 ;
40194 void *argp2 = 0 ;
40195 int res2 = 0 ;
40196 PyObject * obj0 = 0 ;
40197 PyObject * obj1 = 0 ;
40198 char * kwnames[] = {
40199 (char *) "image",(char *) "cursor", NULL
40200 };
40201
40202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40203 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40204 if (!SWIG_IsOK(res1)) {
40205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40206 }
40207 if (!argp1) {
40208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40209 }
40210 arg1 = reinterpret_cast< wxIcon * >(argp1);
40211 if (obj1) {
40212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40213 if (!SWIG_IsOK(res2)) {
40214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40215 }
1bd55598
RD
40216 if (!argp2) {
40217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40218 }
1bd55598
RD
40219 arg2 = reinterpret_cast< wxCursor * >(argp2);
40220 }
40221 {
40222 if (!wxPyCheckForApp()) SWIG_fail;
40223 PyThreadState* __tstate = wxPyBeginAllowThreads();
40224 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40225 wxPyEndAllowThreads(__tstate);
40226 if (PyErr_Occurred()) SWIG_fail;
40227 }
40228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40229 return resultobj;
40230fail:
40231 return NULL;
40232}
40233
40234
40235SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40236 PyObject *resultobj = 0;
40237 wxString *arg1 = 0 ;
40238 wxCursor const &arg2_defvalue = wxNullCursor ;
40239 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40240 wxGenericDragImage *result = 0 ;
40241 bool temp1 = false ;
40242 void *argp2 = 0 ;
40243 int res2 = 0 ;
40244 PyObject * obj0 = 0 ;
40245 PyObject * obj1 = 0 ;
40246 char * kwnames[] = {
40247 (char *) "str",(char *) "cursor", NULL
40248 };
40249
40250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40251 {
40252 arg1 = wxString_in_helper(obj0);
40253 if (arg1 == NULL) SWIG_fail;
40254 temp1 = true;
40255 }
40256 if (obj1) {
40257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40258 if (!SWIG_IsOK(res2)) {
40259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40260 }
1bd55598
RD
40261 if (!argp2) {
40262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40263 }
1bd55598
RD
40264 arg2 = reinterpret_cast< wxCursor * >(argp2);
40265 }
40266 {
40267 if (!wxPyCheckForApp()) SWIG_fail;
40268 PyThreadState* __tstate = wxPyBeginAllowThreads();
40269 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40270 wxPyEndAllowThreads(__tstate);
40271 if (PyErr_Occurred()) SWIG_fail;
40272 }
40273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40274 {
40275 if (temp1)
40276 delete arg1;
40277 }
40278 return resultobj;
40279fail:
40280 {
40281 if (temp1)
40282 delete arg1;
40283 }
40284 return NULL;
40285}
40286
40287
40288SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40289 PyObject *resultobj = 0;
40290 wxPyTreeCtrl *arg1 = 0 ;
40291 wxTreeItemId *arg2 = 0 ;
40292 wxGenericDragImage *result = 0 ;
40293 void *argp1 = 0 ;
40294 int res1 = 0 ;
40295 void *argp2 = 0 ;
40296 int res2 = 0 ;
40297 PyObject * obj0 = 0 ;
40298 PyObject * obj1 = 0 ;
40299 char * kwnames[] = {
40300 (char *) "treeCtrl",(char *) "id", NULL
40301 };
40302
40303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40304 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40305 if (!SWIG_IsOK(res1)) {
40306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40307 }
40308 if (!argp1) {
40309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40310 }
40311 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40313 if (!SWIG_IsOK(res2)) {
40314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40315 }
40316 if (!argp2) {
40317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40318 }
40319 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40320 {
40321 if (!wxPyCheckForApp()) SWIG_fail;
40322 PyThreadState* __tstate = wxPyBeginAllowThreads();
40323 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40324 wxPyEndAllowThreads(__tstate);
40325 if (PyErr_Occurred()) SWIG_fail;
40326 }
40327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40328 return resultobj;
40329fail:
40330 return NULL;
40331}
40332
40333
40334SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40335 PyObject *resultobj = 0;
40336 wxPyListCtrl *arg1 = 0 ;
40337 long arg2 ;
40338 wxGenericDragImage *result = 0 ;
40339 void *argp1 = 0 ;
40340 int res1 = 0 ;
40341 long val2 ;
40342 int ecode2 = 0 ;
40343 PyObject * obj0 = 0 ;
40344 PyObject * obj1 = 0 ;
40345 char * kwnames[] = {
40346 (char *) "listCtrl",(char *) "id", NULL
40347 };
40348
40349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40350 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40351 if (!SWIG_IsOK(res1)) {
40352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40353 }
40354 if (!argp1) {
40355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40356 }
40357 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40358 ecode2 = SWIG_AsVal_long(obj1, &val2);
40359 if (!SWIG_IsOK(ecode2)) {
40360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40361 }
40362 arg2 = static_cast< long >(val2);
40363 {
40364 if (!wxPyCheckForApp()) SWIG_fail;
40365 PyThreadState* __tstate = wxPyBeginAllowThreads();
40366 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40367 wxPyEndAllowThreads(__tstate);
40368 if (PyErr_Occurred()) SWIG_fail;
40369 }
40370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40371 return resultobj;
40372fail:
40373 return NULL;
d55e5bfc
RD
40374}
40375
40376
1bd55598
RD
40377SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40378 PyObject *resultobj = 0;
40379 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40380 void *argp1 = 0 ;
40381 int res1 = 0 ;
40382 PyObject *swig_obj[1] ;
40383
40384 if (!args) SWIG_fail;
40385 swig_obj[0] = args;
40386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40387 if (!SWIG_IsOK(res1)) {
40388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40389 }
40390 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40391 {
40392 PyThreadState* __tstate = wxPyBeginAllowThreads();
40393 delete arg1;
d55e5bfc 40394
1bd55598
RD
40395 wxPyEndAllowThreads(__tstate);
40396 if (PyErr_Occurred()) SWIG_fail;
40397 }
40398 resultobj = SWIG_Py_Void();
40399 return resultobj;
40400fail:
40401 return NULL;
40402}
40403
40404
40405SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40406 PyObject *resultobj = 0;
40407 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40408 wxBitmap *arg2 = (wxBitmap *) 0 ;
40409 void *argp1 = 0 ;
40410 int res1 = 0 ;
40411 void *argp2 = 0 ;
40412 int res2 = 0 ;
40413 PyObject * obj0 = 0 ;
40414 PyObject * obj1 = 0 ;
40415 char * kwnames[] = {
40416 (char *) "self",(char *) "bitmap", NULL
40417 };
40418
40419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40421 if (!SWIG_IsOK(res1)) {
40422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40423 }
40424 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40426 if (!SWIG_IsOK(res2)) {
40427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40428 }
40429 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40430 {
40431 PyThreadState* __tstate = wxPyBeginAllowThreads();
40432 (arg1)->SetBackingBitmap(arg2);
40433 wxPyEndAllowThreads(__tstate);
40434 if (PyErr_Occurred()) SWIG_fail;
40435 }
40436 resultobj = SWIG_Py_Void();
40437 return resultobj;
40438fail:
40439 return NULL;
40440}
40441
40442
40443SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40444 PyObject *resultobj = 0;
40445 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40446 wxPoint *arg2 = 0 ;
40447 wxWindow *arg3 = (wxWindow *) 0 ;
40448 bool arg4 = (bool) false ;
40449 wxRect *arg5 = (wxRect *) NULL ;
40450 bool result;
40451 void *argp1 = 0 ;
40452 int res1 = 0 ;
40453 wxPoint temp2 ;
40454 void *argp3 = 0 ;
40455 int res3 = 0 ;
40456 bool val4 ;
40457 int ecode4 = 0 ;
40458 void *argp5 = 0 ;
40459 int res5 = 0 ;
40460 PyObject * obj0 = 0 ;
40461 PyObject * obj1 = 0 ;
40462 PyObject * obj2 = 0 ;
40463 PyObject * obj3 = 0 ;
40464 PyObject * obj4 = 0 ;
40465 char * kwnames[] = {
40466 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40467 };
40468
40469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40471 if (!SWIG_IsOK(res1)) {
40472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40473 }
40474 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40475 {
40476 arg2 = &temp2;
40477 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40478 }
40479 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40480 if (!SWIG_IsOK(res3)) {
40481 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40482 }
40483 arg3 = reinterpret_cast< wxWindow * >(argp3);
40484 if (obj3) {
40485 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40486 if (!SWIG_IsOK(ecode4)) {
40487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40488 }
40489 arg4 = static_cast< bool >(val4);
40490 }
40491 if (obj4) {
40492 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40493 if (!SWIG_IsOK(res5)) {
40494 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40495 }
1bd55598
RD
40496 arg5 = reinterpret_cast< wxRect * >(argp5);
40497 }
40498 {
40499 PyThreadState* __tstate = wxPyBeginAllowThreads();
40500 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40501 wxPyEndAllowThreads(__tstate);
40502 if (PyErr_Occurred()) SWIG_fail;
40503 }
40504 {
40505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40506 }
40507 return resultobj;
40508fail:
40509 return NULL;
40510}
40511
40512
40513SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40514 PyObject *resultobj = 0;
40515 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40516 wxPoint *arg2 = 0 ;
40517 wxWindow *arg3 = (wxWindow *) 0 ;
40518 wxWindow *arg4 = (wxWindow *) 0 ;
40519 bool result;
40520 void *argp1 = 0 ;
40521 int res1 = 0 ;
40522 wxPoint temp2 ;
40523 void *argp3 = 0 ;
40524 int res3 = 0 ;
40525 void *argp4 = 0 ;
40526 int res4 = 0 ;
40527 PyObject * obj0 = 0 ;
40528 PyObject * obj1 = 0 ;
40529 PyObject * obj2 = 0 ;
40530 PyObject * obj3 = 0 ;
40531 char * kwnames[] = {
40532 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40533 };
40534
40535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40537 if (!SWIG_IsOK(res1)) {
40538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40539 }
40540 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40541 {
40542 arg2 = &temp2;
40543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40544 }
40545 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40546 if (!SWIG_IsOK(res3)) {
40547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40548 }
40549 arg3 = reinterpret_cast< wxWindow * >(argp3);
40550 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40551 if (!SWIG_IsOK(res4)) {
40552 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40553 }
40554 arg4 = reinterpret_cast< wxWindow * >(argp4);
40555 {
40556 PyThreadState* __tstate = wxPyBeginAllowThreads();
40557 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40558 wxPyEndAllowThreads(__tstate);
40559 if (PyErr_Occurred()) SWIG_fail;
40560 }
40561 {
40562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40563 }
40564 return resultobj;
40565fail:
40566 return NULL;
d55e5bfc
RD
40567}
40568
40569
1bd55598
RD
40570SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40571 PyObject *resultobj = 0;
40572 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40573 bool result;
40574 void *argp1 = 0 ;
40575 int res1 = 0 ;
40576 PyObject *swig_obj[1] ;
40577
40578 if (!args) SWIG_fail;
40579 swig_obj[0] = args;
40580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40581 if (!SWIG_IsOK(res1)) {
40582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40583 }
40584 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40585 {
40586 PyThreadState* __tstate = wxPyBeginAllowThreads();
40587 result = (bool)(arg1)->EndDrag();
40588 wxPyEndAllowThreads(__tstate);
40589 if (PyErr_Occurred()) SWIG_fail;
40590 }
40591 {
40592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40593 }
40594 return resultobj;
40595fail:
40596 return NULL;
40597}
40598
40599
40600SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40601 PyObject *resultobj = 0;
40602 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40603 wxPoint *arg2 = 0 ;
40604 bool result;
40605 void *argp1 = 0 ;
40606 int res1 = 0 ;
40607 wxPoint temp2 ;
40608 PyObject * obj0 = 0 ;
40609 PyObject * obj1 = 0 ;
40610 char * kwnames[] = {
40611 (char *) "self",(char *) "pt", NULL
40612 };
40613
40614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40616 if (!SWIG_IsOK(res1)) {
40617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40618 }
40619 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40620 {
40621 arg2 = &temp2;
40622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40623 }
40624 {
40625 PyThreadState* __tstate = wxPyBeginAllowThreads();
40626 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40627 wxPyEndAllowThreads(__tstate);
40628 if (PyErr_Occurred()) SWIG_fail;
40629 }
40630 {
40631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40632 }
40633 return resultobj;
40634fail:
40635 return NULL;
d55e5bfc
RD
40636}
40637
40638
1bd55598
RD
40639SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40640 PyObject *resultobj = 0;
40641 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40642 bool result;
40643 void *argp1 = 0 ;
40644 int res1 = 0 ;
40645 PyObject *swig_obj[1] ;
40646
40647 if (!args) SWIG_fail;
40648 swig_obj[0] = args;
40649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40650 if (!SWIG_IsOK(res1)) {
40651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40652 }
40653 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40654 {
40655 PyThreadState* __tstate = wxPyBeginAllowThreads();
40656 result = (bool)(arg1)->Show();
40657 wxPyEndAllowThreads(__tstate);
40658 if (PyErr_Occurred()) SWIG_fail;
40659 }
40660 {
40661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40662 }
40663 return resultobj;
40664fail:
40665 return NULL;
d55e5bfc
RD
40666}
40667
40668
1bd55598
RD
40669SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40670 PyObject *resultobj = 0;
40671 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40672 bool result;
40673 void *argp1 = 0 ;
40674 int res1 = 0 ;
40675 PyObject *swig_obj[1] ;
40676
40677 if (!args) SWIG_fail;
40678 swig_obj[0] = args;
40679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40680 if (!SWIG_IsOK(res1)) {
40681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40682 }
40683 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40684 {
40685 PyThreadState* __tstate = wxPyBeginAllowThreads();
40686 result = (bool)(arg1)->Hide();
40687 wxPyEndAllowThreads(__tstate);
40688 if (PyErr_Occurred()) SWIG_fail;
40689 }
40690 {
40691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40692 }
40693 return resultobj;
40694fail:
40695 return NULL;
40696}
40697
40698
40699SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40700 PyObject *resultobj = 0;
40701 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40702 wxPoint *arg2 = 0 ;
40703 wxRect result;
40704 void *argp1 = 0 ;
40705 int res1 = 0 ;
40706 wxPoint temp2 ;
40707 PyObject * obj0 = 0 ;
40708 PyObject * obj1 = 0 ;
40709 char * kwnames[] = {
40710 (char *) "self",(char *) "pos", NULL
40711 };
40712
40713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40715 if (!SWIG_IsOK(res1)) {
40716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40717 }
40718 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40719 {
40720 arg2 = &temp2;
40721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40722 }
40723 {
40724 PyThreadState* __tstate = wxPyBeginAllowThreads();
40725 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40726 wxPyEndAllowThreads(__tstate);
40727 if (PyErr_Occurred()) SWIG_fail;
40728 }
40729 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40730 return resultobj;
40731fail:
40732 return NULL;
40733}
40734
40735
40736SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40737 PyObject *resultobj = 0;
40738 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40739 wxDC *arg2 = 0 ;
40740 wxPoint *arg3 = 0 ;
40741 bool result;
40742 void *argp1 = 0 ;
40743 int res1 = 0 ;
40744 void *argp2 = 0 ;
40745 int res2 = 0 ;
40746 wxPoint temp3 ;
40747 PyObject * obj0 = 0 ;
40748 PyObject * obj1 = 0 ;
40749 PyObject * obj2 = 0 ;
40750 char * kwnames[] = {
40751 (char *) "self",(char *) "dc",(char *) "pos", NULL
40752 };
40753
40754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40756 if (!SWIG_IsOK(res1)) {
40757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40758 }
40759 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40761 if (!SWIG_IsOK(res2)) {
40762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40763 }
40764 if (!argp2) {
40765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40766 }
40767 arg2 = reinterpret_cast< wxDC * >(argp2);
40768 {
40769 arg3 = &temp3;
40770 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40771 }
40772 {
40773 PyThreadState* __tstate = wxPyBeginAllowThreads();
40774 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40775 wxPyEndAllowThreads(__tstate);
40776 if (PyErr_Occurred()) SWIG_fail;
40777 }
40778 {
40779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40780 }
40781 return resultobj;
40782fail:
40783 return NULL;
40784}
40785
40786
40787SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40788 PyObject *resultobj = 0;
40789 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40790 wxDC *arg2 = 0 ;
40791 wxMemoryDC *arg3 = 0 ;
40792 wxRect *arg4 = 0 ;
40793 wxRect *arg5 = 0 ;
40794 bool result;
40795 void *argp1 = 0 ;
40796 int res1 = 0 ;
40797 void *argp2 = 0 ;
40798 int res2 = 0 ;
40799 void *argp3 = 0 ;
40800 int res3 = 0 ;
40801 wxRect temp4 ;
40802 wxRect temp5 ;
40803 PyObject * obj0 = 0 ;
40804 PyObject * obj1 = 0 ;
40805 PyObject * obj2 = 0 ;
40806 PyObject * obj3 = 0 ;
40807 PyObject * obj4 = 0 ;
40808 char * kwnames[] = {
40809 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40810 };
40811
40812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40814 if (!SWIG_IsOK(res1)) {
40815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40816 }
40817 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40819 if (!SWIG_IsOK(res2)) {
40820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40821 }
40822 if (!argp2) {
40823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40824 }
40825 arg2 = reinterpret_cast< wxDC * >(argp2);
40826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40827 if (!SWIG_IsOK(res3)) {
40828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40829 }
40830 if (!argp3) {
40831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40832 }
40833 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40834 {
40835 arg4 = &temp4;
40836 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40837 }
40838 {
40839 arg5 = &temp5;
40840 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40841 }
40842 {
40843 PyThreadState* __tstate = wxPyBeginAllowThreads();
40844 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40845 wxPyEndAllowThreads(__tstate);
40846 if (PyErr_Occurred()) SWIG_fail;
40847 }
40848 {
40849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40850 }
40851 return resultobj;
40852fail:
40853 return NULL;
40854}
40855
40856
40857SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40858 PyObject *resultobj = 0;
40859 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40860 wxPoint *arg2 = 0 ;
40861 wxPoint *arg3 = 0 ;
40862 bool arg4 ;
40863 bool arg5 ;
40864 bool result;
40865 void *argp1 = 0 ;
40866 int res1 = 0 ;
40867 wxPoint temp2 ;
40868 wxPoint temp3 ;
40869 bool val4 ;
40870 int ecode4 = 0 ;
40871 bool val5 ;
40872 int ecode5 = 0 ;
40873 PyObject * obj0 = 0 ;
40874 PyObject * obj1 = 0 ;
40875 PyObject * obj2 = 0 ;
40876 PyObject * obj3 = 0 ;
40877 PyObject * obj4 = 0 ;
40878 char * kwnames[] = {
40879 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40880 };
40881
40882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40884 if (!SWIG_IsOK(res1)) {
40885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40886 }
40887 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40888 {
40889 arg2 = &temp2;
40890 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40891 }
40892 {
40893 arg3 = &temp3;
40894 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40895 }
40896 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40897 if (!SWIG_IsOK(ecode4)) {
40898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40899 }
40900 arg4 = static_cast< bool >(val4);
40901 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40902 if (!SWIG_IsOK(ecode5)) {
40903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40904 }
40905 arg5 = static_cast< bool >(val5);
40906 {
40907 PyThreadState* __tstate = wxPyBeginAllowThreads();
40908 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40909 wxPyEndAllowThreads(__tstate);
40910 if (PyErr_Occurred()) SWIG_fail;
40911 }
40912 {
40913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40914 }
40915 return resultobj;
40916fail:
40917 return NULL;
d55e5bfc
RD
40918}
40919
40920
1bd55598
RD
40921SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40922 PyObject *obj;
40923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40924 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40925 return SWIG_Py_Void();
d55e5bfc
RD
40926}
40927
1bd55598
RD
40928SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40929 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
40930}
40931
1bd55598
RD
40932SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40933 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40934 return 1;
d55e5bfc
RD
40935}
40936
40937
1bd55598
RD
40938SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40939 PyObject *pyobj = 0;
40940
40941 {
40942#if wxUSE_UNICODE
40943 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40944#else
40945 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40946#endif
40947 }
40948 return pyobj;
40949}
40950
40951
40952SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40953 PyObject *resultobj = 0;
40954 wxWindow *arg1 = (wxWindow *) 0 ;
40955 int arg2 = (int) -1 ;
40956 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40957 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40958 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40959 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40960 wxSize const &arg5_defvalue = wxDefaultSize ;
40961 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40962 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40963 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40964 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40965 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40966 wxString *arg8 = (wxString *) &arg8_defvalue ;
40967 wxDatePickerCtrl *result = 0 ;
40968 void *argp1 = 0 ;
40969 int res1 = 0 ;
40970 int val2 ;
40971 int ecode2 = 0 ;
40972 void *argp3 = 0 ;
40973 int res3 = 0 ;
40974 wxPoint temp4 ;
40975 wxSize temp5 ;
40976 long val6 ;
40977 int ecode6 = 0 ;
40978 void *argp7 = 0 ;
40979 int res7 = 0 ;
40980 bool temp8 = false ;
40981 PyObject * obj0 = 0 ;
40982 PyObject * obj1 = 0 ;
40983 PyObject * obj2 = 0 ;
40984 PyObject * obj3 = 0 ;
40985 PyObject * obj4 = 0 ;
40986 PyObject * obj5 = 0 ;
40987 PyObject * obj6 = 0 ;
40988 PyObject * obj7 = 0 ;
40989 char * kwnames[] = {
40990 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40991 };
40992
40993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40995 if (!SWIG_IsOK(res1)) {
40996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40997 }
40998 arg1 = reinterpret_cast< wxWindow * >(argp1);
40999 if (obj1) {
41000 ecode2 = SWIG_AsVal_int(obj1, &val2);
41001 if (!SWIG_IsOK(ecode2)) {
41002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41003 }
41004 arg2 = static_cast< int >(val2);
41005 }
41006 if (obj2) {
41007 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41008 if (!SWIG_IsOK(res3)) {
41009 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41010 }
1bd55598
RD
41011 if (!argp3) {
41012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41013 }
1bd55598
RD
41014 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41015 }
41016 if (obj3) {
36ed4f51 41017 {
1bd55598
RD
41018 arg4 = &temp4;
41019 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41020 }
1bd55598
RD
41021 }
41022 if (obj4) {
d55e5bfc 41023 {
1bd55598
RD
41024 arg5 = &temp5;
41025 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41026 }
1bd55598
RD
41027 }
41028 if (obj5) {
41029 ecode6 = SWIG_AsVal_long(obj5, &val6);
41030 if (!SWIG_IsOK(ecode6)) {
41031 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41032 }
41033 arg6 = static_cast< long >(val6);
41034 }
41035 if (obj6) {
41036 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41037 if (!SWIG_IsOK(res7)) {
41038 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41039 }
1bd55598
RD
41040 if (!argp7) {
41041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41042 }
1bd55598
RD
41043 arg7 = reinterpret_cast< wxValidator * >(argp7);
41044 }
41045 if (obj7) {
36ed4f51 41046 {
1bd55598
RD
41047 arg8 = wxString_in_helper(obj7);
41048 if (arg8 == NULL) SWIG_fail;
41049 temp8 = true;
36ed4f51 41050 }
1bd55598
RD
41051 }
41052 {
41053 if (!wxPyCheckForApp()) SWIG_fail;
41054 PyThreadState* __tstate = wxPyBeginAllowThreads();
41055 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41056 wxPyEndAllowThreads(__tstate);
41057 if (PyErr_Occurred()) SWIG_fail;
41058 }
41059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41060 {
41061 if (temp8)
41062 delete arg8;
41063 }
41064 return resultobj;
41065fail:
41066 {
41067 if (temp8)
41068 delete arg8;
41069 }
41070 return NULL;
d55e5bfc
RD
41071}
41072
41073
1bd55598
RD
41074SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41075 PyObject *resultobj = 0;
41076 wxDatePickerCtrl *result = 0 ;
41077
41078 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41079 {
41080 if (!wxPyCheckForApp()) SWIG_fail;
41081 PyThreadState* __tstate = wxPyBeginAllowThreads();
41082 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41083 wxPyEndAllowThreads(__tstate);
41084 if (PyErr_Occurred()) SWIG_fail;
41085 }
41086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41087 return resultobj;
41088fail:
41089 return NULL;
41090}
41091
41092
41093SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41094 PyObject *resultobj = 0;
41095 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41096 wxWindow *arg2 = (wxWindow *) 0 ;
41097 int arg3 = (int) -1 ;
41098 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41099 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41100 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41101 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41102 wxSize const &arg6_defvalue = wxDefaultSize ;
41103 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41104 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41105 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41106 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41107 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41108 wxString *arg9 = (wxString *) &arg9_defvalue ;
41109 bool result;
41110 void *argp1 = 0 ;
41111 int res1 = 0 ;
41112 void *argp2 = 0 ;
41113 int res2 = 0 ;
41114 int val3 ;
41115 int ecode3 = 0 ;
41116 void *argp4 = 0 ;
41117 int res4 = 0 ;
41118 wxPoint temp5 ;
41119 wxSize temp6 ;
41120 long val7 ;
41121 int ecode7 = 0 ;
41122 void *argp8 = 0 ;
41123 int res8 = 0 ;
41124 bool temp9 = false ;
41125 PyObject * obj0 = 0 ;
41126 PyObject * obj1 = 0 ;
41127 PyObject * obj2 = 0 ;
41128 PyObject * obj3 = 0 ;
41129 PyObject * obj4 = 0 ;
41130 PyObject * obj5 = 0 ;
41131 PyObject * obj6 = 0 ;
41132 PyObject * obj7 = 0 ;
41133 PyObject * obj8 = 0 ;
41134 char * kwnames[] = {
41135 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41136 };
41137
41138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41140 if (!SWIG_IsOK(res1)) {
41141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41142 }
41143 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41144 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41145 if (!SWIG_IsOK(res2)) {
41146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41147 }
41148 arg2 = reinterpret_cast< wxWindow * >(argp2);
41149 if (obj2) {
41150 ecode3 = SWIG_AsVal_int(obj2, &val3);
41151 if (!SWIG_IsOK(ecode3)) {
41152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41153 }
41154 arg3 = static_cast< int >(val3);
41155 }
41156 if (obj3) {
41157 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41158 if (!SWIG_IsOK(res4)) {
41159 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41160 }
1bd55598
RD
41161 if (!argp4) {
41162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41163 }
1bd55598
RD
41164 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41165 }
41166 if (obj4) {
d55e5bfc 41167 {
1bd55598
RD
41168 arg5 = &temp5;
41169 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41170 }
1bd55598
RD
41171 }
41172 if (obj5) {
d55e5bfc 41173 {
1bd55598
RD
41174 arg6 = &temp6;
41175 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41176 }
1bd55598
RD
41177 }
41178 if (obj6) {
41179 ecode7 = SWIG_AsVal_long(obj6, &val7);
41180 if (!SWIG_IsOK(ecode7)) {
41181 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41182 }
41183 arg7 = static_cast< long >(val7);
41184 }
41185 if (obj7) {
41186 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41187 if (!SWIG_IsOK(res8)) {
41188 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41189 }
1bd55598
RD
41190 if (!argp8) {
41191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41192 }
1bd55598
RD
41193 arg8 = reinterpret_cast< wxValidator * >(argp8);
41194 }
41195 if (obj8) {
36ed4f51 41196 {
1bd55598
RD
41197 arg9 = wxString_in_helper(obj8);
41198 if (arg9 == NULL) SWIG_fail;
41199 temp9 = true;
36ed4f51 41200 }
1bd55598
RD
41201 }
41202 {
41203 PyThreadState* __tstate = wxPyBeginAllowThreads();
41204 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41205 wxPyEndAllowThreads(__tstate);
41206 if (PyErr_Occurred()) SWIG_fail;
41207 }
41208 {
41209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41210 }
41211 {
41212 if (temp9)
41213 delete arg9;
41214 }
41215 return resultobj;
41216fail:
41217 {
41218 if (temp9)
41219 delete arg9;
41220 }
41221 return NULL;
41222}
41223
41224
41225SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41226 PyObject *resultobj = 0;
41227 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41228 wxDateTime *arg2 = 0 ;
41229 void *argp1 = 0 ;
41230 int res1 = 0 ;
41231 void *argp2 = 0 ;
41232 int res2 = 0 ;
41233 PyObject * obj0 = 0 ;
41234 PyObject * obj1 = 0 ;
41235 char * kwnames[] = {
41236 (char *) "self",(char *) "dt", NULL
41237 };
41238
41239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41241 if (!SWIG_IsOK(res1)) {
41242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41243 }
41244 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41246 if (!SWIG_IsOK(res2)) {
41247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41248 }
41249 if (!argp2) {
41250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41251 }
41252 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41253 {
41254 PyThreadState* __tstate = wxPyBeginAllowThreads();
41255 (arg1)->SetValue((wxDateTime const &)*arg2);
41256 wxPyEndAllowThreads(__tstate);
41257 if (PyErr_Occurred()) SWIG_fail;
41258 }
41259 resultobj = SWIG_Py_Void();
41260 return resultobj;
41261fail:
41262 return NULL;
d55e5bfc
RD
41263}
41264
41265
1bd55598
RD
41266SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41267 PyObject *resultobj = 0;
41268 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41269 wxDateTime result;
41270 void *argp1 = 0 ;
41271 int res1 = 0 ;
41272 PyObject *swig_obj[1] ;
41273
41274 if (!args) SWIG_fail;
41275 swig_obj[0] = args;
41276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41277 if (!SWIG_IsOK(res1)) {
41278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41279 }
41280 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41281 {
41282 PyThreadState* __tstate = wxPyBeginAllowThreads();
41283 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41284 wxPyEndAllowThreads(__tstate);
41285 if (PyErr_Occurred()) SWIG_fail;
41286 }
41287 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41288 return resultobj;
41289fail:
41290 return NULL;
41291}
41292
41293
41294SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41295 PyObject *resultobj = 0;
41296 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41297 wxDateTime *arg2 = 0 ;
41298 wxDateTime *arg3 = 0 ;
41299 void *argp1 = 0 ;
41300 int res1 = 0 ;
41301 void *argp2 = 0 ;
41302 int res2 = 0 ;
41303 void *argp3 = 0 ;
41304 int res3 = 0 ;
41305 PyObject * obj0 = 0 ;
41306 PyObject * obj1 = 0 ;
41307 PyObject * obj2 = 0 ;
41308 char * kwnames[] = {
41309 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41310 };
41311
41312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41314 if (!SWIG_IsOK(res1)) {
41315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41316 }
41317 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41319 if (!SWIG_IsOK(res2)) {
41320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41321 }
41322 if (!argp2) {
41323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41324 }
41325 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41326 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41327 if (!SWIG_IsOK(res3)) {
41328 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41329 }
41330 if (!argp3) {
41331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41332 }
41333 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41334 {
41335 PyThreadState* __tstate = wxPyBeginAllowThreads();
41336 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41337 wxPyEndAllowThreads(__tstate);
41338 if (PyErr_Occurred()) SWIG_fail;
41339 }
41340 resultobj = SWIG_Py_Void();
41341 return resultobj;
41342fail:
41343 return NULL;
d55e5bfc
RD
41344}
41345
41346
1bd55598
RD
41347SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41348 PyObject *resultobj = 0;
41349 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41350 wxDateTime result;
41351 void *argp1 = 0 ;
41352 int res1 = 0 ;
41353 PyObject *swig_obj[1] ;
41354
41355 if (!args) SWIG_fail;
41356 swig_obj[0] = args;
41357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41358 if (!SWIG_IsOK(res1)) {
41359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41360 }
41361 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41362 {
41363 PyThreadState* __tstate = wxPyBeginAllowThreads();
41364 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41365 wxPyEndAllowThreads(__tstate);
41366 if (PyErr_Occurred()) SWIG_fail;
41367 }
41368 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41369 return resultobj;
41370fail:
41371 return NULL;
d55e5bfc
RD
41372}
41373
41374
1bd55598
RD
41375SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41376 PyObject *resultobj = 0;
41377 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41378 wxDateTime result;
41379 void *argp1 = 0 ;
41380 int res1 = 0 ;
41381 PyObject *swig_obj[1] ;
41382
41383 if (!args) SWIG_fail;
41384 swig_obj[0] = args;
41385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41386 if (!SWIG_IsOK(res1)) {
41387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41388 }
41389 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41390 {
41391 PyThreadState* __tstate = wxPyBeginAllowThreads();
41392 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41393 wxPyEndAllowThreads(__tstate);
41394 if (PyErr_Occurred()) SWIG_fail;
41395 }
41396 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41397 return resultobj;
41398fail:
41399 return NULL;
d55e5bfc
RD
41400}
41401
41402
1bd55598
RD
41403SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41404 PyObject *obj;
41405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41406 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41407 return SWIG_Py_Void();
d55e5bfc
RD
41408}
41409
1bd55598
RD
41410SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41411 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41412}
41413
704eda0c
RD
41414SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41415 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41416 return 1;
41417}
41418
41419
41420SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41421 PyObject *pyobj = 0;
41422
41423 {
41424#if wxUSE_UNICODE
41425 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41426#else
41427 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41428#endif
41429 }
41430 return pyobj;
41431}
41432
41433
41434SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41435 PyObject *resultobj = 0;
41436 wxWindow *arg1 = (wxWindow *) 0 ;
41437 int arg2 ;
41438 wxString *arg3 = 0 ;
41439 wxString *arg4 = 0 ;
41440 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41441 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41442 wxSize const &arg6_defvalue = wxDefaultSize ;
41443 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41444 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41445 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41446 wxString *arg8 = (wxString *) &arg8_defvalue ;
41447 wxHyperlinkCtrl *result = 0 ;
41448 void *argp1 = 0 ;
41449 int res1 = 0 ;
41450 int val2 ;
41451 int ecode2 = 0 ;
41452 bool temp3 = false ;
41453 bool temp4 = false ;
41454 wxPoint temp5 ;
41455 wxSize temp6 ;
41456 long val7 ;
41457 int ecode7 = 0 ;
41458 bool temp8 = false ;
41459 PyObject * obj0 = 0 ;
41460 PyObject * obj1 = 0 ;
41461 PyObject * obj2 = 0 ;
41462 PyObject * obj3 = 0 ;
41463 PyObject * obj4 = 0 ;
41464 PyObject * obj5 = 0 ;
41465 PyObject * obj6 = 0 ;
41466 PyObject * obj7 = 0 ;
41467 char * kwnames[] = {
41468 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41469 };
41470
41471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41473 if (!SWIG_IsOK(res1)) {
41474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41475 }
41476 arg1 = reinterpret_cast< wxWindow * >(argp1);
41477 ecode2 = SWIG_AsVal_int(obj1, &val2);
41478 if (!SWIG_IsOK(ecode2)) {
41479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41480 }
41481 arg2 = static_cast< int >(val2);
41482 {
41483 arg3 = wxString_in_helper(obj2);
41484 if (arg3 == NULL) SWIG_fail;
41485 temp3 = true;
41486 }
41487 {
41488 arg4 = wxString_in_helper(obj3);
41489 if (arg4 == NULL) SWIG_fail;
41490 temp4 = true;
41491 }
41492 if (obj4) {
41493 {
41494 arg5 = &temp5;
41495 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41496 }
41497 }
41498 if (obj5) {
41499 {
41500 arg6 = &temp6;
41501 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41502 }
41503 }
41504 if (obj6) {
41505 ecode7 = SWIG_AsVal_long(obj6, &val7);
41506 if (!SWIG_IsOK(ecode7)) {
41507 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41508 }
41509 arg7 = static_cast< long >(val7);
41510 }
41511 if (obj7) {
41512 {
41513 arg8 = wxString_in_helper(obj7);
41514 if (arg8 == NULL) SWIG_fail;
41515 temp8 = true;
41516 }
41517 }
41518 {
41519 if (!wxPyCheckForApp()) SWIG_fail;
41520 PyThreadState* __tstate = wxPyBeginAllowThreads();
41521 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41522 wxPyEndAllowThreads(__tstate);
41523 if (PyErr_Occurred()) SWIG_fail;
41524 }
41525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41526 {
41527 if (temp3)
41528 delete arg3;
41529 }
41530 {
41531 if (temp4)
41532 delete arg4;
41533 }
41534 {
41535 if (temp8)
41536 delete arg8;
41537 }
41538 return resultobj;
41539fail:
41540 {
41541 if (temp3)
41542 delete arg3;
41543 }
41544 {
41545 if (temp4)
41546 delete arg4;
41547 }
41548 {
41549 if (temp8)
41550 delete arg8;
41551 }
41552 return NULL;
41553}
41554
41555
41556SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41557 PyObject *resultobj = 0;
41558 wxHyperlinkCtrl *result = 0 ;
41559
41560 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41561 {
41562 if (!wxPyCheckForApp()) SWIG_fail;
41563 PyThreadState* __tstate = wxPyBeginAllowThreads();
41564 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41565 wxPyEndAllowThreads(__tstate);
41566 if (PyErr_Occurred()) SWIG_fail;
41567 }
41568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41569 return resultobj;
41570fail:
41571 return NULL;
41572}
41573
41574
41575SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41576 PyObject *resultobj = 0;
41577 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41578 wxWindow *arg2 = (wxWindow *) 0 ;
41579 int arg3 ;
41580 wxString *arg4 = 0 ;
41581 wxString *arg5 = 0 ;
41582 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41583 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41584 wxSize const &arg7_defvalue = wxDefaultSize ;
41585 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41586 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41587 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41588 wxString *arg9 = (wxString *) &arg9_defvalue ;
41589 bool result;
41590 void *argp1 = 0 ;
41591 int res1 = 0 ;
41592 void *argp2 = 0 ;
41593 int res2 = 0 ;
41594 int val3 ;
41595 int ecode3 = 0 ;
41596 bool temp4 = false ;
41597 bool temp5 = false ;
41598 wxPoint temp6 ;
41599 wxSize temp7 ;
41600 long val8 ;
41601 int ecode8 = 0 ;
41602 bool temp9 = false ;
41603 PyObject * obj0 = 0 ;
41604 PyObject * obj1 = 0 ;
41605 PyObject * obj2 = 0 ;
41606 PyObject * obj3 = 0 ;
41607 PyObject * obj4 = 0 ;
41608 PyObject * obj5 = 0 ;
41609 PyObject * obj6 = 0 ;
41610 PyObject * obj7 = 0 ;
41611 PyObject * obj8 = 0 ;
41612 char * kwnames[] = {
41613 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41614 };
41615
41616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41618 if (!SWIG_IsOK(res1)) {
41619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41620 }
41621 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41623 if (!SWIG_IsOK(res2)) {
41624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41625 }
41626 arg2 = reinterpret_cast< wxWindow * >(argp2);
41627 ecode3 = SWIG_AsVal_int(obj2, &val3);
41628 if (!SWIG_IsOK(ecode3)) {
41629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41630 }
41631 arg3 = static_cast< int >(val3);
41632 {
41633 arg4 = wxString_in_helper(obj3);
41634 if (arg4 == NULL) SWIG_fail;
41635 temp4 = true;
41636 }
41637 {
41638 arg5 = wxString_in_helper(obj4);
41639 if (arg5 == NULL) SWIG_fail;
41640 temp5 = true;
41641 }
41642 if (obj5) {
41643 {
41644 arg6 = &temp6;
41645 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41646 }
41647 }
41648 if (obj6) {
41649 {
41650 arg7 = &temp7;
41651 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41652 }
41653 }
41654 if (obj7) {
41655 ecode8 = SWIG_AsVal_long(obj7, &val8);
41656 if (!SWIG_IsOK(ecode8)) {
41657 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41658 }
41659 arg8 = static_cast< long >(val8);
41660 }
41661 if (obj8) {
41662 {
41663 arg9 = wxString_in_helper(obj8);
41664 if (arg9 == NULL) SWIG_fail;
41665 temp9 = true;
41666 }
41667 }
41668 {
41669 PyThreadState* __tstate = wxPyBeginAllowThreads();
41670 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41671 wxPyEndAllowThreads(__tstate);
41672 if (PyErr_Occurred()) SWIG_fail;
41673 }
41674 {
41675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41676 }
41677 {
41678 if (temp4)
41679 delete arg4;
41680 }
41681 {
41682 if (temp5)
41683 delete arg5;
41684 }
41685 {
41686 if (temp9)
41687 delete arg9;
41688 }
41689 return resultobj;
41690fail:
41691 {
41692 if (temp4)
41693 delete arg4;
41694 }
41695 {
41696 if (temp5)
41697 delete arg5;
41698 }
41699 {
41700 if (temp9)
41701 delete arg9;
41702 }
41703 return NULL;
41704}
41705
41706
41707SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41708 PyObject *resultobj = 0;
41709 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41710 wxColour result;
41711 void *argp1 = 0 ;
41712 int res1 = 0 ;
41713 PyObject *swig_obj[1] ;
41714
41715 if (!args) SWIG_fail;
41716 swig_obj[0] = args;
41717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41718 if (!SWIG_IsOK(res1)) {
41719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41720 }
41721 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41722 {
41723 PyThreadState* __tstate = wxPyBeginAllowThreads();
41724 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41725 wxPyEndAllowThreads(__tstate);
41726 if (PyErr_Occurred()) SWIG_fail;
41727 }
41728 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41729 return resultobj;
41730fail:
41731 return NULL;
41732}
41733
41734
41735SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41736 PyObject *resultobj = 0;
41737 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41738 wxColour *arg2 = 0 ;
41739 void *argp1 = 0 ;
41740 int res1 = 0 ;
41741 wxColour temp2 ;
41742 PyObject * obj0 = 0 ;
41743 PyObject * obj1 = 0 ;
41744 char * kwnames[] = {
41745 (char *) "self",(char *) "colour", NULL
41746 };
41747
41748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41750 if (!SWIG_IsOK(res1)) {
41751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41752 }
41753 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41754 {
41755 arg2 = &temp2;
41756 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41757 }
41758 {
41759 PyThreadState* __tstate = wxPyBeginAllowThreads();
41760 (arg1)->SetHoverColour((wxColour const &)*arg2);
41761 wxPyEndAllowThreads(__tstate);
41762 if (PyErr_Occurred()) SWIG_fail;
41763 }
41764 resultobj = SWIG_Py_Void();
41765 return resultobj;
41766fail:
41767 return NULL;
41768}
41769
41770
41771SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41772 PyObject *resultobj = 0;
41773 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41774 wxColour result;
41775 void *argp1 = 0 ;
41776 int res1 = 0 ;
41777 PyObject *swig_obj[1] ;
41778
41779 if (!args) SWIG_fail;
41780 swig_obj[0] = args;
41781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41782 if (!SWIG_IsOK(res1)) {
41783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41784 }
41785 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41786 {
41787 PyThreadState* __tstate = wxPyBeginAllowThreads();
41788 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41789 wxPyEndAllowThreads(__tstate);
41790 if (PyErr_Occurred()) SWIG_fail;
41791 }
41792 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41793 return resultobj;
41794fail:
41795 return NULL;
41796}
41797
41798
41799SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41800 PyObject *resultobj = 0;
41801 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41802 wxColour *arg2 = 0 ;
41803 void *argp1 = 0 ;
41804 int res1 = 0 ;
41805 wxColour temp2 ;
41806 PyObject * obj0 = 0 ;
41807 PyObject * obj1 = 0 ;
41808 char * kwnames[] = {
41809 (char *) "self",(char *) "colour", NULL
41810 };
41811
41812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41814 if (!SWIG_IsOK(res1)) {
41815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41816 }
41817 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41818 {
41819 arg2 = &temp2;
41820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41821 }
41822 {
41823 PyThreadState* __tstate = wxPyBeginAllowThreads();
41824 (arg1)->SetNormalColour((wxColour const &)*arg2);
41825 wxPyEndAllowThreads(__tstate);
41826 if (PyErr_Occurred()) SWIG_fail;
41827 }
41828 resultobj = SWIG_Py_Void();
41829 return resultobj;
41830fail:
41831 return NULL;
41832}
41833
41834
41835SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41836 PyObject *resultobj = 0;
41837 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41838 wxColour result;
41839 void *argp1 = 0 ;
41840 int res1 = 0 ;
41841 PyObject *swig_obj[1] ;
41842
41843 if (!args) SWIG_fail;
41844 swig_obj[0] = args;
41845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41846 if (!SWIG_IsOK(res1)) {
41847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41848 }
41849 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41850 {
41851 PyThreadState* __tstate = wxPyBeginAllowThreads();
41852 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41853 wxPyEndAllowThreads(__tstate);
41854 if (PyErr_Occurred()) SWIG_fail;
41855 }
41856 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41857 return resultobj;
41858fail:
41859 return NULL;
41860}
41861
41862
41863SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41864 PyObject *resultobj = 0;
41865 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41866 wxColour *arg2 = 0 ;
41867 void *argp1 = 0 ;
41868 int res1 = 0 ;
41869 wxColour temp2 ;
41870 PyObject * obj0 = 0 ;
41871 PyObject * obj1 = 0 ;
41872 char * kwnames[] = {
41873 (char *) "self",(char *) "colour", NULL
41874 };
41875
41876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41878 if (!SWIG_IsOK(res1)) {
41879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41880 }
41881 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41882 {
41883 arg2 = &temp2;
41884 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41885 }
41886 {
41887 PyThreadState* __tstate = wxPyBeginAllowThreads();
41888 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41889 wxPyEndAllowThreads(__tstate);
41890 if (PyErr_Occurred()) SWIG_fail;
41891 }
41892 resultobj = SWIG_Py_Void();
41893 return resultobj;
41894fail:
41895 return NULL;
41896}
41897
41898
41899SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41900 PyObject *resultobj = 0;
41901 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41902 wxString result;
41903 void *argp1 = 0 ;
41904 int res1 = 0 ;
41905 PyObject *swig_obj[1] ;
41906
41907 if (!args) SWIG_fail;
41908 swig_obj[0] = args;
41909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41910 if (!SWIG_IsOK(res1)) {
41911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41912 }
41913 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41914 {
41915 PyThreadState* __tstate = wxPyBeginAllowThreads();
41916 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41917 wxPyEndAllowThreads(__tstate);
41918 if (PyErr_Occurred()) SWIG_fail;
41919 }
41920 {
41921#if wxUSE_UNICODE
41922 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41923#else
41924 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41925#endif
41926 }
41927 return resultobj;
41928fail:
41929 return NULL;
41930}
41931
41932
41933SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41934 PyObject *resultobj = 0;
41935 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41936 wxString *arg2 = 0 ;
41937 void *argp1 = 0 ;
41938 int res1 = 0 ;
41939 bool temp2 = false ;
41940 PyObject * obj0 = 0 ;
41941 PyObject * obj1 = 0 ;
41942 char * kwnames[] = {
41943 (char *) "self",(char *) "url", NULL
41944 };
41945
41946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41948 if (!SWIG_IsOK(res1)) {
41949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41950 }
41951 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41952 {
41953 arg2 = wxString_in_helper(obj1);
41954 if (arg2 == NULL) SWIG_fail;
41955 temp2 = true;
41956 }
41957 {
41958 PyThreadState* __tstate = wxPyBeginAllowThreads();
41959 (arg1)->SetURL((wxString const &)*arg2);
41960 wxPyEndAllowThreads(__tstate);
41961 if (PyErr_Occurred()) SWIG_fail;
41962 }
41963 resultobj = SWIG_Py_Void();
41964 {
41965 if (temp2)
41966 delete arg2;
41967 }
41968 return resultobj;
41969fail:
41970 {
41971 if (temp2)
41972 delete arg2;
41973 }
41974 return NULL;
41975}
41976
41977
41978SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41979 PyObject *resultobj = 0;
41980 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41981 bool arg2 = (bool) true ;
41982 void *argp1 = 0 ;
41983 int res1 = 0 ;
41984 bool val2 ;
41985 int ecode2 = 0 ;
41986 PyObject * obj0 = 0 ;
41987 PyObject * obj1 = 0 ;
41988 char * kwnames[] = {
41989 (char *) "self",(char *) "visited", NULL
41990 };
41991
41992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41994 if (!SWIG_IsOK(res1)) {
41995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41996 }
41997 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41998 if (obj1) {
41999 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42000 if (!SWIG_IsOK(ecode2)) {
42001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42002 }
42003 arg2 = static_cast< bool >(val2);
42004 }
42005 {
42006 PyThreadState* __tstate = wxPyBeginAllowThreads();
42007 (arg1)->SetVisited(arg2);
42008 wxPyEndAllowThreads(__tstate);
42009 if (PyErr_Occurred()) SWIG_fail;
42010 }
42011 resultobj = SWIG_Py_Void();
42012 return resultobj;
42013fail:
42014 return NULL;
42015}
42016
42017
42018SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42019 PyObject *resultobj = 0;
42020 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42021 bool result;
42022 void *argp1 = 0 ;
42023 int res1 = 0 ;
42024 PyObject *swig_obj[1] ;
42025
42026 if (!args) SWIG_fail;
42027 swig_obj[0] = args;
42028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42029 if (!SWIG_IsOK(res1)) {
42030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42031 }
42032 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42033 {
42034 PyThreadState* __tstate = wxPyBeginAllowThreads();
42035 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42036 wxPyEndAllowThreads(__tstate);
42037 if (PyErr_Occurred()) SWIG_fail;
42038 }
42039 {
42040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42041 }
42042 return resultobj;
42043fail:
42044 return NULL;
42045}
42046
42047
42048SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42049 PyObject *obj;
42050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42051 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42052 return SWIG_Py_Void();
42053}
42054
42055SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42056 return SWIG_Python_InitShadowInstance(args);
42057}
42058
42059SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42060 PyObject *resultobj = 0;
42061 wxObject *arg1 = (wxObject *) 0 ;
42062 int arg2 ;
42063 wxString *arg3 = 0 ;
42064 wxHyperlinkEvent *result = 0 ;
42065 void *argp1 = 0 ;
42066 int res1 = 0 ;
42067 int val2 ;
42068 int ecode2 = 0 ;
42069 bool temp3 = false ;
42070 PyObject * obj0 = 0 ;
42071 PyObject * obj1 = 0 ;
42072 PyObject * obj2 = 0 ;
42073 char * kwnames[] = {
42074 (char *) "generator",(char *) "id",(char *) "url", NULL
42075 };
42076
42077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42079 if (!SWIG_IsOK(res1)) {
42080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42081 }
42082 arg1 = reinterpret_cast< wxObject * >(argp1);
42083 ecode2 = SWIG_AsVal_int(obj1, &val2);
42084 if (!SWIG_IsOK(ecode2)) {
42085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42086 }
42087 arg2 = static_cast< int >(val2);
42088 {
42089 arg3 = wxString_in_helper(obj2);
42090 if (arg3 == NULL) SWIG_fail;
42091 temp3 = true;
42092 }
42093 {
42094 PyThreadState* __tstate = wxPyBeginAllowThreads();
42095 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42096 wxPyEndAllowThreads(__tstate);
42097 if (PyErr_Occurred()) SWIG_fail;
42098 }
42099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42100 {
42101 if (temp3)
42102 delete arg3;
42103 }
42104 return resultobj;
42105fail:
42106 {
42107 if (temp3)
42108 delete arg3;
42109 }
42110 return NULL;
42111}
42112
42113
42114SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42115 PyObject *resultobj = 0;
42116 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42117 wxString result;
42118 void *argp1 = 0 ;
42119 int res1 = 0 ;
42120 PyObject *swig_obj[1] ;
42121
42122 if (!args) SWIG_fail;
42123 swig_obj[0] = args;
42124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42125 if (!SWIG_IsOK(res1)) {
42126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42127 }
42128 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42129 {
42130 PyThreadState* __tstate = wxPyBeginAllowThreads();
42131 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42132 wxPyEndAllowThreads(__tstate);
42133 if (PyErr_Occurred()) SWIG_fail;
42134 }
42135 {
42136#if wxUSE_UNICODE
42137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42138#else
42139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42140#endif
42141 }
42142 return resultobj;
42143fail:
42144 return NULL;
42145}
42146
42147
42148SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42149 PyObject *resultobj = 0;
42150 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42151 wxString *arg2 = 0 ;
42152 void *argp1 = 0 ;
42153 int res1 = 0 ;
42154 bool temp2 = false ;
42155 PyObject * obj0 = 0 ;
42156 PyObject * obj1 = 0 ;
42157 char * kwnames[] = {
42158 (char *) "self",(char *) "url", NULL
42159 };
42160
42161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42163 if (!SWIG_IsOK(res1)) {
42164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42165 }
42166 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42167 {
42168 arg2 = wxString_in_helper(obj1);
42169 if (arg2 == NULL) SWIG_fail;
42170 temp2 = true;
42171 }
42172 {
42173 PyThreadState* __tstate = wxPyBeginAllowThreads();
42174 (arg1)->SetURL((wxString const &)*arg2);
42175 wxPyEndAllowThreads(__tstate);
42176 if (PyErr_Occurred()) SWIG_fail;
42177 }
42178 resultobj = SWIG_Py_Void();
42179 {
42180 if (temp2)
42181 delete arg2;
42182 }
42183 return resultobj;
42184fail:
42185 {
42186 if (temp2)
42187 delete arg2;
42188 }
42189 return NULL;
42190}
42191
42192
42193SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42194 PyObject *obj;
42195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42196 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42197 return SWIG_Py_Void();
42198}
42199
42200SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42201 return SWIG_Python_InitShadowInstance(args);
42202}
42203
b850e7f3
RD
42204SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42205 PyObject *resultobj = 0;
42206 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42207 wxWindow *arg2 = (wxWindow *) 0 ;
42208 int arg3 ;
42209 wxString const &arg4_defvalue = wxEmptyString ;
42210 wxString *arg4 = (wxString *) &arg4_defvalue ;
42211 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42212 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42213 wxSize const &arg6_defvalue = wxDefaultSize ;
42214 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42215 long arg7 = (long) 0 ;
42216 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42217 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42218 wxString const &arg9_defvalue = wxButtonNameStr ;
42219 wxString *arg9 = (wxString *) &arg9_defvalue ;
42220 bool result;
42221 void *argp1 = 0 ;
42222 int res1 = 0 ;
42223 void *argp2 = 0 ;
42224 int res2 = 0 ;
42225 int val3 ;
42226 int ecode3 = 0 ;
42227 bool temp4 = false ;
42228 wxPoint temp5 ;
42229 wxSize temp6 ;
42230 long val7 ;
42231 int ecode7 = 0 ;
42232 void *argp8 = 0 ;
42233 int res8 = 0 ;
42234 bool temp9 = false ;
42235 PyObject * obj0 = 0 ;
42236 PyObject * obj1 = 0 ;
42237 PyObject * obj2 = 0 ;
42238 PyObject * obj3 = 0 ;
42239 PyObject * obj4 = 0 ;
42240 PyObject * obj5 = 0 ;
42241 PyObject * obj6 = 0 ;
42242 PyObject * obj7 = 0 ;
42243 PyObject * obj8 = 0 ;
42244 char * kwnames[] = {
42245 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42246 };
42247
42248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42250 if (!SWIG_IsOK(res1)) {
42251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42252 }
42253 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42255 if (!SWIG_IsOK(res2)) {
42256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42257 }
42258 arg2 = reinterpret_cast< wxWindow * >(argp2);
42259 ecode3 = SWIG_AsVal_int(obj2, &val3);
42260 if (!SWIG_IsOK(ecode3)) {
42261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42262 }
42263 arg3 = static_cast< int >(val3);
42264 if (obj3) {
42265 {
42266 arg4 = wxString_in_helper(obj3);
42267 if (arg4 == NULL) SWIG_fail;
42268 temp4 = true;
42269 }
42270 }
42271 if (obj4) {
42272 {
42273 arg5 = &temp5;
42274 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42275 }
42276 }
42277 if (obj5) {
42278 {
42279 arg6 = &temp6;
42280 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42281 }
42282 }
42283 if (obj6) {
42284 ecode7 = SWIG_AsVal_long(obj6, &val7);
42285 if (!SWIG_IsOK(ecode7)) {
42286 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42287 }
42288 arg7 = static_cast< long >(val7);
42289 }
42290 if (obj7) {
42291 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42292 if (!SWIG_IsOK(res8)) {
42293 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42294 }
42295 if (!argp8) {
42296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42297 }
42298 arg8 = reinterpret_cast< wxValidator * >(argp8);
42299 }
42300 if (obj8) {
42301 {
42302 arg9 = wxString_in_helper(obj8);
42303 if (arg9 == NULL) SWIG_fail;
42304 temp9 = true;
42305 }
42306 }
42307 {
42308 PyThreadState* __tstate = wxPyBeginAllowThreads();
42309 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42310 wxPyEndAllowThreads(__tstate);
42311 if (PyErr_Occurred()) SWIG_fail;
42312 }
42313 {
42314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42315 }
42316 {
42317 if (temp4)
42318 delete arg4;
42319 }
42320 {
42321 if (temp9)
42322 delete arg9;
42323 }
42324 return resultobj;
42325fail:
42326 {
42327 if (temp4)
42328 delete arg4;
42329 }
42330 {
42331 if (temp9)
42332 delete arg9;
42333 }
42334 return NULL;
42335}
42336
42337
42338SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42339 PyObject *resultobj = 0;
42340 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42341 int arg2 ;
42342 void *argp1 = 0 ;
42343 int res1 = 0 ;
42344 int val2 ;
42345 int ecode2 = 0 ;
42346 PyObject * obj0 = 0 ;
42347 PyObject * obj1 = 0 ;
42348 char * kwnames[] = {
42349 (char *) "self",(char *) "newmargin", NULL
42350 };
42351
42352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42354 if (!SWIG_IsOK(res1)) {
42355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42356 }
42357 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42358 ecode2 = SWIG_AsVal_int(obj1, &val2);
42359 if (!SWIG_IsOK(ecode2)) {
42360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42361 }
42362 arg2 = static_cast< int >(val2);
42363 {
42364 PyThreadState* __tstate = wxPyBeginAllowThreads();
42365 (arg1)->SetInternalMargin(arg2);
42366 wxPyEndAllowThreads(__tstate);
42367 if (PyErr_Occurred()) SWIG_fail;
42368 }
42369 resultobj = SWIG_Py_Void();
42370 return resultobj;
42371fail:
42372 return NULL;
42373}
42374
42375
42376SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42377 PyObject *resultobj = 0;
42378 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42379 int result;
42380 void *argp1 = 0 ;
42381 int res1 = 0 ;
42382 PyObject *swig_obj[1] ;
42383
42384 if (!args) SWIG_fail;
42385 swig_obj[0] = args;
42386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42387 if (!SWIG_IsOK(res1)) {
42388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42389 }
42390 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42391 {
42392 PyThreadState* __tstate = wxPyBeginAllowThreads();
42393 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42394 wxPyEndAllowThreads(__tstate);
42395 if (PyErr_Occurred()) SWIG_fail;
42396 }
42397 resultobj = SWIG_From_int(static_cast< int >(result));
42398 return resultobj;
42399fail:
42400 return NULL;
42401}
42402
42403
42404SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42405 PyObject *resultobj = 0;
42406 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42407 int arg2 ;
42408 void *argp1 = 0 ;
42409 int res1 = 0 ;
42410 int val2 ;
42411 int ecode2 = 0 ;
42412 PyObject * obj0 = 0 ;
42413 PyObject * obj1 = 0 ;
42414 char * kwnames[] = {
42415 (char *) "self",(char *) "prop", NULL
42416 };
42417
42418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42420 if (!SWIG_IsOK(res1)) {
42421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42422 }
42423 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42424 ecode2 = SWIG_AsVal_int(obj1, &val2);
42425 if (!SWIG_IsOK(ecode2)) {
42426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42427 }
42428 arg2 = static_cast< int >(val2);
42429 {
42430 PyThreadState* __tstate = wxPyBeginAllowThreads();
42431 (arg1)->SetTextCtrlProportion(arg2);
42432 wxPyEndAllowThreads(__tstate);
42433 if (PyErr_Occurred()) SWIG_fail;
42434 }
42435 resultobj = SWIG_Py_Void();
42436 return resultobj;
42437fail:
42438 return NULL;
42439}
42440
42441
42442SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42443 PyObject *resultobj = 0;
42444 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42445 int result;
42446 void *argp1 = 0 ;
42447 int res1 = 0 ;
42448 PyObject *swig_obj[1] ;
42449
42450 if (!args) SWIG_fail;
42451 swig_obj[0] = args;
42452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42453 if (!SWIG_IsOK(res1)) {
42454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42455 }
42456 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42457 {
42458 PyThreadState* __tstate = wxPyBeginAllowThreads();
42459 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42460 wxPyEndAllowThreads(__tstate);
42461 if (PyErr_Occurred()) SWIG_fail;
42462 }
42463 resultobj = SWIG_From_int(static_cast< int >(result));
42464 return resultobj;
42465fail:
42466 return NULL;
42467}
42468
42469
1eeb270e
RD
42470SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42471 PyObject *resultobj = 0;
42472 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42473 int arg2 ;
42474 void *argp1 = 0 ;
42475 int res1 = 0 ;
42476 int val2 ;
42477 int ecode2 = 0 ;
42478 PyObject * obj0 = 0 ;
42479 PyObject * obj1 = 0 ;
42480 char * kwnames[] = {
42481 (char *) "self",(char *) "prop", NULL
42482 };
42483
42484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42486 if (!SWIG_IsOK(res1)) {
42487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42488 }
42489 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42490 ecode2 = SWIG_AsVal_int(obj1, &val2);
42491 if (!SWIG_IsOK(ecode2)) {
42492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42493 }
42494 arg2 = static_cast< int >(val2);
42495 {
42496 PyThreadState* __tstate = wxPyBeginAllowThreads();
42497 (arg1)->SetPickerCtrlProportion(arg2);
42498 wxPyEndAllowThreads(__tstate);
42499 if (PyErr_Occurred()) SWIG_fail;
42500 }
42501 resultobj = SWIG_Py_Void();
42502 return resultobj;
42503fail:
42504 return NULL;
42505}
42506
42507
42508SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42509 PyObject *resultobj = 0;
42510 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42511 int result;
42512 void *argp1 = 0 ;
42513 int res1 = 0 ;
42514 PyObject *swig_obj[1] ;
42515
42516 if (!args) SWIG_fail;
42517 swig_obj[0] = args;
42518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42519 if (!SWIG_IsOK(res1)) {
42520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42521 }
42522 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42523 {
42524 PyThreadState* __tstate = wxPyBeginAllowThreads();
42525 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42526 wxPyEndAllowThreads(__tstate);
42527 if (PyErr_Occurred()) SWIG_fail;
42528 }
42529 resultobj = SWIG_From_int(static_cast< int >(result));
42530 return resultobj;
42531fail:
42532 return NULL;
42533}
42534
42535
b02396e8
RD
42536SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42537 PyObject *resultobj = 0;
42538 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42539 bool result;
42540 void *argp1 = 0 ;
42541 int res1 = 0 ;
42542 PyObject *swig_obj[1] ;
42543
42544 if (!args) SWIG_fail;
42545 swig_obj[0] = args;
42546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42547 if (!SWIG_IsOK(res1)) {
42548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42549 }
42550 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42551 {
42552 PyThreadState* __tstate = wxPyBeginAllowThreads();
42553 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42554 wxPyEndAllowThreads(__tstate);
42555 if (PyErr_Occurred()) SWIG_fail;
42556 }
42557 {
42558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42559 }
42560 return resultobj;
42561fail:
42562 return NULL;
42563}
42564
42565
42566SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42567 PyObject *resultobj = 0;
42568 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42569 bool arg2 = (bool) true ;
42570 void *argp1 = 0 ;
42571 int res1 = 0 ;
42572 bool val2 ;
42573 int ecode2 = 0 ;
42574 PyObject * obj0 = 0 ;
42575 PyObject * obj1 = 0 ;
42576 char * kwnames[] = {
42577 (char *) "self",(char *) "grow", NULL
42578 };
42579
42580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42582 if (!SWIG_IsOK(res1)) {
42583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42584 }
42585 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42586 if (obj1) {
42587 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42588 if (!SWIG_IsOK(ecode2)) {
42589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42590 }
42591 arg2 = static_cast< bool >(val2);
42592 }
42593 {
42594 PyThreadState* __tstate = wxPyBeginAllowThreads();
42595 (arg1)->SetTextCtrlGrowable(arg2);
42596 wxPyEndAllowThreads(__tstate);
42597 if (PyErr_Occurred()) SWIG_fail;
42598 }
42599 resultobj = SWIG_Py_Void();
42600 return resultobj;
42601fail:
42602 return NULL;
42603}
42604
42605
42606SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42607 PyObject *resultobj = 0;
42608 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42609 bool result;
42610 void *argp1 = 0 ;
42611 int res1 = 0 ;
42612 PyObject *swig_obj[1] ;
42613
42614 if (!args) SWIG_fail;
42615 swig_obj[0] = args;
42616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42617 if (!SWIG_IsOK(res1)) {
42618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42619 }
42620 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42621 {
42622 PyThreadState* __tstate = wxPyBeginAllowThreads();
42623 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42624 wxPyEndAllowThreads(__tstate);
42625 if (PyErr_Occurred()) SWIG_fail;
42626 }
42627 {
42628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42629 }
42630 return resultobj;
42631fail:
42632 return NULL;
42633}
42634
42635
42636SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42637 PyObject *resultobj = 0;
42638 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42639 bool arg2 = (bool) true ;
42640 void *argp1 = 0 ;
42641 int res1 = 0 ;
42642 bool val2 ;
42643 int ecode2 = 0 ;
42644 PyObject * obj0 = 0 ;
42645 PyObject * obj1 = 0 ;
42646 char * kwnames[] = {
42647 (char *) "self",(char *) "grow", NULL
42648 };
42649
42650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42652 if (!SWIG_IsOK(res1)) {
42653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42654 }
42655 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42656 if (obj1) {
42657 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42658 if (!SWIG_IsOK(ecode2)) {
42659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42660 }
42661 arg2 = static_cast< bool >(val2);
42662 }
42663 {
42664 PyThreadState* __tstate = wxPyBeginAllowThreads();
42665 (arg1)->SetPickerCtrlGrowable(arg2);
42666 wxPyEndAllowThreads(__tstate);
42667 if (PyErr_Occurred()) SWIG_fail;
42668 }
42669 resultobj = SWIG_Py_Void();
42670 return resultobj;
42671fail:
42672 return NULL;
42673}
42674
42675
b850e7f3
RD
42676SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42677 PyObject *resultobj = 0;
42678 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42679 bool result;
42680 void *argp1 = 0 ;
42681 int res1 = 0 ;
42682 PyObject *swig_obj[1] ;
42683
42684 if (!args) SWIG_fail;
42685 swig_obj[0] = args;
42686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42687 if (!SWIG_IsOK(res1)) {
42688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42689 }
42690 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42691 {
42692 PyThreadState* __tstate = wxPyBeginAllowThreads();
42693 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42694 wxPyEndAllowThreads(__tstate);
42695 if (PyErr_Occurred()) SWIG_fail;
42696 }
42697 {
42698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42699 }
42700 return resultobj;
42701fail:
42702 return NULL;
42703}
42704
42705
42706SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42707 PyObject *resultobj = 0;
42708 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42709 wxTextCtrl *result = 0 ;
42710 void *argp1 = 0 ;
42711 int res1 = 0 ;
42712 PyObject *swig_obj[1] ;
42713
42714 if (!args) SWIG_fail;
42715 swig_obj[0] = args;
42716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42717 if (!SWIG_IsOK(res1)) {
42718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42719 }
42720 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42721 {
42722 PyThreadState* __tstate = wxPyBeginAllowThreads();
42723 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42724 wxPyEndAllowThreads(__tstate);
42725 if (PyErr_Occurred()) SWIG_fail;
42726 }
42727 {
42728 resultobj = wxPyMake_wxObject(result, 0);
42729 }
42730 return resultobj;
42731fail:
42732 return NULL;
42733}
42734
42735
42736SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42737 PyObject *resultobj = 0;
42738 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42739 wxControl *result = 0 ;
42740 void *argp1 = 0 ;
42741 int res1 = 0 ;
42742 PyObject *swig_obj[1] ;
42743
42744 if (!args) SWIG_fail;
42745 swig_obj[0] = args;
42746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42747 if (!SWIG_IsOK(res1)) {
42748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42749 }
42750 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42751 {
42752 PyThreadState* __tstate = wxPyBeginAllowThreads();
42753 result = (wxControl *)(arg1)->GetPickerCtrl();
42754 wxPyEndAllowThreads(__tstate);
42755 if (PyErr_Occurred()) SWIG_fail;
42756 }
42757 {
42758 resultobj = wxPyMake_wxObject(result, 0);
42759 }
42760 return resultobj;
42761fail:
42762 return NULL;
42763}
42764
42765
42766SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42767 PyObject *obj;
42768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42769 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42770 return SWIG_Py_Void();
42771}
42772
42773SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42774 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42775 return 1;
42776}
42777
42778
42779SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42780 PyObject *pyobj = 0;
42781
42782 {
42783#if wxUSE_UNICODE
42784 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42785#else
42786 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42787#endif
42788 }
42789 return pyobj;
42790}
42791
42792
42793SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42794 PyObject *resultobj = 0;
42795 wxWindow *arg1 = (wxWindow *) 0 ;
42796 int arg2 = (int) -1 ;
42797 wxColour const &arg3_defvalue = *wxBLACK ;
42798 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42799 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42800 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42801 wxSize const &arg5_defvalue = wxDefaultSize ;
42802 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42803 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42804 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42805 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42806 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42807 wxString *arg8 = (wxString *) &arg8_defvalue ;
42808 wxColourPickerCtrl *result = 0 ;
42809 void *argp1 = 0 ;
42810 int res1 = 0 ;
42811 int val2 ;
42812 int ecode2 = 0 ;
42813 wxColour temp3 ;
42814 wxPoint temp4 ;
42815 wxSize temp5 ;
42816 long val6 ;
42817 int ecode6 = 0 ;
42818 void *argp7 = 0 ;
42819 int res7 = 0 ;
42820 bool temp8 = false ;
42821 PyObject * obj0 = 0 ;
42822 PyObject * obj1 = 0 ;
42823 PyObject * obj2 = 0 ;
42824 PyObject * obj3 = 0 ;
42825 PyObject * obj4 = 0 ;
42826 PyObject * obj5 = 0 ;
42827 PyObject * obj6 = 0 ;
42828 PyObject * obj7 = 0 ;
42829 char * kwnames[] = {
42830 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42831 };
42832
42833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42835 if (!SWIG_IsOK(res1)) {
42836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42837 }
42838 arg1 = reinterpret_cast< wxWindow * >(argp1);
42839 if (obj1) {
42840 ecode2 = SWIG_AsVal_int(obj1, &val2);
42841 if (!SWIG_IsOK(ecode2)) {
42842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42843 }
42844 arg2 = static_cast< int >(val2);
42845 }
42846 if (obj2) {
42847 {
42848 arg3 = &temp3;
42849 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42850 }
42851 }
42852 if (obj3) {
42853 {
42854 arg4 = &temp4;
42855 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42856 }
42857 }
42858 if (obj4) {
42859 {
42860 arg5 = &temp5;
42861 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42862 }
42863 }
42864 if (obj5) {
42865 ecode6 = SWIG_AsVal_long(obj5, &val6);
42866 if (!SWIG_IsOK(ecode6)) {
42867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42868 }
42869 arg6 = static_cast< long >(val6);
42870 }
42871 if (obj6) {
42872 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42873 if (!SWIG_IsOK(res7)) {
42874 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42875 }
42876 if (!argp7) {
42877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42878 }
42879 arg7 = reinterpret_cast< wxValidator * >(argp7);
42880 }
42881 if (obj7) {
42882 {
42883 arg8 = wxString_in_helper(obj7);
42884 if (arg8 == NULL) SWIG_fail;
42885 temp8 = true;
42886 }
42887 }
42888 {
42889 if (!wxPyCheckForApp()) SWIG_fail;
42890 PyThreadState* __tstate = wxPyBeginAllowThreads();
42891 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42892 wxPyEndAllowThreads(__tstate);
42893 if (PyErr_Occurred()) SWIG_fail;
42894 }
42895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42896 {
42897 if (temp8)
42898 delete arg8;
42899 }
42900 return resultobj;
42901fail:
42902 {
42903 if (temp8)
42904 delete arg8;
42905 }
42906 return NULL;
42907}
42908
42909
42910SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42911 PyObject *resultobj = 0;
42912 wxColourPickerCtrl *result = 0 ;
42913
42914 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42915 {
42916 if (!wxPyCheckForApp()) SWIG_fail;
42917 PyThreadState* __tstate = wxPyBeginAllowThreads();
42918 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42919 wxPyEndAllowThreads(__tstate);
42920 if (PyErr_Occurred()) SWIG_fail;
42921 }
42922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42923 return resultobj;
42924fail:
42925 return NULL;
42926}
42927
42928
42929SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42930 PyObject *resultobj = 0;
42931 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42932 wxWindow *arg2 = (wxWindow *) 0 ;
42933 int arg3 ;
42934 wxColour const &arg4_defvalue = *wxBLACK ;
42935 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42936 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42937 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42938 wxSize const &arg6_defvalue = wxDefaultSize ;
42939 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42940 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42941 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42942 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42943 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42944 wxString *arg9 = (wxString *) &arg9_defvalue ;
42945 bool result;
42946 void *argp1 = 0 ;
42947 int res1 = 0 ;
42948 void *argp2 = 0 ;
42949 int res2 = 0 ;
42950 int val3 ;
42951 int ecode3 = 0 ;
42952 wxColour temp4 ;
42953 wxPoint temp5 ;
42954 wxSize temp6 ;
42955 long val7 ;
42956 int ecode7 = 0 ;
42957 void *argp8 = 0 ;
42958 int res8 = 0 ;
42959 bool temp9 = false ;
42960 PyObject * obj0 = 0 ;
42961 PyObject * obj1 = 0 ;
42962 PyObject * obj2 = 0 ;
42963 PyObject * obj3 = 0 ;
42964 PyObject * obj4 = 0 ;
42965 PyObject * obj5 = 0 ;
42966 PyObject * obj6 = 0 ;
42967 PyObject * obj7 = 0 ;
42968 PyObject * obj8 = 0 ;
42969 char * kwnames[] = {
42970 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42971 };
42972
42973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42975 if (!SWIG_IsOK(res1)) {
42976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
42977 }
42978 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42979 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42980 if (!SWIG_IsOK(res2)) {
42981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42982 }
42983 arg2 = reinterpret_cast< wxWindow * >(argp2);
42984 ecode3 = SWIG_AsVal_int(obj2, &val3);
42985 if (!SWIG_IsOK(ecode3)) {
42986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42987 }
42988 arg3 = static_cast< int >(val3);
42989 if (obj3) {
42990 {
42991 arg4 = &temp4;
42992 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
42993 }
42994 }
42995 if (obj4) {
42996 {
42997 arg5 = &temp5;
42998 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42999 }
43000 }
43001 if (obj5) {
43002 {
43003 arg6 = &temp6;
43004 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43005 }
43006 }
43007 if (obj6) {
43008 ecode7 = SWIG_AsVal_long(obj6, &val7);
43009 if (!SWIG_IsOK(ecode7)) {
43010 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43011 }
43012 arg7 = static_cast< long >(val7);
43013 }
43014 if (obj7) {
43015 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43016 if (!SWIG_IsOK(res8)) {
43017 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43018 }
43019 if (!argp8) {
43020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43021 }
43022 arg8 = reinterpret_cast< wxValidator * >(argp8);
43023 }
43024 if (obj8) {
43025 {
43026 arg9 = wxString_in_helper(obj8);
43027 if (arg9 == NULL) SWIG_fail;
43028 temp9 = true;
43029 }
43030 }
43031 {
43032 PyThreadState* __tstate = wxPyBeginAllowThreads();
43033 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43034 wxPyEndAllowThreads(__tstate);
43035 if (PyErr_Occurred()) SWIG_fail;
43036 }
43037 {
43038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43039 }
43040 {
43041 if (temp9)
43042 delete arg9;
43043 }
43044 return resultobj;
43045fail:
43046 {
43047 if (temp9)
43048 delete arg9;
43049 }
43050 return NULL;
43051}
43052
43053
43054SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43055 PyObject *resultobj = 0;
43056 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43057 wxColour result;
43058 void *argp1 = 0 ;
43059 int res1 = 0 ;
43060 PyObject *swig_obj[1] ;
43061
43062 if (!args) SWIG_fail;
43063 swig_obj[0] = args;
43064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43065 if (!SWIG_IsOK(res1)) {
43066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43067 }
43068 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43069 {
43070 PyThreadState* __tstate = wxPyBeginAllowThreads();
43071 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43072 wxPyEndAllowThreads(__tstate);
43073 if (PyErr_Occurred()) SWIG_fail;
43074 }
43075 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43076 return resultobj;
43077fail:
43078 return NULL;
43079}
43080
43081
43082SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43083 PyObject *resultobj = 0;
43084 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43085 wxColour *arg2 = 0 ;
43086 void *argp1 = 0 ;
43087 int res1 = 0 ;
43088 wxColour temp2 ;
43089 PyObject * obj0 = 0 ;
43090 PyObject * obj1 = 0 ;
43091 char * kwnames[] = {
43092 (char *) "self",(char *) "col", NULL
43093 };
43094
43095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43097 if (!SWIG_IsOK(res1)) {
43098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43099 }
43100 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43101 {
43102 arg2 = &temp2;
43103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43104 }
43105 {
43106 PyThreadState* __tstate = wxPyBeginAllowThreads();
43107 (arg1)->SetColour((wxColour const &)*arg2);
43108 wxPyEndAllowThreads(__tstate);
43109 if (PyErr_Occurred()) SWIG_fail;
43110 }
43111 resultobj = SWIG_Py_Void();
43112 return resultobj;
43113fail:
43114 return NULL;
43115}
43116
43117
43118SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43119 PyObject *obj;
43120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43121 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43122 return SWIG_Py_Void();
43123}
43124
43125SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43126 return SWIG_Python_InitShadowInstance(args);
43127}
43128
43129SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43130 PyObject *resultobj = 0;
43131 wxObject *arg1 = (wxObject *) 0 ;
43132 int arg2 ;
43133 wxColour *arg3 = 0 ;
43134 wxColourPickerEvent *result = 0 ;
43135 void *argp1 = 0 ;
43136 int res1 = 0 ;
43137 int val2 ;
43138 int ecode2 = 0 ;
43139 wxColour temp3 ;
43140 PyObject * obj0 = 0 ;
43141 PyObject * obj1 = 0 ;
43142 PyObject * obj2 = 0 ;
43143 char * kwnames[] = {
43144 (char *) "generator",(char *) "id",(char *) "col", NULL
43145 };
43146
43147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43149 if (!SWIG_IsOK(res1)) {
43150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43151 }
43152 arg1 = reinterpret_cast< wxObject * >(argp1);
43153 ecode2 = SWIG_AsVal_int(obj1, &val2);
43154 if (!SWIG_IsOK(ecode2)) {
43155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43156 }
43157 arg2 = static_cast< int >(val2);
43158 {
43159 arg3 = &temp3;
43160 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43161 }
43162 {
43163 PyThreadState* __tstate = wxPyBeginAllowThreads();
43164 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43165 wxPyEndAllowThreads(__tstate);
43166 if (PyErr_Occurred()) SWIG_fail;
43167 }
43168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43169 return resultobj;
43170fail:
43171 return NULL;
43172}
43173
43174
43175SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43176 PyObject *resultobj = 0;
43177 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43178 wxColour result;
43179 void *argp1 = 0 ;
43180 int res1 = 0 ;
43181 PyObject *swig_obj[1] ;
43182
43183 if (!args) SWIG_fail;
43184 swig_obj[0] = args;
43185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43186 if (!SWIG_IsOK(res1)) {
43187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43188 }
43189 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43190 {
43191 PyThreadState* __tstate = wxPyBeginAllowThreads();
43192 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43193 wxPyEndAllowThreads(__tstate);
43194 if (PyErr_Occurred()) SWIG_fail;
43195 }
43196 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43197 return resultobj;
43198fail:
43199 return NULL;
43200}
43201
43202
43203SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43204 PyObject *resultobj = 0;
43205 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43206 wxColour *arg2 = 0 ;
43207 void *argp1 = 0 ;
43208 int res1 = 0 ;
43209 wxColour temp2 ;
43210 PyObject * obj0 = 0 ;
43211 PyObject * obj1 = 0 ;
43212 char * kwnames[] = {
43213 (char *) "self",(char *) "c", NULL
43214 };
43215
43216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43218 if (!SWIG_IsOK(res1)) {
43219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43220 }
43221 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43222 {
43223 arg2 = &temp2;
43224 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43225 }
43226 {
43227 PyThreadState* __tstate = wxPyBeginAllowThreads();
43228 (arg1)->SetColour((wxColour const &)*arg2);
43229 wxPyEndAllowThreads(__tstate);
43230 if (PyErr_Occurred()) SWIG_fail;
43231 }
43232 resultobj = SWIG_Py_Void();
43233 return resultobj;
43234fail:
43235 return NULL;
43236}
43237
43238
43239SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43240 PyObject *obj;
43241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43242 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43243 return SWIG_Py_Void();
43244}
43245
43246SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43247 return SWIG_Python_InitShadowInstance(args);
43248}
43249
43250SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43251 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43252 return 1;
43253}
43254
43255
43256SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43257 PyObject *pyobj = 0;
43258
43259 {
43260#if wxUSE_UNICODE
43261 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43262#else
43263 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43264#endif
43265 }
43266 return pyobj;
43267}
43268
43269
43270SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43271 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43272 return 1;
43273}
43274
43275
43276SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43277 PyObject *pyobj = 0;
43278
43279 {
43280#if wxUSE_UNICODE
43281 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43282#else
43283 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43284#endif
43285 }
43286 return pyobj;
43287}
43288
43289
43290SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43291 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43292 return 1;
43293}
43294
43295
43296SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43297 PyObject *pyobj = 0;
43298
43299 {
43300#if wxUSE_UNICODE
43301 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43302#else
43303 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43304#endif
43305 }
43306 return pyobj;
43307}
43308
43309
43310SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43311 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43312 return 1;
43313}
43314
43315
43316SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43317 PyObject *pyobj = 0;
43318
43319 {
43320#if wxUSE_UNICODE
43321 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43322#else
43323 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43324#endif
43325 }
43326 return pyobj;
43327}
43328
43329
43330SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43331 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43332 return 1;
43333}
43334
43335
43336SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43337 PyObject *pyobj = 0;
43338
43339 {
43340#if wxUSE_UNICODE
43341 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43342#else
43343 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43344#endif
43345 }
43346 return pyobj;
43347}
43348
43349
43350SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43351 PyObject *resultobj = 0;
43352 wxWindow *arg1 = (wxWindow *) 0 ;
43353 int arg2 = (int) -1 ;
43354 wxString const &arg3_defvalue = wxPyEmptyString ;
43355 wxString *arg3 = (wxString *) &arg3_defvalue ;
43356 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43357 wxString *arg4 = (wxString *) &arg4_defvalue ;
43358 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43359 wxString *arg5 = (wxString *) &arg5_defvalue ;
43360 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43361 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43362 wxSize const &arg7_defvalue = wxDefaultSize ;
43363 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43364 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43365 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43366 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43367 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43368 wxString *arg10 = (wxString *) &arg10_defvalue ;
43369 wxFilePickerCtrl *result = 0 ;
43370 void *argp1 = 0 ;
43371 int res1 = 0 ;
43372 int val2 ;
43373 int ecode2 = 0 ;
43374 bool temp3 = false ;
43375 bool temp4 = false ;
43376 bool temp5 = false ;
43377 wxPoint temp6 ;
43378 wxSize temp7 ;
43379 long val8 ;
43380 int ecode8 = 0 ;
43381 void *argp9 = 0 ;
43382 int res9 = 0 ;
43383 bool temp10 = false ;
43384 PyObject * obj0 = 0 ;
43385 PyObject * obj1 = 0 ;
43386 PyObject * obj2 = 0 ;
43387 PyObject * obj3 = 0 ;
43388 PyObject * obj4 = 0 ;
43389 PyObject * obj5 = 0 ;
43390 PyObject * obj6 = 0 ;
43391 PyObject * obj7 = 0 ;
43392 PyObject * obj8 = 0 ;
43393 PyObject * obj9 = 0 ;
43394 char * kwnames[] = {
43395 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43396 };
43397
43398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43400 if (!SWIG_IsOK(res1)) {
43401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43402 }
43403 arg1 = reinterpret_cast< wxWindow * >(argp1);
43404 if (obj1) {
43405 ecode2 = SWIG_AsVal_int(obj1, &val2);
43406 if (!SWIG_IsOK(ecode2)) {
43407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43408 }
43409 arg2 = static_cast< int >(val2);
43410 }
43411 if (obj2) {
43412 {
43413 arg3 = wxString_in_helper(obj2);
43414 if (arg3 == NULL) SWIG_fail;
43415 temp3 = true;
43416 }
43417 }
43418 if (obj3) {
43419 {
43420 arg4 = wxString_in_helper(obj3);
43421 if (arg4 == NULL) SWIG_fail;
43422 temp4 = true;
43423 }
43424 }
43425 if (obj4) {
43426 {
43427 arg5 = wxString_in_helper(obj4);
43428 if (arg5 == NULL) SWIG_fail;
43429 temp5 = true;
43430 }
43431 }
43432 if (obj5) {
43433 {
43434 arg6 = &temp6;
43435 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43436 }
43437 }
43438 if (obj6) {
43439 {
43440 arg7 = &temp7;
43441 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43442 }
43443 }
43444 if (obj7) {
43445 ecode8 = SWIG_AsVal_long(obj7, &val8);
43446 if (!SWIG_IsOK(ecode8)) {
43447 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43448 }
43449 arg8 = static_cast< long >(val8);
43450 }
43451 if (obj8) {
43452 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43453 if (!SWIG_IsOK(res9)) {
43454 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43455 }
43456 if (!argp9) {
43457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43458 }
43459 arg9 = reinterpret_cast< wxValidator * >(argp9);
43460 }
43461 if (obj9) {
43462 {
43463 arg10 = wxString_in_helper(obj9);
43464 if (arg10 == NULL) SWIG_fail;
43465 temp10 = true;
43466 }
43467 }
43468 {
43469 if (!wxPyCheckForApp()) SWIG_fail;
43470 PyThreadState* __tstate = wxPyBeginAllowThreads();
43471 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);
43472 wxPyEndAllowThreads(__tstate);
43473 if (PyErr_Occurred()) SWIG_fail;
43474 }
43475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43476 {
43477 if (temp3)
43478 delete arg3;
43479 }
43480 {
43481 if (temp4)
43482 delete arg4;
43483 }
43484 {
43485 if (temp5)
43486 delete arg5;
43487 }
43488 {
43489 if (temp10)
43490 delete arg10;
43491 }
43492 return resultobj;
43493fail:
43494 {
43495 if (temp3)
43496 delete arg3;
43497 }
43498 {
43499 if (temp4)
43500 delete arg4;
43501 }
43502 {
43503 if (temp5)
43504 delete arg5;
43505 }
43506 {
43507 if (temp10)
43508 delete arg10;
43509 }
43510 return NULL;
43511}
43512
43513
43514SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43515 PyObject *resultobj = 0;
43516 wxFilePickerCtrl *result = 0 ;
43517
43518 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43519 {
43520 if (!wxPyCheckForApp()) SWIG_fail;
43521 PyThreadState* __tstate = wxPyBeginAllowThreads();
43522 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43523 wxPyEndAllowThreads(__tstate);
43524 if (PyErr_Occurred()) SWIG_fail;
43525 }
43526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43527 return resultobj;
43528fail:
43529 return NULL;
43530}
43531
43532
43533SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43534 PyObject *resultobj = 0;
43535 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43536 wxWindow *arg2 = (wxWindow *) 0 ;
43537 int arg3 = (int) -1 ;
43538 wxString const &arg4_defvalue = wxPyEmptyString ;
43539 wxString *arg4 = (wxString *) &arg4_defvalue ;
43540 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43541 wxString *arg5 = (wxString *) &arg5_defvalue ;
43542 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43543 wxString *arg6 = (wxString *) &arg6_defvalue ;
43544 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43545 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43546 wxSize const &arg8_defvalue = wxDefaultSize ;
43547 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43548 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43549 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43550 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43551 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43552 wxString *arg11 = (wxString *) &arg11_defvalue ;
43553 bool result;
43554 void *argp1 = 0 ;
43555 int res1 = 0 ;
43556 void *argp2 = 0 ;
43557 int res2 = 0 ;
43558 int val3 ;
43559 int ecode3 = 0 ;
43560 bool temp4 = false ;
43561 bool temp5 = false ;
43562 bool temp6 = false ;
43563 wxPoint temp7 ;
43564 wxSize temp8 ;
43565 long val9 ;
43566 int ecode9 = 0 ;
43567 void *argp10 = 0 ;
43568 int res10 = 0 ;
43569 bool temp11 = false ;
43570 PyObject * obj0 = 0 ;
43571 PyObject * obj1 = 0 ;
43572 PyObject * obj2 = 0 ;
43573 PyObject * obj3 = 0 ;
43574 PyObject * obj4 = 0 ;
43575 PyObject * obj5 = 0 ;
43576 PyObject * obj6 = 0 ;
43577 PyObject * obj7 = 0 ;
43578 PyObject * obj8 = 0 ;
43579 PyObject * obj9 = 0 ;
43580 PyObject * obj10 = 0 ;
43581 char * kwnames[] = {
43582 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43583 };
43584
43585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43587 if (!SWIG_IsOK(res1)) {
43588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43589 }
43590 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43592 if (!SWIG_IsOK(res2)) {
43593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43594 }
43595 arg2 = reinterpret_cast< wxWindow * >(argp2);
43596 if (obj2) {
43597 ecode3 = SWIG_AsVal_int(obj2, &val3);
43598 if (!SWIG_IsOK(ecode3)) {
43599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43600 }
43601 arg3 = static_cast< int >(val3);
43602 }
43603 if (obj3) {
43604 {
43605 arg4 = wxString_in_helper(obj3);
43606 if (arg4 == NULL) SWIG_fail;
43607 temp4 = true;
43608 }
43609 }
43610 if (obj4) {
43611 {
43612 arg5 = wxString_in_helper(obj4);
43613 if (arg5 == NULL) SWIG_fail;
43614 temp5 = true;
43615 }
43616 }
43617 if (obj5) {
43618 {
43619 arg6 = wxString_in_helper(obj5);
43620 if (arg6 == NULL) SWIG_fail;
43621 temp6 = true;
43622 }
43623 }
43624 if (obj6) {
43625 {
43626 arg7 = &temp7;
43627 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43628 }
43629 }
43630 if (obj7) {
43631 {
43632 arg8 = &temp8;
43633 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43634 }
43635 }
43636 if (obj8) {
43637 ecode9 = SWIG_AsVal_long(obj8, &val9);
43638 if (!SWIG_IsOK(ecode9)) {
43639 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43640 }
43641 arg9 = static_cast< long >(val9);
43642 }
43643 if (obj9) {
43644 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43645 if (!SWIG_IsOK(res10)) {
43646 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43647 }
43648 if (!argp10) {
43649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43650 }
43651 arg10 = reinterpret_cast< wxValidator * >(argp10);
43652 }
43653 if (obj10) {
43654 {
43655 arg11 = wxString_in_helper(obj10);
43656 if (arg11 == NULL) SWIG_fail;
43657 temp11 = true;
43658 }
43659 }
43660 {
43661 PyThreadState* __tstate = wxPyBeginAllowThreads();
43662 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);
43663 wxPyEndAllowThreads(__tstate);
43664 if (PyErr_Occurred()) SWIG_fail;
43665 }
43666 {
43667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43668 }
43669 {
43670 if (temp4)
43671 delete arg4;
43672 }
43673 {
43674 if (temp5)
43675 delete arg5;
43676 }
43677 {
43678 if (temp6)
43679 delete arg6;
43680 }
43681 {
43682 if (temp11)
43683 delete arg11;
43684 }
43685 return resultobj;
43686fail:
43687 {
43688 if (temp4)
43689 delete arg4;
43690 }
43691 {
43692 if (temp5)
43693 delete arg5;
43694 }
43695 {
43696 if (temp6)
43697 delete arg6;
43698 }
43699 {
43700 if (temp11)
43701 delete arg11;
43702 }
43703 return NULL;
43704}
43705
43706
43707SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43708 PyObject *resultobj = 0;
43709 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43710 wxString result;
43711 void *argp1 = 0 ;
43712 int res1 = 0 ;
43713 PyObject *swig_obj[1] ;
43714
43715 if (!args) SWIG_fail;
43716 swig_obj[0] = args;
43717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43718 if (!SWIG_IsOK(res1)) {
43719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43720 }
43721 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43722 {
43723 PyThreadState* __tstate = wxPyBeginAllowThreads();
43724 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43725 wxPyEndAllowThreads(__tstate);
43726 if (PyErr_Occurred()) SWIG_fail;
43727 }
43728 {
43729#if wxUSE_UNICODE
43730 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43731#else
43732 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43733#endif
43734 }
43735 return resultobj;
43736fail:
43737 return NULL;
43738}
43739
43740
43741SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43742 PyObject *resultobj = 0;
43743 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43744 wxString *arg2 = 0 ;
43745 void *argp1 = 0 ;
43746 int res1 = 0 ;
43747 bool temp2 = false ;
43748 PyObject * obj0 = 0 ;
43749 PyObject * obj1 = 0 ;
43750 char * kwnames[] = {
43751 (char *) "self",(char *) "str", NULL
43752 };
43753
43754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43756 if (!SWIG_IsOK(res1)) {
43757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43758 }
43759 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43760 {
43761 arg2 = wxString_in_helper(obj1);
43762 if (arg2 == NULL) SWIG_fail;
43763 temp2 = true;
43764 }
43765 {
43766 PyThreadState* __tstate = wxPyBeginAllowThreads();
43767 (arg1)->SetPath((wxString const &)*arg2);
43768 wxPyEndAllowThreads(__tstate);
43769 if (PyErr_Occurred()) SWIG_fail;
43770 }
43771 resultobj = SWIG_Py_Void();
43772 {
43773 if (temp2)
43774 delete arg2;
43775 }
43776 return resultobj;
43777fail:
43778 {
43779 if (temp2)
43780 delete arg2;
43781 }
43782 return NULL;
43783}
43784
43785
b02396e8
RD
43786SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43787 PyObject *resultobj = 0;
43788 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43789 wxString *arg2 = 0 ;
43790 bool result;
43791 void *argp1 = 0 ;
43792 int res1 = 0 ;
43793 bool temp2 = false ;
43794 PyObject * obj0 = 0 ;
43795 PyObject * obj1 = 0 ;
43796 char * kwnames[] = {
43797 (char *) "self",(char *) "path", NULL
43798 };
43799
43800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43802 if (!SWIG_IsOK(res1)) {
43803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43804 }
43805 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43806 {
43807 arg2 = wxString_in_helper(obj1);
43808 if (arg2 == NULL) SWIG_fail;
43809 temp2 = true;
43810 }
43811 {
43812 PyThreadState* __tstate = wxPyBeginAllowThreads();
43813 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43814 wxPyEndAllowThreads(__tstate);
43815 if (PyErr_Occurred()) SWIG_fail;
43816 }
43817 {
43818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43819 }
43820 {
43821 if (temp2)
43822 delete arg2;
43823 }
43824 return resultobj;
43825fail:
43826 {
43827 if (temp2)
43828 delete arg2;
43829 }
43830 return NULL;
43831}
43832
43833
43834SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43835 PyObject *resultobj = 0;
43836 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43837 wxString result;
43838 void *argp1 = 0 ;
43839 int res1 = 0 ;
43840 PyObject *swig_obj[1] ;
43841
43842 if (!args) SWIG_fail;
43843 swig_obj[0] = args;
43844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43845 if (!SWIG_IsOK(res1)) {
43846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43847 }
43848 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43849 {
43850 PyThreadState* __tstate = wxPyBeginAllowThreads();
43851 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43852 wxPyEndAllowThreads(__tstate);
43853 if (PyErr_Occurred()) SWIG_fail;
43854 }
43855 {
43856#if wxUSE_UNICODE
43857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43858#else
43859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43860#endif
43861 }
43862 return resultobj;
43863fail:
43864 return NULL;
43865}
43866
43867
b850e7f3
RD
43868SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43869 PyObject *obj;
43870 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43871 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43872 return SWIG_Py_Void();
43873}
43874
43875SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43876 return SWIG_Python_InitShadowInstance(args);
43877}
43878
43879SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43880 PyObject *resultobj = 0;
43881 wxWindow *arg1 = (wxWindow *) 0 ;
43882 int arg2 = (int) -1 ;
43883 wxString const &arg3_defvalue = wxPyEmptyString ;
43884 wxString *arg3 = (wxString *) &arg3_defvalue ;
43885 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43886 wxString *arg4 = (wxString *) &arg4_defvalue ;
43887 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43888 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43889 wxSize const &arg6_defvalue = wxDefaultSize ;
43890 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43891 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43892 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43893 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43894 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43895 wxString *arg9 = (wxString *) &arg9_defvalue ;
43896 wxDirPickerCtrl *result = 0 ;
43897 void *argp1 = 0 ;
43898 int res1 = 0 ;
43899 int val2 ;
43900 int ecode2 = 0 ;
43901 bool temp3 = false ;
43902 bool temp4 = false ;
43903 wxPoint temp5 ;
43904 wxSize temp6 ;
43905 long val7 ;
43906 int ecode7 = 0 ;
43907 void *argp8 = 0 ;
43908 int res8 = 0 ;
43909 bool temp9 = false ;
43910 PyObject * obj0 = 0 ;
43911 PyObject * obj1 = 0 ;
43912 PyObject * obj2 = 0 ;
43913 PyObject * obj3 = 0 ;
43914 PyObject * obj4 = 0 ;
43915 PyObject * obj5 = 0 ;
43916 PyObject * obj6 = 0 ;
43917 PyObject * obj7 = 0 ;
43918 PyObject * obj8 = 0 ;
43919 char * kwnames[] = {
43920 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43921 };
43922
43923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43925 if (!SWIG_IsOK(res1)) {
43926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43927 }
43928 arg1 = reinterpret_cast< wxWindow * >(argp1);
43929 if (obj1) {
43930 ecode2 = SWIG_AsVal_int(obj1, &val2);
43931 if (!SWIG_IsOK(ecode2)) {
43932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43933 }
43934 arg2 = static_cast< int >(val2);
43935 }
43936 if (obj2) {
43937 {
43938 arg3 = wxString_in_helper(obj2);
43939 if (arg3 == NULL) SWIG_fail;
43940 temp3 = true;
43941 }
43942 }
43943 if (obj3) {
43944 {
43945 arg4 = wxString_in_helper(obj3);
43946 if (arg4 == NULL) SWIG_fail;
43947 temp4 = true;
43948 }
43949 }
43950 if (obj4) {
43951 {
43952 arg5 = &temp5;
43953 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43954 }
43955 }
43956 if (obj5) {
43957 {
43958 arg6 = &temp6;
43959 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43960 }
43961 }
43962 if (obj6) {
43963 ecode7 = SWIG_AsVal_long(obj6, &val7);
43964 if (!SWIG_IsOK(ecode7)) {
43965 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43966 }
43967 arg7 = static_cast< long >(val7);
43968 }
43969 if (obj7) {
43970 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43971 if (!SWIG_IsOK(res8)) {
43972 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43973 }
43974 if (!argp8) {
43975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43976 }
43977 arg8 = reinterpret_cast< wxValidator * >(argp8);
43978 }
43979 if (obj8) {
43980 {
43981 arg9 = wxString_in_helper(obj8);
43982 if (arg9 == NULL) SWIG_fail;
43983 temp9 = true;
43984 }
43985 }
43986 {
43987 if (!wxPyCheckForApp()) SWIG_fail;
43988 PyThreadState* __tstate = wxPyBeginAllowThreads();
43989 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);
43990 wxPyEndAllowThreads(__tstate);
43991 if (PyErr_Occurred()) SWIG_fail;
43992 }
43993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
43994 {
43995 if (temp3)
43996 delete arg3;
43997 }
43998 {
43999 if (temp4)
44000 delete arg4;
44001 }
44002 {
44003 if (temp9)
44004 delete arg9;
44005 }
44006 return resultobj;
44007fail:
44008 {
44009 if (temp3)
44010 delete arg3;
44011 }
44012 {
44013 if (temp4)
44014 delete arg4;
44015 }
44016 {
44017 if (temp9)
44018 delete arg9;
44019 }
44020 return NULL;
44021}
44022
44023
44024SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44025 PyObject *resultobj = 0;
44026 wxDirPickerCtrl *result = 0 ;
44027
44028 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44029 {
44030 if (!wxPyCheckForApp()) SWIG_fail;
44031 PyThreadState* __tstate = wxPyBeginAllowThreads();
44032 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44033 wxPyEndAllowThreads(__tstate);
44034 if (PyErr_Occurred()) SWIG_fail;
44035 }
44036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44037 return resultobj;
44038fail:
44039 return NULL;
44040}
44041
44042
44043SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44044 PyObject *resultobj = 0;
44045 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44046 wxWindow *arg2 = (wxWindow *) 0 ;
44047 int arg3 = (int) -1 ;
44048 wxString const &arg4_defvalue = wxPyEmptyString ;
44049 wxString *arg4 = (wxString *) &arg4_defvalue ;
44050 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44051 wxString *arg5 = (wxString *) &arg5_defvalue ;
44052 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44053 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44054 wxSize const &arg7_defvalue = wxDefaultSize ;
44055 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44056 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44057 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44058 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44059 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44060 wxString *arg10 = (wxString *) &arg10_defvalue ;
44061 bool result;
44062 void *argp1 = 0 ;
44063 int res1 = 0 ;
44064 void *argp2 = 0 ;
44065 int res2 = 0 ;
44066 int val3 ;
44067 int ecode3 = 0 ;
44068 bool temp4 = false ;
44069 bool temp5 = false ;
44070 wxPoint temp6 ;
44071 wxSize temp7 ;
44072 long val8 ;
44073 int ecode8 = 0 ;
44074 void *argp9 = 0 ;
44075 int res9 = 0 ;
44076 bool temp10 = false ;
44077 PyObject * obj0 = 0 ;
44078 PyObject * obj1 = 0 ;
44079 PyObject * obj2 = 0 ;
44080 PyObject * obj3 = 0 ;
44081 PyObject * obj4 = 0 ;
44082 PyObject * obj5 = 0 ;
44083 PyObject * obj6 = 0 ;
44084 PyObject * obj7 = 0 ;
44085 PyObject * obj8 = 0 ;
44086 PyObject * obj9 = 0 ;
44087 char * kwnames[] = {
44088 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44089 };
44090
44091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44093 if (!SWIG_IsOK(res1)) {
44094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44095 }
44096 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44098 if (!SWIG_IsOK(res2)) {
44099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44100 }
44101 arg2 = reinterpret_cast< wxWindow * >(argp2);
44102 if (obj2) {
44103 ecode3 = SWIG_AsVal_int(obj2, &val3);
44104 if (!SWIG_IsOK(ecode3)) {
44105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44106 }
44107 arg3 = static_cast< int >(val3);
44108 }
44109 if (obj3) {
44110 {
44111 arg4 = wxString_in_helper(obj3);
44112 if (arg4 == NULL) SWIG_fail;
44113 temp4 = true;
44114 }
44115 }
44116 if (obj4) {
44117 {
44118 arg5 = wxString_in_helper(obj4);
44119 if (arg5 == NULL) SWIG_fail;
44120 temp5 = true;
44121 }
44122 }
44123 if (obj5) {
44124 {
44125 arg6 = &temp6;
44126 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44127 }
44128 }
44129 if (obj6) {
44130 {
44131 arg7 = &temp7;
44132 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44133 }
44134 }
44135 if (obj7) {
44136 ecode8 = SWIG_AsVal_long(obj7, &val8);
44137 if (!SWIG_IsOK(ecode8)) {
44138 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44139 }
44140 arg8 = static_cast< long >(val8);
44141 }
44142 if (obj8) {
44143 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44144 if (!SWIG_IsOK(res9)) {
44145 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44146 }
44147 if (!argp9) {
44148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44149 }
44150 arg9 = reinterpret_cast< wxValidator * >(argp9);
44151 }
44152 if (obj9) {
44153 {
44154 arg10 = wxString_in_helper(obj9);
44155 if (arg10 == NULL) SWIG_fail;
44156 temp10 = true;
44157 }
44158 }
44159 {
44160 PyThreadState* __tstate = wxPyBeginAllowThreads();
44161 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);
44162 wxPyEndAllowThreads(__tstate);
44163 if (PyErr_Occurred()) SWIG_fail;
44164 }
44165 {
44166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44167 }
44168 {
44169 if (temp4)
44170 delete arg4;
44171 }
44172 {
44173 if (temp5)
44174 delete arg5;
44175 }
44176 {
44177 if (temp10)
44178 delete arg10;
44179 }
44180 return resultobj;
44181fail:
44182 {
44183 if (temp4)
44184 delete arg4;
44185 }
44186 {
44187 if (temp5)
44188 delete arg5;
44189 }
44190 {
44191 if (temp10)
44192 delete arg10;
44193 }
44194 return NULL;
44195}
44196
44197
44198SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44199 PyObject *resultobj = 0;
44200 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44201 wxString result;
44202 void *argp1 = 0 ;
44203 int res1 = 0 ;
44204 PyObject *swig_obj[1] ;
44205
44206 if (!args) SWIG_fail;
44207 swig_obj[0] = args;
44208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44209 if (!SWIG_IsOK(res1)) {
44210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44211 }
44212 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44213 {
44214 PyThreadState* __tstate = wxPyBeginAllowThreads();
44215 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44216 wxPyEndAllowThreads(__tstate);
44217 if (PyErr_Occurred()) SWIG_fail;
44218 }
44219 {
44220#if wxUSE_UNICODE
44221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44222#else
44223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44224#endif
44225 }
44226 return resultobj;
44227fail:
44228 return NULL;
44229}
44230
44231
44232SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44233 PyObject *resultobj = 0;
44234 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44235 wxString *arg2 = 0 ;
44236 void *argp1 = 0 ;
44237 int res1 = 0 ;
44238 bool temp2 = false ;
44239 PyObject * obj0 = 0 ;
44240 PyObject * obj1 = 0 ;
44241 char * kwnames[] = {
44242 (char *) "self",(char *) "str", NULL
44243 };
44244
44245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44247 if (!SWIG_IsOK(res1)) {
44248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44249 }
44250 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44251 {
44252 arg2 = wxString_in_helper(obj1);
44253 if (arg2 == NULL) SWIG_fail;
44254 temp2 = true;
44255 }
44256 {
44257 PyThreadState* __tstate = wxPyBeginAllowThreads();
44258 (arg1)->SetPath((wxString const &)*arg2);
44259 wxPyEndAllowThreads(__tstate);
44260 if (PyErr_Occurred()) SWIG_fail;
44261 }
44262 resultobj = SWIG_Py_Void();
44263 {
44264 if (temp2)
44265 delete arg2;
44266 }
44267 return resultobj;
44268fail:
44269 {
44270 if (temp2)
44271 delete arg2;
44272 }
44273 return NULL;
44274}
44275
44276
b02396e8
RD
44277SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44278 PyObject *resultobj = 0;
44279 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44280 wxString *arg2 = 0 ;
44281 bool result;
44282 void *argp1 = 0 ;
44283 int res1 = 0 ;
44284 bool temp2 = false ;
44285 PyObject * obj0 = 0 ;
44286 PyObject * obj1 = 0 ;
44287 char * kwnames[] = {
44288 (char *) "self",(char *) "path", NULL
44289 };
44290
44291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44293 if (!SWIG_IsOK(res1)) {
44294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44295 }
44296 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44297 {
44298 arg2 = wxString_in_helper(obj1);
44299 if (arg2 == NULL) SWIG_fail;
44300 temp2 = true;
44301 }
44302 {
44303 PyThreadState* __tstate = wxPyBeginAllowThreads();
44304 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44305 wxPyEndAllowThreads(__tstate);
44306 if (PyErr_Occurred()) SWIG_fail;
44307 }
44308 {
44309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44310 }
44311 {
44312 if (temp2)
44313 delete arg2;
44314 }
44315 return resultobj;
44316fail:
44317 {
44318 if (temp2)
44319 delete arg2;
44320 }
44321 return NULL;
44322}
44323
44324
44325SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44326 PyObject *resultobj = 0;
44327 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44328 wxString result;
44329 void *argp1 = 0 ;
44330 int res1 = 0 ;
44331 PyObject *swig_obj[1] ;
44332
44333 if (!args) SWIG_fail;
44334 swig_obj[0] = args;
44335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44336 if (!SWIG_IsOK(res1)) {
44337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44338 }
44339 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44340 {
44341 PyThreadState* __tstate = wxPyBeginAllowThreads();
44342 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44343 wxPyEndAllowThreads(__tstate);
44344 if (PyErr_Occurred()) SWIG_fail;
44345 }
44346 {
44347#if wxUSE_UNICODE
44348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44349#else
44350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44351#endif
44352 }
44353 return resultobj;
44354fail:
44355 return NULL;
44356}
44357
44358
b850e7f3
RD
44359SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44360 PyObject *obj;
44361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44362 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44363 return SWIG_Py_Void();
44364}
44365
44366SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44367 return SWIG_Python_InitShadowInstance(args);
44368}
44369
44370SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44371 PyObject *resultobj = 0;
44372 wxEventType arg1 ;
44373 wxObject *arg2 = (wxObject *) 0 ;
44374 int arg3 ;
44375 wxString *arg4 = 0 ;
44376 wxFileDirPickerEvent *result = 0 ;
44377 int val1 ;
44378 int ecode1 = 0 ;
44379 void *argp2 = 0 ;
44380 int res2 = 0 ;
44381 int val3 ;
44382 int ecode3 = 0 ;
44383 bool temp4 = false ;
44384 PyObject * obj0 = 0 ;
44385 PyObject * obj1 = 0 ;
44386 PyObject * obj2 = 0 ;
44387 PyObject * obj3 = 0 ;
44388 char * kwnames[] = {
44389 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44390 };
44391
44392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44393 ecode1 = SWIG_AsVal_int(obj0, &val1);
44394 if (!SWIG_IsOK(ecode1)) {
44395 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44396 }
44397 arg1 = static_cast< wxEventType >(val1);
44398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44399 if (!SWIG_IsOK(res2)) {
44400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44401 }
44402 arg2 = reinterpret_cast< wxObject * >(argp2);
44403 ecode3 = SWIG_AsVal_int(obj2, &val3);
44404 if (!SWIG_IsOK(ecode3)) {
44405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44406 }
44407 arg3 = static_cast< int >(val3);
44408 {
44409 arg4 = wxString_in_helper(obj3);
44410 if (arg4 == NULL) SWIG_fail;
44411 temp4 = true;
44412 }
44413 {
44414 PyThreadState* __tstate = wxPyBeginAllowThreads();
44415 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44416 wxPyEndAllowThreads(__tstate);
44417 if (PyErr_Occurred()) SWIG_fail;
44418 }
44419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44420 {
44421 if (temp4)
44422 delete arg4;
44423 }
44424 return resultobj;
44425fail:
44426 {
44427 if (temp4)
44428 delete arg4;
44429 }
44430 return NULL;
44431}
44432
44433
44434SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44435 PyObject *resultobj = 0;
44436 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44437 wxString result;
44438 void *argp1 = 0 ;
44439 int res1 = 0 ;
44440 PyObject *swig_obj[1] ;
44441
44442 if (!args) SWIG_fail;
44443 swig_obj[0] = args;
44444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44445 if (!SWIG_IsOK(res1)) {
44446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44447 }
44448 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44449 {
44450 PyThreadState* __tstate = wxPyBeginAllowThreads();
44451 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44452 wxPyEndAllowThreads(__tstate);
44453 if (PyErr_Occurred()) SWIG_fail;
44454 }
44455 {
44456#if wxUSE_UNICODE
44457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44458#else
44459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44460#endif
44461 }
44462 return resultobj;
44463fail:
44464 return NULL;
44465}
44466
44467
44468SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44469 PyObject *resultobj = 0;
44470 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44471 wxString *arg2 = 0 ;
44472 void *argp1 = 0 ;
44473 int res1 = 0 ;
44474 bool temp2 = false ;
44475 PyObject * obj0 = 0 ;
44476 PyObject * obj1 = 0 ;
44477 char * kwnames[] = {
44478 (char *) "self",(char *) "p", NULL
44479 };
44480
44481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44483 if (!SWIG_IsOK(res1)) {
44484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44485 }
44486 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44487 {
44488 arg2 = wxString_in_helper(obj1);
44489 if (arg2 == NULL) SWIG_fail;
44490 temp2 = true;
44491 }
44492 {
44493 PyThreadState* __tstate = wxPyBeginAllowThreads();
44494 (arg1)->SetPath((wxString const &)*arg2);
44495 wxPyEndAllowThreads(__tstate);
44496 if (PyErr_Occurred()) SWIG_fail;
44497 }
44498 resultobj = SWIG_Py_Void();
44499 {
44500 if (temp2)
44501 delete arg2;
44502 }
44503 return resultobj;
44504fail:
44505 {
44506 if (temp2)
44507 delete arg2;
44508 }
44509 return NULL;
44510}
44511
44512
44513SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44514 PyObject *obj;
44515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44516 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44517 return SWIG_Py_Void();
44518}
44519
44520SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44521 return SWIG_Python_InitShadowInstance(args);
44522}
44523
44524SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44525 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44526 return 1;
44527}
44528
44529
44530SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44531 PyObject *pyobj = 0;
44532
44533 {
44534#if wxUSE_UNICODE
44535 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44536#else
44537 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44538#endif
44539 }
44540 return pyobj;
44541}
44542
44543
44544SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44545 PyObject *resultobj = 0;
44546 wxWindow *arg1 = (wxWindow *) 0 ;
44547 int arg2 = (int) -1 ;
44548 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44549 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44550 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44551 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44552 wxSize const &arg5_defvalue = wxDefaultSize ;
44553 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44554 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44555 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44556 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44557 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44558 wxString *arg8 = (wxString *) &arg8_defvalue ;
44559 wxFontPickerCtrl *result = 0 ;
44560 void *argp1 = 0 ;
44561 int res1 = 0 ;
44562 int val2 ;
44563 int ecode2 = 0 ;
44564 void *argp3 = 0 ;
44565 int res3 = 0 ;
44566 wxPoint temp4 ;
44567 wxSize temp5 ;
44568 long val6 ;
44569 int ecode6 = 0 ;
44570 void *argp7 = 0 ;
44571 int res7 = 0 ;
44572 bool temp8 = false ;
44573 PyObject * obj0 = 0 ;
44574 PyObject * obj1 = 0 ;
44575 PyObject * obj2 = 0 ;
44576 PyObject * obj3 = 0 ;
44577 PyObject * obj4 = 0 ;
44578 PyObject * obj5 = 0 ;
44579 PyObject * obj6 = 0 ;
44580 PyObject * obj7 = 0 ;
44581 char * kwnames[] = {
44582 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44583 };
44584
44585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44587 if (!SWIG_IsOK(res1)) {
44588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44589 }
44590 arg1 = reinterpret_cast< wxWindow * >(argp1);
44591 if (obj1) {
44592 ecode2 = SWIG_AsVal_int(obj1, &val2);
44593 if (!SWIG_IsOK(ecode2)) {
44594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44595 }
44596 arg2 = static_cast< int >(val2);
44597 }
44598 if (obj2) {
44599 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44600 if (!SWIG_IsOK(res3)) {
44601 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44602 }
44603 if (!argp3) {
44604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44605 }
44606 arg3 = reinterpret_cast< wxFont * >(argp3);
44607 }
44608 if (obj3) {
44609 {
44610 arg4 = &temp4;
44611 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44612 }
44613 }
44614 if (obj4) {
44615 {
44616 arg5 = &temp5;
44617 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44618 }
44619 }
44620 if (obj5) {
44621 ecode6 = SWIG_AsVal_long(obj5, &val6);
44622 if (!SWIG_IsOK(ecode6)) {
44623 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44624 }
44625 arg6 = static_cast< long >(val6);
44626 }
44627 if (obj6) {
44628 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44629 if (!SWIG_IsOK(res7)) {
44630 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44631 }
44632 if (!argp7) {
44633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44634 }
44635 arg7 = reinterpret_cast< wxValidator * >(argp7);
44636 }
44637 if (obj7) {
44638 {
44639 arg8 = wxString_in_helper(obj7);
44640 if (arg8 == NULL) SWIG_fail;
44641 temp8 = true;
44642 }
44643 }
44644 {
44645 if (!wxPyCheckForApp()) SWIG_fail;
44646 PyThreadState* __tstate = wxPyBeginAllowThreads();
44647 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44648 wxPyEndAllowThreads(__tstate);
44649 if (PyErr_Occurred()) SWIG_fail;
44650 }
44651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44652 {
44653 if (temp8)
44654 delete arg8;
44655 }
44656 return resultobj;
44657fail:
44658 {
44659 if (temp8)
44660 delete arg8;
44661 }
44662 return NULL;
44663}
44664
44665
44666SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44667 PyObject *resultobj = 0;
44668 wxFontPickerCtrl *result = 0 ;
44669
44670 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44671 {
44672 if (!wxPyCheckForApp()) SWIG_fail;
44673 PyThreadState* __tstate = wxPyBeginAllowThreads();
44674 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44675 wxPyEndAllowThreads(__tstate);
44676 if (PyErr_Occurred()) SWIG_fail;
44677 }
44678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44679 return resultobj;
44680fail:
44681 return NULL;
44682}
44683
44684
44685SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44686 PyObject *resultobj = 0;
44687 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44688 wxWindow *arg2 = (wxWindow *) 0 ;
44689 int arg3 = (int) -1 ;
44690 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44691 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44692 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44693 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44694 wxSize const &arg6_defvalue = wxDefaultSize ;
44695 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44696 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44697 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44698 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44699 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44700 wxString *arg9 = (wxString *) &arg9_defvalue ;
44701 bool result;
44702 void *argp1 = 0 ;
44703 int res1 = 0 ;
44704 void *argp2 = 0 ;
44705 int res2 = 0 ;
44706 int val3 ;
44707 int ecode3 = 0 ;
44708 void *argp4 = 0 ;
44709 int res4 = 0 ;
44710 wxPoint temp5 ;
44711 wxSize temp6 ;
44712 long val7 ;
44713 int ecode7 = 0 ;
44714 void *argp8 = 0 ;
44715 int res8 = 0 ;
44716 bool temp9 = false ;
44717 PyObject * obj0 = 0 ;
44718 PyObject * obj1 = 0 ;
44719 PyObject * obj2 = 0 ;
44720 PyObject * obj3 = 0 ;
44721 PyObject * obj4 = 0 ;
44722 PyObject * obj5 = 0 ;
44723 PyObject * obj6 = 0 ;
44724 PyObject * obj7 = 0 ;
44725 PyObject * obj8 = 0 ;
44726 char * kwnames[] = {
44727 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44728 };
44729
44730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44732 if (!SWIG_IsOK(res1)) {
44733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44734 }
44735 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44737 if (!SWIG_IsOK(res2)) {
44738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44739 }
44740 arg2 = reinterpret_cast< wxWindow * >(argp2);
44741 if (obj2) {
44742 ecode3 = SWIG_AsVal_int(obj2, &val3);
44743 if (!SWIG_IsOK(ecode3)) {
44744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44745 }
44746 arg3 = static_cast< int >(val3);
44747 }
44748 if (obj3) {
44749 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44750 if (!SWIG_IsOK(res4)) {
44751 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44752 }
44753 if (!argp4) {
44754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44755 }
44756 arg4 = reinterpret_cast< wxFont * >(argp4);
44757 }
44758 if (obj4) {
44759 {
44760 arg5 = &temp5;
44761 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44762 }
44763 }
44764 if (obj5) {
44765 {
44766 arg6 = &temp6;
44767 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44768 }
44769 }
44770 if (obj6) {
44771 ecode7 = SWIG_AsVal_long(obj6, &val7);
44772 if (!SWIG_IsOK(ecode7)) {
44773 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44774 }
44775 arg7 = static_cast< long >(val7);
44776 }
44777 if (obj7) {
44778 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44779 if (!SWIG_IsOK(res8)) {
44780 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44781 }
44782 if (!argp8) {
44783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44784 }
44785 arg8 = reinterpret_cast< wxValidator * >(argp8);
44786 }
44787 if (obj8) {
44788 {
44789 arg9 = wxString_in_helper(obj8);
44790 if (arg9 == NULL) SWIG_fail;
44791 temp9 = true;
44792 }
44793 }
44794 {
44795 PyThreadState* __tstate = wxPyBeginAllowThreads();
44796 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44797 wxPyEndAllowThreads(__tstate);
44798 if (PyErr_Occurred()) SWIG_fail;
44799 }
44800 {
44801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44802 }
44803 {
44804 if (temp9)
44805 delete arg9;
44806 }
44807 return resultobj;
44808fail:
44809 {
44810 if (temp9)
44811 delete arg9;
44812 }
44813 return NULL;
44814}
44815
44816
44817SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44818 PyObject *resultobj = 0;
44819 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44820 wxFont result;
44821 void *argp1 = 0 ;
44822 int res1 = 0 ;
44823 PyObject *swig_obj[1] ;
44824
44825 if (!args) SWIG_fail;
44826 swig_obj[0] = args;
44827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44828 if (!SWIG_IsOK(res1)) {
44829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44830 }
44831 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44832 {
44833 PyThreadState* __tstate = wxPyBeginAllowThreads();
44834 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44835 wxPyEndAllowThreads(__tstate);
44836 if (PyErr_Occurred()) SWIG_fail;
44837 }
44838 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44839 return resultobj;
44840fail:
44841 return NULL;
44842}
44843
44844
44845SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44846 PyObject *resultobj = 0;
44847 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44848 wxFont *arg2 = 0 ;
44849 void *argp1 = 0 ;
44850 int res1 = 0 ;
44851 void *argp2 = 0 ;
44852 int res2 = 0 ;
44853 PyObject * obj0 = 0 ;
44854 PyObject * obj1 = 0 ;
44855 char * kwnames[] = {
44856 (char *) "self",(char *) "f", NULL
44857 };
44858
44859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44861 if (!SWIG_IsOK(res1)) {
44862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44863 }
44864 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44866 if (!SWIG_IsOK(res2)) {
44867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44868 }
44869 if (!argp2) {
44870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44871 }
44872 arg2 = reinterpret_cast< wxFont * >(argp2);
44873 {
44874 PyThreadState* __tstate = wxPyBeginAllowThreads();
44875 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44876 wxPyEndAllowThreads(__tstate);
44877 if (PyErr_Occurred()) SWIG_fail;
44878 }
44879 resultobj = SWIG_Py_Void();
44880 return resultobj;
44881fail:
44882 return NULL;
44883}
44884
44885
44886SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44887 PyObject *resultobj = 0;
44888 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44889 unsigned int arg2 ;
44890 void *argp1 = 0 ;
44891 int res1 = 0 ;
44892 unsigned int val2 ;
44893 int ecode2 = 0 ;
44894 PyObject * obj0 = 0 ;
44895 PyObject * obj1 = 0 ;
44896 char * kwnames[] = {
44897 (char *) "self",(char *) "max", NULL
44898 };
44899
44900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44902 if (!SWIG_IsOK(res1)) {
44903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44904 }
44905 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44906 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44907 if (!SWIG_IsOK(ecode2)) {
44908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44909 }
44910 arg2 = static_cast< unsigned int >(val2);
44911 {
44912 PyThreadState* __tstate = wxPyBeginAllowThreads();
44913 (arg1)->SetMaxPointSize(arg2);
44914 wxPyEndAllowThreads(__tstate);
44915 if (PyErr_Occurred()) SWIG_fail;
44916 }
44917 resultobj = SWIG_Py_Void();
44918 return resultobj;
44919fail:
44920 return NULL;
44921}
44922
44923
44924SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44925 PyObject *resultobj = 0;
44926 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44927 unsigned int result;
44928 void *argp1 = 0 ;
44929 int res1 = 0 ;
44930 PyObject *swig_obj[1] ;
44931
44932 if (!args) SWIG_fail;
44933 swig_obj[0] = args;
44934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44935 if (!SWIG_IsOK(res1)) {
44936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44937 }
44938 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44939 {
44940 PyThreadState* __tstate = wxPyBeginAllowThreads();
44941 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44942 wxPyEndAllowThreads(__tstate);
44943 if (PyErr_Occurred()) SWIG_fail;
44944 }
44945 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44946 return resultobj;
44947fail:
44948 return NULL;
44949}
44950
44951
44952SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44953 PyObject *obj;
44954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44955 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44956 return SWIG_Py_Void();
44957}
44958
44959SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44960 return SWIG_Python_InitShadowInstance(args);
44961}
44962
44963SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44964 PyObject *resultobj = 0;
44965 wxObject *arg1 = (wxObject *) 0 ;
44966 int arg2 ;
44967 wxFont *arg3 = 0 ;
44968 wxFontPickerEvent *result = 0 ;
44969 void *argp1 = 0 ;
44970 int res1 = 0 ;
44971 int val2 ;
44972 int ecode2 = 0 ;
44973 void *argp3 = 0 ;
44974 int res3 = 0 ;
44975 PyObject * obj0 = 0 ;
44976 PyObject * obj1 = 0 ;
44977 PyObject * obj2 = 0 ;
44978 char * kwnames[] = {
44979 (char *) "generator",(char *) "id",(char *) "f", NULL
44980 };
44981
44982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44984 if (!SWIG_IsOK(res1)) {
44985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44986 }
44987 arg1 = reinterpret_cast< wxObject * >(argp1);
44988 ecode2 = SWIG_AsVal_int(obj1, &val2);
44989 if (!SWIG_IsOK(ecode2)) {
44990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
44991 }
44992 arg2 = static_cast< int >(val2);
44993 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44994 if (!SWIG_IsOK(res3)) {
44995 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44996 }
44997 if (!argp3) {
44998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44999 }
45000 arg3 = reinterpret_cast< wxFont * >(argp3);
45001 {
45002 PyThreadState* __tstate = wxPyBeginAllowThreads();
45003 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45004 wxPyEndAllowThreads(__tstate);
45005 if (PyErr_Occurred()) SWIG_fail;
45006 }
45007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45008 return resultobj;
45009fail:
45010 return NULL;
45011}
45012
45013
45014SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45015 PyObject *resultobj = 0;
45016 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45017 wxFont result;
45018 void *argp1 = 0 ;
45019 int res1 = 0 ;
45020 PyObject *swig_obj[1] ;
45021
45022 if (!args) SWIG_fail;
45023 swig_obj[0] = args;
45024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45025 if (!SWIG_IsOK(res1)) {
45026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45027 }
45028 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45029 {
45030 PyThreadState* __tstate = wxPyBeginAllowThreads();
45031 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45032 wxPyEndAllowThreads(__tstate);
45033 if (PyErr_Occurred()) SWIG_fail;
45034 }
45035 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45036 return resultobj;
45037fail:
45038 return NULL;
45039}
45040
45041
45042SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45043 PyObject *resultobj = 0;
45044 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45045 wxFont *arg2 = 0 ;
45046 void *argp1 = 0 ;
45047 int res1 = 0 ;
45048 void *argp2 = 0 ;
45049 int res2 = 0 ;
45050 PyObject * obj0 = 0 ;
45051 PyObject * obj1 = 0 ;
45052 char * kwnames[] = {
45053 (char *) "self",(char *) "c", NULL
45054 };
45055
45056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45058 if (!SWIG_IsOK(res1)) {
45059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45060 }
45061 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45063 if (!SWIG_IsOK(res2)) {
45064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45065 }
45066 if (!argp2) {
45067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45068 }
45069 arg2 = reinterpret_cast< wxFont * >(argp2);
45070 {
45071 PyThreadState* __tstate = wxPyBeginAllowThreads();
45072 (arg1)->SetFont((wxFont const &)*arg2);
45073 wxPyEndAllowThreads(__tstate);
45074 if (PyErr_Occurred()) SWIG_fail;
45075 }
45076 resultobj = SWIG_Py_Void();
45077 return resultobj;
45078fail:
45079 return NULL;
45080}
45081
45082
45083SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45084 PyObject *obj;
45085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45086 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45087 return SWIG_Py_Void();
45088}
45089
45090SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45091 return SWIG_Python_InitShadowInstance(args);
45092}
45093
45094static PyMethodDef SwigMethods[] = {
45095 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45096 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45097 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45098 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45099 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45100 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45101 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45102 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45103 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45104 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45105 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45106 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45107 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45108 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45109 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45110 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45111 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45112 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45113 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45114 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45115 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45116 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45117 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45118 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45119 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45120 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45121 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45122 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45123 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45124 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45125 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45126 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45127 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45128 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45129 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45130 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45131 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45132 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45133 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45134 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45135 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45136 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45137 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45138 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45139 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45140 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45141 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45142 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45143 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45144 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45145 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45146 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45147 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45148 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45149 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45150 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45151 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45152 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45153 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45154 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45155 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45156 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45157 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45158 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45159 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45160 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45161 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45162 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45163 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45164 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45165 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45166 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45167 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45168 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45169 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45170 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45171 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45172 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45173 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45174 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45175 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45176 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45177 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45178 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45179 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45180 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45182 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45183 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45184 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45185 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45186 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45187 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45188 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45189 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45190 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45191 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45192 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45193 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45194 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45195 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45196 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45197 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45198 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45199 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45200 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45201 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45202 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45203 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45204 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45205 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45206 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45207 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45208 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45209 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45210 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45211 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45212 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45213 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45214 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45215 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45216 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45217 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45218 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45219 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45220 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45221 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45223 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45224 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45225 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45226 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45227 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45228 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45229 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45230 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45231 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45232 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45235 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45240 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45241 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45242 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45243 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45244 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45245 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45247 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45248 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45249 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45250 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45251 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45252 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45256 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45257 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45258 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45260 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45262 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45263 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45264 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45265 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45266 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45267 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45268 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45269 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45270 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45271 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45272 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45273 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45274 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45275 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45276 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45277 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45278 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45279 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45280 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45281 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45282 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45283 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45284 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45285 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45286 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45288 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45290 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45291 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45292 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45293 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45294 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45295 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45296 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45297 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45298 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45299 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45301 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45302 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45303 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45304 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45305 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45306 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45312 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45313 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45317 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45319 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45320 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45321 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45322 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45323 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45324 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45325 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45326 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45327 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45328 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45330 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45331 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45332 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45334 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45339 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45340 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45342 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45343 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45344 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45345 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45346 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45348 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45350 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45351 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45352 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45353 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45354 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45357 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45358 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45360 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45362 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45363 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45364 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45369 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45371 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45372 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45374 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45376 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45378 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45380 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45381 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45384 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45385 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45387 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45389 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45390 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45392 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45395 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45396 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45398 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45406 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45407 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45414 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45415 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45417 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45419 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45422 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45423 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45425 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45427 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45430 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45431 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45436 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45437 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45439 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45441 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45442 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45444 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45445 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45446 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45449 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45450 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45452 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45455 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45457 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45458 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45459 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45461 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45462 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45467 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45472 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45474 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 45475 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
45476 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45478 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
45479 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45481 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45482 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45485 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45486 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45487 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45489 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45491 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45493 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45495 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45496 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45498 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45500 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45502 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45503 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45505 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45506 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45508 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45509 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45511 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45513 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45514 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45515 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45517 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45518 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45520 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45522 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45523 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45524 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45526 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45527 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45529 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45537 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45538 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45539 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45541 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45542 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45544 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45546 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45547 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45548 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45549 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45551 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45552 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45553 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45554 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45555 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45556 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45557 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45558 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45559 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45560 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45561 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45562 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45563 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45564 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45565 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45566 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45567 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45568 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45569 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45570 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45571 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45577 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45578 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45579 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45580 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45582 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45590 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45595 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45596 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45613 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45614 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45615 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45616 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45619 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45620 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45622 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45623 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45626 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45627 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45628 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45630 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45631 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45633 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45634 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45636 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45640 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45641 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45642 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45643 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45644 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45645 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45647 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45648 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45649 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45650 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45651 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45652 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45653 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45667 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45668 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45669 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45670 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45671 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45672 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45673 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45674 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45675 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45676 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45677 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45678 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45679 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45680 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45681 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45682 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45683 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45684 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45685 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45686 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45687 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45688 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45689 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45690 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45691 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45692 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45693 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45694 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45695 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45696 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45697 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45698 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45699 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45700 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45701 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45702 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45704 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45705 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45706 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45707 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45708 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45709 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45710 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45711 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45712 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45713 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45714 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45715 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45716 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45717 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45718 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45719 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45720 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45721 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45722 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45723 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45724 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45725 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45726 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45727 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45729 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45730 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45732 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45739 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45740 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45741 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45756 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45757 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45758 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45760 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45761 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45763 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45765 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45769 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45770 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45775 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45777 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45778 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45784 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45785 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45801 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45803 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45804 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45806 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45810 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45812 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45816 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45817 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45818 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45819 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45820 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45823 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45824 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45825 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45826 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45828 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45829 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45831 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45833 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45834 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45835 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
45836 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45837 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45839 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45841 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45843 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45844 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45846 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45848 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45851 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45852 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45853 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45855 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45858 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45859 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45861 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45863 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45864 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45892 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45893 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45894 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45901 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45911 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
45912 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
45914 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45918 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45920 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45926 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
45930 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
45932 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45933 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45934 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45936 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45938 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45939 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45940 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45942 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45943 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45946 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45947 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45949 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45951 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45952 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45953 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45955 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45956 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45957 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45958 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45960 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45963 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45964 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45966 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
45974 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
45975 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
45976 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
45977 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
45978 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
45979 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
45980 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
45981 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
45982 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
45984 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
45986 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
45988 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
45989 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
45990 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45991 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
45992 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
45993 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
45995 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
45997 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
45998 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
45999 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46001 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46002 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
46003 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46005 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46007 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46008 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46012 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46013 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46014 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46015 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46016 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46022 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46026 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46028 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46029 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46034 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46035 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46037 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46040 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46042 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46043 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46044 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46045 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46047 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46049 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46051 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46053 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46055 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46058 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46059 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46060 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46062 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46064 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46065 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46068 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
46070 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46072 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46073 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46075 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46076 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46077 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46078 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46079 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46080 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46082 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46084 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46086 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46087 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46089 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46091 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46092 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46094 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46096 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46097 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46099 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46100 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46101 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46103 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46105 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46106 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46108 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46109 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46110 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46112 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46114 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46115 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46117 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46119 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46122 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46123 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46124 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46126 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46128 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
46129 { NULL, NULL, 0, NULL }
46130};
46131
46132
46133/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46134
46135static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46136 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46137}
46138static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46139 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46140}
46141static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46142 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46143}
46144static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46145 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46146}
46147static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46148 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46149}
46150static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46151 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46152}
46153static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46154 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46155}
46156static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46157 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46158}
b850e7f3
RD
46159static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46160 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46161}
46162static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46163 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46164}
46165static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46166 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46167}
1bd55598
RD
46168static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46169 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46170}
46171static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46172 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46173}
46174static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46175 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46176}
1bd55598
RD
46177static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46178 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46179}
34e0a3bb
RD
46180static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46181 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46182}
2131d850
RD
46183static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46184 return (void *)((wxEvent *) ((wxPyEvent *) x));
46185}
1bd55598
RD
46186static void *_p_wxListEventTo_p_wxEvent(void *x) {
46187 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46188}
46189static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46190 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46191}
46192static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46193 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46194}
46195static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46196 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46197}
46198static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46199 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46200}
46201static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46202 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46203}
46204static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46205 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46206}
46207static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46208 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46209}
46210static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46211 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46212}
46213static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46214 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46215}
46216static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46217 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46218}
46219static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46220 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46221}
46222static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46223 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46224}
46225static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46226 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46227}
46228static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46229 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46230}
46231static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46232 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46233}
46234static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46235 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46236}
46237static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46238 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46239}
34e0a3bb
RD
46240static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46241 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46242}
1bd55598
RD
46243static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46244 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46245}
46246static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46247 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46248}
46249static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46250 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46251}
46252static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46253 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46254}
46255static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46256 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46257}
704eda0c
RD
46258static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46259 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46260}
1bd55598
RD
46261static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46262 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46263}
46264static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46265 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46266}
46267static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46268 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46269}
46270static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46271 return (void *)((wxEvent *) ((wxShowEvent *) x));
46272}
46273static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46274 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46275}
46276static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46277 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46278}
46279static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46280 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46281}
46282static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46283 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46284}
46285static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46286 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46287}
46288static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46289 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46290}
46291static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46292 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46293}
b850e7f3
RD
46294static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46295 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46296}
46297static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46298 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46299}
46300static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46301 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46302}
46303static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46304 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46305}
1bd55598
RD
46306static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46307 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46308}
46309static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46310 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46311}
46312static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46313 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46314}
46315static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46316 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46317}
46318static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46319 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46320}
46321static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46322 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46323}
46324static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46325 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46326}
46327static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46328 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46329}
46330static void *_p_wxToolBarTo_p_wxControl(void *x) {
46331 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46332}
b850e7f3
RD
46333static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46334 return (void *)((wxControl *) ((wxPickerBase *) x));
46335}
1bd55598
RD
46336static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46337 return (void *)((wxControl *) ((wxToggleButton *) x));
46338}
46339static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46340 return (void *)((wxControl *) ((wxRadioButton *) x));
46341}
46342static void *_p_wxToolbookTo_p_wxControl(void *x) {
46343 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46344}
46345static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46346 return (void *)((wxControl *) ((wxToolBarBase *) x));
46347}
46348static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46349 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46350}
46351static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46352 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46353}
46354static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46355 return (void *)((wxControl *) ((wxComboBox *) x));
46356}
46357static void *_p_wxPyControlTo_p_wxControl(void *x) {
46358 return (void *)((wxControl *) ((wxPyControl *) x));
46359}
46360static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46361 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46362}
46363static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46364 return (void *)((wxControl *) ((wxScrollBar *) x));
46365}
46366static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46367 return (void *)((wxControl *) ((wxControlWithItems *) x));
46368}
46369static void *_p_wxGaugeTo_p_wxControl(void *x) {
46370 return (void *)((wxControl *) ((wxGauge *) x));
46371}
46372static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46373 return (void *)((wxControl *) ((wxStaticLine *) x));
46374}
46375static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46376 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46377}
46378static void *_p_wxListbookTo_p_wxControl(void *x) {
46379 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46380}
704eda0c
RD
46381static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46382 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46383}
1bd55598
RD
46384static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46385 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46386}
46387static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46388 return (void *)((wxControl *) ((wxCheckBox *) x));
46389}
46390static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46391 return (void *)((wxControl *) ((wxRadioBox *) x));
46392}
46393static void *_p_wxChoiceTo_p_wxControl(void *x) {
46394 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46395}
46396static void *_p_wxListBoxTo_p_wxControl(void *x) {
46397 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46398}
46399static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46400 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46401}
46402static void *_p_wxListViewTo_p_wxControl(void *x) {
46403 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46404}
46405static void *_p_wxNotebookTo_p_wxControl(void *x) {
46406 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46407}
46408static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46409 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46410}
46411static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46412 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46413}
46414static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46415 return (void *)((wxControl *) ((wxStaticText *) x));
46416}
46417static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46418 return (void *)((wxControl *) ((wxStaticBox *) x));
46419}
46420static void *_p_wxSliderTo_p_wxControl(void *x) {
46421 return (void *)((wxControl *) ((wxSlider *) x));
46422}
46423static void *_p_wxTreebookTo_p_wxControl(void *x) {
46424 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46425}
46426static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46427 return (void *)((wxControl *) ((wxSpinButton *) x));
46428}
46429static void *_p_wxButtonTo_p_wxControl(void *x) {
46430 return (void *)((wxControl *) ((wxButton *) x));
46431}
46432static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46433 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46434}
46435static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46436 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46437}
46438static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46439 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46440}
b850e7f3
RD
46441static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46442 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46443}
46444static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46445 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46446}
46447static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46448 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46449}
46450static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46451 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46452}
1bd55598
RD
46453static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46454 return (void *)((wxControl *) ((wxTextCtrl *) x));
46455}
46456static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46457 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46458}
46459static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46460 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46461}
46462static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46463 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46464}
46465static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46466 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46467}
46468static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46469 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46470}
46471static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46472 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46473}
46474static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46475 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46476}
46477static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46478 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46479}
46480static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46481 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46482}
46483static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46484 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46485}
46486static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46487 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46488}
46489static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46490 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46491}
46492static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46493 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46494}
46495static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46496 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46497}
46498static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46499 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46500}
46501static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46502 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46503}
46504static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46505 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46506}
46507static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46508 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46509}
46510static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46511 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46512}
46513static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46514 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46515}
46516static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46517 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46518}
b850e7f3
RD
46519static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46520 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46521}
1bd55598
RD
46522static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46523 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46524}
46525static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46526 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46527}
46528static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46529 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46530}
46531static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46532 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46533}
46534static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46535 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46536}
46537static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46538 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46539}
46540static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46541 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46542}
46543static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46544 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46545}
46546static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46547 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46548}
46549static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46550 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46551}
46552static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46553 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46554}
46555static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46556 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46557}
46558static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46559 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46560}
46561static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46562 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46563}
46564static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46565 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46566}
46567static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46568 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46569}
46570static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46571 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46572}
46573static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46574 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46575}
46576static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46577 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46578}
704eda0c
RD
46579static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46580 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46581}
1bd55598
RD
46582static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46583 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46584}
46585static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46586 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46587}
46588static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46589 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46590}
46591static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46592 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46593}
46594static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46595 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46596}
46597static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46598 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46599}
46600static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46601 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46602}
46603static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46604 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46605}
46606static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46607 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46608}
46609static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46610 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46611}
46612static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46613 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46614}
46615static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46616 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46617}
46618static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46619 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46620}
46621static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46622 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46623}
46624static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46625 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46626}
46627static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46628 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46629}
46630static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46631 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46632}
46633static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46634 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46635}
46636static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46637 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46638}
b850e7f3
RD
46639static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46640 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46641}
46642static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46643 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46644}
46645static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46646 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46647}
46648static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46649 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46650}
1bd55598
RD
46651static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46652 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46653}
46654static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46655 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46656}
46657static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46658 return (void *)((wxButton *) ((wxBitmapButton *) x));
46659}
46660static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46661 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46662}
46663static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46664 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46665}
46666static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46667 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46668}
46669static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46670 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46671}
46672static void *_p_wxToolbookTo_p_wxObject(void *x) {
46673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46674}
1bd55598
RD
46675static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46676 return (void *)((wxObject *) ((wxSizerItem *) x));
46677}
34e0a3bb
RD
46678static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46679 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46680}
1bd55598
RD
46681static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46683}
46684static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46685 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46686}
46687static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46688 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46689}
46690static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46691 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46692}
46693static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46694 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46695}
46696static void *_p_wxSizerTo_p_wxObject(void *x) {
46697 return (void *)((wxObject *) ((wxSizer *) x));
46698}
46699static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46700 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46701}
46702static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46704}
46705static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46707}
46708static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46709 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46710}
46711static void *_p_wxEventTo_p_wxObject(void *x) {
46712 return (void *)((wxObject *) ((wxEvent *) x));
46713}
46714static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46715 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46716}
46717static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46718 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46719}
46720static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46721 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46722}
46723static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46724 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46725}
b850e7f3
RD
46726static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46727 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46728}
1bd55598
RD
46729static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46730 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46731}
46732static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46733 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46734}
2131d850
RD
46735static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46736 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46737}
1bd55598
RD
46738static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46739 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46740}
46741static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46742 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46743}
46744static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46745 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46746}
46747static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46748 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46749}
46750static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46751 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46752}
46753static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46754 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46755}
46756static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46757 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46758}
46759static void *_p_wxControlTo_p_wxObject(void *x) {
46760 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46761}
46762static void *_p_wxPyControlTo_p_wxObject(void *x) {
46763 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46764}
46765static void *_p_wxGaugeTo_p_wxObject(void *x) {
46766 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46767}
46768static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46769 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46770}
46771static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46772 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46773}
46774static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46775 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46776}
46777static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46778 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46779}
b850e7f3
RD
46780static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46781 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46782}
46783static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46784 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46785}
46786static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46787 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46788}
1bd55598
RD
46789static void *_p_wxChoiceTo_p_wxObject(void *x) {
46790 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46791}
46792static void *_p_wxFSFileTo_p_wxObject(void *x) {
46793 return (void *)((wxObject *) ((wxFSFile *) x));
46794}
46795static void *_p_wxPySizerTo_p_wxObject(void *x) {
46796 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46797}
46798static void *_p_wxTreebookTo_p_wxObject(void *x) {
46799 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46800}
46801static void *_p_wxListViewTo_p_wxObject(void *x) {
46802 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46803}
704eda0c
RD
46804static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46805 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46806}
1bd55598
RD
46807static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46808 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46809}
46810static void *_p_wxNotebookTo_p_wxObject(void *x) {
46811 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46812}
46813static void *_p_wxPyEventTo_p_wxObject(void *x) {
46814 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46815}
46816static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46817 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46818}
46819static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46820 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46821}
46822static void *_p_wxListbookTo_p_wxObject(void *x) {
46823 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46824}
46825static void *_p_wxShowEventTo_p_wxObject(void *x) {
46826 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46827}
46828static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46829 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46830}
46831static void *_p_wxSliderTo_p_wxObject(void *x) {
46832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46833}
46834static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46835 return (void *)((wxObject *) ((wxMenuItem *) x));
46836}
46837static void *_p_wxDateEventTo_p_wxObject(void *x) {
46838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46839}
46840static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46841 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46842}
46843static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46844 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46845}
46846static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46847 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46848}
46849static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46850 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46851}
46852static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46853 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46854}
46855static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46856 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46857}
46858static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46859 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46860}
46861static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46862 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46863}
46864static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46865 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46866}
46867static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46868 return (void *)((wxObject *) ((wxContextHelp *) x));
46869}
46870static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46871 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46872}
46873static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46874 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46875}
46876static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46877 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46878}
46879static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46880 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46881}
46882static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46883 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46884}
46885static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46886 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46887}
46888static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46889 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46890}
46891static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46892 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46893}
46894static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46895 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46896}
46897static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46898 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46899}
46900static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46901 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46902}
46903static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46904 return (void *)((wxObject *) ((wxImageHandler *) x));
46905}
46906static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46907 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46908}
46909static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46910 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46911}
46912static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46913 return (void *)((wxObject *) ((wxEvtHandler *) x));
46914}
34e0a3bb
RD
46915static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
46916 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
46917}
1bd55598
RD
46918static void *_p_wxListEventTo_p_wxObject(void *x) {
46919 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46920}
46921static void *_p_wxListBoxTo_p_wxObject(void *x) {
46922 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46923}
46924static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46925 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46926}
46927static void *_p_wxButtonTo_p_wxObject(void *x) {
46928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46929}
46930static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46931 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46932}
46933static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46934 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46935}
46936static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46937 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46938}
46939static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46940 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46941}
46942static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46943 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46944}
46945static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46946 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46947}
46948static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46949 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46950}
46951static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46952 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46953}
46954static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46955 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46956}
46957static void *_p_wxListItemTo_p_wxObject(void *x) {
46958 return (void *)((wxObject *) ((wxListItem *) x));
46959}
46960static void *_p_wxImageTo_p_wxObject(void *x) {
46961 return (void *)((wxObject *) ((wxImage *) x));
46962}
46963static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46964 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46965}
46966static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46967 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46968}
46969static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46970 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46971}
46972static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
46973 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46974}
46975static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
46976 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46977}
46978static void *_p_wxListbookEventTo_p_wxObject(void *x) {
46979 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46980}
46981static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
46982 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46983}
46984static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
46985 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46986}
46987static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
46988 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46989}
46990static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
46991 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46992}
46993static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
46994 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
46995}
46996static void *_p_wxKeyEventTo_p_wxObject(void *x) {
46997 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
46998}
46999static void *_p_wxWindowTo_p_wxObject(void *x) {
47000 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47001}
47002static void *_p_wxMenuTo_p_wxObject(void *x) {
47003 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47004}
47005static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47006 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47007}
47008static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47009 return (void *)((wxObject *) ((wxFileSystem *) x));
47010}
47011static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47012 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47013}
47014static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47015 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47016}
47017static void *_p_wxPyAppTo_p_wxObject(void *x) {
47018 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47019}
47020static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47021 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47022}
47023static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47024 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47025}
47026static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47027 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47028}
47029static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47030 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47031}
47032static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47033 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47034}
47035static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47036 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47037}
47038static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47039 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47040}
47041static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47042 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47043}
47044static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47045 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47046}
47047static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47048 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47049}
47050static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47051 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47052}
47053static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47054 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47055}
b850e7f3
RD
47056static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47058}
47059static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47060 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47061}
47062static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47063 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47064}
47065static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47066 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47067}
1bd55598
RD
47068static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47069 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47070}
704eda0c
RD
47071static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47072 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47073}
1bd55598
RD
47074static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47075 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47076}
47077static void *_p_wxToolBarTo_p_wxObject(void *x) {
47078 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47079}
47080static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47081 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47082}
47083static void *_p_wxValidatorTo_p_wxObject(void *x) {
47084 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47085}
47086static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47087 return (void *)((wxWindow *) ((wxMenuBar *) x));
47088}
47089static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47090 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47091}
47092static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47093 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47094}
b850e7f3
RD
47095static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47096 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47097}
1bd55598
RD
47098static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47099 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47100}
47101static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47102 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47103}
47104static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47105 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47106}
47107static void *_p_wxControlTo_p_wxWindow(void *x) {
47108 return (void *)((wxWindow *) ((wxControl *) x));
47109}
47110static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47111 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47112}
47113static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47114 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47115}
47116static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47117 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47118}
47119static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47120 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47121}
47122static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47123 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47124}
47125static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47126 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47127}
47128static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47129 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47130}
47131static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47132 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47133}
47134static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47135 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47136}
47137static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47138 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47139}
47140static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47141 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47142}
47143static void *_p_wxListbookTo_p_wxWindow(void *x) {
47144 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47145}
704eda0c
RD
47146static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47147 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47148}
1bd55598
RD
47149static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47150 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47151}
47152static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47153 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47154}
47155static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47156 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47157}
47158static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47159 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47160}
47161static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47162 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47163}
47164static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47165 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47166}
47167static void *_p_wxListViewTo_p_wxWindow(void *x) {
47168 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47169}
47170static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47171 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47172}
47173static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47174 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47175}
47176static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47177 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47178}
47179static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47180 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47181}
47182static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47183 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47184}
47185static void *_p_wxSliderTo_p_wxWindow(void *x) {
47186 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47187}
47188static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47189 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47190}
47191static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47192 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47193}
47194static void *_p_wxButtonTo_p_wxWindow(void *x) {
47195 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47196}
47197static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47198 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47199}
47200static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47201 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47202}
47203static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47204 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47205}
b850e7f3
RD
47206static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47207 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47208}
47209static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47210 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47211}
47212static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47213 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47214}
47215static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47216 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47217}
1bd55598
RD
47218static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47219 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47220}
47221static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47222 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47223}
47224static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47225 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47226}
47227static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47228 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47229}
47230static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47231 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47232}
47233static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47234 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47235}
47236static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47237 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47238}
704eda0c
RD
47239static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47240 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47241}
2131d850
RD
47242static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47243 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47244}
b850e7f3
RD
47245static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47246 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47247}
47248static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47249 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47250}
47251static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47252 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47253}
1bd55598
RD
47254static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47255 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47256}
47257static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47258 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47259}
47260static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47261 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47262}
47263static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47264 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47265}
47266static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47267 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47268}
1bd55598
RD
47269static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47270 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47271}
2131d850
RD
47272static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47273 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47274}
1bd55598
RD
47275static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47276 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47277}
47278static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47279 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47280}
47281static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47282 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47283}
47284static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47285 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47286}
47287static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47288 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47289}
47290static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47291 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47292}
47293static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47294 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47295}
47296static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47297 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47298}
47299static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47300 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47301}
47302static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47303 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47304}
47305static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47306 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47307}
47308static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47309 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47310}
47311static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47312 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47313}
47314static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47315 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47316}
47317static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47318 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47319}
47320static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47321 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47322}
47323static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47324 return (void *)((wxValidator *) ((wxPyValidator *) x));
47325}
47326static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47327static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47328static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47329static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47330static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47331static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47332static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47333static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47334static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47335static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47336static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47337static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47338static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47339static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47340static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47341static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47342static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47343static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47344static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47345static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47346static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47347static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47348static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47349static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47350static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47351static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47352static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47353static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47354static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47355static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47356static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47357static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47358static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47359static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47360static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47361static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47362static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47363static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47364static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47365static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47366static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47367static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47368static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47369static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47370static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
47371static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47372static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47373static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47374static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47375static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47376static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47377static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47378static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 47379static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47380static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47381static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47382static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47383static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47384static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47385static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 47386static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47387static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47388static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47389static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47390static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47391static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47392static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47393static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47394static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47395static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47396static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47397static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47398static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47399static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47400static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47401static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47402static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47403static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47404static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 47405static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47406static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47407static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47408static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47409static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47410static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47411static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47412static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47413static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47414static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47415static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47416static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47417static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47418static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47419static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47420static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47421static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47422static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47423static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47424static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47425static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47426static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47427static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47428static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47429static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47430static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47431static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47432static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 47433static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 47434static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
47435static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47436static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47437static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47438static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47439static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47440static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47441static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47442static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47443static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47444static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
47445static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47446static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47447static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47448static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47449static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47450static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47451static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47452static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47453static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47454static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47455static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
47456static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47457static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47458static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47459static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47460static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47461static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47462static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47463static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47464static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47465static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47466static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47467static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47468static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47469static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47470static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47471static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47472static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47473static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47474static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47475static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47476static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47477static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47478static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47479static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47480static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47481static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47482static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47483static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47484static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47485static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47486static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47487static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47488static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47489static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47490static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47491static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47492static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47493static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47494static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47495static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47496static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47497static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47498static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47499static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47500static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47501
47502static swig_type_info *swig_type_initial[] = {
47503 &_swigt__p_bool,
47504 &_swigt__p_char,
47505 &_swigt__p_form_ops_t,
47506 &_swigt__p_int,
47507 &_swigt__p_long,
47508 &_swigt__p_unsigned_char,
47509 &_swigt__p_unsigned_int,
47510 &_swigt__p_unsigned_long,
47511 &_swigt__p_void,
47512 &_swigt__p_wxANIHandler,
47513 &_swigt__p_wxAcceleratorTable,
47514 &_swigt__p_wxActivateEvent,
47515 &_swigt__p_wxArrayInt,
47516 &_swigt__p_wxArrayString,
47517 &_swigt__p_wxBMPHandler,
47518 &_swigt__p_wxBitmap,
47519 &_swigt__p_wxBitmapButton,
47520 &_swigt__p_wxBookCtrlBase,
47521 &_swigt__p_wxBookCtrlBaseEvent,
47522 &_swigt__p_wxBoxSizer,
47523 &_swigt__p_wxButton,
47524 &_swigt__p_wxCURHandler,
47525 &_swigt__p_wxCheckBox,
47526 &_swigt__p_wxCheckListBox,
47527 &_swigt__p_wxChildFocusEvent,
47528 &_swigt__p_wxChoice,
47529 &_swigt__p_wxChoicebook,
47530 &_swigt__p_wxChoicebookEvent,
2131d850 47531 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
47532 &_swigt__p_wxCloseEvent,
47533 &_swigt__p_wxColour,
b850e7f3
RD
47534 &_swigt__p_wxColourPickerCtrl,
47535 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
47536 &_swigt__p_wxComboBox,
47537 &_swigt__p_wxCommandEvent,
47538 &_swigt__p_wxContextHelp,
47539 &_swigt__p_wxContextHelpButton,
47540 &_swigt__p_wxContextMenuEvent,
47541 &_swigt__p_wxControl,
47542 &_swigt__p_wxControlWithItems,
47543 &_swigt__p_wxCursor,
47544 &_swigt__p_wxDC,
47545 &_swigt__p_wxDateEvent,
47546 &_swigt__p_wxDatePickerCtrl,
47547 &_swigt__p_wxDateTime,
47548 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47549 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
47550 &_swigt__p_wxDisplayChangedEvent,
47551 &_swigt__p_wxDropFilesEvent,
47552 &_swigt__p_wxDuplexMode,
47553 &_swigt__p_wxEraseEvent,
47554 &_swigt__p_wxEvent,
47555 &_swigt__p_wxEvtHandler,
47556 &_swigt__p_wxFSFile,
b850e7f3
RD
47557 &_swigt__p_wxFileDirPickerEvent,
47558 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
47559 &_swigt__p_wxFileSystem,
47560 &_swigt__p_wxFlexGridSizer,
47561 &_swigt__p_wxFocusEvent,
47562 &_swigt__p_wxFont,
b850e7f3
RD
47563 &_swigt__p_wxFontPickerCtrl,
47564 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
47565 &_swigt__p_wxGBSizerItem,
47566 &_swigt__p_wxGIFHandler,
47567 &_swigt__p_wxGauge,
47568 &_swigt__p_wxGenericDirCtrl,
47569 &_swigt__p_wxGenericDragImage,
47570 &_swigt__p_wxGridBagSizer,
47571 &_swigt__p_wxGridSizer,
47572 &_swigt__p_wxHelpEvent,
47573 &_swigt__p_wxHelpProvider,
704eda0c
RD
47574 &_swigt__p_wxHyperlinkCtrl,
47575 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
47576 &_swigt__p_wxICOHandler,
47577 &_swigt__p_wxIcon,
47578 &_swigt__p_wxIconizeEvent,
47579 &_swigt__p_wxIdleEvent,
47580 &_swigt__p_wxImage,
47581 &_swigt__p_wxImageHandler,
47582 &_swigt__p_wxImageList,
47583 &_swigt__p_wxIndividualLayoutConstraint,
47584 &_swigt__p_wxInitDialogEvent,
47585 &_swigt__p_wxItemContainer,
47586 &_swigt__p_wxJPEGHandler,
47587 &_swigt__p_wxKeyEvent,
47588 &_swigt__p_wxLayoutConstraints,
47589 &_swigt__p_wxListBox,
47590 &_swigt__p_wxListEvent,
47591 &_swigt__p_wxListItem,
47592 &_swigt__p_wxListItemAttr,
47593 &_swigt__p_wxListView,
47594 &_swigt__p_wxListbook,
47595 &_swigt__p_wxListbookEvent,
47596 &_swigt__p_wxMaximizeEvent,
47597 &_swigt__p_wxMemoryDC,
47598 &_swigt__p_wxMenu,
47599 &_swigt__p_wxMenuBar,
47600 &_swigt__p_wxMenuEvent,
47601 &_swigt__p_wxMenuItem,
47602 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 47603 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
47604 &_swigt__p_wxMouseEvent,
47605 &_swigt__p_wxMoveEvent,
47606 &_swigt__p_wxNavigationKeyEvent,
47607 &_swigt__p_wxNcPaintEvent,
47608 &_swigt__p_wxNotebook,
47609 &_swigt__p_wxNotebookEvent,
47610 &_swigt__p_wxNotifyEvent,
47611 &_swigt__p_wxObject,
47612 &_swigt__p_wxPCXHandler,
47613 &_swigt__p_wxPNGHandler,
47614 &_swigt__p_wxPNMHandler,
47615 &_swigt__p_wxPaintEvent,
47616 &_swigt__p_wxPaletteChangedEvent,
47617 &_swigt__p_wxPaperSize,
b850e7f3 47618 &_swigt__p_wxPickerBase,
1bd55598
RD
47619 &_swigt__p_wxPoint,
47620 &_swigt__p_wxPyApp,
47621 &_swigt__p_wxPyCommandEvent,
47622 &_swigt__p_wxPyControl,
47623 &_swigt__p_wxPyEvent,
47624 &_swigt__p_wxPyImageHandler,
47625 &_swigt__p_wxPyListCtrl,
47626 &_swigt__p_wxPySizer,
47627 &_swigt__p_wxPyTreeCtrl,
47628 &_swigt__p_wxPyTreeItemData,
47629 &_swigt__p_wxPyValidator,
47630 &_swigt__p_wxQueryNewPaletteEvent,
47631 &_swigt__p_wxRadioBox,
47632 &_swigt__p_wxRadioButton,
47633 &_swigt__p_wxRect,
47634 &_swigt__p_wxScrollBar,
47635 &_swigt__p_wxScrollEvent,
47636 &_swigt__p_wxScrollWinEvent,
47637 &_swigt__p_wxSetCursorEvent,
47638 &_swigt__p_wxShowEvent,
47639 &_swigt__p_wxSimpleHelpProvider,
47640 &_swigt__p_wxSize,
47641 &_swigt__p_wxSizeEvent,
47642 &_swigt__p_wxSizer,
47643 &_swigt__p_wxSizerItem,
47644 &_swigt__p_wxSlider,
47645 &_swigt__p_wxSpinButton,
47646 &_swigt__p_wxSpinCtrl,
47647 &_swigt__p_wxSpinEvent,
47648 &_swigt__p_wxStaticBitmap,
47649 &_swigt__p_wxStaticBox,
47650 &_swigt__p_wxStaticBoxSizer,
47651 &_swigt__p_wxStaticLine,
47652 &_swigt__p_wxStaticText,
47653 &_swigt__p_wxStdDialogButtonSizer,
47654 &_swigt__p_wxString,
47655 &_swigt__p_wxSysColourChangedEvent,
47656 &_swigt__p_wxTIFFHandler,
47657 &_swigt__p_wxTextAttr,
47658 &_swigt__p_wxTextCtrl,
47659 &_swigt__p_wxTextUrlEvent,
47660 &_swigt__p_wxToggleButton,
47661 &_swigt__p_wxToolBar,
47662 &_swigt__p_wxToolBarBase,
47663 &_swigt__p_wxToolBarToolBase,
47664 &_swigt__p_wxToolbook,
47665 &_swigt__p_wxToolbookEvent,
1bd55598
RD
47666 &_swigt__p_wxTreeEvent,
47667 &_swigt__p_wxTreeItemId,
47668 &_swigt__p_wxTreebook,
47669 &_swigt__p_wxTreebookEvent,
47670 &_swigt__p_wxUpdateUIEvent,
47671 &_swigt__p_wxValidator,
47672 &_swigt__p_wxVisualAttributes,
47673 &_swigt__p_wxWindow,
b850e7f3 47674 &_swigt__p_wxWindowBase,
1bd55598
RD
47675 &_swigt__p_wxWindowCreateEvent,
47676 &_swigt__p_wxWindowDestroyEvent,
47677 &_swigt__p_wxXPMHandler,
47678};
47679
47680static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47681static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47682static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47683static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47684static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47685static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47686static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47687static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47688static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47689static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47690static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47691static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47692static 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}};
47693static 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}};
47694static 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}};
47695static 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}};
47696static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47697static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47698static 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}};
47699static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47700static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47701static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47702static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47703static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47704static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47705static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47706static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47707static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47708static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47709static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47710static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47711static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47712static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47713static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47714static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47715static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47716static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47717static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47718static 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}};
47719static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47720static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47721static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47722static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47723static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47724static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47725static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47726static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47727static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47728static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47729static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47730static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47731static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47732static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47733static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47734static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47735static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47736static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47737static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47738static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47739static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47740static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47741static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47742static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47743static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47744static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47745static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47746static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47747static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47748static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47749static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47750static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47751static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47752static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47753static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47754static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47755static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47756static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47757static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47758static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 47759static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47760static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47761static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47762static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47763static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47764static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47765static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47766static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}};
704eda0c
RD
47767static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47768static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47769static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47770static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47771static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}};
47772static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47773static swig_cast_info _swigc__p_wxListBox[] = { {&_swigt__p_wxListBox, 0, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxListBox, 0, 0},{0, 0, 0, 0}};
47774static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47775static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47776static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47777static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47778static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47779static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47780static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47781static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47782static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47783static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47784static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
47785static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 47786static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47787static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47788static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47789static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47790static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47791static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47792static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47793static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47794static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47795static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47796static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47797static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47798static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47799static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47800static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47801static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47802static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47803static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47804static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47805static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47806static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47807static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47808static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47809static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47810static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47811static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47812static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47813static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47814static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47815static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
1bd55598 47816static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47817static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47818static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47819static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47820static swig_cast_info _swigc__p_wxPyListCtrl[] = { {&_swigt__p_wxPyListCtrl, 0, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxPyListCtrl, 0, 0},{0, 0, 0, 0}};
47821static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47822static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47823static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47824static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47825static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47826static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47827static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47828static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47829static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47830static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47831static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47832static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47833static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47834static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47835static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47836static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47837static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47838static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47839static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47840static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47841static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47842static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47843static swig_cast_info _swigc__p_wxToolBarBase[] = { {&_swigt__p_wxToolBarBase, 0, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxToolBarBase, 0, 0},{0, 0, 0, 0}};
47844static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47845static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47846static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47847static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47848static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47849static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47850static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47851static 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}};
47852static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47853static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47854static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47855
47856static swig_cast_info *swig_cast_initial[] = {
47857 _swigc__p_bool,
47858 _swigc__p_char,
47859 _swigc__p_form_ops_t,
47860 _swigc__p_int,
47861 _swigc__p_long,
47862 _swigc__p_unsigned_char,
47863 _swigc__p_unsigned_int,
47864 _swigc__p_unsigned_long,
47865 _swigc__p_void,
47866 _swigc__p_wxANIHandler,
47867 _swigc__p_wxAcceleratorTable,
47868 _swigc__p_wxActivateEvent,
47869 _swigc__p_wxArrayInt,
47870 _swigc__p_wxArrayString,
47871 _swigc__p_wxBMPHandler,
47872 _swigc__p_wxBitmap,
47873 _swigc__p_wxBitmapButton,
47874 _swigc__p_wxBookCtrlBase,
47875 _swigc__p_wxBookCtrlBaseEvent,
47876 _swigc__p_wxBoxSizer,
47877 _swigc__p_wxButton,
47878 _swigc__p_wxCURHandler,
47879 _swigc__p_wxCheckBox,
47880 _swigc__p_wxCheckListBox,
47881 _swigc__p_wxChildFocusEvent,
47882 _swigc__p_wxChoice,
47883 _swigc__p_wxChoicebook,
47884 _swigc__p_wxChoicebookEvent,
2131d850 47885 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
47886 _swigc__p_wxCloseEvent,
47887 _swigc__p_wxColour,
b850e7f3
RD
47888 _swigc__p_wxColourPickerCtrl,
47889 _swigc__p_wxColourPickerEvent,
1bd55598
RD
47890 _swigc__p_wxComboBox,
47891 _swigc__p_wxCommandEvent,
47892 _swigc__p_wxContextHelp,
47893 _swigc__p_wxContextHelpButton,
47894 _swigc__p_wxContextMenuEvent,
47895 _swigc__p_wxControl,
47896 _swigc__p_wxControlWithItems,
47897 _swigc__p_wxCursor,
47898 _swigc__p_wxDC,
47899 _swigc__p_wxDateEvent,
47900 _swigc__p_wxDatePickerCtrl,
47901 _swigc__p_wxDateTime,
47902 _swigc__p_wxDirFilterListCtrl,
b850e7f3 47903 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
47904 _swigc__p_wxDisplayChangedEvent,
47905 _swigc__p_wxDropFilesEvent,
47906 _swigc__p_wxDuplexMode,
47907 _swigc__p_wxEraseEvent,
47908 _swigc__p_wxEvent,
47909 _swigc__p_wxEvtHandler,
47910 _swigc__p_wxFSFile,
b850e7f3
RD
47911 _swigc__p_wxFileDirPickerEvent,
47912 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
47913 _swigc__p_wxFileSystem,
47914 _swigc__p_wxFlexGridSizer,
47915 _swigc__p_wxFocusEvent,
47916 _swigc__p_wxFont,
b850e7f3
RD
47917 _swigc__p_wxFontPickerCtrl,
47918 _swigc__p_wxFontPickerEvent,
1bd55598
RD
47919 _swigc__p_wxGBSizerItem,
47920 _swigc__p_wxGIFHandler,
47921 _swigc__p_wxGauge,
47922 _swigc__p_wxGenericDirCtrl,
47923 _swigc__p_wxGenericDragImage,
47924 _swigc__p_wxGridBagSizer,
47925 _swigc__p_wxGridSizer,
47926 _swigc__p_wxHelpEvent,
47927 _swigc__p_wxHelpProvider,
704eda0c
RD
47928 _swigc__p_wxHyperlinkCtrl,
47929 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
47930 _swigc__p_wxICOHandler,
47931 _swigc__p_wxIcon,
47932 _swigc__p_wxIconizeEvent,
47933 _swigc__p_wxIdleEvent,
47934 _swigc__p_wxImage,
47935 _swigc__p_wxImageHandler,
47936 _swigc__p_wxImageList,
47937 _swigc__p_wxIndividualLayoutConstraint,
47938 _swigc__p_wxInitDialogEvent,
47939 _swigc__p_wxItemContainer,
47940 _swigc__p_wxJPEGHandler,
47941 _swigc__p_wxKeyEvent,
47942 _swigc__p_wxLayoutConstraints,
47943 _swigc__p_wxListBox,
47944 _swigc__p_wxListEvent,
47945 _swigc__p_wxListItem,
47946 _swigc__p_wxListItemAttr,
47947 _swigc__p_wxListView,
47948 _swigc__p_wxListbook,
47949 _swigc__p_wxListbookEvent,
47950 _swigc__p_wxMaximizeEvent,
47951 _swigc__p_wxMemoryDC,
47952 _swigc__p_wxMenu,
47953 _swigc__p_wxMenuBar,
47954 _swigc__p_wxMenuEvent,
47955 _swigc__p_wxMenuItem,
47956 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 47957 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
47958 _swigc__p_wxMouseEvent,
47959 _swigc__p_wxMoveEvent,
47960 _swigc__p_wxNavigationKeyEvent,
47961 _swigc__p_wxNcPaintEvent,
47962 _swigc__p_wxNotebook,
47963 _swigc__p_wxNotebookEvent,
47964 _swigc__p_wxNotifyEvent,
47965 _swigc__p_wxObject,
47966 _swigc__p_wxPCXHandler,
47967 _swigc__p_wxPNGHandler,
47968 _swigc__p_wxPNMHandler,
47969 _swigc__p_wxPaintEvent,
47970 _swigc__p_wxPaletteChangedEvent,
47971 _swigc__p_wxPaperSize,
b850e7f3 47972 _swigc__p_wxPickerBase,
1bd55598
RD
47973 _swigc__p_wxPoint,
47974 _swigc__p_wxPyApp,
47975 _swigc__p_wxPyCommandEvent,
47976 _swigc__p_wxPyControl,
47977 _swigc__p_wxPyEvent,
47978 _swigc__p_wxPyImageHandler,
47979 _swigc__p_wxPyListCtrl,
47980 _swigc__p_wxPySizer,
47981 _swigc__p_wxPyTreeCtrl,
47982 _swigc__p_wxPyTreeItemData,
47983 _swigc__p_wxPyValidator,
47984 _swigc__p_wxQueryNewPaletteEvent,
47985 _swigc__p_wxRadioBox,
47986 _swigc__p_wxRadioButton,
47987 _swigc__p_wxRect,
47988 _swigc__p_wxScrollBar,
47989 _swigc__p_wxScrollEvent,
47990 _swigc__p_wxScrollWinEvent,
47991 _swigc__p_wxSetCursorEvent,
47992 _swigc__p_wxShowEvent,
47993 _swigc__p_wxSimpleHelpProvider,
47994 _swigc__p_wxSize,
47995 _swigc__p_wxSizeEvent,
47996 _swigc__p_wxSizer,
47997 _swigc__p_wxSizerItem,
47998 _swigc__p_wxSlider,
47999 _swigc__p_wxSpinButton,
48000 _swigc__p_wxSpinCtrl,
48001 _swigc__p_wxSpinEvent,
48002 _swigc__p_wxStaticBitmap,
48003 _swigc__p_wxStaticBox,
48004 _swigc__p_wxStaticBoxSizer,
48005 _swigc__p_wxStaticLine,
48006 _swigc__p_wxStaticText,
48007 _swigc__p_wxStdDialogButtonSizer,
48008 _swigc__p_wxString,
48009 _swigc__p_wxSysColourChangedEvent,
48010 _swigc__p_wxTIFFHandler,
48011 _swigc__p_wxTextAttr,
48012 _swigc__p_wxTextCtrl,
48013 _swigc__p_wxTextUrlEvent,
48014 _swigc__p_wxToggleButton,
48015 _swigc__p_wxToolBar,
48016 _swigc__p_wxToolBarBase,
48017 _swigc__p_wxToolBarToolBase,
48018 _swigc__p_wxToolbook,
48019 _swigc__p_wxToolbookEvent,
1bd55598
RD
48020 _swigc__p_wxTreeEvent,
48021 _swigc__p_wxTreeItemId,
48022 _swigc__p_wxTreebook,
48023 _swigc__p_wxTreebookEvent,
48024 _swigc__p_wxUpdateUIEvent,
48025 _swigc__p_wxValidator,
48026 _swigc__p_wxVisualAttributes,
48027 _swigc__p_wxWindow,
b850e7f3 48028 _swigc__p_wxWindowBase,
1bd55598
RD
48029 _swigc__p_wxWindowCreateEvent,
48030 _swigc__p_wxWindowDestroyEvent,
48031 _swigc__p_wxXPMHandler,
48032};
48033
48034
48035/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48036
48037static swig_const_info swig_const_table[] = {
48038{0, 0, 0, 0.0, 0, 0}};
48039
48040#ifdef __cplusplus
48041}
48042#endif
48043/* -----------------------------------------------------------------------------
48044 * Type initialization:
48045 * This problem is tough by the requirement that no dynamic
48046 * memory is used. Also, since swig_type_info structures store pointers to
48047 * swig_cast_info structures and swig_cast_info structures store pointers back
48048 * to swig_type_info structures, we need some lookup code at initialization.
48049 * The idea is that swig generates all the structures that are needed.
48050 * The runtime then collects these partially filled structures.
48051 * The SWIG_InitializeModule function takes these initial arrays out of
48052 * swig_module, and does all the lookup, filling in the swig_module.types
48053 * array with the correct data and linking the correct swig_cast_info
48054 * structures together.
48055 *
48056 * The generated swig_type_info structures are assigned staticly to an initial
48057 * array. We just loop though that array, and handle each type individually.
48058 * First we lookup if this type has been already loaded, and if so, use the
48059 * loaded structure instead of the generated one. Then we have to fill in the
48060 * cast linked list. The cast data is initially stored in something like a
48061 * two-dimensional array. Each row corresponds to a type (there are the same
48062 * number of rows as there are in the swig_type_initial array). Each entry in
48063 * a column is one of the swig_cast_info structures for that type.
48064 * The cast_initial array is actually an array of arrays, because each row has
48065 * a variable number of columns. So to actually build the cast linked list,
48066 * we find the array of casts associated with the type, and loop through it
48067 * adding the casts to the list. The one last trick we need to do is making
48068 * sure the type pointer in the swig_cast_info struct is correct.
48069 *
48070 * First off, we lookup the cast->type name to see if it is already loaded.
48071 * There are three cases to handle:
48072 * 1) If the cast->type has already been loaded AND the type we are adding
48073 * casting info to has not been loaded (it is in this module), THEN we
48074 * replace the cast->type pointer with the type pointer that has already
48075 * been loaded.
48076 * 2) If BOTH types (the one we are adding casting info to, and the
48077 * cast->type) are loaded, THEN the cast info has already been loaded by
48078 * the previous module so we just ignore it.
48079 * 3) Finally, if cast->type has not already been loaded, then we add that
48080 * swig_cast_info to the linked list (because the cast->type) pointer will
48081 * be correct.
48082 * ----------------------------------------------------------------------------- */
48083
48084#ifdef __cplusplus
48085extern "C" {
48086#if 0
48087} /* c-mode */
48088#endif
48089#endif
48090
48091#if 0
48092#define SWIGRUNTIME_DEBUG
48093#endif
48094
48095SWIGRUNTIME void
48096SWIG_InitializeModule(void *clientdata) {
48097 size_t i;
48098 swig_module_info *module_head;
48099 static int init_run = 0;
48100
48101 clientdata = clientdata;
48102
48103 if (init_run) return;
48104 init_run = 1;
48105
48106 /* Initialize the swig_module */
48107 swig_module.type_initial = swig_type_initial;
48108 swig_module.cast_initial = swig_cast_initial;
48109
48110 /* Try and load any already created modules */
48111 module_head = SWIG_GetModule(clientdata);
48112 if (module_head) {
48113 swig_module.next = module_head->next;
48114 module_head->next = &swig_module;
48115 } else {
48116 /* This is the first module loaded */
48117 swig_module.next = &swig_module;
48118 SWIG_SetModule(clientdata, &swig_module);
48119 }
48120
48121 /* Now work on filling in swig_module.types */
48122#ifdef SWIGRUNTIME_DEBUG
48123 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48124#endif
48125 for (i = 0; i < swig_module.size; ++i) {
48126 swig_type_info *type = 0;
48127 swig_type_info *ret;
48128 swig_cast_info *cast;
d55e5bfc 48129
1bd55598
RD
48130#ifdef SWIGRUNTIME_DEBUG
48131 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48132#endif
d55e5bfc 48133
1bd55598
RD
48134 /* if there is another module already loaded */
48135 if (swig_module.next != &swig_module) {
48136 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 48137 }
1bd55598
RD
48138 if (type) {
48139 /* Overwrite clientdata field */
48140#ifdef SWIGRUNTIME_DEBUG
48141 printf("SWIG_InitializeModule: found type %s\n", type->name);
48142#endif
48143 if (swig_module.type_initial[i]->clientdata) {
48144 type->clientdata = swig_module.type_initial[i]->clientdata;
48145#ifdef SWIGRUNTIME_DEBUG
48146 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48147#endif
48148 }
48149 } else {
48150 type = swig_module.type_initial[i];
36ed4f51 48151 }
d55e5bfc 48152
1bd55598
RD
48153 /* Insert casting types */
48154 cast = swig_module.cast_initial[i];
48155 while (cast->type) {
48156 /* Don't need to add information already in the list */
48157 ret = 0;
48158#ifdef SWIGRUNTIME_DEBUG
48159 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48160#endif
48161 if (swig_module.next != &swig_module) {
48162 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48163#ifdef SWIGRUNTIME_DEBUG
48164 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48165#endif
48166 }
48167 if (ret) {
48168 if (type == swig_module.type_initial[i]) {
48169#ifdef SWIGRUNTIME_DEBUG
48170 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48171#endif
48172 cast->type = ret;
48173 ret = 0;
48174 } else {
48175 /* Check for casting already in the list */
48176 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48177#ifdef SWIGRUNTIME_DEBUG
48178 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48179#endif
48180 if (!ocast) ret = 0;
48181 }
48182 }
48183
48184 if (!ret) {
48185#ifdef SWIGRUNTIME_DEBUG
48186 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48187#endif
48188 if (type->cast) {
48189 type->cast->prev = cast;
48190 cast->next = type->cast;
48191 }
48192 type->cast = cast;
48193 }
48194 cast++;
36ed4f51 48195 }
1bd55598
RD
48196 /* Set entry in modules->types array equal to the type */
48197 swig_module.types[i] = type;
48198 }
48199 swig_module.types[i] = 0;
48200
48201#ifdef SWIGRUNTIME_DEBUG
48202 printf("**** SWIG_InitializeModule: Cast List ******\n");
48203 for (i = 0; i < swig_module.size; ++i) {
48204 int j = 0;
48205 swig_cast_info *cast = swig_module.cast_initial[i];
48206 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48207 while (cast->type) {
48208 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48209 cast++;
48210 ++j;
48211 }
48212 printf("---- Total casts: %d\n",j);
48213 }
48214 printf("**** SWIG_InitializeModule: Cast List ******\n");
48215#endif
48216}
48217
48218/* This function will propagate the clientdata field of type to
48219* any new swig_type_info structures that have been added into the list
48220* of equivalent types. It is like calling
48221* SWIG_TypeClientData(type, clientdata) a second time.
48222*/
48223SWIGRUNTIME void
48224SWIG_PropagateClientData(void) {
48225 size_t i;
48226 swig_cast_info *equiv;
48227 static int init_run = 0;
48228
48229 if (init_run) return;
48230 init_run = 1;
48231
48232 for (i = 0; i < swig_module.size; i++) {
48233 if (swig_module.types[i]->clientdata) {
48234 equiv = swig_module.types[i]->cast;
48235 while (equiv) {
48236 if (!equiv->converter) {
48237 if (equiv->type && !equiv->type->clientdata)
48238 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48239 }
48240 equiv = equiv->next;
48241 }
36ed4f51 48242 }
1bd55598
RD
48243 }
48244}
48245
48246#ifdef __cplusplus
48247#if 0
48248{
48249 /* c-mode */
48250#endif
48251}
48252#endif
48253
48254
48255
48256#ifdef __cplusplus
48257extern "C" {
48258#endif
48259
48260 /* Python-specific SWIG API */
48261#define SWIG_newvarlink() SWIG_Python_newvarlink()
48262#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48263#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48264
48265 /* -----------------------------------------------------------------------------
48266 * global variable support code.
48267 * ----------------------------------------------------------------------------- */
48268
48269 typedef struct swig_globalvar {
48270 char *name; /* Name of global variable */
48271 PyObject *(*get_attr)(void); /* Return the current value */
48272 int (*set_attr)(PyObject *); /* Set the value */
48273 struct swig_globalvar *next;
48274 } swig_globalvar;
48275
48276 typedef struct swig_varlinkobject {
48277 PyObject_HEAD
48278 swig_globalvar *vars;
48279 } swig_varlinkobject;
48280
48281 SWIGINTERN PyObject *
48282 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48283 return PyString_FromString("<Swig global variables>");
48284 }
48285
48286 SWIGINTERN PyObject *
48287 swig_varlink_str(swig_varlinkobject *v) {
48288 PyObject *str = PyString_FromString("(");
48289 swig_globalvar *var;
48290 for (var = v->vars; var; var=var->next) {
48291 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48292 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48293 }
48294 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48295 return str;
48296 }
48297
48298 SWIGINTERN int
48299 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48300 PyObject *str = swig_varlink_str(v);
48301 fprintf(fp,"Swig global variables ");
48302 fprintf(fp,"%s\n", PyString_AsString(str));
48303 Py_DECREF(str);
48304 return 0;
48305 }
48306
48307 SWIGINTERN void
48308 swig_varlink_dealloc(swig_varlinkobject *v) {
48309 swig_globalvar *var = v->vars;
48310 while (var) {
48311 swig_globalvar *n = var->next;
48312 free(var->name);
48313 free(var);
48314 var = n;
36ed4f51 48315 }
1bd55598
RD
48316 }
48317
48318 SWIGINTERN PyObject *
48319 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48320 PyObject *res = NULL;
48321 swig_globalvar *var = v->vars;
48322 while (var) {
48323 if (strcmp(var->name,n) == 0) {
48324 res = (*var->get_attr)();
48325 break;
48326 }
48327 var = var->next;
36ed4f51 48328 }
1bd55598
RD
48329 if (res == NULL && !PyErr_Occurred()) {
48330 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 48331 }
1bd55598
RD
48332 return res;
48333 }
48334
48335 SWIGINTERN int
48336 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48337 int res = 1;
48338 swig_globalvar *var = v->vars;
48339 while (var) {
48340 if (strcmp(var->name,n) == 0) {
48341 res = (*var->set_attr)(p);
48342 break;
48343 }
48344 var = var->next;
36ed4f51 48345 }
1bd55598
RD
48346 if (res == 1 && !PyErr_Occurred()) {
48347 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48348 }
1bd55598
RD
48349 return res;
48350 }
48351
48352 SWIGINTERN PyTypeObject*
48353 swig_varlink_type(void) {
48354 static char varlink__doc__[] = "Swig var link object";
48355 static PyTypeObject varlink_type;
48356 static int type_init = 0;
48357 if (!type_init) {
48358 const PyTypeObject tmp
48359 = {
48360 PyObject_HEAD_INIT(NULL)
48361 0, /* Number of items in variable part (ob_size) */
48362 (char *)"swigvarlink", /* Type name (tp_name) */
48363 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48364 0, /* Itemsize (tp_itemsize) */
48365 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48366 (printfunc) swig_varlink_print, /* Print (tp_print) */
48367 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48368 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48369 0, /* tp_compare */
48370 (reprfunc) swig_varlink_repr, /* tp_repr */
48371 0, /* tp_as_number */
48372 0, /* tp_as_sequence */
48373 0, /* tp_as_mapping */
48374 0, /* tp_hash */
48375 0, /* tp_call */
48376 (reprfunc)swig_varlink_str, /* tp_str */
48377 0, /* tp_getattro */
48378 0, /* tp_setattro */
48379 0, /* tp_as_buffer */
48380 0, /* tp_flags */
48381 varlink__doc__, /* tp_doc */
48382 0, /* tp_traverse */
48383 0, /* tp_clear */
48384 0, /* tp_richcompare */
48385 0, /* tp_weaklistoffset */
48386#if PY_VERSION_HEX >= 0x02020000
48387 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48388#endif
48389#if PY_VERSION_HEX >= 0x02030000
48390 0, /* tp_del */
48391#endif
48392#ifdef COUNT_ALLOCS
48393 0,0,0,0 /* tp_alloc -> tp_next */
48394#endif
48395 };
48396 varlink_type = tmp;
48397 varlink_type.ob_type = &PyType_Type;
48398 type_init = 1;
53aa7709 48399 }
1bd55598
RD
48400 return &varlink_type;
48401 }
48402
48403 /* Create a variable linking object for use later */
48404 SWIGINTERN PyObject *
48405 SWIG_Python_newvarlink(void) {
48406 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48407 if (result) {
48408 result->vars = 0;
48409 }
48410 return ((PyObject*) result);
48411 }
48412
48413 SWIGINTERN void
48414 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48415 swig_varlinkobject *v = (swig_varlinkobject *) p;
48416 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48417 if (gv) {
48418 size_t size = strlen(name)+1;
48419 gv->name = (char *)malloc(size);
48420 if (gv->name) {
48421 strncpy(gv->name,name,size);
48422 gv->get_attr = get_attr;
48423 gv->set_attr = set_attr;
48424 gv->next = v->vars;
48425 }
53aa7709 48426 }
1bd55598
RD
48427 v->vars = gv;
48428 }
48429
48430 SWIGINTERN PyObject *
48431 SWIG_globals() {
48432 static PyObject *_SWIG_globals = 0;
48433 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48434 return _SWIG_globals;
48435 }
48436
48437 /* -----------------------------------------------------------------------------
48438 * constants/methods manipulation
48439 * ----------------------------------------------------------------------------- */
48440
48441 /* Install Constants */
48442 SWIGINTERN void
48443 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48444 PyObject *obj = 0;
48445 size_t i;
48446 for (i = 0; constants[i].type; ++i) {
48447 switch(constants[i].type) {
48448 case SWIG_PY_POINTER:
48449 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48450 break;
48451 case SWIG_PY_BINARY:
48452 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48453 break;
48454 default:
48455 obj = 0;
48456 break;
48457 }
48458 if (obj) {
48459 PyDict_SetItemString(d, constants[i].name, obj);
48460 Py_DECREF(obj);
48461 }
53aa7709 48462 }
1bd55598
RD
48463 }
48464
48465 /* -----------------------------------------------------------------------------*/
48466 /* Fix SwigMethods to carry the callback ptrs when needed */
48467 /* -----------------------------------------------------------------------------*/
48468
48469 SWIGINTERN void
48470 SWIG_Python_FixMethods(PyMethodDef *methods,
48471 swig_const_info *const_table,
48472 swig_type_info **types,
48473 swig_type_info **types_initial) {
48474 size_t i;
48475 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 48476 const char *c = methods[i].ml_doc;
1bd55598
RD
48477 if (c && (c = strstr(c, "swig_ptr: "))) {
48478 int j;
48479 swig_const_info *ci = 0;
3d6c9062 48480 const char *name = c + 10;
1bd55598
RD
48481 for (j = 0; const_table[j].type; ++j) {
48482 if (strncmp(const_table[j].name, name,
48483 strlen(const_table[j].name)) == 0) {
48484 ci = &(const_table[j]);
48485 break;
48486 }
48487 }
48488 if (ci) {
48489 size_t shift = (ci->ptype) - types;
48490 swig_type_info *ty = types_initial[shift];
48491 size_t ldoc = (c - methods[i].ml_doc);
48492 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48493 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48494 if (ndoc) {
48495 char *buff = ndoc;
48496 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48497 if (ptr) {
48498 strncpy(buff, methods[i].ml_doc, ldoc);
48499 buff += ldoc;
48500 strncpy(buff, "swig_ptr: ", 10);
48501 buff += 10;
48502 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48503 methods[i].ml_doc = ndoc;
48504 }
48505 }
48506 }
48507 }
53aa7709 48508 }
1bd55598
RD
48509 }
48510
48511#ifdef __cplusplus
48512}
48513#endif
48514
48515/* -----------------------------------------------------------------------------*
48516 * Partial Init method
48517 * -----------------------------------------------------------------------------*/
48518
48519#ifdef __cplusplus
48520extern "C"
48521#endif
48522SWIGEXPORT void SWIG_init(void) {
48523 PyObject *m, *d;
48524
48525 /* Fix SwigMethods to carry the callback ptrs when needed */
48526 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48527
48528 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48529 d = PyModule_GetDict(m);
48530
48531 SWIG_InitializeModule(0);
48532 SWIG_InstallConstants(d,swig_const_table);
48533
48534
48535 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48536 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48537 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48538 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48539 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48540 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48541 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48542 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48543 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48544 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48545 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48546 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48547 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48548 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48549 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48550 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48551 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48552 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48553 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48554 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48555 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48556 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
48557 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48558 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48559 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48560 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48561 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48562 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48563 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48564 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48565 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48566 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48567 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48568 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48569 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48570 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48571 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48572 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48573 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48574 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48575 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48576 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48577 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48578 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48579 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
48580 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48581 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48582 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48583 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48584 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48585 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48586 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48587 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48588 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48589 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48590 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48591 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48592 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48593 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48594 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48595 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48596 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48597 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48598 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48599 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48600 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48601 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48602 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48603 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48604 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48605 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48606 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48607 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48608 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48609 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48610 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48611 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48612 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48613 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48614 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48615 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48616 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48617 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48618 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48619 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48620 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48621 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48622 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48623 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48624 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48625 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48626 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48627 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48628 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48629 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48630 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48631 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48632 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48633 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48634 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48635 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48636 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48637 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48638 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48639 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48640 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48641 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48642 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48643 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48644 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48645 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48646 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48647 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48648 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
48649 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48650 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48651 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48652 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48653 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48654 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48655 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48656 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48657 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48658 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48659 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48660 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
48661 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48662 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48663 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48664 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48665 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48666 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48667 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48668 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48669 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48670 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48671 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48672 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48673 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48674 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48675 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48676 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48677 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48678 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48679 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48680 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48681 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48682 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48683 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48684 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48685 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48686 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48687 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48688 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48689 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48690 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48691 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48692 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48693 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48694 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48695 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48696 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48697 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48698 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48699 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
48700 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48701 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48702 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48703 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48704 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48705 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48706 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48707 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48708 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48709 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48710 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48711 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48712 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48713 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48714 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48715 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48716 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48717 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48718 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48719 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48720 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48721 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48722 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48723 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48724 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48725 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48726 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48727 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48728 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48729 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48730 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48731 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48732 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48733 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48734 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48735 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48736 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48737 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48738 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48739 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48740 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48741 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48742 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48743 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48744 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48745 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48746 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48747 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
48748 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48749 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48750 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48751 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48752 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48753 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48754 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48755 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48756 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48757 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48758 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48759 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48760 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48761 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48762 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48763 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48764 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48765 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48766 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48767 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48768 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48769 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48770 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48771 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48772 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48773 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48774 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48775 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48776 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48777 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48778 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48779 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48780 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48781 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48782 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48783 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48784 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48785 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48786 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48787 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48788 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48789 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48790
48791 // Map renamed classes back to their common name for OOR
48792 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48793
48794 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48795 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48796 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48797 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48798 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48799 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48800 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48801 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48802 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48803 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48804 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48805 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48806 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48807 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48808 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
48809 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48810 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48811 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48812 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48813 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48814 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48815 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48816 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48817 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48818 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48819 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48820 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48821 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48822 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48823 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48824 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48825 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48826 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48827 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48830 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48831 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48832 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48833 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48834 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48835 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48836 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48837 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48838 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48839 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48840 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48841 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48842 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48843 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48844 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48845 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48846 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48847 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48848 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48849 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
48850
48851 // Map renamed classes back to their common name for OOR
48852 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48853 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48854
48855 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48856 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48857 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48858 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48859 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48860 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48861 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48862 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48863 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48864 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48865 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48866 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48867 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
48868
48869 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48870
48871 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48872 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48873 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48874 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48875 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48876 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
48877 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48878 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48879 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48880 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
48881 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48882 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48883 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48884 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48885 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48886 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48887 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48888 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48889 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48890 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48891 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48892 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48893 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48894 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48895 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48896 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48897 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48898 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48899 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48900 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48901 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48902 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48903 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48904 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48905 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48906 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48907 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48908 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48909 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48910 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
48911}
48912