]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_controls_wrap.cpp
removed 'unsigned' from 'unsigned int' so epydoc doesn't get ocnfused
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 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
554f62e9 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);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
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
7449af73 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
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
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
554f62e9 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
7449af73
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
554f62e9 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
7449af73
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
7449af73
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
7449af73 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
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
554f62e9
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
554f62e9
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
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
554f62e9
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
554f62e9
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9
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)
7449af73 1016
d55e5bfc 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
093d3ff1 1032
554f62e9 1033/* Error manipulation */
093d3ff1 1034
554f62e9
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
554f62e9
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
093d3ff1 1048}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
093d3ff1 1053
554f62e9
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
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c32bde28 1088 } else {
554f62e9
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c32bde28 1100 }
554f62e9
RD
1101 return result;
1102#endif
d55e5bfc 1103}
093d3ff1 1104
554f62e9 1105/* Unpack the argument tuple */
093d3ff1 1106
554f62e9
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
7449af73 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
554f62e9
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
554f62e9
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
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
7449af73 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
9d7dfdff 1724
093d3ff1
RD
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))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
554f62e9
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1
RD
1754}
1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
093d3ff1 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1
RD
1880}
1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
093d3ff1
RD
1947 }
1948}
1949
554f62e9
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
554f62e9 1962 return 0;
093d3ff1
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
2071
554f62e9 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
554f62e9
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
554f62e9
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
554f62e9
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
554f62e9
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1
RD
2158}
2159
554f62e9
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
554f62e9
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
7449af73
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
093d3ff1 2248#endif
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
093d3ff1 2284
554f62e9
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
7449af73
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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
093d3ff1 2314
554f62e9
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
093d3ff1 2321
554f62e9
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]
7449af73
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
2520#define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521#define SWIGTYPE_p_wxFSFile swig_types[55]
2522#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523#define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524#define SWIGTYPE_p_wxFileSystem swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530#define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531#define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532#define SWIGTYPE_p_wxGauge swig_types[66]
2533#define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534#define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535#define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536#define SWIGTYPE_p_wxGridSizer swig_types[70]
2537#define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538#define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544#define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545#define SWIGTYPE_p_wxImage swig_types[79]
2546#define SWIGTYPE_p_wxImageHandler swig_types[80]
2547#define SWIGTYPE_p_wxImageList swig_types[81]
2548#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549#define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550#define SWIGTYPE_p_wxItemContainer swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554#define SWIGTYPE_p_wxListBox swig_types[88]
2555#define SWIGTYPE_p_wxListEvent swig_types[89]
2556#define SWIGTYPE_p_wxListItem swig_types[90]
2557#define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558#define SWIGTYPE_p_wxListView swig_types[92]
2559#define SWIGTYPE_p_wxListbook swig_types[93]
2560#define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561#define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562#define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563#define SWIGTYPE_p_wxMenu swig_types[97]
2564#define SWIGTYPE_p_wxMenuBar swig_types[98]
2565#define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566#define SWIGTYPE_p_wxMenuItem swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572#define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotebook swig_types[107]
2574#define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575#define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576#define SWIGTYPE_p_wxObject swig_types[110]
2577#define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578#define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580#define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaperSize swig_types[116]
2583#define SWIGTYPE_p_wxPickerBase swig_types[117]
2584#define SWIGTYPE_p_wxPoint swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyControl swig_types[121]
2588#define SWIGTYPE_p_wxPyEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRadioBox swig_types[130]
2597#define SWIGTYPE_p_wxRadioButton swig_types[131]
2598#define SWIGTYPE_p_wxRect swig_types[132]
2599#define SWIGTYPE_p_wxScrollBar swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602#define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603#define SWIGTYPE_p_wxShowEvent swig_types[137]
2604#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[138]
2605#define SWIGTYPE_p_wxSize swig_types[139]
2606#define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607#define SWIGTYPE_p_wxSizer swig_types[141]
2608#define SWIGTYPE_p_wxSizerItem swig_types[142]
2609#define SWIGTYPE_p_wxSlider swig_types[143]
2610#define SWIGTYPE_p_wxSpinButton swig_types[144]
2611#define SWIGTYPE_p_wxSpinCtrl swig_types[145]
2612#define SWIGTYPE_p_wxSpinEvent swig_types[146]
2613#define SWIGTYPE_p_wxStaticBitmap swig_types[147]
2614#define SWIGTYPE_p_wxStaticBox swig_types[148]
2615#define SWIGTYPE_p_wxStaticBoxSizer swig_types[149]
2616#define SWIGTYPE_p_wxStaticLine swig_types[150]
2617#define SWIGTYPE_p_wxStaticText swig_types[151]
2618#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[152]
2619#define SWIGTYPE_p_wxString swig_types[153]
2620#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[154]
2621#define SWIGTYPE_p_wxTGAHandler swig_types[155]
2622#define SWIGTYPE_p_wxTIFFHandler swig_types[156]
2623#define SWIGTYPE_p_wxTextAttr swig_types[157]
2624#define SWIGTYPE_p_wxTextCtrl swig_types[158]
2625#define SWIGTYPE_p_wxTextUrlEvent swig_types[159]
2626#define SWIGTYPE_p_wxToggleButton swig_types[160]
2627#define SWIGTYPE_p_wxToolBar swig_types[161]
2628#define SWIGTYPE_p_wxToolBarBase swig_types[162]
2629#define SWIGTYPE_p_wxToolBarToolBase swig_types[163]
2630#define SWIGTYPE_p_wxToolbook swig_types[164]
2631#define SWIGTYPE_p_wxToolbookEvent swig_types[165]
2632#define SWIGTYPE_p_wxTreeEvent swig_types[166]
2633#define SWIGTYPE_p_wxTreeItemId swig_types[167]
2634#define SWIGTYPE_p_wxTreebook swig_types[168]
2635#define SWIGTYPE_p_wxTreebookEvent swig_types[169]
2636#define SWIGTYPE_p_wxUpdateUIEvent swig_types[170]
2637#define SWIGTYPE_p_wxValidator swig_types[171]
2638#define SWIGTYPE_p_wxVisualAttributes swig_types[172]
2639#define SWIGTYPE_p_wxWindow swig_types[173]
2640#define SWIGTYPE_p_wxWindowBase swig_types[174]
2641#define SWIGTYPE_p_wxWindowCreateEvent swig_types[175]
2642#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[176]
2643#define SWIGTYPE_p_wxXPMHandler swig_types[177]
2644static swig_type_info *swig_types[179];
2645static swig_module_info swig_module = {swig_types, 178, 0, 0, 0, 0};
7449af73
RD
2646#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2647#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2648
2649/* -------- TYPES TABLE (END) -------- */
2650
554f62e9
RD
2651#if (PY_VERSION_HEX <= 0x02000000)
2652# if !defined(SWIG_PYTHON_CLASSIC)
2653# error "This python version requires to use swig with the '-classic' option"
2654# endif
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodern' option"
2658#endif
2659#if (PY_VERSION_HEX <= 0x02020000)
2660# error "This python version requires to use swig with the '-nomodernargs' option"
2661#endif
2662#ifndef METH_O
2663# error "This python version requires to use swig with the '-nofastunpack' option"
2664#endif
093d3ff1
RD
2665
2666/*-----------------------------------------------
2667 @(target):= _controls_.so
2668 ------------------------------------------------*/
2669#define SWIG_init init_controls_
2670
2671#define SWIG_name "_controls_"
2672
554f62e9
RD
2673#define SWIGVERSION 0x010329
2674
2675
2676#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2677#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2678
2679
2680#include <stdexcept>
2681
2682
2683namespace swig {
2684 class PyObject_ptr {
2685 protected:
2686 PyObject *_obj;
2687
2688 public:
2689 PyObject_ptr() :_obj(0)
2690 {
2691 }
2692
2693 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2694 {
2695 Py_XINCREF(_obj);
2696 }
2697
2698 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2699 {
2700 if (initial_ref) Py_XINCREF(_obj);
2701 }
2702
2703 PyObject_ptr & operator=(const PyObject_ptr& item)
2704 {
2705 Py_XINCREF(item._obj);
2706 Py_XDECREF(_obj);
2707 _obj = item._obj;
2708 return *this;
2709 }
2710
2711 ~PyObject_ptr()
2712 {
2713 Py_XDECREF(_obj);
2714 }
2715
2716 operator PyObject *() const
2717 {
2718 return _obj;
2719 }
2720
2721 PyObject *operator->() const
2722 {
2723 return _obj;
2724 }
2725 };
2726}
2727
2728
2729namespace swig {
2730 struct PyObject_var : PyObject_ptr {
2731 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2732
2733 PyObject_var & operator = (PyObject* obj)
2734 {
2735 Py_XDECREF(_obj);
2736 _obj = obj;
2737 return *this;
2738 }
2739 };
2740}
2741
2742
093d3ff1
RD
2743#include "wx/wxPython/wxPython.h"
2744#include "wx/wxPython/pyclasses.h"
2745
2746 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2747 static const wxString wxPyEmptyString(wxEmptyString);
2748 static const wxString wxPyControlNameStr(wxControlNameStr);
2749
2750 const wxArrayString wxPyEmptyStringArray;
2751
2752 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2753
554f62e9 2754 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2755
2756
554f62e9
RD
2757SWIGINTERNINLINE PyObject *
2758SWIG_From_int (int value)
2759{
2760 return SWIG_From_long (value);
2761}
093d3ff1
RD
2762
2763
554f62e9
RD
2764#include <limits.h>
2765#ifndef LLONG_MIN
2766# define LLONG_MIN LONG_LONG_MIN
2767#endif
2768#ifndef LLONG_MAX
2769# define LLONG_MAX LONG_LONG_MAX
2770#endif
2771#ifndef ULLONG_MAX
2772# define ULLONG_MAX ULONG_LONG_MAX
2773#endif
093d3ff1
RD
2774
2775
2776SWIGINTERN int
554f62e9 2777SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2778{
2779 if (PyNumber_Check(obj)) {
2780 if (val) *val = PyInt_AsLong(obj);
554f62e9 2781 return SWIG_OK;
093d3ff1 2782 }
554f62e9 2783 return SWIG_TypeError;
093d3ff1
RD
2784}
2785
2786
093d3ff1 2787SWIGINTERN int
554f62e9
RD
2788SWIG_AsVal_int (PyObject * obj, int *val)
2789{
093d3ff1 2790 long v;
554f62e9
RD
2791 int res = SWIG_AsVal_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v < INT_MIN || v > INT_MAX)) {
2794 return SWIG_OverflowError;
093d3ff1 2795 } else {
554f62e9 2796 if (val) *val = static_cast< int >(v);
093d3ff1 2797 }
554f62e9
RD
2798 }
2799 return res;
d55e5bfc
RD
2800}
2801
c32bde28 2802 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2803
093d3ff1 2804SWIGINTERN int
554f62e9 2805SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2806{
c32bde28
RD
2807 if (obj == Py_True) {
2808 if (val) *val = true;
554f62e9
RD
2809 return SWIG_OK;
2810 } else if (obj == Py_False) {
c32bde28 2811 if (val) *val = false;
554f62e9 2812 return SWIG_OK;
093d3ff1 2813 } else {
554f62e9
RD
2814 long v = 0;
2815 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2816 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2817 return res;
c32bde28 2818 }
d55e5bfc
RD
2819}
2820
2821 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2822 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2823 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2824 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2825 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2826 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2827
2828#include <wx/checklst.h>
d55e5bfc
RD
2829
2830 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
554f62e9 2831SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2832 if (clientData)
2833 {
d55e5bfc
RD
2834 wxPyClientData* data = new wxPyClientData(clientData);
2835 self->Insert(item, pos, data);
e9d6f3a4
RD
2836 }
2837 else
d55e5bfc
RD
2838 self->Insert(item, pos);
2839 }
50f151d7
RD
2840
2841SWIGINTERN int
2842SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2843{
2844 long v = 0;
2845 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2846 return SWIG_TypeError;
2847 }
2848 else if (val)
2849 *val = (unsigned long)v;
2850 return SWIG_OK;
2851}
2852
2853
2854SWIGINTERN int
2855SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2856{
2857 unsigned long v;
2858 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v > UINT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< unsigned int >(v);
2864 }
2865 }
2866 return res;
2867}
2868
554f62e9 2869SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2870 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2871 wxArrayInt lst;
2872 self->GetSelections(lst);
2873 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2874 for (size_t i=0; i<lst.GetCount(); i++)
2875 {
7e08d4ef
RD
2876 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2877 }
e9d6f3a4 2878 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2879 return tup;
2880 }
554f62e9 2881SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2882 #ifdef __WXMSW__
2883 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2884 self->GetItem(item)->SetTextColour(c);
2885 #endif
2886 }
554f62e9 2887SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2888 #ifdef __WXMSW__
2889 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2890 self->GetItem(item)->SetBackgroundColour(c);
2891 #endif
2892 }
554f62e9 2893SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2894 #ifdef __WXMSW__
2895 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2896 self->GetItem(item)->SetFont(f);
2897 #endif
2898 }
2899 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
554f62e9 2900SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2901 self->AppendText(text);
2902 }
554f62e9 2903SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2904 return self->GetValue().Mid(from, to - from);
2905 }
2906 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2907 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2908 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2909 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2910 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2911
1c71765a
RD
2912SWIGINTERNINLINE PyObject*
2913SWIG_From_unsigned_SS_long (unsigned long value)
2914{
2915 return (value > LONG_MAX) ?
2916 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2917}
2918
2919
2920SWIGINTERNINLINE PyObject *
2921SWIG_From_size_t (size_t value)
2922{
2923 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2924}
2925
2926
50f151d7
RD
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_unsigned_SS_int (unsigned int value)
2929{
2930 return SWIG_From_unsigned_SS_long (value);
2931}
2932
2933
d55e5bfc
RD
2934#include <wx/slider.h>
2935
2936
2937 static const wxString wxPySliderNameStr(wxSliderNameStr);
2938 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2939
2940#if !wxUSE_TOGGLEBTN
2941// implement dummy items for platforms that don't have this class
2942
2943#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2944
2945class wxToggleButton : public wxControl
2946{
2947public:
2948 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2949 const wxPoint&, const wxSize&, long,
2950 const wxValidator&, const wxString&)
2951 { wxPyRaiseNotImplemented(); }
2952
2953 wxToggleButton()
2954 { wxPyRaiseNotImplemented(); }
2955};
2956#endif
2957
51b83b37 2958 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2959
7e08d4ef 2960SWIGINTERNINLINE int
554f62e9 2961SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2962{
7e08d4ef 2963 unsigned long v;
554f62e9
RD
2964 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2965 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2966 return res;
7e08d4ef 2967}
7e08d4ef 2968
d55e5bfc 2969 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
554f62e9 2970SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2971 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2972 if (udata) {
2973 Py_INCREF(udata->m_obj);
2974 return udata->m_obj;
2975 } else {
2976 Py_INCREF(Py_None);
2977 return Py_None;
2978 }
2979 }
554f62e9 2980SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2981 self->SetClientData(new wxPyUserData(clientData));
2982 }
554f62e9 2983SWIGINTERN 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
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
554f62e9 2990SWIGINTERN 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
2991 wxPyUserData* udata = NULL;
2992 if (clientData && clientData != Py_None)
2993 udata = new wxPyUserData(clientData);
2994 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2995 shortHelp, longHelp, udata);
2996 }
554f62e9 2997SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2998 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2999 if (udata) {
3000 Py_INCREF(udata->m_obj);
3001 return udata->m_obj;
3002 } else {
3003 Py_INCREF(Py_None);
3004 return Py_None;
3005 }
3006 }
554f62e9 3007SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3008 self->SetToolClientData(id, new wxPyUserData(clientData));
3009 }
3010
3011#include <wx/listctrl.h>
3012
fef4c27a 3013 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
554f62e9 3014SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3015 // Python aware sorting function for wxPyListCtrl
3016 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3017 int retval = 0;
3018 PyObject* func = (PyObject*)funcPtr;
5a446332 3019 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3020
3021 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3022 PyObject* result = PyEval_CallObject(func, args);
3023 Py_DECREF(args);
3024 if (result) {
3025 retval = PyInt_AsLong(result);
3026 Py_DECREF(result);
3027 }
3028
3029 wxPyEndBlockThreads(blocked);
3030 return retval;
3031 }
3032
3033 // C++ Version of a Python aware class
3034class wxPyListCtrl : public wxListCtrl {
7449af73 3035 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3036public:
3037 wxPyListCtrl() : wxListCtrl() {}
3038 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3039 const wxPoint& pos,
3040 const wxSize& size,
3041 long style,
3042 const wxValidator& validator,
3043 const wxString& name) :
3044 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3045
3046 bool Create(wxWindow* parent, wxWindowID id,
3047 const wxPoint& pos,
3048 const wxSize& size,
3049 long style,
3050 const wxValidator& validator,
3051 const wxString& name) {
3052 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3053 }
3054
3055 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3056 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3057
84f85550
RD
3058 // use the virtual version to avoid a confusing assert in the base class
3059 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3060 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3061
d55e5bfc
RD
3062 PYPRIVATE;
3063};
3064
3065IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3066
3067IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3068IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3069IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
c25f90f6 3070IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
7e08d4ef 3071
d55e5bfc 3072
554f62e9 3073SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3074 wxListItem item;
3075 item.SetMask( wxLIST_MASK_STATE |
3076 wxLIST_MASK_TEXT |
3077 wxLIST_MASK_IMAGE |
3078 wxLIST_MASK_DATA |
3079 wxLIST_SET_ITEM |
3080 wxLIST_MASK_WIDTH |
3081 wxLIST_MASK_FORMAT
3082 );
3083 if (self->GetColumn(col, item))
3084 return new wxListItem(item);
3085 else
3086 return NULL;
3087 }
554f62e9 3088SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3089 wxListItem* info = new wxListItem;
3090 info->m_itemId = itemId;
3091 info->m_col = col;
3092 info->m_mask = 0xFFFF;
3093 self->GetItem(*info);
3094 return info;
3095 }
554f62e9 3096SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3097 wxPoint pos;
3098 self->GetItemPosition(item, pos);
3099 return pos;
3100 }
554f62e9 3101SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3102 wxRect rect;
3103 self->GetItemRect(item, rect, code);
3104 return rect;
3105 }
554f62e9 3106SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3107 if (!PyCallable_Check(func))
ae8162c8 3108 return false;
d55e5bfc
RD
3109 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3110 }
554f62e9 3111SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3112
3113 return self;
3114
3115
3116
3117 }
3118
3119#include <wx/treectrl.h>
3120#include "wx/wxPython/pytree.h"
3121
3122 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
554f62e9
RD
3123SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3124SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3125SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3126
3127 static wxTreeItemId wxNullTreeItemId;
3128
d55e5bfc
RD
3129 // C++ version of Python aware wxTreeCtrl
3130class wxPyTreeCtrl : public wxTreeCtrl {
7449af73 3131 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3132public:
3133 wxPyTreeCtrl() : wxTreeCtrl() {}
3134 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3135 const wxPoint& pos,
3136 const wxSize& size,
3137 long style,
3138 const wxValidator& validator,
3139 const wxString& name) :
3140 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3141
3142 bool Create(wxWindow *parent, wxWindowID id,
3143 const wxPoint& pos,
3144 const wxSize& size,
3145 long style,
3146 const wxValidator& validator,
3147 const wxString& name) {
3148 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3149 }
3150
3151
3152 int OnCompareItems(const wxTreeItemId& item1,
3153 const wxTreeItemId& item2) {
3154 int rval = 0;
3155 bool found;
5a446332 3156 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3157 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3158 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3159 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3160 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3161 Py_DECREF(o1);
3162 Py_DECREF(o2);
3163 }
3164 wxPyEndBlockThreads(blocked);
3165 if (! found)
3166 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3167 return rval;
3168 }
3169 PYPRIVATE;
3170};
3171
3172IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3173
3174
554f62e9 3175SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData();
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 }
3182 return data;
3183 }
554f62e9 3184SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3185 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3186 if (data == NULL) {
3187 data = new wxPyTreeItemData();
3188 data->SetId(item); // set the id
3189 self->SetItemData(item, data);
3190 }
3191 return data->GetData();
3192 }
554f62e9 3193SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 }
554f62e9 3197SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3198 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3199 if (data == NULL) {
3200 data = new wxPyTreeItemData(obj);
3201 data->SetId(item); // set the id
3202 self->SetItemData(item, data);
3203 } else
3204 data->SetData(obj);
3205 }
554f62e9 3206SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3208 PyObject* rval = PyList_New(0);
3209 wxArrayTreeItemIds array;
3210 size_t num, x;
3211 num = self->GetSelections(array);
3212 for (x=0; x < num; x++) {
3213 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3214 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3215 PyList_Append(rval, item);
a07a67e6 3216 Py_DECREF(item);
d55e5bfc
RD
3217 }
3218 wxPyEndBlockThreads(blocked);
3219 return rval;
3220 }
554f62e9 3221SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3222 void* cookie = 0;
3223 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3225 PyObject* tup = PyTuple_New(2);
ae8162c8 3226 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3227 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3228 wxPyEndBlockThreads(blocked);
3229 return tup;
3230 }
554f62e9 3231SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3232 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3233 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3234 PyObject* tup = PyTuple_New(2);
ae8162c8 3235 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3236 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3237 wxPyEndBlockThreads(blocked);
3238 return tup;
3239 }
554f62e9 3240SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3241 wxRect rect;
3242 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3243 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3244 wxRect* r = new wxRect(rect);
ae8162c8 3245 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3246 wxPyEndBlockThreads(blocked);
3247 return val;
3248 }
3249 else
3250 RETURN_NONE();
3251 }
3252 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3253
7449af73 3254SWIGINTERNINLINE PyObject*
554f62e9 3255 SWIG_From_bool (bool value)
c32bde28 3256{
554f62e9 3257 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3258}
3259
d55e5bfc
RD
3260 // C++ version of Python aware wxControl
3261class wxPyControl : public wxControl
3262{
3263 DECLARE_DYNAMIC_CLASS(wxPyControl)
3264public:
3265 wxPyControl() : wxControl() {}
3266 wxPyControl(wxWindow* parent, const wxWindowID id,
3267 const wxPoint& pos = wxDefaultPosition,
3268 const wxSize& size = wxDefaultSize,
3269 long style = 0,
3270 const wxValidator& validator=wxDefaultValidator,
3271 const wxString& name = wxPyControlNameStr)
3272 : wxControl(parent, id, pos, size, style, validator, name) {}
3273
3274
60d5fcc1
RD
3275 bool DoEraseBackground(wxDC* dc) {
3276#ifdef __WXMSW__
3277 return wxWindow::DoEraseBackground(dc->GetHDC());
3278#else
3279 dc->SetBackground(wxBrush(GetBackgroundColour()));
3280 dc->Clear();
3281 return true;
3282#endif
3283 }
3284
d55e5bfc
RD
3285 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3286 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3287 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3288 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3289
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3291 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3293
3294 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3295 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3296
3297 DEC_PYCALLBACK__(InitDialog);
3298 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3299 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3300 DEC_PYCALLBACK_BOOL_(Validate);
3301
3302 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3303 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3304 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3305
3306 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3307 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3308
caef1a4d 3309 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
caef1a4d 3310 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3311
51b83b37
RD
3312 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3313
8d38bd1d
RD
3314 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3315
d55e5bfc
RD
3316 PYPRIVATE;
3317};
3318
3319IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3320
3321IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3322IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3323IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3324IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3325
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3327IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3328IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3329
3330IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3331IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3332
3333IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3335IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3336IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3337
3338IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3339IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3340IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3341
3342IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3343IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3344
caef1a4d 3345IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
caef1a4d 3346IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3347
51b83b37 3348IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3349
3350IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3351
d55e5bfc
RD
3352
3353
554f62e9 3354SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3355
3356#include <wx/generic/dragimgg.h>
3357
53aa7709 3358 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
554f62e9 3359SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3360 wxDateTime rv;
3361 self->GetRange(&rv, NULL);
3362 return rv;
3363 }
554f62e9 3364SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3365 wxDateTime rv;
3366 self->GetRange(NULL, &rv);
3367 return rv;
3368 }
704eda0c 3369 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3370 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3371 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3372 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3373 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3374 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3375 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3376 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3377 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
d55e5bfc
RD
3378#ifdef __cplusplus
3379extern "C" {
3380#endif
554f62e9
RD
3381SWIGINTERN int ButtonNameStr_set(PyObject *) {
3382 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3383 return 1;
d55e5bfc
RD
3384}
3385
3386
554f62e9
RD
3387SWIGINTERN PyObject *ButtonNameStr_get(void) {
3388 PyObject *pyobj = 0;
3389
3390 {
d55e5bfc 3391#if wxUSE_UNICODE
554f62e9 3392 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3393#else
554f62e9 3394 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3395#endif
554f62e9
RD
3396 }
3397 return pyobj;
3398}
3399
3400
3401SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj = 0;
3403 wxWindow *arg1 = (wxWindow *) 0 ;
3404 int arg2 = (int) -1 ;
3405 wxString const &arg3_defvalue = wxPyEmptyString ;
3406 wxString *arg3 = (wxString *) &arg3_defvalue ;
3407 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3408 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3409 wxSize const &arg5_defvalue = wxDefaultSize ;
3410 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3411 long arg6 = (long) 0 ;
3412 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3413 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3414 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3415 wxString *arg8 = (wxString *) &arg8_defvalue ;
3416 wxButton *result = 0 ;
3417 void *argp1 = 0 ;
3418 int res1 = 0 ;
3419 int val2 ;
3420 int ecode2 = 0 ;
3421 bool temp3 = false ;
3422 wxPoint temp4 ;
3423 wxSize temp5 ;
3424 long val6 ;
3425 int ecode6 = 0 ;
3426 void *argp7 = 0 ;
3427 int res7 = 0 ;
3428 bool temp8 = false ;
3429 PyObject * obj0 = 0 ;
3430 PyObject * obj1 = 0 ;
3431 PyObject * obj2 = 0 ;
3432 PyObject * obj3 = 0 ;
3433 PyObject * obj4 = 0 ;
3434 PyObject * obj5 = 0 ;
3435 PyObject * obj6 = 0 ;
3436 PyObject * obj7 = 0 ;
3437 char * kwnames[] = {
3438 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3439 };
3440
3441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3443 if (!SWIG_IsOK(res1)) {
3444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3445 }
3446 arg1 = reinterpret_cast< wxWindow * >(argp1);
3447 if (obj1) {
3448 ecode2 = SWIG_AsVal_int(obj1, &val2);
3449 if (!SWIG_IsOK(ecode2)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3451 }
3452 arg2 = static_cast< int >(val2);
3453 }
3454 if (obj2) {
d55e5bfc 3455 {
554f62e9
RD
3456 arg3 = wxString_in_helper(obj2);
3457 if (arg3 == NULL) SWIG_fail;
3458 temp3 = true;
d55e5bfc 3459 }
554f62e9
RD
3460 }
3461 if (obj3) {
d55e5bfc 3462 {
554f62e9
RD
3463 arg4 = &temp4;
3464 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3465 }
554f62e9
RD
3466 }
3467 if (obj4) {
d55e5bfc 3468 {
554f62e9
RD
3469 arg5 = &temp5;
3470 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3471 }
554f62e9
RD
3472 }
3473 if (obj5) {
3474 ecode6 = SWIG_AsVal_long(obj5, &val6);
3475 if (!SWIG_IsOK(ecode6)) {
3476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3477 }
3478 arg6 = static_cast< long >(val6);
3479 }
3480 if (obj6) {
3481 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3482 if (!SWIG_IsOK(res7)) {
3483 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3484 }
554f62e9
RD
3485 if (!argp7) {
3486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3487 }
554f62e9
RD
3488 arg7 = reinterpret_cast< wxValidator * >(argp7);
3489 }
3490 if (obj7) {
d55e5bfc 3491 {
554f62e9
RD
3492 arg8 = wxString_in_helper(obj7);
3493 if (arg8 == NULL) SWIG_fail;
3494 temp8 = true;
d55e5bfc 3495 }
554f62e9
RD
3496 }
3497 {
3498 if (!wxPyCheckForApp()) SWIG_fail;
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3505 {
3506 if (temp3)
3507 delete arg3;
3508 }
3509 {
3510 if (temp8)
3511 delete arg8;
3512 }
3513 return resultobj;
3514fail:
3515 {
3516 if (temp3)
3517 delete arg3;
3518 }
3519 {
3520 if (temp8)
3521 delete arg8;
3522 }
3523 return NULL;
d55e5bfc
RD
3524}
3525
3526
554f62e9
RD
3527SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3528 PyObject *resultobj = 0;
3529 wxButton *result = 0 ;
3530
3531 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3532 {
3533 if (!wxPyCheckForApp()) SWIG_fail;
3534 PyThreadState* __tstate = wxPyBeginAllowThreads();
3535 result = (wxButton *)new wxButton();
3536 wxPyEndAllowThreads(__tstate);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3540 return resultobj;
3541fail:
3542 return NULL;
3543}
3544
3545
3546SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3547 PyObject *resultobj = 0;
3548 wxButton *arg1 = (wxButton *) 0 ;
3549 wxWindow *arg2 = (wxWindow *) 0 ;
3550 int arg3 = (int) -1 ;
3551 wxString const &arg4_defvalue = wxPyEmptyString ;
3552 wxString *arg4 = (wxString *) &arg4_defvalue ;
3553 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3554 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3555 wxSize const &arg6_defvalue = wxDefaultSize ;
3556 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3557 long arg7 = (long) 0 ;
3558 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3559 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3560 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3561 wxString *arg9 = (wxString *) &arg9_defvalue ;
3562 bool result;
3563 void *argp1 = 0 ;
3564 int res1 = 0 ;
3565 void *argp2 = 0 ;
3566 int res2 = 0 ;
3567 int val3 ;
3568 int ecode3 = 0 ;
3569 bool temp4 = false ;
3570 wxPoint temp5 ;
3571 wxSize temp6 ;
3572 long val7 ;
3573 int ecode7 = 0 ;
3574 void *argp8 = 0 ;
3575 int res8 = 0 ;
3576 bool temp9 = false ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579 PyObject * obj2 = 0 ;
3580 PyObject * obj3 = 0 ;
3581 PyObject * obj4 = 0 ;
3582 PyObject * obj5 = 0 ;
3583 PyObject * obj6 = 0 ;
3584 PyObject * obj7 = 0 ;
3585 PyObject * obj8 = 0 ;
3586 char * kwnames[] = {
3587 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3588 };
3589
3590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3592 if (!SWIG_IsOK(res1)) {
3593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3594 }
3595 arg1 = reinterpret_cast< wxButton * >(argp1);
3596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3597 if (!SWIG_IsOK(res2)) {
3598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3599 }
3600 arg2 = reinterpret_cast< wxWindow * >(argp2);
3601 if (obj2) {
3602 ecode3 = SWIG_AsVal_int(obj2, &val3);
3603 if (!SWIG_IsOK(ecode3)) {
3604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3605 }
3606 arg3 = static_cast< int >(val3);
3607 }
3608 if (obj3) {
d55e5bfc 3609 {
554f62e9
RD
3610 arg4 = wxString_in_helper(obj3);
3611 if (arg4 == NULL) SWIG_fail;
3612 temp4 = true;
d55e5bfc 3613 }
554f62e9
RD
3614 }
3615 if (obj4) {
d55e5bfc 3616 {
554f62e9
RD
3617 arg5 = &temp5;
3618 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3619 }
554f62e9
RD
3620 }
3621 if (obj5) {
d55e5bfc 3622 {
554f62e9
RD
3623 arg6 = &temp6;
3624 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3625 }
554f62e9
RD
3626 }
3627 if (obj6) {
3628 ecode7 = SWIG_AsVal_long(obj6, &val7);
3629 if (!SWIG_IsOK(ecode7)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3631 }
3632 arg7 = static_cast< long >(val7);
3633 }
3634 if (obj7) {
3635 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3636 if (!SWIG_IsOK(res8)) {
3637 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3638 }
554f62e9
RD
3639 if (!argp8) {
3640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3641 }
554f62e9
RD
3642 arg8 = reinterpret_cast< wxValidator * >(argp8);
3643 }
3644 if (obj8) {
d55e5bfc 3645 {
554f62e9
RD
3646 arg9 = wxString_in_helper(obj8);
3647 if (arg9 == NULL) SWIG_fail;
3648 temp9 = true;
d55e5bfc 3649 }
554f62e9
RD
3650 }
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 {
3658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3659 }
3660 {
3661 if (temp4)
3662 delete arg4;
3663 }
3664 {
3665 if (temp9)
3666 delete arg9;
3667 }
3668 return resultobj;
3669fail:
3670 {
3671 if (temp4)
3672 delete arg4;
3673 }
3674 {
3675 if (temp9)
3676 delete arg9;
3677 }
3678 return NULL;
d55e5bfc
RD
3679}
3680
3681
554f62e9
RD
3682SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3683 PyObject *resultobj = 0;
3684 wxButton *arg1 = (wxButton *) 0 ;
3685 void *argp1 = 0 ;
3686 int res1 = 0 ;
3687 PyObject *swig_obj[1] ;
3688
3689 if (!args) SWIG_fail;
3690 swig_obj[0] = args;
3691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3692 if (!SWIG_IsOK(res1)) {
3693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3694 }
3695 arg1 = reinterpret_cast< wxButton * >(argp1);
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 (arg1)->SetDefault();
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_Py_Void();
3703 return resultobj;
3704fail:
3705 return NULL;
d55e5bfc
RD
3706}
3707
3708
554f62e9
RD
3709SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3710 PyObject *resultobj = 0;
3711 wxSize result;
3712
3713 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = wxButton::GetDefaultSize();
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
3720 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3721 return resultobj;
3722fail:
3723 return NULL;
3724}
3725
3726
3727SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj = 0;
3729 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3730 SwigValueWrapper<wxVisualAttributes > result;
3731 int val1 ;
3732 int ecode1 = 0 ;
3733 PyObject * obj0 = 0 ;
3734 char * kwnames[] = {
3735 (char *) "variant", NULL
3736 };
3737
3738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3739 if (obj0) {
3740 ecode1 = SWIG_AsVal_int(obj0, &val1);
3741 if (!SWIG_IsOK(ecode1)) {
3742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3743 }
3744 arg1 = static_cast< wxWindowVariant >(val1);
3745 }
3746 {
3747 if (!wxPyCheckForApp()) SWIG_fail;
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 result = wxButton::GetClassDefaultAttributes(arg1);
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3754 return resultobj;
3755fail:
3756 return NULL;
3757}
3758
3759
3760SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *obj;
3762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3763 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3764 return SWIG_Py_Void();
3765}
3766
3767SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3768 return SWIG_Python_InitShadowInstance(args);
3769}
3770
3771SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj = 0;
3773 wxWindow *arg1 = (wxWindow *) 0 ;
3774 int arg2 = (int) -1 ;
3775 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3776 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3779 wxSize const &arg5_defvalue = wxDefaultSize ;
3780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3781 long arg6 = (long) wxBU_AUTODRAW ;
3782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3784 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3785 wxString *arg8 = (wxString *) &arg8_defvalue ;
3786 wxBitmapButton *result = 0 ;
3787 void *argp1 = 0 ;
3788 int res1 = 0 ;
3789 int val2 ;
3790 int ecode2 = 0 ;
3791 void *argp3 = 0 ;
3792 int res3 = 0 ;
3793 wxPoint temp4 ;
3794 wxSize temp5 ;
3795 long val6 ;
3796 int ecode6 = 0 ;
3797 void *argp7 = 0 ;
3798 int res7 = 0 ;
3799 bool temp8 = false ;
3800 PyObject * obj0 = 0 ;
3801 PyObject * obj1 = 0 ;
3802 PyObject * obj2 = 0 ;
3803 PyObject * obj3 = 0 ;
3804 PyObject * obj4 = 0 ;
3805 PyObject * obj5 = 0 ;
3806 PyObject * obj6 = 0 ;
3807 PyObject * obj7 = 0 ;
3808 char * kwnames[] = {
3809 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3810 };
3811
3812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3816 }
3817 arg1 = reinterpret_cast< wxWindow * >(argp1);
3818 if (obj1) {
3819 ecode2 = SWIG_AsVal_int(obj1, &val2);
3820 if (!SWIG_IsOK(ecode2)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3822 }
3823 arg2 = static_cast< int >(val2);
3824 }
3825 if (obj2) {
3826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3827 if (!SWIG_IsOK(res3)) {
3828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 if (!argp3) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3832 }
3833 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3834 }
3835 if (obj3) {
d55e5bfc 3836 {
554f62e9
RD
3837 arg4 = &temp4;
3838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3839 }
554f62e9
RD
3840 }
3841 if (obj4) {
d55e5bfc 3842 {
554f62e9
RD
3843 arg5 = &temp5;
3844 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3845 }
554f62e9
RD
3846 }
3847 if (obj5) {
3848 ecode6 = SWIG_AsVal_long(obj5, &val6);
3849 if (!SWIG_IsOK(ecode6)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3851 }
3852 arg6 = static_cast< long >(val6);
3853 }
3854 if (obj6) {
3855 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3856 if (!SWIG_IsOK(res7)) {
3857 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3858 }
554f62e9
RD
3859 if (!argp7) {
3860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3861 }
554f62e9
RD
3862 arg7 = reinterpret_cast< wxValidator * >(argp7);
3863 }
3864 if (obj7) {
f20a2e1f 3865 {
554f62e9
RD
3866 arg8 = wxString_in_helper(obj7);
3867 if (arg8 == NULL) SWIG_fail;
3868 temp8 = true;
f20a2e1f 3869 }
554f62e9
RD
3870 }
3871 {
3872 if (!wxPyCheckForApp()) SWIG_fail;
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3879 {
3880 if (temp8)
3881 delete arg8;
3882 }
3883 return resultobj;
3884fail:
3885 {
3886 if (temp8)
3887 delete arg8;
3888 }
3889 return NULL;
f20a2e1f
RD
3890}
3891
3892
554f62e9
RD
3893SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3894 PyObject *resultobj = 0;
3895 wxBitmapButton *result = 0 ;
3896
3897 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3898 {
3899 if (!wxPyCheckForApp()) SWIG_fail;
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxBitmapButton *)new wxBitmapButton();
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3906 return resultobj;
3907fail:
3908 return NULL;
3909}
3910
3911
3912SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3913 PyObject *resultobj = 0;
3914 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3915 wxWindow *arg2 = (wxWindow *) 0 ;
3916 int arg3 = (int) -1 ;
3917 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3918 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3919 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3920 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3921 wxSize const &arg6_defvalue = wxDefaultSize ;
3922 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3923 long arg7 = (long) wxBU_AUTODRAW ;
3924 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3925 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3926 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3927 wxString *arg9 = (wxString *) &arg9_defvalue ;
3928 bool result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 void *argp2 = 0 ;
3932 int res2 = 0 ;
3933 int val3 ;
3934 int ecode3 = 0 ;
3935 void *argp4 = 0 ;
3936 int res4 = 0 ;
3937 wxPoint temp5 ;
3938 wxSize temp6 ;
3939 long val7 ;
3940 int ecode7 = 0 ;
3941 void *argp8 = 0 ;
3942 int res8 = 0 ;
3943 bool temp9 = false ;
3944 PyObject * obj0 = 0 ;
3945 PyObject * obj1 = 0 ;
3946 PyObject * obj2 = 0 ;
3947 PyObject * obj3 = 0 ;
3948 PyObject * obj4 = 0 ;
3949 PyObject * obj5 = 0 ;
3950 PyObject * obj6 = 0 ;
3951 PyObject * obj7 = 0 ;
3952 PyObject * obj8 = 0 ;
3953 char * kwnames[] = {
3954 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3955 };
3956
3957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3961 }
3962 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3964 if (!SWIG_IsOK(res2)) {
3965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3966 }
3967 arg2 = reinterpret_cast< wxWindow * >(argp2);
3968 if (obj2) {
3969 ecode3 = SWIG_AsVal_int(obj2, &val3);
3970 if (!SWIG_IsOK(ecode3)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3972 }
3973 arg3 = static_cast< int >(val3);
3974 }
3975 if (obj3) {
3976 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3977 if (!SWIG_IsOK(res4)) {
3978 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3979 }
554f62e9
RD
3980 if (!argp4) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3982 }
554f62e9
RD
3983 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3984 }
3985 if (obj4) {
d55e5bfc 3986 {
554f62e9
RD
3987 arg5 = &temp5;
3988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3989 }
554f62e9
RD
3990 }
3991 if (obj5) {
d55e5bfc 3992 {
554f62e9
RD
3993 arg6 = &temp6;
3994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3995 }
3996 }
3997 if (obj6) {
3998 ecode7 = SWIG_AsVal_long(obj6, &val7);
3999 if (!SWIG_IsOK(ecode7)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4001 }
4002 arg7 = static_cast< long >(val7);
4003 }
4004 if (obj7) {
4005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4006 if (!SWIG_IsOK(res8)) {
4007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 if (!argp8) {
4010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4011 }
554f62e9
RD
4012 arg8 = reinterpret_cast< wxValidator * >(argp8);
4013 }
4014 if (obj8) {
d55e5bfc 4015 {
554f62e9
RD
4016 arg9 = wxString_in_helper(obj8);
4017 if (arg9 == NULL) SWIG_fail;
4018 temp9 = true;
d55e5bfc 4019 }
554f62e9
RD
4020 }
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4029 }
4030 {
4031 if (temp9)
4032 delete arg9;
4033 }
4034 return resultobj;
4035fail:
4036 {
4037 if (temp9)
4038 delete arg9;
4039 }
4040 return NULL;
d55e5bfc
RD
4041}
4042
4043
554f62e9
RD
4044SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4047 wxBitmap result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4057 }
4058 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (arg1)->GetBitmapLabel();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4066 return resultobj;
4067fail:
4068 return NULL;
d55e5bfc
RD
4069}
4070
4071
554f62e9
RD
4072SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *resultobj = 0;
4074 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4075 wxBitmap result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4085 }
4086 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (arg1)->GetBitmapDisabled();
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4094 return resultobj;
4095fail:
4096 return NULL;
d55e5bfc
RD
4097}
4098
4099
554f62e9
RD
4100SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4101 PyObject *resultobj = 0;
4102 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4103 wxBitmap result;
4104 void *argp1 = 0 ;
4105 int res1 = 0 ;
4106 PyObject *swig_obj[1] ;
4107
4108 if (!args) SWIG_fail;
4109 swig_obj[0] = args;
4110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4111 if (!SWIG_IsOK(res1)) {
4112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4113 }
4114 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (arg1)->GetBitmapFocus();
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4122 return resultobj;
4123fail:
4124 return NULL;
d55e5bfc
RD
4125}
4126
4127
554f62e9
RD
4128SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4129 PyObject *resultobj = 0;
4130 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4131 wxBitmap result;
4132 void *argp1 = 0 ;
4133 int res1 = 0 ;
4134 PyObject *swig_obj[1] ;
4135
4136 if (!args) SWIG_fail;
4137 swig_obj[0] = args;
4138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4139 if (!SWIG_IsOK(res1)) {
4140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4141 }
4142 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (arg1)->GetBitmapSelected();
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4150 return resultobj;
4151fail:
4152 return NULL;
d55e5bfc
RD
4153}
4154
4155
554f62e9
RD
4156SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4157 PyObject *resultobj = 0;
4158 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4159 wxBitmap result;
4160 void *argp1 = 0 ;
4161 int res1 = 0 ;
4162 PyObject *swig_obj[1] ;
4163
4164 if (!args) SWIG_fail;
4165 swig_obj[0] = args;
4166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4167 if (!SWIG_IsOK(res1)) {
4168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4169 }
4170 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 result = (arg1)->GetBitmapHover();
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4178 return resultobj;
4179fail:
4180 return NULL;
4181}
4182
4183
4184SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj = 0;
4186 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4187 wxBitmap *arg2 = 0 ;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 void *argp2 = 0 ;
4191 int res2 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "self",(char *) "bitmap", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4202 }
4203 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4205 if (!SWIG_IsOK(res2)) {
4206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 if (!argp2) {
4209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4210 }
4211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220fail:
4221 return NULL;
4222}
4223
4224
4225SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4228 wxBitmap *arg2 = 0 ;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 void *argp2 = 0 ;
4232 int res2 = 0 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char * kwnames[] = {
4236 (char *) "self",(char *) "bitmap", NULL
4237 };
4238
4239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4241 if (!SWIG_IsOK(res1)) {
4242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4243 }
4244 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4246 if (!SWIG_IsOK(res2)) {
4247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 if (!argp2) {
4250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4251 }
4252 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261fail:
4262 return NULL;
4263}
4264
4265
4266SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4267 PyObject *resultobj = 0;
4268 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4269 wxBitmap *arg2 = 0 ;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 void *argp2 = 0 ;
4273 int res2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "bitmap", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4284 }
4285 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4287 if (!SWIG_IsOK(res2)) {
4288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 if (!argp2) {
4291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4292 }
4293 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = SWIG_Py_Void();
4301 return resultobj;
4302fail:
4303 return NULL;
4304}
4305
4306
4307SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4308 PyObject *resultobj = 0;
4309 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4310 wxBitmap *arg2 = 0 ;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 void *argp2 = 0 ;
4314 int res2 = 0 ;
4315 PyObject * obj0 = 0 ;
4316 PyObject * obj1 = 0 ;
4317 char * kwnames[] = {
4318 (char *) "self",(char *) "bitmap", NULL
4319 };
4320
4321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4325 }
4326 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4328 if (!SWIG_IsOK(res2)) {
4329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 if (!argp2) {
4332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4333 }
4334 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = SWIG_Py_Void();
4342 return resultobj;
4343fail:
4344 return NULL;
4345}
4346
4347
4348SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj = 0;
4350 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4351 wxBitmap *arg2 = 0 ;
4352 void *argp1 = 0 ;
4353 int res1 = 0 ;
4354 void *argp2 = 0 ;
4355 int res2 = 0 ;
4356 PyObject * obj0 = 0 ;
4357 PyObject * obj1 = 0 ;
4358 char * kwnames[] = {
4359 (char *) "self",(char *) "hover", NULL
4360 };
4361
4362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4366 }
4367 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4369 if (!SWIG_IsOK(res2)) {
4370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 if (!argp2) {
4373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4374 }
4375 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4376 {
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 resultobj = SWIG_Py_Void();
4383 return resultobj;
4384fail:
4385 return NULL;
4386}
4387
4388
4389SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4390 PyObject *resultobj = 0;
4391 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4392 int arg2 ;
4393 int arg3 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 int val2 ;
4397 int ecode2 = 0 ;
4398 int val3 ;
4399 int ecode3 = 0 ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 PyObject * obj2 = 0 ;
4403 char * kwnames[] = {
4404 (char *) "self",(char *) "x",(char *) "y", NULL
4405 };
4406
4407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4411 }
4412 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4413 ecode2 = SWIG_AsVal_int(obj1, &val2);
4414 if (!SWIG_IsOK(ecode2)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4416 }
4417 arg2 = static_cast< int >(val2);
4418 ecode3 = SWIG_AsVal_int(obj2, &val3);
4419 if (!SWIG_IsOK(ecode3)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4421 }
4422 arg3 = static_cast< int >(val3);
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 (arg1)->SetMargins(arg2,arg3);
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_Py_Void();
4430 return resultobj;
4431fail:
4432 return NULL;
d55e5bfc
RD
4433}
4434
4435
554f62e9
RD
4436SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4437 PyObject *resultobj = 0;
4438 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4439 int result;
4440 void *argp1 = 0 ;
4441 int res1 = 0 ;
4442 PyObject *swig_obj[1] ;
4443
4444 if (!args) SWIG_fail;
4445 swig_obj[0] = args;
4446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4447 if (!SWIG_IsOK(res1)) {
4448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4449 }
4450 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = SWIG_From_int(static_cast< int >(result));
4458 return resultobj;
4459fail:
4460 return NULL;
d55e5bfc
RD
4461}
4462
4463
554f62e9
RD
4464SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4465 PyObject *resultobj = 0;
4466 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4467 int result;
4468 void *argp1 = 0 ;
4469 int res1 = 0 ;
4470 PyObject *swig_obj[1] ;
4471
4472 if (!args) SWIG_fail;
4473 swig_obj[0] = args;
4474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4475 if (!SWIG_IsOK(res1)) {
4476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4477 }
4478 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_From_int(static_cast< int >(result));
4486 return resultobj;
4487fail:
4488 return NULL;
b1fcee84
RD
4489}
4490
4491
554f62e9
RD
4492SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 PyObject *obj;
4494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4495 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4496 return SWIG_Py_Void();
d55e5bfc
RD
4497}
4498
554f62e9
RD
4499SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4500 return SWIG_Python_InitShadowInstance(args);
4501}
d55e5bfc 4502
554f62e9
RD
4503SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4504 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4505 return 1;
d55e5bfc
RD
4506}
4507
4508
554f62e9
RD
4509SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4510 PyObject *pyobj = 0;
4511
4512 {
4513#if wxUSE_UNICODE
4514 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4515#else
4516 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4517#endif
4518 }
4519 return pyobj;
4520}
4521
4522
4523SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj = 0;
4525 wxWindow *arg1 = (wxWindow *) 0 ;
4526 int arg2 = (int) -1 ;
4527 wxString const &arg3_defvalue = wxPyEmptyString ;
4528 wxString *arg3 = (wxString *) &arg3_defvalue ;
4529 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4530 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4531 wxSize const &arg5_defvalue = wxDefaultSize ;
4532 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4533 long arg6 = (long) 0 ;
4534 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4535 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4536 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4537 wxString *arg8 = (wxString *) &arg8_defvalue ;
4538 wxCheckBox *result = 0 ;
4539 void *argp1 = 0 ;
4540 int res1 = 0 ;
4541 int val2 ;
4542 int ecode2 = 0 ;
4543 bool temp3 = false ;
4544 wxPoint temp4 ;
4545 wxSize temp5 ;
4546 long val6 ;
4547 int ecode6 = 0 ;
4548 void *argp7 = 0 ;
4549 int res7 = 0 ;
4550 bool temp8 = false ;
4551 PyObject * obj0 = 0 ;
4552 PyObject * obj1 = 0 ;
4553 PyObject * obj2 = 0 ;
4554 PyObject * obj3 = 0 ;
4555 PyObject * obj4 = 0 ;
4556 PyObject * obj5 = 0 ;
4557 PyObject * obj6 = 0 ;
4558 PyObject * obj7 = 0 ;
4559 char * kwnames[] = {
4560 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4561 };
4562
4563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4565 if (!SWIG_IsOK(res1)) {
4566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4567 }
4568 arg1 = reinterpret_cast< wxWindow * >(argp1);
4569 if (obj1) {
4570 ecode2 = SWIG_AsVal_int(obj1, &val2);
4571 if (!SWIG_IsOK(ecode2)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4573 }
4574 arg2 = static_cast< int >(val2);
4575 }
4576 if (obj2) {
d55e5bfc 4577 {
554f62e9
RD
4578 arg3 = wxString_in_helper(obj2);
4579 if (arg3 == NULL) SWIG_fail;
4580 temp3 = true;
d55e5bfc 4581 }
554f62e9
RD
4582 }
4583 if (obj3) {
4584 {
4585 arg4 = &temp4;
4586 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4587 }
554f62e9
RD
4588 }
4589 if (obj4) {
d55e5bfc 4590 {
554f62e9
RD
4591 arg5 = &temp5;
4592 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4593 }
554f62e9
RD
4594 }
4595 if (obj5) {
4596 ecode6 = SWIG_AsVal_long(obj5, &val6);
4597 if (!SWIG_IsOK(ecode6)) {
4598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4599 }
4600 arg6 = static_cast< long >(val6);
4601 }
4602 if (obj6) {
4603 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4604 if (!SWIG_IsOK(res7)) {
4605 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4606 }
554f62e9
RD
4607 if (!argp7) {
4608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4609 }
4610 arg7 = reinterpret_cast< wxValidator * >(argp7);
4611 }
4612 if (obj7) {
b1fcee84 4613 {
554f62e9
RD
4614 arg8 = wxString_in_helper(obj7);
4615 if (arg8 == NULL) SWIG_fail;
4616 temp8 = true;
b1fcee84 4617 }
554f62e9
RD
4618 }
4619 {
4620 if (!wxPyCheckForApp()) SWIG_fail;
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4627 {
4628 if (temp3)
4629 delete arg3;
4630 }
4631 {
4632 if (temp8)
4633 delete arg8;
4634 }
4635 return resultobj;
4636fail:
4637 {
4638 if (temp3)
4639 delete arg3;
4640 }
4641 {
4642 if (temp8)
4643 delete arg8;
4644 }
4645 return NULL;
b1fcee84
RD
4646}
4647
4648
554f62e9
RD
4649SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4650 PyObject *resultobj = 0;
4651 wxCheckBox *result = 0 ;
4652
4653 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4654 {
4655 if (!wxPyCheckForApp()) SWIG_fail;
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 result = (wxCheckBox *)new wxCheckBox();
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4662 return resultobj;
4663fail:
4664 return NULL;
4665}
4666
4667
4668SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4671 wxWindow *arg2 = (wxWindow *) 0 ;
4672 int arg3 = (int) -1 ;
4673 wxString const &arg4_defvalue = wxPyEmptyString ;
4674 wxString *arg4 = (wxString *) &arg4_defvalue ;
4675 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4676 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4677 wxSize const &arg6_defvalue = wxDefaultSize ;
4678 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4679 long arg7 = (long) 0 ;
4680 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4681 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4682 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4683 wxString *arg9 = (wxString *) &arg9_defvalue ;
4684 bool result;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 void *argp2 = 0 ;
4688 int res2 = 0 ;
4689 int val3 ;
4690 int ecode3 = 0 ;
4691 bool temp4 = false ;
4692 wxPoint temp5 ;
4693 wxSize temp6 ;
4694 long val7 ;
4695 int ecode7 = 0 ;
4696 void *argp8 = 0 ;
4697 int res8 = 0 ;
4698 bool temp9 = false ;
4699 PyObject * obj0 = 0 ;
4700 PyObject * obj1 = 0 ;
4701 PyObject * obj2 = 0 ;
4702 PyObject * obj3 = 0 ;
4703 PyObject * obj4 = 0 ;
4704 PyObject * obj5 = 0 ;
4705 PyObject * obj6 = 0 ;
4706 PyObject * obj7 = 0 ;
4707 PyObject * obj8 = 0 ;
4708 char * kwnames[] = {
4709 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4710 };
4711
4712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4714 if (!SWIG_IsOK(res1)) {
4715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4716 }
4717 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4719 if (!SWIG_IsOK(res2)) {
4720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4721 }
4722 arg2 = reinterpret_cast< wxWindow * >(argp2);
4723 if (obj2) {
4724 ecode3 = SWIG_AsVal_int(obj2, &val3);
4725 if (!SWIG_IsOK(ecode3)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4727 }
4728 arg3 = static_cast< int >(val3);
4729 }
4730 if (obj3) {
093d3ff1 4731 {
554f62e9
RD
4732 arg4 = wxString_in_helper(obj3);
4733 if (arg4 == NULL) SWIG_fail;
4734 temp4 = true;
093d3ff1 4735 }
554f62e9
RD
4736 }
4737 if (obj4) {
093d3ff1 4738 {
554f62e9
RD
4739 arg5 = &temp5;
4740 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4741 }
554f62e9
RD
4742 }
4743 if (obj5) {
d55e5bfc 4744 {
554f62e9
RD
4745 arg6 = &temp6;
4746 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4747 }
554f62e9
RD
4748 }
4749 if (obj6) {
4750 ecode7 = SWIG_AsVal_long(obj6, &val7);
4751 if (!SWIG_IsOK(ecode7)) {
4752 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4753 }
4754 arg7 = static_cast< long >(val7);
4755 }
4756 if (obj7) {
4757 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4758 if (!SWIG_IsOK(res8)) {
4759 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4760 }
554f62e9
RD
4761 if (!argp8) {
4762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4763 }
4764 arg8 = reinterpret_cast< wxValidator * >(argp8);
4765 }
4766 if (obj8) {
093d3ff1 4767 {
554f62e9
RD
4768 arg9 = wxString_in_helper(obj8);
4769 if (arg9 == NULL) SWIG_fail;
4770 temp9 = true;
093d3ff1 4771 }
554f62e9
RD
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 {
4780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4781 }
4782 {
4783 if (temp4)
4784 delete arg4;
4785 }
4786 {
4787 if (temp9)
4788 delete arg9;
4789 }
4790 return resultobj;
4791fail:
4792 {
4793 if (temp4)
4794 delete arg4;
4795 }
4796 {
4797 if (temp9)
4798 delete arg9;
4799 }
4800 return NULL;
d55e5bfc
RD
4801}
4802
4803
554f62e9
RD
4804SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->GetValue();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829fail:
4830 return NULL;
d55e5bfc
RD
4831}
4832
4833
554f62e9
RD
4834SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool result;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 PyObject *swig_obj[1] ;
4841
4842 if (!args) SWIG_fail;
4843 swig_obj[0] = args;
4844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4847 }
4848 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 result = (bool)(arg1)->IsChecked();
4852 wxPyEndAllowThreads(__tstate);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 {
4856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4857 }
4858 return resultobj;
4859fail:
4860 return NULL;
4861}
4862
4863
4864SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj = 0;
4866 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4867 bool arg2 ;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 bool val2 ;
4871 int ecode2 = 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 char * kwnames[] = {
4875 (char *) "self",(char *) "state", NULL
4876 };
4877
4878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4880 if (!SWIG_IsOK(res1)) {
4881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4882 }
4883 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4884 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4885 if (!SWIG_IsOK(ecode2)) {
4886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4887 }
4888 arg2 = static_cast< bool >(val2);
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 (arg1)->SetValue(arg2);
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 resultobj = SWIG_Py_Void();
4896 return resultobj;
4897fail:
4898 return NULL;
d55e5bfc 4899}
554f62e9
RD
4900
4901
4902SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *resultobj = 0;
4904 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4905 wxCheckBoxState result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 PyObject *swig_obj[1] ;
4909
4910 if (!args) SWIG_fail;
4911 swig_obj[0] = args;
4912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4915 }
4916 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 resultobj = SWIG_From_int(static_cast< int >(result));
4924 return resultobj;
4925fail:
4926 return NULL;
4927}
4928
4929
4930SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj = 0;
4932 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4933 wxCheckBoxState arg2 ;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 int val2 ;
4937 int ecode2 = 0 ;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 char * kwnames[] = {
4941 (char *) "self",(char *) "state", NULL
4942 };
4943
4944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4946 if (!SWIG_IsOK(res1)) {
4947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4948 }
4949 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4950 ecode2 = SWIG_AsVal_int(obj1, &val2);
4951 if (!SWIG_IsOK(ecode2)) {
4952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4953 }
4954 arg2 = static_cast< wxCheckBoxState >(val2);
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 (arg1)->Set3StateValue(arg2);
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 }
4961 resultobj = SWIG_Py_Void();
4962 return resultobj;
4963fail:
4964 return NULL;
d55e5bfc
RD
4965}
4966
4967
554f62e9
RD
4968SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993fail:
4994 return NULL;
d55e5bfc
RD
4995}
4996
4997
554f62e9
RD
4998SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4999 PyObject *resultobj = 0;
5000 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5001 bool result;
5002 void *argp1 = 0 ;
5003 int res1 = 0 ;
5004 PyObject *swig_obj[1] ;
5005
5006 if (!args) SWIG_fail;
5007 swig_obj[0] = args;
5008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5009 if (!SWIG_IsOK(res1)) {
5010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5011 }
5012 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 {
5020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5021 }
5022 return resultobj;
5023fail:
5024 return NULL;
d55e5bfc
RD
5025}
5026
5027
554f62e9
RD
5028SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj = 0;
5030 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5031 SwigValueWrapper<wxVisualAttributes > result;
5032 int val1 ;
5033 int ecode1 = 0 ;
5034 PyObject * obj0 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "variant", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5040 if (obj0) {
5041 ecode1 = SWIG_AsVal_int(obj0, &val1);
5042 if (!SWIG_IsOK(ecode1)) {
5043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5044 }
5045 arg1 = static_cast< wxWindowVariant >(val1);
5046 }
5047 {
5048 if (!wxPyCheckForApp()) SWIG_fail;
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5055 return resultobj;
5056fail:
5057 return NULL;
d55e5bfc
RD
5058}
5059
5060
554f62e9
RD
5061SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 PyObject *obj;
5063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5064 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5065 return SWIG_Py_Void();
d55e5bfc
RD
5066}
5067
554f62e9
RD
5068SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 return SWIG_Python_InitShadowInstance(args);
5070}
d55e5bfc 5071
554f62e9
RD
5072SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5073 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5074 return 1;
d55e5bfc
RD
5075}
5076
5077
554f62e9
RD
5078SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5079 PyObject *pyobj = 0;
5080
5081 {
5082#if wxUSE_UNICODE
5083 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5084#else
5085 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5086#endif
5087 }
5088 return pyobj;
5089}
5090
5091
5092SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxWindow *arg1 = (wxWindow *) 0 ;
5095 int arg2 = (int) -1 ;
5096 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5097 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5098 wxSize const &arg4_defvalue = wxDefaultSize ;
5099 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5100 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5101 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5102 long arg6 = (long) 0 ;
5103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5105 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5106 wxString *arg8 = (wxString *) &arg8_defvalue ;
5107 wxChoice *result = 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 int val2 ;
5111 int ecode2 = 0 ;
5112 wxPoint temp3 ;
5113 wxSize temp4 ;
5114 bool temp5 = false ;
5115 long val6 ;
5116 int ecode6 = 0 ;
5117 void *argp7 = 0 ;
5118 int res7 = 0 ;
5119 bool temp8 = false ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 PyObject * obj2 = 0 ;
5123 PyObject * obj3 = 0 ;
5124 PyObject * obj4 = 0 ;
5125 PyObject * obj5 = 0 ;
5126 PyObject * obj6 = 0 ;
5127 PyObject * obj7 = 0 ;
5128 char * kwnames[] = {
5129 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5130 };
5131
5132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5134 if (!SWIG_IsOK(res1)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5136 }
5137 arg1 = reinterpret_cast< wxWindow * >(argp1);
5138 if (obj1) {
5139 ecode2 = SWIG_AsVal_int(obj1, &val2);
5140 if (!SWIG_IsOK(ecode2)) {
5141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5142 }
5143 arg2 = static_cast< int >(val2);
5144 }
5145 if (obj2) {
093d3ff1 5146 {
554f62e9
RD
5147 arg3 = &temp3;
5148 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5149 }
554f62e9
RD
5150 }
5151 if (obj3) {
d55e5bfc 5152 {
554f62e9
RD
5153 arg4 = &temp4;
5154 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5155 }
554f62e9
RD
5156 }
5157 if (obj4) {
d55e5bfc 5158 {
554f62e9
RD
5159 if (! PySequence_Check(obj4)) {
5160 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5161 SWIG_fail;
5162 }
5163 arg5 = new wxArrayString;
5164 temp5 = true;
5165 int i, len=PySequence_Length(obj4);
5166 for (i=0; i<len; i++) {
5167 PyObject* item = PySequence_GetItem(obj4, i);
5168 wxString* s = wxString_in_helper(item);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 arg5->Add(*s);
5171 delete s;
5172 Py_DECREF(item);
5173 }
d55e5bfc 5174 }
554f62e9
RD
5175 }
5176 if (obj5) {
5177 ecode6 = SWIG_AsVal_long(obj5, &val6);
5178 if (!SWIG_IsOK(ecode6)) {
5179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5180 }
5181 arg6 = static_cast< long >(val6);
5182 }
5183 if (obj6) {
5184 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5185 if (!SWIG_IsOK(res7)) {
5186 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5187 }
554f62e9
RD
5188 if (!argp7) {
5189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5190 }
5191 arg7 = reinterpret_cast< wxValidator * >(argp7);
5192 }
5193 if (obj7) {
d55e5bfc 5194 {
554f62e9
RD
5195 arg8 = wxString_in_helper(obj7);
5196 if (arg8 == NULL) SWIG_fail;
5197 temp8 = true;
d55e5bfc 5198 }
554f62e9
RD
5199 }
5200 {
5201 if (!wxPyCheckForApp()) SWIG_fail;
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5208 {
5209 if (temp5) delete arg5;
5210 }
5211 {
5212 if (temp8)
5213 delete arg8;
5214 }
5215 return resultobj;
5216fail:
5217 {
5218 if (temp5) delete arg5;
5219 }
5220 {
5221 if (temp8)
5222 delete arg8;
5223 }
5224 return NULL;
d55e5bfc
RD
5225}
5226
5227
554f62e9
RD
5228SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxChoice *result = 0 ;
5231
5232 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5233 {
5234 if (!wxPyCheckForApp()) SWIG_fail;
5235 PyThreadState* __tstate = wxPyBeginAllowThreads();
5236 result = (wxChoice *)new wxChoice();
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5241 return resultobj;
5242fail:
5243 return NULL;
5244}
5245
5246
5247SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj = 0;
5249 wxChoice *arg1 = (wxChoice *) 0 ;
5250 wxWindow *arg2 = (wxWindow *) 0 ;
5251 int arg3 = (int) -1 ;
5252 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5253 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5254 wxSize const &arg5_defvalue = wxDefaultSize ;
5255 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5256 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5257 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5258 long arg7 = (long) 0 ;
5259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5261 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5262 wxString *arg9 = (wxString *) &arg9_defvalue ;
5263 bool result;
5264 void *argp1 = 0 ;
5265 int res1 = 0 ;
5266 void *argp2 = 0 ;
5267 int res2 = 0 ;
5268 int val3 ;
5269 int ecode3 = 0 ;
5270 wxPoint temp4 ;
5271 wxSize temp5 ;
5272 bool temp6 = false ;
5273 long val7 ;
5274 int ecode7 = 0 ;
5275 void *argp8 = 0 ;
5276 int res8 = 0 ;
5277 bool temp9 = false ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 PyObject * obj2 = 0 ;
5281 PyObject * obj3 = 0 ;
5282 PyObject * obj4 = 0 ;
5283 PyObject * obj5 = 0 ;
5284 PyObject * obj6 = 0 ;
5285 PyObject * obj7 = 0 ;
5286 PyObject * obj8 = 0 ;
5287 char * kwnames[] = {
5288 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5289 };
5290
5291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5295 }
5296 arg1 = reinterpret_cast< wxChoice * >(argp1);
5297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5298 if (!SWIG_IsOK(res2)) {
5299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5300 }
5301 arg2 = reinterpret_cast< wxWindow * >(argp2);
5302 if (obj2) {
5303 ecode3 = SWIG_AsVal_int(obj2, &val3);
5304 if (!SWIG_IsOK(ecode3)) {
5305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5306 }
5307 arg3 = static_cast< int >(val3);
5308 }
5309 if (obj3) {
d55e5bfc 5310 {
554f62e9
RD
5311 arg4 = &temp4;
5312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5313 }
554f62e9
RD
5314 }
5315 if (obj4) {
d55e5bfc 5316 {
554f62e9
RD
5317 arg5 = &temp5;
5318 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5319 }
554f62e9
RD
5320 }
5321 if (obj5) {
d55e5bfc 5322 {
554f62e9
RD
5323 if (! PySequence_Check(obj5)) {
5324 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5325 SWIG_fail;
5326 }
5327 arg6 = new wxArrayString;
5328 temp6 = true;
5329 int i, len=PySequence_Length(obj5);
5330 for (i=0; i<len; i++) {
5331 PyObject* item = PySequence_GetItem(obj5, i);
5332 wxString* s = wxString_in_helper(item);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 arg6->Add(*s);
5335 delete s;
5336 Py_DECREF(item);
5337 }
5338 }
5339 }
5340 if (obj6) {
5341 ecode7 = SWIG_AsVal_long(obj6, &val7);
5342 if (!SWIG_IsOK(ecode7)) {
5343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5344 }
5345 arg7 = static_cast< long >(val7);
5346 }
5347 if (obj7) {
5348 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5349 if (!SWIG_IsOK(res8)) {
5350 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5351 }
554f62e9
RD
5352 if (!argp8) {
5353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5354 }
5355 arg8 = reinterpret_cast< wxValidator * >(argp8);
5356 }
5357 if (obj8) {
d55e5bfc 5358 {
554f62e9
RD
5359 arg9 = wxString_in_helper(obj8);
5360 if (arg9 == NULL) SWIG_fail;
5361 temp9 = true;
d55e5bfc 5362 }
554f62e9
RD
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 {
5371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5372 }
5373 {
5374 if (temp6) delete arg6;
5375 }
5376 {
5377 if (temp9)
5378 delete arg9;
5379 }
5380 return resultobj;
5381fail:
5382 {
5383 if (temp6) delete arg6;
5384 }
5385 {
5386 if (temp9)
5387 delete arg9;
5388 }
5389 return NULL;
d55e5bfc
RD
5390}
5391
5392
554f62e9
RD
5393SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5394 PyObject *resultobj = 0;
5395 wxChoice *arg1 = (wxChoice *) 0 ;
5396 int result;
5397 void *argp1 = 0 ;
5398 int res1 = 0 ;
5399 PyObject *swig_obj[1] ;
5400
5401 if (!args) SWIG_fail;
5402 swig_obj[0] = args;
5403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5406 }
5407 arg1 = reinterpret_cast< wxChoice * >(argp1);
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_From_int(static_cast< int >(result));
5415 return resultobj;
5416fail:
5417 return NULL;
5418}
5419
5420
5421SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5424 SwigValueWrapper<wxVisualAttributes > result;
5425 int val1 ;
5426 int ecode1 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "variant", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5433 if (obj0) {
5434 ecode1 = SWIG_AsVal_int(obj0, &val1);
5435 if (!SWIG_IsOK(ecode1)) {
5436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5437 }
5438 arg1 = static_cast< wxWindowVariant >(val1);
5439 }
5440 {
5441 if (!wxPyCheckForApp()) SWIG_fail;
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 result = wxChoice::GetClassDefaultAttributes(arg1);
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5448 return resultobj;
5449fail:
5450 return NULL;
f20a2e1f
RD
5451}
5452
5453
554f62e9
RD
5454SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 PyObject *obj;
5456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5457 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5458 return SWIG_Py_Void();
d55e5bfc 5459}
554f62e9
RD
5460
5461SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5462 return SWIG_Python_InitShadowInstance(args);
5463}
5464
5465SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5466 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5467 return 1;
d55e5bfc
RD
5468}
5469
5470
554f62e9
RD
5471SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5472 PyObject *pyobj = 0;
5473
5474 {
d55e5bfc 5475#if wxUSE_UNICODE
554f62e9 5476 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5477#else
554f62e9 5478 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5479#endif
554f62e9
RD
5480 }
5481 return pyobj;
5482}
5483
5484
5485SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj = 0;
5487 wxWindow *arg1 = (wxWindow *) 0 ;
5488 int arg2 = (int) -1 ;
5489 wxString const &arg3_defvalue = wxPyEmptyString ;
5490 wxString *arg3 = (wxString *) &arg3_defvalue ;
5491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5493 wxSize const &arg5_defvalue = wxDefaultSize ;
5494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5495 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5496 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5497 long arg7 = (long) 0 ;
5498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5500 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5501 wxString *arg9 = (wxString *) &arg9_defvalue ;
5502 wxComboBox *result = 0 ;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 int val2 ;
5506 int ecode2 = 0 ;
5507 bool temp3 = false ;
5508 wxPoint temp4 ;
5509 wxSize temp5 ;
5510 bool temp6 = false ;
5511 long val7 ;
5512 int ecode7 = 0 ;
5513 void *argp8 = 0 ;
5514 int res8 = 0 ;
5515 bool temp9 = false ;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 PyObject * obj2 = 0 ;
5519 PyObject * obj3 = 0 ;
5520 PyObject * obj4 = 0 ;
5521 PyObject * obj5 = 0 ;
5522 PyObject * obj6 = 0 ;
5523 PyObject * obj7 = 0 ;
5524 PyObject * obj8 = 0 ;
5525 char * kwnames[] = {
5526 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5527 };
5528
5529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5533 }
5534 arg1 = reinterpret_cast< wxWindow * >(argp1);
5535 if (obj1) {
5536 ecode2 = SWIG_AsVal_int(obj1, &val2);
5537 if (!SWIG_IsOK(ecode2)) {
5538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5539 }
5540 arg2 = static_cast< int >(val2);
5541 }
5542 if (obj2) {
d55e5bfc 5543 {
554f62e9
RD
5544 arg3 = wxString_in_helper(obj2);
5545 if (arg3 == NULL) SWIG_fail;
5546 temp3 = true;
d55e5bfc 5547 }
554f62e9
RD
5548 }
5549 if (obj3) {
d55e5bfc 5550 {
554f62e9
RD
5551 arg4 = &temp4;
5552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5553 }
554f62e9
RD
5554 }
5555 if (obj4) {
d55e5bfc 5556 {
554f62e9
RD
5557 arg5 = &temp5;
5558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5559 }
554f62e9
RD
5560 }
5561 if (obj5) {
d55e5bfc 5562 {
554f62e9
RD
5563 if (! PySequence_Check(obj5)) {
5564 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5565 SWIG_fail;
5566 }
5567 arg6 = new wxArrayString;
5568 temp6 = true;
5569 int i, len=PySequence_Length(obj5);
5570 for (i=0; i<len; i++) {
5571 PyObject* item = PySequence_GetItem(obj5, i);
5572 wxString* s = wxString_in_helper(item);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 arg6->Add(*s);
5575 delete s;
5576 Py_DECREF(item);
5577 }
d55e5bfc 5578 }
554f62e9
RD
5579 }
5580 if (obj6) {
5581 ecode7 = SWIG_AsVal_long(obj6, &val7);
5582 if (!SWIG_IsOK(ecode7)) {
5583 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5584 }
5585 arg7 = static_cast< long >(val7);
5586 }
5587 if (obj7) {
5588 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5589 if (!SWIG_IsOK(res8)) {
5590 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 if (!argp8) {
5593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5594 }
5595 arg8 = reinterpret_cast< wxValidator * >(argp8);
5596 }
5597 if (obj8) {
d55e5bfc 5598 {
554f62e9
RD
5599 arg9 = wxString_in_helper(obj8);
5600 if (arg9 == NULL) SWIG_fail;
5601 temp9 = true;
d55e5bfc 5602 }
554f62e9
RD
5603 }
5604 {
5605 if (!wxPyCheckForApp()) SWIG_fail;
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 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);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5612 {
5613 if (temp3)
5614 delete arg3;
5615 }
5616 {
5617 if (temp6) delete arg6;
5618 }
5619 {
5620 if (temp9)
5621 delete arg9;
5622 }
5623 return resultobj;
5624fail:
5625 {
5626 if (temp3)
5627 delete arg3;
5628 }
5629 {
5630 if (temp6) delete arg6;
5631 }
5632 {
5633 if (temp9)
5634 delete arg9;
5635 }
5636 return NULL;
d55e5bfc
RD
5637}
5638
5639
554f62e9
RD
5640SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxComboBox *result = 0 ;
5643
5644 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5645 {
5646 if (!wxPyCheckForApp()) SWIG_fail;
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (wxComboBox *)new wxComboBox();
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5653 return resultobj;
5654fail:
5655 return NULL;
5656}
5657
5658
5659SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj = 0;
5661 wxComboBox *arg1 = (wxComboBox *) 0 ;
5662 wxWindow *arg2 = (wxWindow *) 0 ;
5663 int arg3 = (int) -1 ;
5664 wxString const &arg4_defvalue = wxPyEmptyString ;
5665 wxString *arg4 = (wxString *) &arg4_defvalue ;
5666 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5667 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5668 wxSize const &arg6_defvalue = wxDefaultSize ;
5669 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5670 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5671 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5672 long arg8 = (long) 0 ;
5673 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5674 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5675 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5676 wxString *arg10 = (wxString *) &arg10_defvalue ;
5677 bool result;
5678 void *argp1 = 0 ;
5679 int res1 = 0 ;
5680 void *argp2 = 0 ;
5681 int res2 = 0 ;
5682 int val3 ;
5683 int ecode3 = 0 ;
5684 bool temp4 = false ;
5685 wxPoint temp5 ;
5686 wxSize temp6 ;
5687 bool temp7 = false ;
5688 long val8 ;
5689 int ecode8 = 0 ;
5690 void *argp9 = 0 ;
5691 int res9 = 0 ;
5692 bool temp10 = false ;
5693 PyObject * obj0 = 0 ;
5694 PyObject * obj1 = 0 ;
5695 PyObject * obj2 = 0 ;
5696 PyObject * obj3 = 0 ;
5697 PyObject * obj4 = 0 ;
5698 PyObject * obj5 = 0 ;
5699 PyObject * obj6 = 0 ;
5700 PyObject * obj7 = 0 ;
5701 PyObject * obj8 = 0 ;
5702 PyObject * obj9 = 0 ;
5703 char * kwnames[] = {
5704 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5705 };
5706
5707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5711 }
5712 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5714 if (!SWIG_IsOK(res2)) {
5715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5716 }
5717 arg2 = reinterpret_cast< wxWindow * >(argp2);
5718 if (obj2) {
5719 ecode3 = SWIG_AsVal_int(obj2, &val3);
5720 if (!SWIG_IsOK(ecode3)) {
5721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5722 }
5723 arg3 = static_cast< int >(val3);
5724 }
5725 if (obj3) {
d55e5bfc 5726 {
554f62e9
RD
5727 arg4 = wxString_in_helper(obj3);
5728 if (arg4 == NULL) SWIG_fail;
5729 temp4 = true;
d55e5bfc 5730 }
554f62e9
RD
5731 }
5732 if (obj4) {
d55e5bfc 5733 {
554f62e9
RD
5734 arg5 = &temp5;
5735 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5736 }
554f62e9
RD
5737 }
5738 if (obj5) {
d55e5bfc 5739 {
554f62e9
RD
5740 arg6 = &temp6;
5741 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5742 }
554f62e9
RD
5743 }
5744 if (obj6) {
d55e5bfc 5745 {
554f62e9
RD
5746 if (! PySequence_Check(obj6)) {
5747 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5748 SWIG_fail;
5749 }
5750 arg7 = new wxArrayString;
5751 temp7 = true;
5752 int i, len=PySequence_Length(obj6);
5753 for (i=0; i<len; i++) {
5754 PyObject* item = PySequence_GetItem(obj6, i);
5755 wxString* s = wxString_in_helper(item);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 arg7->Add(*s);
5758 delete s;
5759 Py_DECREF(item);
5760 }
d55e5bfc 5761 }
554f62e9
RD
5762 }
5763 if (obj7) {
5764 ecode8 = SWIG_AsVal_long(obj7, &val8);
5765 if (!SWIG_IsOK(ecode8)) {
5766 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5767 }
5768 arg8 = static_cast< long >(val8);
5769 }
5770 if (obj8) {
5771 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5772 if (!SWIG_IsOK(res9)) {
5773 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5774 }
554f62e9
RD
5775 if (!argp9) {
5776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5777 }
554f62e9
RD
5778 arg9 = reinterpret_cast< wxValidator * >(argp9);
5779 }
5780 if (obj9) {
d55e5bfc 5781 {
554f62e9
RD
5782 arg10 = wxString_in_helper(obj9);
5783 if (arg10 == NULL) SWIG_fail;
5784 temp10 = true;
d55e5bfc 5785 }
554f62e9
RD
5786 }
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
5789 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);
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 {
5794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5795 }
5796 {
5797 if (temp4)
5798 delete arg4;
5799 }
5800 {
5801 if (temp7) delete arg7;
5802 }
5803 {
5804 if (temp10)
5805 delete arg10;
5806 }
5807 return resultobj;
5808fail:
5809 {
5810 if (temp4)
5811 delete arg4;
5812 }
5813 {
5814 if (temp7) delete arg7;
5815 }
5816 {
5817 if (temp10)
5818 delete arg10;
5819 }
5820 return NULL;
d55e5bfc
RD
5821}
5822
5823
554f62e9
RD
5824SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString result;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 PyObject *swig_obj[1] ;
5831
5832 if (!args) SWIG_fail;
5833 swig_obj[0] = args;
5834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5837 }
5838 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = ((wxComboBox const *)arg1)->GetValue();
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 {
d55e5bfc 5846#if wxUSE_UNICODE
554f62e9 5847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5848#else
554f62e9 5849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5850#endif
554f62e9
RD
5851 }
5852 return resultobj;
5853fail:
5854 return NULL;
5855}
5856
5857
5858SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj = 0;
5860 wxComboBox *arg1 = (wxComboBox *) 0 ;
5861 wxString *arg2 = 0 ;
5862 void *argp1 = 0 ;
5863 int res1 = 0 ;
5864 bool temp2 = false ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "self",(char *) "value", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5873 if (!SWIG_IsOK(res1)) {
5874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5875 }
5876 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5877 {
5878 arg2 = wxString_in_helper(obj1);
5879 if (arg2 == NULL) SWIG_fail;
5880 temp2 = true;
5881 }
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->SetValue((wxString const &)*arg2);
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 resultobj = SWIG_Py_Void();
5889 {
5890 if (temp2)
5891 delete arg2;
5892 }
5893 return resultobj;
5894fail:
5895 {
5896 if (temp2)
5897 delete arg2;
5898 }
5899 return NULL;
d55e5bfc
RD
5900}
5901
5902
554f62e9
RD
5903SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5904 PyObject *resultobj = 0;
5905 wxComboBox *arg1 = (wxComboBox *) 0 ;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5915 }
5916 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 (arg1)->Copy();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_Py_Void();
5924 return resultobj;
5925fail:
5926 return NULL;
d55e5bfc
RD
5927}
5928
5929
554f62e9
RD
5930SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5931 PyObject *resultobj = 0;
5932 wxComboBox *arg1 = (wxComboBox *) 0 ;
5933 void *argp1 = 0 ;
5934 int res1 = 0 ;
5935 PyObject *swig_obj[1] ;
5936
5937 if (!args) SWIG_fail;
5938 swig_obj[0] = args;
5939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5942 }
5943 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->Cut();
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 resultobj = SWIG_Py_Void();
5951 return resultobj;
5952fail:
5953 return NULL;
d55e5bfc
RD
5954}
5955
5956
554f62e9
RD
5957SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxComboBox *arg1 = (wxComboBox *) 0 ;
5960 void *argp1 = 0 ;
5961 int res1 = 0 ;
5962 PyObject *swig_obj[1] ;
5963
5964 if (!args) SWIG_fail;
5965 swig_obj[0] = args;
5966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5967 if (!SWIG_IsOK(res1)) {
5968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5969 }
5970 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 (arg1)->Paste();
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_Py_Void();
5978 return resultobj;
5979fail:
5980 return NULL;
5981}
5982
5983
5984SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj = 0;
5986 wxComboBox *arg1 = (wxComboBox *) 0 ;
5987 long arg2 ;
5988 void *argp1 = 0 ;
5989 int res1 = 0 ;
5990 long val2 ;
5991 int ecode2 = 0 ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 char * kwnames[] = {
5995 (char *) "self",(char *) "pos", NULL
5996 };
5997
5998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6000 if (!SWIG_IsOK(res1)) {
6001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6002 }
6003 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6004 ecode2 = SWIG_AsVal_long(obj1, &val2);
6005 if (!SWIG_IsOK(ecode2)) {
6006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6007 }
6008 arg2 = static_cast< long >(val2);
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 (arg1)->SetInsertionPoint(arg2);
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_Py_Void();
6016 return resultobj;
6017fail:
6018 return NULL;
d55e5bfc
RD
6019}
6020
6021
554f62e9
RD
6022SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6023 PyObject *resultobj = 0;
6024 wxComboBox *arg1 = (wxComboBox *) 0 ;
6025 long result;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 PyObject *swig_obj[1] ;
6029
6030 if (!args) SWIG_fail;
6031 swig_obj[0] = args;
6032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6033 if (!SWIG_IsOK(res1)) {
6034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6035 }
6036 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 resultobj = SWIG_From_long(static_cast< long >(result));
6044 return resultobj;
6045fail:
6046 return NULL;
d55e5bfc
RD
6047}
6048
6049
554f62e9
RD
6050SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6051 PyObject *resultobj = 0;
6052 wxComboBox *arg1 = (wxComboBox *) 0 ;
6053 long result;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 PyObject *swig_obj[1] ;
6057
6058 if (!args) SWIG_fail;
6059 swig_obj[0] = args;
6060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6063 }
6064 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_From_long(static_cast< long >(result));
6072 return resultobj;
6073fail:
6074 return NULL;
6075}
6076
6077
6078SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj = 0;
6080 wxComboBox *arg1 = (wxComboBox *) 0 ;
6081 long arg2 ;
6082 long arg3 ;
6083 wxString *arg4 = 0 ;
6084 void *argp1 = 0 ;
6085 int res1 = 0 ;
6086 long val2 ;
6087 int ecode2 = 0 ;
6088 long val3 ;
6089 int ecode3 = 0 ;
6090 bool temp4 = false ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 PyObject * obj2 = 0 ;
6094 PyObject * obj3 = 0 ;
6095 char * kwnames[] = {
f460c29d 6096 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
6097 };
6098
6099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6101 if (!SWIG_IsOK(res1)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6103 }
6104 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6105 ecode2 = SWIG_AsVal_long(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6108 }
6109 arg2 = static_cast< long >(val2);
6110 ecode3 = SWIG_AsVal_long(obj2, &val3);
6111 if (!SWIG_IsOK(ecode3)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6113 }
6114 arg3 = static_cast< long >(val3);
6115 {
6116 arg4 = wxString_in_helper(obj3);
6117 if (arg4 == NULL) SWIG_fail;
6118 temp4 = true;
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 resultobj = SWIG_Py_Void();
6127 {
6128 if (temp4)
6129 delete arg4;
6130 }
6131 return resultobj;
6132fail:
6133 {
6134 if (temp4)
6135 delete arg4;
6136 }
6137 return NULL;
6138}
6139
6140
6141SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxComboBox *arg1 = (wxComboBox *) 0 ;
6144 long arg2 ;
6145 long arg3 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 long val2 ;
6149 int ecode2 = 0 ;
6150 long val3 ;
6151 int ecode3 = 0 ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 PyObject * obj2 = 0 ;
6155 char * kwnames[] = {
f460c29d 6156 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6161 if (!SWIG_IsOK(res1)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6163 }
6164 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6165 ecode2 = SWIG_AsVal_long(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6168 }
6169 arg2 = static_cast< long >(val2);
6170 ecode3 = SWIG_AsVal_long(obj2, &val3);
6171 if (!SWIG_IsOK(ecode3)) {
6172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6173 }
6174 arg3 = static_cast< long >(val3);
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetSelection(arg2,arg3);
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183fail:
6184 return NULL;
6185}
6186
6187
6188SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxComboBox *arg1 = (wxComboBox *) 0 ;
6191 long *arg2 = (long *) 0 ;
6192 long *arg3 = (long *) 0 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 long temp2 ;
6196 int res2 = SWIG_TMPOBJ ;
6197 long temp3 ;
6198 int res3 = SWIG_TMPOBJ ;
6199 PyObject *swig_obj[1] ;
6200
6201 arg2 = &temp2;
6202 arg3 = &temp3;
6203 if (!args) SWIG_fail;
6204 swig_obj[0] = args;
6205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6206 if (!SWIG_IsOK(res1)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6208 }
6209 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 (arg1)->GetSelection(arg2,arg3);
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_Py_Void();
6217 if (SWIG_IsTmpObj(res2)) {
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6219 } else {
6220 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6222 }
6223 if (SWIG_IsTmpObj(res3)) {
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6225 } else {
6226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6228 }
6229 return resultobj;
6230fail:
6231 return NULL;
d55e5bfc
RD
6232}
6233
6234
554f62e9
RD
6235SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6236 PyObject *resultobj = 0;
6237 wxComboBox *arg1 = (wxComboBox *) 0 ;
6238 int result;
6239 void *argp1 = 0 ;
6240 int res1 = 0 ;
6241 PyObject *swig_obj[1] ;
6242
6243 if (!args) SWIG_fail;
6244 swig_obj[0] = args;
6245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6248 }
6249 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_From_int(static_cast< int >(result));
6257 return resultobj;
6258fail:
6259 return NULL;
6260}
6261
6262
6263SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj = 0;
6265 wxComboBox *arg1 = (wxComboBox *) 0 ;
6266 wxString *arg2 = 0 ;
6267 bool result;
6268 void *argp1 = 0 ;
6269 int res1 = 0 ;
6270 bool temp2 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 char * kwnames[] = {
6274 (char *) "self",(char *) "string", NULL
6275 };
6276
6277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6279 if (!SWIG_IsOK(res1)) {
6280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6281 }
6282 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6283 {
6284 arg2 = wxString_in_helper(obj1);
6285 if (arg2 == NULL) SWIG_fail;
6286 temp2 = true;
6287 }
6288 {
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 {
6295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6296 }
6297 {
6298 if (temp2)
6299 delete arg2;
6300 }
6301 return resultobj;
6302fail:
6303 {
6304 if (temp2)
6305 delete arg2;
6306 }
6307 return NULL;
6308}
6309
6310
50f151d7
RD
6311SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxComboBox *arg1 = (wxComboBox *) 0 ;
6314 int arg2 ;
6315 wxString *arg3 = 0 ;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 int val2 ;
6319 int ecode2 = 0 ;
6320 bool temp3 = false ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 PyObject * obj2 = 0 ;
6324 char * kwnames[] = {
6325 (char *) "self",(char *) "n",(char *) "string", NULL
6326 };
6327
6328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6332 }
6333 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6334 ecode2 = SWIG_AsVal_int(obj1, &val2);
6335 if (!SWIG_IsOK(ecode2)) {
6336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6337 }
6338 arg2 = static_cast< int >(val2);
6339 {
6340 arg3 = wxString_in_helper(obj2);
6341 if (arg3 == NULL) SWIG_fail;
6342 temp3 = true;
6343 }
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 (arg1)->SetString(arg2,(wxString const &)*arg3);
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_Py_Void();
6351 {
6352 if (temp3)
6353 delete arg3;
6354 }
6355 return resultobj;
6356fail:
6357 {
6358 if (temp3)
6359 delete arg3;
6360 }
6361 return NULL;
6362}
6363
6364
554f62e9
RD
6365SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj = 0;
6367 wxComboBox *arg1 = (wxComboBox *) 0 ;
6368 bool arg2 ;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 bool val2 ;
6372 int ecode2 = 0 ;
6373 PyObject * obj0 = 0 ;
6374 PyObject * obj1 = 0 ;
6375 char * kwnames[] = {
6376 (char *) "self",(char *) "editable", NULL
6377 };
6378
6379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6381 if (!SWIG_IsOK(res1)) {
6382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6383 }
6384 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6385 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6386 if (!SWIG_IsOK(ecode2)) {
6387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6388 }
6389 arg2 = static_cast< bool >(val2);
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 (arg1)->SetEditable(arg2);
6393 wxPyEndAllowThreads(__tstate);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 resultobj = SWIG_Py_Void();
6397 return resultobj;
6398fail:
6399 return NULL;
d55e5bfc
RD
6400}
6401
6402
554f62e9
RD
6403SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6404 PyObject *resultobj = 0;
6405 wxComboBox *arg1 = (wxComboBox *) 0 ;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 PyObject *swig_obj[1] ;
6409
6410 if (!args) SWIG_fail;
6411 swig_obj[0] = args;
6412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6413 if (!SWIG_IsOK(res1)) {
6414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6415 }
6416 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 (arg1)->SetInsertionPointEnd();
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_Py_Void();
6424 return resultobj;
6425fail:
6426 return NULL;
6427}
6428
6429
6430SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj = 0;
6432 wxComboBox *arg1 = (wxComboBox *) 0 ;
6433 long arg2 ;
6434 long arg3 ;
6435 void *argp1 = 0 ;
6436 int res1 = 0 ;
6437 long val2 ;
6438 int ecode2 = 0 ;
6439 long val3 ;
6440 int ecode3 = 0 ;
6441 PyObject * obj0 = 0 ;
6442 PyObject * obj1 = 0 ;
6443 PyObject * obj2 = 0 ;
6444 char * kwnames[] = {
f460c29d 6445 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6446 };
6447
6448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6450 if (!SWIG_IsOK(res1)) {
6451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6452 }
6453 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6454 ecode2 = SWIG_AsVal_long(obj1, &val2);
6455 if (!SWIG_IsOK(ecode2)) {
6456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6457 }
6458 arg2 = static_cast< long >(val2);
6459 ecode3 = SWIG_AsVal_long(obj2, &val3);
6460 if (!SWIG_IsOK(ecode3)) {
6461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6462 }
6463 arg3 = static_cast< long >(val3);
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 (arg1)->Remove(arg2,arg3);
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 resultobj = SWIG_Py_Void();
6471 return resultobj;
6472fail:
6473 return NULL;
d55e5bfc
RD
6474}
6475
6476
554f62e9
RD
6477SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxComboBox *arg1 = (wxComboBox *) 0 ;
6480 bool result;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6490 }
6491 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 {
6499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6500 }
6501 return resultobj;
6502fail:
6503 return NULL;
d55e5bfc
RD
6504}
6505
6506
554f62e9
RD
6507SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6508 PyObject *resultobj = 0;
6509 wxComboBox *arg1 = (wxComboBox *) 0 ;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6519 }
6520 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->Undo();
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529fail:
6530 return NULL;
d55e5bfc
RD
6531}
6532
6533
554f62e9
RD
6534SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6535 PyObject *resultobj = 0;
6536 wxComboBox *arg1 = (wxComboBox *) 0 ;
6537 void *argp1 = 0 ;
6538 int res1 = 0 ;
6539 PyObject *swig_obj[1] ;
6540
6541 if (!args) SWIG_fail;
6542 swig_obj[0] = args;
6543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6544 if (!SWIG_IsOK(res1)) {
6545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6546 }
6547 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6548 {
6549 PyThreadState* __tstate = wxPyBeginAllowThreads();
6550 (arg1)->Redo();
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_Py_Void();
6555 return resultobj;
6556fail:
6557 return NULL;
d55e5bfc
RD
6558}
6559
6560
554f62e9
RD
6561SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6562 PyObject *resultobj = 0;
6563 wxComboBox *arg1 = (wxComboBox *) 0 ;
6564 void *argp1 = 0 ;
6565 int res1 = 0 ;
6566 PyObject *swig_obj[1] ;
6567
6568 if (!args) SWIG_fail;
6569 swig_obj[0] = args;
6570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6573 }
6574 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 (arg1)->SelectAll();
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 resultobj = SWIG_Py_Void();
6582 return resultobj;
6583fail:
6584 return NULL;
f78cc896
RD
6585}
6586
6587
554f62e9
RD
6588SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6589 PyObject *resultobj = 0;
6590 wxComboBox *arg1 = (wxComboBox *) 0 ;
6591 bool result;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject *swig_obj[1] ;
6595
6596 if (!args) SWIG_fail;
6597 swig_obj[0] = args;
6598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6599 if (!SWIG_IsOK(res1)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6601 }
6602 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 return resultobj;
6613fail:
6614 return NULL;
9d7dfdff
RD
6615}
6616
6617
554f62e9
RD
6618SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6619 PyObject *resultobj = 0;
6620 wxComboBox *arg1 = (wxComboBox *) 0 ;
6621 bool result;
6622 void *argp1 = 0 ;
6623 int res1 = 0 ;
6624 PyObject *swig_obj[1] ;
6625
6626 if (!args) SWIG_fail;
6627 swig_obj[0] = args;
6628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6631 }
6632 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)((wxComboBox const *)arg1)->CanCut();
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643fail:
6644 return NULL;
121b9a67
RD
6645}
6646
6647
554f62e9
RD
6648SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 wxComboBox *arg1 = (wxComboBox *) 0 ;
6651 bool result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject *swig_obj[1] ;
6655
6656 if (!args) SWIG_fail;
6657 swig_obj[0] = args;
6658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6661 }
6662 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6671 }
6672 return resultobj;
6673fail:
6674 return NULL;
121b9a67
RD
6675}
6676
6677
554f62e9
RD
6678SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6679 PyObject *resultobj = 0;
6680 wxComboBox *arg1 = (wxComboBox *) 0 ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6691 }
6692 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703fail:
6704 return NULL;
d55e5bfc
RD
6705}
6706
6707
554f62e9
RD
6708SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 PyObject *resultobj = 0;
6710 wxComboBox *arg1 = (wxComboBox *) 0 ;
6711 bool result;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 PyObject *swig_obj[1] ;
6715
6716 if (!args) SWIG_fail;
6717 swig_obj[0] = args;
6718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6719 if (!SWIG_IsOK(res1)) {
6720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6721 }
6722 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6726 wxPyEndAllowThreads(__tstate);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 {
6730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6731 }
6732 return resultobj;
6733fail:
6734 return NULL;
d55e5bfc
RD
6735}
6736
6737
554f62e9
RD
6738SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj = 0;
6740 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6741 SwigValueWrapper<wxVisualAttributes > result;
6742 int val1 ;
6743 int ecode1 = 0 ;
6744 PyObject * obj0 = 0 ;
6745 char * kwnames[] = {
6746 (char *) "variant", NULL
6747 };
6748
6749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6750 if (obj0) {
6751 ecode1 = SWIG_AsVal_int(obj0, &val1);
6752 if (!SWIG_IsOK(ecode1)) {
6753 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6754 }
6755 arg1 = static_cast< wxWindowVariant >(val1);
6756 }
6757 {
6758 if (!wxPyCheckForApp()) SWIG_fail;
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 result = wxComboBox::GetClassDefaultAttributes(arg1);
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6765 return resultobj;
6766fail:
6767 return NULL;
d55e5bfc
RD
6768}
6769
6770
554f62e9
RD
6771SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 PyObject *obj;
6773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6774 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6775 return SWIG_Py_Void();
b519803b
RD
6776}
6777
554f62e9
RD
6778SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6779 return SWIG_Python_InitShadowInstance(args);
6780}
b519803b 6781
554f62e9
RD
6782SWIGINTERN int GaugeNameStr_set(PyObject *) {
6783 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6784 return 1;
b519803b
RD
6785}
6786
6787
554f62e9
RD
6788SWIGINTERN PyObject *GaugeNameStr_get(void) {
6789 PyObject *pyobj = 0;
6790
6791 {
6792#if wxUSE_UNICODE
6793 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6794#else
6795 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6796#endif
6797 }
6798 return pyobj;
6799}
6800
6801
6802SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxWindow *arg1 = (wxWindow *) 0 ;
6805 int arg2 = (int) -1 ;
6806 int arg3 = (int) 100 ;
6807 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6808 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6809 wxSize const &arg5_defvalue = wxDefaultSize ;
6810 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6811 long arg6 = (long) wxGA_HORIZONTAL ;
6812 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6813 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6814 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6815 wxString *arg8 = (wxString *) &arg8_defvalue ;
6816 wxGauge *result = 0 ;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 int val2 ;
6820 int ecode2 = 0 ;
6821 int val3 ;
6822 int ecode3 = 0 ;
6823 wxPoint temp4 ;
6824 wxSize temp5 ;
6825 long val6 ;
6826 int ecode6 = 0 ;
6827 void *argp7 = 0 ;
6828 int res7 = 0 ;
6829 bool temp8 = false ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 PyObject * obj3 = 0 ;
6834 PyObject * obj4 = 0 ;
6835 PyObject * obj5 = 0 ;
6836 PyObject * obj6 = 0 ;
6837 PyObject * obj7 = 0 ;
6838 char * kwnames[] = {
6839 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6840 };
6841
6842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6844 if (!SWIG_IsOK(res1)) {
6845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6846 }
6847 arg1 = reinterpret_cast< wxWindow * >(argp1);
6848 if (obj1) {
6849 ecode2 = SWIG_AsVal_int(obj1, &val2);
6850 if (!SWIG_IsOK(ecode2)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6852 }
6853 arg2 = static_cast< int >(val2);
6854 }
6855 if (obj2) {
6856 ecode3 = SWIG_AsVal_int(obj2, &val3);
6857 if (!SWIG_IsOK(ecode3)) {
6858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6859 }
6860 arg3 = static_cast< int >(val3);
6861 }
6862 if (obj3) {
b519803b 6863 {
554f62e9
RD
6864 arg4 = &temp4;
6865 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
b519803b 6866 }
554f62e9
RD
6867 }
6868 if (obj4) {
b519803b 6869 {
554f62e9
RD
6870 arg5 = &temp5;
6871 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
b519803b 6872 }
554f62e9
RD
6873 }
6874 if (obj5) {
6875 ecode6 = SWIG_AsVal_long(obj5, &val6);
6876 if (!SWIG_IsOK(ecode6)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6878 }
6879 arg6 = static_cast< long >(val6);
6880 }
6881 if (obj6) {
6882 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6883 if (!SWIG_IsOK(res7)) {
6884 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 if (!argp7) {
6887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
b519803b 6888 }
554f62e9
RD
6889 arg7 = reinterpret_cast< wxValidator * >(argp7);
6890 }
6891 if (obj7) {
b519803b 6892 {
554f62e9
RD
6893 arg8 = wxString_in_helper(obj7);
6894 if (arg8 == NULL) SWIG_fail;
6895 temp8 = true;
b519803b 6896 }
554f62e9
RD
6897 }
6898 {
6899 if (!wxPyCheckForApp()) SWIG_fail;
6900 PyThreadState* __tstate = wxPyBeginAllowThreads();
6901 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6906 {
6907 if (temp8)
6908 delete arg8;
6909 }
6910 return resultobj;
6911fail:
6912 {
6913 if (temp8)
6914 delete arg8;
6915 }
6916 return NULL;
b519803b
RD
6917}
6918
6919
554f62e9
RD
6920SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6921 PyObject *resultobj = 0;
6922 wxGauge *result = 0 ;
6923
6924 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6925 {
6926 if (!wxPyCheckForApp()) SWIG_fail;
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 result = (wxGauge *)new wxGauge();
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6933 return resultobj;
6934fail:
6935 return NULL;
6936}
6937
6938
6939SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj = 0;
6941 wxGauge *arg1 = (wxGauge *) 0 ;
6942 wxWindow *arg2 = (wxWindow *) 0 ;
6943 int arg3 = (int) -1 ;
6944 int arg4 = (int) 100 ;
6945 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6946 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6947 wxSize const &arg6_defvalue = wxDefaultSize ;
6948 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6949 long arg7 = (long) wxGA_HORIZONTAL ;
6950 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6951 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6952 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6953 wxString *arg9 = (wxString *) &arg9_defvalue ;
6954 bool result;
6955 void *argp1 = 0 ;
6956 int res1 = 0 ;
6957 void *argp2 = 0 ;
6958 int res2 = 0 ;
6959 int val3 ;
6960 int ecode3 = 0 ;
6961 int val4 ;
6962 int ecode4 = 0 ;
6963 wxPoint temp5 ;
6964 wxSize temp6 ;
6965 long val7 ;
6966 int ecode7 = 0 ;
6967 void *argp8 = 0 ;
6968 int res8 = 0 ;
6969 bool temp9 = false ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 PyObject * obj2 = 0 ;
6973 PyObject * obj3 = 0 ;
6974 PyObject * obj4 = 0 ;
6975 PyObject * obj5 = 0 ;
6976 PyObject * obj6 = 0 ;
6977 PyObject * obj7 = 0 ;
6978 PyObject * obj8 = 0 ;
6979 char * kwnames[] = {
6980 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6981 };
6982
6983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6985 if (!SWIG_IsOK(res1)) {
6986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6987 }
6988 arg1 = reinterpret_cast< wxGauge * >(argp1);
6989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6990 if (!SWIG_IsOK(res2)) {
6991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6992 }
6993 arg2 = reinterpret_cast< wxWindow * >(argp2);
6994 if (obj2) {
6995 ecode3 = SWIG_AsVal_int(obj2, &val3);
6996 if (!SWIG_IsOK(ecode3)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6998 }
6999 arg3 = static_cast< int >(val3);
7000 }
7001 if (obj3) {
7002 ecode4 = SWIG_AsVal_int(obj3, &val4);
7003 if (!SWIG_IsOK(ecode4)) {
7004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7005 }
7006 arg4 = static_cast< int >(val4);
7007 }
7008 if (obj4) {
b519803b 7009 {
554f62e9
RD
7010 arg5 = &temp5;
7011 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
b519803b 7012 }
554f62e9
RD
7013 }
7014 if (obj5) {
b519803b 7015 {
554f62e9
RD
7016 arg6 = &temp6;
7017 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
b519803b 7018 }
554f62e9
RD
7019 }
7020 if (obj6) {
7021 ecode7 = SWIG_AsVal_long(obj6, &val7);
7022 if (!SWIG_IsOK(ecode7)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7024 }
7025 arg7 = static_cast< long >(val7);
7026 }
7027 if (obj7) {
7028 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7029 if (!SWIG_IsOK(res8)) {
7030 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
b519803b 7031 }
554f62e9
RD
7032 if (!argp8) {
7033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7034 }
7035 arg8 = reinterpret_cast< wxValidator * >(argp8);
7036 }
7037 if (obj8) {
b519803b 7038 {
554f62e9
RD
7039 arg9 = wxString_in_helper(obj8);
7040 if (arg9 == NULL) SWIG_fail;
7041 temp9 = true;
b519803b 7042 }
554f62e9
RD
7043 }
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 {
7051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7052 }
7053 {
7054 if (temp9)
7055 delete arg9;
7056 }
7057 return resultobj;
7058fail:
7059 {
7060 if (temp9)
7061 delete arg9;
7062 }
7063 return NULL;
7064}
7065
7066
7067SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = 0;
7069 wxGauge *arg1 = (wxGauge *) 0 ;
7070 int arg2 ;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 int val2 ;
7074 int ecode2 = 0 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char * kwnames[] = {
7078 (char *) "self",(char *) "range", NULL
7079 };
7080
7081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7085 }
7086 arg1 = reinterpret_cast< wxGauge * >(argp1);
7087 ecode2 = SWIG_AsVal_int(obj1, &val2);
7088 if (!SWIG_IsOK(ecode2)) {
7089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7090 }
7091 arg2 = static_cast< int >(val2);
7092 {
7093 PyThreadState* __tstate = wxPyBeginAllowThreads();
7094 (arg1)->SetRange(arg2);
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = SWIG_Py_Void();
7099 return resultobj;
7100fail:
7101 return NULL;
b519803b
RD
7102}
7103
7104
554f62e9
RD
7105SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7106 PyObject *resultobj = 0;
7107 wxGauge *arg1 = (wxGauge *) 0 ;
7108 int result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 PyObject *swig_obj[1] ;
7112
7113 if (!args) SWIG_fail;
7114 swig_obj[0] = args;
7115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7116 if (!SWIG_IsOK(res1)) {
7117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7118 }
7119 arg1 = reinterpret_cast< wxGauge * >(argp1);
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 result = (int)((wxGauge const *)arg1)->GetRange();
7123 wxPyEndAllowThreads(__tstate);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 }
7126 resultobj = SWIG_From_int(static_cast< int >(result));
7127 return resultobj;
7128fail:
7129 return NULL;
7130}
7131
7132
7133SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7134 PyObject *resultobj = 0;
7135 wxGauge *arg1 = (wxGauge *) 0 ;
7136 int arg2 ;
7137 void *argp1 = 0 ;
7138 int res1 = 0 ;
7139 int val2 ;
7140 int ecode2 = 0 ;
7141 PyObject * obj0 = 0 ;
7142 PyObject * obj1 = 0 ;
7143 char * kwnames[] = {
7144 (char *) "self",(char *) "pos", NULL
7145 };
7146
7147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7149 if (!SWIG_IsOK(res1)) {
7150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7151 }
7152 arg1 = reinterpret_cast< wxGauge * >(argp1);
7153 ecode2 = SWIG_AsVal_int(obj1, &val2);
7154 if (!SWIG_IsOK(ecode2)) {
7155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7156 }
7157 arg2 = static_cast< int >(val2);
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
7160 (arg1)->SetValue(arg2);
7161 wxPyEndAllowThreads(__tstate);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 resultobj = SWIG_Py_Void();
7165 return resultobj;
7166fail:
7167 return NULL;
b519803b
RD
7168}
7169
7170
554f62e9
RD
7171SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7172 PyObject *resultobj = 0;
7173 wxGauge *arg1 = (wxGauge *) 0 ;
7174 int result;
7175 void *argp1 = 0 ;
7176 int res1 = 0 ;
7177 PyObject *swig_obj[1] ;
7178
7179 if (!args) SWIG_fail;
7180 swig_obj[0] = args;
7181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7182 if (!SWIG_IsOK(res1)) {
7183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7184 }
7185 arg1 = reinterpret_cast< wxGauge * >(argp1);
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 result = (int)((wxGauge const *)arg1)->GetValue();
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 resultobj = SWIG_From_int(static_cast< int >(result));
7193 return resultobj;
7194fail:
7195 return NULL;
b519803b
RD
7196}
7197
7198
0d2c9713
RD
7199SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 void *argp1 = 0 ;
7203 int res1 = 0 ;
7204 PyObject *swig_obj[1] ;
7205
7206 if (!args) SWIG_fail;
7207 swig_obj[0] = args;
7208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7209 if (!SWIG_IsOK(res1)) {
7210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7211 }
7212 arg1 = reinterpret_cast< wxGauge * >(argp1);
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 (arg1)->Pulse();
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_Py_Void();
7220 return resultobj;
7221fail:
7222 return NULL;
7223}
7224
7225
554f62e9
RD
7226SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7227 PyObject *resultobj = 0;
7228 wxGauge *arg1 = (wxGauge *) 0 ;
7229 bool result;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 PyObject *swig_obj[1] ;
7233
7234 if (!args) SWIG_fail;
7235 swig_obj[0] = args;
7236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7239 }
7240 arg1 = reinterpret_cast< wxGauge * >(argp1);
7241 {
7242 PyThreadState* __tstate = wxPyBeginAllowThreads();
7243 result = (bool)((wxGauge const *)arg1)->IsVertical();
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 {
7248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7249 }
7250 return resultobj;
7251fail:
7252 return NULL;
7253}
7254
7255
7256SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 wxGauge *arg1 = (wxGauge *) 0 ;
7259 int arg2 ;
7260 void *argp1 = 0 ;
7261 int res1 = 0 ;
7262 int val2 ;
7263 int ecode2 = 0 ;
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "self",(char *) "w", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7272 if (!SWIG_IsOK(res1)) {
7273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7274 }
7275 arg1 = reinterpret_cast< wxGauge * >(argp1);
7276 ecode2 = SWIG_AsVal_int(obj1, &val2);
7277 if (!SWIG_IsOK(ecode2)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7279 }
7280 arg2 = static_cast< int >(val2);
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 (arg1)->SetShadowWidth(arg2);
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_Py_Void();
7288 return resultobj;
7289fail:
7290 return NULL;
f20a2e1f
RD
7291}
7292
7293
554f62e9
RD
7294SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *resultobj = 0;
7296 wxGauge *arg1 = (wxGauge *) 0 ;
7297 int result;
7298 void *argp1 = 0 ;
7299 int res1 = 0 ;
7300 PyObject *swig_obj[1] ;
7301
7302 if (!args) SWIG_fail;
7303 swig_obj[0] = args;
7304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7305 if (!SWIG_IsOK(res1)) {
7306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7307 }
7308 arg1 = reinterpret_cast< wxGauge * >(argp1);
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_From_int(static_cast< int >(result));
7316 return resultobj;
7317fail:
7318 return NULL;
7319}
7320
7321
7322SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj = 0;
7324 wxGauge *arg1 = (wxGauge *) 0 ;
7325 int arg2 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 int val2 ;
7329 int ecode2 = 0 ;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char * kwnames[] = {
7333 (char *) "self",(char *) "w", NULL
7334 };
7335
7336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7340 }
7341 arg1 = reinterpret_cast< wxGauge * >(argp1);
7342 ecode2 = SWIG_AsVal_int(obj1, &val2);
7343 if (!SWIG_IsOK(ecode2)) {
7344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7345 }
7346 arg2 = static_cast< int >(val2);
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 (arg1)->SetBezelFace(arg2);
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_Py_Void();
7354 return resultobj;
7355fail:
7356 return NULL;
d55e5bfc 7357}
554f62e9
RD
7358
7359
7360SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 PyObject *resultobj = 0;
7362 wxGauge *arg1 = (wxGauge *) 0 ;
7363 int result;
7364 void *argp1 = 0 ;
7365 int res1 = 0 ;
7366 PyObject *swig_obj[1] ;
7367
7368 if (!args) SWIG_fail;
7369 swig_obj[0] = args;
7370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7371 if (!SWIG_IsOK(res1)) {
7372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7373 }
7374 arg1 = reinterpret_cast< wxGauge * >(argp1);
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_From_int(static_cast< int >(result));
7382 return resultobj;
7383fail:
7384 return NULL;
7385}
7386
7387
7388SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj = 0;
7390 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7391 SwigValueWrapper<wxVisualAttributes > result;
7392 int val1 ;
7393 int ecode1 = 0 ;
7394 PyObject * obj0 = 0 ;
7395 char * kwnames[] = {
7396 (char *) "variant", NULL
7397 };
7398
7399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7400 if (obj0) {
7401 ecode1 = SWIG_AsVal_int(obj0, &val1);
7402 if (!SWIG_IsOK(ecode1)) {
7403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7404 }
7405 arg1 = static_cast< wxWindowVariant >(val1);
7406 }
7407 {
7408 if (!wxPyCheckForApp()) SWIG_fail;
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 result = wxGauge::GetClassDefaultAttributes(arg1);
7411 wxPyEndAllowThreads(__tstate);
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7415 return resultobj;
7416fail:
7417 return NULL;
d55e5bfc
RD
7418}
7419
7420
554f62e9
RD
7421SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 PyObject *obj;
7423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7424 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7425 return SWIG_Py_Void();
7426}
7427
7428SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 return SWIG_Python_InitShadowInstance(args);
7430}
7431
7432SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7433 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7434 return 1;
7435}
7436
7437
7438SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7439 PyObject *pyobj = 0;
7440
7441 {
d55e5bfc 7442#if wxUSE_UNICODE
554f62e9 7443 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7444#else
554f62e9 7445 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7446#endif
554f62e9
RD
7447 }
7448 return pyobj;
d55e5bfc
RD
7449}
7450
7451
554f62e9
RD
7452SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7453 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7454 return 1;
d55e5bfc
RD
7455}
7456
7457
554f62e9
RD
7458SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7459 PyObject *pyobj = 0;
7460
7461 {
7462#if wxUSE_UNICODE
7463 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7464#else
7465 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7466#endif
7467 }
7468 return pyobj;
7469}
7470
7471
7472SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7473 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7474 return 1;
7475}
7476
7477
7478SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7479 PyObject *pyobj = 0;
7480
7481 {
7482#if wxUSE_UNICODE
7483 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7484#else
7485 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7486#endif
7487 }
7488 return pyobj;
7489}
7490
7491
7492SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj = 0;
7494 wxWindow *arg1 = (wxWindow *) 0 ;
7495 int arg2 = (int) -1 ;
7496 wxString const &arg3_defvalue = wxPyEmptyString ;
7497 wxString *arg3 = (wxString *) &arg3_defvalue ;
7498 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7499 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7500 wxSize const &arg5_defvalue = wxDefaultSize ;
7501 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7502 long arg6 = (long) 0 ;
7503 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7504 wxString *arg7 = (wxString *) &arg7_defvalue ;
7505 wxStaticBox *result = 0 ;
7506 void *argp1 = 0 ;
7507 int res1 = 0 ;
7508 int val2 ;
7509 int ecode2 = 0 ;
7510 bool temp3 = false ;
7511 wxPoint temp4 ;
7512 wxSize temp5 ;
7513 long val6 ;
7514 int ecode6 = 0 ;
7515 bool temp7 = false ;
7516 PyObject * obj0 = 0 ;
7517 PyObject * obj1 = 0 ;
7518 PyObject * obj2 = 0 ;
7519 PyObject * obj3 = 0 ;
7520 PyObject * obj4 = 0 ;
7521 PyObject * obj5 = 0 ;
7522 PyObject * obj6 = 0 ;
7523 char * kwnames[] = {
7524 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7525 };
7526
7527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7529 if (!SWIG_IsOK(res1)) {
7530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7531 }
7532 arg1 = reinterpret_cast< wxWindow * >(argp1);
7533 if (obj1) {
7534 ecode2 = SWIG_AsVal_int(obj1, &val2);
7535 if (!SWIG_IsOK(ecode2)) {
7536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7537 }
7538 arg2 = static_cast< int >(val2);
7539 }
7540 if (obj2) {
d55e5bfc 7541 {
554f62e9
RD
7542 arg3 = wxString_in_helper(obj2);
7543 if (arg3 == NULL) SWIG_fail;
7544 temp3 = true;
d55e5bfc 7545 }
554f62e9
RD
7546 }
7547 if (obj3) {
d55e5bfc 7548 {
554f62e9
RD
7549 arg4 = &temp4;
7550 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7551 }
554f62e9
RD
7552 }
7553 if (obj4) {
d55e5bfc 7554 {
554f62e9
RD
7555 arg5 = &temp5;
7556 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7557 }
554f62e9
RD
7558 }
7559 if (obj5) {
7560 ecode6 = SWIG_AsVal_long(obj5, &val6);
7561 if (!SWIG_IsOK(ecode6)) {
7562 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7563 }
7564 arg6 = static_cast< long >(val6);
7565 }
7566 if (obj6) {
d55e5bfc 7567 {
554f62e9
RD
7568 arg7 = wxString_in_helper(obj6);
7569 if (arg7 == NULL) SWIG_fail;
7570 temp7 = true;
d55e5bfc 7571 }
554f62e9
RD
7572 }
7573 {
7574 if (!wxPyCheckForApp()) SWIG_fail;
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7581 {
7582 if (temp3)
7583 delete arg3;
7584 }
7585 {
7586 if (temp7)
7587 delete arg7;
7588 }
7589 return resultobj;
7590fail:
7591 {
7592 if (temp3)
7593 delete arg3;
7594 }
7595 {
7596 if (temp7)
7597 delete arg7;
7598 }
7599 return NULL;
d55e5bfc
RD
7600}
7601
7602
554f62e9
RD
7603SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7604 PyObject *resultobj = 0;
7605 wxStaticBox *result = 0 ;
7606
7607 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7608 {
7609 if (!wxPyCheckForApp()) SWIG_fail;
7610 PyThreadState* __tstate = wxPyBeginAllowThreads();
7611 result = (wxStaticBox *)new wxStaticBox();
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7623 PyObject *resultobj = 0;
7624 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7625 wxWindow *arg2 = (wxWindow *) 0 ;
7626 int arg3 = (int) -1 ;
7627 wxString const &arg4_defvalue = wxPyEmptyString ;
7628 wxString *arg4 = (wxString *) &arg4_defvalue ;
7629 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7630 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7631 wxSize const &arg6_defvalue = wxDefaultSize ;
7632 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7633 long arg7 = (long) 0 ;
7634 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7635 wxString *arg8 = (wxString *) &arg8_defvalue ;
7636 bool result;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639 void *argp2 = 0 ;
7640 int res2 = 0 ;
7641 int val3 ;
7642 int ecode3 = 0 ;
7643 bool temp4 = false ;
7644 wxPoint temp5 ;
7645 wxSize temp6 ;
7646 long val7 ;
7647 int ecode7 = 0 ;
7648 bool temp8 = false ;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 PyObject * obj2 = 0 ;
7652 PyObject * obj3 = 0 ;
7653 PyObject * obj4 = 0 ;
7654 PyObject * obj5 = 0 ;
7655 PyObject * obj6 = 0 ;
7656 PyObject * obj7 = 0 ;
7657 char * kwnames[] = {
7658 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7659 };
7660
7661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7663 if (!SWIG_IsOK(res1)) {
7664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7665 }
7666 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7668 if (!SWIG_IsOK(res2)) {
7669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7670 }
7671 arg2 = reinterpret_cast< wxWindow * >(argp2);
7672 if (obj2) {
7673 ecode3 = SWIG_AsVal_int(obj2, &val3);
7674 if (!SWIG_IsOK(ecode3)) {
7675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7676 }
7677 arg3 = static_cast< int >(val3);
7678 }
7679 if (obj3) {
093d3ff1 7680 {
554f62e9
RD
7681 arg4 = wxString_in_helper(obj3);
7682 if (arg4 == NULL) SWIG_fail;
7683 temp4 = true;
093d3ff1 7684 }
554f62e9
RD
7685 }
7686 if (obj4) {
d55e5bfc 7687 {
554f62e9
RD
7688 arg5 = &temp5;
7689 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7690 }
554f62e9
RD
7691 }
7692 if (obj5) {
d55e5bfc 7693 {
554f62e9
RD
7694 arg6 = &temp6;
7695 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7696 }
554f62e9
RD
7697 }
7698 if (obj6) {
7699 ecode7 = SWIG_AsVal_long(obj6, &val7);
7700 if (!SWIG_IsOK(ecode7)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7702 }
7703 arg7 = static_cast< long >(val7);
7704 }
7705 if (obj7) {
093d3ff1 7706 {
554f62e9
RD
7707 arg8 = wxString_in_helper(obj7);
7708 if (arg8 == NULL) SWIG_fail;
7709 temp8 = true;
093d3ff1 7710 }
554f62e9
RD
7711 }
7712 {
7713 PyThreadState* __tstate = wxPyBeginAllowThreads();
7714 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 }
7718 {
7719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7720 }
7721 {
7722 if (temp4)
7723 delete arg4;
7724 }
7725 {
7726 if (temp8)
7727 delete arg8;
7728 }
7729 return resultobj;
7730fail:
7731 {
7732 if (temp4)
7733 delete arg4;
7734 }
7735 {
7736 if (temp8)
7737 delete arg8;
7738 }
7739 return NULL;
7740}
d55e5bfc 7741
554f62e9
RD
7742
7743SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj = 0;
7745 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7746 SwigValueWrapper<wxVisualAttributes > result;
7747 int val1 ;
7748 int ecode1 = 0 ;
7749 PyObject * obj0 = 0 ;
7750 char * kwnames[] = {
7751 (char *) "variant", NULL
7752 };
7753
7754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7755 if (obj0) {
7756 ecode1 = SWIG_AsVal_int(obj0, &val1);
7757 if (!SWIG_IsOK(ecode1)) {
7758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7759 }
7760 arg1 = static_cast< wxWindowVariant >(val1);
7761 }
7762 {
7763 if (!wxPyCheckForApp()) SWIG_fail;
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7770 return resultobj;
7771fail:
7772 return NULL;
7773}
7774
7775
7776SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7777 PyObject *obj;
7778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7779 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7780 return SWIG_Py_Void();
7781}
7782
7783SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7784 return SWIG_Python_InitShadowInstance(args);
7785}
7786
7787SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7788 PyObject *resultobj = 0;
7789 wxWindow *arg1 = (wxWindow *) 0 ;
7790 int arg2 = (int) -1 ;
7791 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7792 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7793 wxSize const &arg4_defvalue = wxDefaultSize ;
7794 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7795 long arg5 = (long) wxLI_HORIZONTAL ;
7796 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7797 wxString *arg6 = (wxString *) &arg6_defvalue ;
7798 wxStaticLine *result = 0 ;
7799 void *argp1 = 0 ;
7800 int res1 = 0 ;
7801 int val2 ;
7802 int ecode2 = 0 ;
7803 wxPoint temp3 ;
7804 wxSize temp4 ;
7805 long val5 ;
7806 int ecode5 = 0 ;
7807 bool temp6 = false ;
7808 PyObject * obj0 = 0 ;
7809 PyObject * obj1 = 0 ;
7810 PyObject * obj2 = 0 ;
7811 PyObject * obj3 = 0 ;
7812 PyObject * obj4 = 0 ;
7813 PyObject * obj5 = 0 ;
7814 char * kwnames[] = {
7815 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7816 };
7817
7818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7820 if (!SWIG_IsOK(res1)) {
7821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7822 }
7823 arg1 = reinterpret_cast< wxWindow * >(argp1);
7824 if (obj1) {
7825 ecode2 = SWIG_AsVal_int(obj1, &val2);
7826 if (!SWIG_IsOK(ecode2)) {
7827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7828 }
7829 arg2 = static_cast< int >(val2);
7830 }
7831 if (obj2) {
093d3ff1 7832 {
554f62e9
RD
7833 arg3 = &temp3;
7834 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7835 }
554f62e9
RD
7836 }
7837 if (obj3) {
d55e5bfc 7838 {
554f62e9
RD
7839 arg4 = &temp4;
7840 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7841 }
554f62e9
RD
7842 }
7843 if (obj4) {
7844 ecode5 = SWIG_AsVal_long(obj4, &val5);
7845 if (!SWIG_IsOK(ecode5)) {
7846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7847 }
7848 arg5 = static_cast< long >(val5);
7849 }
7850 if (obj5) {
7851 {
7852 arg6 = wxString_in_helper(obj5);
7853 if (arg6 == NULL) SWIG_fail;
7854 temp6 = true;
7855 }
7856 }
7857 {
7858 if (!wxPyCheckForApp()) SWIG_fail;
7859 PyThreadState* __tstate = wxPyBeginAllowThreads();
7860 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7861 wxPyEndAllowThreads(__tstate);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7865 {
7866 if (temp6)
7867 delete arg6;
7868 }
7869 return resultobj;
7870fail:
7871 {
7872 if (temp6)
7873 delete arg6;
7874 }
7875 return NULL;
d55e5bfc
RD
7876}
7877
7878
554f62e9
RD
7879SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7880 PyObject *resultobj = 0;
7881 wxStaticLine *result = 0 ;
7882
7883 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7884 {
7885 if (!wxPyCheckForApp()) SWIG_fail;
7886 PyThreadState* __tstate = wxPyBeginAllowThreads();
7887 result = (wxStaticLine *)new wxStaticLine();
7888 wxPyEndAllowThreads(__tstate);
7889 if (PyErr_Occurred()) SWIG_fail;
7890 }
7891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7892 return resultobj;
7893fail:
7894 return NULL;
7895}
7896
7897
7898SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7899 PyObject *resultobj = 0;
7900 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7901 wxWindow *arg2 = (wxWindow *) 0 ;
7902 int arg3 = (int) -1 ;
7903 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7904 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7905 wxSize const &arg5_defvalue = wxDefaultSize ;
7906 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7907 long arg6 = (long) wxLI_HORIZONTAL ;
7908 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7909 wxString *arg7 = (wxString *) &arg7_defvalue ;
7910 bool result;
7911 void *argp1 = 0 ;
7912 int res1 = 0 ;
7913 void *argp2 = 0 ;
7914 int res2 = 0 ;
7915 int val3 ;
7916 int ecode3 = 0 ;
7917 wxPoint temp4 ;
7918 wxSize temp5 ;
7919 long val6 ;
7920 int ecode6 = 0 ;
7921 bool temp7 = false ;
7922 PyObject * obj0 = 0 ;
7923 PyObject * obj1 = 0 ;
7924 PyObject * obj2 = 0 ;
7925 PyObject * obj3 = 0 ;
7926 PyObject * obj4 = 0 ;
7927 PyObject * obj5 = 0 ;
7928 PyObject * obj6 = 0 ;
7929 char * kwnames[] = {
7930 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7931 };
7932
7933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7935 if (!SWIG_IsOK(res1)) {
7936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7937 }
7938 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7940 if (!SWIG_IsOK(res2)) {
7941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7942 }
7943 arg2 = reinterpret_cast< wxWindow * >(argp2);
7944 if (obj2) {
7945 ecode3 = SWIG_AsVal_int(obj2, &val3);
7946 if (!SWIG_IsOK(ecode3)) {
7947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7948 }
7949 arg3 = static_cast< int >(val3);
7950 }
7951 if (obj3) {
d55e5bfc 7952 {
554f62e9
RD
7953 arg4 = &temp4;
7954 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7955 }
554f62e9
RD
7956 }
7957 if (obj4) {
093d3ff1 7958 {
554f62e9
RD
7959 arg5 = &temp5;
7960 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7961 }
554f62e9
RD
7962 }
7963 if (obj5) {
7964 ecode6 = SWIG_AsVal_long(obj5, &val6);
7965 if (!SWIG_IsOK(ecode6)) {
7966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7967 }
7968 arg6 = static_cast< long >(val6);
7969 }
7970 if (obj6) {
7971 {
7972 arg7 = wxString_in_helper(obj6);
7973 if (arg7 == NULL) SWIG_fail;
7974 temp7 = true;
7975 }
7976 }
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 {
7984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7985 }
7986 {
7987 if (temp7)
7988 delete arg7;
7989 }
7990 return resultobj;
7991fail:
7992 {
7993 if (temp7)
7994 delete arg7;
7995 }
7996 return NULL;
d55e5bfc
RD
7997}
7998
7999
554f62e9
RD
8000SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8003 bool result;
8004 void *argp1 = 0 ;
8005 int res1 = 0 ;
8006 PyObject *swig_obj[1] ;
8007
8008 if (!args) SWIG_fail;
8009 swig_obj[0] = args;
8010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8013 }
8014 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 {
8022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8023 }
8024 return resultobj;
8025fail:
8026 return NULL;
8027}
8028
8029
8030SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8031 PyObject *resultobj = 0;
8032 int result;
8033
8034 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (int)wxStaticLine::GetDefaultSize();
8038 wxPyEndAllowThreads(__tstate);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_From_int(static_cast< int >(result));
8042 return resultobj;
8043fail:
8044 return NULL;
8045}
8046
8047
8048SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj = 0;
8050 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8051 SwigValueWrapper<wxVisualAttributes > result;
8052 int val1 ;
8053 int ecode1 = 0 ;
8054 PyObject * obj0 = 0 ;
8055 char * kwnames[] = {
8056 (char *) "variant", NULL
8057 };
8058
8059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8060 if (obj0) {
8061 ecode1 = SWIG_AsVal_int(obj0, &val1);
8062 if (!SWIG_IsOK(ecode1)) {
8063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8064 }
8065 arg1 = static_cast< wxWindowVariant >(val1);
8066 }
8067 {
8068 if (!wxPyCheckForApp()) SWIG_fail;
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8075 return resultobj;
8076fail:
8077 return NULL;
8078}
8079
8080
8081SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8082 PyObject *obj;
8083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8084 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8085 return SWIG_Py_Void();
8086}
8087
8088SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8089 return SWIG_Python_InitShadowInstance(args);
8090}
8091
8092SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj = 0;
8094 wxWindow *arg1 = (wxWindow *) 0 ;
8095 int arg2 = (int) -1 ;
8096 wxString const &arg3_defvalue = wxPyEmptyString ;
8097 wxString *arg3 = (wxString *) &arg3_defvalue ;
8098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8100 wxSize const &arg5_defvalue = wxDefaultSize ;
8101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8102 long arg6 = (long) 0 ;
8103 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8104 wxString *arg7 = (wxString *) &arg7_defvalue ;
8105 wxStaticText *result = 0 ;
8106 void *argp1 = 0 ;
8107 int res1 = 0 ;
8108 int val2 ;
8109 int ecode2 = 0 ;
8110 bool temp3 = false ;
8111 wxPoint temp4 ;
8112 wxSize temp5 ;
8113 long val6 ;
8114 int ecode6 = 0 ;
8115 bool temp7 = false ;
8116 PyObject * obj0 = 0 ;
8117 PyObject * obj1 = 0 ;
8118 PyObject * obj2 = 0 ;
8119 PyObject * obj3 = 0 ;
8120 PyObject * obj4 = 0 ;
8121 PyObject * obj5 = 0 ;
8122 PyObject * obj6 = 0 ;
8123 char * kwnames[] = {
8124 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8125 };
8126
8127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8131 }
8132 arg1 = reinterpret_cast< wxWindow * >(argp1);
8133 if (obj1) {
8134 ecode2 = SWIG_AsVal_int(obj1, &val2);
8135 if (!SWIG_IsOK(ecode2)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8137 }
8138 arg2 = static_cast< int >(val2);
8139 }
8140 if (obj2) {
d55e5bfc 8141 {
554f62e9
RD
8142 arg3 = wxString_in_helper(obj2);
8143 if (arg3 == NULL) SWIG_fail;
8144 temp3 = true;
d55e5bfc 8145 }
554f62e9
RD
8146 }
8147 if (obj3) {
d55e5bfc 8148 {
554f62e9
RD
8149 arg4 = &temp4;
8150 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8151 }
554f62e9
RD
8152 }
8153 if (obj4) {
093d3ff1 8154 {
554f62e9
RD
8155 arg5 = &temp5;
8156 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8157 }
554f62e9
RD
8158 }
8159 if (obj5) {
8160 ecode6 = SWIG_AsVal_long(obj5, &val6);
8161 if (!SWIG_IsOK(ecode6)) {
8162 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8163 }
8164 arg6 = static_cast< long >(val6);
8165 }
8166 if (obj6) {
d55e5bfc 8167 {
554f62e9
RD
8168 arg7 = wxString_in_helper(obj6);
8169 if (arg7 == NULL) SWIG_fail;
8170 temp7 = true;
d55e5bfc 8171 }
554f62e9
RD
8172 }
8173 {
8174 if (!wxPyCheckForApp()) SWIG_fail;
8175 PyThreadState* __tstate = wxPyBeginAllowThreads();
8176 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8181 {
8182 if (temp3)
8183 delete arg3;
8184 }
8185 {
8186 if (temp7)
8187 delete arg7;
8188 }
8189 return resultobj;
8190fail:
8191 {
8192 if (temp3)
8193 delete arg3;
8194 }
8195 {
8196 if (temp7)
8197 delete arg7;
8198 }
8199 return NULL;
d55e5bfc
RD
8200}
8201
8202
554f62e9
RD
8203SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8204 PyObject *resultobj = 0;
8205 wxStaticText *result = 0 ;
8206
8207 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8208 {
8209 if (!wxPyCheckForApp()) SWIG_fail;
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (wxStaticText *)new wxStaticText();
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8216 return resultobj;
8217fail:
8218 return NULL;
8219}
8220
8221
8222SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj = 0;
8224 wxStaticText *arg1 = (wxStaticText *) 0 ;
8225 wxWindow *arg2 = (wxWindow *) 0 ;
8226 int arg3 = (int) -1 ;
8227 wxString const &arg4_defvalue = wxPyEmptyString ;
8228 wxString *arg4 = (wxString *) &arg4_defvalue ;
8229 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8230 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8231 wxSize const &arg6_defvalue = wxDefaultSize ;
8232 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8233 long arg7 = (long) 0 ;
8234 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8235 wxString *arg8 = (wxString *) &arg8_defvalue ;
8236 bool result;
8237 void *argp1 = 0 ;
8238 int res1 = 0 ;
8239 void *argp2 = 0 ;
8240 int res2 = 0 ;
8241 int val3 ;
8242 int ecode3 = 0 ;
8243 bool temp4 = false ;
8244 wxPoint temp5 ;
8245 wxSize temp6 ;
8246 long val7 ;
8247 int ecode7 = 0 ;
8248 bool temp8 = false ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 PyObject * obj2 = 0 ;
8252 PyObject * obj3 = 0 ;
8253 PyObject * obj4 = 0 ;
8254 PyObject * obj5 = 0 ;
8255 PyObject * obj6 = 0 ;
8256 PyObject * obj7 = 0 ;
8257 char * kwnames[] = {
8258 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8259 };
8260
8261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8263 if (!SWIG_IsOK(res1)) {
8264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8265 }
8266 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8268 if (!SWIG_IsOK(res2)) {
8269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8270 }
8271 arg2 = reinterpret_cast< wxWindow * >(argp2);
8272 if (obj2) {
8273 ecode3 = SWIG_AsVal_int(obj2, &val3);
8274 if (!SWIG_IsOK(ecode3)) {
8275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8276 }
8277 arg3 = static_cast< int >(val3);
8278 }
8279 if (obj3) {
d55e5bfc 8280 {
554f62e9
RD
8281 arg4 = wxString_in_helper(obj3);
8282 if (arg4 == NULL) SWIG_fail;
8283 temp4 = true;
8284 }
8285 }
8286 if (obj4) {
8287 {
8288 arg5 = &temp5;
8289 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8290 }
554f62e9
RD
8291 }
8292 if (obj5) {
093d3ff1 8293 {
554f62e9
RD
8294 arg6 = &temp6;
8295 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8296 }
554f62e9
RD
8297 }
8298 if (obj6) {
8299 ecode7 = SWIG_AsVal_long(obj6, &val7);
8300 if (!SWIG_IsOK(ecode7)) {
8301 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8302 }
8303 arg7 = static_cast< long >(val7);
8304 }
8305 if (obj7) {
093d3ff1 8306 {
554f62e9
RD
8307 arg8 = wxString_in_helper(obj7);
8308 if (arg8 == NULL) SWIG_fail;
8309 temp8 = true;
8310 }
8311 }
8312 {
8313 PyThreadState* __tstate = wxPyBeginAllowThreads();
8314 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 {
8319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8320 }
8321 {
8322 if (temp4)
8323 delete arg4;
8324 }
8325 {
8326 if (temp8)
8327 delete arg8;
8328 }
8329 return resultobj;
8330fail:
8331 {
8332 if (temp4)
8333 delete arg4;
8334 }
8335 {
8336 if (temp8)
8337 delete arg8;
8338 }
8339 return NULL;
8340}
8341
8342
8343SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj = 0;
8345 wxStaticText *arg1 = (wxStaticText *) 0 ;
8346 int arg2 ;
8347 void *argp1 = 0 ;
8348 int res1 = 0 ;
8349 int val2 ;
8350 int ecode2 = 0 ;
8351 PyObject * obj0 = 0 ;
8352 PyObject * obj1 = 0 ;
8353 char * kwnames[] = {
8354 (char *) "self",(char *) "width", NULL
8355 };
8356
8357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8359 if (!SWIG_IsOK(res1)) {
8360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8361 }
8362 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8363 ecode2 = SWIG_AsVal_int(obj1, &val2);
8364 if (!SWIG_IsOK(ecode2)) {
8365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8366 }
8367 arg2 = static_cast< int >(val2);
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 (arg1)->Wrap(arg2);
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_Py_Void();
8375 return resultobj;
8376fail:
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj = 0;
8383 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8384 SwigValueWrapper<wxVisualAttributes > result;
8385 int val1 ;
8386 int ecode1 = 0 ;
8387 PyObject * obj0 = 0 ;
8388 char * kwnames[] = {
8389 (char *) "variant", NULL
8390 };
8391
8392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8393 if (obj0) {
8394 ecode1 = SWIG_AsVal_int(obj0, &val1);
8395 if (!SWIG_IsOK(ecode1)) {
8396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8397 }
8398 arg1 = static_cast< wxWindowVariant >(val1);
8399 }
8400 {
8401 if (!wxPyCheckForApp()) SWIG_fail;
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 result = wxStaticText::GetClassDefaultAttributes(arg1);
8404 wxPyEndAllowThreads(__tstate);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8408 return resultobj;
8409fail:
8410 return NULL;
8411}
8412
8413
8414SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8415 PyObject *obj;
8416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8417 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8418 return SWIG_Py_Void();
8419}
8420
8421SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8422 return SWIG_Python_InitShadowInstance(args);
8423}
8424
8425SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj = 0;
8427 wxWindow *arg1 = (wxWindow *) 0 ;
8428 int arg2 = (int) -1 ;
8429 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8430 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8431 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8432 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8433 wxSize const &arg5_defvalue = wxDefaultSize ;
8434 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8435 long arg6 = (long) 0 ;
8436 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8437 wxString *arg7 = (wxString *) &arg7_defvalue ;
8438 wxStaticBitmap *result = 0 ;
8439 void *argp1 = 0 ;
8440 int res1 = 0 ;
8441 int val2 ;
8442 int ecode2 = 0 ;
8443 void *argp3 = 0 ;
8444 int res3 = 0 ;
8445 wxPoint temp4 ;
8446 wxSize temp5 ;
8447 long val6 ;
8448 int ecode6 = 0 ;
8449 bool temp7 = false ;
8450 PyObject * obj0 = 0 ;
8451 PyObject * obj1 = 0 ;
8452 PyObject * obj2 = 0 ;
8453 PyObject * obj3 = 0 ;
8454 PyObject * obj4 = 0 ;
8455 PyObject * obj5 = 0 ;
8456 PyObject * obj6 = 0 ;
8457 char * kwnames[] = {
8458 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8459 };
8460
8461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8465 }
8466 arg1 = reinterpret_cast< wxWindow * >(argp1);
8467 if (obj1) {
8468 ecode2 = SWIG_AsVal_int(obj1, &val2);
8469 if (!SWIG_IsOK(ecode2)) {
8470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8471 }
8472 arg2 = static_cast< int >(val2);
8473 }
8474 if (obj2) {
8475 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8476 if (!SWIG_IsOK(res3)) {
8477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8478 }
8479 if (!argp3) {
8480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8481 }
554f62e9
RD
8482 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8483 }
8484 if (obj3) {
d55e5bfc 8485 {
554f62e9
RD
8486 arg4 = &temp4;
8487 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8488 }
554f62e9
RD
8489 }
8490 if (obj4) {
d55e5bfc 8491 {
554f62e9
RD
8492 arg5 = &temp5;
8493 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8494 }
554f62e9
RD
8495 }
8496 if (obj5) {
8497 ecode6 = SWIG_AsVal_long(obj5, &val6);
8498 if (!SWIG_IsOK(ecode6)) {
8499 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8500 }
8501 arg6 = static_cast< long >(val6);
8502 }
8503 if (obj6) {
093d3ff1 8504 {
554f62e9
RD
8505 arg7 = wxString_in_helper(obj6);
8506 if (arg7 == NULL) SWIG_fail;
8507 temp7 = true;
093d3ff1 8508 }
554f62e9
RD
8509 }
8510 {
8511 if (!wxPyCheckForApp()) SWIG_fail;
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8514 wxPyEndAllowThreads(__tstate);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8518 {
8519 if (temp7)
8520 delete arg7;
8521 }
8522 return resultobj;
8523fail:
8524 {
8525 if (temp7)
8526 delete arg7;
8527 }
8528 return NULL;
d55e5bfc
RD
8529}
8530
8531
554f62e9
RD
8532SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8533 PyObject *resultobj = 0;
8534 wxStaticBitmap *result = 0 ;
8535
8536 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8537 {
8538 if (!wxPyCheckForApp()) SWIG_fail;
8539 PyThreadState* __tstate = wxPyBeginAllowThreads();
8540 result = (wxStaticBitmap *)new wxStaticBitmap();
8541 wxPyEndAllowThreads(__tstate);
8542 if (PyErr_Occurred()) SWIG_fail;
8543 }
8544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8545 return resultobj;
8546fail:
8547 return NULL;
8548}
8549
8550
8551SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8552 PyObject *resultobj = 0;
8553 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8554 wxWindow *arg2 = (wxWindow *) 0 ;
8555 int arg3 = (int) -1 ;
8556 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8557 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8558 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8559 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8560 wxSize const &arg6_defvalue = wxDefaultSize ;
8561 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8562 long arg7 = (long) 0 ;
8563 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8564 wxString *arg8 = (wxString *) &arg8_defvalue ;
8565 bool result;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 void *argp2 = 0 ;
8569 int res2 = 0 ;
8570 int val3 ;
8571 int ecode3 = 0 ;
8572 void *argp4 = 0 ;
8573 int res4 = 0 ;
8574 wxPoint temp5 ;
8575 wxSize temp6 ;
8576 long val7 ;
8577 int ecode7 = 0 ;
8578 bool temp8 = false ;
8579 PyObject * obj0 = 0 ;
8580 PyObject * obj1 = 0 ;
8581 PyObject * obj2 = 0 ;
8582 PyObject * obj3 = 0 ;
8583 PyObject * obj4 = 0 ;
8584 PyObject * obj5 = 0 ;
8585 PyObject * obj6 = 0 ;
8586 PyObject * obj7 = 0 ;
8587 char * kwnames[] = {
8588 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8589 };
8590
8591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8593 if (!SWIG_IsOK(res1)) {
8594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8595 }
8596 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8597 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8598 if (!SWIG_IsOK(res2)) {
8599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8600 }
8601 arg2 = reinterpret_cast< wxWindow * >(argp2);
8602 if (obj2) {
8603 ecode3 = SWIG_AsVal_int(obj2, &val3);
8604 if (!SWIG_IsOK(ecode3)) {
8605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8606 }
8607 arg3 = static_cast< int >(val3);
8608 }
8609 if (obj3) {
8610 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8611 if (!SWIG_IsOK(res4)) {
8612 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8613 }
8614 if (!argp4) {
8615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
f20a2e1f 8616 }
554f62e9
RD
8617 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8618 }
8619 if (obj4) {
f20a2e1f 8620 {
554f62e9
RD
8621 arg5 = &temp5;
8622 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8623 }
554f62e9
RD
8624 }
8625 if (obj5) {
f20a2e1f 8626 {
554f62e9
RD
8627 arg6 = &temp6;
8628 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
f20a2e1f 8629 }
554f62e9
RD
8630 }
8631 if (obj6) {
8632 ecode7 = SWIG_AsVal_long(obj6, &val7);
8633 if (!SWIG_IsOK(ecode7)) {
8634 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8635 }
8636 arg7 = static_cast< long >(val7);
8637 }
8638 if (obj7) {
d55e5bfc 8639 {
554f62e9
RD
8640 arg8 = wxString_in_helper(obj7);
8641 if (arg8 == NULL) SWIG_fail;
8642 temp8 = true;
d55e5bfc 8643 }
554f62e9
RD
8644 }
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 {
8652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8653 }
8654 {
8655 if (temp8)
8656 delete arg8;
8657 }
8658 return resultobj;
8659fail:
8660 {
8661 if (temp8)
8662 delete arg8;
8663 }
8664 return NULL;
d55e5bfc
RD
8665}
8666
8667
554f62e9
RD
8668SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8669 PyObject *resultobj = 0;
8670 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8671 wxBitmap result;
8672 void *argp1 = 0 ;
8673 int res1 = 0 ;
8674 PyObject *swig_obj[1] ;
8675
8676 if (!args) SWIG_fail;
8677 swig_obj[0] = args;
8678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8679 if (!SWIG_IsOK(res1)) {
8680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8681 }
8682 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8683 {
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = (arg1)->GetBitmap();
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8690 return resultobj;
8691fail:
8692 return NULL;
8693}
8694
8695
8696SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8699 wxBitmap *arg2 = 0 ;
8700 void *argp1 = 0 ;
8701 int res1 = 0 ;
8702 void *argp2 = 0 ;
8703 int res2 = 0 ;
8704 PyObject * obj0 = 0 ;
8705 PyObject * obj1 = 0 ;
8706 char * kwnames[] = {
8707 (char *) "self",(char *) "bitmap", NULL
8708 };
8709
8710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8712 if (!SWIG_IsOK(res1)) {
8713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8714 }
8715 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8717 if (!SWIG_IsOK(res2)) {
8718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8719 }
8720 if (!argp2) {
8721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8722 }
8723 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8724 {
8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
8726 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8727 wxPyEndAllowThreads(__tstate);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 resultobj = SWIG_Py_Void();
8731 return resultobj;
8732fail:
8733 return NULL;
8734}
8735
8736
8737SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj = 0;
8739 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8740 wxIcon *arg2 = 0 ;
8741 void *argp1 = 0 ;
8742 int res1 = 0 ;
8743 void *argp2 = 0 ;
8744 int res2 = 0 ;
8745 PyObject * obj0 = 0 ;
8746 PyObject * obj1 = 0 ;
8747 char * kwnames[] = {
8748 (char *) "self",(char *) "icon", NULL
8749 };
8750
8751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8753 if (!SWIG_IsOK(res1)) {
8754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8755 }
8756 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8758 if (!SWIG_IsOK(res2)) {
8759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8760 }
8761 if (!argp2) {
8762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8763 }
8764 arg2 = reinterpret_cast< wxIcon * >(argp2);
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 (arg1)->SetIcon((wxIcon const &)*arg2);
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 resultobj = SWIG_Py_Void();
8772 return resultobj;
8773fail:
8774 return NULL;
8775}
8776
8777
8778SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj = 0;
8780 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8781 SwigValueWrapper<wxVisualAttributes > result;
8782 int val1 ;
8783 int ecode1 = 0 ;
8784 PyObject * obj0 = 0 ;
8785 char * kwnames[] = {
8786 (char *) "variant", NULL
8787 };
8788
8789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8790 if (obj0) {
8791 ecode1 = SWIG_AsVal_int(obj0, &val1);
8792 if (!SWIG_IsOK(ecode1)) {
8793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8794 }
8795 arg1 = static_cast< wxWindowVariant >(val1);
8796 }
8797 {
8798 if (!wxPyCheckForApp()) SWIG_fail;
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8801 wxPyEndAllowThreads(__tstate);
8802 if (PyErr_Occurred()) SWIG_fail;
8803 }
8804 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8805 return resultobj;
8806fail:
8807 return NULL;
d55e5bfc
RD
8808}
8809
8810
554f62e9
RD
8811SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8812 PyObject *obj;
8813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8814 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8815 return SWIG_Py_Void();
d55e5bfc
RD
8816}
8817
554f62e9
RD
8818SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8819 return SWIG_Python_InitShadowInstance(args);
8820}
d55e5bfc 8821
554f62e9
RD
8822SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8823 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8824 return 1;
d55e5bfc
RD
8825}
8826
8827
554f62e9
RD
8828SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8829 PyObject *pyobj = 0;
8830
8831 {
d55e5bfc 8832#if wxUSE_UNICODE
554f62e9 8833 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8834#else
554f62e9 8835 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8836#endif
554f62e9
RD
8837 }
8838 return pyobj;
8839}
8840
8841
8842SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8843 PyObject *resultobj = 0;
8844 wxWindow *arg1 = (wxWindow *) 0 ;
8845 int arg2 = (int) -1 ;
8846 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8847 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8848 wxSize const &arg4_defvalue = wxDefaultSize ;
8849 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8850 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8851 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8852 long arg6 = (long) 0 ;
8853 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8854 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8855 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8856 wxString *arg8 = (wxString *) &arg8_defvalue ;
8857 wxListBox *result = 0 ;
8858 void *argp1 = 0 ;
8859 int res1 = 0 ;
8860 int val2 ;
8861 int ecode2 = 0 ;
8862 wxPoint temp3 ;
8863 wxSize temp4 ;
8864 bool temp5 = false ;
8865 long val6 ;
8866 int ecode6 = 0 ;
8867 void *argp7 = 0 ;
8868 int res7 = 0 ;
8869 bool temp8 = false ;
8870 PyObject * obj0 = 0 ;
8871 PyObject * obj1 = 0 ;
8872 PyObject * obj2 = 0 ;
8873 PyObject * obj3 = 0 ;
8874 PyObject * obj4 = 0 ;
8875 PyObject * obj5 = 0 ;
8876 PyObject * obj6 = 0 ;
8877 PyObject * obj7 = 0 ;
8878 char * kwnames[] = {
8879 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8880 };
8881
8882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8884 if (!SWIG_IsOK(res1)) {
8885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8886 }
8887 arg1 = reinterpret_cast< wxWindow * >(argp1);
8888 if (obj1) {
8889 ecode2 = SWIG_AsVal_int(obj1, &val2);
8890 if (!SWIG_IsOK(ecode2)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8892 }
8893 arg2 = static_cast< int >(val2);
8894 }
8895 if (obj2) {
d55e5bfc 8896 {
554f62e9
RD
8897 arg3 = &temp3;
8898 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8899 }
554f62e9
RD
8900 }
8901 if (obj3) {
d55e5bfc 8902 {
554f62e9
RD
8903 arg4 = &temp4;
8904 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8905 }
554f62e9
RD
8906 }
8907 if (obj4) {
d55e5bfc 8908 {
554f62e9
RD
8909 if (! PySequence_Check(obj4)) {
8910 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8911 SWIG_fail;
8912 }
8913 arg5 = new wxArrayString;
8914 temp5 = true;
8915 int i, len=PySequence_Length(obj4);
8916 for (i=0; i<len; i++) {
8917 PyObject* item = PySequence_GetItem(obj4, i);
8918 wxString* s = wxString_in_helper(item);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 arg5->Add(*s);
8921 delete s;
8922 Py_DECREF(item);
8923 }
d55e5bfc 8924 }
554f62e9
RD
8925 }
8926 if (obj5) {
8927 ecode6 = SWIG_AsVal_long(obj5, &val6);
8928 if (!SWIG_IsOK(ecode6)) {
8929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8930 }
8931 arg6 = static_cast< long >(val6);
8932 }
8933 if (obj6) {
8934 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8935 if (!SWIG_IsOK(res7)) {
8936 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8937 }
554f62e9
RD
8938 if (!argp7) {
8939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8940 }
554f62e9
RD
8941 arg7 = reinterpret_cast< wxValidator * >(argp7);
8942 }
8943 if (obj7) {
d55e5bfc 8944 {
554f62e9
RD
8945 arg8 = wxString_in_helper(obj7);
8946 if (arg8 == NULL) SWIG_fail;
8947 temp8 = true;
d55e5bfc 8948 }
554f62e9
RD
8949 }
8950 {
8951 if (!wxPyCheckForApp()) SWIG_fail;
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8958 {
8959 if (temp5) delete arg5;
8960 }
8961 {
8962 if (temp8)
8963 delete arg8;
8964 }
8965 return resultobj;
8966fail:
8967 {
8968 if (temp5) delete arg5;
8969 }
8970 {
8971 if (temp8)
8972 delete arg8;
8973 }
8974 return NULL;
d55e5bfc
RD
8975}
8976
8977
554f62e9
RD
8978SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *resultobj = 0;
8980 wxListBox *result = 0 ;
8981
8982 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8983 {
8984 if (!wxPyCheckForApp()) SWIG_fail;
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = (wxListBox *)new wxListBox();
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8991 return resultobj;
8992fail:
8993 return NULL;
8994}
8995
8996
8997SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxListBox *arg1 = (wxListBox *) 0 ;
9000 wxWindow *arg2 = (wxWindow *) 0 ;
9001 int arg3 = (int) -1 ;
9002 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9003 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9004 wxSize const &arg5_defvalue = wxDefaultSize ;
9005 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9006 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9007 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9008 long arg7 = (long) 0 ;
9009 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9010 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9011 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9012 wxString *arg9 = (wxString *) &arg9_defvalue ;
9013 bool result;
9014 void *argp1 = 0 ;
9015 int res1 = 0 ;
9016 void *argp2 = 0 ;
9017 int res2 = 0 ;
9018 int val3 ;
9019 int ecode3 = 0 ;
9020 wxPoint temp4 ;
9021 wxSize temp5 ;
9022 bool temp6 = false ;
9023 long val7 ;
9024 int ecode7 = 0 ;
9025 void *argp8 = 0 ;
9026 int res8 = 0 ;
9027 bool temp9 = false ;
9028 PyObject * obj0 = 0 ;
9029 PyObject * obj1 = 0 ;
9030 PyObject * obj2 = 0 ;
9031 PyObject * obj3 = 0 ;
9032 PyObject * obj4 = 0 ;
9033 PyObject * obj5 = 0 ;
9034 PyObject * obj6 = 0 ;
9035 PyObject * obj7 = 0 ;
9036 PyObject * obj8 = 0 ;
9037 char * kwnames[] = {
9038 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9039 };
9040
9041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9043 if (!SWIG_IsOK(res1)) {
9044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9045 }
9046 arg1 = reinterpret_cast< wxListBox * >(argp1);
9047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9048 if (!SWIG_IsOK(res2)) {
9049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9050 }
9051 arg2 = reinterpret_cast< wxWindow * >(argp2);
9052 if (obj2) {
9053 ecode3 = SWIG_AsVal_int(obj2, &val3);
9054 if (!SWIG_IsOK(ecode3)) {
9055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9056 }
9057 arg3 = static_cast< int >(val3);
9058 }
9059 if (obj3) {
d55e5bfc 9060 {
554f62e9
RD
9061 arg4 = &temp4;
9062 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9063 }
554f62e9
RD
9064 }
9065 if (obj4) {
d55e5bfc 9066 {
554f62e9
RD
9067 arg5 = &temp5;
9068 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9069 }
554f62e9
RD
9070 }
9071 if (obj5) {
d55e5bfc 9072 {
554f62e9
RD
9073 if (! PySequence_Check(obj5)) {
9074 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9075 SWIG_fail;
9076 }
9077 arg6 = new wxArrayString;
9078 temp6 = true;
9079 int i, len=PySequence_Length(obj5);
9080 for (i=0; i<len; i++) {
9081 PyObject* item = PySequence_GetItem(obj5, i);
9082 wxString* s = wxString_in_helper(item);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 arg6->Add(*s);
9085 delete s;
9086 Py_DECREF(item);
9087 }
d55e5bfc 9088 }
554f62e9
RD
9089 }
9090 if (obj6) {
9091 ecode7 = SWIG_AsVal_long(obj6, &val7);
9092 if (!SWIG_IsOK(ecode7)) {
9093 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9094 }
9095 arg7 = static_cast< long >(val7);
9096 }
9097 if (obj7) {
9098 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9099 if (!SWIG_IsOK(res8)) {
9100 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 9101 }
554f62e9
RD
9102 if (!argp8) {
9103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9104 }
554f62e9
RD
9105 arg8 = reinterpret_cast< wxValidator * >(argp8);
9106 }
9107 if (obj8) {
f20a2e1f 9108 {
554f62e9
RD
9109 arg9 = wxString_in_helper(obj8);
9110 if (arg9 == NULL) SWIG_fail;
9111 temp9 = true;
f20a2e1f 9112 }
554f62e9
RD
9113 }
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9117 wxPyEndAllowThreads(__tstate);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 }
9120 {
9121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9122 }
9123 {
9124 if (temp6) delete arg6;
9125 }
9126 {
9127 if (temp9)
9128 delete arg9;
9129 }
9130 return resultobj;
9131fail:
9132 {
9133 if (temp6) delete arg6;
9134 }
9135 {
9136 if (temp9)
9137 delete arg9;
9138 }
9139 return NULL;
9140}
9141
9142
9143SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj = 0;
9145 wxListBox *arg1 = (wxListBox *) 0 ;
9146 wxString *arg2 = 0 ;
9147 int arg3 ;
9148 PyObject *arg4 = (PyObject *) NULL ;
9149 void *argp1 = 0 ;
9150 int res1 = 0 ;
9151 bool temp2 = false ;
9152 int val3 ;
9153 int ecode3 = 0 ;
9154 PyObject * obj0 = 0 ;
9155 PyObject * obj1 = 0 ;
9156 PyObject * obj2 = 0 ;
9157 PyObject * obj3 = 0 ;
9158 char * kwnames[] = {
9159 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9160 };
9161
9162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9166 }
9167 arg1 = reinterpret_cast< wxListBox * >(argp1);
9168 {
9169 arg2 = wxString_in_helper(obj1);
9170 if (arg2 == NULL) SWIG_fail;
9171 temp2 = true;
9172 }
9173 ecode3 = SWIG_AsVal_int(obj2, &val3);
9174 if (!SWIG_IsOK(ecode3)) {
9175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9176 }
9177 arg3 = static_cast< int >(val3);
9178 if (obj3) {
9179 arg4 = obj3;
9180 }
9181 {
9182 PyThreadState* __tstate = wxPyBeginAllowThreads();
9183 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9184 wxPyEndAllowThreads(__tstate);
9185 if (PyErr_Occurred()) SWIG_fail;
9186 }
9187 resultobj = SWIG_Py_Void();
9188 {
9189 if (temp2)
9190 delete arg2;
9191 }
9192 return resultobj;
9193fail:
9194 {
9195 if (temp2)
9196 delete arg2;
9197 }
9198 return NULL;
9199}
9200
9201
9202SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj = 0;
9204 wxListBox *arg1 = (wxListBox *) 0 ;
9205 wxArrayString *arg2 = 0 ;
50f151d7 9206 unsigned int arg3 ;
554f62e9
RD
9207 void *argp1 = 0 ;
9208 int res1 = 0 ;
9209 bool temp2 = false ;
50f151d7 9210 unsigned int val3 ;
554f62e9
RD
9211 int ecode3 = 0 ;
9212 PyObject * obj0 = 0 ;
9213 PyObject * obj1 = 0 ;
9214 PyObject * obj2 = 0 ;
9215 char * kwnames[] = {
9216 (char *) "self",(char *) "items",(char *) "pos", NULL
9217 };
9218
9219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9221 if (!SWIG_IsOK(res1)) {
9222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9223 }
9224 arg1 = reinterpret_cast< wxListBox * >(argp1);
9225 {
9226 if (! PySequence_Check(obj1)) {
9227 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9228 SWIG_fail;
9229 }
9230 arg2 = new wxArrayString;
9231 temp2 = true;
9232 int i, len=PySequence_Length(obj1);
9233 for (i=0; i<len; i++) {
9234 PyObject* item = PySequence_GetItem(obj1, i);
9235 wxString* s = wxString_in_helper(item);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 arg2->Add(*s);
9238 delete s;
9239 Py_DECREF(item);
f20a2e1f 9240 }
554f62e9 9241 }
50f151d7 9242 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
554f62e9 9243 if (!SWIG_IsOK(ecode3)) {
50f151d7 9244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
554f62e9 9245 }
50f151d7 9246 arg3 = static_cast< unsigned int >(val3);
554f62e9
RD
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 resultobj = SWIG_Py_Void();
9254 {
9255 if (temp2) delete arg2;
9256 }
9257 return resultobj;
9258fail:
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return NULL;
f20a2e1f
RD
9263}
9264
9265
554f62e9
RD
9266SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj = 0;
9268 wxListBox *arg1 = (wxListBox *) 0 ;
9269 wxArrayString *arg2 = 0 ;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 bool temp2 = false ;
9273 PyObject * obj0 = 0 ;
9274 PyObject * obj1 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "self",(char *) "items", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9283 }
9284 arg1 = reinterpret_cast< wxListBox * >(argp1);
9285 {
9286 if (! PySequence_Check(obj1)) {
9287 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9288 SWIG_fail;
9289 }
9290 arg2 = new wxArrayString;
9291 temp2 = true;
9292 int i, len=PySequence_Length(obj1);
9293 for (i=0; i<len; i++) {
9294 PyObject* item = PySequence_GetItem(obj1, i);
9295 wxString* s = wxString_in_helper(item);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 arg2->Add(*s);
9298 delete s;
9299 Py_DECREF(item);
d55e5bfc 9300 }
554f62e9
RD
9301 }
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 (arg1)->Set((wxArrayString const &)*arg2);
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 resultobj = SWIG_Py_Void();
9309 {
9310 if (temp2) delete arg2;
9311 }
9312 return resultobj;
9313fail:
9314 {
9315 if (temp2) delete arg2;
9316 }
9317 return NULL;
9318}
9319
9320
9321SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj = 0;
9323 wxListBox *arg1 = (wxListBox *) 0 ;
9324 int arg2 ;
9325 bool result;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 int val2 ;
9329 int ecode2 = 0 ;
9330 PyObject * obj0 = 0 ;
9331 PyObject * obj1 = 0 ;
9332 char * kwnames[] = {
9333 (char *) "self",(char *) "n", NULL
9334 };
9335
9336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9338 if (!SWIG_IsOK(res1)) {
9339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9340 }
9341 arg1 = reinterpret_cast< wxListBox * >(argp1);
9342 ecode2 = SWIG_AsVal_int(obj1, &val2);
9343 if (!SWIG_IsOK(ecode2)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9345 }
9346 arg2 = static_cast< int >(val2);
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 {
9354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9355 }
9356 return resultobj;
9357fail:
9358 return NULL;
9359}
9360
9361
9362SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9363 PyObject *resultobj = 0;
9364 wxListBox *arg1 = (wxListBox *) 0 ;
9365 int arg2 ;
9366 bool arg3 = (bool) true ;
9367 void *argp1 = 0 ;
9368 int res1 = 0 ;
9369 int val2 ;
9370 int ecode2 = 0 ;
9371 bool val3 ;
9372 int ecode3 = 0 ;
9373 PyObject * obj0 = 0 ;
9374 PyObject * obj1 = 0 ;
9375 PyObject * obj2 = 0 ;
9376 char * kwnames[] = {
9377 (char *) "self",(char *) "n",(char *) "select", NULL
9378 };
9379
9380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9382 if (!SWIG_IsOK(res1)) {
9383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9384 }
9385 arg1 = reinterpret_cast< wxListBox * >(argp1);
9386 ecode2 = SWIG_AsVal_int(obj1, &val2);
9387 if (!SWIG_IsOK(ecode2)) {
9388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9389 }
9390 arg2 = static_cast< int >(val2);
9391 if (obj2) {
9392 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9393 if (!SWIG_IsOK(ecode3)) {
9394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9395 }
9396 arg3 = static_cast< bool >(val3);
9397 }
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 (arg1)->SetSelection(arg2,arg3);
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 resultobj = SWIG_Py_Void();
9405 return resultobj;
9406fail:
9407 return NULL;
9408}
9409
9410
9411SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj = 0;
9413 wxListBox *arg1 = (wxListBox *) 0 ;
9414 int arg2 ;
9415 void *argp1 = 0 ;
9416 int res1 = 0 ;
9417 int val2 ;
9418 int ecode2 = 0 ;
9419 PyObject * obj0 = 0 ;
9420 PyObject * obj1 = 0 ;
9421 char * kwnames[] = {
9422 (char *) "self",(char *) "n", NULL
9423 };
9424
9425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9427 if (!SWIG_IsOK(res1)) {
9428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9429 }
9430 arg1 = reinterpret_cast< wxListBox * >(argp1);
9431 ecode2 = SWIG_AsVal_int(obj1, &val2);
9432 if (!SWIG_IsOK(ecode2)) {
9433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9434 }
9435 arg2 = static_cast< int >(val2);
9436 {
9437 PyThreadState* __tstate = wxPyBeginAllowThreads();
9438 (arg1)->Select(arg2);
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) SWIG_fail;
9441 }
9442 resultobj = SWIG_Py_Void();
9443 return resultobj;
9444fail:
9445 return NULL;
9446}
9447
9448
9449SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj = 0;
9451 wxListBox *arg1 = (wxListBox *) 0 ;
9452 int arg2 ;
9453 void *argp1 = 0 ;
9454 int res1 = 0 ;
9455 int val2 ;
9456 int ecode2 = 0 ;
9457 PyObject * obj0 = 0 ;
9458 PyObject * obj1 = 0 ;
9459 char * kwnames[] = {
9460 (char *) "self",(char *) "n", NULL
9461 };
9462
9463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9465 if (!SWIG_IsOK(res1)) {
9466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9467 }
9468 arg1 = reinterpret_cast< wxListBox * >(argp1);
9469 ecode2 = SWIG_AsVal_int(obj1, &val2);
9470 if (!SWIG_IsOK(ecode2)) {
9471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9472 }
9473 arg2 = static_cast< int >(val2);
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 (arg1)->Deselect(arg2);
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 resultobj = SWIG_Py_Void();
9481 return resultobj;
9482fail:
9483 return NULL;
9484}
9485
9486
9487SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9488 PyObject *resultobj = 0;
9489 wxListBox *arg1 = (wxListBox *) 0 ;
9490 int arg2 = (int) -1 ;
9491 void *argp1 = 0 ;
9492 int res1 = 0 ;
9493 int val2 ;
9494 int ecode2 = 0 ;
9495 PyObject * obj0 = 0 ;
9496 PyObject * obj1 = 0 ;
9497 char * kwnames[] = {
9498 (char *) "self",(char *) "itemToLeaveSelected", NULL
9499 };
9500
9501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9503 if (!SWIG_IsOK(res1)) {
9504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9505 }
9506 arg1 = reinterpret_cast< wxListBox * >(argp1);
9507 if (obj1) {
9508 ecode2 = SWIG_AsVal_int(obj1, &val2);
9509 if (!SWIG_IsOK(ecode2)) {
9510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9511 }
9512 arg2 = static_cast< int >(val2);
9513 }
9514 {
9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
9516 (arg1)->DeselectAll(arg2);
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 resultobj = SWIG_Py_Void();
9521 return resultobj;
9522fail:
9523 return NULL;
9524}
9525
9526
9527SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj = 0;
9529 wxListBox *arg1 = (wxListBox *) 0 ;
9530 wxString *arg2 = 0 ;
9531 bool arg3 = (bool) true ;
9532 bool result;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 bool temp2 = false ;
9536 bool val3 ;
9537 int ecode3 = 0 ;
9538 PyObject * obj0 = 0 ;
9539 PyObject * obj1 = 0 ;
9540 PyObject * obj2 = 0 ;
9541 char * kwnames[] = {
9542 (char *) "self",(char *) "s",(char *) "select", NULL
9543 };
9544
9545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 arg2 = wxString_in_helper(obj1);
9553 if (arg2 == NULL) SWIG_fail;
9554 temp2 = true;
9555 }
9556 if (obj2) {
9557 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9558 if (!SWIG_IsOK(ecode3)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9560 }
9561 arg3 = static_cast< bool >(val3);
9562 }
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 {
9570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9571 }
9572 {
9573 if (temp2)
9574 delete arg2;
9575 }
9576 return resultobj;
9577fail:
9578 {
9579 if (temp2)
9580 delete arg2;
9581 }
9582 return NULL;
d55e5bfc
RD
9583}
9584
9585
554f62e9
RD
9586SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9587 PyObject *resultobj = 0;
9588 wxListBox *arg1 = (wxListBox *) 0 ;
9589 PyObject *result = 0 ;
9590 void *argp1 = 0 ;
9591 int res1 = 0 ;
9592 PyObject *swig_obj[1] ;
9593
9594 if (!args) SWIG_fail;
9595 swig_obj[0] = args;
9596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9597 if (!SWIG_IsOK(res1)) {
9598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9599 }
9600 arg1 = reinterpret_cast< wxListBox * >(argp1);
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (PyObject *)wxListBox_GetSelections(arg1);
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = result;
9608 return resultobj;
9609fail:
9610 return NULL;
9611}
9612
9613
9614SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9615 PyObject *resultobj = 0;
9616 wxListBox *arg1 = (wxListBox *) 0 ;
9617 int arg2 ;
9618 void *argp1 = 0 ;
9619 int res1 = 0 ;
9620 int val2 ;
9621 int ecode2 = 0 ;
9622 PyObject * obj0 = 0 ;
9623 PyObject * obj1 = 0 ;
9624 char * kwnames[] = {
9625 (char *) "self",(char *) "n", NULL
9626 };
9627
9628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9630 if (!SWIG_IsOK(res1)) {
9631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9632 }
9633 arg1 = reinterpret_cast< wxListBox * >(argp1);
9634 ecode2 = SWIG_AsVal_int(obj1, &val2);
9635 if (!SWIG_IsOK(ecode2)) {
9636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9637 }
9638 arg2 = static_cast< int >(val2);
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 (arg1)->SetFirstItem(arg2);
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 resultobj = SWIG_Py_Void();
9646 return resultobj;
9647fail:
9648 return NULL;
9649}
9650
9651
9652SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj = 0;
9654 wxListBox *arg1 = (wxListBox *) 0 ;
9655 wxString *arg2 = 0 ;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 bool temp2 = false ;
9659 PyObject * obj0 = 0 ;
9660 PyObject * obj1 = 0 ;
9661 char * kwnames[] = {
9662 (char *) "self",(char *) "s", NULL
9663 };
9664
9665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9667 if (!SWIG_IsOK(res1)) {
9668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9669 }
9670 arg1 = reinterpret_cast< wxListBox * >(argp1);
9671 {
9672 arg2 = wxString_in_helper(obj1);
9673 if (arg2 == NULL) SWIG_fail;
9674 temp2 = true;
9675 }
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 (arg1)->SetFirstItem((wxString const &)*arg2);
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_Py_Void();
9683 {
9684 if (temp2)
9685 delete arg2;
9686 }
9687 return resultobj;
9688fail:
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return NULL;
9694}
9695
9696
9697SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj = 0;
9699 wxListBox *arg1 = (wxListBox *) 0 ;
9700 int arg2 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 int val2 ;
9704 int ecode2 = 0 ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char * kwnames[] = {
9708 (char *) "self",(char *) "n", NULL
9709 };
9710
9711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9713 if (!SWIG_IsOK(res1)) {
9714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9715 }
9716 arg1 = reinterpret_cast< wxListBox * >(argp1);
9717 ecode2 = SWIG_AsVal_int(obj1, &val2);
9718 if (!SWIG_IsOK(ecode2)) {
9719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9720 }
9721 arg2 = static_cast< int >(val2);
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 (arg1)->EnsureVisible(arg2);
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 resultobj = SWIG_Py_Void();
9729 return resultobj;
9730fail:
9731 return NULL;
9732}
9733
9734
9735SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxListBox *arg1 = (wxListBox *) 0 ;
9738 wxString *arg2 = 0 ;
9739 void *argp1 = 0 ;
9740 int res1 = 0 ;
9741 bool temp2 = false ;
9742 PyObject * obj0 = 0 ;
9743 PyObject * obj1 = 0 ;
9744 char * kwnames[] = {
9745 (char *) "self",(char *) "s", NULL
9746 };
9747
9748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9750 if (!SWIG_IsOK(res1)) {
9751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9752 }
9753 arg1 = reinterpret_cast< wxListBox * >(argp1);
9754 {
9755 arg2 = wxString_in_helper(obj1);
9756 if (arg2 == NULL) SWIG_fail;
9757 temp2 = true;
9758 }
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_Py_Void();
9766 {
9767 if (temp2)
9768 delete arg2;
9769 }
9770 return resultobj;
9771fail:
9772 {
9773 if (temp2)
9774 delete arg2;
9775 }
9776 return NULL;
d55e5bfc
RD
9777}
9778
9779
554f62e9
RD
9780SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9781 PyObject *resultobj = 0;
9782 wxListBox *arg1 = (wxListBox *) 0 ;
9783 bool result;
9784 void *argp1 = 0 ;
9785 int res1 = 0 ;
9786 PyObject *swig_obj[1] ;
9787
9788 if (!args) SWIG_fail;
9789 swig_obj[0] = args;
9790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9791 if (!SWIG_IsOK(res1)) {
9792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9793 }
9794 arg1 = reinterpret_cast< wxListBox * >(argp1);
9795 {
9796 PyThreadState* __tstate = wxPyBeginAllowThreads();
9797 result = (bool)((wxListBox const *)arg1)->IsSorted();
9798 wxPyEndAllowThreads(__tstate);
9799 if (PyErr_Occurred()) SWIG_fail;
9800 }
9801 {
9802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9803 }
9804 return resultobj;
9805fail:
9806 return NULL;
9807}
9808
9809
9810SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9811 PyObject *resultobj = 0;
9812 wxListBox *arg1 = (wxListBox *) 0 ;
9813 wxPoint *arg2 = 0 ;
9814 int result;
9815 void *argp1 = 0 ;
9816 int res1 = 0 ;
9817 wxPoint temp2 ;
9818 PyObject * obj0 = 0 ;
9819 PyObject * obj1 = 0 ;
9820 char * kwnames[] = {
9821 (char *) "self",(char *) "pt", NULL
9822 };
9823
9824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9828 }
9829 arg1 = reinterpret_cast< wxListBox * >(argp1);
9830 {
9831 arg2 = &temp2;
9832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9833 }
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_From_int(static_cast< int >(result));
9841 return resultobj;
9842fail:
9843 return NULL;
9844}
9845
9846
9847SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj = 0;
9849 wxListBox *arg1 = (wxListBox *) 0 ;
9850 int arg2 ;
9851 wxColour *arg3 = 0 ;
9852 void *argp1 = 0 ;
9853 int res1 = 0 ;
9854 int val2 ;
9855 int ecode2 = 0 ;
9856 wxColour temp3 ;
9857 PyObject * obj0 = 0 ;
9858 PyObject * obj1 = 0 ;
9859 PyObject * obj2 = 0 ;
9860 char * kwnames[] = {
9861 (char *) "self",(char *) "item",(char *) "c", NULL
9862 };
9863
9864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9866 if (!SWIG_IsOK(res1)) {
9867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9868 }
9869 arg1 = reinterpret_cast< wxListBox * >(argp1);
9870 ecode2 = SWIG_AsVal_int(obj1, &val2);
9871 if (!SWIG_IsOK(ecode2)) {
9872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9873 }
9874 arg2 = static_cast< int >(val2);
9875 {
9876 arg3 = &temp3;
9877 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9878 }
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 resultobj = SWIG_Py_Void();
9886 return resultobj;
9887fail:
9888 return NULL;
9889}
9890
9891
9892SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9893 PyObject *resultobj = 0;
9894 wxListBox *arg1 = (wxListBox *) 0 ;
9895 int arg2 ;
9896 wxColour *arg3 = 0 ;
9897 void *argp1 = 0 ;
9898 int res1 = 0 ;
9899 int val2 ;
9900 int ecode2 = 0 ;
9901 wxColour temp3 ;
9902 PyObject * obj0 = 0 ;
9903 PyObject * obj1 = 0 ;
9904 PyObject * obj2 = 0 ;
9905 char * kwnames[] = {
9906 (char *) "self",(char *) "item",(char *) "c", NULL
9907 };
9908
9909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9911 if (!SWIG_IsOK(res1)) {
9912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9913 }
9914 arg1 = reinterpret_cast< wxListBox * >(argp1);
9915 ecode2 = SWIG_AsVal_int(obj1, &val2);
9916 if (!SWIG_IsOK(ecode2)) {
9917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9918 }
9919 arg2 = static_cast< int >(val2);
9920 {
9921 arg3 = &temp3;
9922 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9923 }
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932fail:
9933 return NULL;
9934}
9935
9936
9937SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxListBox *arg1 = (wxListBox *) 0 ;
9940 int arg2 ;
9941 wxFont *arg3 = 0 ;
9942 void *argp1 = 0 ;
9943 int res1 = 0 ;
9944 int val2 ;
9945 int ecode2 = 0 ;
9946 void *argp3 = 0 ;
9947 int res3 = 0 ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 PyObject * obj2 = 0 ;
9951 char * kwnames[] = {
9952 (char *) "self",(char *) "item",(char *) "f", NULL
9953 };
9954
9955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9957 if (!SWIG_IsOK(res1)) {
9958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9959 }
9960 arg1 = reinterpret_cast< wxListBox * >(argp1);
9961 ecode2 = SWIG_AsVal_int(obj1, &val2);
9962 if (!SWIG_IsOK(ecode2)) {
9963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9964 }
9965 arg2 = static_cast< int >(val2);
9966 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9967 if (!SWIG_IsOK(res3)) {
9968 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9969 }
9970 if (!argp3) {
9971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9972 }
9973 arg3 = reinterpret_cast< wxFont * >(argp3);
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9977 wxPyEndAllowThreads(__tstate);
9978 if (PyErr_Occurred()) SWIG_fail;
9979 }
9980 resultobj = SWIG_Py_Void();
9981 return resultobj;
9982fail:
9983 return NULL;
9984}
9985
9986
9987SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9988 PyObject *resultobj = 0;
9989 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9990 SwigValueWrapper<wxVisualAttributes > result;
9991 int val1 ;
9992 int ecode1 = 0 ;
9993 PyObject * obj0 = 0 ;
9994 char * kwnames[] = {
9995 (char *) "variant", NULL
9996 };
9997
9998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9999 if (obj0) {
10000 ecode1 = SWIG_AsVal_int(obj0, &val1);
10001 if (!SWIG_IsOK(ecode1)) {
10002 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10003 }
10004 arg1 = static_cast< wxWindowVariant >(val1);
10005 }
10006 {
10007 if (!wxPyCheckForApp()) SWIG_fail;
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 result = wxListBox::GetClassDefaultAttributes(arg1);
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10014 return resultobj;
10015fail:
10016 return NULL;
10017}
10018
10019
10020SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10021 PyObject *obj;
10022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10023 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10024 return SWIG_Py_Void();
10025}
10026
10027SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10028 return SWIG_Python_InitShadowInstance(args);
10029}
10030
10031SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj = 0;
10033 wxWindow *arg1 = (wxWindow *) 0 ;
10034 int arg2 = (int) -1 ;
10035 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10036 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10037 wxSize const &arg4_defvalue = wxDefaultSize ;
10038 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10039 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10040 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10041 long arg6 = (long) 0 ;
10042 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10043 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10044 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10045 wxString *arg8 = (wxString *) &arg8_defvalue ;
10046 wxCheckListBox *result = 0 ;
10047 void *argp1 = 0 ;
10048 int res1 = 0 ;
10049 int val2 ;
10050 int ecode2 = 0 ;
10051 wxPoint temp3 ;
10052 wxSize temp4 ;
10053 bool temp5 = false ;
10054 long val6 ;
10055 int ecode6 = 0 ;
10056 void *argp7 = 0 ;
10057 int res7 = 0 ;
10058 bool temp8 = false ;
10059 PyObject * obj0 = 0 ;
10060 PyObject * obj1 = 0 ;
10061 PyObject * obj2 = 0 ;
10062 PyObject * obj3 = 0 ;
10063 PyObject * obj4 = 0 ;
10064 PyObject * obj5 = 0 ;
10065 PyObject * obj6 = 0 ;
10066 PyObject * obj7 = 0 ;
10067 char * kwnames[] = {
10068 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10069 };
10070
10071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10073 if (!SWIG_IsOK(res1)) {
10074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10075 }
10076 arg1 = reinterpret_cast< wxWindow * >(argp1);
10077 if (obj1) {
10078 ecode2 = SWIG_AsVal_int(obj1, &val2);
10079 if (!SWIG_IsOK(ecode2)) {
10080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10081 }
10082 arg2 = static_cast< int >(val2);
10083 }
10084 if (obj2) {
d55e5bfc 10085 {
554f62e9
RD
10086 arg3 = &temp3;
10087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 10088 }
554f62e9
RD
10089 }
10090 if (obj3) {
d55e5bfc 10091 {
554f62e9
RD
10092 arg4 = &temp4;
10093 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10094 }
554f62e9
RD
10095 }
10096 if (obj4) {
d55e5bfc 10097 {
554f62e9
RD
10098 if (! PySequence_Check(obj4)) {
10099 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10100 SWIG_fail;
10101 }
10102 arg5 = new wxArrayString;
10103 temp5 = true;
10104 int i, len=PySequence_Length(obj4);
10105 for (i=0; i<len; i++) {
10106 PyObject* item = PySequence_GetItem(obj4, i);
10107 wxString* s = wxString_in_helper(item);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 arg5->Add(*s);
10110 delete s;
10111 Py_DECREF(item);
10112 }
d55e5bfc 10113 }
554f62e9
RD
10114 }
10115 if (obj5) {
10116 ecode6 = SWIG_AsVal_long(obj5, &val6);
10117 if (!SWIG_IsOK(ecode6)) {
10118 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10119 }
10120 arg6 = static_cast< long >(val6);
10121 }
10122 if (obj6) {
10123 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10124 if (!SWIG_IsOK(res7)) {
10125 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10126 }
554f62e9
RD
10127 if (!argp7) {
10128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10129 }
554f62e9
RD
10130 arg7 = reinterpret_cast< wxValidator * >(argp7);
10131 }
10132 if (obj7) {
093d3ff1 10133 {
554f62e9
RD
10134 arg8 = wxString_in_helper(obj7);
10135 if (arg8 == NULL) SWIG_fail;
10136 temp8 = true;
093d3ff1 10137 }
554f62e9
RD
10138 }
10139 {
10140 if (!wxPyCheckForApp()) SWIG_fail;
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10147 {
10148 if (temp5) delete arg5;
10149 }
10150 {
10151 if (temp8)
10152 delete arg8;
10153 }
10154 return resultobj;
10155fail:
10156 {
10157 if (temp5) delete arg5;
10158 }
10159 {
10160 if (temp8)
10161 delete arg8;
10162 }
10163 return NULL;
d55e5bfc
RD
10164}
10165
10166
554f62e9
RD
10167SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10168 PyObject *resultobj = 0;
10169 wxCheckListBox *result = 0 ;
10170
10171 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10172 {
10173 if (!wxPyCheckForApp()) SWIG_fail;
10174 PyThreadState* __tstate = wxPyBeginAllowThreads();
10175 result = (wxCheckListBox *)new wxCheckListBox();
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 }
10179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10180 return resultobj;
10181fail:
10182 return NULL;
10183}
10184
10185
10186SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj = 0;
10188 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10189 wxWindow *arg2 = (wxWindow *) 0 ;
10190 int arg3 = (int) -1 ;
10191 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10192 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10193 wxSize const &arg5_defvalue = wxDefaultSize ;
10194 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10195 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10196 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10197 long arg7 = (long) 0 ;
10198 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10199 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10200 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10201 wxString *arg9 = (wxString *) &arg9_defvalue ;
10202 bool result;
10203 void *argp1 = 0 ;
10204 int res1 = 0 ;
10205 void *argp2 = 0 ;
10206 int res2 = 0 ;
10207 int val3 ;
10208 int ecode3 = 0 ;
10209 wxPoint temp4 ;
10210 wxSize temp5 ;
10211 bool temp6 = false ;
10212 long val7 ;
10213 int ecode7 = 0 ;
10214 void *argp8 = 0 ;
10215 int res8 = 0 ;
10216 bool temp9 = false ;
10217 PyObject * obj0 = 0 ;
10218 PyObject * obj1 = 0 ;
10219 PyObject * obj2 = 0 ;
10220 PyObject * obj3 = 0 ;
10221 PyObject * obj4 = 0 ;
10222 PyObject * obj5 = 0 ;
10223 PyObject * obj6 = 0 ;
10224 PyObject * obj7 = 0 ;
10225 PyObject * obj8 = 0 ;
10226 char * kwnames[] = {
10227 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10228 };
10229
10230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10232 if (!SWIG_IsOK(res1)) {
10233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10234 }
10235 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10237 if (!SWIG_IsOK(res2)) {
10238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10239 }
10240 arg2 = reinterpret_cast< wxWindow * >(argp2);
10241 if (obj2) {
10242 ecode3 = SWIG_AsVal_int(obj2, &val3);
10243 if (!SWIG_IsOK(ecode3)) {
10244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10245 }
10246 arg3 = static_cast< int >(val3);
10247 }
10248 if (obj3) {
f20a2e1f 10249 {
554f62e9
RD
10250 arg4 = &temp4;
10251 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10252 }
554f62e9
RD
10253 }
10254 if (obj4) {
d55e5bfc 10255 {
554f62e9
RD
10256 arg5 = &temp5;
10257 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10258 }
554f62e9
RD
10259 }
10260 if (obj5) {
d55e5bfc 10261 {
554f62e9
RD
10262 if (! PySequence_Check(obj5)) {
10263 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10264 SWIG_fail;
10265 }
10266 arg6 = new wxArrayString;
10267 temp6 = true;
10268 int i, len=PySequence_Length(obj5);
10269 for (i=0; i<len; i++) {
10270 PyObject* item = PySequence_GetItem(obj5, i);
10271 wxString* s = wxString_in_helper(item);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 arg6->Add(*s);
10274 delete s;
10275 Py_DECREF(item);
10276 }
d55e5bfc 10277 }
554f62e9
RD
10278 }
10279 if (obj6) {
10280 ecode7 = SWIG_AsVal_long(obj6, &val7);
10281 if (!SWIG_IsOK(ecode7)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10283 }
10284 arg7 = static_cast< long >(val7);
10285 }
10286 if (obj7) {
10287 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10288 if (!SWIG_IsOK(res8)) {
10289 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10290 }
554f62e9
RD
10291 if (!argp8) {
10292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10293 }
554f62e9
RD
10294 arg8 = reinterpret_cast< wxValidator * >(argp8);
10295 }
10296 if (obj8) {
d55e5bfc 10297 {
554f62e9
RD
10298 arg9 = wxString_in_helper(obj8);
10299 if (arg9 == NULL) SWIG_fail;
10300 temp9 = true;
d55e5bfc 10301 }
554f62e9
RD
10302 }
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10306 wxPyEndAllowThreads(__tstate);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 }
10309 {
10310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10311 }
10312 {
10313 if (temp6) delete arg6;
10314 }
10315 {
10316 if (temp9)
10317 delete arg9;
10318 }
10319 return resultobj;
10320fail:
10321 {
10322 if (temp6) delete arg6;
10323 }
10324 {
10325 if (temp9)
10326 delete arg9;
10327 }
10328 return NULL;
10329}
10330
10331
10332SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10333 PyObject *resultobj = 0;
10334 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10335 unsigned int arg2 ;
554f62e9
RD
10336 bool result;
10337 void *argp1 = 0 ;
10338 int res1 = 0 ;
50f151d7 10339 unsigned int val2 ;
554f62e9
RD
10340 int ecode2 = 0 ;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char * kwnames[] = {
10344 (char *) "self",(char *) "index", NULL
10345 };
10346
10347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10349 if (!SWIG_IsOK(res1)) {
10350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10351 }
10352 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10353 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10354 if (!SWIG_IsOK(ecode2)) {
50f151d7 10355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10356 }
50f151d7 10357 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 result = (bool)(arg1)->IsChecked(arg2);
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 {
10365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10366 }
10367 return resultobj;
10368fail:
10369 return NULL;
10370}
10371
10372
10373SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj = 0;
10375 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10376 unsigned int arg2 ;
554f62e9
RD
10377 int arg3 = (int) true ;
10378 void *argp1 = 0 ;
10379 int res1 = 0 ;
50f151d7 10380 unsigned int val2 ;
554f62e9
RD
10381 int ecode2 = 0 ;
10382 int val3 ;
10383 int ecode3 = 0 ;
10384 PyObject * obj0 = 0 ;
10385 PyObject * obj1 = 0 ;
10386 PyObject * obj2 = 0 ;
10387 char * kwnames[] = {
10388 (char *) "self",(char *) "index",(char *) "check", NULL
10389 };
10390
10391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10393 if (!SWIG_IsOK(res1)) {
10394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10395 }
10396 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10397 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10398 if (!SWIG_IsOK(ecode2)) {
50f151d7 10399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10400 }
50f151d7 10401 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10402 if (obj2) {
10403 ecode3 = SWIG_AsVal_int(obj2, &val3);
10404 if (!SWIG_IsOK(ecode3)) {
10405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10406 }
10407 arg3 = static_cast< int >(val3);
10408 }
10409 {
10410 PyThreadState* __tstate = wxPyBeginAllowThreads();
10411 (arg1)->Check(arg2,arg3);
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 resultobj = SWIG_Py_Void();
10416 return resultobj;
10417fail:
10418 return NULL;
d55e5bfc
RD
10419}
10420
10421
554f62e9
RD
10422SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10423 PyObject *resultobj = 0;
10424 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10425 int result;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 PyObject *swig_obj[1] ;
10429
10430 if (!args) SWIG_fail;
10431 swig_obj[0] = args;
10432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10433 if (!SWIG_IsOK(res1)) {
10434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10435 }
10436 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (int)(arg1)->GetItemHeight();
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_From_int(static_cast< int >(result));
10444 return resultobj;
10445fail:
10446 return NULL;
d55e5bfc
RD
10447}
10448
10449
554f62e9
RD
10450SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10451 PyObject *obj;
10452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10453 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10454 return SWIG_Py_Void();
d55e5bfc
RD
10455}
10456
554f62e9
RD
10457SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10458 return SWIG_Python_InitShadowInstance(args);
9d7dfdff
RD
10459}
10460
554f62e9
RD
10461SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10462 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10463 return 1;
f20a2e1f
RD
10464}
10465
10466
554f62e9
RD
10467SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10468 PyObject *pyobj = 0;
10469
10470 {
10471#if wxUSE_UNICODE
10472 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10473#else
10474 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10475#endif
10476 }
10477 return pyobj;
10478}
10479
10480
10481SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10482 PyObject *resultobj = 0;
10483 wxColour const &arg1_defvalue = wxNullColour ;
10484 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10485 wxColour const &arg2_defvalue = wxNullColour ;
10486 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10487 wxFont const &arg3_defvalue = wxNullFont ;
10488 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10489 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10490 wxTextAttr *result = 0 ;
10491 wxColour temp1 ;
10492 wxColour temp2 ;
10493 void *argp3 = 0 ;
10494 int res3 = 0 ;
10495 int val4 ;
10496 int ecode4 = 0 ;
10497 PyObject * obj0 = 0 ;
10498 PyObject * obj1 = 0 ;
10499 PyObject * obj2 = 0 ;
10500 PyObject * obj3 = 0 ;
10501 char * kwnames[] = {
10502 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10503 };
10504
10505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10506 if (obj0) {
d55e5bfc 10507 {
554f62e9
RD
10508 arg1 = &temp1;
10509 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10510 }
554f62e9
RD
10511 }
10512 if (obj1) {
d55e5bfc 10513 {
554f62e9
RD
10514 arg2 = &temp2;
10515 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10516 }
554f62e9
RD
10517 }
10518 if (obj2) {
10519 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10520 if (!SWIG_IsOK(res3)) {
10521 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10522 }
554f62e9
RD
10523 if (!argp3) {
10524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10525 }
10526 arg3 = reinterpret_cast< wxFont * >(argp3);
10527 }
10528 if (obj3) {
10529 ecode4 = SWIG_AsVal_int(obj3, &val4);
10530 if (!SWIG_IsOK(ecode4)) {
10531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10532 }
10533 arg4 = static_cast< wxTextAttrAlignment >(val4);
10534 }
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10542 return resultobj;
10543fail:
10544 return NULL;
d55e5bfc
RD
10545}
10546
10547
554f62e9
RD
10548SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10549 PyObject *resultobj = 0;
10550 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10551 void *argp1 = 0 ;
10552 int res1 = 0 ;
10553 PyObject *swig_obj[1] ;
10554
10555 if (!args) SWIG_fail;
10556 swig_obj[0] = args;
10557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10558 if (!SWIG_IsOK(res1)) {
10559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10560 }
10561 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 delete arg1;
d55e5bfc 10565
554f62e9
RD
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_Py_Void();
10570 return resultobj;
10571fail:
10572 return NULL;
d55e5bfc
RD
10573}
10574
10575
554f62e9
RD
10576SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10577 PyObject *resultobj = 0;
10578 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10579 void *argp1 = 0 ;
10580 int res1 = 0 ;
10581 PyObject *swig_obj[1] ;
10582
10583 if (!args) SWIG_fail;
10584 swig_obj[0] = args;
10585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10588 }
10589 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 (arg1)->Init();
10593 wxPyEndAllowThreads(__tstate);
10594 if (PyErr_Occurred()) SWIG_fail;
10595 }
10596 resultobj = SWIG_Py_Void();
10597 return resultobj;
10598fail:
10599 return NULL;
10600}
10601
10602
f460c29d
RD
10603SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10604 PyObject *resultobj = 0;
10605 wxTextAttr *arg1 = 0 ;
10606 wxTextAttr *arg2 = 0 ;
10607 wxTextAttr result;
10608 void *argp1 = 0 ;
10609 int res1 = 0 ;
10610 void *argp2 = 0 ;
10611 int res2 = 0 ;
10612 PyObject * obj0 = 0 ;
10613 PyObject * obj1 = 0 ;
10614 char * kwnames[] = {
10615 (char *) "base",(char *) "overlay", NULL
10616 };
10617
10618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10619 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10620 if (!SWIG_IsOK(res1)) {
10621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10622 }
10623 if (!argp1) {
10624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10625 }
10626 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10628 if (!SWIG_IsOK(res2)) {
10629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10630 }
10631 if (!argp2) {
10632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10633 }
10634 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10635 {
10636 PyThreadState* __tstate = wxPyBeginAllowThreads();
10637 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10642 return resultobj;
10643fail:
10644 return NULL;
10645}
10646
10647
554f62e9
RD
10648SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj = 0;
10650 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10651 wxColour *arg2 = 0 ;
10652 void *argp1 = 0 ;
10653 int res1 = 0 ;
10654 wxColour temp2 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10657 char * kwnames[] = {
10658 (char *) "self",(char *) "colText", NULL
10659 };
10660
10661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10663 if (!SWIG_IsOK(res1)) {
10664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10665 }
10666 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10667 {
10668 arg2 = &temp2;
10669 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10670 }
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
10673 (arg1)->SetTextColour((wxColour const &)*arg2);
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 resultobj = SWIG_Py_Void();
10678 return resultobj;
10679fail:
10680 return NULL;
10681}
10682
10683
10684SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj = 0;
10686 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10687 wxColour *arg2 = 0 ;
10688 void *argp1 = 0 ;
10689 int res1 = 0 ;
10690 wxColour temp2 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 char * kwnames[] = {
10694 (char *) "self",(char *) "colBack", NULL
10695 };
10696
10697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10699 if (!SWIG_IsOK(res1)) {
10700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10701 }
10702 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10703 {
10704 arg2 = &temp2;
10705 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10706 }
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_Py_Void();
10714 return resultobj;
10715fail:
10716 return NULL;
10717}
10718
10719
10720SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10723 wxFont *arg2 = 0 ;
10724 long arg3 = (long) wxTEXT_ATTR_FONT ;
10725 void *argp1 = 0 ;
10726 int res1 = 0 ;
10727 void *argp2 = 0 ;
10728 int res2 = 0 ;
10729 long val3 ;
10730 int ecode3 = 0 ;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 PyObject * obj2 = 0 ;
10734 char * kwnames[] = {
10735 (char *) "self",(char *) "font",(char *) "flags", NULL
10736 };
10737
10738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10740 if (!SWIG_IsOK(res1)) {
10741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10742 }
10743 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10745 if (!SWIG_IsOK(res2)) {
10746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10747 }
10748 if (!argp2) {
10749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10750 }
10751 arg2 = reinterpret_cast< wxFont * >(argp2);
10752 if (obj2) {
10753 ecode3 = SWIG_AsVal_long(obj2, &val3);
10754 if (!SWIG_IsOK(ecode3)) {
10755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10756 }
10757 arg3 = static_cast< long >(val3);
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 resultobj = SWIG_Py_Void();
10766 return resultobj;
10767fail:
10768 return NULL;
10769}
10770
10771
10772SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj = 0;
10774 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10775 wxTextAttrAlignment arg2 ;
10776 void *argp1 = 0 ;
10777 int res1 = 0 ;
10778 int val2 ;
10779 int ecode2 = 0 ;
10780 PyObject * obj0 = 0 ;
10781 PyObject * obj1 = 0 ;
10782 char * kwnames[] = {
10783 (char *) "self",(char *) "alignment", NULL
10784 };
10785
10786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10788 if (!SWIG_IsOK(res1)) {
10789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10790 }
10791 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10792 ecode2 = SWIG_AsVal_int(obj1, &val2);
10793 if (!SWIG_IsOK(ecode2)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10795 }
10796 arg2 = static_cast< wxTextAttrAlignment >(val2);
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 (arg1)->SetAlignment(arg2);
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 resultobj = SWIG_Py_Void();
10804 return resultobj;
10805fail:
10806 return NULL;
10807}
10808
10809
10810SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj = 0;
10812 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10813 wxArrayInt *arg2 = 0 ;
10814 void *argp1 = 0 ;
10815 int res1 = 0 ;
10816 bool temp2 = false ;
10817 PyObject * obj0 = 0 ;
10818 PyObject * obj1 = 0 ;
10819 char * kwnames[] = {
10820 (char *) "self",(char *) "tabs", NULL
10821 };
10822
10823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10825 if (!SWIG_IsOK(res1)) {
10826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10827 }
10828 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10829 {
10830 if (! PySequence_Check(obj1)) {
10831 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10832 SWIG_fail;
10833 }
10834 arg2 = new wxArrayInt;
10835 temp2 = true;
10836 int i, len=PySequence_Length(obj1);
10837 for (i=0; i<len; i++) {
10838 PyObject* item = PySequence_GetItem(obj1, i);
10839 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10840 if (!number) {
10841 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10842 SWIG_fail;
10843 }
554f62e9
RD
10844 arg2->Add(PyInt_AS_LONG(number));
10845 Py_DECREF(item);
10846 Py_DECREF(number);
d55e5bfc 10847 }
554f62e9
RD
10848 }
10849 {
10850 PyThreadState* __tstate = wxPyBeginAllowThreads();
10851 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 resultobj = SWIG_Py_Void();
10856 {
10857 if (temp2) delete arg2;
10858 }
10859 return resultobj;
10860fail:
10861 {
10862 if (temp2) delete arg2;
10863 }
10864 return NULL;
10865}
10866
10867
10868SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj = 0;
10870 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10871 int arg2 ;
10872 int arg3 = (int) 0 ;
10873 void *argp1 = 0 ;
10874 int res1 = 0 ;
10875 int val2 ;
10876 int ecode2 = 0 ;
10877 int val3 ;
10878 int ecode3 = 0 ;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10881 PyObject * obj2 = 0 ;
10882 char * kwnames[] = {
10883 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10884 };
10885
10886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10888 if (!SWIG_IsOK(res1)) {
10889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10890 }
10891 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10892 ecode2 = SWIG_AsVal_int(obj1, &val2);
10893 if (!SWIG_IsOK(ecode2)) {
10894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10895 }
10896 arg2 = static_cast< int >(val2);
10897 if (obj2) {
10898 ecode3 = SWIG_AsVal_int(obj2, &val3);
10899 if (!SWIG_IsOK(ecode3)) {
10900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10901 }
10902 arg3 = static_cast< int >(val3);
10903 }
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetLeftIndent(arg2,arg3);
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 resultobj = SWIG_Py_Void();
10911 return resultobj;
10912fail:
10913 return NULL;
10914}
10915
10916
10917SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj = 0;
10919 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10920 int arg2 ;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 int val2 ;
10924 int ecode2 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char * kwnames[] = {
10928 (char *) "self",(char *) "indent", NULL
10929 };
10930
10931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10933 if (!SWIG_IsOK(res1)) {
10934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10935 }
10936 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10937 ecode2 = SWIG_AsVal_int(obj1, &val2);
10938 if (!SWIG_IsOK(ecode2)) {
10939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10940 }
10941 arg2 = static_cast< int >(val2);
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 (arg1)->SetRightIndent(arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_Py_Void();
10949 return resultobj;
10950fail:
10951 return NULL;
10952}
10953
10954
10955SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj = 0;
10957 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10958 long arg2 ;
10959 void *argp1 = 0 ;
10960 int res1 = 0 ;
10961 long val2 ;
10962 int ecode2 = 0 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char * kwnames[] = {
10966 (char *) "self",(char *) "flags", NULL
10967 };
10968
10969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10971 if (!SWIG_IsOK(res1)) {
10972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10973 }
10974 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10975 ecode2 = SWIG_AsVal_long(obj1, &val2);
10976 if (!SWIG_IsOK(ecode2)) {
10977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10978 }
10979 arg2 = static_cast< long >(val2);
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 (arg1)->SetFlags(arg2);
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 resultobj = SWIG_Py_Void();
10987 return resultobj;
10988fail:
10989 return NULL;
d55e5bfc
RD
10990}
10991
10992
554f62e9
RD
10993SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10994 PyObject *resultobj = 0;
10995 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10996 bool result;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject *swig_obj[1] ;
11000
11001 if (!args) SWIG_fail;
11002 swig_obj[0] = args;
11003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11006 }
11007 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018fail:
11019 return NULL;
d55e5bfc
RD
11020}
11021
11022
554f62e9
RD
11023SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11024 PyObject *resultobj = 0;
11025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 PyObject *swig_obj[1] ;
11030
11031 if (!args) SWIG_fail;
11032 swig_obj[0] = args;
11033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048fail:
11049 return NULL;
d55e5bfc
RD
11050}
11051
11052
554f62e9
RD
11053SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078fail:
11079 return NULL;
d55e5bfc
RD
11080}
11081
11082
554f62e9
RD
11083SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108fail:
11109 return NULL;
f20a2e1f
RD
11110}
11111
11112
554f62e9
RD
11113SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138fail:
11139 return NULL;
d55e5bfc
RD
11140}
11141
11142
554f62e9
RD
11143SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 PyObject *swig_obj[1] ;
11150
11151 if (!args) SWIG_fail;
11152 swig_obj[0] = args;
11153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11154 if (!SWIG_IsOK(res1)) {
11155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11156 }
11157 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 {
11165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11166 }
11167 return resultobj;
11168fail:
11169 return NULL;
d55e5bfc
RD
11170}
11171
11172
554f62e9
RD
11173SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11174 PyObject *resultobj = 0;
11175 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11176 bool result;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 PyObject *swig_obj[1] ;
11180
11181 if (!args) SWIG_fail;
11182 swig_obj[0] = args;
11183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11186 }
11187 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 {
11195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11196 }
11197 return resultobj;
11198fail:
11199 return NULL;
11200}
11201
11202
11203SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11204 PyObject *resultobj = 0;
11205 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11206 long arg2 ;
11207 bool result;
11208 void *argp1 = 0 ;
11209 int res1 = 0 ;
11210 long val2 ;
11211 int ecode2 = 0 ;
11212 PyObject * obj0 = 0 ;
11213 PyObject * obj1 = 0 ;
11214 char * kwnames[] = {
11215 (char *) "self",(char *) "flag", NULL
11216 };
11217
11218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11220 if (!SWIG_IsOK(res1)) {
11221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11222 }
11223 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11224 ecode2 = SWIG_AsVal_long(obj1, &val2);
11225 if (!SWIG_IsOK(ecode2)) {
11226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11227 }
11228 arg2 = static_cast< long >(val2);
11229 {
11230 PyThreadState* __tstate = wxPyBeginAllowThreads();
11231 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11232 wxPyEndAllowThreads(__tstate);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 }
11235 {
11236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11237 }
11238 return resultobj;
11239fail:
11240 return NULL;
d55e5bfc
RD
11241}
11242
11243
554f62e9
RD
11244SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11245 PyObject *resultobj = 0;
11246 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11247 wxColour *result = 0 ;
11248 void *argp1 = 0 ;
11249 int res1 = 0 ;
11250 PyObject *swig_obj[1] ;
11251
11252 if (!args) SWIG_fail;
11253 swig_obj[0] = args;
11254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11257 }
11258 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11261 {
554f62e9
RD
11262 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11263 result = (wxColour *) &_result_ref;
d55e5bfc 11264 }
554f62e9
RD
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11269 return resultobj;
11270fail:
11271 return NULL;
d55e5bfc
RD
11272}
11273
11274
554f62e9
RD
11275SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11276 PyObject *resultobj = 0;
11277 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11278 wxColour *result = 0 ;
11279 void *argp1 = 0 ;
11280 int res1 = 0 ;
11281 PyObject *swig_obj[1] ;
11282
11283 if (!args) SWIG_fail;
11284 swig_obj[0] = args;
11285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11286 if (!SWIG_IsOK(res1)) {
11287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11288 }
11289 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11292 {
554f62e9
RD
11293 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11294 result = (wxColour *) &_result_ref;
d55e5bfc 11295 }
554f62e9
RD
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11300 return resultobj;
11301fail:
11302 return NULL;
d55e5bfc
RD
11303}
11304
11305
554f62e9
RD
11306SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 wxFont *result = 0 ;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11323 {
554f62e9
RD
11324 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11325 result = (wxFont *) &_result_ref;
d55e5bfc 11326 }
554f62e9
RD
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 {
11331 wxFont* resultptr = new wxFont(*result);
11332 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11333 }
11334 return resultobj;
11335fail:
11336 return NULL;
d55e5bfc
RD
11337}
11338
11339
554f62e9
RD
11340SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11341 PyObject *resultobj = 0;
11342 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11343 wxTextAttrAlignment result;
11344 void *argp1 = 0 ;
11345 int res1 = 0 ;
11346 PyObject *swig_obj[1] ;
11347
11348 if (!args) SWIG_fail;
11349 swig_obj[0] = args;
11350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11351 if (!SWIG_IsOK(res1)) {
11352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11353 }
11354 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11358 wxPyEndAllowThreads(__tstate);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 }
11361 resultobj = SWIG_From_int(static_cast< int >(result));
11362 return resultobj;
11363fail:
11364 return NULL;
d55e5bfc
RD
11365}
11366
11367
554f62e9
RD
11368SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11369 PyObject *resultobj = 0;
11370 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11371 wxArrayInt *result = 0 ;
11372 void *argp1 = 0 ;
11373 int res1 = 0 ;
11374 PyObject *swig_obj[1] ;
11375
11376 if (!args) SWIG_fail;
11377 swig_obj[0] = args;
11378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11379 if (!SWIG_IsOK(res1)) {
11380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11381 }
11382 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11385 {
554f62e9
RD
11386 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11387 result = (wxArrayInt *) &_result_ref;
d55e5bfc 11388 }
554f62e9
RD
11389 wxPyEndAllowThreads(__tstate);
11390 if (PyErr_Occurred()) SWIG_fail;
11391 }
11392 {
b39fe951 11393 resultobj = wxArrayInt2PyList_helper(*result);
554f62e9
RD
11394 }
11395 return resultobj;
11396fail:
11397 return NULL;
d55e5bfc
RD
11398}
11399
11400
554f62e9
RD
11401SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11402 PyObject *resultobj = 0;
11403 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11404 long result;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 PyObject *swig_obj[1] ;
11408
11409 if (!args) SWIG_fail;
11410 swig_obj[0] = args;
11411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11412 if (!SWIG_IsOK(res1)) {
11413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11414 }
11415 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 resultobj = SWIG_From_long(static_cast< long >(result));
11423 return resultobj;
11424fail:
11425 return NULL;
d55e5bfc
RD
11426}
11427
11428
554f62e9
RD
11429SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 PyObject *resultobj = 0;
11431 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11432 long result;
11433 void *argp1 = 0 ;
11434 int res1 = 0 ;
11435 PyObject *swig_obj[1] ;
11436
11437 if (!args) SWIG_fail;
11438 swig_obj[0] = args;
11439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11440 if (!SWIG_IsOK(res1)) {
11441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11442 }
11443 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 resultobj = SWIG_From_long(static_cast< long >(result));
11451 return resultobj;
11452fail:
11453 return NULL;
d55e5bfc
RD
11454}
11455
11456
554f62e9
RD
11457SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11458 PyObject *resultobj = 0;
11459 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11460 long result;
11461 void *argp1 = 0 ;
11462 int res1 = 0 ;
11463 PyObject *swig_obj[1] ;
11464
11465 if (!args) SWIG_fail;
11466 swig_obj[0] = args;
11467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11468 if (!SWIG_IsOK(res1)) {
11469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11470 }
11471 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 resultobj = SWIG_From_long(static_cast< long >(result));
11479 return resultobj;
11480fail:
11481 return NULL;
d55e5bfc
RD
11482}
11483
11484
554f62e9
RD
11485SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11488 long result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 PyObject *swig_obj[1] ;
11492
11493 if (!args) SWIG_fail;
11494 swig_obj[0] = args;
11495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11496 if (!SWIG_IsOK(res1)) {
11497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11498 }
11499 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 resultobj = SWIG_From_long(static_cast< long >(result));
11507 return resultobj;
11508fail:
11509 return NULL;
d55e5bfc
RD
11510}
11511
11512
554f62e9
RD
11513SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11514 PyObject *resultobj = 0;
11515 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11516 bool result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 PyObject *swig_obj[1] ;
11520
11521 if (!args) SWIG_fail;
11522 swig_obj[0] = args;
11523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11524 if (!SWIG_IsOK(res1)) {
11525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11526 }
11527 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 {
11535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11536 }
11537 return resultobj;
11538fail:
11539 return NULL;
11540}
11541
11542
11543SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj = 0;
11545 wxTextAttr *arg1 = 0 ;
11546 wxTextAttr *arg2 = 0 ;
11547 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11548 wxTextAttr result;
11549 void *argp1 = 0 ;
11550 int res1 = 0 ;
11551 void *argp2 = 0 ;
11552 int res2 = 0 ;
11553 void *argp3 = 0 ;
11554 int res3 = 0 ;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 PyObject * obj2 = 0 ;
11558 char * kwnames[] = {
11559 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11560 };
11561
11562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11564 if (!SWIG_IsOK(res1)) {
11565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11566 }
11567 if (!argp1) {
11568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11569 }
11570 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11572 if (!SWIG_IsOK(res2)) {
11573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11574 }
11575 if (!argp2) {
11576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11577 }
11578 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11579 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11580 if (!SWIG_IsOK(res3)) {
11581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11582 }
11583 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11591 return resultobj;
11592fail:
11593 return NULL;
11594}
11595
11596
11597SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11598 PyObject *obj;
11599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11600 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11601 return SWIG_Py_Void();
11602}
11603
11604SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11605 return SWIG_Python_InitShadowInstance(args);
11606}
11607
11608SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj = 0;
11610 wxWindow *arg1 = (wxWindow *) 0 ;
11611 int arg2 = (int) -1 ;
11612 wxString const &arg3_defvalue = wxPyEmptyString ;
11613 wxString *arg3 = (wxString *) &arg3_defvalue ;
11614 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11615 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11616 wxSize const &arg5_defvalue = wxDefaultSize ;
11617 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11618 long arg6 = (long) 0 ;
11619 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11620 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11621 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11622 wxString *arg8 = (wxString *) &arg8_defvalue ;
11623 wxTextCtrl *result = 0 ;
11624 void *argp1 = 0 ;
11625 int res1 = 0 ;
11626 int val2 ;
11627 int ecode2 = 0 ;
11628 bool temp3 = false ;
11629 wxPoint temp4 ;
11630 wxSize temp5 ;
11631 long val6 ;
11632 int ecode6 = 0 ;
11633 void *argp7 = 0 ;
11634 int res7 = 0 ;
11635 bool temp8 = false ;
11636 PyObject * obj0 = 0 ;
11637 PyObject * obj1 = 0 ;
11638 PyObject * obj2 = 0 ;
11639 PyObject * obj3 = 0 ;
11640 PyObject * obj4 = 0 ;
11641 PyObject * obj5 = 0 ;
11642 PyObject * obj6 = 0 ;
11643 PyObject * obj7 = 0 ;
11644 char * kwnames[] = {
11645 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11646 };
11647
11648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11650 if (!SWIG_IsOK(res1)) {
11651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11652 }
11653 arg1 = reinterpret_cast< wxWindow * >(argp1);
11654 if (obj1) {
11655 ecode2 = SWIG_AsVal_int(obj1, &val2);
11656 if (!SWIG_IsOK(ecode2)) {
11657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11658 }
11659 arg2 = static_cast< int >(val2);
11660 }
11661 if (obj2) {
d55e5bfc 11662 {
554f62e9
RD
11663 arg3 = wxString_in_helper(obj2);
11664 if (arg3 == NULL) SWIG_fail;
11665 temp3 = true;
d55e5bfc 11666 }
554f62e9
RD
11667 }
11668 if (obj3) {
d55e5bfc 11669 {
554f62e9
RD
11670 arg4 = &temp4;
11671 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11672 }
554f62e9
RD
11673 }
11674 if (obj4) {
d55e5bfc 11675 {
554f62e9
RD
11676 arg5 = &temp5;
11677 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11678 }
554f62e9
RD
11679 }
11680 if (obj5) {
11681 ecode6 = SWIG_AsVal_long(obj5, &val6);
11682 if (!SWIG_IsOK(ecode6)) {
11683 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11684 }
11685 arg6 = static_cast< long >(val6);
11686 }
11687 if (obj6) {
11688 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11689 if (!SWIG_IsOK(res7)) {
11690 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11691 }
554f62e9
RD
11692 if (!argp7) {
11693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11694 }
554f62e9
RD
11695 arg7 = reinterpret_cast< wxValidator * >(argp7);
11696 }
11697 if (obj7) {
d55e5bfc 11698 {
554f62e9
RD
11699 arg8 = wxString_in_helper(obj7);
11700 if (arg8 == NULL) SWIG_fail;
11701 temp8 = true;
d55e5bfc 11702 }
554f62e9
RD
11703 }
11704 {
11705 if (!wxPyCheckForApp()) SWIG_fail;
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) SWIG_fail;
11710 }
11711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11712 {
11713 if (temp3)
11714 delete arg3;
11715 }
11716 {
11717 if (temp8)
11718 delete arg8;
11719 }
11720 return resultobj;
11721fail:
11722 {
11723 if (temp3)
11724 delete arg3;
11725 }
11726 {
11727 if (temp8)
11728 delete arg8;
11729 }
11730 return NULL;
d55e5bfc
RD
11731}
11732
11733
554f62e9
RD
11734SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11735 PyObject *resultobj = 0;
11736 wxTextCtrl *result = 0 ;
11737
11738 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11739 {
11740 if (!wxPyCheckForApp()) SWIG_fail;
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 result = (wxTextCtrl *)new wxTextCtrl();
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11747 return resultobj;
11748fail:
11749 return NULL;
11750}
11751
11752
11753SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj = 0;
11755 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11756 wxWindow *arg2 = (wxWindow *) 0 ;
11757 int arg3 = (int) -1 ;
11758 wxString const &arg4_defvalue = wxPyEmptyString ;
11759 wxString *arg4 = (wxString *) &arg4_defvalue ;
11760 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11761 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11762 wxSize const &arg6_defvalue = wxDefaultSize ;
11763 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11764 long arg7 = (long) 0 ;
11765 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11766 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11767 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11768 wxString *arg9 = (wxString *) &arg9_defvalue ;
11769 bool result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 void *argp2 = 0 ;
11773 int res2 = 0 ;
11774 int val3 ;
11775 int ecode3 = 0 ;
11776 bool temp4 = false ;
11777 wxPoint temp5 ;
11778 wxSize temp6 ;
11779 long val7 ;
11780 int ecode7 = 0 ;
11781 void *argp8 = 0 ;
11782 int res8 = 0 ;
11783 bool temp9 = false ;
11784 PyObject * obj0 = 0 ;
11785 PyObject * obj1 = 0 ;
11786 PyObject * obj2 = 0 ;
11787 PyObject * obj3 = 0 ;
11788 PyObject * obj4 = 0 ;
11789 PyObject * obj5 = 0 ;
11790 PyObject * obj6 = 0 ;
11791 PyObject * obj7 = 0 ;
11792 PyObject * obj8 = 0 ;
11793 char * kwnames[] = {
11794 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11795 };
11796
11797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11799 if (!SWIG_IsOK(res1)) {
11800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11801 }
11802 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11804 if (!SWIG_IsOK(res2)) {
11805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11806 }
11807 arg2 = reinterpret_cast< wxWindow * >(argp2);
11808 if (obj2) {
11809 ecode3 = SWIG_AsVal_int(obj2, &val3);
11810 if (!SWIG_IsOK(ecode3)) {
11811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11812 }
11813 arg3 = static_cast< int >(val3);
11814 }
11815 if (obj3) {
d55e5bfc 11816 {
554f62e9
RD
11817 arg4 = wxString_in_helper(obj3);
11818 if (arg4 == NULL) SWIG_fail;
11819 temp4 = true;
d55e5bfc 11820 }
554f62e9
RD
11821 }
11822 if (obj4) {
d55e5bfc 11823 {
554f62e9
RD
11824 arg5 = &temp5;
11825 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11826 }
554f62e9
RD
11827 }
11828 if (obj5) {
d55e5bfc 11829 {
554f62e9
RD
11830 arg6 = &temp6;
11831 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11832 }
554f62e9
RD
11833 }
11834 if (obj6) {
11835 ecode7 = SWIG_AsVal_long(obj6, &val7);
11836 if (!SWIG_IsOK(ecode7)) {
11837 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11838 }
11839 arg7 = static_cast< long >(val7);
11840 }
11841 if (obj7) {
11842 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11843 if (!SWIG_IsOK(res8)) {
11844 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11845 }
554f62e9
RD
11846 if (!argp8) {
11847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11848 }
554f62e9
RD
11849 arg8 = reinterpret_cast< wxValidator * >(argp8);
11850 }
11851 if (obj8) {
d55e5bfc 11852 {
554f62e9
RD
11853 arg9 = wxString_in_helper(obj8);
11854 if (arg9 == NULL) SWIG_fail;
11855 temp9 = true;
d55e5bfc 11856 }
554f62e9
RD
11857 }
11858 {
11859 PyThreadState* __tstate = wxPyBeginAllowThreads();
11860 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 {
11865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11866 }
11867 {
11868 if (temp4)
11869 delete arg4;
11870 }
11871 {
11872 if (temp9)
11873 delete arg9;
11874 }
11875 return resultobj;
11876fail:
11877 {
11878 if (temp4)
11879 delete arg4;
11880 }
11881 {
11882 if (temp9)
11883 delete arg9;
11884 }
11885 return NULL;
d55e5bfc
RD
11886}
11887
11888
554f62e9
RD
11889SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11890 PyObject *resultobj = 0;
11891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11892 wxString result;
11893 void *argp1 = 0 ;
11894 int res1 = 0 ;
11895 PyObject *swig_obj[1] ;
11896
11897 if (!args) SWIG_fail;
11898 swig_obj[0] = args;
11899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11900 if (!SWIG_IsOK(res1)) {
11901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11902 }
11903 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = ((wxTextCtrl const *)arg1)->GetValue();
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 {
11911#if wxUSE_UNICODE
11912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11913#else
11914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11915#endif
11916 }
11917 return resultobj;
11918fail:
11919 return NULL;
11920}
11921
11922
11923SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11924 PyObject *resultobj = 0;
11925 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11926 wxString *arg2 = 0 ;
11927 void *argp1 = 0 ;
11928 int res1 = 0 ;
11929 bool temp2 = false ;
11930 PyObject * obj0 = 0 ;
11931 PyObject * obj1 = 0 ;
11932 char * kwnames[] = {
11933 (char *) "self",(char *) "value", NULL
11934 };
11935
11936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11938 if (!SWIG_IsOK(res1)) {
11939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11940 }
11941 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11942 {
11943 arg2 = wxString_in_helper(obj1);
11944 if (arg2 == NULL) SWIG_fail;
11945 temp2 = true;
11946 }
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 (arg1)->SetValue((wxString const &)*arg2);
11950 wxPyEndAllowThreads(__tstate);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 }
11953 resultobj = SWIG_Py_Void();
11954 {
11955 if (temp2)
11956 delete arg2;
11957 }
11958 return resultobj;
11959fail:
11960 {
11961 if (temp2)
11962 delete arg2;
11963 }
11964 return NULL;
11965}
11966
11967
b39fe951
RD
11968SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11969 PyObject *resultobj = 0;
11970 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11971 bool result;
11972 void *argp1 = 0 ;
11973 int res1 = 0 ;
11974 PyObject *swig_obj[1] ;
11975
11976 if (!args) SWIG_fail;
11977 swig_obj[0] = args;
11978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11979 if (!SWIG_IsOK(res1)) {
11980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11981 }
11982 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 {
11990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11991 }
11992 return resultobj;
11993fail:
11994 return NULL;
11995}
11996
11997
11998SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11999 PyObject *resultobj = 0;
12000 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12001 wxString *arg2 = 0 ;
12002 void *argp1 = 0 ;
12003 int res1 = 0 ;
12004 bool temp2 = false ;
12005 PyObject * obj0 = 0 ;
12006 PyObject * obj1 = 0 ;
12007 char * kwnames[] = {
12008 (char *) "self",(char *) "value", NULL
12009 };
12010
12011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12015 }
12016 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12017 {
12018 arg2 = wxString_in_helper(obj1);
12019 if (arg2 == NULL) SWIG_fail;
12020 temp2 = true;
12021 }
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 (arg1)->ChangeValue((wxString const &)*arg2);
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 resultobj = SWIG_Py_Void();
12029 {
12030 if (temp2)
12031 delete arg2;
12032 }
12033 return resultobj;
12034fail:
12035 {
12036 if (temp2)
12037 delete arg2;
12038 }
12039 return NULL;
12040}
12041
12042
554f62e9
RD
12043SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12046 long arg2 ;
12047 long arg3 ;
12048 wxString result;
12049 void *argp1 = 0 ;
12050 int res1 = 0 ;
12051 long val2 ;
12052 int ecode2 = 0 ;
12053 long val3 ;
12054 int ecode3 = 0 ;
12055 PyObject * obj0 = 0 ;
12056 PyObject * obj1 = 0 ;
12057 PyObject * obj2 = 0 ;
12058 char * kwnames[] = {
f460c29d 12059 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12060 };
12061
12062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12064 if (!SWIG_IsOK(res1)) {
12065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12066 }
12067 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12068 ecode2 = SWIG_AsVal_long(obj1, &val2);
12069 if (!SWIG_IsOK(ecode2)) {
12070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12071 }
12072 arg2 = static_cast< long >(val2);
12073 ecode3 = SWIG_AsVal_long(obj2, &val3);
12074 if (!SWIG_IsOK(ecode3)) {
12075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12076 }
12077 arg3 = static_cast< long >(val3);
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 {
12085#if wxUSE_UNICODE
12086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12087#else
12088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12089#endif
12090 }
12091 return resultobj;
12092fail:
12093 return NULL;
12094}
12095
12096
12097SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12098 PyObject *resultobj = 0;
12099 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12100 long arg2 ;
12101 int result;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 long val2 ;
12105 int ecode2 = 0 ;
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
12108 char * kwnames[] = {
12109 (char *) "self",(char *) "lineNo", NULL
12110 };
12111
12112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12116 }
12117 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12118 ecode2 = SWIG_AsVal_long(obj1, &val2);
12119 if (!SWIG_IsOK(ecode2)) {
12120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12121 }
12122 arg2 = static_cast< long >(val2);
12123 {
12124 PyThreadState* __tstate = wxPyBeginAllowThreads();
12125 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 resultobj = SWIG_From_int(static_cast< int >(result));
12130 return resultobj;
12131fail:
12132 return NULL;
12133}
12134
12135
12136SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj = 0;
12138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12139 long arg2 ;
12140 wxString result;
12141 void *argp1 = 0 ;
12142 int res1 = 0 ;
12143 long val2 ;
12144 int ecode2 = 0 ;
12145 PyObject * obj0 = 0 ;
12146 PyObject * obj1 = 0 ;
12147 char * kwnames[] = {
12148 (char *) "self",(char *) "lineNo", NULL
12149 };
12150
12151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12153 if (!SWIG_IsOK(res1)) {
12154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12155 }
12156 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12157 ecode2 = SWIG_AsVal_long(obj1, &val2);
12158 if (!SWIG_IsOK(ecode2)) {
12159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12160 }
12161 arg2 = static_cast< long >(val2);
12162 {
12163 PyThreadState* __tstate = wxPyBeginAllowThreads();
12164 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 {
12169#if wxUSE_UNICODE
12170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12171#else
12172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12173#endif
12174 }
12175 return resultobj;
12176fail:
12177 return NULL;
d55e5bfc
RD
12178}
12179
12180
554f62e9
RD
12181SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12182 PyObject *resultobj = 0;
12183 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12184 int result;
12185 void *argp1 = 0 ;
12186 int res1 = 0 ;
12187 PyObject *swig_obj[1] ;
12188
12189 if (!args) SWIG_fail;
12190 swig_obj[0] = args;
12191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12192 if (!SWIG_IsOK(res1)) {
12193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12194 }
12195 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12196 {
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 resultobj = SWIG_From_int(static_cast< int >(result));
12203 return resultobj;
12204fail:
12205 return NULL;
d55e5bfc
RD
12206}
12207
12208
554f62e9
RD
12209SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12212 bool result;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 PyObject *swig_obj[1] ;
12216
12217 if (!args) SWIG_fail;
12218 swig_obj[0] = args;
12219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12222 }
12223 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12232 }
12233 return resultobj;
12234fail:
12235 return NULL;
d55e5bfc
RD
12236}
12237
12238
554f62e9
RD
12239SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12240 PyObject *resultobj = 0;
12241 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 PyObject *swig_obj[1] ;
12246
12247 if (!args) SWIG_fail;
12248 swig_obj[0] = args;
12249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12262 }
12263 return resultobj;
12264fail:
12265 return NULL;
d55e5bfc
RD
12266}
12267
12268
554f62e9
RD
12269SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 bool result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12292 }
12293 return resultobj;
12294fail:
12295 return NULL;
d55e5bfc
RD
12296}
12297
12298
554f62e9
RD
12299SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12300 PyObject *resultobj = 0;
12301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12302 bool result;
12303 void *argp1 = 0 ;
12304 int res1 = 0 ;
12305 PyObject *swig_obj[1] ;
12306
12307 if (!args) SWIG_fail;
12308 swig_obj[0] = args;
12309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12310 if (!SWIG_IsOK(res1)) {
12311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12312 }
12313 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12314 {
12315 PyThreadState* __tstate = wxPyBeginAllowThreads();
12316 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 {
12321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12322 }
12323 return resultobj;
12324fail:
12325 return NULL;
12326}
12327
12328
12329SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12330 PyObject *resultobj = 0;
12331 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12332 long *arg2 = (long *) 0 ;
12333 long *arg3 = (long *) 0 ;
12334 void *argp1 = 0 ;
12335 int res1 = 0 ;
12336 long temp2 ;
12337 int res2 = SWIG_TMPOBJ ;
12338 long temp3 ;
12339 int res3 = SWIG_TMPOBJ ;
12340 PyObject *swig_obj[1] ;
12341
12342 arg2 = &temp2;
12343 arg3 = &temp3;
12344 if (!args) SWIG_fail;
12345 swig_obj[0] = args;
12346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12347 if (!SWIG_IsOK(res1)) {
12348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12349 }
12350 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12351 {
12352 PyThreadState* __tstate = wxPyBeginAllowThreads();
12353 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 resultobj = SWIG_Py_Void();
12358 if (SWIG_IsTmpObj(res2)) {
12359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12360 } else {
12361 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12363 }
12364 if (SWIG_IsTmpObj(res3)) {
12365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12366 } else {
12367 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12369 }
12370 return resultobj;
12371fail:
12372 return NULL;
d55e5bfc
RD
12373}
12374
12375
554f62e9
RD
12376SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12377 PyObject *resultobj = 0;
12378 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12379 wxString result;
12380 void *argp1 = 0 ;
12381 int res1 = 0 ;
12382 PyObject *swig_obj[1] ;
12383
12384 if (!args) SWIG_fail;
12385 swig_obj[0] = args;
12386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12387 if (!SWIG_IsOK(res1)) {
12388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12389 }
12390 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12391 {
12392 PyThreadState* __tstate = wxPyBeginAllowThreads();
12393 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12394 wxPyEndAllowThreads(__tstate);
12395 if (PyErr_Occurred()) SWIG_fail;
12396 }
12397 {
12398#if wxUSE_UNICODE
12399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12400#else
12401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12402#endif
12403 }
12404 return resultobj;
12405fail:
12406 return NULL;
d55e5bfc
RD
12407}
12408
12409
554f62e9
RD
12410SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12411 PyObject *resultobj = 0;
12412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12413 void *argp1 = 0 ;
12414 int res1 = 0 ;
12415 PyObject *swig_obj[1] ;
12416
12417 if (!args) SWIG_fail;
12418 swig_obj[0] = args;
12419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12420 if (!SWIG_IsOK(res1)) {
12421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12422 }
12423 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 (arg1)->Clear();
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 resultobj = SWIG_Py_Void();
12431 return resultobj;
12432fail:
12433 return NULL;
12434}
12435
12436
12437SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj = 0;
12439 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12440 long arg2 ;
12441 long arg3 ;
12442 wxString *arg4 = 0 ;
12443 void *argp1 = 0 ;
12444 int res1 = 0 ;
12445 long val2 ;
12446 int ecode2 = 0 ;
12447 long val3 ;
12448 int ecode3 = 0 ;
12449 bool temp4 = false ;
12450 PyObject * obj0 = 0 ;
12451 PyObject * obj1 = 0 ;
12452 PyObject * obj2 = 0 ;
12453 PyObject * obj3 = 0 ;
12454 char * kwnames[] = {
f460c29d 12455 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 ecode2 = SWIG_AsVal_long(obj1, &val2);
12465 if (!SWIG_IsOK(ecode2)) {
12466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12467 }
12468 arg2 = static_cast< long >(val2);
12469 ecode3 = SWIG_AsVal_long(obj2, &val3);
12470 if (!SWIG_IsOK(ecode3)) {
12471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12472 }
12473 arg3 = static_cast< long >(val3);
12474 {
12475 arg4 = wxString_in_helper(obj3);
12476 if (arg4 == NULL) SWIG_fail;
12477 temp4 = true;
12478 }
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = SWIG_Py_Void();
12486 {
12487 if (temp4)
12488 delete arg4;
12489 }
12490 return resultobj;
12491fail:
12492 {
12493 if (temp4)
12494 delete arg4;
12495 }
12496 return NULL;
12497}
12498
12499
12500SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12501 PyObject *resultobj = 0;
12502 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12503 long arg2 ;
12504 long arg3 ;
12505 void *argp1 = 0 ;
12506 int res1 = 0 ;
12507 long val2 ;
12508 int ecode2 = 0 ;
12509 long val3 ;
12510 int ecode3 = 0 ;
12511 PyObject * obj0 = 0 ;
12512 PyObject * obj1 = 0 ;
12513 PyObject * obj2 = 0 ;
12514 char * kwnames[] = {
f460c29d 12515 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12516 };
12517
12518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12522 }
12523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12524 ecode2 = SWIG_AsVal_long(obj1, &val2);
12525 if (!SWIG_IsOK(ecode2)) {
12526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12527 }
12528 arg2 = static_cast< long >(val2);
12529 ecode3 = SWIG_AsVal_long(obj2, &val3);
12530 if (!SWIG_IsOK(ecode3)) {
12531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12532 }
12533 arg3 = static_cast< long >(val3);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->Remove(arg2,arg3);
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 resultobj = SWIG_Py_Void();
12541 return resultobj;
12542fail:
12543 return NULL;
12544}
12545
12546
12547SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12548 PyObject *resultobj = 0;
12549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12550 wxString *arg2 = 0 ;
f5263701 12551 int arg3 = (int) wxTEXT_TYPE_ANY ;
554f62e9
RD
12552 bool result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 bool temp2 = false ;
f5263701
RD
12556 int val3 ;
12557 int ecode3 = 0 ;
554f62e9
RD
12558 PyObject * obj0 = 0 ;
12559 PyObject * obj1 = 0 ;
f5263701 12560 PyObject * obj2 = 0 ;
554f62e9 12561 char * kwnames[] = {
f5263701 12562 (char *) "self",(char *) "file",(char *) "fileType", NULL
554f62e9
RD
12563 };
12564
f5263701 12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
554f62e9
RD
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12569 }
12570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12571 {
12572 arg2 = wxString_in_helper(obj1);
12573 if (arg2 == NULL) SWIG_fail;
12574 temp2 = true;
12575 }
f5263701
RD
12576 if (obj2) {
12577 ecode3 = SWIG_AsVal_int(obj2, &val3);
12578 if (!SWIG_IsOK(ecode3)) {
12579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12580 }
12581 arg3 = static_cast< int >(val3);
12582 }
554f62e9
RD
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12585 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 {
12590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12591 }
12592 {
12593 if (temp2)
12594 delete arg2;
12595 }
12596 return resultobj;
12597fail:
12598 {
12599 if (temp2)
12600 delete arg2;
12601 }
12602 return NULL;
12603}
12604
12605
12606SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12607 PyObject *resultobj = 0;
12608 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12609 wxString const &arg2_defvalue = wxPyEmptyString ;
12610 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12611 int arg3 = (int) wxTEXT_TYPE_ANY ;
554f62e9
RD
12612 bool result;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 bool temp2 = false ;
f5263701
RD
12616 int val3 ;
12617 int ecode3 = 0 ;
554f62e9
RD
12618 PyObject * obj0 = 0 ;
12619 PyObject * obj1 = 0 ;
f5263701 12620 PyObject * obj2 = 0 ;
554f62e9 12621 char * kwnames[] = {
f5263701 12622 (char *) "self",(char *) "file",(char *) "fileType", NULL
554f62e9
RD
12623 };
12624
f5263701 12625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
554f62e9
RD
12626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12629 }
12630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12631 if (obj1) {
d55e5bfc 12632 {
554f62e9
RD
12633 arg2 = wxString_in_helper(obj1);
12634 if (arg2 == NULL) SWIG_fail;
12635 temp2 = true;
d55e5bfc 12636 }
554f62e9 12637 }
f5263701
RD
12638 if (obj2) {
12639 ecode3 = SWIG_AsVal_int(obj2, &val3);
12640 if (!SWIG_IsOK(ecode3)) {
12641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12642 }
12643 arg3 = static_cast< int >(val3);
12644 }
554f62e9
RD
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12647 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
554f62e9
RD
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 {
12652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12653 }
12654 {
12655 if (temp2)
12656 delete arg2;
12657 }
12658 return resultobj;
12659fail:
12660 {
12661 if (temp2)
12662 delete arg2;
12663 }
12664 return NULL;
d55e5bfc
RD
12665}
12666
12667
554f62e9
RD
12668SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12669 PyObject *resultobj = 0;
12670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12671 void *argp1 = 0 ;
12672 int res1 = 0 ;
12673 PyObject *swig_obj[1] ;
12674
12675 if (!args) SWIG_fail;
12676 swig_obj[0] = args;
12677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 (arg1)->MarkDirty();
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 resultobj = SWIG_Py_Void();
12689 return resultobj;
12690fail:
12691 return NULL;
d55e5bfc
RD
12692}
12693
12694
554f62e9
RD
12695SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12696 PyObject *resultobj = 0;
12697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12698 void *argp1 = 0 ;
12699 int res1 = 0 ;
12700 PyObject *swig_obj[1] ;
12701
12702 if (!args) SWIG_fail;
12703 swig_obj[0] = args;
12704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12705 if (!SWIG_IsOK(res1)) {
12706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12707 }
12708 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->DiscardEdits();
12712 wxPyEndAllowThreads(__tstate);
12713 if (PyErr_Occurred()) SWIG_fail;
12714 }
12715 resultobj = SWIG_Py_Void();
12716 return resultobj;
12717fail:
12718 return NULL;
12719}
12720
12721
b02396e8
RD
12722SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12723 PyObject *resultobj = 0;
12724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12725 bool arg2 ;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 bool val2 ;
12729 int ecode2 = 0 ;
12730 PyObject * obj0 = 0 ;
12731 PyObject * obj1 = 0 ;
12732 char * kwnames[] = {
12733 (char *) "self",(char *) "modified", NULL
12734 };
12735
12736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12738 if (!SWIG_IsOK(res1)) {
12739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12740 }
12741 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12742 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12743 if (!SWIG_IsOK(ecode2)) {
12744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12745 }
12746 arg2 = static_cast< bool >(val2);
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 (arg1)->SetModified(arg2);
12750 wxPyEndAllowThreads(__tstate);
12751 if (PyErr_Occurred()) SWIG_fail;
12752 }
12753 resultobj = SWIG_Py_Void();
12754 return resultobj;
12755fail:
12756 return NULL;
12757}
12758
12759
554f62e9
RD
12760SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12761 PyObject *resultobj = 0;
12762 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12763 unsigned long arg2 ;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 unsigned long val2 ;
12767 int ecode2 = 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "len", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12781 if (!SWIG_IsOK(ecode2)) {
12782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12783 }
12784 arg2 = static_cast< unsigned long >(val2);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 (arg1)->SetMaxLength(arg2);
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_Py_Void();
12792 return resultobj;
12793fail:
12794 return NULL;
12795}
12796
12797
12798SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj = 0;
12800 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12801 wxString *arg2 = 0 ;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 bool temp2 = false ;
12805 PyObject * obj0 = 0 ;
12806 PyObject * obj1 = 0 ;
12807 char * kwnames[] = {
12808 (char *) "self",(char *) "text", NULL
12809 };
12810
12811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12813 if (!SWIG_IsOK(res1)) {
12814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12815 }
12816 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12817 {
12818 arg2 = wxString_in_helper(obj1);
12819 if (arg2 == NULL) SWIG_fail;
12820 temp2 = true;
12821 }
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 (arg1)->WriteText((wxString const &)*arg2);
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 resultobj = SWIG_Py_Void();
12829 {
12830 if (temp2)
12831 delete arg2;
12832 }
12833 return resultobj;
12834fail:
12835 {
12836 if (temp2)
12837 delete arg2;
12838 }
12839 return NULL;
d55e5bfc
RD
12840}
12841
12842
554f62e9
RD
12843SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = 0;
12845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12846 wxString *arg2 = 0 ;
12847 void *argp1 = 0 ;
12848 int res1 = 0 ;
12849 bool temp2 = false ;
12850 PyObject * obj0 = 0 ;
12851 PyObject * obj1 = 0 ;
12852 char * kwnames[] = {
12853 (char *) "self",(char *) "text", NULL
12854 };
12855
12856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12858 if (!SWIG_IsOK(res1)) {
12859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12860 }
12861 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12862 {
12863 arg2 = wxString_in_helper(obj1);
12864 if (arg2 == NULL) SWIG_fail;
12865 temp2 = true;
12866 }
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 (arg1)->AppendText((wxString const &)*arg2);
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 resultobj = SWIG_Py_Void();
12874 {
12875 if (temp2)
12876 delete arg2;
12877 }
12878 return resultobj;
12879fail:
12880 {
12881 if (temp2)
12882 delete arg2;
12883 }
12884 return NULL;
12885}
12886
12887
12888SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12889 PyObject *resultobj = 0;
12890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12891 wxKeyEvent *arg2 = 0 ;
12892 bool result;
12893 void *argp1 = 0 ;
12894 int res1 = 0 ;
12895 void *argp2 = 0 ;
12896 int res2 = 0 ;
12897 PyObject * obj0 = 0 ;
12898 PyObject * obj1 = 0 ;
12899 char * kwnames[] = {
12900 (char *) "self",(char *) "event", NULL
12901 };
12902
12903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12905 if (!SWIG_IsOK(res1)) {
12906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12907 }
12908 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12910 if (!SWIG_IsOK(res2)) {
12911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12912 }
12913 if (!argp2) {
12914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12915 }
12916 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12920 wxPyEndAllowThreads(__tstate);
12921 if (PyErr_Occurred()) SWIG_fail;
12922 }
12923 {
12924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12925 }
12926 return resultobj;
12927fail:
12928 return NULL;
12929}
12930
12931
12932SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12933 PyObject *resultobj = 0;
12934 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12935 long arg2 ;
12936 long arg3 ;
12937 wxTextAttr *arg4 = 0 ;
12938 bool result;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 long val2 ;
12942 int ecode2 = 0 ;
12943 long val3 ;
12944 int ecode3 = 0 ;
12945 void *argp4 = 0 ;
12946 int res4 = 0 ;
12947 PyObject * obj0 = 0 ;
12948 PyObject * obj1 = 0 ;
12949 PyObject * obj2 = 0 ;
12950 PyObject * obj3 = 0 ;
12951 char * kwnames[] = {
12952 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12953 };
12954
12955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12957 if (!SWIG_IsOK(res1)) {
12958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12959 }
12960 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12961 ecode2 = SWIG_AsVal_long(obj1, &val2);
12962 if (!SWIG_IsOK(ecode2)) {
12963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12964 }
12965 arg2 = static_cast< long >(val2);
12966 ecode3 = SWIG_AsVal_long(obj2, &val3);
12967 if (!SWIG_IsOK(ecode3)) {
12968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12969 }
12970 arg3 = static_cast< long >(val3);
12971 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12972 if (!SWIG_IsOK(res4)) {
12973 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12974 }
12975 if (!argp4) {
12976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12977 }
12978 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 {
12986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12987 }
12988 return resultobj;
12989fail:
12990 return NULL;
12991}
12992
12993
12994SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12995 PyObject *resultobj = 0;
12996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12997 long arg2 ;
12998 wxTextAttr *arg3 = 0 ;
12999 bool result;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 long val2 ;
13003 int ecode2 = 0 ;
13004 void *argp3 = 0 ;
13005 int res3 = 0 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 PyObject * obj2 = 0 ;
13009 char * kwnames[] = {
13010 (char *) "self",(char *) "position",(char *) "style", NULL
13011 };
13012
13013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13015 if (!SWIG_IsOK(res1)) {
13016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13017 }
13018 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13019 ecode2 = SWIG_AsVal_long(obj1, &val2);
13020 if (!SWIG_IsOK(ecode2)) {
13021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13022 }
13023 arg2 = static_cast< long >(val2);
13024 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13025 if (!SWIG_IsOK(res3)) {
13026 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13027 }
13028 if (!argp3) {
13029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13030 }
13031 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13040 }
13041 return resultobj;
13042fail:
13043 return NULL;
13044}
13045
13046
13047SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13048 PyObject *resultobj = 0;
13049 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13050 wxTextAttr *arg2 = 0 ;
13051 bool result;
13052 void *argp1 = 0 ;
13053 int res1 = 0 ;
13054 void *argp2 = 0 ;
13055 int res2 = 0 ;
13056 PyObject * obj0 = 0 ;
13057 PyObject * obj1 = 0 ;
13058 char * kwnames[] = {
13059 (char *) "self",(char *) "style", NULL
13060 };
13061
13062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13064 if (!SWIG_IsOK(res1)) {
13065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13066 }
13067 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13069 if (!SWIG_IsOK(res2)) {
13070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13071 }
13072 if (!argp2) {
13073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13074 }
13075 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13076 {
13077 PyThreadState* __tstate = wxPyBeginAllowThreads();
13078 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 {
13083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13084 }
13085 return resultobj;
13086fail:
13087 return NULL;
d55e5bfc
RD
13088}
13089
13090
554f62e9
RD
13091SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13092 PyObject *resultobj = 0;
13093 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13094 wxTextAttr *result = 0 ;
13095 void *argp1 = 0 ;
13096 int res1 = 0 ;
13097 PyObject *swig_obj[1] ;
13098
13099 if (!args) SWIG_fail;
13100 swig_obj[0] = args;
13101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13102 if (!SWIG_IsOK(res1)) {
13103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13104 }
13105 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13106 {
13107 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13108 {
554f62e9
RD
13109 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13110 result = (wxTextAttr *) &_result_ref;
093d3ff1 13111 }
554f62e9
RD
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13116 return resultobj;
13117fail:
13118 return NULL;
13119}
13120
13121
13122SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj = 0;
13124 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13125 long arg2 ;
13126 long arg3 ;
13127 long result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 long val2 ;
13131 int ecode2 = 0 ;
13132 long val3 ;
13133 int ecode3 = 0 ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 PyObject * obj2 = 0 ;
13137 char * kwnames[] = {
13138 (char *) "self",(char *) "x",(char *) "y", NULL
13139 };
13140
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) 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_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13145 }
13146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13147 ecode2 = SWIG_AsVal_long(obj1, &val2);
13148 if (!SWIG_IsOK(ecode2)) {
13149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13150 }
13151 arg2 = static_cast< long >(val2);
13152 ecode3 = SWIG_AsVal_long(obj2, &val3);
13153 if (!SWIG_IsOK(ecode3)) {
13154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13155 }
13156 arg3 = static_cast< long >(val3);
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 resultobj = SWIG_From_long(static_cast< long >(result));
13164 return resultobj;
13165fail:
13166 return NULL;
13167}
13168
13169
13170SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13171 PyObject *resultobj = 0;
13172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13173 long arg2 ;
13174 long *arg3 = (long *) 0 ;
13175 long *arg4 = (long *) 0 ;
13176 void *argp1 = 0 ;
13177 int res1 = 0 ;
13178 long val2 ;
13179 int ecode2 = 0 ;
13180 long temp3 ;
13181 int res3 = SWIG_TMPOBJ ;
13182 long temp4 ;
13183 int res4 = SWIG_TMPOBJ ;
13184 PyObject * obj0 = 0 ;
13185 PyObject * obj1 = 0 ;
13186 char * kwnames[] = {
13187 (char *) "self",(char *) "pos", NULL
13188 };
13189
13190 arg3 = &temp3;
13191 arg4 = &temp4;
13192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13194 if (!SWIG_IsOK(res1)) {
13195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13196 }
13197 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13198 ecode2 = SWIG_AsVal_long(obj1, &val2);
13199 if (!SWIG_IsOK(ecode2)) {
13200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13201 }
13202 arg2 = static_cast< long >(val2);
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13206 wxPyEndAllowThreads(__tstate);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 resultobj = SWIG_Py_Void();
13210 if (SWIG_IsTmpObj(res3)) {
13211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13212 } else {
13213 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13215 }
13216 if (SWIG_IsTmpObj(res4)) {
13217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13218 } else {
13219 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13221 }
13222 return resultobj;
13223fail:
13224 return NULL;
13225}
13226
13227
13228SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj = 0;
13230 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13231 long arg2 ;
13232 void *argp1 = 0 ;
13233 int res1 = 0 ;
13234 long val2 ;
13235 int ecode2 = 0 ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char * kwnames[] = {
13239 (char *) "self",(char *) "pos", NULL
13240 };
13241
13242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13244 if (!SWIG_IsOK(res1)) {
13245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13246 }
13247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13248 ecode2 = SWIG_AsVal_long(obj1, &val2);
13249 if (!SWIG_IsOK(ecode2)) {
13250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13251 }
13252 arg2 = static_cast< long >(val2);
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 (arg1)->ShowPosition(arg2);
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 resultobj = SWIG_Py_Void();
13260 return resultobj;
13261fail:
13262 return NULL;
13263}
13264
13265
13266SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj = 0;
13268 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13269 wxPoint *arg2 = 0 ;
13270 long *arg3 = (long *) 0 ;
13271 long *arg4 = (long *) 0 ;
13272 wxTextCtrlHitTestResult result;
13273 void *argp1 = 0 ;
13274 int res1 = 0 ;
13275 wxPoint temp2 ;
13276 long temp3 ;
13277 int res3 = SWIG_TMPOBJ ;
13278 long temp4 ;
13279 int res4 = SWIG_TMPOBJ ;
13280 PyObject * obj0 = 0 ;
13281 PyObject * obj1 = 0 ;
13282 char * kwnames[] = {
13283 (char *) "self",(char *) "pt", NULL
13284 };
13285
13286 arg3 = &temp3;
13287 arg4 = &temp4;
13288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13290 if (!SWIG_IsOK(res1)) {
13291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13292 }
13293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13294 {
13295 arg2 = &temp2;
13296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 resultobj = SWIG_From_int(static_cast< int >(result));
13305 if (SWIG_IsTmpObj(res3)) {
13306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13307 } else {
13308 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13310 }
13311 if (SWIG_IsTmpObj(res4)) {
13312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13313 } else {
13314 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13316 }
13317 return resultobj;
13318fail:
13319 return NULL;
13320}
13321
13322
13323SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj = 0;
13325 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13326 wxPoint *arg2 = 0 ;
13327 long *arg3 = (long *) 0 ;
13328 wxTextCtrlHitTestResult result;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 wxPoint temp2 ;
13332 long temp3 ;
13333 int res3 = SWIG_TMPOBJ ;
13334 PyObject * obj0 = 0 ;
13335 PyObject * obj1 = 0 ;
13336 char * kwnames[] = {
13337 (char *) "self",(char *) "pt", NULL
13338 };
13339
13340 arg3 = &temp3;
13341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13343 if (!SWIG_IsOK(res1)) {
13344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13345 }
13346 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13347 {
13348 arg2 = &temp2;
13349 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13350 }
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_From_int(static_cast< int >(result));
13358 if (SWIG_IsTmpObj(res3)) {
13359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13360 } else {
13361 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13363 }
13364 return resultobj;
13365fail:
13366 return NULL;
d55e5bfc
RD
13367}
13368
13369
554f62e9
RD
13370SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *resultobj = 0;
13372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13373 void *argp1 = 0 ;
13374 int res1 = 0 ;
13375 PyObject *swig_obj[1] ;
13376
13377 if (!args) SWIG_fail;
13378 swig_obj[0] = args;
13379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13380 if (!SWIG_IsOK(res1)) {
13381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13382 }
13383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13384 {
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 (arg1)->Copy();
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_Py_Void();
13391 return resultobj;
13392fail:
13393 return NULL;
d55e5bfc 13394}
554f62e9
RD
13395
13396
13397SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13398 PyObject *resultobj = 0;
13399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13400 void *argp1 = 0 ;
13401 int res1 = 0 ;
13402 PyObject *swig_obj[1] ;
13403
13404 if (!args) SWIG_fail;
13405 swig_obj[0] = args;
13406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13407 if (!SWIG_IsOK(res1)) {
13408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13409 }
13410 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 (arg1)->Cut();
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_Py_Void();
13418 return resultobj;
13419fail:
13420 return NULL;
d55e5bfc
RD
13421}
13422
13423
554f62e9
RD
13424SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425 PyObject *resultobj = 0;
13426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13427 void *argp1 = 0 ;
13428 int res1 = 0 ;
13429 PyObject *swig_obj[1] ;
13430
13431 if (!args) SWIG_fail;
13432 swig_obj[0] = args;
13433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13434 if (!SWIG_IsOK(res1)) {
13435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13436 }
13437 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 (arg1)->Paste();
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
13444 resultobj = SWIG_Py_Void();
13445 return resultobj;
13446fail:
13447 return NULL;
d55e5bfc
RD
13448}
13449
13450
554f62e9
RD
13451SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13452 PyObject *resultobj = 0;
13453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13454 bool result;
13455 void *argp1 = 0 ;
13456 int res1 = 0 ;
13457 PyObject *swig_obj[1] ;
13458
13459 if (!args) SWIG_fail;
13460 swig_obj[0] = args;
13461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13462 if (!SWIG_IsOK(res1)) {
13463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13464 }
13465 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13466 {
13467 PyThreadState* __tstate = wxPyBeginAllowThreads();
13468 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13469 wxPyEndAllowThreads(__tstate);
13470 if (PyErr_Occurred()) SWIG_fail;
13471 }
13472 {
13473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13474 }
13475 return resultobj;
13476fail:
13477 return NULL;
d55e5bfc
RD
13478}
13479
13480
554f62e9
RD
13481SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13484 bool result;
13485 void *argp1 = 0 ;
13486 int res1 = 0 ;
13487 PyObject *swig_obj[1] ;
13488
13489 if (!args) SWIG_fail;
13490 swig_obj[0] = args;
13491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13492 if (!SWIG_IsOK(res1)) {
13493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13494 }
13495 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 {
13503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13504 }
13505 return resultobj;
13506fail:
13507 return NULL;
d55e5bfc
RD
13508}
13509
13510
554f62e9
RD
13511SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 PyObject *resultobj = 0;
13513 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13514 bool result;
13515 void *argp1 = 0 ;
13516 int res1 = 0 ;
13517 PyObject *swig_obj[1] ;
13518
13519 if (!args) SWIG_fail;
13520 swig_obj[0] = args;
13521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13522 if (!SWIG_IsOK(res1)) {
13523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13524 }
13525 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 {
13533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13534 }
13535 return resultobj;
13536fail:
13537 return NULL;
d55e5bfc
RD
13538}
13539
13540
554f62e9
RD
13541SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 PyObject *swig_obj[1] ;
13547
13548 if (!args) SWIG_fail;
13549 swig_obj[0] = args;
13550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13553 }
13554 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 (arg1)->Undo();
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 resultobj = SWIG_Py_Void();
13562 return resultobj;
13563fail:
13564 return NULL;
d55e5bfc
RD
13565}
13566
13567
554f62e9
RD
13568SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13569 PyObject *resultobj = 0;
13570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13571 void *argp1 = 0 ;
13572 int res1 = 0 ;
13573 PyObject *swig_obj[1] ;
13574
13575 if (!args) SWIG_fail;
13576 swig_obj[0] = args;
13577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13578 if (!SWIG_IsOK(res1)) {
13579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13580 }
13581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->Redo();
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590fail:
13591 return NULL;
d55e5bfc
RD
13592}
13593
13594
554f62e9
RD
13595SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 bool result;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 PyObject *swig_obj[1] ;
13602
13603 if (!args) SWIG_fail;
13604 swig_obj[0] = args;
13605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 {
13617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13618 }
13619 return resultobj;
13620fail:
13621 return NULL;
d55e5bfc
RD
13622}
13623
13624
554f62e9
RD
13625SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13626 PyObject *resultobj = 0;
13627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13628 bool result;
13629 void *argp1 = 0 ;
13630 int res1 = 0 ;
13631 PyObject *swig_obj[1] ;
13632
13633 if (!args) SWIG_fail;
13634 swig_obj[0] = args;
13635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13636 if (!SWIG_IsOK(res1)) {
13637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13638 }
13639 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 {
13647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13648 }
13649 return resultobj;
13650fail:
13651 return NULL;
13652}
13653
13654
13655SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj = 0;
13657 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13658 long arg2 ;
13659 void *argp1 = 0 ;
13660 int res1 = 0 ;
13661 long val2 ;
13662 int ecode2 = 0 ;
13663 PyObject * obj0 = 0 ;
13664 PyObject * obj1 = 0 ;
13665 char * kwnames[] = {
13666 (char *) "self",(char *) "pos", NULL
13667 };
13668
13669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13673 }
13674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13675 ecode2 = SWIG_AsVal_long(obj1, &val2);
13676 if (!SWIG_IsOK(ecode2)) {
13677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13678 }
13679 arg2 = static_cast< long >(val2);
13680 {
13681 PyThreadState* __tstate = wxPyBeginAllowThreads();
13682 (arg1)->SetInsertionPoint(arg2);
13683 wxPyEndAllowThreads(__tstate);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 resultobj = SWIG_Py_Void();
13687 return resultobj;
13688fail:
13689 return NULL;
d55e5bfc
RD
13690}
13691
13692
554f62e9
RD
13693SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13694 PyObject *resultobj = 0;
13695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13696 void *argp1 = 0 ;
13697 int res1 = 0 ;
13698 PyObject *swig_obj[1] ;
13699
13700 if (!args) SWIG_fail;
13701 swig_obj[0] = args;
13702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13703 if (!SWIG_IsOK(res1)) {
13704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13705 }
13706 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 (arg1)->SetInsertionPointEnd();
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 resultobj = SWIG_Py_Void();
13714 return resultobj;
13715fail:
13716 return NULL;
d55e5bfc
RD
13717}
13718
13719
554f62e9
RD
13720SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13721 PyObject *resultobj = 0;
13722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13723 long result;
13724 void *argp1 = 0 ;
13725 int res1 = 0 ;
13726 PyObject *swig_obj[1] ;
13727
13728 if (!args) SWIG_fail;
13729 swig_obj[0] = args;
13730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13731 if (!SWIG_IsOK(res1)) {
13732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13733 }
13734 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13735 {
13736 PyThreadState* __tstate = wxPyBeginAllowThreads();
13737 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13738 wxPyEndAllowThreads(__tstate);
13739 if (PyErr_Occurred()) SWIG_fail;
13740 }
13741 resultobj = SWIG_From_long(static_cast< long >(result));
13742 return resultobj;
13743fail:
13744 return NULL;
d55e5bfc
RD
13745}
13746
13747
554f62e9
RD
13748SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13749 PyObject *resultobj = 0;
13750 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13751 long result;
13752 void *argp1 = 0 ;
13753 int res1 = 0 ;
13754 PyObject *swig_obj[1] ;
13755
13756 if (!args) SWIG_fail;
13757 swig_obj[0] = args;
13758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13759 if (!SWIG_IsOK(res1)) {
13760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13761 }
13762 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13766 wxPyEndAllowThreads(__tstate);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 }
13769 resultobj = SWIG_From_long(static_cast< long >(result));
13770 return resultobj;
13771fail:
13772 return NULL;
13773}
13774
13775
13776SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13777 PyObject *resultobj = 0;
13778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13779 long arg2 ;
13780 long arg3 ;
13781 void *argp1 = 0 ;
13782 int res1 = 0 ;
13783 long val2 ;
13784 int ecode2 = 0 ;
13785 long val3 ;
13786 int ecode3 = 0 ;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 PyObject * obj2 = 0 ;
13790 char * kwnames[] = {
f460c29d 13791 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
13792 };
13793
13794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13796 if (!SWIG_IsOK(res1)) {
13797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13798 }
13799 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13800 ecode2 = SWIG_AsVal_long(obj1, &val2);
13801 if (!SWIG_IsOK(ecode2)) {
13802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13803 }
13804 arg2 = static_cast< long >(val2);
13805 ecode3 = SWIG_AsVal_long(obj2, &val3);
13806 if (!SWIG_IsOK(ecode3)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13808 }
13809 arg3 = static_cast< long >(val3);
13810 {
13811 PyThreadState* __tstate = wxPyBeginAllowThreads();
13812 (arg1)->SetSelection(arg2,arg3);
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 resultobj = SWIG_Py_Void();
13817 return resultobj;
13818fail:
13819 return NULL;
d55e5bfc
RD
13820}
13821
13822
554f62e9
RD
13823SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13824 PyObject *resultobj = 0;
13825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13826 void *argp1 = 0 ;
13827 int res1 = 0 ;
13828 PyObject *swig_obj[1] ;
13829
13830 if (!args) SWIG_fail;
13831 swig_obj[0] = args;
13832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13833 if (!SWIG_IsOK(res1)) {
13834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13835 }
13836 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13837 {
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 (arg1)->SelectAll();
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_Py_Void();
13844 return resultobj;
13845fail:
13846 return NULL;
13847}
13848
13849
13850SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj = 0;
13852 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13853 bool arg2 ;
13854 void *argp1 = 0 ;
13855 int res1 = 0 ;
13856 bool val2 ;
13857 int ecode2 = 0 ;
13858 PyObject * obj0 = 0 ;
13859 PyObject * obj1 = 0 ;
13860 char * kwnames[] = {
13861 (char *) "self",(char *) "editable", NULL
13862 };
13863
13864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13866 if (!SWIG_IsOK(res1)) {
13867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13868 }
13869 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13870 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13871 if (!SWIG_IsOK(ecode2)) {
13872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13873 }
13874 arg2 = static_cast< bool >(val2);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 (arg1)->SetEditable(arg2);
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_Py_Void();
13882 return resultobj;
13883fail:
13884 return NULL;
13885}
13886
13887
b39fe951
RD
13888SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13889 PyObject *resultobj = 0;
13890 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13891 void *argp1 = 0 ;
13892 int res1 = 0 ;
13893 PyObject *swig_obj[1] ;
13894
13895 if (!args) SWIG_fail;
13896 swig_obj[0] = args;
13897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13898 if (!SWIG_IsOK(res1)) {
13899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13900 }
13901 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 (arg1)->SendTextUpdatedEvent();
13905 wxPyEndAllowThreads(__tstate);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 }
13908 resultobj = SWIG_Py_Void();
13909 return resultobj;
13910fail:
13911 return NULL;
13912}
13913
13914
554f62e9
RD
13915SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj = 0;
13917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13918 bool arg2 = (bool) true ;
13919 bool result;
13920 void *argp1 = 0 ;
13921 int res1 = 0 ;
13922 bool val2 ;
13923 int ecode2 = 0 ;
13924 PyObject * obj0 = 0 ;
13925 PyObject * obj1 = 0 ;
13926 char * kwnames[] = {
13927 (char *) "self",(char *) "show", NULL
13928 };
13929
13930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13932 if (!SWIG_IsOK(res1)) {
13933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13934 }
13935 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13936 if (obj1) {
13937 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13938 if (!SWIG_IsOK(ecode2)) {
13939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13940 }
13941 arg2 = static_cast< bool >(val2);
13942 }
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 result = (bool)(arg1)->ShowNativeCaret(arg2);
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 {
13950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13951 }
13952 return resultobj;
13953fail:
13954 return NULL;
d55e5bfc
RD
13955}
13956
13957
554f62e9
RD
13958SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13959 PyObject *resultobj = 0;
13960 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13961 bool result;
13962 void *argp1 = 0 ;
13963 int res1 = 0 ;
13964 PyObject *swig_obj[1] ;
13965
13966 if (!args) SWIG_fail;
13967 swig_obj[0] = args;
13968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13969 if (!SWIG_IsOK(res1)) {
13970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13971 }
13972 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = (bool)(arg1)->HideNativeCaret();
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 {
13980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13981 }
13982 return resultobj;
13983fail:
13984 return NULL;
13985}
13986
13987
13988SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13989 PyObject *resultobj = 0;
13990 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13991 wxString *arg2 = 0 ;
13992 void *argp1 = 0 ;
13993 int res1 = 0 ;
13994 bool temp2 = false ;
13995 PyObject * obj0 = 0 ;
13996 PyObject * obj1 = 0 ;
13997 char * kwnames[] = {
13998 (char *) "self",(char *) "text", NULL
13999 };
14000
14001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14003 if (!SWIG_IsOK(res1)) {
14004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14005 }
14006 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14007 {
14008 arg2 = wxString_in_helper(obj1);
14009 if (arg2 == NULL) SWIG_fail;
14010 temp2 = true;
14011 }
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_Py_Void();
14019 {
14020 if (temp2)
14021 delete arg2;
14022 }
14023 return resultobj;
14024fail:
14025 {
14026 if (temp2)
14027 delete arg2;
14028 }
14029 return NULL;
14030}
14031
14032
14033SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14034 PyObject *resultobj = 0;
14035 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14036 long arg2 ;
14037 long arg3 ;
14038 wxString result;
14039 void *argp1 = 0 ;
14040 int res1 = 0 ;
14041 long val2 ;
14042 int ecode2 = 0 ;
14043 long val3 ;
14044 int ecode3 = 0 ;
14045 PyObject * obj0 = 0 ;
14046 PyObject * obj1 = 0 ;
14047 PyObject * obj2 = 0 ;
14048 char * kwnames[] = {
f460c29d 14049 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
14050 };
14051
14052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14054 if (!SWIG_IsOK(res1)) {
14055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14056 }
14057 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14058 ecode2 = SWIG_AsVal_long(obj1, &val2);
14059 if (!SWIG_IsOK(ecode2)) {
14060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14061 }
14062 arg2 = static_cast< long >(val2);
14063 ecode3 = SWIG_AsVal_long(obj2, &val3);
14064 if (!SWIG_IsOK(ecode3)) {
14065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14066 }
14067 arg3 = static_cast< long >(val3);
14068 {
14069 PyThreadState* __tstate = wxPyBeginAllowThreads();
14070 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14071 wxPyEndAllowThreads(__tstate);
14072 if (PyErr_Occurred()) SWIG_fail;
14073 }
14074 {
14075#if wxUSE_UNICODE
14076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14077#else
14078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14079#endif
14080 }
14081 return resultobj;
14082fail:
14083 return NULL;
d55e5bfc
RD
14084}
14085
14086
554f62e9
RD
14087SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14088 PyObject *resultobj = 0;
14089 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14090 SwigValueWrapper<wxVisualAttributes > result;
14091 int val1 ;
14092 int ecode1 = 0 ;
14093 PyObject * obj0 = 0 ;
14094 char * kwnames[] = {
14095 (char *) "variant", NULL
14096 };
14097
14098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14099 if (obj0) {
14100 ecode1 = SWIG_AsVal_int(obj0, &val1);
14101 if (!SWIG_IsOK(ecode1)) {
14102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14103 }
14104 arg1 = static_cast< wxWindowVariant >(val1);
14105 }
14106 {
14107 if (!wxPyCheckForApp()) SWIG_fail;
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14110 wxPyEndAllowThreads(__tstate);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 }
14113 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14114 return resultobj;
14115fail:
14116 return NULL;
14117}
14118
14119
14120SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14121 PyObject *obj;
14122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14123 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14124 return SWIG_Py_Void();
14125}
14126
14127SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 return SWIG_Python_InitShadowInstance(args);
14129}
14130
14131SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj = 0;
14133 int arg1 ;
14134 wxMouseEvent *arg2 = 0 ;
14135 long arg3 ;
14136 long arg4 ;
14137 wxTextUrlEvent *result = 0 ;
14138 int val1 ;
14139 int ecode1 = 0 ;
14140 void *argp2 = 0 ;
14141 int res2 = 0 ;
14142 long val3 ;
14143 int ecode3 = 0 ;
14144 long val4 ;
14145 int ecode4 = 0 ;
14146 PyObject * obj0 = 0 ;
14147 PyObject * obj1 = 0 ;
14148 PyObject * obj2 = 0 ;
14149 PyObject * obj3 = 0 ;
14150 char * kwnames[] = {
14151 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14152 };
14153
14154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14155 ecode1 = SWIG_AsVal_int(obj0, &val1);
14156 if (!SWIG_IsOK(ecode1)) {
14157 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14158 }
14159 arg1 = static_cast< int >(val1);
14160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14161 if (!SWIG_IsOK(res2)) {
14162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14163 }
14164 if (!argp2) {
14165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14166 }
14167 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14168 ecode3 = SWIG_AsVal_long(obj2, &val3);
14169 if (!SWIG_IsOK(ecode3)) {
14170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14171 }
14172 arg3 = static_cast< long >(val3);
14173 ecode4 = SWIG_AsVal_long(obj3, &val4);
14174 if (!SWIG_IsOK(ecode4)) {
14175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14176 }
14177 arg4 = static_cast< long >(val4);
14178 {
14179 PyThreadState* __tstate = wxPyBeginAllowThreads();
14180 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14181 wxPyEndAllowThreads(__tstate);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 }
14184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14185 return resultobj;
14186fail:
14187 return NULL;
d55e5bfc
RD
14188}
14189
14190
554f62e9
RD
14191SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14194 wxMouseEvent *result = 0 ;
14195 void *argp1 = 0 ;
14196 int res1 = 0 ;
14197 PyObject *swig_obj[1] ;
14198
14199 if (!args) SWIG_fail;
14200 swig_obj[0] = args;
14201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14202 if (!SWIG_IsOK(res1)) {
14203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14204 }
14205 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14206 {
14207 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14208 {
554f62e9
RD
14209 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14210 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14211 }
554f62e9
RD
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14216 return resultobj;
14217fail:
14218 return NULL;
d55e5bfc
RD
14219}
14220
14221
554f62e9
RD
14222SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14223 PyObject *resultobj = 0;
14224 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14225 long result;
14226 void *argp1 = 0 ;
14227 int res1 = 0 ;
14228 PyObject *swig_obj[1] ;
14229
14230 if (!args) SWIG_fail;
14231 swig_obj[0] = args;
14232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14233 if (!SWIG_IsOK(res1)) {
14234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14235 }
14236 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 resultobj = SWIG_From_long(static_cast< long >(result));
14244 return resultobj;
14245fail:
14246 return NULL;
d55e5bfc
RD
14247}
14248
14249
554f62e9
RD
14250SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14251 PyObject *resultobj = 0;
14252 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14253 long result;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 PyObject *swig_obj[1] ;
14257
14258 if (!args) SWIG_fail;
14259 swig_obj[0] = args;
14260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14261 if (!SWIG_IsOK(res1)) {
14262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14263 }
14264 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14265 {
14266 PyThreadState* __tstate = wxPyBeginAllowThreads();
14267 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 resultobj = SWIG_From_long(static_cast< long >(result));
14272 return resultobj;
14273fail:
14274 return NULL;
d55e5bfc
RD
14275}
14276
14277
554f62e9
RD
14278SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14279 PyObject *obj;
14280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14281 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14282 return SWIG_Py_Void();
d55e5bfc
RD
14283}
14284
554f62e9
RD
14285SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14286 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14287}
14288
554f62e9
RD
14289SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14290 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14291 return 1;
d55e5bfc
RD
14292}
14293
14294
554f62e9
RD
14295SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14296 PyObject *pyobj = 0;
14297
14298 {
14299#if wxUSE_UNICODE
14300 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14301#else
14302 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14303#endif
14304 }
14305 return pyobj;
14306}
14307
14308
14309SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14310 PyObject *resultobj = 0;
14311 wxWindow *arg1 = (wxWindow *) 0 ;
14312 int arg2 = (int) -1 ;
14313 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14314 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14315 wxSize const &arg4_defvalue = wxDefaultSize ;
14316 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14317 long arg5 = (long) wxSB_HORIZONTAL ;
14318 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14319 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14320 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14321 wxString *arg7 = (wxString *) &arg7_defvalue ;
14322 wxScrollBar *result = 0 ;
14323 void *argp1 = 0 ;
14324 int res1 = 0 ;
14325 int val2 ;
14326 int ecode2 = 0 ;
14327 wxPoint temp3 ;
14328 wxSize temp4 ;
14329 long val5 ;
14330 int ecode5 = 0 ;
14331 void *argp6 = 0 ;
14332 int res6 = 0 ;
14333 bool temp7 = false ;
14334 PyObject * obj0 = 0 ;
14335 PyObject * obj1 = 0 ;
14336 PyObject * obj2 = 0 ;
14337 PyObject * obj3 = 0 ;
14338 PyObject * obj4 = 0 ;
14339 PyObject * obj5 = 0 ;
14340 PyObject * obj6 = 0 ;
14341 char * kwnames[] = {
14342 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14343 };
14344
14345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14347 if (!SWIG_IsOK(res1)) {
14348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14349 }
14350 arg1 = reinterpret_cast< wxWindow * >(argp1);
14351 if (obj1) {
14352 ecode2 = SWIG_AsVal_int(obj1, &val2);
14353 if (!SWIG_IsOK(ecode2)) {
14354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14355 }
14356 arg2 = static_cast< int >(val2);
14357 }
14358 if (obj2) {
d55e5bfc 14359 {
554f62e9
RD
14360 arg3 = &temp3;
14361 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14362 }
554f62e9
RD
14363 }
14364 if (obj3) {
d55e5bfc 14365 {
554f62e9
RD
14366 arg4 = &temp4;
14367 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14368 }
554f62e9
RD
14369 }
14370 if (obj4) {
14371 ecode5 = SWIG_AsVal_long(obj4, &val5);
14372 if (!SWIG_IsOK(ecode5)) {
14373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14374 }
14375 arg5 = static_cast< long >(val5);
14376 }
14377 if (obj5) {
14378 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14379 if (!SWIG_IsOK(res6)) {
14380 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14381 }
14382 if (!argp6) {
14383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14384 }
554f62e9
RD
14385 arg6 = reinterpret_cast< wxValidator * >(argp6);
14386 }
14387 if (obj6) {
d55e5bfc 14388 {
554f62e9
RD
14389 arg7 = wxString_in_helper(obj6);
14390 if (arg7 == NULL) SWIG_fail;
14391 temp7 = true;
d55e5bfc 14392 }
554f62e9
RD
14393 }
14394 {
14395 if (!wxPyCheckForApp()) SWIG_fail;
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14398 wxPyEndAllowThreads(__tstate);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 }
14401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14402 {
14403 if (temp7)
14404 delete arg7;
14405 }
14406 return resultobj;
14407fail:
14408 {
14409 if (temp7)
14410 delete arg7;
14411 }
14412 return NULL;
d55e5bfc
RD
14413}
14414
14415
554f62e9
RD
14416SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14417 PyObject *resultobj = 0;
14418 wxScrollBar *result = 0 ;
14419
14420 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14421 {
14422 if (!wxPyCheckForApp()) SWIG_fail;
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = (wxScrollBar *)new wxScrollBar();
14425 wxPyEndAllowThreads(__tstate);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14429 return resultobj;
14430fail:
14431 return NULL;
14432}
14433
14434
14435SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14436 PyObject *resultobj = 0;
14437 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14438 wxWindow *arg2 = (wxWindow *) 0 ;
14439 int arg3 = (int) -1 ;
14440 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14441 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14442 wxSize const &arg5_defvalue = wxDefaultSize ;
14443 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14444 long arg6 = (long) wxSB_HORIZONTAL ;
14445 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14446 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14447 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14448 wxString *arg8 = (wxString *) &arg8_defvalue ;
14449 bool result;
14450 void *argp1 = 0 ;
14451 int res1 = 0 ;
14452 void *argp2 = 0 ;
14453 int res2 = 0 ;
14454 int val3 ;
14455 int ecode3 = 0 ;
14456 wxPoint temp4 ;
14457 wxSize temp5 ;
14458 long val6 ;
14459 int ecode6 = 0 ;
14460 void *argp7 = 0 ;
14461 int res7 = 0 ;
14462 bool temp8 = false ;
14463 PyObject * obj0 = 0 ;
14464 PyObject * obj1 = 0 ;
14465 PyObject * obj2 = 0 ;
14466 PyObject * obj3 = 0 ;
14467 PyObject * obj4 = 0 ;
14468 PyObject * obj5 = 0 ;
14469 PyObject * obj6 = 0 ;
14470 PyObject * obj7 = 0 ;
14471 char * kwnames[] = {
14472 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14473 };
14474
14475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14477 if (!SWIG_IsOK(res1)) {
14478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14479 }
14480 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14481 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14482 if (!SWIG_IsOK(res2)) {
14483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14484 }
14485 arg2 = reinterpret_cast< wxWindow * >(argp2);
14486 if (obj2) {
14487 ecode3 = SWIG_AsVal_int(obj2, &val3);
14488 if (!SWIG_IsOK(ecode3)) {
14489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14490 }
14491 arg3 = static_cast< int >(val3);
14492 }
14493 if (obj3) {
d55e5bfc 14494 {
554f62e9
RD
14495 arg4 = &temp4;
14496 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14497 }
554f62e9
RD
14498 }
14499 if (obj4) {
093d3ff1 14500 {
554f62e9
RD
14501 arg5 = &temp5;
14502 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 14503 }
554f62e9
RD
14504 }
14505 if (obj5) {
14506 ecode6 = SWIG_AsVal_long(obj5, &val6);
14507 if (!SWIG_IsOK(ecode6)) {
14508 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14509 }
14510 arg6 = static_cast< long >(val6);
14511 }
14512 if (obj6) {
14513 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14514 if (!SWIG_IsOK(res7)) {
14515 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
a07a67e6 14516 }
554f62e9
RD
14517 if (!argp7) {
14518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14519 }
14520 arg7 = reinterpret_cast< wxValidator * >(argp7);
14521 }
14522 if (obj7) {
093d3ff1 14523 {
554f62e9
RD
14524 arg8 = wxString_in_helper(obj7);
14525 if (arg8 == NULL) SWIG_fail;
14526 temp8 = true;
093d3ff1 14527 }
554f62e9
RD
14528 }
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14537 }
14538 {
14539 if (temp8)
14540 delete arg8;
14541 }
14542 return resultobj;
14543fail:
14544 {
14545 if (temp8)
14546 delete arg8;
14547 }
14548 return NULL;
a07a67e6
RD
14549}
14550
14551
554f62e9
RD
14552SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14553 PyObject *resultobj = 0;
14554 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14555 int result;
14556 void *argp1 = 0 ;
14557 int res1 = 0 ;
14558 PyObject *swig_obj[1] ;
14559
14560 if (!args) SWIG_fail;
14561 swig_obj[0] = args;
14562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14563 if (!SWIG_IsOK(res1)) {
14564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14565 }
14566 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_From_int(static_cast< int >(result));
14574 return resultobj;
14575fail:
14576 return NULL;
d55e5bfc
RD
14577}
14578
14579
554f62e9
RD
14580SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14581 PyObject *resultobj = 0;
14582 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14583 int result;
14584 void *argp1 = 0 ;
14585 int res1 = 0 ;
14586 PyObject *swig_obj[1] ;
14587
14588 if (!args) SWIG_fail;
14589 swig_obj[0] = args;
14590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14591 if (!SWIG_IsOK(res1)) {
14592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14593 }
14594 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 resultobj = SWIG_From_int(static_cast< int >(result));
14602 return resultobj;
14603fail:
14604 return NULL;
d55e5bfc
RD
14605}
14606
14607
554f62e9
RD
14608SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14609 PyObject *resultobj = 0;
14610 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14611 int result;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 PyObject *swig_obj[1] ;
14615
14616 if (!args) SWIG_fail;
14617 swig_obj[0] = args;
14618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14619 if (!SWIG_IsOK(res1)) {
14620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14621 }
14622 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 resultobj = SWIG_From_int(static_cast< int >(result));
14630 return resultobj;
14631fail:
14632 return NULL;
d55e5bfc
RD
14633}
14634
14635
554f62e9
RD
14636SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14637 PyObject *resultobj = 0;
14638 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14639 int result;
14640 void *argp1 = 0 ;
14641 int res1 = 0 ;
14642 PyObject *swig_obj[1] ;
14643
14644 if (!args) SWIG_fail;
14645 swig_obj[0] = args;
14646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14647 if (!SWIG_IsOK(res1)) {
14648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14649 }
14650 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 result = (int)((wxScrollBar const *)arg1)->GetRange();
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = SWIG_From_int(static_cast< int >(result));
14658 return resultobj;
14659fail:
14660 return NULL;
d55e5bfc
RD
14661}
14662
14663
554f62e9
RD
14664SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14665 PyObject *resultobj = 0;
14666 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14667 bool result;
14668 void *argp1 = 0 ;
14669 int res1 = 0 ;
14670 PyObject *swig_obj[1] ;
14671
14672 if (!args) SWIG_fail;
14673 swig_obj[0] = args;
14674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14675 if (!SWIG_IsOK(res1)) {
14676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14677 }
14678 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14679 {
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 {
14686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14687 }
14688 return resultobj;
14689fail:
14690 return NULL;
14691}
14692
14693
14694SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14695 PyObject *resultobj = 0;
14696 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14697 int arg2 ;
14698 void *argp1 = 0 ;
14699 int res1 = 0 ;
14700 int val2 ;
14701 int ecode2 = 0 ;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 char * kwnames[] = {
14705 (char *) "self",(char *) "viewStart", NULL
14706 };
14707
14708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14712 }
14713 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14714 ecode2 = SWIG_AsVal_int(obj1, &val2);
14715 if (!SWIG_IsOK(ecode2)) {
14716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14717 }
14718 arg2 = static_cast< int >(val2);
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 (arg1)->SetThumbPosition(arg2);
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 resultobj = SWIG_Py_Void();
14726 return resultobj;
14727fail:
14728 return NULL;
14729}
14730
14731
14732SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14733 PyObject *resultobj = 0;
14734 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14735 SwigValueWrapper<wxVisualAttributes > result;
14736 int val1 ;
14737 int ecode1 = 0 ;
14738 PyObject * obj0 = 0 ;
14739 char * kwnames[] = {
14740 (char *) "variant", NULL
14741 };
14742
14743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14744 if (obj0) {
14745 ecode1 = SWIG_AsVal_int(obj0, &val1);
14746 if (!SWIG_IsOK(ecode1)) {
14747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14748 }
14749 arg1 = static_cast< wxWindowVariant >(val1);
14750 }
14751 {
14752 if (!wxPyCheckForApp()) SWIG_fail;
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
14754 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14759 return resultobj;
14760fail:
14761 return NULL;
d55e5bfc
RD
14762}
14763
14764
554f62e9
RD
14765SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14766 PyObject *obj;
14767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14768 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14769 return SWIG_Py_Void();
d55e5bfc
RD
14770}
14771
554f62e9
RD
14772SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14773 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14774}
14775
554f62e9
RD
14776SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14777 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14778 return 1;
d55e5bfc
RD
14779}
14780
14781
554f62e9
RD
14782SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14783 PyObject *pyobj = 0;
14784
14785 {
d55e5bfc 14786#if wxUSE_UNICODE
554f62e9 14787 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14788#else
554f62e9 14789 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14790#endif
554f62e9
RD
14791 }
14792 return pyobj;
d55e5bfc
RD
14793}
14794
14795
554f62e9
RD
14796SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14797 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14798 return 1;
d55e5bfc
RD
14799}
14800
14801
554f62e9
RD
14802SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14803 PyObject *pyobj = 0;
14804
14805 {
d55e5bfc 14806#if wxUSE_UNICODE
554f62e9 14807 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14808#else
554f62e9 14809 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14810#endif
554f62e9
RD
14811 }
14812 return pyobj;
14813}
14814
14815
14816SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14817 PyObject *resultobj = 0;
14818 wxWindow *arg1 = (wxWindow *) 0 ;
14819 int arg2 = (int) -1 ;
14820 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14821 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14822 wxSize const &arg4_defvalue = wxDefaultSize ;
14823 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14824 long arg5 = (long) wxSP_HORIZONTAL ;
14825 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14826 wxString *arg6 = (wxString *) &arg6_defvalue ;
14827 wxSpinButton *result = 0 ;
14828 void *argp1 = 0 ;
14829 int res1 = 0 ;
14830 int val2 ;
14831 int ecode2 = 0 ;
14832 wxPoint temp3 ;
14833 wxSize temp4 ;
14834 long val5 ;
14835 int ecode5 = 0 ;
14836 bool temp6 = false ;
14837 PyObject * obj0 = 0 ;
14838 PyObject * obj1 = 0 ;
14839 PyObject * obj2 = 0 ;
14840 PyObject * obj3 = 0 ;
14841 PyObject * obj4 = 0 ;
14842 PyObject * obj5 = 0 ;
14843 char * kwnames[] = {
14844 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14845 };
14846
14847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14849 if (!SWIG_IsOK(res1)) {
14850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14851 }
14852 arg1 = reinterpret_cast< wxWindow * >(argp1);
14853 if (obj1) {
14854 ecode2 = SWIG_AsVal_int(obj1, &val2);
14855 if (!SWIG_IsOK(ecode2)) {
14856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14857 }
14858 arg2 = static_cast< int >(val2);
14859 }
14860 if (obj2) {
14861 {
14862 arg3 = &temp3;
14863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14864 }
554f62e9
RD
14865 }
14866 if (obj3) {
d55e5bfc 14867 {
554f62e9
RD
14868 arg4 = &temp4;
14869 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14870 }
554f62e9
RD
14871 }
14872 if (obj4) {
14873 ecode5 = SWIG_AsVal_long(obj4, &val5);
14874 if (!SWIG_IsOK(ecode5)) {
14875 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14876 }
14877 arg5 = static_cast< long >(val5);
14878 }
14879 if (obj5) {
093d3ff1 14880 {
554f62e9
RD
14881 arg6 = wxString_in_helper(obj5);
14882 if (arg6 == NULL) SWIG_fail;
14883 temp6 = true;
093d3ff1 14884 }
554f62e9
RD
14885 }
14886 {
14887 if (!wxPyCheckForApp()) SWIG_fail;
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14894 {
14895 if (temp6)
14896 delete arg6;
14897 }
14898 return resultobj;
14899fail:
14900 {
14901 if (temp6)
14902 delete arg6;
14903 }
14904 return NULL;
d55e5bfc
RD
14905}
14906
14907
554f62e9
RD
14908SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14909 PyObject *resultobj = 0;
14910 wxSpinButton *result = 0 ;
14911
14912 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14913 {
14914 if (!wxPyCheckForApp()) SWIG_fail;
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 result = (wxSpinButton *)new wxSpinButton();
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14921 return resultobj;
14922fail:
14923 return NULL;
14924}
14925
14926
14927SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj = 0;
14929 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14930 wxWindow *arg2 = (wxWindow *) 0 ;
14931 int arg3 = (int) -1 ;
14932 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14933 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14934 wxSize const &arg5_defvalue = wxDefaultSize ;
14935 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14936 long arg6 = (long) wxSP_HORIZONTAL ;
14937 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14938 wxString *arg7 = (wxString *) &arg7_defvalue ;
14939 bool result;
14940 void *argp1 = 0 ;
14941 int res1 = 0 ;
14942 void *argp2 = 0 ;
14943 int res2 = 0 ;
14944 int val3 ;
14945 int ecode3 = 0 ;
14946 wxPoint temp4 ;
14947 wxSize temp5 ;
14948 long val6 ;
14949 int ecode6 = 0 ;
14950 bool temp7 = false ;
14951 PyObject * obj0 = 0 ;
14952 PyObject * obj1 = 0 ;
14953 PyObject * obj2 = 0 ;
14954 PyObject * obj3 = 0 ;
14955 PyObject * obj4 = 0 ;
14956 PyObject * obj5 = 0 ;
14957 PyObject * obj6 = 0 ;
14958 char * kwnames[] = {
14959 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14960 };
14961
14962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14964 if (!SWIG_IsOK(res1)) {
14965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14966 }
14967 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14968 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14969 if (!SWIG_IsOK(res2)) {
14970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14971 }
14972 arg2 = reinterpret_cast< wxWindow * >(argp2);
14973 if (obj2) {
14974 ecode3 = SWIG_AsVal_int(obj2, &val3);
14975 if (!SWIG_IsOK(ecode3)) {
14976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14977 }
14978 arg3 = static_cast< int >(val3);
14979 }
14980 if (obj3) {
d55e5bfc 14981 {
554f62e9
RD
14982 arg4 = &temp4;
14983 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14984 }
554f62e9
RD
14985 }
14986 if (obj4) {
d55e5bfc 14987 {
554f62e9
RD
14988 arg5 = &temp5;
14989 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14990 }
554f62e9
RD
14991 }
14992 if (obj5) {
14993 ecode6 = SWIG_AsVal_long(obj5, &val6);
14994 if (!SWIG_IsOK(ecode6)) {
14995 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14996 }
14997 arg6 = static_cast< long >(val6);
14998 }
14999 if (obj6) {
d55e5bfc 15000 {
554f62e9
RD
15001 arg7 = wxString_in_helper(obj6);
15002 if (arg7 == NULL) SWIG_fail;
15003 temp7 = true;
d55e5bfc 15004 }
554f62e9
RD
15005 }
15006 {
15007 PyThreadState* __tstate = wxPyBeginAllowThreads();
15008 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 {
15013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15014 }
15015 {
15016 if (temp7)
15017 delete arg7;
15018 }
15019 return resultobj;
15020fail:
15021 {
15022 if (temp7)
15023 delete arg7;
15024 }
15025 return NULL;
d55e5bfc
RD
15026}
15027
15028
554f62e9
RD
15029SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15030 PyObject *resultobj = 0;
15031 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15032 int result;
15033 void *argp1 = 0 ;
15034 int res1 = 0 ;
15035 PyObject *swig_obj[1] ;
15036
15037 if (!args) SWIG_fail;
15038 swig_obj[0] = args;
15039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15040 if (!SWIG_IsOK(res1)) {
15041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15042 }
15043 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15044 {
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (int)((wxSpinButton const *)arg1)->GetValue();
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 resultobj = SWIG_From_int(static_cast< int >(result));
15051 return resultobj;
15052fail:
15053 return NULL;
d55e5bfc
RD
15054}
15055
15056
554f62e9
RD
15057SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15058 PyObject *resultobj = 0;
15059 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15060 int result;
15061 void *argp1 = 0 ;
15062 int res1 = 0 ;
15063 PyObject *swig_obj[1] ;
15064
15065 if (!args) SWIG_fail;
15066 swig_obj[0] = args;
15067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15068 if (!SWIG_IsOK(res1)) {
15069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15070 }
15071 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15072 {
15073 PyThreadState* __tstate = wxPyBeginAllowThreads();
15074 result = (int)((wxSpinButton const *)arg1)->GetMin();
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 resultobj = SWIG_From_int(static_cast< int >(result));
15079 return resultobj;
15080fail:
15081 return NULL;
d55e5bfc
RD
15082}
15083
15084
554f62e9
RD
15085SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15086 PyObject *resultobj = 0;
15087 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15088 int result;
15089 void *argp1 = 0 ;
15090 int res1 = 0 ;
15091 PyObject *swig_obj[1] ;
15092
15093 if (!args) SWIG_fail;
15094 swig_obj[0] = args;
15095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15096 if (!SWIG_IsOK(res1)) {
15097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15098 }
15099 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 result = (int)((wxSpinButton const *)arg1)->GetMax();
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 resultobj = SWIG_From_int(static_cast< int >(result));
15107 return resultobj;
15108fail:
15109 return NULL;
15110}
15111
15112
15113SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj = 0;
15115 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15116 int arg2 ;
15117 void *argp1 = 0 ;
15118 int res1 = 0 ;
15119 int val2 ;
15120 int ecode2 = 0 ;
15121 PyObject * obj0 = 0 ;
15122 PyObject * obj1 = 0 ;
15123 char * kwnames[] = {
15124 (char *) "self",(char *) "val", NULL
15125 };
15126
15127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15129 if (!SWIG_IsOK(res1)) {
15130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15131 }
15132 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15133 ecode2 = SWIG_AsVal_int(obj1, &val2);
15134 if (!SWIG_IsOK(ecode2)) {
15135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15136 }
15137 arg2 = static_cast< int >(val2);
15138 {
15139 PyThreadState* __tstate = wxPyBeginAllowThreads();
15140 (arg1)->SetValue(arg2);
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 resultobj = SWIG_Py_Void();
15145 return resultobj;
15146fail:
15147 return NULL;
15148}
15149
15150
15151SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15152 PyObject *resultobj = 0;
15153 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15154 int arg2 ;
15155 void *argp1 = 0 ;
15156 int res1 = 0 ;
15157 int val2 ;
15158 int ecode2 = 0 ;
15159 PyObject * obj0 = 0 ;
15160 PyObject * obj1 = 0 ;
15161 char * kwnames[] = {
15162 (char *) "self",(char *) "minVal", NULL
15163 };
15164
15165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15167 if (!SWIG_IsOK(res1)) {
15168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15169 }
15170 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15171 ecode2 = SWIG_AsVal_int(obj1, &val2);
15172 if (!SWIG_IsOK(ecode2)) {
15173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15174 }
15175 arg2 = static_cast< int >(val2);
15176 {
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 (arg1)->SetMin(arg2);
15179 wxPyEndAllowThreads(__tstate);
15180 if (PyErr_Occurred()) SWIG_fail;
15181 }
15182 resultobj = SWIG_Py_Void();
15183 return resultobj;
15184fail:
15185 return NULL;
15186}
15187
15188
15189SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15190 PyObject *resultobj = 0;
15191 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15192 int arg2 ;
15193 void *argp1 = 0 ;
15194 int res1 = 0 ;
15195 int val2 ;
15196 int ecode2 = 0 ;
15197 PyObject * obj0 = 0 ;
15198 PyObject * obj1 = 0 ;
15199 char * kwnames[] = {
15200 (char *) "self",(char *) "maxVal", NULL
15201 };
15202
15203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15205 if (!SWIG_IsOK(res1)) {
15206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15207 }
15208 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15209 ecode2 = SWIG_AsVal_int(obj1, &val2);
15210 if (!SWIG_IsOK(ecode2)) {
15211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15212 }
15213 arg2 = static_cast< int >(val2);
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 (arg1)->SetMax(arg2);
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 resultobj = SWIG_Py_Void();
15221 return resultobj;
15222fail:
15223 return NULL;
15224}
15225
15226
15227SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15228 PyObject *resultobj = 0;
15229 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15230 int arg2 ;
15231 int arg3 ;
15232 void *argp1 = 0 ;
15233 int res1 = 0 ;
15234 int val2 ;
15235 int ecode2 = 0 ;
15236 int val3 ;
15237 int ecode3 = 0 ;
15238 PyObject * obj0 = 0 ;
15239 PyObject * obj1 = 0 ;
15240 PyObject * obj2 = 0 ;
15241 char * kwnames[] = {
15242 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15243 };
15244
15245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15247 if (!SWIG_IsOK(res1)) {
15248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15249 }
15250 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15251 ecode2 = SWIG_AsVal_int(obj1, &val2);
15252 if (!SWIG_IsOK(ecode2)) {
15253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15254 }
15255 arg2 = static_cast< int >(val2);
15256 ecode3 = SWIG_AsVal_int(obj2, &val3);
15257 if (!SWIG_IsOK(ecode3)) {
15258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15259 }
15260 arg3 = static_cast< int >(val3);
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 (arg1)->SetRange(arg2,arg3);
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = SWIG_Py_Void();
15268 return resultobj;
15269fail:
15270 return NULL;
d55e5bfc
RD
15271}
15272
15273
554f62e9
RD
15274SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15275 PyObject *resultobj = 0;
15276 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15277 bool result;
15278 void *argp1 = 0 ;
15279 int res1 = 0 ;
15280 PyObject *swig_obj[1] ;
15281
15282 if (!args) SWIG_fail;
15283 swig_obj[0] = args;
15284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15285 if (!SWIG_IsOK(res1)) {
15286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15287 }
15288 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15289 {
15290 PyThreadState* __tstate = wxPyBeginAllowThreads();
15291 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 {
15296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15297 }
15298 return resultobj;
15299fail:
15300 return NULL;
d55e5bfc
RD
15301}
15302
15303
554f62e9
RD
15304SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15305 PyObject *resultobj = 0;
15306 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15307 SwigValueWrapper<wxVisualAttributes > result;
15308 int val1 ;
15309 int ecode1 = 0 ;
15310 PyObject * obj0 = 0 ;
15311 char * kwnames[] = {
15312 (char *) "variant", NULL
15313 };
15314
15315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15316 if (obj0) {
15317 ecode1 = SWIG_AsVal_int(obj0, &val1);
15318 if (!SWIG_IsOK(ecode1)) {
15319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15320 }
15321 arg1 = static_cast< wxWindowVariant >(val1);
15322 }
15323 {
15324 if (!wxPyCheckForApp()) SWIG_fail;
15325 PyThreadState* __tstate = wxPyBeginAllowThreads();
15326 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15327 wxPyEndAllowThreads(__tstate);
15328 if (PyErr_Occurred()) SWIG_fail;
15329 }
15330 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15331 return resultobj;
15332fail:
15333 return NULL;
15334}
15335
15336
15337SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15338 PyObject *obj;
15339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15340 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15341 return SWIG_Py_Void();
15342}
15343
15344SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15345 return SWIG_Python_InitShadowInstance(args);
15346}
15347
15348SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj = 0;
15350 wxWindow *arg1 = (wxWindow *) 0 ;
15351 int arg2 = (int) -1 ;
15352 wxString const &arg3_defvalue = wxPyEmptyString ;
15353 wxString *arg3 = (wxString *) &arg3_defvalue ;
15354 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15355 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15356 wxSize const &arg5_defvalue = wxDefaultSize ;
15357 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15358 long arg6 = (long) wxSP_ARROW_KEYS ;
15359 int arg7 = (int) 0 ;
15360 int arg8 = (int) 100 ;
15361 int arg9 = (int) 0 ;
15362 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15363 wxString *arg10 = (wxString *) &arg10_defvalue ;
15364 wxSpinCtrl *result = 0 ;
15365 void *argp1 = 0 ;
15366 int res1 = 0 ;
15367 int val2 ;
15368 int ecode2 = 0 ;
15369 bool temp3 = false ;
15370 wxPoint temp4 ;
15371 wxSize temp5 ;
15372 long val6 ;
15373 int ecode6 = 0 ;
15374 int val7 ;
15375 int ecode7 = 0 ;
15376 int val8 ;
15377 int ecode8 = 0 ;
15378 int val9 ;
15379 int ecode9 = 0 ;
15380 bool temp10 = false ;
15381 PyObject * obj0 = 0 ;
15382 PyObject * obj1 = 0 ;
15383 PyObject * obj2 = 0 ;
15384 PyObject * obj3 = 0 ;
15385 PyObject * obj4 = 0 ;
15386 PyObject * obj5 = 0 ;
15387 PyObject * obj6 = 0 ;
15388 PyObject * obj7 = 0 ;
15389 PyObject * obj8 = 0 ;
15390 PyObject * obj9 = 0 ;
15391 char * kwnames[] = {
15392 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15393 };
15394
15395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15397 if (!SWIG_IsOK(res1)) {
15398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15399 }
15400 arg1 = reinterpret_cast< wxWindow * >(argp1);
15401 if (obj1) {
15402 ecode2 = SWIG_AsVal_int(obj1, &val2);
15403 if (!SWIG_IsOK(ecode2)) {
15404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15405 }
15406 arg2 = static_cast< int >(val2);
15407 }
15408 if (obj2) {
d55e5bfc 15409 {
554f62e9
RD
15410 arg3 = wxString_in_helper(obj2);
15411 if (arg3 == NULL) SWIG_fail;
15412 temp3 = true;
d55e5bfc 15413 }
554f62e9
RD
15414 }
15415 if (obj3) {
d55e5bfc 15416 {
554f62e9
RD
15417 arg4 = &temp4;
15418 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15419 }
554f62e9
RD
15420 }
15421 if (obj4) {
d55e5bfc 15422 {
554f62e9
RD
15423 arg5 = &temp5;
15424 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15425 }
554f62e9
RD
15426 }
15427 if (obj5) {
15428 ecode6 = SWIG_AsVal_long(obj5, &val6);
15429 if (!SWIG_IsOK(ecode6)) {
15430 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15431 }
15432 arg6 = static_cast< long >(val6);
15433 }
15434 if (obj6) {
15435 ecode7 = SWIG_AsVal_int(obj6, &val7);
15436 if (!SWIG_IsOK(ecode7)) {
15437 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15438 }
15439 arg7 = static_cast< int >(val7);
15440 }
15441 if (obj7) {
15442 ecode8 = SWIG_AsVal_int(obj7, &val8);
15443 if (!SWIG_IsOK(ecode8)) {
15444 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15445 }
15446 arg8 = static_cast< int >(val8);
15447 }
15448 if (obj8) {
15449 ecode9 = SWIG_AsVal_int(obj8, &val9);
15450 if (!SWIG_IsOK(ecode9)) {
15451 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15452 }
15453 arg9 = static_cast< int >(val9);
15454 }
15455 if (obj9) {
d55e5bfc 15456 {
554f62e9
RD
15457 arg10 = wxString_in_helper(obj9);
15458 if (arg10 == NULL) SWIG_fail;
15459 temp10 = true;
d55e5bfc 15460 }
554f62e9
RD
15461 }
15462 {
15463 if (!wxPyCheckForApp()) SWIG_fail;
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15470 {
15471 if (temp3)
15472 delete arg3;
15473 }
15474 {
15475 if (temp10)
15476 delete arg10;
15477 }
15478 return resultobj;
15479fail:
15480 {
15481 if (temp3)
15482 delete arg3;
15483 }
15484 {
15485 if (temp10)
15486 delete arg10;
15487 }
15488 return NULL;
d55e5bfc
RD
15489}
15490
15491
554f62e9
RD
15492SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15493 PyObject *resultobj = 0;
15494 wxSpinCtrl *result = 0 ;
15495
15496 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15497 {
15498 if (!wxPyCheckForApp()) SWIG_fail;
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (wxSpinCtrl *)new wxSpinCtrl();
15501 wxPyEndAllowThreads(__tstate);
15502 if (PyErr_Occurred()) SWIG_fail;
15503 }
15504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15505 return resultobj;
15506fail:
15507 return NULL;
15508}
15509
15510
15511SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15512 PyObject *resultobj = 0;
15513 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15514 wxWindow *arg2 = (wxWindow *) 0 ;
15515 int arg3 = (int) -1 ;
15516 wxString const &arg4_defvalue = wxPyEmptyString ;
15517 wxString *arg4 = (wxString *) &arg4_defvalue ;
15518 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15519 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15520 wxSize const &arg6_defvalue = wxDefaultSize ;
15521 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15522 long arg7 = (long) wxSP_ARROW_KEYS ;
15523 int arg8 = (int) 0 ;
15524 int arg9 = (int) 100 ;
15525 int arg10 = (int) 0 ;
15526 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15527 wxString *arg11 = (wxString *) &arg11_defvalue ;
15528 bool result;
15529 void *argp1 = 0 ;
15530 int res1 = 0 ;
15531 void *argp2 = 0 ;
15532 int res2 = 0 ;
15533 int val3 ;
15534 int ecode3 = 0 ;
15535 bool temp4 = false ;
15536 wxPoint temp5 ;
15537 wxSize temp6 ;
15538 long val7 ;
15539 int ecode7 = 0 ;
15540 int val8 ;
15541 int ecode8 = 0 ;
15542 int val9 ;
15543 int ecode9 = 0 ;
15544 int val10 ;
15545 int ecode10 = 0 ;
15546 bool temp11 = false ;
15547 PyObject * obj0 = 0 ;
15548 PyObject * obj1 = 0 ;
15549 PyObject * obj2 = 0 ;
15550 PyObject * obj3 = 0 ;
15551 PyObject * obj4 = 0 ;
15552 PyObject * obj5 = 0 ;
15553 PyObject * obj6 = 0 ;
15554 PyObject * obj7 = 0 ;
15555 PyObject * obj8 = 0 ;
15556 PyObject * obj9 = 0 ;
15557 PyObject * obj10 = 0 ;
15558 char * kwnames[] = {
15559 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15560 };
15561
15562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15566 }
15567 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15569 if (!SWIG_IsOK(res2)) {
15570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15571 }
15572 arg2 = reinterpret_cast< wxWindow * >(argp2);
15573 if (obj2) {
15574 ecode3 = SWIG_AsVal_int(obj2, &val3);
15575 if (!SWIG_IsOK(ecode3)) {
15576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15577 }
15578 arg3 = static_cast< int >(val3);
15579 }
15580 if (obj3) {
093d3ff1 15581 {
554f62e9
RD
15582 arg4 = wxString_in_helper(obj3);
15583 if (arg4 == NULL) SWIG_fail;
15584 temp4 = true;
093d3ff1 15585 }
554f62e9
RD
15586 }
15587 if (obj4) {
093d3ff1 15588 {
554f62e9
RD
15589 arg5 = &temp5;
15590 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 15591 }
554f62e9
RD
15592 }
15593 if (obj5) {
d55e5bfc 15594 {
554f62e9
RD
15595 arg6 = &temp6;
15596 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15597 }
554f62e9
RD
15598 }
15599 if (obj6) {
15600 ecode7 = SWIG_AsVal_long(obj6, &val7);
15601 if (!SWIG_IsOK(ecode7)) {
15602 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15603 }
15604 arg7 = static_cast< long >(val7);
15605 }
15606 if (obj7) {
15607 ecode8 = SWIG_AsVal_int(obj7, &val8);
15608 if (!SWIG_IsOK(ecode8)) {
15609 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15610 }
15611 arg8 = static_cast< int >(val8);
15612 }
15613 if (obj8) {
15614 ecode9 = SWIG_AsVal_int(obj8, &val9);
15615 if (!SWIG_IsOK(ecode9)) {
15616 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15617 }
15618 arg9 = static_cast< int >(val9);
15619 }
15620 if (obj9) {
15621 ecode10 = SWIG_AsVal_int(obj9, &val10);
15622 if (!SWIG_IsOK(ecode10)) {
15623 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15624 }
15625 arg10 = static_cast< int >(val10);
15626 }
15627 if (obj10) {
15628 {
15629 arg11 = wxString_in_helper(obj10);
15630 if (arg11 == NULL) SWIG_fail;
15631 temp11 = true;
15632 }
15633 }
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 {
15641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15642 }
15643 {
15644 if (temp4)
15645 delete arg4;
15646 }
15647 {
15648 if (temp11)
15649 delete arg11;
15650 }
15651 return resultobj;
15652fail:
15653 {
15654 if (temp4)
15655 delete arg4;
15656 }
15657 {
15658 if (temp11)
15659 delete arg11;
15660 }
15661 return NULL;
d55e5bfc
RD
15662}
15663
15664
554f62e9
RD
15665SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15666 PyObject *resultobj = 0;
15667 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15668 int result;
15669 void *argp1 = 0 ;
15670 int res1 = 0 ;
15671 PyObject *swig_obj[1] ;
15672
15673 if (!args) SWIG_fail;
15674 swig_obj[0] = args;
15675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15676 if (!SWIG_IsOK(res1)) {
15677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15678 }
15679 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_From_int(static_cast< int >(result));
15687 return resultobj;
15688fail:
15689 return NULL;
15690}
15691
15692
15693SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15694 PyObject *resultobj = 0;
15695 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15696 int arg2 ;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 int val2 ;
15700 int ecode2 = 0 ;
15701 PyObject * obj0 = 0 ;
15702 PyObject * obj1 = 0 ;
15703 char * kwnames[] = {
15704 (char *) "self",(char *) "value", NULL
15705 };
15706
15707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15709 if (!SWIG_IsOK(res1)) {
15710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15711 }
15712 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15713 ecode2 = SWIG_AsVal_int(obj1, &val2);
15714 if (!SWIG_IsOK(ecode2)) {
15715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15716 }
15717 arg2 = static_cast< int >(val2);
15718 {
15719 PyThreadState* __tstate = wxPyBeginAllowThreads();
15720 (arg1)->SetValue(arg2);
15721 wxPyEndAllowThreads(__tstate);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 resultobj = SWIG_Py_Void();
15725 return resultobj;
15726fail:
15727 return NULL;
15728}
15729
15730
15731SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15732 PyObject *resultobj = 0;
15733 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15734 wxString *arg2 = 0 ;
15735 void *argp1 = 0 ;
15736 int res1 = 0 ;
15737 bool temp2 = false ;
15738 PyObject * obj0 = 0 ;
15739 PyObject * obj1 = 0 ;
15740 char * kwnames[] = {
15741 (char *) "self",(char *) "text", NULL
15742 };
15743
15744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15748 }
15749 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15750 {
15751 arg2 = wxString_in_helper(obj1);
15752 if (arg2 == NULL) SWIG_fail;
15753 temp2 = true;
15754 }
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 (arg1)->SetValue((wxString const &)*arg2);
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 resultobj = SWIG_Py_Void();
15762 {
15763 if (temp2)
15764 delete arg2;
15765 }
15766 return resultobj;
15767fail:
15768 {
15769 if (temp2)
15770 delete arg2;
15771 }
15772 return NULL;
15773}
15774
15775
15776SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15777 PyObject *resultobj = 0;
15778 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15779 int arg2 ;
15780 int arg3 ;
15781 void *argp1 = 0 ;
15782 int res1 = 0 ;
15783 int val2 ;
15784 int ecode2 = 0 ;
15785 int val3 ;
15786 int ecode3 = 0 ;
15787 PyObject * obj0 = 0 ;
15788 PyObject * obj1 = 0 ;
15789 PyObject * obj2 = 0 ;
15790 char * kwnames[] = {
15791 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15792 };
15793
15794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15796 if (!SWIG_IsOK(res1)) {
15797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15798 }
15799 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15800 ecode2 = SWIG_AsVal_int(obj1, &val2);
15801 if (!SWIG_IsOK(ecode2)) {
15802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15803 }
15804 arg2 = static_cast< int >(val2);
15805 ecode3 = SWIG_AsVal_int(obj2, &val3);
15806 if (!SWIG_IsOK(ecode3)) {
15807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15808 }
15809 arg3 = static_cast< int >(val3);
15810 {
15811 PyThreadState* __tstate = wxPyBeginAllowThreads();
15812 (arg1)->SetRange(arg2,arg3);
15813 wxPyEndAllowThreads(__tstate);
15814 if (PyErr_Occurred()) SWIG_fail;
15815 }
15816 resultobj = SWIG_Py_Void();
15817 return resultobj;
15818fail:
15819 return NULL;
d55e5bfc
RD
15820}
15821
15822
554f62e9
RD
15823SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15824 PyObject *resultobj = 0;
15825 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15826 int result;
15827 void *argp1 = 0 ;
15828 int res1 = 0 ;
15829 PyObject *swig_obj[1] ;
15830
15831 if (!args) SWIG_fail;
15832 swig_obj[0] = args;
15833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15834 if (!SWIG_IsOK(res1)) {
15835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15836 }
15837 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15838 {
15839 PyThreadState* __tstate = wxPyBeginAllowThreads();
15840 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15841 wxPyEndAllowThreads(__tstate);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 resultobj = SWIG_From_int(static_cast< int >(result));
15845 return resultobj;
15846fail:
15847 return NULL;
d55e5bfc
RD
15848}
15849
15850
554f62e9
RD
15851SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15852 PyObject *resultobj = 0;
15853 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15854 int result;
15855 void *argp1 = 0 ;
15856 int res1 = 0 ;
15857 PyObject *swig_obj[1] ;
15858
15859 if (!args) SWIG_fail;
15860 swig_obj[0] = args;
15861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15862 if (!SWIG_IsOK(res1)) {
15863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15864 }
15865 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15866 {
15867 PyThreadState* __tstate = wxPyBeginAllowThreads();
15868 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15869 wxPyEndAllowThreads(__tstate);
15870 if (PyErr_Occurred()) SWIG_fail;
15871 }
15872 resultobj = SWIG_From_int(static_cast< int >(result));
15873 return resultobj;
15874fail:
15875 return NULL;
15876}
15877
15878
15879SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15880 PyObject *resultobj = 0;
15881 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15882 long arg2 ;
15883 long arg3 ;
15884 void *argp1 = 0 ;
15885 int res1 = 0 ;
15886 long val2 ;
15887 int ecode2 = 0 ;
15888 long val3 ;
15889 int ecode3 = 0 ;
15890 PyObject * obj0 = 0 ;
15891 PyObject * obj1 = 0 ;
15892 PyObject * obj2 = 0 ;
15893 char * kwnames[] = {
f460c29d 15894 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
15895 };
15896
15897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15899 if (!SWIG_IsOK(res1)) {
15900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15901 }
15902 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15903 ecode2 = SWIG_AsVal_long(obj1, &val2);
15904 if (!SWIG_IsOK(ecode2)) {
15905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15906 }
15907 arg2 = static_cast< long >(val2);
15908 ecode3 = SWIG_AsVal_long(obj2, &val3);
15909 if (!SWIG_IsOK(ecode3)) {
15910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15911 }
15912 arg3 = static_cast< long >(val3);
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 (arg1)->SetSelection(arg2,arg3);
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 resultobj = SWIG_Py_Void();
15920 return resultobj;
15921fail:
15922 return NULL;
15923}
15924
15925
15926SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj = 0;
15928 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15929 SwigValueWrapper<wxVisualAttributes > result;
15930 int val1 ;
15931 int ecode1 = 0 ;
15932 PyObject * obj0 = 0 ;
15933 char * kwnames[] = {
15934 (char *) "variant", NULL
15935 };
15936
15937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15938 if (obj0) {
15939 ecode1 = SWIG_AsVal_int(obj0, &val1);
15940 if (!SWIG_IsOK(ecode1)) {
15941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15942 }
15943 arg1 = static_cast< wxWindowVariant >(val1);
15944 }
15945 {
15946 if (!wxPyCheckForApp()) SWIG_fail;
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15949 wxPyEndAllowThreads(__tstate);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 }
15952 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15953 return resultobj;
15954fail:
15955 return NULL;
d55e5bfc
RD
15956}
15957
15958
554f62e9
RD
15959SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15960 PyObject *obj;
15961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15962 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15963 return SWIG_Py_Void();
d55e5bfc
RD
15964}
15965
554f62e9
RD
15966SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15967 return SWIG_Python_InitShadowInstance(args);
15968}
d55e5bfc 15969
554f62e9
RD
15970SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj = 0;
15972 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15973 int arg2 = (int) 0 ;
15974 wxSpinEvent *result = 0 ;
15975 int val1 ;
15976 int ecode1 = 0 ;
15977 int val2 ;
15978 int ecode2 = 0 ;
15979 PyObject * obj0 = 0 ;
15980 PyObject * obj1 = 0 ;
15981 char * kwnames[] = {
15982 (char *) "commandType",(char *) "winid", NULL
15983 };
15984
15985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15986 if (obj0) {
15987 ecode1 = SWIG_AsVal_int(obj0, &val1);
15988 if (!SWIG_IsOK(ecode1)) {
15989 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15990 }
15991 arg1 = static_cast< wxEventType >(val1);
15992 }
15993 if (obj1) {
15994 ecode2 = SWIG_AsVal_int(obj1, &val2);
15995 if (!SWIG_IsOK(ecode2)) {
15996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15997 }
15998 arg2 = static_cast< int >(val2);
15999 }
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16007 return resultobj;
16008fail:
16009 return NULL;
d55e5bfc
RD
16010}
16011
16012
554f62e9
RD
16013SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16014 PyObject *resultobj = 0;
16015 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16016 int result;
16017 void *argp1 = 0 ;
16018 int res1 = 0 ;
16019 PyObject *swig_obj[1] ;
16020
16021 if (!args) SWIG_fail;
16022 swig_obj[0] = args;
16023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16024 if (!SWIG_IsOK(res1)) {
16025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16026 }
16027 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16028 {
16029 PyThreadState* __tstate = wxPyBeginAllowThreads();
16030 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16031 wxPyEndAllowThreads(__tstate);
16032 if (PyErr_Occurred()) SWIG_fail;
16033 }
16034 resultobj = SWIG_From_int(static_cast< int >(result));
16035 return resultobj;
16036fail:
16037 return NULL;
16038}
16039
16040
16041SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16042 PyObject *resultobj = 0;
16043 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16044 int arg2 ;
16045 void *argp1 = 0 ;
16046 int res1 = 0 ;
16047 int val2 ;
16048 int ecode2 = 0 ;
16049 PyObject * obj0 = 0 ;
16050 PyObject * obj1 = 0 ;
16051 char * kwnames[] = {
16052 (char *) "self",(char *) "pos", NULL
16053 };
16054
16055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16057 if (!SWIG_IsOK(res1)) {
16058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16059 }
16060 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16061 ecode2 = SWIG_AsVal_int(obj1, &val2);
16062 if (!SWIG_IsOK(ecode2)) {
16063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16064 }
16065 arg2 = static_cast< int >(val2);
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 (arg1)->SetPosition(arg2);
16069 wxPyEndAllowThreads(__tstate);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 resultobj = SWIG_Py_Void();
16073 return resultobj;
16074fail:
16075 return NULL;
d55e5bfc
RD
16076}
16077
16078
554f62e9
RD
16079SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16080 PyObject *obj;
16081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16082 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16083 return SWIG_Py_Void();
d55e5bfc
RD
16084}
16085
554f62e9
RD
16086SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16087 return SWIG_Python_InitShadowInstance(args);
16088}
d55e5bfc 16089
554f62e9
RD
16090SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16091 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16092 return 1;
d55e5bfc
RD
16093}
16094
16095
554f62e9
RD
16096SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16097 PyObject *pyobj = 0;
16098
16099 {
16100#if wxUSE_UNICODE
16101 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16102#else
16103 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16104#endif
16105 }
16106 return pyobj;
d55e5bfc
RD
16107}
16108
16109
554f62e9
RD
16110SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16111 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16112 return 1;
16113}
16114
16115
16116SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16117 PyObject *pyobj = 0;
16118
16119 {
16120#if wxUSE_UNICODE
16121 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16122#else
16123 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16124#endif
16125 }
16126 return pyobj;
16127}
16128
16129
16130SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16131 PyObject *resultobj = 0;
16132 wxWindow *arg1 = (wxWindow *) 0 ;
16133 int arg2 = (int) -1 ;
16134 wxString const &arg3_defvalue = wxPyEmptyString ;
16135 wxString *arg3 = (wxString *) &arg3_defvalue ;
16136 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16137 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16138 wxSize const &arg5_defvalue = wxDefaultSize ;
16139 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16140 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16141 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16142 int arg7 = (int) 0 ;
16143 long arg8 = (long) wxRA_HORIZONTAL ;
16144 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16145 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16146 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16147 wxString *arg10 = (wxString *) &arg10_defvalue ;
16148 wxRadioBox *result = 0 ;
16149 void *argp1 = 0 ;
16150 int res1 = 0 ;
16151 int val2 ;
16152 int ecode2 = 0 ;
16153 bool temp3 = false ;
16154 wxPoint temp4 ;
16155 wxSize temp5 ;
16156 bool temp6 = false ;
16157 int val7 ;
16158 int ecode7 = 0 ;
16159 long val8 ;
16160 int ecode8 = 0 ;
16161 void *argp9 = 0 ;
16162 int res9 = 0 ;
16163 bool temp10 = false ;
16164 PyObject * obj0 = 0 ;
16165 PyObject * obj1 = 0 ;
16166 PyObject * obj2 = 0 ;
16167 PyObject * obj3 = 0 ;
16168 PyObject * obj4 = 0 ;
16169 PyObject * obj5 = 0 ;
16170 PyObject * obj6 = 0 ;
16171 PyObject * obj7 = 0 ;
16172 PyObject * obj8 = 0 ;
16173 PyObject * obj9 = 0 ;
16174 char * kwnames[] = {
16175 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16176 };
16177
16178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16180 if (!SWIG_IsOK(res1)) {
16181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16182 }
16183 arg1 = reinterpret_cast< wxWindow * >(argp1);
16184 if (obj1) {
16185 ecode2 = SWIG_AsVal_int(obj1, &val2);
16186 if (!SWIG_IsOK(ecode2)) {
16187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16188 }
16189 arg2 = static_cast< int >(val2);
16190 }
16191 if (obj2) {
093d3ff1 16192 {
554f62e9
RD
16193 arg3 = wxString_in_helper(obj2);
16194 if (arg3 == NULL) SWIG_fail;
16195 temp3 = true;
093d3ff1 16196 }
554f62e9
RD
16197 }
16198 if (obj3) {
093d3ff1 16199 {
554f62e9
RD
16200 arg4 = &temp4;
16201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16202 }
554f62e9
RD
16203 }
16204 if (obj4) {
d55e5bfc 16205 {
554f62e9
RD
16206 arg5 = &temp5;
16207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16208 }
554f62e9
RD
16209 }
16210 if (obj5) {
d55e5bfc 16211 {
554f62e9
RD
16212 if (! PySequence_Check(obj5)) {
16213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16214 SWIG_fail;
16215 }
16216 arg6 = new wxArrayString;
16217 temp6 = true;
16218 int i, len=PySequence_Length(obj5);
16219 for (i=0; i<len; i++) {
16220 PyObject* item = PySequence_GetItem(obj5, i);
16221 wxString* s = wxString_in_helper(item);
16222 if (PyErr_Occurred()) SWIG_fail;
16223 arg6->Add(*s);
16224 delete s;
16225 Py_DECREF(item);
16226 }
d55e5bfc 16227 }
554f62e9
RD
16228 }
16229 if (obj6) {
16230 ecode7 = SWIG_AsVal_int(obj6, &val7);
16231 if (!SWIG_IsOK(ecode7)) {
16232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16233 }
16234 arg7 = static_cast< int >(val7);
16235 }
16236 if (obj7) {
16237 ecode8 = SWIG_AsVal_long(obj7, &val8);
16238 if (!SWIG_IsOK(ecode8)) {
16239 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16240 }
16241 arg8 = static_cast< long >(val8);
16242 }
16243 if (obj8) {
16244 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16245 if (!SWIG_IsOK(res9)) {
16246 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16247 }
554f62e9
RD
16248 if (!argp9) {
16249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16250 }
554f62e9
RD
16251 arg9 = reinterpret_cast< wxValidator * >(argp9);
16252 }
16253 if (obj9) {
d55e5bfc 16254 {
554f62e9
RD
16255 arg10 = wxString_in_helper(obj9);
16256 if (arg10 == NULL) SWIG_fail;
16257 temp10 = true;
d55e5bfc 16258 }
554f62e9
RD
16259 }
16260 {
16261 if (!wxPyCheckForApp()) SWIG_fail;
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 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);
16264 wxPyEndAllowThreads(__tstate);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16268 {
16269 if (temp3)
16270 delete arg3;
16271 }
16272 {
16273 if (temp6) delete arg6;
16274 }
16275 {
16276 if (temp10)
16277 delete arg10;
16278 }
16279 return resultobj;
16280fail:
16281 {
16282 if (temp3)
16283 delete arg3;
16284 }
16285 {
16286 if (temp6) delete arg6;
16287 }
16288 {
16289 if (temp10)
16290 delete arg10;
16291 }
16292 return NULL;
d55e5bfc
RD
16293}
16294
16295
554f62e9
RD
16296SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16297 PyObject *resultobj = 0;
16298 wxRadioBox *result = 0 ;
16299
16300 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16301 {
16302 if (!wxPyCheckForApp()) SWIG_fail;
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (wxRadioBox *)new wxRadioBox();
16305 wxPyEndAllowThreads(__tstate);
16306 if (PyErr_Occurred()) SWIG_fail;
16307 }
16308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16309 return resultobj;
16310fail:
16311 return NULL;
16312}
16313
16314
16315SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16316 PyObject *resultobj = 0;
16317 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16318 wxWindow *arg2 = (wxWindow *) 0 ;
16319 int arg3 = (int) -1 ;
16320 wxString const &arg4_defvalue = wxPyEmptyString ;
16321 wxString *arg4 = (wxString *) &arg4_defvalue ;
16322 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16323 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16324 wxSize const &arg6_defvalue = wxDefaultSize ;
16325 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16326 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16327 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16328 int arg8 = (int) 0 ;
16329 long arg9 = (long) wxRA_HORIZONTAL ;
16330 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16331 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16332 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16333 wxString *arg11 = (wxString *) &arg11_defvalue ;
16334 bool result;
16335 void *argp1 = 0 ;
16336 int res1 = 0 ;
16337 void *argp2 = 0 ;
16338 int res2 = 0 ;
16339 int val3 ;
16340 int ecode3 = 0 ;
16341 bool temp4 = false ;
16342 wxPoint temp5 ;
16343 wxSize temp6 ;
16344 bool temp7 = false ;
16345 int val8 ;
16346 int ecode8 = 0 ;
16347 long val9 ;
16348 int ecode9 = 0 ;
16349 void *argp10 = 0 ;
16350 int res10 = 0 ;
16351 bool temp11 = false ;
16352 PyObject * obj0 = 0 ;
16353 PyObject * obj1 = 0 ;
16354 PyObject * obj2 = 0 ;
16355 PyObject * obj3 = 0 ;
16356 PyObject * obj4 = 0 ;
16357 PyObject * obj5 = 0 ;
16358 PyObject * obj6 = 0 ;
16359 PyObject * obj7 = 0 ;
16360 PyObject * obj8 = 0 ;
16361 PyObject * obj9 = 0 ;
16362 PyObject * obj10 = 0 ;
16363 char * kwnames[] = {
16364 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16365 };
16366
16367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16369 if (!SWIG_IsOK(res1)) {
16370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16371 }
16372 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16374 if (!SWIG_IsOK(res2)) {
16375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16376 }
16377 arg2 = reinterpret_cast< wxWindow * >(argp2);
16378 if (obj2) {
16379 ecode3 = SWIG_AsVal_int(obj2, &val3);
16380 if (!SWIG_IsOK(ecode3)) {
16381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16382 }
16383 arg3 = static_cast< int >(val3);
16384 }
16385 if (obj3) {
093d3ff1 16386 {
554f62e9
RD
16387 arg4 = wxString_in_helper(obj3);
16388 if (arg4 == NULL) SWIG_fail;
16389 temp4 = true;
093d3ff1 16390 }
554f62e9
RD
16391 }
16392 if (obj4) {
d55e5bfc 16393 {
554f62e9
RD
16394 arg5 = &temp5;
16395 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16396 }
554f62e9
RD
16397 }
16398 if (obj5) {
093d3ff1 16399 {
554f62e9
RD
16400 arg6 = &temp6;
16401 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 16402 }
554f62e9
RD
16403 }
16404 if (obj6) {
093d3ff1 16405 {
554f62e9
RD
16406 if (! PySequence_Check(obj6)) {
16407 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16408 SWIG_fail;
16409 }
16410 arg7 = new wxArrayString;
16411 temp7 = true;
16412 int i, len=PySequence_Length(obj6);
16413 for (i=0; i<len; i++) {
16414 PyObject* item = PySequence_GetItem(obj6, i);
16415 wxString* s = wxString_in_helper(item);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 arg7->Add(*s);
16418 delete s;
16419 Py_DECREF(item);
16420 }
093d3ff1 16421 }
554f62e9
RD
16422 }
16423 if (obj7) {
16424 ecode8 = SWIG_AsVal_int(obj7, &val8);
16425 if (!SWIG_IsOK(ecode8)) {
16426 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16427 }
16428 arg8 = static_cast< int >(val8);
16429 }
16430 if (obj8) {
16431 ecode9 = SWIG_AsVal_long(obj8, &val9);
16432 if (!SWIG_IsOK(ecode9)) {
16433 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16434 }
16435 arg9 = static_cast< long >(val9);
16436 }
16437 if (obj9) {
16438 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16439 if (!SWIG_IsOK(res10)) {
16440 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 16441 }
554f62e9
RD
16442 if (!argp10) {
16443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 16444 }
554f62e9
RD
16445 arg10 = reinterpret_cast< wxValidator * >(argp10);
16446 }
16447 if (obj10) {
d55e5bfc 16448 {
554f62e9
RD
16449 arg11 = wxString_in_helper(obj10);
16450 if (arg11 == NULL) SWIG_fail;
16451 temp11 = true;
d55e5bfc 16452 }
554f62e9
RD
16453 }
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 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);
16457 wxPyEndAllowThreads(__tstate);
16458 if (PyErr_Occurred()) SWIG_fail;
16459 }
16460 {
16461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16462 }
16463 {
16464 if (temp4)
16465 delete arg4;
16466 }
16467 {
16468 if (temp7) delete arg7;
16469 }
16470 {
16471 if (temp11)
16472 delete arg11;
16473 }
16474 return resultobj;
16475fail:
16476 {
16477 if (temp4)
16478 delete arg4;
16479 }
16480 {
16481 if (temp7) delete arg7;
16482 }
16483 {
16484 if (temp11)
16485 delete arg11;
16486 }
16487 return NULL;
16488}
16489
16490
16491SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16492 PyObject *resultobj = 0;
16493 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16494 int arg2 ;
16495 void *argp1 = 0 ;
16496 int res1 = 0 ;
16497 int val2 ;
16498 int ecode2 = 0 ;
16499 PyObject * obj0 = 0 ;
16500 PyObject * obj1 = 0 ;
16501 char * kwnames[] = {
16502 (char *) "self",(char *) "n", NULL
16503 };
16504
16505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16507 if (!SWIG_IsOK(res1)) {
16508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16509 }
16510 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16511 ecode2 = SWIG_AsVal_int(obj1, &val2);
16512 if (!SWIG_IsOK(ecode2)) {
16513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16514 }
16515 arg2 = static_cast< int >(val2);
16516 {
16517 PyThreadState* __tstate = wxPyBeginAllowThreads();
16518 (arg1)->SetSelection(arg2);
16519 wxPyEndAllowThreads(__tstate);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 resultobj = SWIG_Py_Void();
16523 return resultobj;
16524fail:
16525 return NULL;
d55e5bfc
RD
16526}
16527
16528
554f62e9
RD
16529SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16530 PyObject *resultobj = 0;
16531 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16532 int result;
16533 void *argp1 = 0 ;
16534 int res1 = 0 ;
16535 PyObject *swig_obj[1] ;
16536
16537 if (!args) SWIG_fail;
16538 swig_obj[0] = args;
16539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16540 if (!SWIG_IsOK(res1)) {
16541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16542 }
16543 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16544 {
16545 PyThreadState* __tstate = wxPyBeginAllowThreads();
16546 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 resultobj = SWIG_From_int(static_cast< int >(result));
16551 return resultobj;
16552fail:
16553 return NULL;
4896ac9e
RD
16554}
16555
16556
554f62e9
RD
16557SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16558 PyObject *resultobj = 0;
16559 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16560 wxString result;
16561 void *argp1 = 0 ;
16562 int res1 = 0 ;
16563 PyObject *swig_obj[1] ;
16564
16565 if (!args) SWIG_fail;
16566 swig_obj[0] = args;
16567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16568 if (!SWIG_IsOK(res1)) {
16569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16570 }
16571 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 {
16579#if wxUSE_UNICODE
16580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16581#else
16582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16583#endif
16584 }
16585 return resultobj;
16586fail:
16587 return NULL;
16588}
16589
16590
16591SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16592 PyObject *resultobj = 0;
16593 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16594 wxString *arg2 = 0 ;
16595 bool result;
16596 void *argp1 = 0 ;
16597 int res1 = 0 ;
16598 bool temp2 = false ;
16599 PyObject * obj0 = 0 ;
16600 PyObject * obj1 = 0 ;
16601 char * kwnames[] = {
16602 (char *) "self",(char *) "s", NULL
16603 };
16604
16605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16607 if (!SWIG_IsOK(res1)) {
16608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16609 }
16610 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16611 {
16612 arg2 = wxString_in_helper(obj1);
16613 if (arg2 == NULL) SWIG_fail;
16614 temp2 = true;
16615 }
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 {
16623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16624 }
16625 {
16626 if (temp2)
16627 delete arg2;
16628 }
16629 return resultobj;
16630fail:
16631 {
16632 if (temp2)
16633 delete arg2;
16634 }
16635 return NULL;
d55e5bfc
RD
16636}
16637
16638
554f62e9
RD
16639SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16640 PyObject *resultobj = 0;
16641 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16642 size_t result;
554f62e9
RD
16643 void *argp1 = 0 ;
16644 int res1 = 0 ;
16645 PyObject *swig_obj[1] ;
16646
16647 if (!args) SWIG_fail;
16648 swig_obj[0] = args;
16649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16650 if (!SWIG_IsOK(res1)) {
16651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16652 }
16653 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16654 {
16655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16656 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
554f62e9
RD
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
1c71765a 16660 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
554f62e9
RD
16661 return resultobj;
16662fail:
16663 return NULL;
16664}
16665
16666
16667SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16668 PyObject *resultobj = 0;
16669 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16670 wxString *arg2 = 0 ;
16671 int result;
16672 void *argp1 = 0 ;
16673 int res1 = 0 ;
16674 bool temp2 = false ;
16675 PyObject * obj0 = 0 ;
16676 PyObject * obj1 = 0 ;
16677 char * kwnames[] = {
16678 (char *) "self",(char *) "s", NULL
16679 };
16680
16681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16683 if (!SWIG_IsOK(res1)) {
16684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16685 }
16686 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16687 {
16688 arg2 = wxString_in_helper(obj1);
16689 if (arg2 == NULL) SWIG_fail;
16690 temp2 = true;
16691 }
16692 {
16693 PyThreadState* __tstate = wxPyBeginAllowThreads();
16694 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16695 wxPyEndAllowThreads(__tstate);
16696 if (PyErr_Occurred()) SWIG_fail;
16697 }
16698 resultobj = SWIG_From_int(static_cast< int >(result));
16699 {
16700 if (temp2)
16701 delete arg2;
16702 }
16703 return resultobj;
16704fail:
16705 {
16706 if (temp2)
16707 delete arg2;
16708 }
16709 return NULL;
16710}
16711
16712
16713SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16714 PyObject *resultobj = 0;
16715 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16716 int arg2 ;
16717 wxString result;
16718 void *argp1 = 0 ;
16719 int res1 = 0 ;
16720 int val2 ;
16721 int ecode2 = 0 ;
16722 PyObject * obj0 = 0 ;
16723 PyObject * obj1 = 0 ;
16724 char * kwnames[] = {
16725 (char *) "self",(char *) "n", NULL
16726 };
16727
16728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16730 if (!SWIG_IsOK(res1)) {
16731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16732 }
16733 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16734 ecode2 = SWIG_AsVal_int(obj1, &val2);
16735 if (!SWIG_IsOK(ecode2)) {
16736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16737 }
16738 arg2 = static_cast< int >(val2);
16739 {
16740 PyThreadState* __tstate = wxPyBeginAllowThreads();
16741 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16742 wxPyEndAllowThreads(__tstate);
16743 if (PyErr_Occurred()) SWIG_fail;
16744 }
16745 {
16746#if wxUSE_UNICODE
16747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16748#else
16749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16750#endif
16751 }
16752 return resultobj;
16753fail:
16754 return NULL;
16755}
16756
16757
16758SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj = 0;
16760 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16761 int arg2 ;
16762 wxString *arg3 = 0 ;
16763 void *argp1 = 0 ;
16764 int res1 = 0 ;
16765 int val2 ;
16766 int ecode2 = 0 ;
16767 bool temp3 = false ;
16768 PyObject * obj0 = 0 ;
16769 PyObject * obj1 = 0 ;
16770 PyObject * obj2 = 0 ;
16771 char * kwnames[] = {
16772 (char *) "self",(char *) "n",(char *) "label", NULL
16773 };
16774
16775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16777 if (!SWIG_IsOK(res1)) {
16778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16779 }
16780 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16781 ecode2 = SWIG_AsVal_int(obj1, &val2);
16782 if (!SWIG_IsOK(ecode2)) {
16783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16784 }
16785 arg2 = static_cast< int >(val2);
16786 {
16787 arg3 = wxString_in_helper(obj2);
16788 if (arg3 == NULL) SWIG_fail;
16789 temp3 = true;
16790 }
16791 {
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 (arg1)->SetString(arg2,(wxString const &)*arg3);
16794 wxPyEndAllowThreads(__tstate);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 resultobj = SWIG_Py_Void();
16798 {
16799 if (temp3)
16800 delete arg3;
16801 }
16802 return resultobj;
16803fail:
16804 {
16805 if (temp3)
16806 delete arg3;
16807 }
16808 return NULL;
16809}
16810
16811
16812SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16813 PyObject *resultobj = 0;
16814 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16815 unsigned int arg2 ;
554f62e9
RD
16816 bool arg3 = (bool) true ;
16817 void *argp1 = 0 ;
16818 int res1 = 0 ;
50f151d7 16819 unsigned int val2 ;
554f62e9
RD
16820 int ecode2 = 0 ;
16821 bool val3 ;
16822 int ecode3 = 0 ;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 PyObject * obj2 = 0 ;
16826 char * kwnames[] = {
16827 (char *) "self",(char *) "n",(char *) "enable", NULL
16828 };
16829
16830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16832 if (!SWIG_IsOK(res1)) {
16833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16834 }
16835 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16836 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16837 if (!SWIG_IsOK(ecode2)) {
50f151d7 16838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16839 }
50f151d7 16840 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16841 if (obj2) {
16842 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16843 if (!SWIG_IsOK(ecode3)) {
16844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16845 }
16846 arg3 = static_cast< bool >(val3);
16847 }
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 (arg1)->Enable(arg2,arg3);
16851 wxPyEndAllowThreads(__tstate);
16852 if (PyErr_Occurred()) SWIG_fail;
16853 }
16854 resultobj = SWIG_Py_Void();
16855 return resultobj;
16856fail:
16857 return NULL;
16858}
16859
16860
16861SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16862 PyObject *resultobj = 0;
16863 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16864 unsigned int arg2 ;
554f62e9
RD
16865 bool arg3 = (bool) true ;
16866 void *argp1 = 0 ;
16867 int res1 = 0 ;
50f151d7 16868 unsigned int val2 ;
554f62e9
RD
16869 int ecode2 = 0 ;
16870 bool val3 ;
16871 int ecode3 = 0 ;
16872 PyObject * obj0 = 0 ;
16873 PyObject * obj1 = 0 ;
16874 PyObject * obj2 = 0 ;
16875 char * kwnames[] = {
16876 (char *) "self",(char *) "n",(char *) "show", NULL
16877 };
16878
16879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16881 if (!SWIG_IsOK(res1)) {
16882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16883 }
16884 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16885 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16886 if (!SWIG_IsOK(ecode2)) {
50f151d7 16887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16888 }
50f151d7 16889 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16890 if (obj2) {
16891 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16892 if (!SWIG_IsOK(ecode3)) {
16893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16894 }
16895 arg3 = static_cast< bool >(val3);
16896 }
16897 {
16898 PyThreadState* __tstate = wxPyBeginAllowThreads();
16899 (arg1)->Show(arg2,arg3);
16900 wxPyEndAllowThreads(__tstate);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 resultobj = SWIG_Py_Void();
16904 return resultobj;
16905fail:
16906 return NULL;
d55e5bfc
RD
16907}
16908
16909
50f151d7
RD
16910SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16913 unsigned int arg2 ;
16914 bool result;
16915 void *argp1 = 0 ;
16916 int res1 = 0 ;
16917 unsigned int val2 ;
16918 int ecode2 = 0 ;
16919 PyObject * obj0 = 0 ;
16920 PyObject * obj1 = 0 ;
16921 char * kwnames[] = {
16922 (char *) "self",(char *) "n", NULL
16923 };
16924
16925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16927 if (!SWIG_IsOK(res1)) {
16928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16929 }
16930 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16931 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16932 if (!SWIG_IsOK(ecode2)) {
16933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16934 }
16935 arg2 = static_cast< unsigned int >(val2);
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
16938 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 {
16943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16944 }
16945 return resultobj;
16946fail:
16947 return NULL;
16948}
16949
16950
16951SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16952 PyObject *resultobj = 0;
16953 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16954 unsigned int arg2 ;
16955 bool result;
16956 void *argp1 = 0 ;
16957 int res1 = 0 ;
16958 unsigned int val2 ;
16959 int ecode2 = 0 ;
16960 PyObject * obj0 = 0 ;
16961 PyObject * obj1 = 0 ;
16962 char * kwnames[] = {
16963 (char *) "self",(char *) "n", NULL
16964 };
16965
16966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16968 if (!SWIG_IsOK(res1)) {
16969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16970 }
16971 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16972 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16973 if (!SWIG_IsOK(ecode2)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16975 }
16976 arg2 = static_cast< unsigned int >(val2);
16977 {
16978 PyThreadState* __tstate = wxPyBeginAllowThreads();
16979 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16980 wxPyEndAllowThreads(__tstate);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 {
16984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16985 }
16986 return resultobj;
16987fail:
16988 return NULL;
16989}
16990
16991
554f62e9
RD
16992SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16993 PyObject *resultobj = 0;
16994 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16995 unsigned int result;
554f62e9
RD
16996 void *argp1 = 0 ;
16997 int res1 = 0 ;
16998 PyObject *swig_obj[1] ;
16999
17000 if (!args) SWIG_fail;
17001 swig_obj[0] = args;
17002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17003 if (!SWIG_IsOK(res1)) {
17004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17005 }
17006 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17007 {
17008 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17009 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
554f62e9
RD
17010 wxPyEndAllowThreads(__tstate);
17011 if (PyErr_Occurred()) SWIG_fail;
17012 }
50f151d7 17013 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
17014 return resultobj;
17015fail:
17016 return NULL;
d55e5bfc
RD
17017}
17018
17019
554f62e9
RD
17020SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17021 PyObject *resultobj = 0;
17022 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 17023 unsigned int result;
554f62e9
RD
17024 void *argp1 = 0 ;
17025 int res1 = 0 ;
17026 PyObject *swig_obj[1] ;
17027
17028 if (!args) SWIG_fail;
17029 swig_obj[0] = args;
17030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17031 if (!SWIG_IsOK(res1)) {
17032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17033 }
17034 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17037 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
554f62e9
RD
17038 wxPyEndAllowThreads(__tstate);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 }
50f151d7 17041 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
17042 return resultobj;
17043fail:
17044 return NULL;
17045}
17046
17047
17048SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17049 PyObject *resultobj = 0;
17050 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17051 int arg2 ;
17052 wxDirection arg3 ;
17053 long arg4 ;
17054 int result;
17055 void *argp1 = 0 ;
17056 int res1 = 0 ;
17057 int val2 ;
17058 int ecode2 = 0 ;
17059 int val3 ;
17060 int ecode3 = 0 ;
17061 long val4 ;
17062 int ecode4 = 0 ;
17063 PyObject * obj0 = 0 ;
17064 PyObject * obj1 = 0 ;
17065 PyObject * obj2 = 0 ;
17066 PyObject * obj3 = 0 ;
17067 char * kwnames[] = {
17068 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17069 };
17070
17071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17073 if (!SWIG_IsOK(res1)) {
17074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17075 }
17076 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17077 ecode2 = SWIG_AsVal_int(obj1, &val2);
17078 if (!SWIG_IsOK(ecode2)) {
17079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17080 }
17081 arg2 = static_cast< int >(val2);
17082 ecode3 = SWIG_AsVal_int(obj2, &val3);
17083 if (!SWIG_IsOK(ecode3)) {
17084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17085 }
17086 arg3 = static_cast< wxDirection >(val3);
17087 ecode4 = SWIG_AsVal_long(obj3, &val4);
17088 if (!SWIG_IsOK(ecode4)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17090 }
17091 arg4 = static_cast< long >(val4);
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 resultobj = SWIG_From_int(static_cast< int >(result));
17099 return resultobj;
17100fail:
17101 return NULL;
17102}
17103
17104
f460c29d
RD
17105SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17106 PyObject *resultobj = 0;
17107 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17108 unsigned int arg2 ;
17109 wxString *arg3 = 0 ;
17110 void *argp1 = 0 ;
17111 int res1 = 0 ;
17112 unsigned int val2 ;
17113 int ecode2 = 0 ;
17114 bool temp3 = false ;
17115 PyObject * obj0 = 0 ;
17116 PyObject * obj1 = 0 ;
17117 PyObject * obj2 = 0 ;
17118 char * kwnames[] = {
17119 (char *) "self",(char *) "item",(char *) "text", NULL
17120 };
17121
17122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17124 if (!SWIG_IsOK(res1)) {
17125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17126 }
17127 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17128 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17129 if (!SWIG_IsOK(ecode2)) {
17130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17131 }
17132 arg2 = static_cast< unsigned int >(val2);
17133 {
17134 arg3 = wxString_in_helper(obj2);
17135 if (arg3 == NULL) SWIG_fail;
17136 temp3 = true;
17137 }
17138 {
17139 PyThreadState* __tstate = wxPyBeginAllowThreads();
17140 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 resultobj = SWIG_Py_Void();
17145 {
17146 if (temp3)
17147 delete arg3;
17148 }
17149 return resultobj;
17150fail:
17151 {
17152 if (temp3)
17153 delete arg3;
17154 }
17155 return NULL;
17156}
17157
17158
17159SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj = 0;
17161 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17162 unsigned int arg2 ;
17163 wxToolTip *result = 0 ;
17164 void *argp1 = 0 ;
17165 int res1 = 0 ;
17166 unsigned int val2 ;
17167 int ecode2 = 0 ;
17168 PyObject * obj0 = 0 ;
17169 PyObject * obj1 = 0 ;
17170 char * kwnames[] = {
17171 (char *) "self",(char *) "item", NULL
17172 };
17173
17174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17176 if (!SWIG_IsOK(res1)) {
17177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17178 }
17179 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17180 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17181 if (!SWIG_IsOK(ecode2)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17183 }
17184 arg2 = static_cast< unsigned int >(val2);
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192 resultobj = wxPyMake_wxObject(result, (bool)0);
17193 }
17194 return resultobj;
17195fail:
17196 return NULL;
17197}
17198
17199
b850e7f3
RD
17200SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17201 PyObject *resultobj = 0;
17202 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17203 unsigned int arg2 ;
17204 wxString *arg3 = 0 ;
17205 void *argp1 = 0 ;
17206 int res1 = 0 ;
17207 unsigned int val2 ;
17208 int ecode2 = 0 ;
17209 bool temp3 = false ;
17210 PyObject * obj0 = 0 ;
17211 PyObject * obj1 = 0 ;
17212 PyObject * obj2 = 0 ;
17213 char * kwnames[] = {
17214 (char *) "self",(char *) "n",(char *) "helpText", NULL
17215 };
17216
17217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17219 if (!SWIG_IsOK(res1)) {
17220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17221 }
17222 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17223 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17224 if (!SWIG_IsOK(ecode2)) {
17225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17226 }
17227 arg2 = static_cast< unsigned int >(val2);
17228 {
17229 arg3 = wxString_in_helper(obj2);
17230 if (arg3 == NULL) SWIG_fail;
17231 temp3 = true;
17232 }
17233 {
17234 PyThreadState* __tstate = wxPyBeginAllowThreads();
17235 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17236 wxPyEndAllowThreads(__tstate);
17237 if (PyErr_Occurred()) SWIG_fail;
17238 }
17239 resultobj = SWIG_Py_Void();
17240 {
17241 if (temp3)
17242 delete arg3;
17243 }
17244 return resultobj;
17245fail:
17246 {
17247 if (temp3)
17248 delete arg3;
17249 }
17250 return NULL;
17251}
17252
17253
17254SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj = 0;
17256 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17257 unsigned int arg2 ;
17258 wxString result;
17259 void *argp1 = 0 ;
17260 int res1 = 0 ;
17261 unsigned int val2 ;
17262 int ecode2 = 0 ;
17263 PyObject * obj0 = 0 ;
17264 PyObject * obj1 = 0 ;
17265 char * kwnames[] = {
17266 (char *) "self",(char *) "n", NULL
17267 };
17268
17269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17271 if (!SWIG_IsOK(res1)) {
17272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17273 }
17274 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17275 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17276 if (!SWIG_IsOK(ecode2)) {
17277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17278 }
17279 arg2 = static_cast< unsigned int >(val2);
17280 {
17281 PyThreadState* __tstate = wxPyBeginAllowThreads();
17282 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 {
17287#if wxUSE_UNICODE
17288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17289#else
17290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17291#endif
17292 }
17293 return resultobj;
17294fail:
17295 return NULL;
17296}
17297
17298
554f62e9
RD
17299SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj = 0;
17301 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17302 SwigValueWrapper<wxVisualAttributes > result;
17303 int val1 ;
17304 int ecode1 = 0 ;
17305 PyObject * obj0 = 0 ;
17306 char * kwnames[] = {
17307 (char *) "variant", NULL
17308 };
17309
17310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17311 if (obj0) {
17312 ecode1 = SWIG_AsVal_int(obj0, &val1);
17313 if (!SWIG_IsOK(ecode1)) {
17314 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17315 }
17316 arg1 = static_cast< wxWindowVariant >(val1);
17317 }
17318 {
17319 if (!wxPyCheckForApp()) SWIG_fail;
17320 PyThreadState* __tstate = wxPyBeginAllowThreads();
17321 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17326 return resultobj;
17327fail:
17328 return NULL;
17329}
17330
17331
17332SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17333 PyObject *obj;
17334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17335 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17336 return SWIG_Py_Void();
17337}
17338
17339SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17340 return SWIG_Python_InitShadowInstance(args);
17341}
17342
17343SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17344 PyObject *resultobj = 0;
17345 wxWindow *arg1 = (wxWindow *) 0 ;
17346 int arg2 = (int) -1 ;
17347 wxString const &arg3_defvalue = wxPyEmptyString ;
17348 wxString *arg3 = (wxString *) &arg3_defvalue ;
17349 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17350 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17351 wxSize const &arg5_defvalue = wxDefaultSize ;
17352 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17353 long arg6 = (long) 0 ;
17354 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17355 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17356 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17357 wxString *arg8 = (wxString *) &arg8_defvalue ;
17358 wxRadioButton *result = 0 ;
17359 void *argp1 = 0 ;
17360 int res1 = 0 ;
17361 int val2 ;
17362 int ecode2 = 0 ;
17363 bool temp3 = false ;
17364 wxPoint temp4 ;
17365 wxSize temp5 ;
17366 long val6 ;
17367 int ecode6 = 0 ;
17368 void *argp7 = 0 ;
17369 int res7 = 0 ;
17370 bool temp8 = false ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373 PyObject * obj2 = 0 ;
17374 PyObject * obj3 = 0 ;
17375 PyObject * obj4 = 0 ;
17376 PyObject * obj5 = 0 ;
17377 PyObject * obj6 = 0 ;
17378 PyObject * obj7 = 0 ;
17379 char * kwnames[] = {
17380 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17381 };
17382
17383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17385 if (!SWIG_IsOK(res1)) {
17386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17387 }
17388 arg1 = reinterpret_cast< wxWindow * >(argp1);
17389 if (obj1) {
17390 ecode2 = SWIG_AsVal_int(obj1, &val2);
17391 if (!SWIG_IsOK(ecode2)) {
17392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17393 }
17394 arg2 = static_cast< int >(val2);
17395 }
17396 if (obj2) {
d55e5bfc 17397 {
554f62e9
RD
17398 arg3 = wxString_in_helper(obj2);
17399 if (arg3 == NULL) SWIG_fail;
17400 temp3 = true;
d55e5bfc 17401 }
554f62e9
RD
17402 }
17403 if (obj3) {
d55e5bfc 17404 {
554f62e9
RD
17405 arg4 = &temp4;
17406 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17407 }
554f62e9
RD
17408 }
17409 if (obj4) {
d55e5bfc 17410 {
554f62e9
RD
17411 arg5 = &temp5;
17412 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17413 }
554f62e9
RD
17414 }
17415 if (obj5) {
17416 ecode6 = SWIG_AsVal_long(obj5, &val6);
17417 if (!SWIG_IsOK(ecode6)) {
17418 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17419 }
17420 arg6 = static_cast< long >(val6);
17421 }
17422 if (obj6) {
17423 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17424 if (!SWIG_IsOK(res7)) {
17425 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17426 }
554f62e9
RD
17427 if (!argp7) {
17428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17429 }
554f62e9
RD
17430 arg7 = reinterpret_cast< wxValidator * >(argp7);
17431 }
17432 if (obj7) {
d55e5bfc 17433 {
554f62e9
RD
17434 arg8 = wxString_in_helper(obj7);
17435 if (arg8 == NULL) SWIG_fail;
17436 temp8 = true;
d55e5bfc 17437 }
554f62e9
RD
17438 }
17439 {
17440 if (!wxPyCheckForApp()) SWIG_fail;
17441 PyThreadState* __tstate = wxPyBeginAllowThreads();
17442 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17443 wxPyEndAllowThreads(__tstate);
17444 if (PyErr_Occurred()) SWIG_fail;
17445 }
17446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17447 {
17448 if (temp3)
17449 delete arg3;
17450 }
17451 {
17452 if (temp8)
17453 delete arg8;
17454 }
17455 return resultobj;
17456fail:
17457 {
17458 if (temp3)
17459 delete arg3;
17460 }
17461 {
17462 if (temp8)
17463 delete arg8;
17464 }
17465 return NULL;
d55e5bfc
RD
17466}
17467
17468
554f62e9
RD
17469SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17470 PyObject *resultobj = 0;
17471 wxRadioButton *result = 0 ;
17472
17473 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17474 {
17475 if (!wxPyCheckForApp()) SWIG_fail;
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = (wxRadioButton *)new wxRadioButton();
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17482 return resultobj;
17483fail:
17484 return NULL;
17485}
17486
17487
17488SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17489 PyObject *resultobj = 0;
17490 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17491 wxWindow *arg2 = (wxWindow *) 0 ;
17492 int arg3 = (int) -1 ;
17493 wxString const &arg4_defvalue = wxPyEmptyString ;
17494 wxString *arg4 = (wxString *) &arg4_defvalue ;
17495 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17496 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17497 wxSize const &arg6_defvalue = wxDefaultSize ;
17498 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17499 long arg7 = (long) 0 ;
17500 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17501 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17502 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17503 wxString *arg9 = (wxString *) &arg9_defvalue ;
17504 bool result;
17505 void *argp1 = 0 ;
17506 int res1 = 0 ;
17507 void *argp2 = 0 ;
17508 int res2 = 0 ;
17509 int val3 ;
17510 int ecode3 = 0 ;
17511 bool temp4 = false ;
17512 wxPoint temp5 ;
17513 wxSize temp6 ;
17514 long val7 ;
17515 int ecode7 = 0 ;
17516 void *argp8 = 0 ;
17517 int res8 = 0 ;
17518 bool temp9 = false ;
17519 PyObject * obj0 = 0 ;
17520 PyObject * obj1 = 0 ;
17521 PyObject * obj2 = 0 ;
17522 PyObject * obj3 = 0 ;
17523 PyObject * obj4 = 0 ;
17524 PyObject * obj5 = 0 ;
17525 PyObject * obj6 = 0 ;
17526 PyObject * obj7 = 0 ;
17527 PyObject * obj8 = 0 ;
17528 char * kwnames[] = {
17529 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17530 };
17531
17532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17534 if (!SWIG_IsOK(res1)) {
17535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17536 }
17537 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17539 if (!SWIG_IsOK(res2)) {
17540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17541 }
17542 arg2 = reinterpret_cast< wxWindow * >(argp2);
17543 if (obj2) {
17544 ecode3 = SWIG_AsVal_int(obj2, &val3);
17545 if (!SWIG_IsOK(ecode3)) {
17546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17547 }
17548 arg3 = static_cast< int >(val3);
17549 }
17550 if (obj3) {
d55e5bfc 17551 {
554f62e9
RD
17552 arg4 = wxString_in_helper(obj3);
17553 if (arg4 == NULL) SWIG_fail;
17554 temp4 = true;
d55e5bfc 17555 }
554f62e9
RD
17556 }
17557 if (obj4) {
d55e5bfc 17558 {
554f62e9
RD
17559 arg5 = &temp5;
17560 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17561 }
554f62e9
RD
17562 }
17563 if (obj5) {
d55e5bfc 17564 {
554f62e9
RD
17565 arg6 = &temp6;
17566 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17567 }
554f62e9
RD
17568 }
17569 if (obj6) {
17570 ecode7 = SWIG_AsVal_long(obj6, &val7);
17571 if (!SWIG_IsOK(ecode7)) {
17572 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17573 }
17574 arg7 = static_cast< long >(val7);
17575 }
17576 if (obj7) {
17577 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17578 if (!SWIG_IsOK(res8)) {
17579 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17580 }
17581 if (!argp8) {
17582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17583 }
554f62e9
RD
17584 arg8 = reinterpret_cast< wxValidator * >(argp8);
17585 }
17586 if (obj8) {
d55e5bfc 17587 {
554f62e9
RD
17588 arg9 = wxString_in_helper(obj8);
17589 if (arg9 == NULL) SWIG_fail;
17590 temp9 = true;
d55e5bfc 17591 }
554f62e9
RD
17592 }
17593 {
17594 PyThreadState* __tstate = wxPyBeginAllowThreads();
17595 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 {
17600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17601 }
17602 {
17603 if (temp4)
17604 delete arg4;
17605 }
17606 {
17607 if (temp9)
17608 delete arg9;
17609 }
17610 return resultobj;
17611fail:
17612 {
17613 if (temp4)
17614 delete arg4;
17615 }
17616 {
17617 if (temp9)
17618 delete arg9;
17619 }
17620 return NULL;
d55e5bfc
RD
17621}
17622
17623
554f62e9
RD
17624SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17625 PyObject *resultobj = 0;
17626 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17627 bool result;
17628 void *argp1 = 0 ;
17629 int res1 = 0 ;
17630 PyObject *swig_obj[1] ;
17631
17632 if (!args) SWIG_fail;
17633 swig_obj[0] = args;
17634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17635 if (!SWIG_IsOK(res1)) {
17636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17637 }
17638 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 result = (bool)(arg1)->GetValue();
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 {
17646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17647 }
17648 return resultobj;
17649fail:
17650 return NULL;
17651}
17652
17653
17654SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17655 PyObject *resultobj = 0;
17656 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17657 bool arg2 ;
17658 void *argp1 = 0 ;
17659 int res1 = 0 ;
17660 bool val2 ;
17661 int ecode2 = 0 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 char * kwnames[] = {
17665 (char *) "self",(char *) "value", NULL
17666 };
17667
17668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17670 if (!SWIG_IsOK(res1)) {
17671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17672 }
17673 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17674 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17675 if (!SWIG_IsOK(ecode2)) {
17676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17677 }
17678 arg2 = static_cast< bool >(val2);
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 (arg1)->SetValue(arg2);
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 resultobj = SWIG_Py_Void();
17686 return resultobj;
17687fail:
17688 return NULL;
17689}
17690
17691
17692SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17693 PyObject *resultobj = 0;
17694 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17695 SwigValueWrapper<wxVisualAttributes > result;
17696 int val1 ;
17697 int ecode1 = 0 ;
17698 PyObject * obj0 = 0 ;
17699 char * kwnames[] = {
17700 (char *) "variant", NULL
17701 };
17702
17703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17704 if (obj0) {
17705 ecode1 = SWIG_AsVal_int(obj0, &val1);
17706 if (!SWIG_IsOK(ecode1)) {
17707 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17708 }
17709 arg1 = static_cast< wxWindowVariant >(val1);
17710 }
17711 {
17712 if (!wxPyCheckForApp()) SWIG_fail;
17713 PyThreadState* __tstate = wxPyBeginAllowThreads();
17714 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17715 wxPyEndAllowThreads(__tstate);
17716 if (PyErr_Occurred()) SWIG_fail;
17717 }
17718 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17719 return resultobj;
17720fail:
17721 return NULL;
d55e5bfc
RD
17722}
17723
17724
554f62e9
RD
17725SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17726 PyObject *obj;
17727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17728 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17729 return SWIG_Py_Void();
d55e5bfc
RD
17730}
17731
554f62e9
RD
17732SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17733 return SWIG_Python_InitShadowInstance(args);
17734}
d55e5bfc 17735
554f62e9
RD
17736SWIGINTERN int SliderNameStr_set(PyObject *) {
17737 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17738 return 1;
d55e5bfc
RD
17739}
17740
17741
554f62e9
RD
17742SWIGINTERN PyObject *SliderNameStr_get(void) {
17743 PyObject *pyobj = 0;
17744
17745 {
17746#if wxUSE_UNICODE
17747 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17748#else
17749 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17750#endif
17751 }
17752 return pyobj;
17753}
17754
17755
17756SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17757 PyObject *resultobj = 0;
17758 wxWindow *arg1 = (wxWindow *) 0 ;
17759 int arg2 = (int) -1 ;
17760 int arg3 = (int) 0 ;
17761 int arg4 = (int) 0 ;
17762 int arg5 = (int) 100 ;
17763 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17764 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17765 wxSize const &arg7_defvalue = wxDefaultSize ;
17766 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17767 long arg8 = (long) wxSL_HORIZONTAL ;
17768 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17769 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17770 wxString const &arg10_defvalue = wxPySliderNameStr ;
17771 wxString *arg10 = (wxString *) &arg10_defvalue ;
17772 wxSlider *result = 0 ;
17773 void *argp1 = 0 ;
17774 int res1 = 0 ;
17775 int val2 ;
17776 int ecode2 = 0 ;
17777 int val3 ;
17778 int ecode3 = 0 ;
17779 int val4 ;
17780 int ecode4 = 0 ;
17781 int val5 ;
17782 int ecode5 = 0 ;
17783 wxPoint temp6 ;
17784 wxSize temp7 ;
17785 long val8 ;
17786 int ecode8 = 0 ;
17787 void *argp9 = 0 ;
17788 int res9 = 0 ;
17789 bool temp10 = false ;
17790 PyObject * obj0 = 0 ;
17791 PyObject * obj1 = 0 ;
17792 PyObject * obj2 = 0 ;
17793 PyObject * obj3 = 0 ;
17794 PyObject * obj4 = 0 ;
17795 PyObject * obj5 = 0 ;
17796 PyObject * obj6 = 0 ;
17797 PyObject * obj7 = 0 ;
17798 PyObject * obj8 = 0 ;
17799 PyObject * obj9 = 0 ;
17800 char * kwnames[] = {
17801 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17802 };
17803
17804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17806 if (!SWIG_IsOK(res1)) {
17807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17808 }
17809 arg1 = reinterpret_cast< wxWindow * >(argp1);
17810 if (obj1) {
17811 ecode2 = SWIG_AsVal_int(obj1, &val2);
17812 if (!SWIG_IsOK(ecode2)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17814 }
17815 arg2 = static_cast< int >(val2);
17816 }
17817 if (obj2) {
17818 ecode3 = SWIG_AsVal_int(obj2, &val3);
17819 if (!SWIG_IsOK(ecode3)) {
17820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17821 }
17822 arg3 = static_cast< int >(val3);
17823 }
17824 if (obj3) {
17825 ecode4 = SWIG_AsVal_int(obj3, &val4);
17826 if (!SWIG_IsOK(ecode4)) {
17827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17828 }
17829 arg4 = static_cast< int >(val4);
17830 }
17831 if (obj4) {
17832 ecode5 = SWIG_AsVal_int(obj4, &val5);
17833 if (!SWIG_IsOK(ecode5)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17835 }
17836 arg5 = static_cast< int >(val5);
17837 }
17838 if (obj5) {
d55e5bfc 17839 {
554f62e9
RD
17840 arg6 = &temp6;
17841 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17842 }
554f62e9
RD
17843 }
17844 if (obj6) {
093d3ff1 17845 {
554f62e9
RD
17846 arg7 = &temp7;
17847 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17848 }
554f62e9
RD
17849 }
17850 if (obj7) {
17851 ecode8 = SWIG_AsVal_long(obj7, &val8);
17852 if (!SWIG_IsOK(ecode8)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17854 }
17855 arg8 = static_cast< long >(val8);
17856 }
17857 if (obj8) {
17858 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17859 if (!SWIG_IsOK(res9)) {
17860 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17861 }
554f62e9
RD
17862 if (!argp9) {
17863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17864 }
554f62e9
RD
17865 arg9 = reinterpret_cast< wxValidator * >(argp9);
17866 }
17867 if (obj9) {
d55e5bfc 17868 {
554f62e9
RD
17869 arg10 = wxString_in_helper(obj9);
17870 if (arg10 == NULL) SWIG_fail;
17871 temp10 = true;
d55e5bfc 17872 }
554f62e9
RD
17873 }
17874 {
17875 if (!wxPyCheckForApp()) SWIG_fail;
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17882 {
17883 if (temp10)
17884 delete arg10;
17885 }
17886 return resultobj;
17887fail:
17888 {
17889 if (temp10)
17890 delete arg10;
17891 }
17892 return NULL;
d55e5bfc
RD
17893}
17894
17895
554f62e9
RD
17896SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17897 PyObject *resultobj = 0;
17898 wxSlider *result = 0 ;
17899
17900 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17901 {
17902 if (!wxPyCheckForApp()) SWIG_fail;
17903 PyThreadState* __tstate = wxPyBeginAllowThreads();
17904 result = (wxSlider *)new wxSlider();
17905 wxPyEndAllowThreads(__tstate);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 }
17908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17909 return resultobj;
17910fail:
17911 return NULL;
17912}
17913
17914
17915SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17916 PyObject *resultobj = 0;
17917 wxSlider *arg1 = (wxSlider *) 0 ;
17918 wxWindow *arg2 = (wxWindow *) 0 ;
17919 int arg3 = (int) -1 ;
17920 int arg4 = (int) 0 ;
17921 int arg5 = (int) 0 ;
17922 int arg6 = (int) 100 ;
17923 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17924 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17925 wxSize const &arg8_defvalue = wxDefaultSize ;
17926 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17927 long arg9 = (long) wxSL_HORIZONTAL ;
17928 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17929 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17930 wxString const &arg11_defvalue = wxPySliderNameStr ;
17931 wxString *arg11 = (wxString *) &arg11_defvalue ;
17932 bool result;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 void *argp2 = 0 ;
17936 int res2 = 0 ;
17937 int val3 ;
17938 int ecode3 = 0 ;
17939 int val4 ;
17940 int ecode4 = 0 ;
17941 int val5 ;
17942 int ecode5 = 0 ;
17943 int val6 ;
17944 int ecode6 = 0 ;
17945 wxPoint temp7 ;
17946 wxSize temp8 ;
17947 long val9 ;
17948 int ecode9 = 0 ;
17949 void *argp10 = 0 ;
17950 int res10 = 0 ;
17951 bool temp11 = false ;
17952 PyObject * obj0 = 0 ;
17953 PyObject * obj1 = 0 ;
17954 PyObject * obj2 = 0 ;
17955 PyObject * obj3 = 0 ;
17956 PyObject * obj4 = 0 ;
17957 PyObject * obj5 = 0 ;
17958 PyObject * obj6 = 0 ;
17959 PyObject * obj7 = 0 ;
17960 PyObject * obj8 = 0 ;
17961 PyObject * obj9 = 0 ;
17962 PyObject * obj10 = 0 ;
17963 char * kwnames[] = {
17964 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17965 };
17966
17967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17969 if (!SWIG_IsOK(res1)) {
17970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17971 }
17972 arg1 = reinterpret_cast< wxSlider * >(argp1);
17973 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17974 if (!SWIG_IsOK(res2)) {
17975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17976 }
17977 arg2 = reinterpret_cast< wxWindow * >(argp2);
17978 if (obj2) {
17979 ecode3 = SWIG_AsVal_int(obj2, &val3);
17980 if (!SWIG_IsOK(ecode3)) {
17981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17982 }
17983 arg3 = static_cast< int >(val3);
17984 }
17985 if (obj3) {
17986 ecode4 = SWIG_AsVal_int(obj3, &val4);
17987 if (!SWIG_IsOK(ecode4)) {
17988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17989 }
17990 arg4 = static_cast< int >(val4);
17991 }
17992 if (obj4) {
17993 ecode5 = SWIG_AsVal_int(obj4, &val5);
17994 if (!SWIG_IsOK(ecode5)) {
17995 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17996 }
17997 arg5 = static_cast< int >(val5);
17998 }
17999 if (obj5) {
18000 ecode6 = SWIG_AsVal_int(obj5, &val6);
18001 if (!SWIG_IsOK(ecode6)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18003 }
18004 arg6 = static_cast< int >(val6);
18005 }
18006 if (obj6) {
d55e5bfc 18007 {
554f62e9
RD
18008 arg7 = &temp7;
18009 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 18010 }
554f62e9
RD
18011 }
18012 if (obj7) {
093d3ff1 18013 {
554f62e9
RD
18014 arg8 = &temp8;
18015 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18016 }
18017 }
18018 if (obj8) {
18019 ecode9 = SWIG_AsVal_long(obj8, &val9);
18020 if (!SWIG_IsOK(ecode9)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18022 }
18023 arg9 = static_cast< long >(val9);
18024 }
18025 if (obj9) {
18026 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18027 if (!SWIG_IsOK(res10)) {
18028 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 18029 }
554f62e9
RD
18030 if (!argp10) {
18031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18032 }
18033 arg10 = reinterpret_cast< wxValidator * >(argp10);
18034 }
18035 if (obj10) {
d55e5bfc 18036 {
554f62e9
RD
18037 arg11 = wxString_in_helper(obj10);
18038 if (arg11 == NULL) SWIG_fail;
18039 temp11 = true;
d55e5bfc 18040 }
554f62e9
RD
18041 }
18042 {
18043 PyThreadState* __tstate = wxPyBeginAllowThreads();
18044 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18045 wxPyEndAllowThreads(__tstate);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 }
18048 {
18049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18050 }
18051 {
18052 if (temp11)
18053 delete arg11;
18054 }
18055 return resultobj;
18056fail:
18057 {
18058 if (temp11)
18059 delete arg11;
18060 }
18061 return NULL;
d55e5bfc
RD
18062}
18063
18064
554f62e9
RD
18065SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18066 PyObject *resultobj = 0;
18067 wxSlider *arg1 = (wxSlider *) 0 ;
18068 int result;
18069 void *argp1 = 0 ;
18070 int res1 = 0 ;
18071 PyObject *swig_obj[1] ;
18072
18073 if (!args) SWIG_fail;
18074 swig_obj[0] = args;
18075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18076 if (!SWIG_IsOK(res1)) {
18077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18078 }
18079 arg1 = reinterpret_cast< wxSlider * >(argp1);
18080 {
18081 PyThreadState* __tstate = wxPyBeginAllowThreads();
18082 result = (int)((wxSlider const *)arg1)->GetValue();
18083 wxPyEndAllowThreads(__tstate);
18084 if (PyErr_Occurred()) SWIG_fail;
18085 }
18086 resultobj = SWIG_From_int(static_cast< int >(result));
18087 return resultobj;
18088fail:
18089 return NULL;
18090}
18091
18092
18093SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18094 PyObject *resultobj = 0;
18095 wxSlider *arg1 = (wxSlider *) 0 ;
18096 int arg2 ;
18097 void *argp1 = 0 ;
18098 int res1 = 0 ;
18099 int val2 ;
18100 int ecode2 = 0 ;
18101 PyObject * obj0 = 0 ;
18102 PyObject * obj1 = 0 ;
18103 char * kwnames[] = {
18104 (char *) "self",(char *) "value", NULL
18105 };
18106
18107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18109 if (!SWIG_IsOK(res1)) {
18110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18111 }
18112 arg1 = reinterpret_cast< wxSlider * >(argp1);
18113 ecode2 = SWIG_AsVal_int(obj1, &val2);
18114 if (!SWIG_IsOK(ecode2)) {
18115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18116 }
18117 arg2 = static_cast< int >(val2);
18118 {
18119 PyThreadState* __tstate = wxPyBeginAllowThreads();
18120 (arg1)->SetValue(arg2);
18121 wxPyEndAllowThreads(__tstate);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 }
18124 resultobj = SWIG_Py_Void();
18125 return resultobj;
18126fail:
18127 return NULL;
18128}
18129
18130
18131SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18132 PyObject *resultobj = 0;
18133 wxSlider *arg1 = (wxSlider *) 0 ;
18134 int arg2 ;
18135 int arg3 ;
18136 void *argp1 = 0 ;
18137 int res1 = 0 ;
18138 int val2 ;
18139 int ecode2 = 0 ;
18140 int val3 ;
18141 int ecode3 = 0 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 PyObject * obj2 = 0 ;
18145 char * kwnames[] = {
18146 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18147 };
18148
18149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18151 if (!SWIG_IsOK(res1)) {
18152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18153 }
18154 arg1 = reinterpret_cast< wxSlider * >(argp1);
18155 ecode2 = SWIG_AsVal_int(obj1, &val2);
18156 if (!SWIG_IsOK(ecode2)) {
18157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18158 }
18159 arg2 = static_cast< int >(val2);
18160 ecode3 = SWIG_AsVal_int(obj2, &val3);
18161 if (!SWIG_IsOK(ecode3)) {
18162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18163 }
18164 arg3 = static_cast< int >(val3);
18165 {
18166 PyThreadState* __tstate = wxPyBeginAllowThreads();
18167 (arg1)->SetRange(arg2,arg3);
18168 wxPyEndAllowThreads(__tstate);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 }
18171 resultobj = SWIG_Py_Void();
18172 return resultobj;
18173fail:
18174 return NULL;
d55e5bfc
RD
18175}
18176
18177
554f62e9
RD
18178SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18179 PyObject *resultobj = 0;
18180 wxSlider *arg1 = (wxSlider *) 0 ;
18181 int result;
18182 void *argp1 = 0 ;
18183 int res1 = 0 ;
18184 PyObject *swig_obj[1] ;
18185
18186 if (!args) SWIG_fail;
18187 swig_obj[0] = args;
18188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18189 if (!SWIG_IsOK(res1)) {
18190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18191 }
18192 arg1 = reinterpret_cast< wxSlider * >(argp1);
18193 {
18194 PyThreadState* __tstate = wxPyBeginAllowThreads();
18195 result = (int)((wxSlider const *)arg1)->GetMin();
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 resultobj = SWIG_From_int(static_cast< int >(result));
18200 return resultobj;
18201fail:
18202 return NULL;
d55e5bfc
RD
18203}
18204
18205
554f62e9
RD
18206SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18207 PyObject *resultobj = 0;
18208 wxSlider *arg1 = (wxSlider *) 0 ;
18209 int result;
18210 void *argp1 = 0 ;
18211 int res1 = 0 ;
18212 PyObject *swig_obj[1] ;
18213
18214 if (!args) SWIG_fail;
18215 swig_obj[0] = args;
18216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18217 if (!SWIG_IsOK(res1)) {
18218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18219 }
18220 arg1 = reinterpret_cast< wxSlider * >(argp1);
18221 {
18222 PyThreadState* __tstate = wxPyBeginAllowThreads();
18223 result = (int)((wxSlider const *)arg1)->GetMax();
18224 wxPyEndAllowThreads(__tstate);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 resultobj = SWIG_From_int(static_cast< int >(result));
18228 return resultobj;
18229fail:
18230 return NULL;
18231}
18232
18233
18234SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18235 PyObject *resultobj = 0;
18236 wxSlider *arg1 = (wxSlider *) 0 ;
18237 int arg2 ;
18238 void *argp1 = 0 ;
18239 int res1 = 0 ;
18240 int val2 ;
18241 int ecode2 = 0 ;
18242 PyObject * obj0 = 0 ;
18243 PyObject * obj1 = 0 ;
18244 char * kwnames[] = {
18245 (char *) "self",(char *) "minValue", NULL
18246 };
18247
18248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18250 if (!SWIG_IsOK(res1)) {
18251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18252 }
18253 arg1 = reinterpret_cast< wxSlider * >(argp1);
18254 ecode2 = SWIG_AsVal_int(obj1, &val2);
18255 if (!SWIG_IsOK(ecode2)) {
18256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18257 }
18258 arg2 = static_cast< int >(val2);
18259 {
18260 PyThreadState* __tstate = wxPyBeginAllowThreads();
18261 (arg1)->SetMin(arg2);
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 resultobj = SWIG_Py_Void();
18266 return resultobj;
18267fail:
18268 return NULL;
18269}
18270
18271
18272SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18273 PyObject *resultobj = 0;
18274 wxSlider *arg1 = (wxSlider *) 0 ;
18275 int arg2 ;
18276 void *argp1 = 0 ;
18277 int res1 = 0 ;
18278 int val2 ;
18279 int ecode2 = 0 ;
18280 PyObject * obj0 = 0 ;
18281 PyObject * obj1 = 0 ;
18282 char * kwnames[] = {
18283 (char *) "self",(char *) "maxValue", NULL
18284 };
18285
18286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18288 if (!SWIG_IsOK(res1)) {
18289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18290 }
18291 arg1 = reinterpret_cast< wxSlider * >(argp1);
18292 ecode2 = SWIG_AsVal_int(obj1, &val2);
18293 if (!SWIG_IsOK(ecode2)) {
18294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18295 }
18296 arg2 = static_cast< int >(val2);
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 (arg1)->SetMax(arg2);
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 resultobj = SWIG_Py_Void();
18304 return resultobj;
18305fail:
18306 return NULL;
18307}
18308
18309
18310SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18311 PyObject *resultobj = 0;
18312 wxSlider *arg1 = (wxSlider *) 0 ;
18313 int arg2 ;
18314 void *argp1 = 0 ;
18315 int res1 = 0 ;
18316 int val2 ;
18317 int ecode2 = 0 ;
18318 PyObject * obj0 = 0 ;
18319 PyObject * obj1 = 0 ;
18320 char * kwnames[] = {
18321 (char *) "self",(char *) "lineSize", NULL
18322 };
18323
18324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18326 if (!SWIG_IsOK(res1)) {
18327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18328 }
18329 arg1 = reinterpret_cast< wxSlider * >(argp1);
18330 ecode2 = SWIG_AsVal_int(obj1, &val2);
18331 if (!SWIG_IsOK(ecode2)) {
18332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18333 }
18334 arg2 = static_cast< int >(val2);
18335 {
18336 PyThreadState* __tstate = wxPyBeginAllowThreads();
18337 (arg1)->SetLineSize(arg2);
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_Py_Void();
18342 return resultobj;
18343fail:
18344 return NULL;
18345}
18346
18347
18348SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj = 0;
18350 wxSlider *arg1 = (wxSlider *) 0 ;
18351 int arg2 ;
18352 void *argp1 = 0 ;
18353 int res1 = 0 ;
18354 int val2 ;
18355 int ecode2 = 0 ;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 char * kwnames[] = {
18359 (char *) "self",(char *) "pageSize", NULL
18360 };
18361
18362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18366 }
18367 arg1 = reinterpret_cast< wxSlider * >(argp1);
18368 ecode2 = SWIG_AsVal_int(obj1, &val2);
18369 if (!SWIG_IsOK(ecode2)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18371 }
18372 arg2 = static_cast< int >(val2);
18373 {
18374 PyThreadState* __tstate = wxPyBeginAllowThreads();
18375 (arg1)->SetPageSize(arg2);
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 resultobj = SWIG_Py_Void();
18380 return resultobj;
18381fail:
18382 return NULL;
d55e5bfc
RD
18383}
18384
18385
554f62e9
RD
18386SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18387 PyObject *resultobj = 0;
18388 wxSlider *arg1 = (wxSlider *) 0 ;
18389 int result;
18390 void *argp1 = 0 ;
18391 int res1 = 0 ;
18392 PyObject *swig_obj[1] ;
18393
18394 if (!args) SWIG_fail;
18395 swig_obj[0] = args;
18396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18397 if (!SWIG_IsOK(res1)) {
18398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18399 }
18400 arg1 = reinterpret_cast< wxSlider * >(argp1);
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 result = (int)((wxSlider const *)arg1)->GetLineSize();
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 resultobj = SWIG_From_int(static_cast< int >(result));
18408 return resultobj;
18409fail:
18410 return NULL;
d55e5bfc
RD
18411}
18412
18413
554f62e9
RD
18414SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18415 PyObject *resultobj = 0;
18416 wxSlider *arg1 = (wxSlider *) 0 ;
18417 int result;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 PyObject *swig_obj[1] ;
18421
18422 if (!args) SWIG_fail;
18423 swig_obj[0] = args;
18424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18425 if (!SWIG_IsOK(res1)) {
18426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18427 }
18428 arg1 = reinterpret_cast< wxSlider * >(argp1);
18429 {
18430 PyThreadState* __tstate = wxPyBeginAllowThreads();
18431 result = (int)((wxSlider const *)arg1)->GetPageSize();
18432 wxPyEndAllowThreads(__tstate);
18433 if (PyErr_Occurred()) SWIG_fail;
18434 }
18435 resultobj = SWIG_From_int(static_cast< int >(result));
18436 return resultobj;
18437fail:
18438 return NULL;
18439}
18440
18441
18442SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18443 PyObject *resultobj = 0;
18444 wxSlider *arg1 = (wxSlider *) 0 ;
18445 int arg2 ;
18446 void *argp1 = 0 ;
18447 int res1 = 0 ;
18448 int val2 ;
18449 int ecode2 = 0 ;
18450 PyObject * obj0 = 0 ;
18451 PyObject * obj1 = 0 ;
18452 char * kwnames[] = {
18453 (char *) "self",(char *) "lenPixels", NULL
18454 };
18455
18456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18458 if (!SWIG_IsOK(res1)) {
18459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18460 }
18461 arg1 = reinterpret_cast< wxSlider * >(argp1);
18462 ecode2 = SWIG_AsVal_int(obj1, &val2);
18463 if (!SWIG_IsOK(ecode2)) {
18464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18465 }
18466 arg2 = static_cast< int >(val2);
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 (arg1)->SetThumbLength(arg2);
18470 wxPyEndAllowThreads(__tstate);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 }
18473 resultobj = SWIG_Py_Void();
18474 return resultobj;
18475fail:
18476 return NULL;
f20a2e1f
RD
18477}
18478
18479
554f62e9
RD
18480SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18481 PyObject *resultobj = 0;
18482 wxSlider *arg1 = (wxSlider *) 0 ;
18483 int result;
18484 void *argp1 = 0 ;
18485 int res1 = 0 ;
18486 PyObject *swig_obj[1] ;
18487
18488 if (!args) SWIG_fail;
18489 swig_obj[0] = args;
18490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18491 if (!SWIG_IsOK(res1)) {
18492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18493 }
18494 arg1 = reinterpret_cast< wxSlider * >(argp1);
18495 {
18496 PyThreadState* __tstate = wxPyBeginAllowThreads();
18497 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18498 wxPyEndAllowThreads(__tstate);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 resultobj = SWIG_From_int(static_cast< int >(result));
18502 return resultobj;
18503fail:
18504 return NULL;
18505}
18506
18507
18508SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18509 PyObject *resultobj = 0;
18510 wxSlider *arg1 = (wxSlider *) 0 ;
18511 int arg2 ;
18512 int arg3 = (int) 1 ;
18513 void *argp1 = 0 ;
18514 int res1 = 0 ;
18515 int val2 ;
18516 int ecode2 = 0 ;
18517 int val3 ;
18518 int ecode3 = 0 ;
18519 PyObject * obj0 = 0 ;
18520 PyObject * obj1 = 0 ;
18521 PyObject * obj2 = 0 ;
18522 char * kwnames[] = {
18523 (char *) "self",(char *) "n",(char *) "pos", NULL
18524 };
18525
18526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18528 if (!SWIG_IsOK(res1)) {
18529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18530 }
18531 arg1 = reinterpret_cast< wxSlider * >(argp1);
18532 ecode2 = SWIG_AsVal_int(obj1, &val2);
18533 if (!SWIG_IsOK(ecode2)) {
18534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18535 }
18536 arg2 = static_cast< int >(val2);
18537 if (obj2) {
18538 ecode3 = SWIG_AsVal_int(obj2, &val3);
18539 if (!SWIG_IsOK(ecode3)) {
18540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18541 }
18542 arg3 = static_cast< int >(val3);
18543 }
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 (arg1)->SetTickFreq(arg2,arg3);
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_Py_Void();
18551 return resultobj;
18552fail:
18553 return NULL;
d55e5bfc
RD
18554}
18555
18556
554f62e9
RD
18557SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18558 PyObject *resultobj = 0;
18559 wxSlider *arg1 = (wxSlider *) 0 ;
18560 int result;
18561 void *argp1 = 0 ;
18562 int res1 = 0 ;
18563 PyObject *swig_obj[1] ;
18564
18565 if (!args) SWIG_fail;
18566 swig_obj[0] = args;
18567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18568 if (!SWIG_IsOK(res1)) {
18569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18570 }
18571 arg1 = reinterpret_cast< wxSlider * >(argp1);
18572 {
18573 PyThreadState* __tstate = wxPyBeginAllowThreads();
18574 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 resultobj = SWIG_From_int(static_cast< int >(result));
18579 return resultobj;
18580fail:
18581 return NULL;
d55e5bfc
RD
18582}
18583
18584
554f62e9
RD
18585SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18586 PyObject *resultobj = 0;
18587 wxSlider *arg1 = (wxSlider *) 0 ;
18588 void *argp1 = 0 ;
18589 int res1 = 0 ;
18590 PyObject *swig_obj[1] ;
18591
18592 if (!args) SWIG_fail;
18593 swig_obj[0] = args;
18594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18595 if (!SWIG_IsOK(res1)) {
18596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18597 }
18598 arg1 = reinterpret_cast< wxSlider * >(argp1);
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 (arg1)->ClearTicks();
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 resultobj = SWIG_Py_Void();
18606 return resultobj;
18607fail:
18608 return NULL;
18609}
18610
18611
18612SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18613 PyObject *resultobj = 0;
18614 wxSlider *arg1 = (wxSlider *) 0 ;
18615 int arg2 ;
18616 void *argp1 = 0 ;
18617 int res1 = 0 ;
18618 int val2 ;
18619 int ecode2 = 0 ;
18620 PyObject * obj0 = 0 ;
18621 PyObject * obj1 = 0 ;
18622 char * kwnames[] = {
18623 (char *) "self",(char *) "tickPos", NULL
18624 };
18625
18626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18628 if (!SWIG_IsOK(res1)) {
18629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18630 }
18631 arg1 = reinterpret_cast< wxSlider * >(argp1);
18632 ecode2 = SWIG_AsVal_int(obj1, &val2);
18633 if (!SWIG_IsOK(ecode2)) {
18634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18635 }
18636 arg2 = static_cast< int >(val2);
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 (arg1)->SetTick(arg2);
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 resultobj = SWIG_Py_Void();
18644 return resultobj;
18645fail:
18646 return NULL;
d55e5bfc
RD
18647}
18648
18649
554f62e9
RD
18650SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18651 PyObject *resultobj = 0;
18652 wxSlider *arg1 = (wxSlider *) 0 ;
18653 void *argp1 = 0 ;
18654 int res1 = 0 ;
18655 PyObject *swig_obj[1] ;
18656
18657 if (!args) SWIG_fail;
18658 swig_obj[0] = args;
18659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18660 if (!SWIG_IsOK(res1)) {
18661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18662 }
18663 arg1 = reinterpret_cast< wxSlider * >(argp1);
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->ClearSel();
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 resultobj = SWIG_Py_Void();
18671 return resultobj;
18672fail:
18673 return NULL;
d55e5bfc
RD
18674}
18675
18676
554f62e9
RD
18677SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18678 PyObject *resultobj = 0;
18679 wxSlider *arg1 = (wxSlider *) 0 ;
18680 int result;
18681 void *argp1 = 0 ;
18682 int res1 = 0 ;
18683 PyObject *swig_obj[1] ;
18684
18685 if (!args) SWIG_fail;
18686 swig_obj[0] = args;
18687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18688 if (!SWIG_IsOK(res1)) {
18689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18690 }
18691 arg1 = reinterpret_cast< wxSlider * >(argp1);
18692 {
18693 PyThreadState* __tstate = wxPyBeginAllowThreads();
18694 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18695 wxPyEndAllowThreads(__tstate);
18696 if (PyErr_Occurred()) SWIG_fail;
18697 }
18698 resultobj = SWIG_From_int(static_cast< int >(result));
18699 return resultobj;
18700fail:
18701 return NULL;
d55e5bfc 18702}
554f62e9
RD
18703
18704
18705SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18706 PyObject *resultobj = 0;
18707 wxSlider *arg1 = (wxSlider *) 0 ;
18708 int result;
18709 void *argp1 = 0 ;
18710 int res1 = 0 ;
18711 PyObject *swig_obj[1] ;
18712
18713 if (!args) SWIG_fail;
18714 swig_obj[0] = args;
18715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18716 if (!SWIG_IsOK(res1)) {
18717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18718 }
18719 arg1 = reinterpret_cast< wxSlider * >(argp1);
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 result = (int)((wxSlider const *)arg1)->GetSelStart();
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 resultobj = SWIG_From_int(static_cast< int >(result));
18727 return resultobj;
18728fail:
18729 return NULL;
18730}
18731
18732
18733SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = 0;
18735 wxSlider *arg1 = (wxSlider *) 0 ;
18736 int arg2 ;
18737 int arg3 ;
18738 void *argp1 = 0 ;
18739 int res1 = 0 ;
18740 int val2 ;
18741 int ecode2 = 0 ;
18742 int val3 ;
18743 int ecode3 = 0 ;
18744 PyObject * obj0 = 0 ;
18745 PyObject * obj1 = 0 ;
18746 PyObject * obj2 = 0 ;
18747 char * kwnames[] = {
18748 (char *) "self",(char *) "min",(char *) "max", NULL
18749 };
18750
18751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18753 if (!SWIG_IsOK(res1)) {
18754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18755 }
18756 arg1 = reinterpret_cast< wxSlider * >(argp1);
18757 ecode2 = SWIG_AsVal_int(obj1, &val2);
18758 if (!SWIG_IsOK(ecode2)) {
18759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18760 }
18761 arg2 = static_cast< int >(val2);
18762 ecode3 = SWIG_AsVal_int(obj2, &val3);
18763 if (!SWIG_IsOK(ecode3)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18765 }
18766 arg3 = static_cast< int >(val3);
18767 {
18768 PyThreadState* __tstate = wxPyBeginAllowThreads();
18769 (arg1)->SetSelection(arg2,arg3);
18770 wxPyEndAllowThreads(__tstate);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 resultobj = SWIG_Py_Void();
18774 return resultobj;
18775fail:
18776 return NULL;
18777}
18778
18779
18780SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18781 PyObject *resultobj = 0;
18782 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18783 SwigValueWrapper<wxVisualAttributes > result;
18784 int val1 ;
18785 int ecode1 = 0 ;
18786 PyObject * obj0 = 0 ;
18787 char * kwnames[] = {
18788 (char *) "variant", NULL
18789 };
18790
18791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18792 if (obj0) {
18793 ecode1 = SWIG_AsVal_int(obj0, &val1);
18794 if (!SWIG_IsOK(ecode1)) {
18795 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18796 }
18797 arg1 = static_cast< wxWindowVariant >(val1);
18798 }
18799 {
18800 if (!wxPyCheckForApp()) SWIG_fail;
18801 PyThreadState* __tstate = wxPyBeginAllowThreads();
18802 result = wxSlider::GetClassDefaultAttributes(arg1);
18803 wxPyEndAllowThreads(__tstate);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 }
18806 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18807 return resultobj;
18808fail:
18809 return NULL;
d55e5bfc
RD
18810}
18811
18812
554f62e9
RD
18813SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18814 PyObject *obj;
18815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18816 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18817 return SWIG_Py_Void();
d55e5bfc
RD
18818}
18819
554f62e9
RD
18820SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18821 return SWIG_Python_InitShadowInstance(args);
18822}
d55e5bfc 18823
554f62e9
RD
18824SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18825 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18826 return 1;
d55e5bfc
RD
18827}
18828
18829
554f62e9
RD
18830SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18831 PyObject *pyobj = 0;
18832
18833 {
18834#if wxUSE_UNICODE
18835 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18836#else
18837 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18838#endif
18839 }
18840 return pyobj;
18841}
18842
18843
18844SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18845 PyObject *resultobj = 0;
18846 wxWindow *arg1 = (wxWindow *) 0 ;
18847 int arg2 = (int) -1 ;
18848 wxString const &arg3_defvalue = wxPyEmptyString ;
18849 wxString *arg3 = (wxString *) &arg3_defvalue ;
18850 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18851 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18852 wxSize const &arg5_defvalue = wxDefaultSize ;
18853 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18854 long arg6 = (long) 0 ;
18855 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18856 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18857 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18858 wxString *arg8 = (wxString *) &arg8_defvalue ;
18859 wxToggleButton *result = 0 ;
18860 void *argp1 = 0 ;
18861 int res1 = 0 ;
18862 int val2 ;
18863 int ecode2 = 0 ;
18864 bool temp3 = false ;
18865 wxPoint temp4 ;
18866 wxSize temp5 ;
18867 long val6 ;
18868 int ecode6 = 0 ;
18869 void *argp7 = 0 ;
18870 int res7 = 0 ;
18871 bool temp8 = false ;
18872 PyObject * obj0 = 0 ;
18873 PyObject * obj1 = 0 ;
18874 PyObject * obj2 = 0 ;
18875 PyObject * obj3 = 0 ;
18876 PyObject * obj4 = 0 ;
18877 PyObject * obj5 = 0 ;
18878 PyObject * obj6 = 0 ;
18879 PyObject * obj7 = 0 ;
18880 char * kwnames[] = {
18881 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18882 };
18883
18884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18886 if (!SWIG_IsOK(res1)) {
18887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18888 }
18889 arg1 = reinterpret_cast< wxWindow * >(argp1);
18890 if (obj1) {
18891 ecode2 = SWIG_AsVal_int(obj1, &val2);
18892 if (!SWIG_IsOK(ecode2)) {
18893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18894 }
18895 arg2 = static_cast< int >(val2);
18896 }
18897 if (obj2) {
d55e5bfc 18898 {
554f62e9
RD
18899 arg3 = wxString_in_helper(obj2);
18900 if (arg3 == NULL) SWIG_fail;
18901 temp3 = true;
d55e5bfc 18902 }
554f62e9
RD
18903 }
18904 if (obj3) {
d55e5bfc 18905 {
554f62e9
RD
18906 arg4 = &temp4;
18907 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 18908 }
554f62e9
RD
18909 }
18910 if (obj4) {
d55e5bfc 18911 {
554f62e9
RD
18912 arg5 = &temp5;
18913 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18914 }
554f62e9
RD
18915 }
18916 if (obj5) {
18917 ecode6 = SWIG_AsVal_long(obj5, &val6);
18918 if (!SWIG_IsOK(ecode6)) {
18919 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18920 }
18921 arg6 = static_cast< long >(val6);
18922 }
18923 if (obj6) {
18924 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18925 if (!SWIG_IsOK(res7)) {
18926 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18927 }
554f62e9
RD
18928 if (!argp7) {
18929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18930 }
554f62e9
RD
18931 arg7 = reinterpret_cast< wxValidator * >(argp7);
18932 }
18933 if (obj7) {
093d3ff1 18934 {
554f62e9
RD
18935 arg8 = wxString_in_helper(obj7);
18936 if (arg8 == NULL) SWIG_fail;
18937 temp8 = true;
093d3ff1 18938 }
554f62e9
RD
18939 }
18940 {
18941 if (!wxPyCheckForApp()) SWIG_fail;
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18948 {
18949 if (temp3)
18950 delete arg3;
18951 }
18952 {
18953 if (temp8)
18954 delete arg8;
18955 }
18956 return resultobj;
18957fail:
18958 {
18959 if (temp3)
18960 delete arg3;
18961 }
18962 {
18963 if (temp8)
18964 delete arg8;
18965 }
18966 return NULL;
d55e5bfc
RD
18967}
18968
18969
554f62e9
RD
18970SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18971 PyObject *resultobj = 0;
18972 wxToggleButton *result = 0 ;
18973
18974 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18975 {
18976 if (!wxPyCheckForApp()) SWIG_fail;
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 result = (wxToggleButton *)new wxToggleButton();
18979 wxPyEndAllowThreads(__tstate);
18980 if (PyErr_Occurred()) SWIG_fail;
18981 }
18982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18983 return resultobj;
18984fail:
18985 return NULL;
18986}
18987
18988
18989SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18990 PyObject *resultobj = 0;
18991 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18992 wxWindow *arg2 = (wxWindow *) 0 ;
18993 int arg3 = (int) -1 ;
18994 wxString const &arg4_defvalue = wxPyEmptyString ;
18995 wxString *arg4 = (wxString *) &arg4_defvalue ;
18996 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18997 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18998 wxSize const &arg6_defvalue = wxDefaultSize ;
18999 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19000 long arg7 = (long) 0 ;
19001 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19002 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19003 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19004 wxString *arg9 = (wxString *) &arg9_defvalue ;
19005 bool result;
19006 void *argp1 = 0 ;
19007 int res1 = 0 ;
19008 void *argp2 = 0 ;
19009 int res2 = 0 ;
19010 int val3 ;
19011 int ecode3 = 0 ;
19012 bool temp4 = false ;
19013 wxPoint temp5 ;
19014 wxSize temp6 ;
19015 long val7 ;
19016 int ecode7 = 0 ;
19017 void *argp8 = 0 ;
19018 int res8 = 0 ;
19019 bool temp9 = false ;
19020 PyObject * obj0 = 0 ;
19021 PyObject * obj1 = 0 ;
19022 PyObject * obj2 = 0 ;
19023 PyObject * obj3 = 0 ;
19024 PyObject * obj4 = 0 ;
19025 PyObject * obj5 = 0 ;
19026 PyObject * obj6 = 0 ;
19027 PyObject * obj7 = 0 ;
19028 PyObject * obj8 = 0 ;
19029 char * kwnames[] = {
19030 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19031 };
19032
19033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19035 if (!SWIG_IsOK(res1)) {
19036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19037 }
19038 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19039 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19040 if (!SWIG_IsOK(res2)) {
19041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19042 }
19043 arg2 = reinterpret_cast< wxWindow * >(argp2);
19044 if (obj2) {
19045 ecode3 = SWIG_AsVal_int(obj2, &val3);
19046 if (!SWIG_IsOK(ecode3)) {
19047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19048 }
19049 arg3 = static_cast< int >(val3);
19050 }
19051 if (obj3) {
d55e5bfc 19052 {
554f62e9
RD
19053 arg4 = wxString_in_helper(obj3);
19054 if (arg4 == NULL) SWIG_fail;
19055 temp4 = true;
d55e5bfc 19056 }
554f62e9
RD
19057 }
19058 if (obj4) {
093d3ff1 19059 {
554f62e9
RD
19060 arg5 = &temp5;
19061 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 19062 }
554f62e9
RD
19063 }
19064 if (obj5) {
d55e5bfc 19065 {
554f62e9
RD
19066 arg6 = &temp6;
19067 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 19068 }
554f62e9
RD
19069 }
19070 if (obj6) {
19071 ecode7 = SWIG_AsVal_long(obj6, &val7);
19072 if (!SWIG_IsOK(ecode7)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19074 }
19075 arg7 = static_cast< long >(val7);
19076 }
19077 if (obj7) {
19078 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19079 if (!SWIG_IsOK(res8)) {
19080 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 19081 }
554f62e9
RD
19082 if (!argp8) {
19083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 19084 }
554f62e9
RD
19085 arg8 = reinterpret_cast< wxValidator * >(argp8);
19086 }
19087 if (obj8) {
093d3ff1 19088 {
554f62e9
RD
19089 arg9 = wxString_in_helper(obj8);
19090 if (arg9 == NULL) SWIG_fail;
19091 temp9 = true;
093d3ff1 19092 }
554f62e9
RD
19093 }
19094 {
19095 PyThreadState* __tstate = wxPyBeginAllowThreads();
19096 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19097 wxPyEndAllowThreads(__tstate);
19098 if (PyErr_Occurred()) SWIG_fail;
19099 }
19100 {
19101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19102 }
19103 {
19104 if (temp4)
19105 delete arg4;
19106 }
19107 {
19108 if (temp9)
19109 delete arg9;
19110 }
19111 return resultobj;
19112fail:
19113 {
19114 if (temp4)
19115 delete arg4;
19116 }
19117 {
19118 if (temp9)
19119 delete arg9;
19120 }
19121 return NULL;
19122}
19123
19124
19125SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19126 PyObject *resultobj = 0;
19127 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19128 bool arg2 ;
19129 void *argp1 = 0 ;
19130 int res1 = 0 ;
19131 bool val2 ;
19132 int ecode2 = 0 ;
19133 PyObject * obj0 = 0 ;
19134 PyObject * obj1 = 0 ;
19135 char * kwnames[] = {
19136 (char *) "self",(char *) "value", NULL
19137 };
19138
19139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19141 if (!SWIG_IsOK(res1)) {
19142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19143 }
19144 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19145 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19146 if (!SWIG_IsOK(ecode2)) {
19147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19148 }
19149 arg2 = static_cast< bool >(val2);
19150 {
19151 PyThreadState* __tstate = wxPyBeginAllowThreads();
19152 (arg1)->SetValue(arg2);
19153 wxPyEndAllowThreads(__tstate);
19154 if (PyErr_Occurred()) SWIG_fail;
19155 }
19156 resultobj = SWIG_Py_Void();
19157 return resultobj;
19158fail:
19159 return NULL;
d55e5bfc
RD
19160}
19161
19162
554f62e9
RD
19163SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19164 PyObject *resultobj = 0;
19165 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19166 bool result;
19167 void *argp1 = 0 ;
19168 int res1 = 0 ;
19169 PyObject *swig_obj[1] ;
19170
19171 if (!args) SWIG_fail;
19172 swig_obj[0] = args;
19173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19174 if (!SWIG_IsOK(res1)) {
19175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19176 }
19177 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19181 wxPyEndAllowThreads(__tstate);
19182 if (PyErr_Occurred()) SWIG_fail;
19183 }
19184 {
19185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19186 }
19187 return resultobj;
19188fail:
19189 return NULL;
d55e5bfc
RD
19190}
19191
19192
554f62e9
RD
19193SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19194 PyObject *resultobj = 0;
19195 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19196 SwigValueWrapper<wxVisualAttributes > result;
19197 int val1 ;
19198 int ecode1 = 0 ;
19199 PyObject * obj0 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "variant", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19205 if (obj0) {
19206 ecode1 = SWIG_AsVal_int(obj0, &val1);
19207 if (!SWIG_IsOK(ecode1)) {
19208 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19209 }
19210 arg1 = static_cast< wxWindowVariant >(val1);
19211 }
19212 {
19213 if (!wxPyCheckForApp()) SWIG_fail;
19214 PyThreadState* __tstate = wxPyBeginAllowThreads();
19215 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19220 return resultobj;
19221fail:
19222 return NULL;
d55e5bfc
RD
19223}
19224
19225
554f62e9
RD
19226SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19227 PyObject *obj;
19228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19229 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19230 return SWIG_Py_Void();
d55e5bfc
RD
19231}
19232
554f62e9
RD
19233SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19234 return SWIG_Python_InitShadowInstance(args);
f20a2e1f
RD
19235}
19236
554f62e9
RD
19237SWIGINTERN int NotebookNameStr_set(PyObject *) {
19238 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19239 return 1;
d55e5bfc
RD
19240}
19241
19242
554f62e9
RD
19243SWIGINTERN PyObject *NotebookNameStr_get(void) {
19244 PyObject *pyobj = 0;
19245
19246 {
d55e5bfc 19247#if wxUSE_UNICODE
554f62e9 19248 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19249#else
554f62e9 19250 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19251#endif
554f62e9
RD
19252 }
19253 return pyobj;
d55e5bfc
RD
19254}
19255
19256
554f62e9
RD
19257SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19258 PyObject *resultobj = 0;
19259 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19260 size_t result;
19261 void *argp1 = 0 ;
19262 int res1 = 0 ;
19263 PyObject *swig_obj[1] ;
19264
19265 if (!args) SWIG_fail;
19266 swig_obj[0] = args;
19267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19268 if (!SWIG_IsOK(res1)) {
19269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19270 }
19271 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19272 {
19273 PyThreadState* __tstate = wxPyBeginAllowThreads();
19274 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19275 wxPyEndAllowThreads(__tstate);
19276 if (PyErr_Occurred()) SWIG_fail;
19277 }
19278 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19279 return resultobj;
19280fail:
19281 return NULL;
19282}
19283
19284
19285SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19286 PyObject *resultobj = 0;
19287 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19288 size_t arg2 ;
19289 wxWindow *result = 0 ;
19290 void *argp1 = 0 ;
19291 int res1 = 0 ;
19292 size_t val2 ;
19293 int ecode2 = 0 ;
19294 PyObject * obj0 = 0 ;
19295 PyObject * obj1 = 0 ;
19296 char * kwnames[] = {
19297 (char *) "self",(char *) "n", NULL
19298 };
19299
19300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19302 if (!SWIG_IsOK(res1)) {
19303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19304 }
19305 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19306 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19307 if (!SWIG_IsOK(ecode2)) {
19308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19309 }
19310 arg2 = static_cast< size_t >(val2);
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = (wxWindow *)(arg1)->GetPage(arg2);
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 {
19318 resultobj = wxPyMake_wxObject(result, 0);
19319 }
19320 return resultobj;
19321fail:
19322 return NULL;
d55e5bfc
RD
19323}
19324
19325
554f62e9
RD
19326SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19327 PyObject *resultobj = 0;
19328 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19329 wxWindow *result = 0 ;
19330 void *argp1 = 0 ;
19331 int res1 = 0 ;
19332 PyObject *swig_obj[1] ;
19333
19334 if (!args) SWIG_fail;
19335 swig_obj[0] = args;
19336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19337 if (!SWIG_IsOK(res1)) {
19338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19339 }
19340 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19341 {
19342 PyThreadState* __tstate = wxPyBeginAllowThreads();
19343 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19344 wxPyEndAllowThreads(__tstate);
19345 if (PyErr_Occurred()) SWIG_fail;
19346 }
19347 {
19348 resultobj = wxPyMake_wxObject(result, 0);
19349 }
19350 return resultobj;
19351fail:
19352 return NULL;
d55e5bfc
RD
19353}
19354
19355
554f62e9
RD
19356SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19357 PyObject *resultobj = 0;
19358 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19359 int result;
19360 void *argp1 = 0 ;
19361 int res1 = 0 ;
19362 PyObject *swig_obj[1] ;
19363
19364 if (!args) SWIG_fail;
19365 swig_obj[0] = args;
19366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19367 if (!SWIG_IsOK(res1)) {
19368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19369 }
19370 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19371 {
19372 PyThreadState* __tstate = wxPyBeginAllowThreads();
19373 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19374 wxPyEndAllowThreads(__tstate);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 resultobj = SWIG_From_int(static_cast< int >(result));
19378 return resultobj;
19379fail:
19380 return NULL;
19381}
19382
19383
19384SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19385 PyObject *resultobj = 0;
19386 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19387 size_t arg2 ;
19388 wxString *arg3 = 0 ;
19389 bool result;
19390 void *argp1 = 0 ;
19391 int res1 = 0 ;
19392 size_t val2 ;
19393 int ecode2 = 0 ;
19394 bool temp3 = false ;
19395 PyObject * obj0 = 0 ;
19396 PyObject * obj1 = 0 ;
19397 PyObject * obj2 = 0 ;
19398 char * kwnames[] = {
19399 (char *) "self",(char *) "n",(char *) "strText", NULL
19400 };
19401
19402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19404 if (!SWIG_IsOK(res1)) {
19405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19406 }
19407 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19408 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19409 if (!SWIG_IsOK(ecode2)) {
19410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19411 }
19412 arg2 = static_cast< size_t >(val2);
19413 {
19414 arg3 = wxString_in_helper(obj2);
19415 if (arg3 == NULL) SWIG_fail;
19416 temp3 = true;
19417 }
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 {
19425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19426 }
19427 {
19428 if (temp3)
19429 delete arg3;
19430 }
19431 return resultobj;
19432fail:
19433 {
19434 if (temp3)
19435 delete arg3;
19436 }
19437 return NULL;
19438}
19439
19440
19441SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19442 PyObject *resultobj = 0;
19443 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19444 size_t arg2 ;
19445 wxString result;
19446 void *argp1 = 0 ;
19447 int res1 = 0 ;
19448 size_t val2 ;
19449 int ecode2 = 0 ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 char * kwnames[] = {
19453 (char *) "self",(char *) "n", NULL
19454 };
19455
19456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19458 if (!SWIG_IsOK(res1)) {
19459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19460 }
19461 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19462 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19463 if (!SWIG_IsOK(ecode2)) {
19464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19465 }
19466 arg2 = static_cast< size_t >(val2);
19467 {
19468 PyThreadState* __tstate = wxPyBeginAllowThreads();
19469 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19470 wxPyEndAllowThreads(__tstate);
19471 if (PyErr_Occurred()) SWIG_fail;
19472 }
19473 {
19474#if wxUSE_UNICODE
19475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19476#else
19477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19478#endif
19479 }
19480 return resultobj;
19481fail:
19482 return NULL;
19483}
19484
19485
19486SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19487 PyObject *resultobj = 0;
19488 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19489 wxImageList *arg2 = (wxImageList *) 0 ;
19490 void *argp1 = 0 ;
19491 int res1 = 0 ;
19492 void *argp2 = 0 ;
19493 int res2 = 0 ;
19494 PyObject * obj0 = 0 ;
19495 PyObject * obj1 = 0 ;
19496 char * kwnames[] = {
19497 (char *) "self",(char *) "imageList", NULL
19498 };
19499
19500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19502 if (!SWIG_IsOK(res1)) {
19503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19504 }
19505 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19507 if (!SWIG_IsOK(res2)) {
19508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19509 }
19510 arg2 = reinterpret_cast< wxImageList * >(argp2);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 (arg1)->SetImageList(arg2);
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 resultobj = SWIG_Py_Void();
19518 return resultobj;
19519fail:
19520 return NULL;
19521}
19522
19523
19524SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj = 0;
19526 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19527 wxImageList *arg2 = (wxImageList *) 0 ;
19528 void *argp1 = 0 ;
19529 int res1 = 0 ;
19530 int res2 = 0 ;
19531 PyObject * obj0 = 0 ;
19532 PyObject * obj1 = 0 ;
19533 char * kwnames[] = {
19534 (char *) "self",(char *) "imageList", NULL
19535 };
19536
19537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19539 if (!SWIG_IsOK(res1)) {
19540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19541 }
19542 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19543 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19544 if (!SWIG_IsOK(res2)) {
19545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19546 }
19547 {
19548 PyThreadState* __tstate = wxPyBeginAllowThreads();
19549 (arg1)->AssignImageList(arg2);
19550 wxPyEndAllowThreads(__tstate);
19551 if (PyErr_Occurred()) SWIG_fail;
19552 }
19553 resultobj = SWIG_Py_Void();
19554 return resultobj;
19555fail:
19556 return NULL;
d55e5bfc
RD
19557}
19558
19559
554f62e9
RD
19560SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19561 PyObject *resultobj = 0;
19562 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19563 wxImageList *result = 0 ;
19564 void *argp1 = 0 ;
19565 int res1 = 0 ;
19566 PyObject *swig_obj[1] ;
19567
19568 if (!args) SWIG_fail;
19569 swig_obj[0] = args;
19570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19573 }
19574 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19575 {
19576 PyThreadState* __tstate = wxPyBeginAllowThreads();
19577 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
3ecece7e
RD
19581 {
19582 resultobj = wxPyMake_wxObject(result, (bool)0);
19583 }
554f62e9
RD
19584 return resultobj;
19585fail:
19586 return NULL;
19587}
19588
19589
19590SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19591 PyObject *resultobj = 0;
19592 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19593 size_t arg2 ;
19594 int result;
19595 void *argp1 = 0 ;
19596 int res1 = 0 ;
19597 size_t val2 ;
19598 int ecode2 = 0 ;
19599 PyObject * obj0 = 0 ;
19600 PyObject * obj1 = 0 ;
19601 char * kwnames[] = {
19602 (char *) "self",(char *) "n", NULL
19603 };
19604
19605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19607 if (!SWIG_IsOK(res1)) {
19608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19609 }
19610 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19611 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19612 if (!SWIG_IsOK(ecode2)) {
19613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19614 }
19615 arg2 = static_cast< size_t >(val2);
19616 {
19617 PyThreadState* __tstate = wxPyBeginAllowThreads();
19618 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19619 wxPyEndAllowThreads(__tstate);
19620 if (PyErr_Occurred()) SWIG_fail;
19621 }
19622 resultobj = SWIG_From_int(static_cast< int >(result));
19623 return resultobj;
19624fail:
19625 return NULL;
19626}
19627
19628
19629SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19630 PyObject *resultobj = 0;
19631 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19632 size_t arg2 ;
19633 int arg3 ;
19634 bool result;
19635 void *argp1 = 0 ;
19636 int res1 = 0 ;
19637 size_t val2 ;
19638 int ecode2 = 0 ;
19639 int val3 ;
19640 int ecode3 = 0 ;
19641 PyObject * obj0 = 0 ;
19642 PyObject * obj1 = 0 ;
19643 PyObject * obj2 = 0 ;
19644 char * kwnames[] = {
19645 (char *) "self",(char *) "n",(char *) "imageId", NULL
19646 };
19647
19648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19650 if (!SWIG_IsOK(res1)) {
19651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19652 }
19653 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19654 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19655 if (!SWIG_IsOK(ecode2)) {
19656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19657 }
19658 arg2 = static_cast< size_t >(val2);
19659 ecode3 = SWIG_AsVal_int(obj2, &val3);
19660 if (!SWIG_IsOK(ecode3)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19662 }
19663 arg3 = static_cast< int >(val3);
19664 {
19665 PyThreadState* __tstate = wxPyBeginAllowThreads();
19666 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19667 wxPyEndAllowThreads(__tstate);
19668 if (PyErr_Occurred()) SWIG_fail;
19669 }
19670 {
19671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19672 }
19673 return resultobj;
19674fail:
19675 return NULL;
19676}
19677
19678
19679SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19680 PyObject *resultobj = 0;
19681 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19682 wxSize *arg2 = 0 ;
19683 void *argp1 = 0 ;
19684 int res1 = 0 ;
19685 wxSize temp2 ;
19686 PyObject * obj0 = 0 ;
19687 PyObject * obj1 = 0 ;
19688 char * kwnames[] = {
19689 (char *) "self",(char *) "size", NULL
19690 };
19691
19692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19694 if (!SWIG_IsOK(res1)) {
19695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19696 }
19697 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19698 {
19699 arg2 = &temp2;
19700 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19701 }
19702 {
19703 PyThreadState* __tstate = wxPyBeginAllowThreads();
19704 (arg1)->SetPageSize((wxSize const &)*arg2);
19705 wxPyEndAllowThreads(__tstate);
19706 if (PyErr_Occurred()) SWIG_fail;
19707 }
19708 resultobj = SWIG_Py_Void();
19709 return resultobj;
19710fail:
19711 return NULL;
19712}
19713
19714
19715SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19716 PyObject *resultobj = 0;
19717 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19718 wxSize *arg2 = 0 ;
19719 wxSize result;
19720 void *argp1 = 0 ;
19721 int res1 = 0 ;
19722 wxSize temp2 ;
19723 PyObject * obj0 = 0 ;
19724 PyObject * obj1 = 0 ;
19725 char * kwnames[] = {
19726 (char *) "self",(char *) "sizePage", NULL
19727 };
19728
19729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19731 if (!SWIG_IsOK(res1)) {
19732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19733 }
19734 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19735 {
19736 arg2 = &temp2;
19737 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19738 }
19739 {
19740 PyThreadState* __tstate = wxPyBeginAllowThreads();
19741 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19742 wxPyEndAllowThreads(__tstate);
19743 if (PyErr_Occurred()) SWIG_fail;
19744 }
19745 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19746 return resultobj;
19747fail:
19748 return NULL;
d55e5bfc
RD
19749}
19750
19751
554f62e9
RD
19752SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19753 PyObject *resultobj = 0;
19754 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19755 unsigned int result;
554f62e9
RD
19756 void *argp1 = 0 ;
19757 int res1 = 0 ;
19758 PyObject *swig_obj[1] ;
19759
19760 if (!args) SWIG_fail;
19761 swig_obj[0] = args;
19762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19763 if (!SWIG_IsOK(res1)) {
19764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19765 }
19766 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19767 {
19768 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19769 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
554f62e9
RD
19770 wxPyEndAllowThreads(__tstate);
19771 if (PyErr_Occurred()) SWIG_fail;
19772 }
e9d6f3a4 19773 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
19774 return resultobj;
19775fail:
19776 return NULL;
19777}
19778
19779
19780SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19781 PyObject *resultobj = 0;
19782 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19783 unsigned int arg2 ;
554f62e9
RD
19784 void *argp1 = 0 ;
19785 int res1 = 0 ;
e9d6f3a4 19786 unsigned int val2 ;
554f62e9
RD
19787 int ecode2 = 0 ;
19788 PyObject * obj0 = 0 ;
19789 PyObject * obj1 = 0 ;
19790 char * kwnames[] = {
19791 (char *) "self",(char *) "internalBorder", NULL
19792 };
19793
19794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19796 if (!SWIG_IsOK(res1)) {
19797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19798 }
19799 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19800 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 19801 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 19803 }
e9d6f3a4 19804 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 (arg1)->SetInternalBorder(arg2);
19808 wxPyEndAllowThreads(__tstate);
19809 if (PyErr_Occurred()) SWIG_fail;
19810 }
19811 resultobj = SWIG_Py_Void();
19812 return resultobj;
19813fail:
19814 return NULL;
d55e5bfc
RD
19815}
19816
19817
554f62e9
RD
19818SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19819 PyObject *resultobj = 0;
19820 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19821 bool result;
19822 void *argp1 = 0 ;
19823 int res1 = 0 ;
19824 PyObject *swig_obj[1] ;
19825
19826 if (!args) SWIG_fail;
19827 swig_obj[0] = args;
19828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19829 if (!SWIG_IsOK(res1)) {
19830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19831 }
19832 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 {
19840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19841 }
19842 return resultobj;
19843fail:
19844 return NULL;
19845}
19846
19847
e9d6f3a4
RD
19848SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19849 PyObject *resultobj = 0;
19850 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19851 int arg2 ;
19852 void *argp1 = 0 ;
19853 int res1 = 0 ;
19854 int val2 ;
19855 int ecode2 = 0 ;
19856 PyObject * obj0 = 0 ;
19857 PyObject * obj1 = 0 ;
19858 char * kwnames[] = {
19859 (char *) "self",(char *) "margin", NULL
19860 };
19861
19862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19864 if (!SWIG_IsOK(res1)) {
19865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19866 }
19867 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19868 ecode2 = SWIG_AsVal_int(obj1, &val2);
19869 if (!SWIG_IsOK(ecode2)) {
19870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19871 }
19872 arg2 = static_cast< int >(val2);
19873 {
19874 PyThreadState* __tstate = wxPyBeginAllowThreads();
19875 (arg1)->SetControlMargin(arg2);
19876 wxPyEndAllowThreads(__tstate);
19877 if (PyErr_Occurred()) SWIG_fail;
19878 }
19879 resultobj = SWIG_Py_Void();
19880 return resultobj;
19881fail:
19882 return NULL;
19883}
19884
19885
19886SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19887 PyObject *resultobj = 0;
19888 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19889 int result;
19890 void *argp1 = 0 ;
19891 int res1 = 0 ;
19892 PyObject *swig_obj[1] ;
19893
19894 if (!args) SWIG_fail;
19895 swig_obj[0] = args;
19896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19897 if (!SWIG_IsOK(res1)) {
19898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19899 }
19900 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19904 wxPyEndAllowThreads(__tstate);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 }
19907 resultobj = SWIG_From_int(static_cast< int >(result));
19908 return resultobj;
19909fail:
19910 return NULL;
19911}
19912
19913
554f62e9
RD
19914SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19915 PyObject *resultobj = 0;
19916 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19917 bool arg2 ;
19918 void *argp1 = 0 ;
19919 int res1 = 0 ;
19920 bool val2 ;
19921 int ecode2 = 0 ;
19922 PyObject * obj0 = 0 ;
19923 PyObject * obj1 = 0 ;
19924 char * kwnames[] = {
19925 (char *) "self",(char *) "fit", NULL
19926 };
19927
19928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19930 if (!SWIG_IsOK(res1)) {
19931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19932 }
19933 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19934 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19935 if (!SWIG_IsOK(ecode2)) {
19936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19937 }
19938 arg2 = static_cast< bool >(val2);
19939 {
19940 PyThreadState* __tstate = wxPyBeginAllowThreads();
19941 (arg1)->SetFitToCurrentPage(arg2);
19942 wxPyEndAllowThreads(__tstate);
19943 if (PyErr_Occurred()) SWIG_fail;
19944 }
19945 resultobj = SWIG_Py_Void();
19946 return resultobj;
19947fail:
19948 return NULL;
d55e5bfc
RD
19949}
19950
19951
554f62e9
RD
19952SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19953 PyObject *resultobj = 0;
19954 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19955 bool result;
19956 void *argp1 = 0 ;
19957 int res1 = 0 ;
19958 PyObject *swig_obj[1] ;
19959
19960 if (!args) SWIG_fail;
19961 swig_obj[0] = args;
19962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19963 if (!SWIG_IsOK(res1)) {
19964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19965 }
19966 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19967 {
19968 PyThreadState* __tstate = wxPyBeginAllowThreads();
19969 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19970 wxPyEndAllowThreads(__tstate);
19971 if (PyErr_Occurred()) SWIG_fail;
19972 }
19973 {
19974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19975 }
19976 return resultobj;
19977fail:
19978 return NULL;
19979}
19980
19981
e9d6f3a4
RD
19982SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19983 PyObject *resultobj = 0;
19984 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19985 wxSizer *result = 0 ;
19986 void *argp1 = 0 ;
19987 int res1 = 0 ;
19988 PyObject *swig_obj[1] ;
19989
19990 if (!args) SWIG_fail;
19991 swig_obj[0] = args;
19992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19993 if (!SWIG_IsOK(res1)) {
19994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19995 }
19996 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19997 {
19998 PyThreadState* __tstate = wxPyBeginAllowThreads();
19999 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20000 wxPyEndAllowThreads(__tstate);
20001 if (PyErr_Occurred()) SWIG_fail;
20002 }
20003 {
20004 resultobj = wxPyMake_wxObject(result, (bool)0);
20005 }
20006 return resultobj;
20007fail:
20008 return NULL;
20009}
20010
20011
554f62e9
RD
20012SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20013 PyObject *resultobj = 0;
20014 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20015 size_t arg2 ;
20016 bool result;
20017 void *argp1 = 0 ;
20018 int res1 = 0 ;
20019 size_t val2 ;
20020 int ecode2 = 0 ;
20021 PyObject * obj0 = 0 ;
20022 PyObject * obj1 = 0 ;
20023 char * kwnames[] = {
20024 (char *) "self",(char *) "n", NULL
20025 };
20026
20027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20029 if (!SWIG_IsOK(res1)) {
20030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20031 }
20032 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20033 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20034 if (!SWIG_IsOK(ecode2)) {
20035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20036 }
20037 arg2 = static_cast< size_t >(val2);
20038 {
20039 PyThreadState* __tstate = wxPyBeginAllowThreads();
20040 result = (bool)(arg1)->DeletePage(arg2);
20041 wxPyEndAllowThreads(__tstate);
20042 if (PyErr_Occurred()) SWIG_fail;
20043 }
20044 {
20045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20046 }
20047 return resultobj;
20048fail:
20049 return NULL;
20050}
20051
20052
20053SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20054 PyObject *resultobj = 0;
20055 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20056 size_t arg2 ;
20057 bool result;
20058 void *argp1 = 0 ;
20059 int res1 = 0 ;
20060 size_t val2 ;
20061 int ecode2 = 0 ;
20062 PyObject * obj0 = 0 ;
20063 PyObject * obj1 = 0 ;
20064 char * kwnames[] = {
20065 (char *) "self",(char *) "n", NULL
20066 };
20067
20068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20070 if (!SWIG_IsOK(res1)) {
20071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20072 }
20073 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20074 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20075 if (!SWIG_IsOK(ecode2)) {
20076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20077 }
20078 arg2 = static_cast< size_t >(val2);
20079 {
20080 PyThreadState* __tstate = wxPyBeginAllowThreads();
20081 result = (bool)(arg1)->RemovePage(arg2);
20082 wxPyEndAllowThreads(__tstate);
20083 if (PyErr_Occurred()) SWIG_fail;
20084 }
20085 {
20086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20087 }
20088 return resultobj;
20089fail:
20090 return NULL;
d55e5bfc
RD
20091}
20092
20093
554f62e9
RD
20094SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20095 PyObject *resultobj = 0;
20096 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20097 bool result;
20098 void *argp1 = 0 ;
20099 int res1 = 0 ;
20100 PyObject *swig_obj[1] ;
20101
20102 if (!args) SWIG_fail;
20103 swig_obj[0] = args;
20104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20105 if (!SWIG_IsOK(res1)) {
20106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20107 }
20108 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20109 {
20110 PyThreadState* __tstate = wxPyBeginAllowThreads();
20111 result = (bool)(arg1)->DeleteAllPages();
20112 wxPyEndAllowThreads(__tstate);
20113 if (PyErr_Occurred()) SWIG_fail;
20114 }
20115 {
20116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20117 }
20118 return resultobj;
20119fail:
20120 return NULL;
20121}
20122
20123
20124SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20125 PyObject *resultobj = 0;
20126 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20127 wxWindow *arg2 = (wxWindow *) 0 ;
20128 wxString *arg3 = 0 ;
20129 bool arg4 = (bool) false ;
20130 int arg5 = (int) -1 ;
20131 bool result;
20132 void *argp1 = 0 ;
20133 int res1 = 0 ;
20134 void *argp2 = 0 ;
20135 int res2 = 0 ;
20136 bool temp3 = false ;
20137 bool val4 ;
20138 int ecode4 = 0 ;
20139 int val5 ;
20140 int ecode5 = 0 ;
20141 PyObject * obj0 = 0 ;
20142 PyObject * obj1 = 0 ;
20143 PyObject * obj2 = 0 ;
20144 PyObject * obj3 = 0 ;
20145 PyObject * obj4 = 0 ;
20146 char * kwnames[] = {
20147 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20148 };
20149
20150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20152 if (!SWIG_IsOK(res1)) {
20153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20154 }
20155 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20157 if (!SWIG_IsOK(res2)) {
20158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20159 }
20160 arg2 = reinterpret_cast< wxWindow * >(argp2);
20161 {
20162 arg3 = wxString_in_helper(obj2);
20163 if (arg3 == NULL) SWIG_fail;
20164 temp3 = true;
20165 }
20166 if (obj3) {
20167 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20168 if (!SWIG_IsOK(ecode4)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20170 }
20171 arg4 = static_cast< bool >(val4);
20172 }
20173 if (obj4) {
20174 ecode5 = SWIG_AsVal_int(obj4, &val5);
20175 if (!SWIG_IsOK(ecode5)) {
20176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20177 }
20178 arg5 = static_cast< int >(val5);
20179 }
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 {
20187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20188 }
20189 {
20190 if (temp3)
20191 delete arg3;
20192 }
20193 return resultobj;
20194fail:
20195 {
20196 if (temp3)
20197 delete arg3;
20198 }
20199 return NULL;
20200}
20201
20202
20203SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20204 PyObject *resultobj = 0;
20205 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20206 size_t arg2 ;
20207 wxWindow *arg3 = (wxWindow *) 0 ;
20208 wxString *arg4 = 0 ;
20209 bool arg5 = (bool) false ;
20210 int arg6 = (int) -1 ;
20211 bool result;
20212 void *argp1 = 0 ;
20213 int res1 = 0 ;
20214 size_t val2 ;
20215 int ecode2 = 0 ;
20216 void *argp3 = 0 ;
20217 int res3 = 0 ;
20218 bool temp4 = false ;
20219 bool val5 ;
20220 int ecode5 = 0 ;
20221 int val6 ;
20222 int ecode6 = 0 ;
20223 PyObject * obj0 = 0 ;
20224 PyObject * obj1 = 0 ;
20225 PyObject * obj2 = 0 ;
20226 PyObject * obj3 = 0 ;
20227 PyObject * obj4 = 0 ;
20228 PyObject * obj5 = 0 ;
20229 char * kwnames[] = {
20230 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20231 };
20232
20233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20235 if (!SWIG_IsOK(res1)) {
20236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20237 }
20238 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20239 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20240 if (!SWIG_IsOK(ecode2)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20242 }
20243 arg2 = static_cast< size_t >(val2);
20244 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20245 if (!SWIG_IsOK(res3)) {
20246 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20247 }
20248 arg3 = reinterpret_cast< wxWindow * >(argp3);
20249 {
20250 arg4 = wxString_in_helper(obj3);
20251 if (arg4 == NULL) SWIG_fail;
20252 temp4 = true;
20253 }
20254 if (obj4) {
20255 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20256 if (!SWIG_IsOK(ecode5)) {
20257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20258 }
20259 arg5 = static_cast< bool >(val5);
20260 }
20261 if (obj5) {
20262 ecode6 = SWIG_AsVal_int(obj5, &val6);
20263 if (!SWIG_IsOK(ecode6)) {
20264 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20265 }
20266 arg6 = static_cast< int >(val6);
20267 }
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20271 wxPyEndAllowThreads(__tstate);
20272 if (PyErr_Occurred()) SWIG_fail;
20273 }
20274 {
20275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20276 }
20277 {
20278 if (temp4)
20279 delete arg4;
20280 }
20281 return resultobj;
20282fail:
20283 {
20284 if (temp4)
20285 delete arg4;
20286 }
20287 return NULL;
20288}
20289
20290
20291SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20292 PyObject *resultobj = 0;
20293 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20294 size_t arg2 ;
20295 int result;
20296 void *argp1 = 0 ;
20297 int res1 = 0 ;
20298 size_t val2 ;
20299 int ecode2 = 0 ;
20300 PyObject * obj0 = 0 ;
20301 PyObject * obj1 = 0 ;
20302 char * kwnames[] = {
20303 (char *) "self",(char *) "n", NULL
20304 };
20305
20306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20308 if (!SWIG_IsOK(res1)) {
20309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20310 }
20311 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20312 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20313 if (!SWIG_IsOK(ecode2)) {
20314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20315 }
20316 arg2 = static_cast< size_t >(val2);
20317 {
20318 PyThreadState* __tstate = wxPyBeginAllowThreads();
20319 result = (int)(arg1)->SetSelection(arg2);
20320 wxPyEndAllowThreads(__tstate);
20321 if (PyErr_Occurred()) SWIG_fail;
20322 }
20323 resultobj = SWIG_From_int(static_cast< int >(result));
20324 return resultobj;
20325fail:
20326 return NULL;
20327}
20328
20329
b39fe951
RD
20330SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj = 0;
20332 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20333 size_t arg2 ;
20334 int result;
20335 void *argp1 = 0 ;
20336 int res1 = 0 ;
20337 size_t val2 ;
20338 int ecode2 = 0 ;
20339 PyObject * obj0 = 0 ;
20340 PyObject * obj1 = 0 ;
20341 char * kwnames[] = {
20342 (char *) "self",(char *) "n", NULL
20343 };
20344
20345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20347 if (!SWIG_IsOK(res1)) {
20348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20349 }
20350 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20351 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20352 if (!SWIG_IsOK(ecode2)) {
20353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20354 }
20355 arg2 = static_cast< size_t >(val2);
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 result = (int)(arg1)->ChangeSelection(arg2);
20359 wxPyEndAllowThreads(__tstate);
20360 if (PyErr_Occurred()) SWIG_fail;
20361 }
20362 resultobj = SWIG_From_int(static_cast< int >(result));
20363 return resultobj;
20364fail:
20365 return NULL;
20366}
20367
20368
554f62e9
RD
20369SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20370 PyObject *resultobj = 0;
20371 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20372 bool arg2 = (bool) true ;
20373 void *argp1 = 0 ;
20374 int res1 = 0 ;
20375 bool val2 ;
20376 int ecode2 = 0 ;
20377 PyObject * obj0 = 0 ;
20378 PyObject * obj1 = 0 ;
20379 char * kwnames[] = {
20380 (char *) "self",(char *) "forward", NULL
20381 };
20382
20383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20385 if (!SWIG_IsOK(res1)) {
20386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20387 }
20388 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20389 if (obj1) {
20390 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20391 if (!SWIG_IsOK(ecode2)) {
20392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20393 }
20394 arg2 = static_cast< bool >(val2);
20395 }
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 (arg1)->AdvanceSelection(arg2);
20399 wxPyEndAllowThreads(__tstate);
20400 if (PyErr_Occurred()) SWIG_fail;
20401 }
20402 resultobj = SWIG_Py_Void();
20403 return resultobj;
20404fail:
20405 return NULL;
20406}
20407
20408
704eda0c
RD
20409SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20410 PyObject *resultobj = 0;
20411 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20412 wxPoint *arg2 = 0 ;
20413 long *arg3 = (long *) 0 ;
20414 int result;
20415 void *argp1 = 0 ;
20416 int res1 = 0 ;
20417 wxPoint temp2 ;
20418 long temp3 ;
20419 int res3 = SWIG_TMPOBJ ;
20420 PyObject * obj0 = 0 ;
20421 PyObject * obj1 = 0 ;
20422 char * kwnames[] = {
20423 (char *) "self",(char *) "pt", NULL
20424 };
20425
20426 arg3 = &temp3;
20427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20431 }
20432 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20433 {
20434 arg2 = &temp2;
20435 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20436 }
20437 {
20438 PyThreadState* __tstate = wxPyBeginAllowThreads();
20439 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20440 wxPyEndAllowThreads(__tstate);
20441 if (PyErr_Occurred()) SWIG_fail;
20442 }
20443 resultobj = SWIG_From_int(static_cast< int >(result));
20444 if (SWIG_IsTmpObj(res3)) {
20445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20446 } else {
20447 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20449 }
20450 return resultobj;
20451fail:
20452 return NULL;
20453}
20454
20455
554f62e9
RD
20456SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20457 PyObject *resultobj = 0;
20458 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20459 SwigValueWrapper<wxVisualAttributes > result;
20460 int val1 ;
20461 int ecode1 = 0 ;
20462 PyObject * obj0 = 0 ;
20463 char * kwnames[] = {
20464 (char *) "variant", NULL
20465 };
20466
20467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20468 if (obj0) {
20469 ecode1 = SWIG_AsVal_int(obj0, &val1);
20470 if (!SWIG_IsOK(ecode1)) {
20471 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20472 }
20473 arg1 = static_cast< wxWindowVariant >(val1);
20474 }
20475 {
20476 if (!wxPyCheckForApp()) SWIG_fail;
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20483 return resultobj;
20484fail:
20485 return NULL;
20486}
20487
20488
20489SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20490 PyObject *obj;
20491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20493 return SWIG_Py_Void();
20494}
20495
20496SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20497 PyObject *resultobj = 0;
20498 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20499 int arg2 = (int) 0 ;
20500 int arg3 = (int) -1 ;
20501 int arg4 = (int) -1 ;
20502 wxBookCtrlBaseEvent *result = 0 ;
20503 int val1 ;
20504 int ecode1 = 0 ;
20505 int val2 ;
20506 int ecode2 = 0 ;
20507 int val3 ;
20508 int ecode3 = 0 ;
20509 int val4 ;
20510 int ecode4 = 0 ;
20511 PyObject * obj0 = 0 ;
20512 PyObject * obj1 = 0 ;
20513 PyObject * obj2 = 0 ;
20514 PyObject * obj3 = 0 ;
20515 char * kwnames[] = {
20516 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20517 };
20518
20519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20520 if (obj0) {
20521 ecode1 = SWIG_AsVal_int(obj0, &val1);
20522 if (!SWIG_IsOK(ecode1)) {
20523 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20524 }
20525 arg1 = static_cast< wxEventType >(val1);
20526 }
20527 if (obj1) {
20528 ecode2 = SWIG_AsVal_int(obj1, &val2);
20529 if (!SWIG_IsOK(ecode2)) {
20530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20531 }
20532 arg2 = static_cast< int >(val2);
20533 }
20534 if (obj2) {
20535 ecode3 = SWIG_AsVal_int(obj2, &val3);
20536 if (!SWIG_IsOK(ecode3)) {
20537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20538 }
20539 arg3 = static_cast< int >(val3);
20540 }
20541 if (obj3) {
20542 ecode4 = SWIG_AsVal_int(obj3, &val4);
20543 if (!SWIG_IsOK(ecode4)) {
20544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20545 }
20546 arg4 = static_cast< int >(val4);
20547 }
20548 {
20549 PyThreadState* __tstate = wxPyBeginAllowThreads();
20550 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20551 wxPyEndAllowThreads(__tstate);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 }
20554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20555 return resultobj;
20556fail:
20557 return NULL;
d55e5bfc
RD
20558}
20559
20560
554f62e9
RD
20561SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20562 PyObject *resultobj = 0;
20563 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20564 int result;
20565 void *argp1 = 0 ;
20566 int res1 = 0 ;
20567 PyObject *swig_obj[1] ;
20568
20569 if (!args) SWIG_fail;
20570 swig_obj[0] = args;
20571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20572 if (!SWIG_IsOK(res1)) {
20573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20574 }
20575 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20576 {
20577 PyThreadState* __tstate = wxPyBeginAllowThreads();
20578 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20579 wxPyEndAllowThreads(__tstate);
20580 if (PyErr_Occurred()) SWIG_fail;
20581 }
20582 resultobj = SWIG_From_int(static_cast< int >(result));
20583 return resultobj;
20584fail:
20585 return NULL;
20586}
20587
20588
20589SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20590 PyObject *resultobj = 0;
20591 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20592 int arg2 ;
20593 void *argp1 = 0 ;
20594 int res1 = 0 ;
20595 int val2 ;
20596 int ecode2 = 0 ;
20597 PyObject * obj0 = 0 ;
20598 PyObject * obj1 = 0 ;
20599 char * kwnames[] = {
20600 (char *) "self",(char *) "nSel", NULL
20601 };
20602
20603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20605 if (!SWIG_IsOK(res1)) {
20606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20607 }
20608 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20609 ecode2 = SWIG_AsVal_int(obj1, &val2);
20610 if (!SWIG_IsOK(ecode2)) {
20611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20612 }
20613 arg2 = static_cast< int >(val2);
20614 {
20615 PyThreadState* __tstate = wxPyBeginAllowThreads();
20616 (arg1)->SetSelection(arg2);
20617 wxPyEndAllowThreads(__tstate);
20618 if (PyErr_Occurred()) SWIG_fail;
20619 }
20620 resultobj = SWIG_Py_Void();
20621 return resultobj;
20622fail:
20623 return NULL;
d55e5bfc
RD
20624}
20625
20626
554f62e9
RD
20627SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20628 PyObject *resultobj = 0;
20629 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20630 int result;
20631 void *argp1 = 0 ;
20632 int res1 = 0 ;
20633 PyObject *swig_obj[1] ;
20634
20635 if (!args) SWIG_fail;
20636 swig_obj[0] = args;
20637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20638 if (!SWIG_IsOK(res1)) {
20639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20640 }
20641 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20642 {
20643 PyThreadState* __tstate = wxPyBeginAllowThreads();
20644 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 resultobj = SWIG_From_int(static_cast< int >(result));
20649 return resultobj;
20650fail:
20651 return NULL;
20652}
20653
20654
20655SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20656 PyObject *resultobj = 0;
20657 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20658 int arg2 ;
20659 void *argp1 = 0 ;
20660 int res1 = 0 ;
20661 int val2 ;
20662 int ecode2 = 0 ;
20663 PyObject * obj0 = 0 ;
20664 PyObject * obj1 = 0 ;
20665 char * kwnames[] = {
20666 (char *) "self",(char *) "nOldSel", NULL
20667 };
20668
20669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20671 if (!SWIG_IsOK(res1)) {
20672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20673 }
20674 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20675 ecode2 = SWIG_AsVal_int(obj1, &val2);
20676 if (!SWIG_IsOK(ecode2)) {
20677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20678 }
20679 arg2 = static_cast< int >(val2);
20680 {
20681 PyThreadState* __tstate = wxPyBeginAllowThreads();
20682 (arg1)->SetOldSelection(arg2);
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
20686 resultobj = SWIG_Py_Void();
20687 return resultobj;
20688fail:
20689 return NULL;
20690}
20691
20692
20693SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20694 PyObject *obj;
20695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20696 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20697 return SWIG_Py_Void();
20698}
20699
20700SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20701 return SWIG_Python_InitShadowInstance(args);
20702}
20703
20704SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20705 PyObject *resultobj = 0;
20706 wxWindow *arg1 = (wxWindow *) 0 ;
20707 int arg2 = (int) -1 ;
20708 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20709 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20710 wxSize const &arg4_defvalue = wxDefaultSize ;
20711 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20712 long arg5 = (long) 0 ;
20713 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20714 wxString *arg6 = (wxString *) &arg6_defvalue ;
20715 wxNotebook *result = 0 ;
20716 void *argp1 = 0 ;
20717 int res1 = 0 ;
20718 int val2 ;
20719 int ecode2 = 0 ;
20720 wxPoint temp3 ;
20721 wxSize temp4 ;
20722 long val5 ;
20723 int ecode5 = 0 ;
20724 bool temp6 = false ;
20725 PyObject * obj0 = 0 ;
20726 PyObject * obj1 = 0 ;
20727 PyObject * obj2 = 0 ;
20728 PyObject * obj3 = 0 ;
20729 PyObject * obj4 = 0 ;
20730 PyObject * obj5 = 0 ;
20731 char * kwnames[] = {
20732 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20733 };
20734
20735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20737 if (!SWIG_IsOK(res1)) {
20738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20739 }
20740 arg1 = reinterpret_cast< wxWindow * >(argp1);
20741 if (obj1) {
20742 ecode2 = SWIG_AsVal_int(obj1, &val2);
20743 if (!SWIG_IsOK(ecode2)) {
20744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20745 }
20746 arg2 = static_cast< int >(val2);
20747 }
20748 if (obj2) {
093d3ff1 20749 {
554f62e9
RD
20750 arg3 = &temp3;
20751 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20752 }
554f62e9
RD
20753 }
20754 if (obj3) {
d55e5bfc 20755 {
554f62e9
RD
20756 arg4 = &temp4;
20757 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20758 }
554f62e9
RD
20759 }
20760 if (obj4) {
20761 ecode5 = SWIG_AsVal_long(obj4, &val5);
20762 if (!SWIG_IsOK(ecode5)) {
20763 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20764 }
20765 arg5 = static_cast< long >(val5);
20766 }
20767 if (obj5) {
20768 {
20769 arg6 = wxString_in_helper(obj5);
20770 if (arg6 == NULL) SWIG_fail;
20771 temp6 = true;
20772 }
20773 }
20774 {
20775 if (!wxPyCheckForApp()) SWIG_fail;
20776 PyThreadState* __tstate = wxPyBeginAllowThreads();
20777 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20778 wxPyEndAllowThreads(__tstate);
20779 if (PyErr_Occurred()) SWIG_fail;
20780 }
20781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20782 {
20783 if (temp6)
20784 delete arg6;
20785 }
20786 return resultobj;
20787fail:
20788 {
20789 if (temp6)
20790 delete arg6;
20791 }
20792 return NULL;
d55e5bfc
RD
20793}
20794
20795
554f62e9
RD
20796SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20797 PyObject *resultobj = 0;
20798 wxNotebook *result = 0 ;
20799
20800 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20801 {
20802 if (!wxPyCheckForApp()) SWIG_fail;
20803 PyThreadState* __tstate = wxPyBeginAllowThreads();
20804 result = (wxNotebook *)new wxNotebook();
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20809 return resultobj;
20810fail:
20811 return NULL;
20812}
20813
20814
20815SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20816 PyObject *resultobj = 0;
20817 wxNotebook *arg1 = (wxNotebook *) 0 ;
20818 wxWindow *arg2 = (wxWindow *) 0 ;
20819 int arg3 = (int) -1 ;
20820 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20821 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20822 wxSize const &arg5_defvalue = wxDefaultSize ;
20823 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20824 long arg6 = (long) 0 ;
20825 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20826 wxString *arg7 = (wxString *) &arg7_defvalue ;
20827 bool result;
20828 void *argp1 = 0 ;
20829 int res1 = 0 ;
20830 void *argp2 = 0 ;
20831 int res2 = 0 ;
20832 int val3 ;
20833 int ecode3 = 0 ;
20834 wxPoint temp4 ;
20835 wxSize temp5 ;
20836 long val6 ;
20837 int ecode6 = 0 ;
20838 bool temp7 = false ;
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841 PyObject * obj2 = 0 ;
20842 PyObject * obj3 = 0 ;
20843 PyObject * obj4 = 0 ;
20844 PyObject * obj5 = 0 ;
20845 PyObject * obj6 = 0 ;
20846 char * kwnames[] = {
20847 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20848 };
20849
20850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20852 if (!SWIG_IsOK(res1)) {
20853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20854 }
20855 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20857 if (!SWIG_IsOK(res2)) {
20858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20859 }
20860 arg2 = reinterpret_cast< wxWindow * >(argp2);
20861 if (obj2) {
20862 ecode3 = SWIG_AsVal_int(obj2, &val3);
20863 if (!SWIG_IsOK(ecode3)) {
20864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20865 }
20866 arg3 = static_cast< int >(val3);
20867 }
20868 if (obj3) {
093d3ff1 20869 {
554f62e9
RD
20870 arg4 = &temp4;
20871 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20872 }
554f62e9
RD
20873 }
20874 if (obj4) {
093d3ff1 20875 {
554f62e9
RD
20876 arg5 = &temp5;
20877 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 20878 }
554f62e9
RD
20879 }
20880 if (obj5) {
20881 ecode6 = SWIG_AsVal_long(obj5, &val6);
20882 if (!SWIG_IsOK(ecode6)) {
20883 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20884 }
20885 arg6 = static_cast< long >(val6);
20886 }
20887 if (obj6) {
d55e5bfc 20888 {
554f62e9
RD
20889 arg7 = wxString_in_helper(obj6);
20890 if (arg7 == NULL) SWIG_fail;
20891 temp7 = true;
d55e5bfc 20892 }
554f62e9
RD
20893 }
20894 {
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 {
20901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20902 }
20903 {
20904 if (temp7)
20905 delete arg7;
20906 }
20907 return resultobj;
20908fail:
20909 {
20910 if (temp7)
20911 delete arg7;
20912 }
20913 return NULL;
f20a2e1f
RD
20914}
20915
20916
554f62e9
RD
20917SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20918 PyObject *resultobj = 0;
20919 wxNotebook *arg1 = (wxNotebook *) 0 ;
20920 int result;
20921 void *argp1 = 0 ;
20922 int res1 = 0 ;
20923 PyObject *swig_obj[1] ;
20924
20925 if (!args) SWIG_fail;
20926 swig_obj[0] = args;
20927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20928 if (!SWIG_IsOK(res1)) {
20929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20930 }
20931 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20932 {
20933 PyThreadState* __tstate = wxPyBeginAllowThreads();
20934 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20935 wxPyEndAllowThreads(__tstate);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 }
20938 resultobj = SWIG_From_int(static_cast< int >(result));
20939 return resultobj;
20940fail:
20941 return NULL;
20942}
20943
20944
20945SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj = 0;
20947 wxNotebook *arg1 = (wxNotebook *) 0 ;
20948 wxSize *arg2 = 0 ;
20949 void *argp1 = 0 ;
20950 int res1 = 0 ;
20951 wxSize temp2 ;
20952 PyObject * obj0 = 0 ;
20953 PyObject * obj1 = 0 ;
20954 char * kwnames[] = {
20955 (char *) "self",(char *) "padding", NULL
20956 };
20957
20958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20960 if (!SWIG_IsOK(res1)) {
20961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20962 }
20963 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20964 {
20965 arg2 = &temp2;
20966 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20967 }
20968 {
20969 PyThreadState* __tstate = wxPyBeginAllowThreads();
20970 (arg1)->SetPadding((wxSize const &)*arg2);
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_Py_Void();
20975 return resultobj;
20976fail:
20977 return NULL;
20978}
20979
20980
20981SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj = 0;
20983 wxNotebook *arg1 = (wxNotebook *) 0 ;
20984 wxSize *arg2 = 0 ;
20985 void *argp1 = 0 ;
20986 int res1 = 0 ;
20987 wxSize temp2 ;
20988 PyObject * obj0 = 0 ;
20989 PyObject * obj1 = 0 ;
20990 char * kwnames[] = {
20991 (char *) "self",(char *) "sz", NULL
20992 };
20993
20994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20996 if (!SWIG_IsOK(res1)) {
20997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20998 }
20999 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21000 {
21001 arg2 = &temp2;
21002 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21003 }
21004 {
21005 PyThreadState* __tstate = wxPyBeginAllowThreads();
21006 (arg1)->SetTabSize((wxSize const &)*arg2);
21007 wxPyEndAllowThreads(__tstate);
21008 if (PyErr_Occurred()) SWIG_fail;
21009 }
21010 resultobj = SWIG_Py_Void();
21011 return resultobj;
21012fail:
21013 return NULL;
21014}
21015
21016
554f62e9
RD
21017SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21018 PyObject *resultobj = 0;
21019 wxNotebook *arg1 = (wxNotebook *) 0 ;
21020 wxColour result;
21021 void *argp1 = 0 ;
21022 int res1 = 0 ;
21023 PyObject *swig_obj[1] ;
21024
21025 if (!args) SWIG_fail;
21026 swig_obj[0] = args;
21027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21028 if (!SWIG_IsOK(res1)) {
21029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21030 }
21031 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21032 {
21033 PyThreadState* __tstate = wxPyBeginAllowThreads();
21034 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21035 wxPyEndAllowThreads(__tstate);
21036 if (PyErr_Occurred()) SWIG_fail;
21037 }
21038 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21039 return resultobj;
21040fail:
21041 return NULL;
21042}
21043
21044
21045SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21046 PyObject *resultobj = 0;
21047 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21048 SwigValueWrapper<wxVisualAttributes > result;
21049 int val1 ;
21050 int ecode1 = 0 ;
21051 PyObject * obj0 = 0 ;
21052 char * kwnames[] = {
21053 (char *) "variant", NULL
21054 };
21055
21056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21057 if (obj0) {
21058 ecode1 = SWIG_AsVal_int(obj0, &val1);
21059 if (!SWIG_IsOK(ecode1)) {
21060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21061 }
21062 arg1 = static_cast< wxWindowVariant >(val1);
21063 }
21064 {
21065 if (!wxPyCheckForApp()) SWIG_fail;
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 result = wxNotebook::GetClassDefaultAttributes(arg1);
21068 wxPyEndAllowThreads(__tstate);
21069 if (PyErr_Occurred()) SWIG_fail;
21070 }
21071 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21072 return resultobj;
21073fail:
21074 return NULL;
21075}
21076
21077
b39fe951
RD
21078SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21079 PyObject *resultobj = 0;
21080 wxNotebook *arg1 = (wxNotebook *) 0 ;
21081 int arg2 ;
21082 bool result;
21083 void *argp1 = 0 ;
21084 int res1 = 0 ;
21085 int val2 ;
21086 int ecode2 = 0 ;
21087 PyObject * obj0 = 0 ;
21088 PyObject * obj1 = 0 ;
21089 char * kwnames[] = {
21090 (char *) "self",(char *) "nPage", NULL
21091 };
21092
21093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21095 if (!SWIG_IsOK(res1)) {
21096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21097 }
21098 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21099 ecode2 = SWIG_AsVal_int(obj1, &val2);
21100 if (!SWIG_IsOK(ecode2)) {
21101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21102 }
21103 arg2 = static_cast< int >(val2);
21104 {
21105 PyThreadState* __tstate = wxPyBeginAllowThreads();
21106 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21107 wxPyEndAllowThreads(__tstate);
21108 if (PyErr_Occurred()) SWIG_fail;
21109 }
21110 {
21111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21112 }
21113 return resultobj;
21114fail:
21115 return NULL;
21116}
21117
21118
21119SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21120 PyObject *resultobj = 0;
21121 wxNotebook *arg1 = (wxNotebook *) 0 ;
21122 int arg2 ;
21123 int arg3 = (int) -1 ;
21124 void *argp1 = 0 ;
21125 int res1 = 0 ;
21126 int val2 ;
21127 int ecode2 = 0 ;
21128 int val3 ;
21129 int ecode3 = 0 ;
21130 PyObject * obj0 = 0 ;
21131 PyObject * obj1 = 0 ;
21132 PyObject * obj2 = 0 ;
21133 char * kwnames[] = {
21134 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21135 };
21136
21137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21139 if (!SWIG_IsOK(res1)) {
21140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21141 }
21142 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21143 ecode2 = SWIG_AsVal_int(obj1, &val2);
21144 if (!SWIG_IsOK(ecode2)) {
21145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21146 }
21147 arg2 = static_cast< int >(val2);
21148 if (obj2) {
21149 ecode3 = SWIG_AsVal_int(obj2, &val3);
21150 if (!SWIG_IsOK(ecode3)) {
21151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21152 }
21153 arg3 = static_cast< int >(val3);
21154 }
21155 {
21156 PyThreadState* __tstate = wxPyBeginAllowThreads();
21157 (arg1)->SendPageChangedEvent(arg2,arg3);
21158 wxPyEndAllowThreads(__tstate);
21159 if (PyErr_Occurred()) SWIG_fail;
21160 }
21161 resultobj = SWIG_Py_Void();
21162 return resultobj;
21163fail:
21164 return NULL;
21165}
21166
21167
554f62e9
RD
21168SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21169 PyObject *obj;
21170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21171 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21172 return SWIG_Py_Void();
21173}
21174
21175SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21176 return SWIG_Python_InitShadowInstance(args);
21177}
21178
21179SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21180 PyObject *resultobj = 0;
21181 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21182 int arg2 = (int) 0 ;
21183 int arg3 = (int) -1 ;
21184 int arg4 = (int) -1 ;
21185 wxNotebookEvent *result = 0 ;
21186 int val1 ;
21187 int ecode1 = 0 ;
21188 int val2 ;
21189 int ecode2 = 0 ;
21190 int val3 ;
21191 int ecode3 = 0 ;
21192 int val4 ;
21193 int ecode4 = 0 ;
21194 PyObject * obj0 = 0 ;
21195 PyObject * obj1 = 0 ;
21196 PyObject * obj2 = 0 ;
21197 PyObject * obj3 = 0 ;
21198 char * kwnames[] = {
21199 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21200 };
21201
21202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21203 if (obj0) {
21204 ecode1 = SWIG_AsVal_int(obj0, &val1);
21205 if (!SWIG_IsOK(ecode1)) {
21206 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21207 }
21208 arg1 = static_cast< wxEventType >(val1);
21209 }
21210 if (obj1) {
21211 ecode2 = SWIG_AsVal_int(obj1, &val2);
21212 if (!SWIG_IsOK(ecode2)) {
21213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21214 }
21215 arg2 = static_cast< int >(val2);
21216 }
21217 if (obj2) {
21218 ecode3 = SWIG_AsVal_int(obj2, &val3);
21219 if (!SWIG_IsOK(ecode3)) {
21220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21221 }
21222 arg3 = static_cast< int >(val3);
21223 }
21224 if (obj3) {
21225 ecode4 = SWIG_AsVal_int(obj3, &val4);
21226 if (!SWIG_IsOK(ecode4)) {
21227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21228 }
21229 arg4 = static_cast< int >(val4);
21230 }
21231 {
21232 PyThreadState* __tstate = wxPyBeginAllowThreads();
21233 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21234 wxPyEndAllowThreads(__tstate);
21235 if (PyErr_Occurred()) SWIG_fail;
21236 }
21237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21238 return resultobj;
21239fail:
21240 return NULL;
21241}
21242
21243
21244SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21245 PyObject *obj;
21246 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21247 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21248 return SWIG_Py_Void();
21249}
21250
21251SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21252 return SWIG_Python_InitShadowInstance(args);
21253}
21254
21255SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21256 PyObject *resultobj = 0;
21257 wxWindow *arg1 = (wxWindow *) 0 ;
21258 int arg2 = (int) -1 ;
21259 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21260 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21261 wxSize const &arg4_defvalue = wxDefaultSize ;
21262 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21263 long arg5 = (long) 0 ;
21264 wxString const &arg6_defvalue = wxPyEmptyString ;
21265 wxString *arg6 = (wxString *) &arg6_defvalue ;
21266 wxListbook *result = 0 ;
21267 void *argp1 = 0 ;
21268 int res1 = 0 ;
21269 int val2 ;
21270 int ecode2 = 0 ;
21271 wxPoint temp3 ;
21272 wxSize temp4 ;
21273 long val5 ;
21274 int ecode5 = 0 ;
21275 bool temp6 = false ;
21276 PyObject * obj0 = 0 ;
21277 PyObject * obj1 = 0 ;
21278 PyObject * obj2 = 0 ;
21279 PyObject * obj3 = 0 ;
21280 PyObject * obj4 = 0 ;
21281 PyObject * obj5 = 0 ;
21282 char * kwnames[] = {
21283 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21284 };
21285
21286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21288 if (!SWIG_IsOK(res1)) {
21289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21290 }
21291 arg1 = reinterpret_cast< wxWindow * >(argp1);
21292 if (obj1) {
21293 ecode2 = SWIG_AsVal_int(obj1, &val2);
21294 if (!SWIG_IsOK(ecode2)) {
21295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21296 }
21297 arg2 = static_cast< int >(val2);
21298 }
21299 if (obj2) {
21300 {
21301 arg3 = &temp3;
21302 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 21303 }
554f62e9
RD
21304 }
21305 if (obj3) {
d55e5bfc 21306 {
554f62e9
RD
21307 arg4 = &temp4;
21308 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21309 }
554f62e9
RD
21310 }
21311 if (obj4) {
21312 ecode5 = SWIG_AsVal_long(obj4, &val5);
21313 if (!SWIG_IsOK(ecode5)) {
21314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21315 }
21316 arg5 = static_cast< long >(val5);
21317 }
21318 if (obj5) {
d55e5bfc 21319 {
554f62e9
RD
21320 arg6 = wxString_in_helper(obj5);
21321 if (arg6 == NULL) SWIG_fail;
21322 temp6 = true;
d55e5bfc 21323 }
554f62e9
RD
21324 }
21325 {
21326 if (!wxPyCheckForApp()) SWIG_fail;
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21329 wxPyEndAllowThreads(__tstate);
21330 if (PyErr_Occurred()) SWIG_fail;
21331 }
21332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21333 {
21334 if (temp6)
21335 delete arg6;
21336 }
21337 return resultobj;
21338fail:
21339 {
21340 if (temp6)
21341 delete arg6;
21342 }
21343 return NULL;
d55e5bfc
RD
21344}
21345
21346
554f62e9
RD
21347SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21348 PyObject *resultobj = 0;
21349 wxListbook *result = 0 ;
21350
21351 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21352 {
21353 if (!wxPyCheckForApp()) SWIG_fail;
21354 PyThreadState* __tstate = wxPyBeginAllowThreads();
21355 result = (wxListbook *)new wxListbook();
21356 wxPyEndAllowThreads(__tstate);
21357 if (PyErr_Occurred()) SWIG_fail;
21358 }
21359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21360 return resultobj;
21361fail:
21362 return NULL;
21363}
21364
21365
21366SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21367 PyObject *resultobj = 0;
21368 wxListbook *arg1 = (wxListbook *) 0 ;
21369 wxWindow *arg2 = (wxWindow *) 0 ;
21370 int arg3 = (int) -1 ;
21371 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21372 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21373 wxSize const &arg5_defvalue = wxDefaultSize ;
21374 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21375 long arg6 = (long) 0 ;
21376 wxString const &arg7_defvalue = wxPyEmptyString ;
21377 wxString *arg7 = (wxString *) &arg7_defvalue ;
21378 bool result;
21379 void *argp1 = 0 ;
21380 int res1 = 0 ;
21381 void *argp2 = 0 ;
21382 int res2 = 0 ;
21383 int val3 ;
21384 int ecode3 = 0 ;
21385 wxPoint temp4 ;
21386 wxSize temp5 ;
21387 long val6 ;
21388 int ecode6 = 0 ;
21389 bool temp7 = false ;
21390 PyObject * obj0 = 0 ;
21391 PyObject * obj1 = 0 ;
21392 PyObject * obj2 = 0 ;
21393 PyObject * obj3 = 0 ;
21394 PyObject * obj4 = 0 ;
21395 PyObject * obj5 = 0 ;
21396 PyObject * obj6 = 0 ;
21397 char * kwnames[] = {
21398 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21399 };
21400
21401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21403 if (!SWIG_IsOK(res1)) {
21404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21405 }
21406 arg1 = reinterpret_cast< wxListbook * >(argp1);
21407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21408 if (!SWIG_IsOK(res2)) {
21409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21410 }
21411 arg2 = reinterpret_cast< wxWindow * >(argp2);
21412 if (obj2) {
21413 ecode3 = SWIG_AsVal_int(obj2, &val3);
21414 if (!SWIG_IsOK(ecode3)) {
21415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21416 }
21417 arg3 = static_cast< int >(val3);
21418 }
21419 if (obj3) {
d55e5bfc 21420 {
554f62e9
RD
21421 arg4 = &temp4;
21422 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21423 }
554f62e9
RD
21424 }
21425 if (obj4) {
d55e5bfc 21426 {
554f62e9
RD
21427 arg5 = &temp5;
21428 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21429 }
554f62e9
RD
21430 }
21431 if (obj5) {
21432 ecode6 = SWIG_AsVal_long(obj5, &val6);
21433 if (!SWIG_IsOK(ecode6)) {
21434 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21435 }
21436 arg6 = static_cast< long >(val6);
21437 }
21438 if (obj6) {
d55e5bfc 21439 {
554f62e9
RD
21440 arg7 = wxString_in_helper(obj6);
21441 if (arg7 == NULL) SWIG_fail;
21442 temp7 = true;
d55e5bfc 21443 }
554f62e9
RD
21444 }
21445 {
21446 PyThreadState* __tstate = wxPyBeginAllowThreads();
21447 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21448 wxPyEndAllowThreads(__tstate);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 }
21451 {
21452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21453 }
21454 {
21455 if (temp7)
21456 delete arg7;
21457 }
21458 return resultobj;
21459fail:
21460 {
21461 if (temp7)
21462 delete arg7;
21463 }
21464 return NULL;
d55e5bfc
RD
21465}
21466
21467
554f62e9
RD
21468SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21469 PyObject *resultobj = 0;
21470 wxListbook *arg1 = (wxListbook *) 0 ;
21471 wxListView *result = 0 ;
21472 void *argp1 = 0 ;
21473 int res1 = 0 ;
21474 PyObject *swig_obj[1] ;
21475
21476 if (!args) SWIG_fail;
21477 swig_obj[0] = args;
21478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21479 if (!SWIG_IsOK(res1)) {
21480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21481 }
21482 arg1 = reinterpret_cast< wxListbook * >(argp1);
21483 {
21484 PyThreadState* __tstate = wxPyBeginAllowThreads();
21485 result = (wxListView *)(arg1)->GetListView();
21486 wxPyEndAllowThreads(__tstate);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 }
21489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21490 return resultobj;
21491fail:
21492 return NULL;
21493}
21494
21495
21496SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21497 PyObject *obj;
21498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21499 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21500 return SWIG_Py_Void();
21501}
21502
21503SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21504 return SWIG_Python_InitShadowInstance(args);
21505}
21506
21507SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21508 PyObject *resultobj = 0;
21509 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21510 int arg2 = (int) 0 ;
21511 int arg3 = (int) -1 ;
21512 int arg4 = (int) -1 ;
21513 wxListbookEvent *result = 0 ;
21514 int val1 ;
21515 int ecode1 = 0 ;
21516 int val2 ;
21517 int ecode2 = 0 ;
21518 int val3 ;
21519 int ecode3 = 0 ;
21520 int val4 ;
21521 int ecode4 = 0 ;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21524 PyObject * obj2 = 0 ;
21525 PyObject * obj3 = 0 ;
21526 char * kwnames[] = {
21527 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21528 };
21529
21530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21531 if (obj0) {
21532 ecode1 = SWIG_AsVal_int(obj0, &val1);
21533 if (!SWIG_IsOK(ecode1)) {
21534 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21535 }
21536 arg1 = static_cast< wxEventType >(val1);
21537 }
21538 if (obj1) {
21539 ecode2 = SWIG_AsVal_int(obj1, &val2);
21540 if (!SWIG_IsOK(ecode2)) {
21541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21542 }
21543 arg2 = static_cast< int >(val2);
21544 }
21545 if (obj2) {
21546 ecode3 = SWIG_AsVal_int(obj2, &val3);
21547 if (!SWIG_IsOK(ecode3)) {
21548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21549 }
21550 arg3 = static_cast< int >(val3);
21551 }
21552 if (obj3) {
21553 ecode4 = SWIG_AsVal_int(obj3, &val4);
21554 if (!SWIG_IsOK(ecode4)) {
21555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21556 }
21557 arg4 = static_cast< int >(val4);
21558 }
21559 {
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
21561 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21566 return resultobj;
21567fail:
21568 return NULL;
21569}
21570
21571
21572SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21573 PyObject *obj;
21574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21575 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21576 return SWIG_Py_Void();
21577}
21578
21579SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21580 return SWIG_Python_InitShadowInstance(args);
21581}
21582
21583SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21584 PyObject *resultobj = 0;
21585 wxWindow *arg1 = (wxWindow *) 0 ;
21586 int arg2 ;
21587 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21588 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21589 wxSize const &arg4_defvalue = wxDefaultSize ;
21590 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21591 long arg5 = (long) 0 ;
21592 wxString const &arg6_defvalue = wxPyEmptyString ;
21593 wxString *arg6 = (wxString *) &arg6_defvalue ;
21594 wxChoicebook *result = 0 ;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 int val2 ;
21598 int ecode2 = 0 ;
21599 wxPoint temp3 ;
21600 wxSize temp4 ;
21601 long val5 ;
21602 int ecode5 = 0 ;
21603 bool temp6 = false ;
21604 PyObject * obj0 = 0 ;
21605 PyObject * obj1 = 0 ;
21606 PyObject * obj2 = 0 ;
21607 PyObject * obj3 = 0 ;
21608 PyObject * obj4 = 0 ;
21609 PyObject * obj5 = 0 ;
21610 char * kwnames[] = {
21611 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21612 };
21613
21614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21616 if (!SWIG_IsOK(res1)) {
21617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21618 }
21619 arg1 = reinterpret_cast< wxWindow * >(argp1);
21620 ecode2 = SWIG_AsVal_int(obj1, &val2);
21621 if (!SWIG_IsOK(ecode2)) {
21622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21623 }
21624 arg2 = static_cast< int >(val2);
21625 if (obj2) {
d55e5bfc 21626 {
554f62e9
RD
21627 arg3 = &temp3;
21628 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21629 }
554f62e9
RD
21630 }
21631 if (obj3) {
d55e5bfc 21632 {
554f62e9
RD
21633 arg4 = &temp4;
21634 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21635 }
554f62e9
RD
21636 }
21637 if (obj4) {
21638 ecode5 = SWIG_AsVal_long(obj4, &val5);
21639 if (!SWIG_IsOK(ecode5)) {
21640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21641 }
21642 arg5 = static_cast< long >(val5);
21643 }
21644 if (obj5) {
d55e5bfc 21645 {
554f62e9
RD
21646 arg6 = wxString_in_helper(obj5);
21647 if (arg6 == NULL) SWIG_fail;
21648 temp6 = true;
d55e5bfc 21649 }
554f62e9
RD
21650 }
21651 {
21652 if (!wxPyCheckForApp()) SWIG_fail;
21653 PyThreadState* __tstate = wxPyBeginAllowThreads();
21654 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21655 wxPyEndAllowThreads(__tstate);
21656 if (PyErr_Occurred()) SWIG_fail;
21657 }
21658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21659 {
21660 if (temp6)
21661 delete arg6;
21662 }
21663 return resultobj;
21664fail:
21665 {
21666 if (temp6)
21667 delete arg6;
21668 }
21669 return NULL;
d55e5bfc
RD
21670}
21671
21672
554f62e9
RD
21673SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21674 PyObject *resultobj = 0;
21675 wxChoicebook *result = 0 ;
21676
21677 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21678 {
21679 if (!wxPyCheckForApp()) SWIG_fail;
21680 PyThreadState* __tstate = wxPyBeginAllowThreads();
21681 result = (wxChoicebook *)new wxChoicebook();
21682 wxPyEndAllowThreads(__tstate);
21683 if (PyErr_Occurred()) SWIG_fail;
21684 }
21685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21686 return resultobj;
21687fail:
21688 return NULL;
21689}
21690
21691
21692SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21693 PyObject *resultobj = 0;
21694 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21695 wxWindow *arg2 = (wxWindow *) 0 ;
21696 int arg3 ;
21697 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21698 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21699 wxSize const &arg5_defvalue = wxDefaultSize ;
21700 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21701 long arg6 = (long) 0 ;
21702 wxString const &arg7_defvalue = wxPyEmptyString ;
21703 wxString *arg7 = (wxString *) &arg7_defvalue ;
21704 bool result;
21705 void *argp1 = 0 ;
21706 int res1 = 0 ;
21707 void *argp2 = 0 ;
21708 int res2 = 0 ;
21709 int val3 ;
21710 int ecode3 = 0 ;
21711 wxPoint temp4 ;
21712 wxSize temp5 ;
21713 long val6 ;
21714 int ecode6 = 0 ;
21715 bool temp7 = false ;
21716 PyObject * obj0 = 0 ;
21717 PyObject * obj1 = 0 ;
21718 PyObject * obj2 = 0 ;
21719 PyObject * obj3 = 0 ;
21720 PyObject * obj4 = 0 ;
21721 PyObject * obj5 = 0 ;
21722 PyObject * obj6 = 0 ;
21723 char * kwnames[] = {
21724 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21725 };
21726
21727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21729 if (!SWIG_IsOK(res1)) {
21730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21731 }
21732 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21733 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21734 if (!SWIG_IsOK(res2)) {
21735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21736 }
21737 arg2 = reinterpret_cast< wxWindow * >(argp2);
21738 ecode3 = SWIG_AsVal_int(obj2, &val3);
21739 if (!SWIG_IsOK(ecode3)) {
21740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21741 }
21742 arg3 = static_cast< int >(val3);
21743 if (obj3) {
093d3ff1 21744 {
554f62e9
RD
21745 arg4 = &temp4;
21746 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21747 }
554f62e9
RD
21748 }
21749 if (obj4) {
093d3ff1 21750 {
554f62e9
RD
21751 arg5 = &temp5;
21752 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21753 }
554f62e9
RD
21754 }
21755 if (obj5) {
21756 ecode6 = SWIG_AsVal_long(obj5, &val6);
21757 if (!SWIG_IsOK(ecode6)) {
21758 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21759 }
21760 arg6 = static_cast< long >(val6);
21761 }
21762 if (obj6) {
d55e5bfc 21763 {
554f62e9
RD
21764 arg7 = wxString_in_helper(obj6);
21765 if (arg7 == NULL) SWIG_fail;
21766 temp7 = true;
d55e5bfc 21767 }
554f62e9
RD
21768 }
21769 {
21770 PyThreadState* __tstate = wxPyBeginAllowThreads();
21771 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21772 wxPyEndAllowThreads(__tstate);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 }
21775 {
21776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21777 }
21778 {
21779 if (temp7)
21780 delete arg7;
21781 }
21782 return resultobj;
21783fail:
21784 {
21785 if (temp7)
21786 delete arg7;
21787 }
21788 return NULL;
d55e5bfc
RD
21789}
21790
21791
554f62e9
RD
21792SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21793 PyObject *resultobj = 0;
21794 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21795 wxChoice *result = 0 ;
21796 void *argp1 = 0 ;
21797 int res1 = 0 ;
21798 PyObject *swig_obj[1] ;
21799
21800 if (!args) SWIG_fail;
21801 swig_obj[0] = args;
21802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21803 if (!SWIG_IsOK(res1)) {
21804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21805 }
21806 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21810 wxPyEndAllowThreads(__tstate);
21811 if (PyErr_Occurred()) SWIG_fail;
21812 }
21813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21814 return resultobj;
21815fail:
21816 return NULL;
21817}
21818
21819
21820SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21821 PyObject *obj;
21822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21823 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21824 return SWIG_Py_Void();
21825}
21826
21827SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21828 return SWIG_Python_InitShadowInstance(args);
21829}
21830
21831SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21832 PyObject *resultobj = 0;
21833 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21834 int arg2 = (int) 0 ;
21835 int arg3 = (int) -1 ;
21836 int arg4 = (int) -1 ;
21837 wxChoicebookEvent *result = 0 ;
21838 int val1 ;
21839 int ecode1 = 0 ;
21840 int val2 ;
21841 int ecode2 = 0 ;
21842 int val3 ;
21843 int ecode3 = 0 ;
21844 int val4 ;
21845 int ecode4 = 0 ;
21846 PyObject * obj0 = 0 ;
21847 PyObject * obj1 = 0 ;
21848 PyObject * obj2 = 0 ;
21849 PyObject * obj3 = 0 ;
21850 char * kwnames[] = {
21851 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21852 };
21853
21854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21855 if (obj0) {
21856 ecode1 = SWIG_AsVal_int(obj0, &val1);
21857 if (!SWIG_IsOK(ecode1)) {
21858 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21859 }
21860 arg1 = static_cast< wxEventType >(val1);
21861 }
21862 if (obj1) {
21863 ecode2 = SWIG_AsVal_int(obj1, &val2);
21864 if (!SWIG_IsOK(ecode2)) {
21865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21866 }
21867 arg2 = static_cast< int >(val2);
21868 }
21869 if (obj2) {
21870 ecode3 = SWIG_AsVal_int(obj2, &val3);
21871 if (!SWIG_IsOK(ecode3)) {
21872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21873 }
21874 arg3 = static_cast< int >(val3);
21875 }
21876 if (obj3) {
21877 ecode4 = SWIG_AsVal_int(obj3, &val4);
21878 if (!SWIG_IsOK(ecode4)) {
21879 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21880 }
21881 arg4 = static_cast< int >(val4);
21882 }
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21886 wxPyEndAllowThreads(__tstate);
21887 if (PyErr_Occurred()) SWIG_fail;
21888 }
21889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21890 return resultobj;
21891fail:
21892 return NULL;
21893}
21894
21895
21896SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21897 PyObject *obj;
21898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21899 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21900 return SWIG_Py_Void();
21901}
21902
21903SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21904 return SWIG_Python_InitShadowInstance(args);
21905}
21906
21907SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21908 PyObject *resultobj = 0;
21909 wxWindow *arg1 = (wxWindow *) 0 ;
21910 int arg2 ;
21911 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21912 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21913 wxSize const &arg4_defvalue = wxDefaultSize ;
21914 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21915 long arg5 = (long) wxBK_DEFAULT ;
21916 wxString const &arg6_defvalue = wxPyEmptyString ;
21917 wxString *arg6 = (wxString *) &arg6_defvalue ;
21918 wxTreebook *result = 0 ;
21919 void *argp1 = 0 ;
21920 int res1 = 0 ;
21921 int val2 ;
21922 int ecode2 = 0 ;
21923 wxPoint temp3 ;
21924 wxSize temp4 ;
21925 long val5 ;
21926 int ecode5 = 0 ;
21927 bool temp6 = false ;
21928 PyObject * obj0 = 0 ;
21929 PyObject * obj1 = 0 ;
21930 PyObject * obj2 = 0 ;
21931 PyObject * obj3 = 0 ;
21932 PyObject * obj4 = 0 ;
21933 PyObject * obj5 = 0 ;
21934 char * kwnames[] = {
21935 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21936 };
21937
21938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21940 if (!SWIG_IsOK(res1)) {
21941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21942 }
21943 arg1 = reinterpret_cast< wxWindow * >(argp1);
21944 ecode2 = SWIG_AsVal_int(obj1, &val2);
21945 if (!SWIG_IsOK(ecode2)) {
21946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21947 }
21948 arg2 = static_cast< int >(val2);
21949 if (obj2) {
d55e5bfc 21950 {
554f62e9
RD
21951 arg3 = &temp3;
21952 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21953 }
554f62e9
RD
21954 }
21955 if (obj3) {
d55e5bfc 21956 {
554f62e9
RD
21957 arg4 = &temp4;
21958 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21959 }
554f62e9
RD
21960 }
21961 if (obj4) {
21962 ecode5 = SWIG_AsVal_long(obj4, &val5);
21963 if (!SWIG_IsOK(ecode5)) {
21964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21965 }
21966 arg5 = static_cast< long >(val5);
21967 }
21968 if (obj5) {
d55e5bfc 21969 {
554f62e9
RD
21970 arg6 = wxString_in_helper(obj5);
21971 if (arg6 == NULL) SWIG_fail;
21972 temp6 = true;
d55e5bfc 21973 }
554f62e9
RD
21974 }
21975 {
21976 if (!wxPyCheckForApp()) SWIG_fail;
21977 PyThreadState* __tstate = wxPyBeginAllowThreads();
21978 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21979 wxPyEndAllowThreads(__tstate);
21980 if (PyErr_Occurred()) SWIG_fail;
21981 }
21982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21983 {
21984 if (temp6)
21985 delete arg6;
21986 }
21987 return resultobj;
21988fail:
21989 {
21990 if (temp6)
21991 delete arg6;
21992 }
21993 return NULL;
d55e5bfc
RD
21994}
21995
21996
554f62e9
RD
21997SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21998 PyObject *resultobj = 0;
21999 wxTreebook *result = 0 ;
22000
22001 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22002 {
22003 if (!wxPyCheckForApp()) SWIG_fail;
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 result = (wxTreebook *)new wxTreebook();
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22010 return resultobj;
22011fail:
22012 return NULL;
22013}
22014
22015
22016SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22017 PyObject *resultobj = 0;
22018 wxTreebook *arg1 = (wxTreebook *) 0 ;
22019 wxWindow *arg2 = (wxWindow *) 0 ;
22020 int arg3 ;
22021 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22022 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22023 wxSize const &arg5_defvalue = wxDefaultSize ;
22024 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22025 long arg6 = (long) wxBK_DEFAULT ;
22026 wxString const &arg7_defvalue = wxPyEmptyString ;
22027 wxString *arg7 = (wxString *) &arg7_defvalue ;
22028 bool result;
22029 void *argp1 = 0 ;
22030 int res1 = 0 ;
22031 void *argp2 = 0 ;
22032 int res2 = 0 ;
22033 int val3 ;
22034 int ecode3 = 0 ;
22035 wxPoint temp4 ;
22036 wxSize temp5 ;
22037 long val6 ;
22038 int ecode6 = 0 ;
22039 bool temp7 = false ;
22040 PyObject * obj0 = 0 ;
22041 PyObject * obj1 = 0 ;
22042 PyObject * obj2 = 0 ;
22043 PyObject * obj3 = 0 ;
22044 PyObject * obj4 = 0 ;
22045 PyObject * obj5 = 0 ;
22046 PyObject * obj6 = 0 ;
22047 char * kwnames[] = {
22048 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22049 };
22050
22051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22053 if (!SWIG_IsOK(res1)) {
22054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22055 }
22056 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22058 if (!SWIG_IsOK(res2)) {
22059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22060 }
22061 arg2 = reinterpret_cast< wxWindow * >(argp2);
22062 ecode3 = SWIG_AsVal_int(obj2, &val3);
22063 if (!SWIG_IsOK(ecode3)) {
22064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22065 }
22066 arg3 = static_cast< int >(val3);
22067 if (obj3) {
093d3ff1 22068 {
554f62e9
RD
22069 arg4 = &temp4;
22070 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22071 }
554f62e9
RD
22072 }
22073 if (obj4) {
093d3ff1 22074 {
554f62e9
RD
22075 arg5 = &temp5;
22076 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22077 }
554f62e9
RD
22078 }
22079 if (obj5) {
22080 ecode6 = SWIG_AsVal_long(obj5, &val6);
22081 if (!SWIG_IsOK(ecode6)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22083 }
22084 arg6 = static_cast< long >(val6);
22085 }
22086 if (obj6) {
d55e5bfc 22087 {
554f62e9
RD
22088 arg7 = wxString_in_helper(obj6);
22089 if (arg7 == NULL) SWIG_fail;
22090 temp7 = true;
d55e5bfc 22091 }
554f62e9
RD
22092 }
22093 {
22094 PyThreadState* __tstate = wxPyBeginAllowThreads();
22095 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22096 wxPyEndAllowThreads(__tstate);
22097 if (PyErr_Occurred()) SWIG_fail;
22098 }
22099 {
22100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22101 }
22102 {
22103 if (temp7)
22104 delete arg7;
22105 }
22106 return resultobj;
22107fail:
22108 {
22109 if (temp7)
22110 delete arg7;
22111 }
22112 return NULL;
22113}
22114
22115
22116SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22117 PyObject *resultobj = 0;
22118 wxTreebook *arg1 = (wxTreebook *) 0 ;
22119 size_t arg2 ;
22120 wxWindow *arg3 = (wxWindow *) 0 ;
22121 wxString *arg4 = 0 ;
22122 bool arg5 = (bool) false ;
22123 int arg6 = (int) wxNOT_FOUND ;
22124 bool result;
22125 void *argp1 = 0 ;
22126 int res1 = 0 ;
22127 size_t val2 ;
22128 int ecode2 = 0 ;
22129 void *argp3 = 0 ;
22130 int res3 = 0 ;
22131 bool temp4 = false ;
22132 bool val5 ;
22133 int ecode5 = 0 ;
22134 int val6 ;
22135 int ecode6 = 0 ;
22136 PyObject * obj0 = 0 ;
22137 PyObject * obj1 = 0 ;
22138 PyObject * obj2 = 0 ;
22139 PyObject * obj3 = 0 ;
22140 PyObject * obj4 = 0 ;
22141 PyObject * obj5 = 0 ;
22142 char * kwnames[] = {
22143 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22144 };
22145
22146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22148 if (!SWIG_IsOK(res1)) {
22149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22150 }
22151 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22152 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22153 if (!SWIG_IsOK(ecode2)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22155 }
22156 arg2 = static_cast< size_t >(val2);
22157 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22158 if (!SWIG_IsOK(res3)) {
22159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22160 }
22161 arg3 = reinterpret_cast< wxWindow * >(argp3);
22162 {
22163 arg4 = wxString_in_helper(obj3);
22164 if (arg4 == NULL) SWIG_fail;
22165 temp4 = true;
22166 }
22167 if (obj4) {
22168 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22169 if (!SWIG_IsOK(ecode5)) {
22170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22171 }
22172 arg5 = static_cast< bool >(val5);
22173 }
22174 if (obj5) {
22175 ecode6 = SWIG_AsVal_int(obj5, &val6);
22176 if (!SWIG_IsOK(ecode6)) {
22177 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22178 }
22179 arg6 = static_cast< int >(val6);
22180 }
22181 {
22182 PyThreadState* __tstate = wxPyBeginAllowThreads();
22183 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22184 wxPyEndAllowThreads(__tstate);
22185 if (PyErr_Occurred()) SWIG_fail;
22186 }
22187 {
22188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22189 }
22190 {
22191 if (temp4)
22192 delete arg4;
22193 }
22194 return resultobj;
22195fail:
22196 {
22197 if (temp4)
22198 delete arg4;
22199 }
22200 return NULL;
22201}
22202
22203
22204SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22205 PyObject *resultobj = 0;
22206 wxTreebook *arg1 = (wxTreebook *) 0 ;
22207 wxWindow *arg2 = (wxWindow *) 0 ;
22208 wxString *arg3 = 0 ;
22209 bool arg4 = (bool) false ;
22210 int arg5 = (int) wxNOT_FOUND ;
22211 bool result;
22212 void *argp1 = 0 ;
22213 int res1 = 0 ;
22214 void *argp2 = 0 ;
22215 int res2 = 0 ;
22216 bool temp3 = false ;
22217 bool val4 ;
22218 int ecode4 = 0 ;
22219 int val5 ;
22220 int ecode5 = 0 ;
22221 PyObject * obj0 = 0 ;
22222 PyObject * obj1 = 0 ;
22223 PyObject * obj2 = 0 ;
22224 PyObject * obj3 = 0 ;
22225 PyObject * obj4 = 0 ;
22226 char * kwnames[] = {
22227 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22228 };
22229
22230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22232 if (!SWIG_IsOK(res1)) {
22233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22234 }
22235 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22237 if (!SWIG_IsOK(res2)) {
22238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22239 }
22240 arg2 = reinterpret_cast< wxWindow * >(argp2);
22241 {
22242 arg3 = wxString_in_helper(obj2);
22243 if (arg3 == NULL) SWIG_fail;
22244 temp3 = true;
22245 }
22246 if (obj3) {
22247 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22248 if (!SWIG_IsOK(ecode4)) {
22249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22250 }
22251 arg4 = static_cast< bool >(val4);
22252 }
22253 if (obj4) {
22254 ecode5 = SWIG_AsVal_int(obj4, &val5);
22255 if (!SWIG_IsOK(ecode5)) {
22256 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22257 }
22258 arg5 = static_cast< int >(val5);
22259 }
22260 {
22261 PyThreadState* __tstate = wxPyBeginAllowThreads();
22262 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 {
22267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22268 }
22269 {
22270 if (temp3)
22271 delete arg3;
22272 }
22273 return resultobj;
22274fail:
22275 {
22276 if (temp3)
22277 delete arg3;
22278 }
22279 return NULL;
22280}
22281
22282
22283SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22284 PyObject *resultobj = 0;
22285 wxTreebook *arg1 = (wxTreebook *) 0 ;
22286 size_t arg2 ;
22287 bool result;
22288 void *argp1 = 0 ;
22289 int res1 = 0 ;
22290 size_t val2 ;
22291 int ecode2 = 0 ;
22292 PyObject * obj0 = 0 ;
22293 PyObject * obj1 = 0 ;
22294 char * kwnames[] = {
22295 (char *) "self",(char *) "pos", NULL
22296 };
22297
22298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22302 }
22303 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22304 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22305 if (!SWIG_IsOK(ecode2)) {
22306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22307 }
22308 arg2 = static_cast< size_t >(val2);
22309 {
22310 PyThreadState* __tstate = wxPyBeginAllowThreads();
22311 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22312 wxPyEndAllowThreads(__tstate);
22313 if (PyErr_Occurred()) SWIG_fail;
22314 }
22315 {
22316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22317 }
22318 return resultobj;
22319fail:
22320 return NULL;
22321}
22322
22323
22324SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22325 PyObject *resultobj = 0;
22326 wxTreebook *arg1 = (wxTreebook *) 0 ;
22327 size_t arg2 ;
22328 bool arg3 = (bool) true ;
22329 bool result;
22330 void *argp1 = 0 ;
22331 int res1 = 0 ;
22332 size_t val2 ;
22333 int ecode2 = 0 ;
22334 bool val3 ;
22335 int ecode3 = 0 ;
22336 PyObject * obj0 = 0 ;
22337 PyObject * obj1 = 0 ;
22338 PyObject * obj2 = 0 ;
22339 char * kwnames[] = {
22340 (char *) "self",(char *) "pos",(char *) "expand", NULL
22341 };
22342
22343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22345 if (!SWIG_IsOK(res1)) {
22346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22347 }
22348 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22349 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22350 if (!SWIG_IsOK(ecode2)) {
22351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22352 }
22353 arg2 = static_cast< size_t >(val2);
22354 if (obj2) {
22355 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22356 if (!SWIG_IsOK(ecode3)) {
22357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22358 }
22359 arg3 = static_cast< bool >(val3);
22360 }
22361 {
22362 PyThreadState* __tstate = wxPyBeginAllowThreads();
22363 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22364 wxPyEndAllowThreads(__tstate);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 {
22368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22369 }
22370 return resultobj;
22371fail:
22372 return NULL;
22373}
22374
22375
22376SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22377 PyObject *resultobj = 0;
22378 wxTreebook *arg1 = (wxTreebook *) 0 ;
22379 size_t arg2 ;
22380 bool result;
22381 void *argp1 = 0 ;
22382 int res1 = 0 ;
22383 size_t val2 ;
22384 int ecode2 = 0 ;
22385 PyObject * obj0 = 0 ;
22386 PyObject * obj1 = 0 ;
22387 char * kwnames[] = {
22388 (char *) "self",(char *) "pos", NULL
22389 };
22390
22391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22393 if (!SWIG_IsOK(res1)) {
22394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22395 }
22396 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22397 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22398 if (!SWIG_IsOK(ecode2)) {
22399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22400 }
22401 arg2 = static_cast< size_t >(val2);
22402 {
22403 PyThreadState* __tstate = wxPyBeginAllowThreads();
22404 result = (bool)(arg1)->CollapseNode(arg2);
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 {
22409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22410 }
22411 return resultobj;
22412fail:
22413 return NULL;
22414}
22415
22416
22417SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22418 PyObject *resultobj = 0;
22419 wxTreebook *arg1 = (wxTreebook *) 0 ;
22420 size_t arg2 ;
22421 int result;
22422 void *argp1 = 0 ;
22423 int res1 = 0 ;
22424 size_t val2 ;
22425 int ecode2 = 0 ;
22426 PyObject * obj0 = 0 ;
22427 PyObject * obj1 = 0 ;
22428 char * kwnames[] = {
22429 (char *) "self",(char *) "pos", NULL
22430 };
22431
22432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22434 if (!SWIG_IsOK(res1)) {
22435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22436 }
22437 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22438 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22439 if (!SWIG_IsOK(ecode2)) {
22440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22441 }
22442 arg2 = static_cast< size_t >(val2);
22443 {
22444 PyThreadState* __tstate = wxPyBeginAllowThreads();
22445 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
22449 resultobj = SWIG_From_int(static_cast< int >(result));
22450 return resultobj;
22451fail:
22452 return NULL;
d55e5bfc
RD
22453}
22454
22455
554f62e9
RD
22456SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22457 PyObject *resultobj = 0;
22458 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22459 wxPyTreeCtrl *result = 0 ;
554f62e9
RD
22460 void *argp1 = 0 ;
22461 int res1 = 0 ;
22462 PyObject *swig_obj[1] ;
22463
22464 if (!args) SWIG_fail;
22465 swig_obj[0] = args;
22466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22467 if (!SWIG_IsOK(res1)) {
22468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22469 }
22470 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22473 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
554f62e9
RD
22474 wxPyEndAllowThreads(__tstate);
22475 if (PyErr_Occurred()) SWIG_fail;
22476 }
10044bf1
RD
22477 {
22478 resultobj = wxPyMake_wxObject(result, (bool)0);
22479 }
554f62e9
RD
22480 return resultobj;
22481fail:
22482 return NULL;
22483}
22484
22485
22486SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22487 PyObject *obj;
22488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22489 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22490 return SWIG_Py_Void();
22491}
22492
22493SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 return SWIG_Python_InitShadowInstance(args);
22495}
22496
22497SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22498 PyObject *resultobj = 0;
22499 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22500 int arg2 = (int) 0 ;
22501 int arg3 = (int) wxNOT_FOUND ;
22502 int arg4 = (int) wxNOT_FOUND ;
22503 wxTreebookEvent *result = 0 ;
22504 int val1 ;
22505 int ecode1 = 0 ;
22506 int val2 ;
22507 int ecode2 = 0 ;
22508 int val3 ;
22509 int ecode3 = 0 ;
22510 int val4 ;
22511 int ecode4 = 0 ;
22512 PyObject * obj0 = 0 ;
22513 PyObject * obj1 = 0 ;
22514 PyObject * obj2 = 0 ;
22515 PyObject * obj3 = 0 ;
22516 char * kwnames[] = {
22517 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22518 };
22519
22520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22521 if (obj0) {
22522 ecode1 = SWIG_AsVal_int(obj0, &val1);
22523 if (!SWIG_IsOK(ecode1)) {
22524 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22525 }
22526 arg1 = static_cast< wxEventType >(val1);
22527 }
22528 if (obj1) {
22529 ecode2 = SWIG_AsVal_int(obj1, &val2);
22530 if (!SWIG_IsOK(ecode2)) {
22531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22532 }
22533 arg2 = static_cast< int >(val2);
22534 }
22535 if (obj2) {
22536 ecode3 = SWIG_AsVal_int(obj2, &val3);
22537 if (!SWIG_IsOK(ecode3)) {
22538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22539 }
22540 arg3 = static_cast< int >(val3);
22541 }
22542 if (obj3) {
22543 ecode4 = SWIG_AsVal_int(obj3, &val4);
22544 if (!SWIG_IsOK(ecode4)) {
22545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22546 }
22547 arg4 = static_cast< int >(val4);
22548 }
22549 {
22550 PyThreadState* __tstate = wxPyBeginAllowThreads();
22551 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22556 return resultobj;
22557fail:
22558 return NULL;
22559}
22560
22561
22562SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22563 PyObject *obj;
22564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22565 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22566 return SWIG_Py_Void();
22567}
22568
22569SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22570 return SWIG_Python_InitShadowInstance(args);
22571}
22572
22573SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22574 PyObject *resultobj = 0;
22575 wxWindow *arg1 = (wxWindow *) 0 ;
22576 int arg2 ;
22577 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22578 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22579 wxSize const &arg4_defvalue = wxDefaultSize ;
22580 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22581 long arg5 = (long) wxBK_DEFAULT ;
22582 wxString const &arg6_defvalue = wxPyEmptyString ;
22583 wxString *arg6 = (wxString *) &arg6_defvalue ;
22584 wxToolbook *result = 0 ;
22585 void *argp1 = 0 ;
22586 int res1 = 0 ;
22587 int val2 ;
22588 int ecode2 = 0 ;
22589 wxPoint temp3 ;
22590 wxSize temp4 ;
22591 long val5 ;
22592 int ecode5 = 0 ;
22593 bool temp6 = false ;
22594 PyObject * obj0 = 0 ;
22595 PyObject * obj1 = 0 ;
22596 PyObject * obj2 = 0 ;
22597 PyObject * obj3 = 0 ;
22598 PyObject * obj4 = 0 ;
22599 PyObject * obj5 = 0 ;
22600 char * kwnames[] = {
22601 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22602 };
22603
22604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22606 if (!SWIG_IsOK(res1)) {
22607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22608 }
22609 arg1 = reinterpret_cast< wxWindow * >(argp1);
22610 ecode2 = SWIG_AsVal_int(obj1, &val2);
22611 if (!SWIG_IsOK(ecode2)) {
22612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22613 }
22614 arg2 = static_cast< int >(val2);
22615 if (obj2) {
093d3ff1 22616 {
554f62e9
RD
22617 arg3 = &temp3;
22618 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 22619 }
554f62e9
RD
22620 }
22621 if (obj3) {
d55e5bfc 22622 {
554f62e9
RD
22623 arg4 = &temp4;
22624 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 22625 }
554f62e9
RD
22626 }
22627 if (obj4) {
22628 ecode5 = SWIG_AsVal_long(obj4, &val5);
22629 if (!SWIG_IsOK(ecode5)) {
22630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22631 }
22632 arg5 = static_cast< long >(val5);
22633 }
22634 if (obj5) {
093d3ff1 22635 {
554f62e9
RD
22636 arg6 = wxString_in_helper(obj5);
22637 if (arg6 == NULL) SWIG_fail;
22638 temp6 = true;
093d3ff1 22639 }
554f62e9
RD
22640 }
22641 {
22642 PyThreadState* __tstate = wxPyBeginAllowThreads();
22643 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22648 {
22649 if (temp6)
22650 delete arg6;
22651 }
22652 return resultobj;
22653fail:
22654 {
22655 if (temp6)
22656 delete arg6;
22657 }
22658 return NULL;
d55e5bfc
RD
22659}
22660
22661
554f62e9
RD
22662SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22663 PyObject *resultobj = 0;
22664 wxToolbook *result = 0 ;
22665
22666 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22667 {
22668 PyThreadState* __tstate = wxPyBeginAllowThreads();
22669 result = (wxToolbook *)new wxToolbook();
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22674 return resultobj;
22675fail:
22676 return NULL;
22677}
22678
22679
22680SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj = 0;
22682 wxToolbook *arg1 = (wxToolbook *) 0 ;
22683 wxWindow *arg2 = (wxWindow *) 0 ;
22684 int arg3 ;
22685 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22686 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22687 wxSize const &arg5_defvalue = wxDefaultSize ;
22688 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22689 long arg6 = (long) 0 ;
22690 wxString const &arg7_defvalue = wxEmptyString ;
22691 wxString *arg7 = (wxString *) &arg7_defvalue ;
22692 bool result;
22693 void *argp1 = 0 ;
22694 int res1 = 0 ;
22695 void *argp2 = 0 ;
22696 int res2 = 0 ;
22697 int val3 ;
22698 int ecode3 = 0 ;
22699 wxPoint temp4 ;
22700 wxSize temp5 ;
22701 long val6 ;
22702 int ecode6 = 0 ;
22703 bool temp7 = false ;
22704 PyObject * obj0 = 0 ;
22705 PyObject * obj1 = 0 ;
22706 PyObject * obj2 = 0 ;
22707 PyObject * obj3 = 0 ;
22708 PyObject * obj4 = 0 ;
22709 PyObject * obj5 = 0 ;
22710 PyObject * obj6 = 0 ;
22711 char * kwnames[] = {
22712 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22713 };
22714
22715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22717 if (!SWIG_IsOK(res1)) {
22718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22719 }
22720 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22722 if (!SWIG_IsOK(res2)) {
22723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22724 }
22725 arg2 = reinterpret_cast< wxWindow * >(argp2);
22726 ecode3 = SWIG_AsVal_int(obj2, &val3);
22727 if (!SWIG_IsOK(ecode3)) {
22728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22729 }
22730 arg3 = static_cast< int >(val3);
22731 if (obj3) {
093d3ff1 22732 {
554f62e9
RD
22733 arg4 = &temp4;
22734 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22735 }
554f62e9
RD
22736 }
22737 if (obj4) {
093d3ff1 22738 {
554f62e9
RD
22739 arg5 = &temp5;
22740 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22741 }
554f62e9
RD
22742 }
22743 if (obj5) {
22744 ecode6 = SWIG_AsVal_long(obj5, &val6);
22745 if (!SWIG_IsOK(ecode6)) {
22746 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22747 }
22748 arg6 = static_cast< long >(val6);
22749 }
22750 if (obj6) {
d55e5bfc 22751 {
554f62e9
RD
22752 arg7 = wxString_in_helper(obj6);
22753 if (arg7 == NULL) SWIG_fail;
22754 temp7 = true;
d55e5bfc 22755 }
554f62e9
RD
22756 }
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 {
22764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22765 }
22766 {
22767 if (temp7)
22768 delete arg7;
22769 }
22770 return resultobj;
22771fail:
22772 {
22773 if (temp7)
22774 delete arg7;
22775 }
22776 return NULL;
d55e5bfc
RD
22777}
22778
22779
554f62e9
RD
22780SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22781 PyObject *resultobj = 0;
22782 wxToolbook *arg1 = (wxToolbook *) 0 ;
22783 wxToolBarBase *result = 0 ;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 PyObject *swig_obj[1] ;
22787
22788 if (!args) SWIG_fail;
22789 swig_obj[0] = args;
22790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22791 if (!SWIG_IsOK(res1)) {
22792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22793 }
22794 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22795 {
22796 PyThreadState* __tstate = wxPyBeginAllowThreads();
22797 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22798 wxPyEndAllowThreads(__tstate);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 }
22801 {
22802 resultobj = wxPyMake_wxObject(result, (bool)0);
22803 }
22804 return resultobj;
22805fail:
22806 return NULL;
f20a2e1f
RD
22807}
22808
22809
554f62e9
RD
22810SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22811 PyObject *resultobj = 0;
22812 wxToolbook *arg1 = (wxToolbook *) 0 ;
22813 void *argp1 = 0 ;
22814 int res1 = 0 ;
22815 PyObject *swig_obj[1] ;
22816
22817 if (!args) SWIG_fail;
22818 swig_obj[0] = args;
22819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22820 if (!SWIG_IsOK(res1)) {
22821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22822 }
22823 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22824 {
22825 PyThreadState* __tstate = wxPyBeginAllowThreads();
22826 (arg1)->Realize();
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = SWIG_Py_Void();
22831 return resultobj;
22832fail:
22833 return NULL;
22834}
22835
22836
22837SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22838 PyObject *obj;
22839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22840 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22841 return SWIG_Py_Void();
22842}
22843
22844SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22845 return SWIG_Python_InitShadowInstance(args);
22846}
22847
22848SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22849 PyObject *resultobj = 0;
22850 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22851 int arg2 = (int) 0 ;
22852 int arg3 = (int) wxNOT_FOUND ;
22853 int arg4 = (int) wxNOT_FOUND ;
22854 wxToolbookEvent *result = 0 ;
22855 int val1 ;
22856 int ecode1 = 0 ;
22857 int val2 ;
22858 int ecode2 = 0 ;
22859 int val3 ;
22860 int ecode3 = 0 ;
22861 int val4 ;
22862 int ecode4 = 0 ;
22863 PyObject * obj0 = 0 ;
22864 PyObject * obj1 = 0 ;
22865 PyObject * obj2 = 0 ;
22866 PyObject * obj3 = 0 ;
22867 char * kwnames[] = {
22868 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22869 };
22870
22871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22872 if (obj0) {
22873 ecode1 = SWIG_AsVal_int(obj0, &val1);
22874 if (!SWIG_IsOK(ecode1)) {
22875 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22876 }
22877 arg1 = static_cast< wxEventType >(val1);
22878 }
22879 if (obj1) {
22880 ecode2 = SWIG_AsVal_int(obj1, &val2);
22881 if (!SWIG_IsOK(ecode2)) {
22882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22883 }
22884 arg2 = static_cast< int >(val2);
22885 }
22886 if (obj2) {
22887 ecode3 = SWIG_AsVal_int(obj2, &val3);
22888 if (!SWIG_IsOK(ecode3)) {
22889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22890 }
22891 arg3 = static_cast< int >(val3);
22892 }
22893 if (obj3) {
22894 ecode4 = SWIG_AsVal_int(obj3, &val4);
22895 if (!SWIG_IsOK(ecode4)) {
22896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22897 }
22898 arg4 = static_cast< int >(val4);
22899 }
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22907 return resultobj;
22908fail:
22909 return NULL;
d55e5bfc
RD
22910}
22911
22912
554f62e9
RD
22913SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22914 PyObject *obj;
22915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22916 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22917 return SWIG_Py_Void();
d55e5bfc
RD
22918}
22919
554f62e9
RD
22920SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22921 return SWIG_Python_InitShadowInstance(args);
22922}
d55e5bfc 22923
554f62e9
RD
22924SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22925 PyObject *resultobj = 0;
22926 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22927 int result;
22928 void *argp1 = 0 ;
22929 int res1 = 0 ;
22930 PyObject *swig_obj[1] ;
22931
22932 if (!args) SWIG_fail;
22933 swig_obj[0] = args;
22934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22935 if (!SWIG_IsOK(res1)) {
22936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22937 }
22938 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22939 {
22940 PyThreadState* __tstate = wxPyBeginAllowThreads();
22941 result = (int)(arg1)->GetId();
22942 wxPyEndAllowThreads(__tstate);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 }
22945 resultobj = SWIG_From_int(static_cast< int >(result));
22946 return resultobj;
22947fail:
22948 return NULL;
d55e5bfc
RD
22949}
22950
22951
554f62e9
RD
22952SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22953 PyObject *resultobj = 0;
22954 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22955 wxControl *result = 0 ;
22956 void *argp1 = 0 ;
22957 int res1 = 0 ;
22958 PyObject *swig_obj[1] ;
22959
22960 if (!args) SWIG_fail;
22961 swig_obj[0] = args;
22962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22963 if (!SWIG_IsOK(res1)) {
22964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22965 }
22966 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22967 {
22968 PyThreadState* __tstate = wxPyBeginAllowThreads();
22969 result = (wxControl *)(arg1)->GetControl();
22970 wxPyEndAllowThreads(__tstate);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 {
22974 resultobj = wxPyMake_wxObject(result, 0);
22975 }
22976 return resultobj;
22977fail:
22978 return NULL;
d55e5bfc
RD
22979}
22980
22981
554f62e9
RD
22982SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22983 PyObject *resultobj = 0;
22984 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22985 wxToolBarBase *result = 0 ;
22986 void *argp1 = 0 ;
22987 int res1 = 0 ;
22988 PyObject *swig_obj[1] ;
22989
22990 if (!args) SWIG_fail;
22991 swig_obj[0] = args;
22992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22993 if (!SWIG_IsOK(res1)) {
22994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22995 }
22996 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22997 {
22998 PyThreadState* __tstate = wxPyBeginAllowThreads();
22999 result = (wxToolBarBase *)(arg1)->GetToolBar();
23000 wxPyEndAllowThreads(__tstate);
23001 if (PyErr_Occurred()) SWIG_fail;
23002 }
23003 {
23004 resultobj = wxPyMake_wxObject(result, (bool)0);
23005 }
23006 return resultobj;
23007fail:
23008 return NULL;
d55e5bfc
RD
23009}
23010
23011
554f62e9
RD
23012SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23013 PyObject *resultobj = 0;
23014 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23015 int result;
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 PyObject *swig_obj[1] ;
23019
23020 if (!args) SWIG_fail;
23021 swig_obj[0] = args;
23022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23023 if (!SWIG_IsOK(res1)) {
23024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23025 }
23026 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 result = (int)(arg1)->IsButton();
23030 wxPyEndAllowThreads(__tstate);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 }
23033 resultobj = SWIG_From_int(static_cast< int >(result));
23034 return resultobj;
23035fail:
23036 return NULL;
d55e5bfc
RD
23037}
23038
23039
554f62e9
RD
23040SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23041 PyObject *resultobj = 0;
23042 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23043 int result;
23044 void *argp1 = 0 ;
23045 int res1 = 0 ;
23046 PyObject *swig_obj[1] ;
23047
23048 if (!args) SWIG_fail;
23049 swig_obj[0] = args;
23050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23051 if (!SWIG_IsOK(res1)) {
23052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23053 }
23054 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23055 {
23056 PyThreadState* __tstate = wxPyBeginAllowThreads();
23057 result = (int)(arg1)->IsControl();
23058 wxPyEndAllowThreads(__tstate);
23059 if (PyErr_Occurred()) SWIG_fail;
23060 }
23061 resultobj = SWIG_From_int(static_cast< int >(result));
23062 return resultobj;
23063fail:
23064 return NULL;
d55e5bfc
RD
23065}
23066
23067
554f62e9
RD
23068SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23069 PyObject *resultobj = 0;
23070 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23071 int result;
23072 void *argp1 = 0 ;
23073 int res1 = 0 ;
23074 PyObject *swig_obj[1] ;
23075
23076 if (!args) SWIG_fail;
23077 swig_obj[0] = args;
23078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23079 if (!SWIG_IsOK(res1)) {
23080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23081 }
23082 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 result = (int)(arg1)->IsSeparator();
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = SWIG_From_int(static_cast< int >(result));
23090 return resultobj;
23091fail:
23092 return NULL;
d55e5bfc
RD
23093}
23094
23095
554f62e9
RD
23096SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23097 PyObject *resultobj = 0;
23098 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23099 int result;
23100 void *argp1 = 0 ;
23101 int res1 = 0 ;
23102 PyObject *swig_obj[1] ;
23103
23104 if (!args) SWIG_fail;
23105 swig_obj[0] = args;
23106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23107 if (!SWIG_IsOK(res1)) {
23108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23109 }
23110 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = (int)(arg1)->GetStyle();
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 resultobj = SWIG_From_int(static_cast< int >(result));
23118 return resultobj;
23119fail:
23120 return NULL;
d55e5bfc
RD
23121}
23122
23123
554f62e9
RD
23124SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23125 PyObject *resultobj = 0;
23126 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23127 wxItemKind result;
23128 void *argp1 = 0 ;
23129 int res1 = 0 ;
23130 PyObject *swig_obj[1] ;
23131
23132 if (!args) SWIG_fail;
23133 swig_obj[0] = args;
23134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23135 if (!SWIG_IsOK(res1)) {
23136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23137 }
23138 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (wxItemKind)(arg1)->GetKind();
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 resultobj = SWIG_From_int(static_cast< int >(result));
23146 return resultobj;
23147fail:
23148 return NULL;
d55e5bfc
RD
23149}
23150
23151
554f62e9
RD
23152SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23153 PyObject *resultobj = 0;
23154 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23155 bool result;
23156 void *argp1 = 0 ;
23157 int res1 = 0 ;
23158 PyObject *swig_obj[1] ;
23159
23160 if (!args) SWIG_fail;
23161 swig_obj[0] = args;
23162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23163 if (!SWIG_IsOK(res1)) {
23164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23165 }
23166 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = (bool)(arg1)->IsEnabled();
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 {
23174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23175 }
23176 return resultobj;
23177fail:
23178 return NULL;
d55e5bfc
RD
23179}
23180
23181
554f62e9
RD
23182SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23183 PyObject *resultobj = 0;
23184 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23185 bool result;
23186 void *argp1 = 0 ;
23187 int res1 = 0 ;
23188 PyObject *swig_obj[1] ;
23189
23190 if (!args) SWIG_fail;
23191 swig_obj[0] = args;
23192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23193 if (!SWIG_IsOK(res1)) {
23194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23195 }
23196 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 result = (bool)(arg1)->IsToggled();
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 {
23204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23205 }
23206 return resultobj;
23207fail:
23208 return NULL;
d55e5bfc
RD
23209}
23210
23211
554f62e9
RD
23212SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23213 PyObject *resultobj = 0;
23214 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23215 bool result;
23216 void *argp1 = 0 ;
23217 int res1 = 0 ;
23218 PyObject *swig_obj[1] ;
23219
23220 if (!args) SWIG_fail;
23221 swig_obj[0] = args;
23222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23223 if (!SWIG_IsOK(res1)) {
23224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23225 }
23226 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23227 {
23228 PyThreadState* __tstate = wxPyBeginAllowThreads();
23229 result = (bool)(arg1)->CanBeToggled();
23230 wxPyEndAllowThreads(__tstate);
23231 if (PyErr_Occurred()) SWIG_fail;
23232 }
23233 {
23234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23235 }
23236 return resultobj;
23237fail:
23238 return NULL;
d55e5bfc
RD
23239}
23240
23241
554f62e9
RD
23242SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23243 PyObject *resultobj = 0;
23244 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23245 wxBitmap *result = 0 ;
23246 void *argp1 = 0 ;
23247 int res1 = 0 ;
23248 PyObject *swig_obj[1] ;
23249
23250 if (!args) SWIG_fail;
23251 swig_obj[0] = args;
23252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23253 if (!SWIG_IsOK(res1)) {
23254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23255 }
23256 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23259 {
554f62e9
RD
23260 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23261 result = (wxBitmap *) &_result_ref;
093d3ff1 23262 }
554f62e9
RD
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 {
23267 wxBitmap* resultptr = new wxBitmap(*result);
23268 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23269 }
23270 return resultobj;
23271fail:
23272 return NULL;
d55e5bfc
RD
23273}
23274
23275
554f62e9
RD
23276SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23277 PyObject *resultobj = 0;
23278 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23279 wxBitmap *result = 0 ;
23280 void *argp1 = 0 ;
23281 int res1 = 0 ;
23282 PyObject *swig_obj[1] ;
23283
23284 if (!args) SWIG_fail;
23285 swig_obj[0] = args;
23286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23287 if (!SWIG_IsOK(res1)) {
23288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23289 }
23290 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23293 {
554f62e9
RD
23294 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23295 result = (wxBitmap *) &_result_ref;
d55e5bfc 23296 }
554f62e9
RD
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 {
23301 wxBitmap* resultptr = new wxBitmap(*result);
23302 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23303 }
23304 return resultobj;
23305fail:
23306 return NULL;
d55e5bfc
RD
23307}
23308
23309
554f62e9
RD
23310SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23311 PyObject *resultobj = 0;
23312 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23313 wxBitmap result;
23314 void *argp1 = 0 ;
23315 int res1 = 0 ;
23316 PyObject *swig_obj[1] ;
23317
23318 if (!args) SWIG_fail;
23319 swig_obj[0] = args;
23320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23321 if (!SWIG_IsOK(res1)) {
23322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23323 }
23324 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (arg1)->GetBitmap();
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23332 return resultobj;
23333fail:
23334 return NULL;
23335}
23336
23337
23338SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23339 PyObject *resultobj = 0;
23340 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23341 wxString result;
23342 void *argp1 = 0 ;
23343 int res1 = 0 ;
23344 PyObject *swig_obj[1] ;
23345
23346 if (!args) SWIG_fail;
23347 swig_obj[0] = args;
23348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23349 if (!SWIG_IsOK(res1)) {
23350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23351 }
23352 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23353 {
23354 PyThreadState* __tstate = wxPyBeginAllowThreads();
23355 result = (arg1)->GetLabel();
23356 wxPyEndAllowThreads(__tstate);
23357 if (PyErr_Occurred()) SWIG_fail;
23358 }
23359 {
d55e5bfc 23360#if wxUSE_UNICODE
554f62e9 23361 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 23362#else
554f62e9 23363 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 23364#endif
554f62e9
RD
23365 }
23366 return resultobj;
23367fail:
23368 return NULL;
d55e5bfc
RD
23369}
23370
23371
554f62e9
RD
23372SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23373 PyObject *resultobj = 0;
23374 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23375 wxString result;
23376 void *argp1 = 0 ;
23377 int res1 = 0 ;
23378 PyObject *swig_obj[1] ;
23379
23380 if (!args) SWIG_fail;
23381 swig_obj[0] = args;
23382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23383 if (!SWIG_IsOK(res1)) {
23384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23385 }
23386 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 result = (arg1)->GetShortHelp();
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 {
23394#if wxUSE_UNICODE
23395 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23396#else
23397 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23398#endif
23399 }
23400 return resultobj;
23401fail:
23402 return NULL;
d55e5bfc
RD
23403}
23404
23405
554f62e9
RD
23406SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23407 PyObject *resultobj = 0;
23408 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23409 wxString result;
23410 void *argp1 = 0 ;
23411 int res1 = 0 ;
23412 PyObject *swig_obj[1] ;
23413
23414 if (!args) SWIG_fail;
23415 swig_obj[0] = args;
23416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23417 if (!SWIG_IsOK(res1)) {
23418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23419 }
23420 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23421 {
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 result = (arg1)->GetLongHelp();
23424 wxPyEndAllowThreads(__tstate);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 }
23427 {
23428#if wxUSE_UNICODE
23429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23430#else
23431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23432#endif
23433 }
23434 return resultobj;
23435fail:
23436 return NULL;
23437}
23438
23439
23440SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj = 0;
23442 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23443 bool arg2 ;
23444 bool result;
23445 void *argp1 = 0 ;
23446 int res1 = 0 ;
23447 bool val2 ;
23448 int ecode2 = 0 ;
23449 PyObject * obj0 = 0 ;
23450 PyObject * obj1 = 0 ;
23451 char * kwnames[] = {
23452 (char *) "self",(char *) "enable", NULL
23453 };
23454
23455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23457 if (!SWIG_IsOK(res1)) {
23458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23459 }
23460 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23461 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23462 if (!SWIG_IsOK(ecode2)) {
23463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23464 }
23465 arg2 = static_cast< bool >(val2);
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (bool)(arg1)->Enable(arg2);
23469 wxPyEndAllowThreads(__tstate);
23470 if (PyErr_Occurred()) SWIG_fail;
23471 }
23472 {
23473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23474 }
23475 return resultobj;
23476fail:
23477 return NULL;
d55e5bfc
RD
23478}
23479
23480
554f62e9
RD
23481SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23482 PyObject *resultobj = 0;
23483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23484 void *argp1 = 0 ;
23485 int res1 = 0 ;
23486 PyObject *swig_obj[1] ;
23487
23488 if (!args) SWIG_fail;
23489 swig_obj[0] = args;
23490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23491 if (!SWIG_IsOK(res1)) {
23492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23493 }
23494 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23495 {
23496 PyThreadState* __tstate = wxPyBeginAllowThreads();
23497 (arg1)->Toggle();
23498 wxPyEndAllowThreads(__tstate);
23499 if (PyErr_Occurred()) SWIG_fail;
23500 }
23501 resultobj = SWIG_Py_Void();
23502 return resultobj;
23503fail:
23504 return NULL;
23505}
23506
23507
23508SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23509 PyObject *resultobj = 0;
23510 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23511 bool arg2 ;
23512 bool result;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 bool val2 ;
23516 int ecode2 = 0 ;
23517 PyObject * obj0 = 0 ;
23518 PyObject * obj1 = 0 ;
23519 char * kwnames[] = {
23520 (char *) "self",(char *) "toggle", NULL
23521 };
23522
23523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23525 if (!SWIG_IsOK(res1)) {
23526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23527 }
23528 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23529 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23530 if (!SWIG_IsOK(ecode2)) {
23531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23532 }
23533 arg2 = static_cast< bool >(val2);
23534 {
23535 PyThreadState* __tstate = wxPyBeginAllowThreads();
23536 result = (bool)(arg1)->SetToggle(arg2);
23537 wxPyEndAllowThreads(__tstate);
23538 if (PyErr_Occurred()) SWIG_fail;
23539 }
23540 {
23541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23542 }
23543 return resultobj;
23544fail:
23545 return NULL;
23546}
23547
23548
23549SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23550 PyObject *resultobj = 0;
23551 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23552 wxString *arg2 = 0 ;
23553 bool result;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 bool temp2 = false ;
23557 PyObject * obj0 = 0 ;
23558 PyObject * obj1 = 0 ;
23559 char * kwnames[] = {
23560 (char *) "self",(char *) "help", NULL
23561 };
23562
23563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23565 if (!SWIG_IsOK(res1)) {
23566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23567 }
23568 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23569 {
23570 arg2 = wxString_in_helper(obj1);
23571 if (arg2 == NULL) SWIG_fail;
23572 temp2 = true;
23573 }
23574 {
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 {
23581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23582 }
23583 {
23584 if (temp2)
23585 delete arg2;
23586 }
23587 return resultobj;
23588fail:
23589 {
23590 if (temp2)
23591 delete arg2;
23592 }
23593 return NULL;
23594}
23595
23596
23597SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23598 PyObject *resultobj = 0;
23599 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23600 wxString *arg2 = 0 ;
23601 bool result;
23602 void *argp1 = 0 ;
23603 int res1 = 0 ;
23604 bool temp2 = false ;
23605 PyObject * obj0 = 0 ;
23606 PyObject * obj1 = 0 ;
23607 char * kwnames[] = {
23608 (char *) "self",(char *) "help", NULL
23609 };
23610
23611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23613 if (!SWIG_IsOK(res1)) {
23614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23615 }
23616 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23617 {
23618 arg2 = wxString_in_helper(obj1);
23619 if (arg2 == NULL) SWIG_fail;
23620 temp2 = true;
23621 }
23622 {
23623 PyThreadState* __tstate = wxPyBeginAllowThreads();
23624 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23625 wxPyEndAllowThreads(__tstate);
23626 if (PyErr_Occurred()) SWIG_fail;
23627 }
23628 {
23629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23630 }
23631 {
23632 if (temp2)
23633 delete arg2;
23634 }
23635 return resultobj;
23636fail:
23637 {
23638 if (temp2)
23639 delete arg2;
23640 }
23641 return NULL;
23642}
23643
23644
23645SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23646 PyObject *resultobj = 0;
23647 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23648 wxBitmap *arg2 = 0 ;
23649 void *argp1 = 0 ;
23650 int res1 = 0 ;
23651 void *argp2 = 0 ;
23652 int res2 = 0 ;
23653 PyObject * obj0 = 0 ;
23654 PyObject * obj1 = 0 ;
23655 char * kwnames[] = {
23656 (char *) "self",(char *) "bmp", NULL
23657 };
23658
23659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23661 if (!SWIG_IsOK(res1)) {
23662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23663 }
23664 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23666 if (!SWIG_IsOK(res2)) {
23667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23668 }
23669 if (!argp2) {
23670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23671 }
23672 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23673 {
23674 PyThreadState* __tstate = wxPyBeginAllowThreads();
23675 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23676 wxPyEndAllowThreads(__tstate);
23677 if (PyErr_Occurred()) SWIG_fail;
23678 }
23679 resultobj = SWIG_Py_Void();
23680 return resultobj;
23681fail:
23682 return NULL;
23683}
23684
23685
23686SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23687 PyObject *resultobj = 0;
23688 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23689 wxBitmap *arg2 = 0 ;
23690 void *argp1 = 0 ;
23691 int res1 = 0 ;
23692 void *argp2 = 0 ;
23693 int res2 = 0 ;
23694 PyObject * obj0 = 0 ;
23695 PyObject * obj1 = 0 ;
23696 char * kwnames[] = {
23697 (char *) "self",(char *) "bmp", NULL
23698 };
23699
23700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23702 if (!SWIG_IsOK(res1)) {
23703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23704 }
23705 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23707 if (!SWIG_IsOK(res2)) {
23708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23709 }
23710 if (!argp2) {
23711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23712 }
23713 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23714 {
23715 PyThreadState* __tstate = wxPyBeginAllowThreads();
23716 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23717 wxPyEndAllowThreads(__tstate);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 }
23720 resultobj = SWIG_Py_Void();
23721 return resultobj;
23722fail:
23723 return NULL;
23724}
23725
23726
23727SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23728 PyObject *resultobj = 0;
23729 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23730 wxString *arg2 = 0 ;
23731 void *argp1 = 0 ;
23732 int res1 = 0 ;
23733 bool temp2 = false ;
23734 PyObject * obj0 = 0 ;
23735 PyObject * obj1 = 0 ;
23736 char * kwnames[] = {
23737 (char *) "self",(char *) "label", NULL
23738 };
23739
23740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23742 if (!SWIG_IsOK(res1)) {
23743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23744 }
23745 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23746 {
23747 arg2 = wxString_in_helper(obj1);
23748 if (arg2 == NULL) SWIG_fail;
23749 temp2 = true;
23750 }
23751 {
23752 PyThreadState* __tstate = wxPyBeginAllowThreads();
23753 (arg1)->SetLabel((wxString const &)*arg2);
23754 wxPyEndAllowThreads(__tstate);
23755 if (PyErr_Occurred()) SWIG_fail;
23756 }
23757 resultobj = SWIG_Py_Void();
23758 {
23759 if (temp2)
23760 delete arg2;
23761 }
23762 return resultobj;
23763fail:
23764 {
23765 if (temp2)
23766 delete arg2;
23767 }
23768 return NULL;
d55e5bfc
RD
23769}
23770
23771
554f62e9
RD
23772SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23773 PyObject *resultobj = 0;
23774 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23775 void *argp1 = 0 ;
23776 int res1 = 0 ;
23777 PyObject *swig_obj[1] ;
23778
23779 if (!args) SWIG_fail;
23780 swig_obj[0] = args;
23781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23782 if (!SWIG_IsOK(res1)) {
23783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23784 }
23785 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 (arg1)->Detach();
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 resultobj = SWIG_Py_Void();
23793 return resultobj;
23794fail:
23795 return NULL;
23796}
23797
23798
23799SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23800 PyObject *resultobj = 0;
23801 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23802 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23803 void *argp1 = 0 ;
23804 int res1 = 0 ;
23805 void *argp2 = 0 ;
23806 int res2 = 0 ;
23807 PyObject * obj0 = 0 ;
23808 PyObject * obj1 = 0 ;
23809 char * kwnames[] = {
23810 (char *) "self",(char *) "tbar", NULL
23811 };
23812
23813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23815 if (!SWIG_IsOK(res1)) {
23816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23817 }
23818 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23820 if (!SWIG_IsOK(res2)) {
23821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23822 }
23823 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23824 {
23825 PyThreadState* __tstate = wxPyBeginAllowThreads();
23826 (arg1)->Attach(arg2);
23827 wxPyEndAllowThreads(__tstate);
23828 if (PyErr_Occurred()) SWIG_fail;
23829 }
23830 resultobj = SWIG_Py_Void();
23831 return resultobj;
23832fail:
23833 return NULL;
d55e5bfc
RD
23834}
23835
23836
554f62e9
RD
23837SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23838 PyObject *resultobj = 0;
23839 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23840 PyObject *result = 0 ;
23841 void *argp1 = 0 ;
23842 int res1 = 0 ;
23843 PyObject *swig_obj[1] ;
23844
23845 if (!args) SWIG_fail;
23846 swig_obj[0] = args;
23847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23848 if (!SWIG_IsOK(res1)) {
23849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23850 }
23851 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23852 {
23853 PyThreadState* __tstate = wxPyBeginAllowThreads();
23854 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23855 wxPyEndAllowThreads(__tstate);
23856 if (PyErr_Occurred()) SWIG_fail;
23857 }
23858 resultobj = result;
23859 return resultobj;
23860fail:
23861 return NULL;
23862}
23863
23864
23865SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23866 PyObject *resultobj = 0;
23867 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23868 PyObject *arg2 = (PyObject *) 0 ;
23869 void *argp1 = 0 ;
23870 int res1 = 0 ;
23871 PyObject * obj0 = 0 ;
23872 PyObject * obj1 = 0 ;
23873 char * kwnames[] = {
23874 (char *) "self",(char *) "clientData", NULL
23875 };
23876
23877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23879 if (!SWIG_IsOK(res1)) {
23880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23881 }
23882 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23883 arg2 = obj1;
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 wxToolBarToolBase_SetClientData(arg1,arg2);
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 resultobj = SWIG_Py_Void();
23891 return resultobj;
23892fail:
23893 return NULL;
23894}
23895
23896
23897SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23898 PyObject *obj;
23899 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23900 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23901 return SWIG_Py_Void();
23902}
23903
23904SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23905 PyObject *resultobj = 0;
23906 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23907 int arg2 ;
23908 wxString *arg3 = 0 ;
23909 wxBitmap *arg4 = 0 ;
23910 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23911 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23912 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23913 wxString const &arg7_defvalue = wxPyEmptyString ;
23914 wxString *arg7 = (wxString *) &arg7_defvalue ;
23915 wxString const &arg8_defvalue = wxPyEmptyString ;
23916 wxString *arg8 = (wxString *) &arg8_defvalue ;
23917 PyObject *arg9 = (PyObject *) NULL ;
23918 wxToolBarToolBase *result = 0 ;
23919 void *argp1 = 0 ;
23920 int res1 = 0 ;
23921 int val2 ;
23922 int ecode2 = 0 ;
23923 bool temp3 = false ;
23924 void *argp4 = 0 ;
23925 int res4 = 0 ;
23926 void *argp5 = 0 ;
23927 int res5 = 0 ;
23928 int val6 ;
23929 int ecode6 = 0 ;
23930 bool temp7 = false ;
23931 bool temp8 = false ;
23932 PyObject * obj0 = 0 ;
23933 PyObject * obj1 = 0 ;
23934 PyObject * obj2 = 0 ;
23935 PyObject * obj3 = 0 ;
23936 PyObject * obj4 = 0 ;
23937 PyObject * obj5 = 0 ;
23938 PyObject * obj6 = 0 ;
23939 PyObject * obj7 = 0 ;
23940 PyObject * obj8 = 0 ;
23941 char * kwnames[] = {
23942 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23943 };
23944
23945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23947 if (!SWIG_IsOK(res1)) {
23948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23949 }
23950 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23951 ecode2 = SWIG_AsVal_int(obj1, &val2);
23952 if (!SWIG_IsOK(ecode2)) {
23953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23954 }
23955 arg2 = static_cast< int >(val2);
23956 {
23957 arg3 = wxString_in_helper(obj2);
23958 if (arg3 == NULL) SWIG_fail;
23959 temp3 = true;
23960 }
23961 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23962 if (!SWIG_IsOK(res4)) {
23963 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23964 }
23965 if (!argp4) {
23966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23967 }
23968 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23969 if (obj4) {
23970 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23971 if (!SWIG_IsOK(res5)) {
23972 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23973 }
23974 if (!argp5) {
23975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23976 }
23977 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23978 }
23979 if (obj5) {
23980 ecode6 = SWIG_AsVal_int(obj5, &val6);
23981 if (!SWIG_IsOK(ecode6)) {
23982 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23983 }
23984 arg6 = static_cast< wxItemKind >(val6);
23985 }
23986 if (obj6) {
d55e5bfc 23987 {
554f62e9
RD
23988 arg7 = wxString_in_helper(obj6);
23989 if (arg7 == NULL) SWIG_fail;
23990 temp7 = true;
d55e5bfc 23991 }
554f62e9
RD
23992 }
23993 if (obj7) {
093d3ff1 23994 {
554f62e9
RD
23995 arg8 = wxString_in_helper(obj7);
23996 if (arg8 == NULL) SWIG_fail;
23997 temp8 = true;
093d3ff1 23998 }
554f62e9
RD
23999 }
24000 if (obj8) {
24001 arg9 = obj8;
24002 }
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 {
24010 resultobj = wxPyMake_wxObject(result, (bool)0);
24011 }
24012 {
24013 if (temp3)
24014 delete arg3;
24015 }
24016 {
24017 if (temp7)
24018 delete arg7;
24019 }
24020 {
24021 if (temp8)
24022 delete arg8;
24023 }
24024 return resultobj;
24025fail:
24026 {
24027 if (temp3)
24028 delete arg3;
24029 }
24030 {
24031 if (temp7)
24032 delete arg7;
24033 }
24034 {
24035 if (temp8)
24036 delete arg8;
24037 }
24038 return NULL;
24039}
24040
24041
24042SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24043 PyObject *resultobj = 0;
24044 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24045 size_t arg2 ;
24046 int arg3 ;
24047 wxString *arg4 = 0 ;
24048 wxBitmap *arg5 = 0 ;
24049 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24050 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24051 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24052 wxString const &arg8_defvalue = wxPyEmptyString ;
24053 wxString *arg8 = (wxString *) &arg8_defvalue ;
24054 wxString const &arg9_defvalue = wxPyEmptyString ;
24055 wxString *arg9 = (wxString *) &arg9_defvalue ;
24056 PyObject *arg10 = (PyObject *) NULL ;
24057 wxToolBarToolBase *result = 0 ;
24058 void *argp1 = 0 ;
24059 int res1 = 0 ;
24060 size_t val2 ;
24061 int ecode2 = 0 ;
24062 int val3 ;
24063 int ecode3 = 0 ;
24064 bool temp4 = false ;
24065 void *argp5 = 0 ;
24066 int res5 = 0 ;
24067 void *argp6 = 0 ;
24068 int res6 = 0 ;
24069 int val7 ;
24070 int ecode7 = 0 ;
24071 bool temp8 = false ;
24072 bool temp9 = false ;
24073 PyObject * obj0 = 0 ;
24074 PyObject * obj1 = 0 ;
24075 PyObject * obj2 = 0 ;
24076 PyObject * obj3 = 0 ;
24077 PyObject * obj4 = 0 ;
24078 PyObject * obj5 = 0 ;
24079 PyObject * obj6 = 0 ;
24080 PyObject * obj7 = 0 ;
24081 PyObject * obj8 = 0 ;
24082 PyObject * obj9 = 0 ;
24083 char * kwnames[] = {
24084 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24085 };
24086
24087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24089 if (!SWIG_IsOK(res1)) {
24090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24091 }
24092 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24093 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24094 if (!SWIG_IsOK(ecode2)) {
24095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24096 }
24097 arg2 = static_cast< size_t >(val2);
24098 ecode3 = SWIG_AsVal_int(obj2, &val3);
24099 if (!SWIG_IsOK(ecode3)) {
24100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24101 }
24102 arg3 = static_cast< int >(val3);
24103 {
24104 arg4 = wxString_in_helper(obj3);
24105 if (arg4 == NULL) SWIG_fail;
24106 temp4 = true;
24107 }
24108 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24109 if (!SWIG_IsOK(res5)) {
24110 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24111 }
24112 if (!argp5) {
24113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24114 }
24115 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24116 if (obj5) {
24117 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24118 if (!SWIG_IsOK(res6)) {
24119 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24120 }
554f62e9
RD
24121 if (!argp6) {
24122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24123 }
554f62e9
RD
24124 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24125 }
24126 if (obj6) {
24127 ecode7 = SWIG_AsVal_int(obj6, &val7);
24128 if (!SWIG_IsOK(ecode7)) {
24129 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24130 }
24131 arg7 = static_cast< wxItemKind >(val7);
24132 }
24133 if (obj7) {
d55e5bfc 24134 {
554f62e9
RD
24135 arg8 = wxString_in_helper(obj7);
24136 if (arg8 == NULL) SWIG_fail;
24137 temp8 = true;
d55e5bfc 24138 }
554f62e9
RD
24139 }
24140 if (obj8) {
d55e5bfc 24141 {
554f62e9
RD
24142 arg9 = wxString_in_helper(obj8);
24143 if (arg9 == NULL) SWIG_fail;
24144 temp9 = true;
d55e5bfc 24145 }
554f62e9
RD
24146 }
24147 if (obj9) {
24148 arg10 = obj9;
24149 }
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 {
24157 resultobj = wxPyMake_wxObject(result, (bool)0);
24158 }
24159 {
24160 if (temp4)
24161 delete arg4;
24162 }
24163 {
24164 if (temp8)
24165 delete arg8;
24166 }
24167 {
24168 if (temp9)
24169 delete arg9;
24170 }
24171 return resultobj;
24172fail:
24173 {
24174 if (temp4)
24175 delete arg4;
24176 }
24177 {
24178 if (temp8)
24179 delete arg8;
24180 }
24181 {
24182 if (temp9)
24183 delete arg9;
24184 }
24185 return NULL;
24186}
24187
24188
24189SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24190 PyObject *resultobj = 0;
24191 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24192 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24193 wxToolBarToolBase *result = 0 ;
24194 void *argp1 = 0 ;
24195 int res1 = 0 ;
24196 void *argp2 = 0 ;
24197 int res2 = 0 ;
24198 PyObject * obj0 = 0 ;
24199 PyObject * obj1 = 0 ;
24200 char * kwnames[] = {
24201 (char *) "self",(char *) "tool", NULL
24202 };
24203
24204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24206 if (!SWIG_IsOK(res1)) {
24207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24208 }
24209 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24211 if (!SWIG_IsOK(res2)) {
24212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24213 }
24214 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24215 {
24216 PyThreadState* __tstate = wxPyBeginAllowThreads();
24217 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24218 wxPyEndAllowThreads(__tstate);
24219 if (PyErr_Occurred()) SWIG_fail;
24220 }
24221 {
24222 resultobj = wxPyMake_wxObject(result, (bool)0);
24223 }
24224 return resultobj;
24225fail:
24226 return NULL;
24227}
24228
24229
24230SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24231 PyObject *resultobj = 0;
24232 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24233 size_t arg2 ;
24234 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24235 wxToolBarToolBase *result = 0 ;
24236 void *argp1 = 0 ;
24237 int res1 = 0 ;
24238 size_t val2 ;
24239 int ecode2 = 0 ;
24240 void *argp3 = 0 ;
24241 int res3 = 0 ;
24242 PyObject * obj0 = 0 ;
24243 PyObject * obj1 = 0 ;
24244 PyObject * obj2 = 0 ;
24245 char * kwnames[] = {
24246 (char *) "self",(char *) "pos",(char *) "tool", NULL
24247 };
24248
24249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24251 if (!SWIG_IsOK(res1)) {
24252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24253 }
24254 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24255 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24256 if (!SWIG_IsOK(ecode2)) {
24257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24258 }
24259 arg2 = static_cast< size_t >(val2);
24260 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24261 if (!SWIG_IsOK(res3)) {
24262 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24263 }
24264 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24265 {
24266 PyThreadState* __tstate = wxPyBeginAllowThreads();
24267 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24268 wxPyEndAllowThreads(__tstate);
24269 if (PyErr_Occurred()) SWIG_fail;
24270 }
24271 {
24272 resultobj = wxPyMake_wxObject(result, (bool)0);
24273 }
24274 return resultobj;
24275fail:
24276 return NULL;
24277}
24278
24279
24280SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24281 PyObject *resultobj = 0;
24282 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24283 wxControl *arg2 = (wxControl *) 0 ;
24284 wxToolBarToolBase *result = 0 ;
24285 void *argp1 = 0 ;
24286 int res1 = 0 ;
24287 void *argp2 = 0 ;
24288 int res2 = 0 ;
24289 PyObject * obj0 = 0 ;
24290 PyObject * obj1 = 0 ;
24291 char * kwnames[] = {
24292 (char *) "self",(char *) "control", NULL
24293 };
24294
24295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24297 if (!SWIG_IsOK(res1)) {
24298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24299 }
24300 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24302 if (!SWIG_IsOK(res2)) {
24303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24304 }
24305 arg2 = reinterpret_cast< wxControl * >(argp2);
24306 {
24307 PyThreadState* __tstate = wxPyBeginAllowThreads();
24308 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24309 wxPyEndAllowThreads(__tstate);
24310 if (PyErr_Occurred()) SWIG_fail;
24311 }
24312 {
24313 resultobj = wxPyMake_wxObject(result, (bool)0);
24314 }
24315 return resultobj;
24316fail:
24317 return NULL;
24318}
24319
24320
24321SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24322 PyObject *resultobj = 0;
24323 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24324 size_t arg2 ;
24325 wxControl *arg3 = (wxControl *) 0 ;
24326 wxToolBarToolBase *result = 0 ;
24327 void *argp1 = 0 ;
24328 int res1 = 0 ;
24329 size_t val2 ;
24330 int ecode2 = 0 ;
24331 void *argp3 = 0 ;
24332 int res3 = 0 ;
24333 PyObject * obj0 = 0 ;
24334 PyObject * obj1 = 0 ;
24335 PyObject * obj2 = 0 ;
24336 char * kwnames[] = {
24337 (char *) "self",(char *) "pos",(char *) "control", NULL
24338 };
24339
24340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24342 if (!SWIG_IsOK(res1)) {
24343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24344 }
24345 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24346 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24347 if (!SWIG_IsOK(ecode2)) {
24348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24349 }
24350 arg2 = static_cast< size_t >(val2);
24351 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24352 if (!SWIG_IsOK(res3)) {
24353 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24354 }
24355 arg3 = reinterpret_cast< wxControl * >(argp3);
24356 {
24357 PyThreadState* __tstate = wxPyBeginAllowThreads();
24358 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24359 wxPyEndAllowThreads(__tstate);
24360 if (PyErr_Occurred()) SWIG_fail;
24361 }
24362 {
24363 resultobj = wxPyMake_wxObject(result, (bool)0);
24364 }
24365 return resultobj;
24366fail:
24367 return NULL;
24368}
24369
24370
24371SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj = 0;
24373 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24374 int arg2 ;
24375 wxControl *result = 0 ;
24376 void *argp1 = 0 ;
24377 int res1 = 0 ;
24378 int val2 ;
24379 int ecode2 = 0 ;
24380 PyObject * obj0 = 0 ;
24381 PyObject * obj1 = 0 ;
24382 char * kwnames[] = {
24383 (char *) "self",(char *) "id", NULL
24384 };
24385
24386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24388 if (!SWIG_IsOK(res1)) {
24389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24390 }
24391 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24392 ecode2 = SWIG_AsVal_int(obj1, &val2);
24393 if (!SWIG_IsOK(ecode2)) {
24394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24395 }
24396 arg2 = static_cast< int >(val2);
24397 {
24398 PyThreadState* __tstate = wxPyBeginAllowThreads();
24399 result = (wxControl *)(arg1)->FindControl(arg2);
24400 wxPyEndAllowThreads(__tstate);
24401 if (PyErr_Occurred()) SWIG_fail;
24402 }
24403 {
24404 resultobj = wxPyMake_wxObject(result, 0);
24405 }
24406 return resultobj;
24407fail:
24408 return NULL;
d55e5bfc
RD
24409}
24410
24411
554f62e9
RD
24412SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24413 PyObject *resultobj = 0;
24414 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24415 wxToolBarToolBase *result = 0 ;
24416 void *argp1 = 0 ;
24417 int res1 = 0 ;
24418 PyObject *swig_obj[1] ;
24419
24420 if (!args) SWIG_fail;
24421 swig_obj[0] = args;
24422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24423 if (!SWIG_IsOK(res1)) {
24424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24425 }
24426 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24427 {
24428 PyThreadState* __tstate = wxPyBeginAllowThreads();
24429 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24430 wxPyEndAllowThreads(__tstate);
24431 if (PyErr_Occurred()) SWIG_fail;
24432 }
24433 {
24434 resultobj = wxPyMake_wxObject(result, (bool)0);
24435 }
24436 return resultobj;
24437fail:
24438 return NULL;
24439}
24440
24441
24442SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24443 PyObject *resultobj = 0;
24444 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24445 size_t arg2 ;
24446 wxToolBarToolBase *result = 0 ;
24447 void *argp1 = 0 ;
24448 int res1 = 0 ;
24449 size_t val2 ;
24450 int ecode2 = 0 ;
24451 PyObject * obj0 = 0 ;
24452 PyObject * obj1 = 0 ;
24453 char * kwnames[] = {
24454 (char *) "self",(char *) "pos", NULL
24455 };
24456
24457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24459 if (!SWIG_IsOK(res1)) {
24460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24461 }
24462 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24463 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24464 if (!SWIG_IsOK(ecode2)) {
24465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24466 }
24467 arg2 = static_cast< size_t >(val2);
24468 {
24469 PyThreadState* __tstate = wxPyBeginAllowThreads();
24470 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24471 wxPyEndAllowThreads(__tstate);
24472 if (PyErr_Occurred()) SWIG_fail;
24473 }
24474 {
24475 resultobj = wxPyMake_wxObject(result, (bool)0);
24476 }
24477 return resultobj;
24478fail:
24479 return NULL;
24480}
24481
24482
24483SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24486 int arg2 ;
24487 wxToolBarToolBase *result = 0 ;
24488 void *argp1 = 0 ;
24489 int res1 = 0 ;
24490 int val2 ;
24491 int ecode2 = 0 ;
24492 PyObject * obj0 = 0 ;
24493 PyObject * obj1 = 0 ;
24494 char * kwnames[] = {
24495 (char *) "self",(char *) "id", NULL
24496 };
24497
24498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24500 if (!SWIG_IsOK(res1)) {
24501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24502 }
24503 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24504 ecode2 = SWIG_AsVal_int(obj1, &val2);
24505 if (!SWIG_IsOK(ecode2)) {
24506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24507 }
24508 arg2 = static_cast< int >(val2);
24509 {
24510 PyThreadState* __tstate = wxPyBeginAllowThreads();
24511 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24512 wxPyEndAllowThreads(__tstate);
24513 if (PyErr_Occurred()) SWIG_fail;
24514 }
24515 {
24516 resultobj = wxPyMake_wxObject(result, (bool)0);
24517 }
24518 return resultobj;
24519fail:
24520 return NULL;
24521}
24522
24523
24524SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24525 PyObject *resultobj = 0;
24526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24527 size_t arg2 ;
24528 bool result;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 size_t val2 ;
24532 int ecode2 = 0 ;
24533 PyObject * obj0 = 0 ;
24534 PyObject * obj1 = 0 ;
24535 char * kwnames[] = {
24536 (char *) "self",(char *) "pos", NULL
24537 };
24538
24539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24541 if (!SWIG_IsOK(res1)) {
24542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24543 }
24544 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24545 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24546 if (!SWIG_IsOK(ecode2)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24548 }
24549 arg2 = static_cast< size_t >(val2);
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 result = (bool)(arg1)->DeleteToolByPos(arg2);
24553 wxPyEndAllowThreads(__tstate);
24554 if (PyErr_Occurred()) SWIG_fail;
24555 }
24556 {
24557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24558 }
24559 return resultobj;
24560fail:
24561 return NULL;
24562}
24563
24564
24565SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24566 PyObject *resultobj = 0;
24567 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24568 int arg2 ;
24569 bool result;
24570 void *argp1 = 0 ;
24571 int res1 = 0 ;
24572 int val2 ;
24573 int ecode2 = 0 ;
24574 PyObject * obj0 = 0 ;
24575 PyObject * obj1 = 0 ;
24576 char * kwnames[] = {
24577 (char *) "self",(char *) "id", NULL
24578 };
24579
24580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24582 if (!SWIG_IsOK(res1)) {
24583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24584 }
24585 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24586 ecode2 = SWIG_AsVal_int(obj1, &val2);
24587 if (!SWIG_IsOK(ecode2)) {
24588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24589 }
24590 arg2 = static_cast< int >(val2);
24591 {
24592 PyThreadState* __tstate = wxPyBeginAllowThreads();
24593 result = (bool)(arg1)->DeleteTool(arg2);
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 {
24598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24599 }
24600 return resultobj;
24601fail:
24602 return NULL;
d55e5bfc
RD
24603}
24604
24605
554f62e9
RD
24606SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24607 PyObject *resultobj = 0;
24608 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 PyObject *swig_obj[1] ;
24612
24613 if (!args) SWIG_fail;
24614 swig_obj[0] = args;
24615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24616 if (!SWIG_IsOK(res1)) {
24617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24618 }
24619 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24620 {
24621 PyThreadState* __tstate = wxPyBeginAllowThreads();
24622 (arg1)->ClearTools();
24623 wxPyEndAllowThreads(__tstate);
24624 if (PyErr_Occurred()) SWIG_fail;
24625 }
24626 resultobj = SWIG_Py_Void();
24627 return resultobj;
24628fail:
24629 return NULL;
f20a2e1f
RD
24630}
24631
24632
554f62e9
RD
24633SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24634 PyObject *resultobj = 0;
24635 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24636 bool result;
24637 void *argp1 = 0 ;
24638 int res1 = 0 ;
24639 PyObject *swig_obj[1] ;
24640
24641 if (!args) SWIG_fail;
24642 swig_obj[0] = args;
24643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24644 if (!SWIG_IsOK(res1)) {
24645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24646 }
24647 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24648 {
24649 PyThreadState* __tstate = wxPyBeginAllowThreads();
24650 result = (bool)(arg1)->Realize();
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 {
24655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24656 }
24657 return resultobj;
24658fail:
24659 return NULL;
24660}
24661
24662
24663SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj = 0;
24665 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24666 int arg2 ;
24667 bool arg3 ;
24668 void *argp1 = 0 ;
24669 int res1 = 0 ;
24670 int val2 ;
24671 int ecode2 = 0 ;
24672 bool val3 ;
24673 int ecode3 = 0 ;
24674 PyObject * obj0 = 0 ;
24675 PyObject * obj1 = 0 ;
24676 PyObject * obj2 = 0 ;
24677 char * kwnames[] = {
24678 (char *) "self",(char *) "id",(char *) "enable", NULL
24679 };
24680
24681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24683 if (!SWIG_IsOK(res1)) {
24684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24685 }
24686 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24687 ecode2 = SWIG_AsVal_int(obj1, &val2);
24688 if (!SWIG_IsOK(ecode2)) {
24689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24690 }
24691 arg2 = static_cast< int >(val2);
24692 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24693 if (!SWIG_IsOK(ecode3)) {
24694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24695 }
24696 arg3 = static_cast< bool >(val3);
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 (arg1)->EnableTool(arg2,arg3);
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = SWIG_Py_Void();
24704 return resultobj;
24705fail:
24706 return NULL;
24707}
24708
24709
24710SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj = 0;
24712 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24713 int arg2 ;
24714 bool arg3 ;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 int val2 ;
24718 int ecode2 = 0 ;
24719 bool val3 ;
24720 int ecode3 = 0 ;
24721 PyObject * obj0 = 0 ;
24722 PyObject * obj1 = 0 ;
24723 PyObject * obj2 = 0 ;
24724 char * kwnames[] = {
24725 (char *) "self",(char *) "id",(char *) "toggle", NULL
24726 };
24727
24728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24730 if (!SWIG_IsOK(res1)) {
24731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24732 }
24733 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24734 ecode2 = SWIG_AsVal_int(obj1, &val2);
24735 if (!SWIG_IsOK(ecode2)) {
24736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24737 }
24738 arg2 = static_cast< int >(val2);
24739 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24740 if (!SWIG_IsOK(ecode3)) {
24741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24742 }
24743 arg3 = static_cast< bool >(val3);
24744 {
24745 PyThreadState* __tstate = wxPyBeginAllowThreads();
24746 (arg1)->ToggleTool(arg2,arg3);
24747 wxPyEndAllowThreads(__tstate);
24748 if (PyErr_Occurred()) SWIG_fail;
24749 }
24750 resultobj = SWIG_Py_Void();
24751 return resultobj;
24752fail:
24753 return NULL;
24754}
24755
24756
24757SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24758 PyObject *resultobj = 0;
24759 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24760 int arg2 ;
24761 bool arg3 ;
24762 void *argp1 = 0 ;
24763 int res1 = 0 ;
24764 int val2 ;
24765 int ecode2 = 0 ;
24766 bool val3 ;
24767 int ecode3 = 0 ;
24768 PyObject * obj0 = 0 ;
24769 PyObject * obj1 = 0 ;
24770 PyObject * obj2 = 0 ;
24771 char * kwnames[] = {
24772 (char *) "self",(char *) "id",(char *) "toggle", NULL
24773 };
24774
24775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24777 if (!SWIG_IsOK(res1)) {
24778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24779 }
24780 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24781 ecode2 = SWIG_AsVal_int(obj1, &val2);
24782 if (!SWIG_IsOK(ecode2)) {
24783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24784 }
24785 arg2 = static_cast< int >(val2);
24786 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24787 if (!SWIG_IsOK(ecode3)) {
24788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24789 }
24790 arg3 = static_cast< bool >(val3);
24791 {
24792 PyThreadState* __tstate = wxPyBeginAllowThreads();
24793 (arg1)->SetToggle(arg2,arg3);
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 resultobj = SWIG_Py_Void();
24798 return resultobj;
24799fail:
24800 return NULL;
24801}
24802
24803
24804SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj = 0;
24806 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24807 int arg2 ;
24808 PyObject *result = 0 ;
24809 void *argp1 = 0 ;
24810 int res1 = 0 ;
24811 int val2 ;
24812 int ecode2 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 char * kwnames[] = {
24816 (char *) "self",(char *) "id", NULL
24817 };
24818
24819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24821 if (!SWIG_IsOK(res1)) {
24822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24823 }
24824 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24825 ecode2 = SWIG_AsVal_int(obj1, &val2);
24826 if (!SWIG_IsOK(ecode2)) {
24827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24828 }
24829 arg2 = static_cast< int >(val2);
24830 {
24831 PyThreadState* __tstate = wxPyBeginAllowThreads();
24832 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 resultobj = result;
24837 return resultobj;
24838fail:
24839 return NULL;
24840}
24841
24842
24843SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24844 PyObject *resultobj = 0;
24845 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24846 int arg2 ;
24847 PyObject *arg3 = (PyObject *) 0 ;
24848 void *argp1 = 0 ;
24849 int res1 = 0 ;
24850 int val2 ;
24851 int ecode2 = 0 ;
24852 PyObject * obj0 = 0 ;
24853 PyObject * obj1 = 0 ;
24854 PyObject * obj2 = 0 ;
24855 char * kwnames[] = {
24856 (char *) "self",(char *) "id",(char *) "clientData", NULL
24857 };
24858
24859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24861 if (!SWIG_IsOK(res1)) {
24862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24863 }
24864 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24865 ecode2 = SWIG_AsVal_int(obj1, &val2);
24866 if (!SWIG_IsOK(ecode2)) {
24867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24868 }
24869 arg2 = static_cast< int >(val2);
24870 arg3 = obj2;
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 resultobj = SWIG_Py_Void();
24878 return resultobj;
24879fail:
24880 return NULL;
24881}
24882
24883
24884SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24885 PyObject *resultobj = 0;
24886 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24887 int arg2 ;
24888 int result;
24889 void *argp1 = 0 ;
24890 int res1 = 0 ;
24891 int val2 ;
24892 int ecode2 = 0 ;
24893 PyObject * obj0 = 0 ;
24894 PyObject * obj1 = 0 ;
24895 char * kwnames[] = {
24896 (char *) "self",(char *) "id", NULL
24897 };
24898
24899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24901 if (!SWIG_IsOK(res1)) {
24902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24903 }
24904 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24905 ecode2 = SWIG_AsVal_int(obj1, &val2);
24906 if (!SWIG_IsOK(ecode2)) {
24907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24908 }
24909 arg2 = static_cast< int >(val2);
24910 {
24911 PyThreadState* __tstate = wxPyBeginAllowThreads();
24912 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24913 wxPyEndAllowThreads(__tstate);
24914 if (PyErr_Occurred()) SWIG_fail;
24915 }
24916 resultobj = SWIG_From_int(static_cast< int >(result));
24917 return resultobj;
24918fail:
24919 return NULL;
24920}
24921
24922
24923SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24924 PyObject *resultobj = 0;
24925 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24926 int arg2 ;
24927 bool result;
24928 void *argp1 = 0 ;
24929 int res1 = 0 ;
24930 int val2 ;
24931 int ecode2 = 0 ;
24932 PyObject * obj0 = 0 ;
24933 PyObject * obj1 = 0 ;
24934 char * kwnames[] = {
24935 (char *) "self",(char *) "id", NULL
24936 };
24937
24938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24940 if (!SWIG_IsOK(res1)) {
24941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24942 }
24943 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24944 ecode2 = SWIG_AsVal_int(obj1, &val2);
24945 if (!SWIG_IsOK(ecode2)) {
24946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24947 }
24948 arg2 = static_cast< int >(val2);
24949 {
24950 PyThreadState* __tstate = wxPyBeginAllowThreads();
24951 result = (bool)(arg1)->GetToolState(arg2);
24952 wxPyEndAllowThreads(__tstate);
24953 if (PyErr_Occurred()) SWIG_fail;
24954 }
24955 {
24956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24957 }
24958 return resultobj;
24959fail:
24960 return NULL;
24961}
24962
24963
24964SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj = 0;
24966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24967 int arg2 ;
24968 bool result;
24969 void *argp1 = 0 ;
24970 int res1 = 0 ;
24971 int val2 ;
24972 int ecode2 = 0 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 char * kwnames[] = {
24976 (char *) "self",(char *) "id", NULL
24977 };
24978
24979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24983 }
24984 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24985 ecode2 = SWIG_AsVal_int(obj1, &val2);
24986 if (!SWIG_IsOK(ecode2)) {
24987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24988 }
24989 arg2 = static_cast< int >(val2);
24990 {
24991 PyThreadState* __tstate = wxPyBeginAllowThreads();
24992 result = (bool)(arg1)->GetToolEnabled(arg2);
24993 wxPyEndAllowThreads(__tstate);
24994 if (PyErr_Occurred()) SWIG_fail;
24995 }
24996 {
24997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24998 }
24999 return resultobj;
25000fail:
25001 return NULL;
25002}
25003
25004
25005SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25006 PyObject *resultobj = 0;
25007 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25008 int arg2 ;
25009 wxString *arg3 = 0 ;
25010 void *argp1 = 0 ;
25011 int res1 = 0 ;
25012 int val2 ;
25013 int ecode2 = 0 ;
25014 bool temp3 = false ;
25015 PyObject * obj0 = 0 ;
25016 PyObject * obj1 = 0 ;
25017 PyObject * obj2 = 0 ;
25018 char * kwnames[] = {
25019 (char *) "self",(char *) "id",(char *) "helpString", NULL
25020 };
25021
25022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25024 if (!SWIG_IsOK(res1)) {
25025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25026 }
25027 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25028 ecode2 = SWIG_AsVal_int(obj1, &val2);
25029 if (!SWIG_IsOK(ecode2)) {
25030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25031 }
25032 arg2 = static_cast< int >(val2);
25033 {
25034 arg3 = wxString_in_helper(obj2);
25035 if (arg3 == NULL) SWIG_fail;
25036 temp3 = true;
25037 }
25038 {
25039 PyThreadState* __tstate = wxPyBeginAllowThreads();
25040 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25041 wxPyEndAllowThreads(__tstate);
25042 if (PyErr_Occurred()) SWIG_fail;
25043 }
25044 resultobj = SWIG_Py_Void();
25045 {
25046 if (temp3)
25047 delete arg3;
25048 }
25049 return resultobj;
25050fail:
25051 {
25052 if (temp3)
25053 delete arg3;
25054 }
25055 return NULL;
25056}
25057
25058
25059SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25060 PyObject *resultobj = 0;
25061 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25062 int arg2 ;
25063 wxString result;
25064 void *argp1 = 0 ;
25065 int res1 = 0 ;
25066 int val2 ;
25067 int ecode2 = 0 ;
25068 PyObject * obj0 = 0 ;
25069 PyObject * obj1 = 0 ;
25070 char * kwnames[] = {
25071 (char *) "self",(char *) "id", NULL
25072 };
25073
25074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25076 if (!SWIG_IsOK(res1)) {
25077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25078 }
25079 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25080 ecode2 = SWIG_AsVal_int(obj1, &val2);
25081 if (!SWIG_IsOK(ecode2)) {
25082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25083 }
25084 arg2 = static_cast< int >(val2);
25085 {
25086 PyThreadState* __tstate = wxPyBeginAllowThreads();
25087 result = (arg1)->GetToolShortHelp(arg2);
25088 wxPyEndAllowThreads(__tstate);
25089 if (PyErr_Occurred()) SWIG_fail;
25090 }
25091 {
d55e5bfc 25092#if wxUSE_UNICODE
554f62e9 25093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 25094#else
554f62e9 25095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 25096#endif
554f62e9
RD
25097 }
25098 return resultobj;
25099fail:
25100 return NULL;
25101}
25102
25103
25104SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25105 PyObject *resultobj = 0;
25106 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25107 int arg2 ;
25108 wxString *arg3 = 0 ;
25109 void *argp1 = 0 ;
25110 int res1 = 0 ;
25111 int val2 ;
25112 int ecode2 = 0 ;
25113 bool temp3 = false ;
25114 PyObject * obj0 = 0 ;
25115 PyObject * obj1 = 0 ;
25116 PyObject * obj2 = 0 ;
25117 char * kwnames[] = {
25118 (char *) "self",(char *) "id",(char *) "helpString", NULL
25119 };
25120
25121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25123 if (!SWIG_IsOK(res1)) {
25124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25125 }
25126 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25127 ecode2 = SWIG_AsVal_int(obj1, &val2);
25128 if (!SWIG_IsOK(ecode2)) {
25129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25130 }
25131 arg2 = static_cast< int >(val2);
25132 {
25133 arg3 = wxString_in_helper(obj2);
25134 if (arg3 == NULL) SWIG_fail;
25135 temp3 = true;
25136 }
25137 {
25138 PyThreadState* __tstate = wxPyBeginAllowThreads();
25139 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25140 wxPyEndAllowThreads(__tstate);
25141 if (PyErr_Occurred()) SWIG_fail;
25142 }
25143 resultobj = SWIG_Py_Void();
25144 {
25145 if (temp3)
25146 delete arg3;
25147 }
25148 return resultobj;
25149fail:
25150 {
25151 if (temp3)
25152 delete arg3;
25153 }
25154 return NULL;
25155}
25156
25157
25158SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj = 0;
25160 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25161 int arg2 ;
25162 wxString result;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 int val2 ;
25166 int ecode2 = 0 ;
25167 PyObject * obj0 = 0 ;
25168 PyObject * obj1 = 0 ;
25169 char * kwnames[] = {
25170 (char *) "self",(char *) "id", NULL
25171 };
25172
25173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25175 if (!SWIG_IsOK(res1)) {
25176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25177 }
25178 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25179 ecode2 = SWIG_AsVal_int(obj1, &val2);
25180 if (!SWIG_IsOK(ecode2)) {
25181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25182 }
25183 arg2 = static_cast< int >(val2);
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 result = (arg1)->GetToolLongHelp(arg2);
25187 wxPyEndAllowThreads(__tstate);
25188 if (PyErr_Occurred()) SWIG_fail;
25189 }
25190 {
25191#if wxUSE_UNICODE
25192 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25193#else
25194 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25195#endif
25196 }
25197 return resultobj;
25198fail:
25199 return NULL;
25200}
25201
25202
25203SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25204 PyObject *resultobj = 0;
25205 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25206 int arg2 ;
25207 int arg3 ;
25208 void *argp1 = 0 ;
25209 int res1 = 0 ;
25210 int val2 ;
25211 int ecode2 = 0 ;
25212 int val3 ;
25213 int ecode3 = 0 ;
25214 PyObject * obj0 = 0 ;
25215 PyObject * obj1 = 0 ;
25216 PyObject * obj2 = 0 ;
25217 char * kwnames[] = {
25218 (char *) "self",(char *) "x",(char *) "y", NULL
25219 };
25220
25221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25223 if (!SWIG_IsOK(res1)) {
25224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25225 }
25226 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25227 ecode2 = SWIG_AsVal_int(obj1, &val2);
25228 if (!SWIG_IsOK(ecode2)) {
25229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25230 }
25231 arg2 = static_cast< int >(val2);
25232 ecode3 = SWIG_AsVal_int(obj2, &val3);
25233 if (!SWIG_IsOK(ecode3)) {
25234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25235 }
25236 arg3 = static_cast< int >(val3);
25237 {
25238 PyThreadState* __tstate = wxPyBeginAllowThreads();
25239 (arg1)->SetMargins(arg2,arg3);
25240 wxPyEndAllowThreads(__tstate);
25241 if (PyErr_Occurred()) SWIG_fail;
25242 }
25243 resultobj = SWIG_Py_Void();
25244 return resultobj;
25245fail:
25246 return NULL;
25247}
25248
25249
25250SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25251 PyObject *resultobj = 0;
25252 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25253 wxSize *arg2 = 0 ;
25254 void *argp1 = 0 ;
25255 int res1 = 0 ;
25256 wxSize temp2 ;
25257 PyObject * obj0 = 0 ;
25258 PyObject * obj1 = 0 ;
25259 char * kwnames[] = {
25260 (char *) "self",(char *) "size", NULL
25261 };
25262
25263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25265 if (!SWIG_IsOK(res1)) {
25266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25267 }
25268 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25269 {
25270 arg2 = &temp2;
25271 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25272 }
25273 {
25274 PyThreadState* __tstate = wxPyBeginAllowThreads();
25275 (arg1)->SetMargins((wxSize const &)*arg2);
25276 wxPyEndAllowThreads(__tstate);
25277 if (PyErr_Occurred()) SWIG_fail;
25278 }
25279 resultobj = SWIG_Py_Void();
25280 return resultobj;
25281fail:
25282 return NULL;
25283}
25284
25285
25286SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25287 PyObject *resultobj = 0;
25288 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25289 int arg2 ;
25290 void *argp1 = 0 ;
25291 int res1 = 0 ;
25292 int val2 ;
25293 int ecode2 = 0 ;
25294 PyObject * obj0 = 0 ;
25295 PyObject * obj1 = 0 ;
25296 char * kwnames[] = {
25297 (char *) "self",(char *) "packing", NULL
25298 };
25299
25300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25302 if (!SWIG_IsOK(res1)) {
25303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25304 }
25305 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25306 ecode2 = SWIG_AsVal_int(obj1, &val2);
25307 if (!SWIG_IsOK(ecode2)) {
25308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25309 }
25310 arg2 = static_cast< int >(val2);
25311 {
25312 PyThreadState* __tstate = wxPyBeginAllowThreads();
25313 (arg1)->SetToolPacking(arg2);
25314 wxPyEndAllowThreads(__tstate);
25315 if (PyErr_Occurred()) SWIG_fail;
25316 }
25317 resultobj = SWIG_Py_Void();
25318 return resultobj;
25319fail:
25320 return NULL;
25321}
25322
25323
25324SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25325 PyObject *resultobj = 0;
25326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25327 int arg2 ;
25328 void *argp1 = 0 ;
25329 int res1 = 0 ;
25330 int val2 ;
25331 int ecode2 = 0 ;
25332 PyObject * obj0 = 0 ;
25333 PyObject * obj1 = 0 ;
25334 char * kwnames[] = {
25335 (char *) "self",(char *) "separation", NULL
25336 };
25337
25338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25340 if (!SWIG_IsOK(res1)) {
25341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25342 }
25343 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25344 ecode2 = SWIG_AsVal_int(obj1, &val2);
25345 if (!SWIG_IsOK(ecode2)) {
25346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25347 }
25348 arg2 = static_cast< int >(val2);
25349 {
25350 PyThreadState* __tstate = wxPyBeginAllowThreads();
25351 (arg1)->SetToolSeparation(arg2);
25352 wxPyEndAllowThreads(__tstate);
25353 if (PyErr_Occurred()) SWIG_fail;
25354 }
25355 resultobj = SWIG_Py_Void();
25356 return resultobj;
25357fail:
25358 return NULL;
d55e5bfc
RD
25359}
25360
25361
554f62e9
RD
25362SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25363 PyObject *resultobj = 0;
25364 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25365 wxSize result;
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 PyObject *swig_obj[1] ;
25369
25370 if (!args) SWIG_fail;
25371 swig_obj[0] = args;
25372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25373 if (!SWIG_IsOK(res1)) {
25374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25375 }
25376 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25377 {
25378 PyThreadState* __tstate = wxPyBeginAllowThreads();
25379 result = (arg1)->GetToolMargins();
25380 wxPyEndAllowThreads(__tstate);
25381 if (PyErr_Occurred()) SWIG_fail;
25382 }
25383 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25384 return resultobj;
25385fail:
25386 return NULL;
d55e5bfc
RD
25387}
25388
25389
554f62e9
RD
25390SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25391 PyObject *resultobj = 0;
25392 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25393 wxSize result;
25394 void *argp1 = 0 ;
25395 int res1 = 0 ;
25396 PyObject *swig_obj[1] ;
25397
25398 if (!args) SWIG_fail;
25399 swig_obj[0] = args;
25400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25401 if (!SWIG_IsOK(res1)) {
25402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25403 }
25404 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25405 {
25406 PyThreadState* __tstate = wxPyBeginAllowThreads();
25407 result = (arg1)->GetMargins();
25408 wxPyEndAllowThreads(__tstate);
25409 if (PyErr_Occurred()) SWIG_fail;
25410 }
25411 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25412 return resultobj;
25413fail:
25414 return NULL;
d55e5bfc
RD
25415}
25416
25417
554f62e9
RD
25418SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25419 PyObject *resultobj = 0;
25420 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25421 int result;
25422 void *argp1 = 0 ;
25423 int res1 = 0 ;
25424 PyObject *swig_obj[1] ;
25425
25426 if (!args) SWIG_fail;
25427 swig_obj[0] = args;
25428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25429 if (!SWIG_IsOK(res1)) {
25430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25431 }
25432 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25433 {
25434 PyThreadState* __tstate = wxPyBeginAllowThreads();
25435 result = (int)(arg1)->GetToolPacking();
25436 wxPyEndAllowThreads(__tstate);
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 resultobj = SWIG_From_int(static_cast< int >(result));
25440 return resultobj;
25441fail:
25442 return NULL;
d55e5bfc
RD
25443}
25444
25445
554f62e9
RD
25446SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25447 PyObject *resultobj = 0;
25448 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25449 int result;
25450 void *argp1 = 0 ;
25451 int res1 = 0 ;
25452 PyObject *swig_obj[1] ;
25453
25454 if (!args) SWIG_fail;
25455 swig_obj[0] = args;
25456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25457 if (!SWIG_IsOK(res1)) {
25458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25459 }
25460 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 result = (int)(arg1)->GetToolSeparation();
25464 wxPyEndAllowThreads(__tstate);
25465 if (PyErr_Occurred()) SWIG_fail;
25466 }
25467 resultobj = SWIG_From_int(static_cast< int >(result));
25468 return resultobj;
25469fail:
25470 return NULL;
25471}
25472
25473
25474SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25475 PyObject *resultobj = 0;
25476 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25477 int arg2 ;
25478 void *argp1 = 0 ;
25479 int res1 = 0 ;
25480 int val2 ;
25481 int ecode2 = 0 ;
25482 PyObject * obj0 = 0 ;
25483 PyObject * obj1 = 0 ;
25484 char * kwnames[] = {
25485 (char *) "self",(char *) "nRows", NULL
25486 };
25487
25488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25490 if (!SWIG_IsOK(res1)) {
25491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25492 }
25493 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25494 ecode2 = SWIG_AsVal_int(obj1, &val2);
25495 if (!SWIG_IsOK(ecode2)) {
25496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25497 }
25498 arg2 = static_cast< int >(val2);
25499 {
25500 PyThreadState* __tstate = wxPyBeginAllowThreads();
25501 (arg1)->SetRows(arg2);
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_Py_Void();
25506 return resultobj;
25507fail:
25508 return NULL;
25509}
25510
25511
25512SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25513 PyObject *resultobj = 0;
25514 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25515 int arg2 ;
25516 int arg3 ;
25517 void *argp1 = 0 ;
25518 int res1 = 0 ;
25519 int val2 ;
25520 int ecode2 = 0 ;
25521 int val3 ;
25522 int ecode3 = 0 ;
25523 PyObject * obj0 = 0 ;
25524 PyObject * obj1 = 0 ;
25525 PyObject * obj2 = 0 ;
25526 char * kwnames[] = {
25527 (char *) "self",(char *) "rows",(char *) "cols", NULL
25528 };
25529
25530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25532 if (!SWIG_IsOK(res1)) {
25533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25534 }
25535 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25536 ecode2 = SWIG_AsVal_int(obj1, &val2);
25537 if (!SWIG_IsOK(ecode2)) {
25538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25539 }
25540 arg2 = static_cast< int >(val2);
25541 ecode3 = SWIG_AsVal_int(obj2, &val3);
25542 if (!SWIG_IsOK(ecode3)) {
25543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25544 }
25545 arg3 = static_cast< int >(val3);
25546 {
25547 PyThreadState* __tstate = wxPyBeginAllowThreads();
25548 (arg1)->SetMaxRowsCols(arg2,arg3);
25549 wxPyEndAllowThreads(__tstate);
25550 if (PyErr_Occurred()) SWIG_fail;
25551 }
25552 resultobj = SWIG_Py_Void();
25553 return resultobj;
25554fail:
25555 return NULL;
d55e5bfc
RD
25556}
25557
25558
554f62e9
RD
25559SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25560 PyObject *resultobj = 0;
25561 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25562 int result;
25563 void *argp1 = 0 ;
25564 int res1 = 0 ;
25565 PyObject *swig_obj[1] ;
25566
25567 if (!args) SWIG_fail;
25568 swig_obj[0] = args;
25569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25570 if (!SWIG_IsOK(res1)) {
25571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25572 }
25573 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25574 {
25575 PyThreadState* __tstate = wxPyBeginAllowThreads();
25576 result = (int)(arg1)->GetMaxRows();
25577 wxPyEndAllowThreads(__tstate);
25578 if (PyErr_Occurred()) SWIG_fail;
25579 }
25580 resultobj = SWIG_From_int(static_cast< int >(result));
25581 return resultobj;
25582fail:
25583 return NULL;
d55e5bfc
RD
25584}
25585
25586
554f62e9
RD
25587SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25588 PyObject *resultobj = 0;
25589 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25590 int result;
25591 void *argp1 = 0 ;
25592 int res1 = 0 ;
25593 PyObject *swig_obj[1] ;
25594
25595 if (!args) SWIG_fail;
25596 swig_obj[0] = args;
25597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25598 if (!SWIG_IsOK(res1)) {
25599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25600 }
25601 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25602 {
25603 PyThreadState* __tstate = wxPyBeginAllowThreads();
25604 result = (int)(arg1)->GetMaxCols();
25605 wxPyEndAllowThreads(__tstate);
25606 if (PyErr_Occurred()) SWIG_fail;
25607 }
25608 resultobj = SWIG_From_int(static_cast< int >(result));
25609 return resultobj;
25610fail:
25611 return NULL;
25612}
25613
25614
25615SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25616 PyObject *resultobj = 0;
25617 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25618 wxSize *arg2 = 0 ;
25619 void *argp1 = 0 ;
25620 int res1 = 0 ;
25621 wxSize temp2 ;
25622 PyObject * obj0 = 0 ;
25623 PyObject * obj1 = 0 ;
25624 char * kwnames[] = {
25625 (char *) "self",(char *) "size", NULL
25626 };
25627
25628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25630 if (!SWIG_IsOK(res1)) {
25631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25632 }
25633 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25634 {
25635 arg2 = &temp2;
25636 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25637 }
25638 {
25639 PyThreadState* __tstate = wxPyBeginAllowThreads();
25640 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25641 wxPyEndAllowThreads(__tstate);
25642 if (PyErr_Occurred()) SWIG_fail;
25643 }
25644 resultobj = SWIG_Py_Void();
25645 return resultobj;
25646fail:
25647 return NULL;
d55e5bfc
RD
25648}
25649
25650
554f62e9
RD
25651SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25652 PyObject *resultobj = 0;
25653 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25654 wxSize result;
25655 void *argp1 = 0 ;
25656 int res1 = 0 ;
25657 PyObject *swig_obj[1] ;
25658
25659 if (!args) SWIG_fail;
25660 swig_obj[0] = args;
25661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25662 if (!SWIG_IsOK(res1)) {
25663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25664 }
25665 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25666 {
25667 PyThreadState* __tstate = wxPyBeginAllowThreads();
25668 result = (arg1)->GetToolBitmapSize();
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25673 return resultobj;
25674fail:
25675 return NULL;
d55e5bfc
RD
25676}
25677
25678
554f62e9
RD
25679SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25680 PyObject *resultobj = 0;
25681 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25682 wxSize result;
25683 void *argp1 = 0 ;
25684 int res1 = 0 ;
25685 PyObject *swig_obj[1] ;
25686
25687 if (!args) SWIG_fail;
25688 swig_obj[0] = args;
25689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25690 if (!SWIG_IsOK(res1)) {
25691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25692 }
25693 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25694 {
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 result = (arg1)->GetToolSize();
25697 wxPyEndAllowThreads(__tstate);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25701 return resultobj;
25702fail:
25703 return NULL;
25704}
25705
25706
25707SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25708 PyObject *resultobj = 0;
25709 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25710 int arg2 ;
25711 int arg3 ;
25712 wxToolBarToolBase *result = 0 ;
25713 void *argp1 = 0 ;
25714 int res1 = 0 ;
25715 int val2 ;
25716 int ecode2 = 0 ;
25717 int val3 ;
25718 int ecode3 = 0 ;
25719 PyObject * obj0 = 0 ;
25720 PyObject * obj1 = 0 ;
25721 PyObject * obj2 = 0 ;
25722 char * kwnames[] = {
25723 (char *) "self",(char *) "x",(char *) "y", NULL
25724 };
25725
25726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25728 if (!SWIG_IsOK(res1)) {
25729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25730 }
25731 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25732 ecode2 = SWIG_AsVal_int(obj1, &val2);
25733 if (!SWIG_IsOK(ecode2)) {
25734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25735 }
25736 arg2 = static_cast< int >(val2);
25737 ecode3 = SWIG_AsVal_int(obj2, &val3);
25738 if (!SWIG_IsOK(ecode3)) {
25739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25740 }
25741 arg3 = static_cast< int >(val3);
25742 {
25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
25744 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25745 wxPyEndAllowThreads(__tstate);
25746 if (PyErr_Occurred()) SWIG_fail;
25747 }
25748 {
25749 resultobj = wxPyMake_wxObject(result, (bool)0);
25750 }
25751 return resultobj;
25752fail:
25753 return NULL;
25754}
25755
25756
25757SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25758 PyObject *resultobj = 0;
25759 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25760 int arg2 ;
25761 wxToolBarToolBase *result = 0 ;
25762 void *argp1 = 0 ;
25763 int res1 = 0 ;
25764 int val2 ;
25765 int ecode2 = 0 ;
25766 PyObject * obj0 = 0 ;
25767 PyObject * obj1 = 0 ;
25768 char * kwnames[] = {
25769 (char *) "self",(char *) "toolid", NULL
25770 };
25771
25772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25774 if (!SWIG_IsOK(res1)) {
25775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25776 }
25777 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25778 ecode2 = SWIG_AsVal_int(obj1, &val2);
25779 if (!SWIG_IsOK(ecode2)) {
25780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25781 }
25782 arg2 = static_cast< int >(val2);
25783 {
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25786 wxPyEndAllowThreads(__tstate);
25787 if (PyErr_Occurred()) SWIG_fail;
25788 }
25789 {
25790 resultobj = wxPyMake_wxObject(result, (bool)0);
25791 }
25792 return resultobj;
25793fail:
25794 return NULL;
d55e5bfc
RD
25795}
25796
25797
554f62e9
RD
25798SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25799 PyObject *resultobj = 0;
25800 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25801 bool result;
25802 void *argp1 = 0 ;
25803 int res1 = 0 ;
25804 PyObject *swig_obj[1] ;
25805
25806 if (!args) SWIG_fail;
25807 swig_obj[0] = args;
25808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25809 if (!SWIG_IsOK(res1)) {
25810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25811 }
25812 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25813 {
25814 PyThreadState* __tstate = wxPyBeginAllowThreads();
25815 result = (bool)(arg1)->IsVertical();
25816 wxPyEndAllowThreads(__tstate);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
25819 {
25820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25821 }
25822 return resultobj;
25823fail:
25824 return NULL;
d55e5bfc
RD
25825}
25826
25827
554f62e9
RD
25828SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25829 PyObject *resultobj = 0;
25830 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25831 size_t result;
25832 void *argp1 = 0 ;
25833 int res1 = 0 ;
25834 PyObject *swig_obj[1] ;
25835
25836 if (!args) SWIG_fail;
25837 swig_obj[0] = args;
25838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25839 if (!SWIG_IsOK(res1)) {
25840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25841 }
25842 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25843 {
25844 PyThreadState* __tstate = wxPyBeginAllowThreads();
25845 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25846 wxPyEndAllowThreads(__tstate);
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25850 return resultobj;
25851fail:
25852 return NULL;
25853}
25854
25855
25856SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25857 PyObject *obj;
25858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25859 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25860 return SWIG_Py_Void();
25861}
25862
25863SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25864 PyObject *resultobj = 0;
25865 wxWindow *arg1 = (wxWindow *) 0 ;
25866 int arg2 = (int) -1 ;
25867 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25868 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25869 wxSize const &arg4_defvalue = wxDefaultSize ;
25870 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25871 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25872 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25873 wxString *arg6 = (wxString *) &arg6_defvalue ;
25874 wxToolBar *result = 0 ;
25875 void *argp1 = 0 ;
25876 int res1 = 0 ;
25877 int val2 ;
25878 int ecode2 = 0 ;
25879 wxPoint temp3 ;
25880 wxSize temp4 ;
25881 long val5 ;
25882 int ecode5 = 0 ;
25883 bool temp6 = false ;
25884 PyObject * obj0 = 0 ;
25885 PyObject * obj1 = 0 ;
25886 PyObject * obj2 = 0 ;
25887 PyObject * obj3 = 0 ;
25888 PyObject * obj4 = 0 ;
25889 PyObject * obj5 = 0 ;
25890 char * kwnames[] = {
25891 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25892 };
25893
25894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25896 if (!SWIG_IsOK(res1)) {
25897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25898 }
25899 arg1 = reinterpret_cast< wxWindow * >(argp1);
25900 if (obj1) {
25901 ecode2 = SWIG_AsVal_int(obj1, &val2);
25902 if (!SWIG_IsOK(ecode2)) {
25903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25904 }
25905 arg2 = static_cast< int >(val2);
25906 }
25907 if (obj2) {
d55e5bfc 25908 {
554f62e9
RD
25909 arg3 = &temp3;
25910 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25911 }
554f62e9
RD
25912 }
25913 if (obj3) {
093d3ff1 25914 {
554f62e9
RD
25915 arg4 = &temp4;
25916 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25917 }
554f62e9
RD
25918 }
25919 if (obj4) {
25920 ecode5 = SWIG_AsVal_long(obj4, &val5);
25921 if (!SWIG_IsOK(ecode5)) {
25922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25923 }
25924 arg5 = static_cast< long >(val5);
25925 }
25926 if (obj5) {
d55e5bfc 25927 {
554f62e9
RD
25928 arg6 = wxString_in_helper(obj5);
25929 if (arg6 == NULL) SWIG_fail;
25930 temp6 = true;
d55e5bfc 25931 }
554f62e9
RD
25932 }
25933 {
25934 if (!wxPyCheckForApp()) SWIG_fail;
25935 PyThreadState* __tstate = wxPyBeginAllowThreads();
25936 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25937 wxPyEndAllowThreads(__tstate);
25938 if (PyErr_Occurred()) SWIG_fail;
25939 }
25940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25941 {
25942 if (temp6)
25943 delete arg6;
25944 }
25945 return resultobj;
25946fail:
25947 {
25948 if (temp6)
25949 delete arg6;
25950 }
25951 return NULL;
d55e5bfc
RD
25952}
25953
25954
554f62e9
RD
25955SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25956 PyObject *resultobj = 0;
25957 wxToolBar *result = 0 ;
25958
25959 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25960 {
25961 if (!wxPyCheckForApp()) SWIG_fail;
25962 PyThreadState* __tstate = wxPyBeginAllowThreads();
25963 result = (wxToolBar *)new wxToolBar();
25964 wxPyEndAllowThreads(__tstate);
25965 if (PyErr_Occurred()) SWIG_fail;
25966 }
25967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25968 return resultobj;
25969fail:
25970 return NULL;
25971}
25972
25973
25974SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25975 PyObject *resultobj = 0;
25976 wxToolBar *arg1 = (wxToolBar *) 0 ;
25977 wxWindow *arg2 = (wxWindow *) 0 ;
25978 int arg3 = (int) -1 ;
25979 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25980 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25981 wxSize const &arg5_defvalue = wxDefaultSize ;
25982 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25983 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25984 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25985 wxString *arg7 = (wxString *) &arg7_defvalue ;
25986 bool result;
25987 void *argp1 = 0 ;
25988 int res1 = 0 ;
25989 void *argp2 = 0 ;
25990 int res2 = 0 ;
25991 int val3 ;
25992 int ecode3 = 0 ;
25993 wxPoint temp4 ;
25994 wxSize temp5 ;
25995 long val6 ;
25996 int ecode6 = 0 ;
25997 bool temp7 = false ;
25998 PyObject * obj0 = 0 ;
25999 PyObject * obj1 = 0 ;
26000 PyObject * obj2 = 0 ;
26001 PyObject * obj3 = 0 ;
26002 PyObject * obj4 = 0 ;
26003 PyObject * obj5 = 0 ;
26004 PyObject * obj6 = 0 ;
26005 char * kwnames[] = {
26006 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26007 };
26008
26009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26011 if (!SWIG_IsOK(res1)) {
26012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26013 }
26014 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26016 if (!SWIG_IsOK(res2)) {
26017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26018 }
26019 arg2 = reinterpret_cast< wxWindow * >(argp2);
26020 if (obj2) {
26021 ecode3 = SWIG_AsVal_int(obj2, &val3);
26022 if (!SWIG_IsOK(ecode3)) {
26023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26024 }
26025 arg3 = static_cast< int >(val3);
26026 }
26027 if (obj3) {
d55e5bfc 26028 {
554f62e9
RD
26029 arg4 = &temp4;
26030 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 26031 }
554f62e9
RD
26032 }
26033 if (obj4) {
093d3ff1 26034 {
554f62e9
RD
26035 arg5 = &temp5;
26036 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 26037 }
554f62e9
RD
26038 }
26039 if (obj5) {
26040 ecode6 = SWIG_AsVal_long(obj5, &val6);
26041 if (!SWIG_IsOK(ecode6)) {
26042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26043 }
26044 arg6 = static_cast< long >(val6);
26045 }
26046 if (obj6) {
26047 {
26048 arg7 = wxString_in_helper(obj6);
26049 if (arg7 == NULL) SWIG_fail;
26050 temp7 = true;
26051 }
26052 }
26053 {
26054 PyThreadState* __tstate = wxPyBeginAllowThreads();
26055 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26056 wxPyEndAllowThreads(__tstate);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 {
26060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26061 }
26062 {
26063 if (temp7)
26064 delete arg7;
26065 }
26066 return resultobj;
26067fail:
26068 {
26069 if (temp7)
26070 delete arg7;
26071 }
26072 return NULL;
26073}
26074
26075
554f62e9
RD
26076SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj = 0;
26078 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26079 SwigValueWrapper<wxVisualAttributes > result;
26080 int val1 ;
26081 int ecode1 = 0 ;
26082 PyObject * obj0 = 0 ;
26083 char * kwnames[] = {
26084 (char *) "variant", NULL
26085 };
26086
26087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26088 if (obj0) {
26089 ecode1 = SWIG_AsVal_int(obj0, &val1);
26090 if (!SWIG_IsOK(ecode1)) {
26091 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26092 }
26093 arg1 = static_cast< wxWindowVariant >(val1);
26094 }
26095 {
26096 if (!wxPyCheckForApp()) SWIG_fail;
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 result = wxToolBar::GetClassDefaultAttributes(arg1);
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26103 return resultobj;
26104fail:
26105 return NULL;
d55e5bfc
RD
26106}
26107
26108
554f62e9
RD
26109SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26110 PyObject *obj;
26111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26112 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26113 return SWIG_Py_Void();
d55e5bfc
RD
26114}
26115
554f62e9
RD
26116SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26117 return SWIG_Python_InitShadowInstance(args);
26118}
d55e5bfc 26119
554f62e9
RD
26120SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26121 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26122 return 1;
d55e5bfc
RD
26123}
26124
26125
554f62e9
RD
26126SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26127 PyObject *pyobj = 0;
26128
26129 {
26130#if wxUSE_UNICODE
26131 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26132#else
26133 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26134#endif
26135 }
26136 return pyobj;
26137}
26138
26139
26140SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26141 PyObject *resultobj = 0;
26142 wxColour const &arg1_defvalue = wxNullColour ;
26143 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26144 wxColour const &arg2_defvalue = wxNullColour ;
26145 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26146 wxFont const &arg3_defvalue = wxNullFont ;
26147 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26148 wxListItemAttr *result = 0 ;
26149 wxColour temp1 ;
26150 wxColour temp2 ;
26151 void *argp3 = 0 ;
26152 int res3 = 0 ;
26153 PyObject * obj0 = 0 ;
26154 PyObject * obj1 = 0 ;
26155 PyObject * obj2 = 0 ;
26156 char * kwnames[] = {
26157 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26158 };
26159
26160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26161 if (obj0) {
093d3ff1 26162 {
554f62e9
RD
26163 arg1 = &temp1;
26164 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26165 }
554f62e9
RD
26166 }
26167 if (obj1) {
d55e5bfc 26168 {
554f62e9
RD
26169 arg2 = &temp2;
26170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 26171 }
554f62e9
RD
26172 }
26173 if (obj2) {
26174 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26175 if (!SWIG_IsOK(res3)) {
26176 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26177 }
26178 if (!argp3) {
26179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26180 }
26181 arg3 = reinterpret_cast< wxFont * >(argp3);
26182 }
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26186 wxPyEndAllowThreads(__tstate);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26190 return resultobj;
26191fail:
26192 return NULL;
d55e5bfc
RD
26193}
26194
26195
554f62e9
RD
26196SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26197 PyObject *resultobj = 0;
26198 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26199 void *argp1 = 0 ;
26200 int res1 = 0 ;
26201 PyObject *swig_obj[1] ;
26202
26203 if (!args) SWIG_fail;
26204 swig_obj[0] = args;
26205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26206 if (!SWIG_IsOK(res1)) {
26207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26208 }
26209 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26210 {
26211 PyThreadState* __tstate = wxPyBeginAllowThreads();
26212 delete arg1;
d55e5bfc 26213
554f62e9
RD
26214 wxPyEndAllowThreads(__tstate);
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 resultobj = SWIG_Py_Void();
26218 return resultobj;
26219fail:
26220 return NULL;
26221}
26222
26223
26224SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26225 PyObject *resultobj = 0;
26226 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26227 wxColour *arg2 = 0 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 wxColour temp2 ;
26231 PyObject * obj0 = 0 ;
26232 PyObject * obj1 = 0 ;
26233 char * kwnames[] = {
26234 (char *) "self",(char *) "colText", NULL
26235 };
26236
26237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26239 if (!SWIG_IsOK(res1)) {
26240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26241 }
26242 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26243 {
26244 arg2 = &temp2;
26245 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26246 }
26247 {
26248 PyThreadState* __tstate = wxPyBeginAllowThreads();
26249 (arg1)->SetTextColour((wxColour const &)*arg2);
26250 wxPyEndAllowThreads(__tstate);
26251 if (PyErr_Occurred()) SWIG_fail;
26252 }
26253 resultobj = SWIG_Py_Void();
26254 return resultobj;
26255fail:
26256 return NULL;
26257}
26258
26259
26260SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26261 PyObject *resultobj = 0;
26262 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26263 wxColour *arg2 = 0 ;
26264 void *argp1 = 0 ;
26265 int res1 = 0 ;
26266 wxColour temp2 ;
26267 PyObject * obj0 = 0 ;
26268 PyObject * obj1 = 0 ;
26269 char * kwnames[] = {
26270 (char *) "self",(char *) "colBack", NULL
26271 };
26272
26273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26275 if (!SWIG_IsOK(res1)) {
26276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26277 }
26278 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26279 {
26280 arg2 = &temp2;
26281 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26282 }
26283 {
26284 PyThreadState* __tstate = wxPyBeginAllowThreads();
26285 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26286 wxPyEndAllowThreads(__tstate);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 }
26289 resultobj = SWIG_Py_Void();
26290 return resultobj;
26291fail:
26292 return NULL;
26293}
26294
26295
26296SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26297 PyObject *resultobj = 0;
26298 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26299 wxFont *arg2 = 0 ;
26300 void *argp1 = 0 ;
26301 int res1 = 0 ;
26302 void *argp2 = 0 ;
26303 int res2 = 0 ;
26304 PyObject * obj0 = 0 ;
26305 PyObject * obj1 = 0 ;
26306 char * kwnames[] = {
26307 (char *) "self",(char *) "font", NULL
26308 };
26309
26310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26312 if (!SWIG_IsOK(res1)) {
26313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26314 }
26315 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26317 if (!SWIG_IsOK(res2)) {
26318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26319 }
26320 if (!argp2) {
26321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26322 }
26323 arg2 = reinterpret_cast< wxFont * >(argp2);
26324 {
26325 PyThreadState* __tstate = wxPyBeginAllowThreads();
26326 (arg1)->SetFont((wxFont const &)*arg2);
26327 wxPyEndAllowThreads(__tstate);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 }
26330 resultobj = SWIG_Py_Void();
26331 return resultobj;
26332fail:
26333 return NULL;
d55e5bfc
RD
26334}
26335
26336
554f62e9
RD
26337SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26338 PyObject *resultobj = 0;
26339 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26340 bool result;
26341 void *argp1 = 0 ;
26342 int res1 = 0 ;
26343 PyObject *swig_obj[1] ;
26344
26345 if (!args) SWIG_fail;
26346 swig_obj[0] = args;
26347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26348 if (!SWIG_IsOK(res1)) {
26349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26350 }
26351 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26352 {
26353 PyThreadState* __tstate = wxPyBeginAllowThreads();
26354 result = (bool)(arg1)->HasTextColour();
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 {
26359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26360 }
26361 return resultobj;
26362fail:
26363 return NULL;
d55e5bfc
RD
26364}
26365
26366
554f62e9
RD
26367SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26368 PyObject *resultobj = 0;
26369 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26370 bool result;
26371 void *argp1 = 0 ;
26372 int res1 = 0 ;
26373 PyObject *swig_obj[1] ;
26374
26375 if (!args) SWIG_fail;
26376 swig_obj[0] = args;
26377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26378 if (!SWIG_IsOK(res1)) {
26379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26380 }
26381 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26382 {
26383 PyThreadState* __tstate = wxPyBeginAllowThreads();
26384 result = (bool)(arg1)->HasBackgroundColour();
26385 wxPyEndAllowThreads(__tstate);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 {
26389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26390 }
26391 return resultobj;
26392fail:
26393 return NULL;
d55e5bfc
RD
26394}
26395
26396
554f62e9
RD
26397SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26398 PyObject *resultobj = 0;
26399 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26400 bool result;
26401 void *argp1 = 0 ;
26402 int res1 = 0 ;
26403 PyObject *swig_obj[1] ;
26404
26405 if (!args) SWIG_fail;
26406 swig_obj[0] = args;
26407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26408 if (!SWIG_IsOK(res1)) {
26409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26410 }
26411 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26412 {
26413 PyThreadState* __tstate = wxPyBeginAllowThreads();
26414 result = (bool)(arg1)->HasFont();
26415 wxPyEndAllowThreads(__tstate);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 {
26419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26420 }
26421 return resultobj;
26422fail:
26423 return NULL;
d55e5bfc
RD
26424}
26425
26426
554f62e9
RD
26427SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26428 PyObject *resultobj = 0;
26429 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26430 wxColour result;
26431 void *argp1 = 0 ;
26432 int res1 = 0 ;
26433 PyObject *swig_obj[1] ;
26434
26435 if (!args) SWIG_fail;
26436 swig_obj[0] = args;
26437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26438 if (!SWIG_IsOK(res1)) {
26439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26440 }
26441 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26442 {
26443 PyThreadState* __tstate = wxPyBeginAllowThreads();
26444 result = (arg1)->GetTextColour();
26445 wxPyEndAllowThreads(__tstate);
26446 if (PyErr_Occurred()) SWIG_fail;
26447 }
26448 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26449 return resultobj;
26450fail:
26451 return NULL;
d55e5bfc
RD
26452}
26453
26454
554f62e9
RD
26455SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26456 PyObject *resultobj = 0;
26457 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26458 wxColour result;
26459 void *argp1 = 0 ;
26460 int res1 = 0 ;
26461 PyObject *swig_obj[1] ;
26462
26463 if (!args) SWIG_fail;
26464 swig_obj[0] = args;
26465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26466 if (!SWIG_IsOK(res1)) {
26467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26468 }
26469 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26470 {
26471 PyThreadState* __tstate = wxPyBeginAllowThreads();
26472 result = (arg1)->GetBackgroundColour();
26473 wxPyEndAllowThreads(__tstate);
26474 if (PyErr_Occurred()) SWIG_fail;
26475 }
26476 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26477 return resultobj;
26478fail:
26479 return NULL;
d55e5bfc
RD
26480}
26481
26482
554f62e9
RD
26483SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26484 PyObject *resultobj = 0;
26485 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26486 wxFont result;
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 PyObject *swig_obj[1] ;
26490
26491 if (!args) SWIG_fail;
26492 swig_obj[0] = args;
26493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26494 if (!SWIG_IsOK(res1)) {
26495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26496 }
26497 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26498 {
26499 PyThreadState* __tstate = wxPyBeginAllowThreads();
26500 result = (arg1)->GetFont();
26501 wxPyEndAllowThreads(__tstate);
26502 if (PyErr_Occurred()) SWIG_fail;
26503 }
26504 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26505 return resultobj;
26506fail:
26507 return NULL;
26508}
26509
26510
26511SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26512 PyObject *resultobj = 0;
26513 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26514 wxListItemAttr *arg2 = 0 ;
26515 void *argp1 = 0 ;
26516 int res1 = 0 ;
26517 void *argp2 = 0 ;
26518 int res2 = 0 ;
26519 PyObject * obj0 = 0 ;
26520 PyObject * obj1 = 0 ;
26521 char * kwnames[] = {
26522 (char *) "self",(char *) "source", NULL
26523 };
26524
26525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26527 if (!SWIG_IsOK(res1)) {
26528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26529 }
26530 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26532 if (!SWIG_IsOK(res2)) {
26533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26534 }
26535 if (!argp2) {
26536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26537 }
26538 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26539 {
26540 PyThreadState* __tstate = wxPyBeginAllowThreads();
26541 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26542 wxPyEndAllowThreads(__tstate);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 resultobj = SWIG_Py_Void();
26546 return resultobj;
26547fail:
26548 return NULL;
d55e5bfc
RD
26549}
26550
26551
554f62e9
RD
26552SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26553 PyObject *resultobj = 0;
26554 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26555 void *argp1 = 0 ;
26556 int res1 = 0 ;
26557 PyObject *swig_obj[1] ;
26558
26559 if (!args) SWIG_fail;
26560 swig_obj[0] = args;
26561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26562 if (!SWIG_IsOK(res1)) {
26563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26564 }
26565 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26566 {
26567 PyThreadState* __tstate = wxPyBeginAllowThreads();
26568 wxListItemAttr_Destroy(arg1);
26569 wxPyEndAllowThreads(__tstate);
26570 if (PyErr_Occurred()) SWIG_fail;
26571 }
26572 resultobj = SWIG_Py_Void();
26573 return resultobj;
26574fail:
26575 return NULL;
f20a2e1f
RD
26576}
26577
26578
554f62e9
RD
26579SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26580 PyObject *obj;
26581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26582 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26583 return SWIG_Py_Void();
d55e5bfc 26584}
554f62e9
RD
26585
26586SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26587 return SWIG_Python_InitShadowInstance(args);
26588}
26589
26590SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26591 PyObject *resultobj = 0;
26592 wxListItem *result = 0 ;
26593
26594 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26595 {
26596 PyThreadState* __tstate = wxPyBeginAllowThreads();
26597 result = (wxListItem *)new wxListItem();
26598 wxPyEndAllowThreads(__tstate);
26599 if (PyErr_Occurred()) SWIG_fail;
26600 }
3ecece7e 26601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
554f62e9
RD
26602 return resultobj;
26603fail:
26604 return NULL;
d55e5bfc
RD
26605}
26606
26607
554f62e9
RD
26608SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26609 PyObject *resultobj = 0;
26610 wxListItem *arg1 = (wxListItem *) 0 ;
26611 void *argp1 = 0 ;
26612 int res1 = 0 ;
26613 PyObject *swig_obj[1] ;
26614
26615 if (!args) SWIG_fail;
26616 swig_obj[0] = args;
26617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26618 if (!SWIG_IsOK(res1)) {
26619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26620 }
26621 arg1 = reinterpret_cast< wxListItem * >(argp1);
26622 {
26623 PyThreadState* __tstate = wxPyBeginAllowThreads();
26624 delete arg1;
d55e5bfc 26625
554f62e9
RD
26626 wxPyEndAllowThreads(__tstate);
26627 if (PyErr_Occurred()) SWIG_fail;
26628 }
26629 resultobj = SWIG_Py_Void();
26630 return resultobj;
26631fail:
26632 return NULL;
d55e5bfc
RD
26633}
26634
26635
554f62e9
RD
26636SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26637 PyObject *resultobj = 0;
26638 wxListItem *arg1 = (wxListItem *) 0 ;
26639 void *argp1 = 0 ;
26640 int res1 = 0 ;
26641 PyObject *swig_obj[1] ;
26642
26643 if (!args) SWIG_fail;
26644 swig_obj[0] = args;
26645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26646 if (!SWIG_IsOK(res1)) {
26647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26648 }
26649 arg1 = reinterpret_cast< wxListItem * >(argp1);
26650 {
26651 PyThreadState* __tstate = wxPyBeginAllowThreads();
26652 (arg1)->Clear();
26653 wxPyEndAllowThreads(__tstate);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 }
26656 resultobj = SWIG_Py_Void();
26657 return resultobj;
26658fail:
26659 return NULL;
d55e5bfc
RD
26660}
26661
26662
554f62e9
RD
26663SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26664 PyObject *resultobj = 0;
26665 wxListItem *arg1 = (wxListItem *) 0 ;
26666 void *argp1 = 0 ;
26667 int res1 = 0 ;
26668 PyObject *swig_obj[1] ;
26669
26670 if (!args) SWIG_fail;
26671 swig_obj[0] = args;
26672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26673 if (!SWIG_IsOK(res1)) {
26674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26675 }
26676 arg1 = reinterpret_cast< wxListItem * >(argp1);
26677 {
26678 PyThreadState* __tstate = wxPyBeginAllowThreads();
26679 (arg1)->ClearAttributes();
26680 wxPyEndAllowThreads(__tstate);
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
26683 resultobj = SWIG_Py_Void();
26684 return resultobj;
26685fail:
26686 return NULL;
26687}
26688
26689
26690SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26691 PyObject *resultobj = 0;
26692 wxListItem *arg1 = (wxListItem *) 0 ;
26693 long arg2 ;
26694 void *argp1 = 0 ;
26695 int res1 = 0 ;
26696 long val2 ;
26697 int ecode2 = 0 ;
26698 PyObject * obj0 = 0 ;
26699 PyObject * obj1 = 0 ;
26700 char * kwnames[] = {
26701 (char *) "self",(char *) "mask", NULL
26702 };
26703
26704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26706 if (!SWIG_IsOK(res1)) {
26707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26708 }
26709 arg1 = reinterpret_cast< wxListItem * >(argp1);
26710 ecode2 = SWIG_AsVal_long(obj1, &val2);
26711 if (!SWIG_IsOK(ecode2)) {
26712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26713 }
26714 arg2 = static_cast< long >(val2);
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 (arg1)->SetMask(arg2);
26718 wxPyEndAllowThreads(__tstate);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 resultobj = SWIG_Py_Void();
26722 return resultobj;
26723fail:
26724 return NULL;
26725}
26726
26727
26728SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26729 PyObject *resultobj = 0;
26730 wxListItem *arg1 = (wxListItem *) 0 ;
26731 long arg2 ;
26732 void *argp1 = 0 ;
26733 int res1 = 0 ;
26734 long val2 ;
26735 int ecode2 = 0 ;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 char * kwnames[] = {
26739 (char *) "self",(char *) "id", NULL
26740 };
26741
26742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26744 if (!SWIG_IsOK(res1)) {
26745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26746 }
26747 arg1 = reinterpret_cast< wxListItem * >(argp1);
26748 ecode2 = SWIG_AsVal_long(obj1, &val2);
26749 if (!SWIG_IsOK(ecode2)) {
26750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26751 }
26752 arg2 = static_cast< long >(val2);
26753 {
26754 PyThreadState* __tstate = wxPyBeginAllowThreads();
26755 (arg1)->SetId(arg2);
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 resultobj = SWIG_Py_Void();
26760 return resultobj;
26761fail:
26762 return NULL;
26763}
26764
26765
26766SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26767 PyObject *resultobj = 0;
26768 wxListItem *arg1 = (wxListItem *) 0 ;
26769 int arg2 ;
26770 void *argp1 = 0 ;
26771 int res1 = 0 ;
26772 int val2 ;
26773 int ecode2 = 0 ;
26774 PyObject * obj0 = 0 ;
26775 PyObject * obj1 = 0 ;
26776 char * kwnames[] = {
26777 (char *) "self",(char *) "col", NULL
26778 };
26779
26780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26782 if (!SWIG_IsOK(res1)) {
26783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26784 }
26785 arg1 = reinterpret_cast< wxListItem * >(argp1);
26786 ecode2 = SWIG_AsVal_int(obj1, &val2);
26787 if (!SWIG_IsOK(ecode2)) {
26788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26789 }
26790 arg2 = static_cast< int >(val2);
26791 {
26792 PyThreadState* __tstate = wxPyBeginAllowThreads();
26793 (arg1)->SetColumn(arg2);
26794 wxPyEndAllowThreads(__tstate);
26795 if (PyErr_Occurred()) SWIG_fail;
26796 }
26797 resultobj = SWIG_Py_Void();
26798 return resultobj;
26799fail:
26800 return NULL;
26801}
26802
26803
26804SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26805 PyObject *resultobj = 0;
26806 wxListItem *arg1 = (wxListItem *) 0 ;
26807 long arg2 ;
26808 void *argp1 = 0 ;
26809 int res1 = 0 ;
26810 long val2 ;
26811 int ecode2 = 0 ;
26812 PyObject * obj0 = 0 ;
26813 PyObject * obj1 = 0 ;
26814 char * kwnames[] = {
26815 (char *) "self",(char *) "state", NULL
26816 };
26817
26818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26820 if (!SWIG_IsOK(res1)) {
26821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26822 }
26823 arg1 = reinterpret_cast< wxListItem * >(argp1);
26824 ecode2 = SWIG_AsVal_long(obj1, &val2);
26825 if (!SWIG_IsOK(ecode2)) {
26826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26827 }
26828 arg2 = static_cast< long >(val2);
26829 {
26830 PyThreadState* __tstate = wxPyBeginAllowThreads();
26831 (arg1)->SetState(arg2);
26832 wxPyEndAllowThreads(__tstate);
26833 if (PyErr_Occurred()) SWIG_fail;
26834 }
26835 resultobj = SWIG_Py_Void();
26836 return resultobj;
26837fail:
26838 return NULL;
26839}
26840
26841
26842SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26843 PyObject *resultobj = 0;
26844 wxListItem *arg1 = (wxListItem *) 0 ;
26845 long arg2 ;
26846 void *argp1 = 0 ;
26847 int res1 = 0 ;
26848 long val2 ;
26849 int ecode2 = 0 ;
26850 PyObject * obj0 = 0 ;
26851 PyObject * obj1 = 0 ;
26852 char * kwnames[] = {
26853 (char *) "self",(char *) "stateMask", NULL
26854 };
26855
26856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26858 if (!SWIG_IsOK(res1)) {
26859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26860 }
26861 arg1 = reinterpret_cast< wxListItem * >(argp1);
26862 ecode2 = SWIG_AsVal_long(obj1, &val2);
26863 if (!SWIG_IsOK(ecode2)) {
26864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26865 }
26866 arg2 = static_cast< long >(val2);
26867 {
26868 PyThreadState* __tstate = wxPyBeginAllowThreads();
26869 (arg1)->SetStateMask(arg2);
26870 wxPyEndAllowThreads(__tstate);
26871 if (PyErr_Occurred()) SWIG_fail;
26872 }
26873 resultobj = SWIG_Py_Void();
26874 return resultobj;
26875fail:
26876 return NULL;
26877}
26878
26879
26880SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26881 PyObject *resultobj = 0;
26882 wxListItem *arg1 = (wxListItem *) 0 ;
26883 wxString *arg2 = 0 ;
26884 void *argp1 = 0 ;
26885 int res1 = 0 ;
26886 bool temp2 = false ;
26887 PyObject * obj0 = 0 ;
26888 PyObject * obj1 = 0 ;
26889 char * kwnames[] = {
26890 (char *) "self",(char *) "text", NULL
26891 };
26892
26893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26895 if (!SWIG_IsOK(res1)) {
26896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26897 }
26898 arg1 = reinterpret_cast< wxListItem * >(argp1);
26899 {
26900 arg2 = wxString_in_helper(obj1);
26901 if (arg2 == NULL) SWIG_fail;
26902 temp2 = true;
26903 }
26904 {
26905 PyThreadState* __tstate = wxPyBeginAllowThreads();
26906 (arg1)->SetText((wxString const &)*arg2);
26907 wxPyEndAllowThreads(__tstate);
26908 if (PyErr_Occurred()) SWIG_fail;
26909 }
26910 resultobj = SWIG_Py_Void();
26911 {
26912 if (temp2)
26913 delete arg2;
26914 }
26915 return resultobj;
26916fail:
26917 {
26918 if (temp2)
26919 delete arg2;
26920 }
26921 return NULL;
26922}
26923
26924
26925SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26926 PyObject *resultobj = 0;
26927 wxListItem *arg1 = (wxListItem *) 0 ;
26928 int arg2 ;
26929 void *argp1 = 0 ;
26930 int res1 = 0 ;
26931 int val2 ;
26932 int ecode2 = 0 ;
26933 PyObject * obj0 = 0 ;
26934 PyObject * obj1 = 0 ;
26935 char * kwnames[] = {
26936 (char *) "self",(char *) "image", NULL
26937 };
26938
26939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26941 if (!SWIG_IsOK(res1)) {
26942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26943 }
26944 arg1 = reinterpret_cast< wxListItem * >(argp1);
26945 ecode2 = SWIG_AsVal_int(obj1, &val2);
26946 if (!SWIG_IsOK(ecode2)) {
26947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26948 }
26949 arg2 = static_cast< int >(val2);
26950 {
26951 PyThreadState* __tstate = wxPyBeginAllowThreads();
26952 (arg1)->SetImage(arg2);
26953 wxPyEndAllowThreads(__tstate);
26954 if (PyErr_Occurred()) SWIG_fail;
26955 }
26956 resultobj = SWIG_Py_Void();
26957 return resultobj;
26958fail:
26959 return NULL;
26960}
26961
26962
26963SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26964 PyObject *resultobj = 0;
26965 wxListItem *arg1 = (wxListItem *) 0 ;
26966 long arg2 ;
26967 void *argp1 = 0 ;
26968 int res1 = 0 ;
26969 long val2 ;
26970 int ecode2 = 0 ;
26971 PyObject * obj0 = 0 ;
26972 PyObject * obj1 = 0 ;
26973 char * kwnames[] = {
26974 (char *) "self",(char *) "data", NULL
26975 };
26976
26977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26979 if (!SWIG_IsOK(res1)) {
26980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26981 }
26982 arg1 = reinterpret_cast< wxListItem * >(argp1);
26983 ecode2 = SWIG_AsVal_long(obj1, &val2);
26984 if (!SWIG_IsOK(ecode2)) {
26985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26986 }
26987 arg2 = static_cast< long >(val2);
26988 {
26989 PyThreadState* __tstate = wxPyBeginAllowThreads();
26990 (arg1)->SetData(arg2);
26991 wxPyEndAllowThreads(__tstate);
26992 if (PyErr_Occurred()) SWIG_fail;
26993 }
26994 resultobj = SWIG_Py_Void();
26995 return resultobj;
26996fail:
26997 return NULL;
26998}
26999
27000
27001SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27002 PyObject *resultobj = 0;
27003 wxListItem *arg1 = (wxListItem *) 0 ;
27004 int arg2 ;
27005 void *argp1 = 0 ;
27006 int res1 = 0 ;
27007 int val2 ;
27008 int ecode2 = 0 ;
27009 PyObject * obj0 = 0 ;
27010 PyObject * obj1 = 0 ;
27011 char * kwnames[] = {
27012 (char *) "self",(char *) "width", NULL
27013 };
27014
27015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27017 if (!SWIG_IsOK(res1)) {
27018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27019 }
27020 arg1 = reinterpret_cast< wxListItem * >(argp1);
27021 ecode2 = SWIG_AsVal_int(obj1, &val2);
27022 if (!SWIG_IsOK(ecode2)) {
27023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27024 }
27025 arg2 = static_cast< int >(val2);
27026 {
27027 PyThreadState* __tstate = wxPyBeginAllowThreads();
27028 (arg1)->SetWidth(arg2);
27029 wxPyEndAllowThreads(__tstate);
27030 if (PyErr_Occurred()) SWIG_fail;
27031 }
27032 resultobj = SWIG_Py_Void();
27033 return resultobj;
27034fail:
27035 return NULL;
27036}
27037
27038
27039SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27040 PyObject *resultobj = 0;
27041 wxListItem *arg1 = (wxListItem *) 0 ;
27042 wxListColumnFormat arg2 ;
27043 void *argp1 = 0 ;
27044 int res1 = 0 ;
27045 int val2 ;
27046 int ecode2 = 0 ;
27047 PyObject * obj0 = 0 ;
27048 PyObject * obj1 = 0 ;
27049 char * kwnames[] = {
27050 (char *) "self",(char *) "align", NULL
27051 };
27052
27053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27055 if (!SWIG_IsOK(res1)) {
27056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27057 }
27058 arg1 = reinterpret_cast< wxListItem * >(argp1);
27059 ecode2 = SWIG_AsVal_int(obj1, &val2);
27060 if (!SWIG_IsOK(ecode2)) {
27061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27062 }
27063 arg2 = static_cast< wxListColumnFormat >(val2);
27064 {
27065 PyThreadState* __tstate = wxPyBeginAllowThreads();
27066 (arg1)->SetAlign(arg2);
27067 wxPyEndAllowThreads(__tstate);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 resultobj = SWIG_Py_Void();
27071 return resultobj;
27072fail:
27073 return NULL;
27074}
27075
27076
27077SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27078 PyObject *resultobj = 0;
27079 wxListItem *arg1 = (wxListItem *) 0 ;
27080 wxColour *arg2 = 0 ;
27081 void *argp1 = 0 ;
27082 int res1 = 0 ;
27083 wxColour temp2 ;
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
27086 char * kwnames[] = {
27087 (char *) "self",(char *) "colText", NULL
27088 };
27089
27090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27092 if (!SWIG_IsOK(res1)) {
27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27094 }
27095 arg1 = reinterpret_cast< wxListItem * >(argp1);
27096 {
27097 arg2 = &temp2;
27098 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27099 }
27100 {
27101 PyThreadState* __tstate = wxPyBeginAllowThreads();
27102 (arg1)->SetTextColour((wxColour const &)*arg2);
27103 wxPyEndAllowThreads(__tstate);
27104 if (PyErr_Occurred()) SWIG_fail;
27105 }
27106 resultobj = SWIG_Py_Void();
27107 return resultobj;
27108fail:
27109 return NULL;
27110}
27111
27112
27113SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27114 PyObject *resultobj = 0;
27115 wxListItem *arg1 = (wxListItem *) 0 ;
27116 wxColour *arg2 = 0 ;
27117 void *argp1 = 0 ;
27118 int res1 = 0 ;
27119 wxColour temp2 ;
27120 PyObject * obj0 = 0 ;
27121 PyObject * obj1 = 0 ;
27122 char * kwnames[] = {
27123 (char *) "self",(char *) "colBack", NULL
27124 };
27125
27126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27128 if (!SWIG_IsOK(res1)) {
27129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27130 }
27131 arg1 = reinterpret_cast< wxListItem * >(argp1);
27132 {
27133 arg2 = &temp2;
27134 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27135 }
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 resultobj = SWIG_Py_Void();
27143 return resultobj;
27144fail:
27145 return NULL;
27146}
27147
27148
27149SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27150 PyObject *resultobj = 0;
27151 wxListItem *arg1 = (wxListItem *) 0 ;
27152 wxFont *arg2 = 0 ;
27153 void *argp1 = 0 ;
27154 int res1 = 0 ;
27155 void *argp2 = 0 ;
27156 int res2 = 0 ;
27157 PyObject * obj0 = 0 ;
27158 PyObject * obj1 = 0 ;
27159 char * kwnames[] = {
27160 (char *) "self",(char *) "font", NULL
27161 };
27162
27163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27165 if (!SWIG_IsOK(res1)) {
27166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27167 }
27168 arg1 = reinterpret_cast< wxListItem * >(argp1);
27169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27170 if (!SWIG_IsOK(res2)) {
27171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27172 }
27173 if (!argp2) {
27174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27175 }
27176 arg2 = reinterpret_cast< wxFont * >(argp2);
27177 {
27178 PyThreadState* __tstate = wxPyBeginAllowThreads();
27179 (arg1)->SetFont((wxFont const &)*arg2);
27180 wxPyEndAllowThreads(__tstate);
27181 if (PyErr_Occurred()) SWIG_fail;
27182 }
27183 resultobj = SWIG_Py_Void();
27184 return resultobj;
27185fail:
27186 return NULL;
d55e5bfc
RD
27187}
27188
27189
554f62e9
RD
27190SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27191 PyObject *resultobj = 0;
27192 wxListItem *arg1 = (wxListItem *) 0 ;
27193 long result;
27194 void *argp1 = 0 ;
27195 int res1 = 0 ;
27196 PyObject *swig_obj[1] ;
27197
27198 if (!args) SWIG_fail;
27199 swig_obj[0] = args;
27200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27201 if (!SWIG_IsOK(res1)) {
27202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27203 }
27204 arg1 = reinterpret_cast< wxListItem * >(argp1);
27205 {
27206 PyThreadState* __tstate = wxPyBeginAllowThreads();
27207 result = (long)(arg1)->GetMask();
27208 wxPyEndAllowThreads(__tstate);
27209 if (PyErr_Occurred()) SWIG_fail;
27210 }
27211 resultobj = SWIG_From_long(static_cast< long >(result));
27212 return resultobj;
27213fail:
27214 return NULL;
d55e5bfc
RD
27215}
27216
27217
554f62e9
RD
27218SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27219 PyObject *resultobj = 0;
27220 wxListItem *arg1 = (wxListItem *) 0 ;
27221 long result;
27222 void *argp1 = 0 ;
27223 int res1 = 0 ;
27224 PyObject *swig_obj[1] ;
27225
27226 if (!args) SWIG_fail;
27227 swig_obj[0] = args;
27228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27229 if (!SWIG_IsOK(res1)) {
27230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27231 }
27232 arg1 = reinterpret_cast< wxListItem * >(argp1);
27233 {
27234 PyThreadState* __tstate = wxPyBeginAllowThreads();
27235 result = (long)(arg1)->GetId();
27236 wxPyEndAllowThreads(__tstate);
27237 if (PyErr_Occurred()) SWIG_fail;
27238 }
27239 resultobj = SWIG_From_long(static_cast< long >(result));
27240 return resultobj;
27241fail:
27242 return NULL;
d55e5bfc
RD
27243}
27244
27245
554f62e9
RD
27246SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27247 PyObject *resultobj = 0;
27248 wxListItem *arg1 = (wxListItem *) 0 ;
27249 int result;
27250 void *argp1 = 0 ;
27251 int res1 = 0 ;
27252 PyObject *swig_obj[1] ;
27253
27254 if (!args) SWIG_fail;
27255 swig_obj[0] = args;
27256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27257 if (!SWIG_IsOK(res1)) {
27258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27259 }
27260 arg1 = reinterpret_cast< wxListItem * >(argp1);
27261 {
27262 PyThreadState* __tstate = wxPyBeginAllowThreads();
27263 result = (int)(arg1)->GetColumn();
27264 wxPyEndAllowThreads(__tstate);
27265 if (PyErr_Occurred()) SWIG_fail;
27266 }
27267 resultobj = SWIG_From_int(static_cast< int >(result));
27268 return resultobj;
27269fail:
27270 return NULL;
d55e5bfc
RD
27271}
27272
27273
554f62e9
RD
27274SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27275 PyObject *resultobj = 0;
27276 wxListItem *arg1 = (wxListItem *) 0 ;
27277 long result;
27278 void *argp1 = 0 ;
27279 int res1 = 0 ;
27280 PyObject *swig_obj[1] ;
27281
27282 if (!args) SWIG_fail;
27283 swig_obj[0] = args;
27284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27285 if (!SWIG_IsOK(res1)) {
27286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27287 }
27288 arg1 = reinterpret_cast< wxListItem * >(argp1);
27289 {
27290 PyThreadState* __tstate = wxPyBeginAllowThreads();
27291 result = (long)(arg1)->GetState();
27292 wxPyEndAllowThreads(__tstate);
27293 if (PyErr_Occurred()) SWIG_fail;
27294 }
27295 resultobj = SWIG_From_long(static_cast< long >(result));
27296 return resultobj;
27297fail:
27298 return NULL;
d55e5bfc
RD
27299}
27300
27301
554f62e9
RD
27302SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27303 PyObject *resultobj = 0;
27304 wxListItem *arg1 = (wxListItem *) 0 ;
27305 wxString *result = 0 ;
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_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27315 }
27316 arg1 = reinterpret_cast< wxListItem * >(argp1);
27317 {
27318 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27319 {
554f62e9
RD
27320 wxString const &_result_ref = (arg1)->GetText();
27321 result = (wxString *) &_result_ref;
27322 }
27323 wxPyEndAllowThreads(__tstate);
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
27326 {
d55e5bfc 27327#if wxUSE_UNICODE
554f62e9 27328 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 27329#else
554f62e9 27330 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 27331#endif
554f62e9
RD
27332 }
27333 return resultobj;
27334fail:
27335 return NULL;
d55e5bfc
RD
27336}
27337
27338
554f62e9
RD
27339SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27340 PyObject *resultobj = 0;
27341 wxListItem *arg1 = (wxListItem *) 0 ;
27342 int result;
27343 void *argp1 = 0 ;
27344 int res1 = 0 ;
27345 PyObject *swig_obj[1] ;
27346
27347 if (!args) SWIG_fail;
27348 swig_obj[0] = args;
27349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27350 if (!SWIG_IsOK(res1)) {
27351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27352 }
27353 arg1 = reinterpret_cast< wxListItem * >(argp1);
27354 {
27355 PyThreadState* __tstate = wxPyBeginAllowThreads();
27356 result = (int)(arg1)->GetImage();
27357 wxPyEndAllowThreads(__tstate);
27358 if (PyErr_Occurred()) SWIG_fail;
27359 }
27360 resultobj = SWIG_From_int(static_cast< int >(result));
27361 return resultobj;
27362fail:
27363 return NULL;
d55e5bfc
RD
27364}
27365
27366
554f62e9
RD
27367SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27368 PyObject *resultobj = 0;
27369 wxListItem *arg1 = (wxListItem *) 0 ;
27370 long result;
27371 void *argp1 = 0 ;
27372 int res1 = 0 ;
27373 PyObject *swig_obj[1] ;
27374
27375 if (!args) SWIG_fail;
27376 swig_obj[0] = args;
27377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27378 if (!SWIG_IsOK(res1)) {
27379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27380 }
27381 arg1 = reinterpret_cast< wxListItem * >(argp1);
27382 {
27383 PyThreadState* __tstate = wxPyBeginAllowThreads();
27384 result = (long)(arg1)->GetData();
27385 wxPyEndAllowThreads(__tstate);
27386 if (PyErr_Occurred()) SWIG_fail;
27387 }
27388 resultobj = SWIG_From_long(static_cast< long >(result));
27389 return resultobj;
27390fail:
27391 return NULL;
8fb0e70a
RD
27392}
27393
27394
554f62e9
RD
27395SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27396 PyObject *resultobj = 0;
27397 wxListItem *arg1 = (wxListItem *) 0 ;
27398 int result;
27399 void *argp1 = 0 ;
27400 int res1 = 0 ;
27401 PyObject *swig_obj[1] ;
27402
27403 if (!args) SWIG_fail;
27404 swig_obj[0] = args;
27405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27406 if (!SWIG_IsOK(res1)) {
27407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27408 }
27409 arg1 = reinterpret_cast< wxListItem * >(argp1);
27410 {
27411 PyThreadState* __tstate = wxPyBeginAllowThreads();
27412 result = (int)(arg1)->GetWidth();
27413 wxPyEndAllowThreads(__tstate);
27414 if (PyErr_Occurred()) SWIG_fail;
27415 }
27416 resultobj = SWIG_From_int(static_cast< int >(result));
27417 return resultobj;
27418fail:
27419 return NULL;
d55e5bfc
RD
27420}
27421
27422
554f62e9
RD
27423SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27424 PyObject *resultobj = 0;
27425 wxListItem *arg1 = (wxListItem *) 0 ;
27426 wxListColumnFormat result;
27427 void *argp1 = 0 ;
27428 int res1 = 0 ;
27429 PyObject *swig_obj[1] ;
27430
27431 if (!args) SWIG_fail;
27432 swig_obj[0] = args;
27433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27434 if (!SWIG_IsOK(res1)) {
27435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27436 }
27437 arg1 = reinterpret_cast< wxListItem * >(argp1);
27438 {
27439 PyThreadState* __tstate = wxPyBeginAllowThreads();
27440 result = (wxListColumnFormat)(arg1)->GetAlign();
27441 wxPyEndAllowThreads(__tstate);
27442 if (PyErr_Occurred()) SWIG_fail;
27443 }
27444 resultobj = SWIG_From_int(static_cast< int >(result));
27445 return resultobj;
27446fail:
27447 return NULL;
d55e5bfc
RD
27448}
27449
27450
554f62e9
RD
27451SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27452 PyObject *resultobj = 0;
27453 wxListItem *arg1 = (wxListItem *) 0 ;
27454 wxListItemAttr *result = 0 ;
27455 void *argp1 = 0 ;
27456 int res1 = 0 ;
27457 PyObject *swig_obj[1] ;
27458
27459 if (!args) SWIG_fail;
27460 swig_obj[0] = args;
27461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27462 if (!SWIG_IsOK(res1)) {
27463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27464 }
27465 arg1 = reinterpret_cast< wxListItem * >(argp1);
27466 {
27467 PyThreadState* __tstate = wxPyBeginAllowThreads();
27468 result = (wxListItemAttr *)(arg1)->GetAttributes();
27469 wxPyEndAllowThreads(__tstate);
27470 if (PyErr_Occurred()) SWIG_fail;
27471 }
27472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27473 return resultobj;
27474fail:
27475 return NULL;
d55e5bfc
RD
27476}
27477
27478
554f62e9
RD
27479SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27480 PyObject *resultobj = 0;
27481 wxListItem *arg1 = (wxListItem *) 0 ;
27482 bool result;
27483 void *argp1 = 0 ;
27484 int res1 = 0 ;
27485 PyObject *swig_obj[1] ;
27486
27487 if (!args) SWIG_fail;
27488 swig_obj[0] = args;
27489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27490 if (!SWIG_IsOK(res1)) {
27491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27492 }
27493 arg1 = reinterpret_cast< wxListItem * >(argp1);
27494 {
27495 PyThreadState* __tstate = wxPyBeginAllowThreads();
27496 result = (bool)(arg1)->HasAttributes();
27497 wxPyEndAllowThreads(__tstate);
27498 if (PyErr_Occurred()) SWIG_fail;
27499 }
27500 {
27501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27502 }
27503 return resultobj;
27504fail:
27505 return NULL;
d55e5bfc
RD
27506}
27507
27508
554f62e9
RD
27509SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27510 PyObject *resultobj = 0;
27511 wxListItem *arg1 = (wxListItem *) 0 ;
27512 wxColour result;
27513 void *argp1 = 0 ;
27514 int res1 = 0 ;
27515 PyObject *swig_obj[1] ;
27516
27517 if (!args) SWIG_fail;
27518 swig_obj[0] = args;
27519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27520 if (!SWIG_IsOK(res1)) {
27521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27522 }
27523 arg1 = reinterpret_cast< wxListItem * >(argp1);
27524 {
27525 PyThreadState* __tstate = wxPyBeginAllowThreads();
27526 result = ((wxListItem const *)arg1)->GetTextColour();
27527 wxPyEndAllowThreads(__tstate);
27528 if (PyErr_Occurred()) SWIG_fail;
27529 }
27530 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27531 return resultobj;
27532fail:
27533 return NULL;
d55e5bfc
RD
27534}
27535
27536
554f62e9
RD
27537SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27538 PyObject *resultobj = 0;
27539 wxListItem *arg1 = (wxListItem *) 0 ;
27540 wxColour result;
27541 void *argp1 = 0 ;
27542 int res1 = 0 ;
27543 PyObject *swig_obj[1] ;
27544
27545 if (!args) SWIG_fail;
27546 swig_obj[0] = args;
27547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27548 if (!SWIG_IsOK(res1)) {
27549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27550 }
27551 arg1 = reinterpret_cast< wxListItem * >(argp1);
27552 {
27553 PyThreadState* __tstate = wxPyBeginAllowThreads();
27554 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27555 wxPyEndAllowThreads(__tstate);
27556 if (PyErr_Occurred()) SWIG_fail;
27557 }
27558 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27559 return resultobj;
27560fail:
27561 return NULL;
d55e5bfc
RD
27562}
27563
27564
554f62e9
RD
27565SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27566 PyObject *resultobj = 0;
27567 wxListItem *arg1 = (wxListItem *) 0 ;
27568 wxFont result;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 PyObject *swig_obj[1] ;
27572
27573 if (!args) SWIG_fail;
27574 swig_obj[0] = args;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27578 }
27579 arg1 = reinterpret_cast< wxListItem * >(argp1);
27580 {
27581 PyThreadState* __tstate = wxPyBeginAllowThreads();
27582 result = ((wxListItem const *)arg1)->GetFont();
27583 wxPyEndAllowThreads(__tstate);
27584 if (PyErr_Occurred()) SWIG_fail;
27585 }
27586 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27587 return resultobj;
27588fail:
27589 return NULL;
27590}
27591
27592
27593SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27594 PyObject *resultobj = 0;
27595 wxListItem *arg1 = (wxListItem *) 0 ;
27596 long arg2 ;
27597 void *argp1 = 0 ;
27598 int res1 = 0 ;
27599 long val2 ;
27600 int ecode2 = 0 ;
27601 PyObject *swig_obj[2] ;
27602
27603 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27605 if (!SWIG_IsOK(res1)) {
27606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27607 }
27608 arg1 = reinterpret_cast< wxListItem * >(argp1);
27609 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27610 if (!SWIG_IsOK(ecode2)) {
27611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27612 }
27613 arg2 = static_cast< long >(val2);
27614 if (arg1) (arg1)->m_mask = arg2;
27615
27616 resultobj = SWIG_Py_Void();
27617 return resultobj;
27618fail:
27619 return NULL;
d55e5bfc
RD
27620}
27621
27622
554f62e9
RD
27623SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27624 PyObject *resultobj = 0;
27625 wxListItem *arg1 = (wxListItem *) 0 ;
27626 long result;
27627 void *argp1 = 0 ;
27628 int res1 = 0 ;
27629 PyObject *swig_obj[1] ;
27630
27631 if (!args) SWIG_fail;
27632 swig_obj[0] = args;
27633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27634 if (!SWIG_IsOK(res1)) {
27635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27636 }
27637 arg1 = reinterpret_cast< wxListItem * >(argp1);
27638 result = (long) ((arg1)->m_mask);
27639 resultobj = SWIG_From_long(static_cast< long >(result));
27640 return resultobj;
27641fail:
27642 return NULL;
27643}
27644
27645
27646SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27647 PyObject *resultobj = 0;
27648 wxListItem *arg1 = (wxListItem *) 0 ;
27649 long arg2 ;
27650 void *argp1 = 0 ;
27651 int res1 = 0 ;
27652 long val2 ;
27653 int ecode2 = 0 ;
27654 PyObject *swig_obj[2] ;
27655
27656 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27658 if (!SWIG_IsOK(res1)) {
27659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27660 }
27661 arg1 = reinterpret_cast< wxListItem * >(argp1);
27662 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27663 if (!SWIG_IsOK(ecode2)) {
27664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27665 }
27666 arg2 = static_cast< long >(val2);
27667 if (arg1) (arg1)->m_itemId = arg2;
27668
27669 resultobj = SWIG_Py_Void();
27670 return resultobj;
27671fail:
27672 return NULL;
d55e5bfc
RD
27673}
27674
27675
554f62e9
RD
27676SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27677 PyObject *resultobj = 0;
27678 wxListItem *arg1 = (wxListItem *) 0 ;
27679 long result;
27680 void *argp1 = 0 ;
27681 int res1 = 0 ;
27682 PyObject *swig_obj[1] ;
27683
27684 if (!args) SWIG_fail;
27685 swig_obj[0] = args;
27686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27687 if (!SWIG_IsOK(res1)) {
27688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27689 }
27690 arg1 = reinterpret_cast< wxListItem * >(argp1);
27691 result = (long) ((arg1)->m_itemId);
27692 resultobj = SWIG_From_long(static_cast< long >(result));
27693 return resultobj;
27694fail:
27695 return NULL;
27696}
27697
27698
27699SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27700 PyObject *resultobj = 0;
27701 wxListItem *arg1 = (wxListItem *) 0 ;
27702 int arg2 ;
27703 void *argp1 = 0 ;
27704 int res1 = 0 ;
27705 int val2 ;
27706 int ecode2 = 0 ;
27707 PyObject *swig_obj[2] ;
27708
27709 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27711 if (!SWIG_IsOK(res1)) {
27712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27713 }
27714 arg1 = reinterpret_cast< wxListItem * >(argp1);
27715 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27716 if (!SWIG_IsOK(ecode2)) {
27717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27718 }
27719 arg2 = static_cast< int >(val2);
27720 if (arg1) (arg1)->m_col = arg2;
27721
27722 resultobj = SWIG_Py_Void();
27723 return resultobj;
27724fail:
27725 return NULL;
d55e5bfc
RD
27726}
27727
27728
554f62e9
RD
27729SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27730 PyObject *resultobj = 0;
27731 wxListItem *arg1 = (wxListItem *) 0 ;
27732 int result;
27733 void *argp1 = 0 ;
27734 int res1 = 0 ;
27735 PyObject *swig_obj[1] ;
27736
27737 if (!args) SWIG_fail;
27738 swig_obj[0] = args;
27739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27740 if (!SWIG_IsOK(res1)) {
27741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27742 }
27743 arg1 = reinterpret_cast< wxListItem * >(argp1);
27744 result = (int) ((arg1)->m_col);
27745 resultobj = SWIG_From_int(static_cast< int >(result));
27746 return resultobj;
27747fail:
27748 return NULL;
27749}
27750
27751
27752SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27753 PyObject *resultobj = 0;
27754 wxListItem *arg1 = (wxListItem *) 0 ;
27755 long arg2 ;
27756 void *argp1 = 0 ;
27757 int res1 = 0 ;
27758 long val2 ;
27759 int ecode2 = 0 ;
27760 PyObject *swig_obj[2] ;
27761
27762 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27764 if (!SWIG_IsOK(res1)) {
27765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27766 }
27767 arg1 = reinterpret_cast< wxListItem * >(argp1);
27768 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27769 if (!SWIG_IsOK(ecode2)) {
27770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27771 }
27772 arg2 = static_cast< long >(val2);
27773 if (arg1) (arg1)->m_state = arg2;
27774
27775 resultobj = SWIG_Py_Void();
27776 return resultobj;
27777fail:
27778 return NULL;
d55e5bfc
RD
27779}
27780
27781
554f62e9
RD
27782SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27783 PyObject *resultobj = 0;
27784 wxListItem *arg1 = (wxListItem *) 0 ;
27785 long result;
27786 void *argp1 = 0 ;
27787 int res1 = 0 ;
27788 PyObject *swig_obj[1] ;
27789
27790 if (!args) SWIG_fail;
27791 swig_obj[0] = args;
27792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27793 if (!SWIG_IsOK(res1)) {
27794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27795 }
27796 arg1 = reinterpret_cast< wxListItem * >(argp1);
27797 result = (long) ((arg1)->m_state);
27798 resultobj = SWIG_From_long(static_cast< long >(result));
27799 return resultobj;
27800fail:
27801 return NULL;
27802}
27803
27804
27805SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27806 PyObject *resultobj = 0;
27807 wxListItem *arg1 = (wxListItem *) 0 ;
27808 long arg2 ;
27809 void *argp1 = 0 ;
27810 int res1 = 0 ;
27811 long val2 ;
27812 int ecode2 = 0 ;
27813 PyObject *swig_obj[2] ;
27814
27815 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27817 if (!SWIG_IsOK(res1)) {
27818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27819 }
27820 arg1 = reinterpret_cast< wxListItem * >(argp1);
27821 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27822 if (!SWIG_IsOK(ecode2)) {
27823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27824 }
27825 arg2 = static_cast< long >(val2);
27826 if (arg1) (arg1)->m_stateMask = arg2;
27827
27828 resultobj = SWIG_Py_Void();
27829 return resultobj;
27830fail:
27831 return NULL;
7e08d4ef
RD
27832}
27833
27834
554f62e9
RD
27835SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27836 PyObject *resultobj = 0;
27837 wxListItem *arg1 = (wxListItem *) 0 ;
27838 long result;
27839 void *argp1 = 0 ;
27840 int res1 = 0 ;
27841 PyObject *swig_obj[1] ;
27842
27843 if (!args) SWIG_fail;
27844 swig_obj[0] = args;
27845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27846 if (!SWIG_IsOK(res1)) {
27847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27848 }
27849 arg1 = reinterpret_cast< wxListItem * >(argp1);
27850 result = (long) ((arg1)->m_stateMask);
27851 resultobj = SWIG_From_long(static_cast< long >(result));
27852 return resultobj;
27853fail:
27854 return NULL;
27855}
27856
27857
27858SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27859 PyObject *resultobj = 0;
27860 wxListItem *arg1 = (wxListItem *) 0 ;
27861 wxString *arg2 = (wxString *) 0 ;
27862 void *argp1 = 0 ;
27863 int res1 = 0 ;
27864 bool temp2 = false ;
27865 PyObject *swig_obj[2] ;
27866
27867 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27869 if (!SWIG_IsOK(res1)) {
27870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27871 }
27872 arg1 = reinterpret_cast< wxListItem * >(argp1);
27873 {
27874 arg2 = wxString_in_helper(swig_obj[1]);
27875 if (arg2 == NULL) SWIG_fail;
27876 temp2 = true;
27877 }
27878 if (arg1) (arg1)->m_text = *arg2;
27879
27880 resultobj = SWIG_Py_Void();
27881 {
27882 if (temp2)
27883 delete arg2;
27884 }
27885 return resultobj;
27886fail:
27887 {
27888 if (temp2)
27889 delete arg2;
27890 }
27891 return NULL;
7e08d4ef
RD
27892}
27893
27894
554f62e9
RD
27895SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27897 wxListItem *arg1 = (wxListItem *) 0 ;
27898 wxString *result = 0 ;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 PyObject *swig_obj[1] ;
27902
27903 if (!args) SWIG_fail;
27904 swig_obj[0] = args;
27905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27906 if (!SWIG_IsOK(res1)) {
27907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27908 }
27909 arg1 = reinterpret_cast< wxListItem * >(argp1);
27910 result = (wxString *)& ((arg1)->m_text);
27911 {
27912#if wxUSE_UNICODE
27913 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27914#else
27915 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27916#endif
27917 }
27918 return resultobj;
27919fail:
27920 return NULL;
7e08d4ef
RD
27921}
27922
27923
554f62e9
RD
27924SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27925 PyObject *resultobj = 0;
27926 wxListItem *arg1 = (wxListItem *) 0 ;
27927 int arg2 ;
27928 void *argp1 = 0 ;
27929 int res1 = 0 ;
27930 int val2 ;
27931 int ecode2 = 0 ;
27932 PyObject *swig_obj[2] ;
27933
27934 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27936 if (!SWIG_IsOK(res1)) {
27937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27938 }
27939 arg1 = reinterpret_cast< wxListItem * >(argp1);
27940 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27941 if (!SWIG_IsOK(ecode2)) {
27942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27943 }
27944 arg2 = static_cast< int >(val2);
27945 if (arg1) (arg1)->m_image = arg2;
27946
27947 resultobj = SWIG_Py_Void();
27948 return resultobj;
27949fail:
27950 return NULL;
7e08d4ef
RD
27951}
27952
27953
554f62e9
RD
27954SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27955 PyObject *resultobj = 0;
27956 wxListItem *arg1 = (wxListItem *) 0 ;
27957 int result;
27958 void *argp1 = 0 ;
27959 int res1 = 0 ;
27960 PyObject *swig_obj[1] ;
27961
27962 if (!args) SWIG_fail;
27963 swig_obj[0] = args;
27964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27965 if (!SWIG_IsOK(res1)) {
27966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27967 }
27968 arg1 = reinterpret_cast< wxListItem * >(argp1);
27969 result = (int) ((arg1)->m_image);
27970 resultobj = SWIG_From_int(static_cast< int >(result));
27971 return resultobj;
27972fail:
27973 return NULL;
27974}
27975
27976
27977SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27978 PyObject *resultobj = 0;
27979 wxListItem *arg1 = (wxListItem *) 0 ;
27980 long arg2 ;
27981 void *argp1 = 0 ;
27982 int res1 = 0 ;
27983 long val2 ;
27984 int ecode2 = 0 ;
27985 PyObject *swig_obj[2] ;
27986
27987 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27989 if (!SWIG_IsOK(res1)) {
27990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27991 }
27992 arg1 = reinterpret_cast< wxListItem * >(argp1);
27993 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27994 if (!SWIG_IsOK(ecode2)) {
27995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27996 }
27997 arg2 = static_cast< long >(val2);
27998 if (arg1) (arg1)->m_data = arg2;
27999
28000 resultobj = SWIG_Py_Void();
28001 return resultobj;
28002fail:
28003 return NULL;
7e08d4ef
RD
28004}
28005
28006
554f62e9
RD
28007SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28008 PyObject *resultobj = 0;
28009 wxListItem *arg1 = (wxListItem *) 0 ;
28010 long result;
28011 void *argp1 = 0 ;
28012 int res1 = 0 ;
28013 PyObject *swig_obj[1] ;
28014
28015 if (!args) SWIG_fail;
28016 swig_obj[0] = args;
28017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28018 if (!SWIG_IsOK(res1)) {
28019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28020 }
28021 arg1 = reinterpret_cast< wxListItem * >(argp1);
28022 result = (long) ((arg1)->m_data);
28023 resultobj = SWIG_From_long(static_cast< long >(result));
28024 return resultobj;
28025fail:
28026 return NULL;
28027}
28028
28029
28030SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28031 PyObject *resultobj = 0;
28032 wxListItem *arg1 = (wxListItem *) 0 ;
28033 int arg2 ;
28034 void *argp1 = 0 ;
28035 int res1 = 0 ;
28036 int val2 ;
28037 int ecode2 = 0 ;
28038 PyObject *swig_obj[2] ;
28039
28040 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28042 if (!SWIG_IsOK(res1)) {
28043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28044 }
28045 arg1 = reinterpret_cast< wxListItem * >(argp1);
28046 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28047 if (!SWIG_IsOK(ecode2)) {
28048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28049 }
28050 arg2 = static_cast< int >(val2);
28051 if (arg1) (arg1)->m_format = arg2;
28052
28053 resultobj = SWIG_Py_Void();
28054 return resultobj;
28055fail:
28056 return NULL;
d55e5bfc
RD
28057}
28058
28059
554f62e9
RD
28060SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28061 PyObject *resultobj = 0;
28062 wxListItem *arg1 = (wxListItem *) 0 ;
28063 int result;
28064 void *argp1 = 0 ;
28065 int res1 = 0 ;
28066 PyObject *swig_obj[1] ;
28067
28068 if (!args) SWIG_fail;
28069 swig_obj[0] = args;
28070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28071 if (!SWIG_IsOK(res1)) {
28072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28073 }
28074 arg1 = reinterpret_cast< wxListItem * >(argp1);
28075 result = (int) ((arg1)->m_format);
28076 resultobj = SWIG_From_int(static_cast< int >(result));
28077 return resultobj;
28078fail:
28079 return NULL;
28080}
28081
28082
28083SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28084 PyObject *resultobj = 0;
28085 wxListItem *arg1 = (wxListItem *) 0 ;
28086 int arg2 ;
28087 void *argp1 = 0 ;
28088 int res1 = 0 ;
28089 int val2 ;
28090 int ecode2 = 0 ;
28091 PyObject *swig_obj[2] ;
28092
28093 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28095 if (!SWIG_IsOK(res1)) {
28096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28097 }
28098 arg1 = reinterpret_cast< wxListItem * >(argp1);
28099 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28100 if (!SWIG_IsOK(ecode2)) {
28101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28102 }
28103 arg2 = static_cast< int >(val2);
28104 if (arg1) (arg1)->m_width = arg2;
28105
28106 resultobj = SWIG_Py_Void();
28107 return resultobj;
28108fail:
28109 return NULL;
d55e5bfc
RD
28110}
28111
28112
554f62e9
RD
28113SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28114 PyObject *resultobj = 0;
28115 wxListItem *arg1 = (wxListItem *) 0 ;
28116 int result;
28117 void *argp1 = 0 ;
28118 int res1 = 0 ;
28119 PyObject *swig_obj[1] ;
28120
28121 if (!args) SWIG_fail;
28122 swig_obj[0] = args;
28123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28124 if (!SWIG_IsOK(res1)) {
28125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28126 }
28127 arg1 = reinterpret_cast< wxListItem * >(argp1);
28128 result = (int) ((arg1)->m_width);
28129 resultobj = SWIG_From_int(static_cast< int >(result));
28130 return resultobj;
28131fail:
28132 return NULL;
28133}
28134
28135
28136SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28137 PyObject *obj;
28138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28139 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28140 return SWIG_Py_Void();
28141}
28142
28143SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28144 return SWIG_Python_InitShadowInstance(args);
28145}
28146
28147SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28148 PyObject *resultobj = 0;
28149 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28150 int arg2 = (int) 0 ;
28151 wxListEvent *result = 0 ;
28152 int val1 ;
28153 int ecode1 = 0 ;
28154 int val2 ;
28155 int ecode2 = 0 ;
28156 PyObject * obj0 = 0 ;
28157 PyObject * obj1 = 0 ;
28158 char * kwnames[] = {
28159 (char *) "commandType",(char *) "id", NULL
28160 };
28161
28162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28163 if (obj0) {
28164 ecode1 = SWIG_AsVal_int(obj0, &val1);
28165 if (!SWIG_IsOK(ecode1)) {
28166 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28167 }
28168 arg1 = static_cast< wxEventType >(val1);
28169 }
28170 if (obj1) {
28171 ecode2 = SWIG_AsVal_int(obj1, &val2);
28172 if (!SWIG_IsOK(ecode2)) {
28173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28174 }
28175 arg2 = static_cast< int >(val2);
28176 }
28177 {
28178 PyThreadState* __tstate = wxPyBeginAllowThreads();
28179 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28180 wxPyEndAllowThreads(__tstate);
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28184 return resultobj;
28185fail:
28186 return NULL;
28187}
28188
28189
28190SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28191 PyObject *resultobj = 0;
28192 wxListEvent *arg1 = (wxListEvent *) 0 ;
28193 int arg2 ;
28194 void *argp1 = 0 ;
28195 int res1 = 0 ;
28196 int val2 ;
28197 int ecode2 = 0 ;
28198 PyObject *swig_obj[2] ;
28199
28200 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28202 if (!SWIG_IsOK(res1)) {
28203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28204 }
28205 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28206 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28207 if (!SWIG_IsOK(ecode2)) {
28208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28209 }
28210 arg2 = static_cast< int >(val2);
28211 if (arg1) (arg1)->m_code = arg2;
28212
28213 resultobj = SWIG_Py_Void();
28214 return resultobj;
28215fail:
28216 return NULL;
d55e5bfc
RD
28217}
28218
28219
554f62e9
RD
28220SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28221 PyObject *resultobj = 0;
28222 wxListEvent *arg1 = (wxListEvent *) 0 ;
28223 int result;
28224 void *argp1 = 0 ;
28225 int res1 = 0 ;
28226 PyObject *swig_obj[1] ;
28227
28228 if (!args) SWIG_fail;
28229 swig_obj[0] = args;
28230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28231 if (!SWIG_IsOK(res1)) {
28232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28233 }
28234 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28235 result = (int) ((arg1)->m_code);
28236 resultobj = SWIG_From_int(static_cast< int >(result));
28237 return resultobj;
28238fail:
28239 return NULL;
28240}
28241
28242
28243SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28244 PyObject *resultobj = 0;
28245 wxListEvent *arg1 = (wxListEvent *) 0 ;
28246 long arg2 ;
28247 void *argp1 = 0 ;
28248 int res1 = 0 ;
28249 long val2 ;
28250 int ecode2 = 0 ;
28251 PyObject *swig_obj[2] ;
28252
28253 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28255 if (!SWIG_IsOK(res1)) {
28256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28257 }
28258 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28259 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28260 if (!SWIG_IsOK(ecode2)) {
28261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28262 }
28263 arg2 = static_cast< long >(val2);
28264 if (arg1) (arg1)->m_oldItemIndex = arg2;
28265
28266 resultobj = SWIG_Py_Void();
28267 return resultobj;
28268fail:
28269 return NULL;
d55e5bfc
RD
28270}
28271
28272
554f62e9
RD
28273SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28274 PyObject *resultobj = 0;
28275 wxListEvent *arg1 = (wxListEvent *) 0 ;
28276 long result;
28277 void *argp1 = 0 ;
28278 int res1 = 0 ;
28279 PyObject *swig_obj[1] ;
28280
28281 if (!args) SWIG_fail;
28282 swig_obj[0] = args;
28283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28284 if (!SWIG_IsOK(res1)) {
28285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28286 }
28287 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28288 result = (long) ((arg1)->m_oldItemIndex);
28289 resultobj = SWIG_From_long(static_cast< long >(result));
28290 return resultobj;
28291fail:
28292 return NULL;
28293}
28294
28295
28296SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28297 PyObject *resultobj = 0;
28298 wxListEvent *arg1 = (wxListEvent *) 0 ;
28299 long arg2 ;
28300 void *argp1 = 0 ;
28301 int res1 = 0 ;
28302 long val2 ;
28303 int ecode2 = 0 ;
28304 PyObject *swig_obj[2] ;
28305
28306 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28308 if (!SWIG_IsOK(res1)) {
28309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28310 }
28311 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28312 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28313 if (!SWIG_IsOK(ecode2)) {
28314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28315 }
28316 arg2 = static_cast< long >(val2);
28317 if (arg1) (arg1)->m_itemIndex = arg2;
28318
28319 resultobj = SWIG_Py_Void();
28320 return resultobj;
28321fail:
28322 return NULL;
d55e5bfc
RD
28323}
28324
28325
554f62e9
RD
28326SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28327 PyObject *resultobj = 0;
28328 wxListEvent *arg1 = (wxListEvent *) 0 ;
28329 long result;
28330 void *argp1 = 0 ;
28331 int res1 = 0 ;
28332 PyObject *swig_obj[1] ;
28333
28334 if (!args) SWIG_fail;
28335 swig_obj[0] = args;
28336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28337 if (!SWIG_IsOK(res1)) {
28338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28339 }
28340 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28341 result = (long) ((arg1)->m_itemIndex);
28342 resultobj = SWIG_From_long(static_cast< long >(result));
28343 return resultobj;
28344fail:
28345 return NULL;
28346}
28347
28348
28349SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28350 PyObject *resultobj = 0;
28351 wxListEvent *arg1 = (wxListEvent *) 0 ;
28352 int arg2 ;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 int val2 ;
28356 int ecode2 = 0 ;
28357 PyObject *swig_obj[2] ;
28358
28359 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28361 if (!SWIG_IsOK(res1)) {
28362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28363 }
28364 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28365 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28366 if (!SWIG_IsOK(ecode2)) {
28367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28368 }
28369 arg2 = static_cast< int >(val2);
28370 if (arg1) (arg1)->m_col = arg2;
28371
28372 resultobj = SWIG_Py_Void();
28373 return resultobj;
28374fail:
28375 return NULL;
d55e5bfc
RD
28376}
28377
28378
554f62e9
RD
28379SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28380 PyObject *resultobj = 0;
28381 wxListEvent *arg1 = (wxListEvent *) 0 ;
28382 int result;
28383 void *argp1 = 0 ;
28384 int res1 = 0 ;
28385 PyObject *swig_obj[1] ;
28386
28387 if (!args) SWIG_fail;
28388 swig_obj[0] = args;
28389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28390 if (!SWIG_IsOK(res1)) {
28391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28392 }
28393 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28394 result = (int) ((arg1)->m_col);
28395 resultobj = SWIG_From_int(static_cast< int >(result));
28396 return resultobj;
28397fail:
28398 return NULL;
28399}
28400
28401
28402SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28403 PyObject *resultobj = 0;
28404 wxListEvent *arg1 = (wxListEvent *) 0 ;
28405 wxPoint *arg2 = (wxPoint *) 0 ;
28406 void *argp1 = 0 ;
28407 int res1 = 0 ;
28408 void *argp2 = 0 ;
28409 int res2 = 0 ;
28410 PyObject *swig_obj[2] ;
28411
28412 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28414 if (!SWIG_IsOK(res1)) {
28415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28416 }
28417 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28418 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28419 if (!SWIG_IsOK(res2)) {
28420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28421 }
28422 arg2 = reinterpret_cast< wxPoint * >(argp2);
28423 if (arg1) (arg1)->m_pointDrag = *arg2;
28424
28425 resultobj = SWIG_Py_Void();
28426 return resultobj;
28427fail:
28428 return NULL;
d55e5bfc
RD
28429}
28430
28431
554f62e9
RD
28432SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28433 PyObject *resultobj = 0;
28434 wxListEvent *arg1 = (wxListEvent *) 0 ;
28435 wxPoint *result = 0 ;
28436 void *argp1 = 0 ;
28437 int res1 = 0 ;
28438 PyObject *swig_obj[1] ;
28439
28440 if (!args) SWIG_fail;
28441 swig_obj[0] = args;
28442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28443 if (!SWIG_IsOK(res1)) {
28444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28445 }
28446 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28447 result = (wxPoint *)& ((arg1)->m_pointDrag);
28448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28449 return resultobj;
28450fail:
28451 return NULL;
28452}
28453
28454
28455SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28456 PyObject *resultobj = 0;
28457 wxListEvent *arg1 = (wxListEvent *) 0 ;
28458 wxListItem *result = 0 ;
28459 void *argp1 = 0 ;
28460 int res1 = 0 ;
28461 PyObject *swig_obj[1] ;
28462
28463 if (!args) SWIG_fail;
28464 swig_obj[0] = args;
28465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28466 if (!SWIG_IsOK(res1)) {
28467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28468 }
28469 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28470 result = (wxListItem *)& ((arg1)->m_item);
28471 {
3ecece7e 28472 resultobj = wxPyMake_wxObject(result, 0);
554f62e9
RD
28473 }
28474 return resultobj;
28475fail:
28476 return NULL;
f20a2e1f
RD
28477}
28478
28479
554f62e9
RD
28480SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28481 PyObject *resultobj = 0;
28482 wxListEvent *arg1 = (wxListEvent *) 0 ;
28483 int result;
28484 void *argp1 = 0 ;
28485 int res1 = 0 ;
28486 PyObject *swig_obj[1] ;
28487
28488 if (!args) SWIG_fail;
28489 swig_obj[0] = args;
28490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28491 if (!SWIG_IsOK(res1)) {
28492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28493 }
28494 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28495 {
28496 PyThreadState* __tstate = wxPyBeginAllowThreads();
28497 result = (int)(arg1)->GetKeyCode();
28498 wxPyEndAllowThreads(__tstate);
28499 if (PyErr_Occurred()) SWIG_fail;
28500 }
28501 resultobj = SWIG_From_int(static_cast< int >(result));
28502 return resultobj;
28503fail:
28504 return NULL;
d55e5bfc
RD
28505}
28506
28507
554f62e9
RD
28508SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28509 PyObject *resultobj = 0;
28510 wxListEvent *arg1 = (wxListEvent *) 0 ;
28511 long result;
28512 void *argp1 = 0 ;
28513 int res1 = 0 ;
28514 PyObject *swig_obj[1] ;
28515
28516 if (!args) SWIG_fail;
28517 swig_obj[0] = args;
28518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28519 if (!SWIG_IsOK(res1)) {
28520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28521 }
28522 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28523 {
28524 PyThreadState* __tstate = wxPyBeginAllowThreads();
28525 result = (long)(arg1)->GetIndex();
28526 wxPyEndAllowThreads(__tstate);
28527 if (PyErr_Occurred()) SWIG_fail;
28528 }
28529 resultobj = SWIG_From_long(static_cast< long >(result));
28530 return resultobj;
28531fail:
28532 return NULL;
d55e5bfc
RD
28533}
28534
28535
554f62e9
RD
28536SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28537 PyObject *resultobj = 0;
28538 wxListEvent *arg1 = (wxListEvent *) 0 ;
28539 int result;
28540 void *argp1 = 0 ;
28541 int res1 = 0 ;
28542 PyObject *swig_obj[1] ;
28543
28544 if (!args) SWIG_fail;
28545 swig_obj[0] = args;
28546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28547 if (!SWIG_IsOK(res1)) {
28548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28549 }
28550 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28551 {
28552 PyThreadState* __tstate = wxPyBeginAllowThreads();
28553 result = (int)(arg1)->GetColumn();
28554 wxPyEndAllowThreads(__tstate);
28555 if (PyErr_Occurred()) SWIG_fail;
28556 }
28557 resultobj = SWIG_From_int(static_cast< int >(result));
28558 return resultobj;
28559fail:
28560 return NULL;
d55e5bfc
RD
28561}
28562
28563
554f62e9
RD
28564SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28565 PyObject *resultobj = 0;
28566 wxListEvent *arg1 = (wxListEvent *) 0 ;
28567 wxPoint result;
28568 void *argp1 = 0 ;
28569 int res1 = 0 ;
28570 PyObject *swig_obj[1] ;
28571
28572 if (!args) SWIG_fail;
28573 swig_obj[0] = args;
28574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28575 if (!SWIG_IsOK(res1)) {
28576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28577 }
28578 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28579 {
28580 PyThreadState* __tstate = wxPyBeginAllowThreads();
28581 result = (arg1)->GetPoint();
28582 wxPyEndAllowThreads(__tstate);
28583 if (PyErr_Occurred()) SWIG_fail;
28584 }
28585 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28586 return resultobj;
28587fail:
28588 return NULL;
d55e5bfc
RD
28589}
28590
28591
554f62e9
RD
28592SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28593 PyObject *resultobj = 0;
28594 wxListEvent *arg1 = (wxListEvent *) 0 ;
28595 wxString *result = 0 ;
28596 void *argp1 = 0 ;
28597 int res1 = 0 ;
28598 PyObject *swig_obj[1] ;
28599
28600 if (!args) SWIG_fail;
28601 swig_obj[0] = args;
28602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28603 if (!SWIG_IsOK(res1)) {
28604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28605 }
28606 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28607 {
28608 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28609 {
554f62e9
RD
28610 wxString const &_result_ref = (arg1)->GetLabel();
28611 result = (wxString *) &_result_ref;
d55e5bfc 28612 }
554f62e9
RD
28613 wxPyEndAllowThreads(__tstate);
28614 if (PyErr_Occurred()) SWIG_fail;
28615 }
28616 {
28617#if wxUSE_UNICODE
28618 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28619#else
28620 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28621#endif
28622 }
28623 return resultobj;
28624fail:
28625 return NULL;
d55e5bfc
RD
28626}
28627
28628
554f62e9
RD
28629SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28630 PyObject *resultobj = 0;
28631 wxListEvent *arg1 = (wxListEvent *) 0 ;
28632 wxString *result = 0 ;
28633 void *argp1 = 0 ;
28634 int res1 = 0 ;
28635 PyObject *swig_obj[1] ;
28636
28637 if (!args) SWIG_fail;
28638 swig_obj[0] = args;
28639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28640 if (!SWIG_IsOK(res1)) {
28641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28642 }
28643 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28644 {
28645 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28646 {
554f62e9
RD
28647 wxString const &_result_ref = (arg1)->GetText();
28648 result = (wxString *) &_result_ref;
d55e5bfc 28649 }
554f62e9
RD
28650 wxPyEndAllowThreads(__tstate);
28651 if (PyErr_Occurred()) SWIG_fail;
28652 }
28653 {
28654#if wxUSE_UNICODE
28655 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28656#else
28657 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28658#endif
28659 }
28660 return resultobj;
28661fail:
28662 return NULL;
d55e5bfc
RD
28663}
28664
28665
554f62e9
RD
28666SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28667 PyObject *resultobj = 0;
28668 wxListEvent *arg1 = (wxListEvent *) 0 ;
28669 int result;
28670 void *argp1 = 0 ;
28671 int res1 = 0 ;
28672 PyObject *swig_obj[1] ;
28673
28674 if (!args) SWIG_fail;
28675 swig_obj[0] = args;
28676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28677 if (!SWIG_IsOK(res1)) {
28678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28679 }
28680 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28681 {
28682 PyThreadState* __tstate = wxPyBeginAllowThreads();
28683 result = (int)(arg1)->GetImage();
28684 wxPyEndAllowThreads(__tstate);
28685 if (PyErr_Occurred()) SWIG_fail;
28686 }
28687 resultobj = SWIG_From_int(static_cast< int >(result));
28688 return resultobj;
28689fail:
28690 return NULL;
d55e5bfc
RD
28691}
28692
28693
554f62e9
RD
28694SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28695 PyObject *resultobj = 0;
28696 wxListEvent *arg1 = (wxListEvent *) 0 ;
28697 long result;
28698 void *argp1 = 0 ;
28699 int res1 = 0 ;
28700 PyObject *swig_obj[1] ;
28701
28702 if (!args) SWIG_fail;
28703 swig_obj[0] = args;
28704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28705 if (!SWIG_IsOK(res1)) {
28706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28707 }
28708 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28709 {
28710 PyThreadState* __tstate = wxPyBeginAllowThreads();
28711 result = (long)(arg1)->GetData();
28712 wxPyEndAllowThreads(__tstate);
28713 if (PyErr_Occurred()) SWIG_fail;
28714 }
28715 resultobj = SWIG_From_long(static_cast< long >(result));
28716 return resultobj;
28717fail:
28718 return NULL;
d55e5bfc
RD
28719}
28720
28721
554f62e9
RD
28722SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28723 PyObject *resultobj = 0;
28724 wxListEvent *arg1 = (wxListEvent *) 0 ;
28725 long result;
28726 void *argp1 = 0 ;
28727 int res1 = 0 ;
28728 PyObject *swig_obj[1] ;
28729
28730 if (!args) SWIG_fail;
28731 swig_obj[0] = args;
28732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28733 if (!SWIG_IsOK(res1)) {
28734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28735 }
28736 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28737 {
28738 PyThreadState* __tstate = wxPyBeginAllowThreads();
28739 result = (long)(arg1)->GetMask();
28740 wxPyEndAllowThreads(__tstate);
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 resultobj = SWIG_From_long(static_cast< long >(result));
28744 return resultobj;
28745fail:
28746 return NULL;
d55e5bfc
RD
28747}
28748
28749
554f62e9
RD
28750SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28751 PyObject *resultobj = 0;
28752 wxListEvent *arg1 = (wxListEvent *) 0 ;
28753 wxListItem *result = 0 ;
28754 void *argp1 = 0 ;
28755 int res1 = 0 ;
28756 PyObject *swig_obj[1] ;
28757
28758 if (!args) SWIG_fail;
28759 swig_obj[0] = args;
28760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28761 if (!SWIG_IsOK(res1)) {
28762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28763 }
28764 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28765 {
28766 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 28767 {
554f62e9
RD
28768 wxListItem const &_result_ref = (arg1)->GetItem();
28769 result = (wxListItem *) &_result_ref;
093d3ff1 28770 }
554f62e9
RD
28771 wxPyEndAllowThreads(__tstate);
28772 if (PyErr_Occurred()) SWIG_fail;
28773 }
28774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28775 return resultobj;
28776fail:
28777 return NULL;
d55e5bfc
RD
28778}
28779
28780
554f62e9
RD
28781SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28782 PyObject *resultobj = 0;
28783 wxListEvent *arg1 = (wxListEvent *) 0 ;
28784 long result;
28785 void *argp1 = 0 ;
28786 int res1 = 0 ;
28787 PyObject *swig_obj[1] ;
28788
28789 if (!args) SWIG_fail;
28790 swig_obj[0] = args;
28791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28792 if (!SWIG_IsOK(res1)) {
28793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28794 }
28795 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28796 {
28797 PyThreadState* __tstate = wxPyBeginAllowThreads();
28798 result = (long)(arg1)->GetCacheFrom();
28799 wxPyEndAllowThreads(__tstate);
28800 if (PyErr_Occurred()) SWIG_fail;
28801 }
28802 resultobj = SWIG_From_long(static_cast< long >(result));
28803 return resultobj;
28804fail:
28805 return NULL;
d55e5bfc
RD
28806}
28807
28808
554f62e9
RD
28809SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28810 PyObject *resultobj = 0;
28811 wxListEvent *arg1 = (wxListEvent *) 0 ;
28812 long result;
28813 void *argp1 = 0 ;
28814 int res1 = 0 ;
28815 PyObject *swig_obj[1] ;
28816
28817 if (!args) SWIG_fail;
28818 swig_obj[0] = args;
28819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28820 if (!SWIG_IsOK(res1)) {
28821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28822 }
28823 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28824 {
28825 PyThreadState* __tstate = wxPyBeginAllowThreads();
28826 result = (long)(arg1)->GetCacheTo();
28827 wxPyEndAllowThreads(__tstate);
28828 if (PyErr_Occurred()) SWIG_fail;
28829 }
28830 resultobj = SWIG_From_long(static_cast< long >(result));
28831 return resultobj;
28832fail:
28833 return NULL;
091fdbfa
RD
28834}
28835
28836
554f62e9
RD
28837SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28838 PyObject *resultobj = 0;
28839 wxListEvent *arg1 = (wxListEvent *) 0 ;
28840 bool result;
28841 void *argp1 = 0 ;
28842 int res1 = 0 ;
28843 PyObject *swig_obj[1] ;
28844
28845 if (!args) SWIG_fail;
28846 swig_obj[0] = args;
28847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28848 if (!SWIG_IsOK(res1)) {
28849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28850 }
28851 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28852 {
28853 PyThreadState* __tstate = wxPyBeginAllowThreads();
28854 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28855 wxPyEndAllowThreads(__tstate);
28856 if (PyErr_Occurred()) SWIG_fail;
28857 }
28858 {
28859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28860 }
28861 return resultobj;
28862fail:
28863 return NULL;
28864}
28865
28866
28867SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28868 PyObject *resultobj = 0;
28869 wxListEvent *arg1 = (wxListEvent *) 0 ;
28870 bool arg2 ;
28871 void *argp1 = 0 ;
28872 int res1 = 0 ;
28873 bool val2 ;
28874 int ecode2 = 0 ;
28875 PyObject * obj0 = 0 ;
28876 PyObject * obj1 = 0 ;
28877 char * kwnames[] = {
28878 (char *) "self",(char *) "editCancelled", NULL
28879 };
28880
28881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28883 if (!SWIG_IsOK(res1)) {
28884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28885 }
28886 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28887 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28888 if (!SWIG_IsOK(ecode2)) {
28889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28890 }
28891 arg2 = static_cast< bool >(val2);
28892 {
28893 PyThreadState* __tstate = wxPyBeginAllowThreads();
28894 (arg1)->SetEditCanceled(arg2);
28895 wxPyEndAllowThreads(__tstate);
28896 if (PyErr_Occurred()) SWIG_fail;
28897 }
28898 resultobj = SWIG_Py_Void();
28899 return resultobj;
28900fail:
28901 return NULL;
28902}
28903
28904
28905SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28906 PyObject *obj;
28907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28908 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28909 return SWIG_Py_Void();
28910}
28911
28912SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28913 return SWIG_Python_InitShadowInstance(args);
28914}
28915
28916SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28917 PyObject *resultobj = 0;
28918 wxWindow *arg1 = (wxWindow *) 0 ;
28919 int arg2 = (int) -1 ;
28920 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28921 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28922 wxSize const &arg4_defvalue = wxDefaultSize ;
28923 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28924 long arg5 = (long) wxLC_ICON ;
28925 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28926 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28927 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28928 wxString *arg7 = (wxString *) &arg7_defvalue ;
28929 wxPyListCtrl *result = 0 ;
28930 void *argp1 = 0 ;
28931 int res1 = 0 ;
28932 int val2 ;
28933 int ecode2 = 0 ;
28934 wxPoint temp3 ;
28935 wxSize temp4 ;
28936 long val5 ;
28937 int ecode5 = 0 ;
28938 void *argp6 = 0 ;
28939 int res6 = 0 ;
28940 bool temp7 = false ;
28941 PyObject * obj0 = 0 ;
28942 PyObject * obj1 = 0 ;
28943 PyObject * obj2 = 0 ;
28944 PyObject * obj3 = 0 ;
28945 PyObject * obj4 = 0 ;
28946 PyObject * obj5 = 0 ;
28947 PyObject * obj6 = 0 ;
28948 char * kwnames[] = {
28949 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28950 };
28951
28952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28954 if (!SWIG_IsOK(res1)) {
28955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28956 }
28957 arg1 = reinterpret_cast< wxWindow * >(argp1);
28958 if (obj1) {
28959 ecode2 = SWIG_AsVal_int(obj1, &val2);
28960 if (!SWIG_IsOK(ecode2)) {
28961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28962 }
28963 arg2 = static_cast< int >(val2);
28964 }
28965 if (obj2) {
f20a2e1f 28966 {
554f62e9
RD
28967 arg3 = &temp3;
28968 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 28969 }
554f62e9
RD
28970 }
28971 if (obj3) {
d55e5bfc 28972 {
554f62e9
RD
28973 arg4 = &temp4;
28974 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 28975 }
554f62e9
RD
28976 }
28977 if (obj4) {
28978 ecode5 = SWIG_AsVal_long(obj4, &val5);
28979 if (!SWIG_IsOK(ecode5)) {
28980 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28981 }
28982 arg5 = static_cast< long >(val5);
28983 }
28984 if (obj5) {
28985 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28986 if (!SWIG_IsOK(res6)) {
28987 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28988 }
554f62e9
RD
28989 if (!argp6) {
28990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28991 }
554f62e9
RD
28992 arg6 = reinterpret_cast< wxValidator * >(argp6);
28993 }
28994 if (obj6) {
d55e5bfc 28995 {
554f62e9
RD
28996 arg7 = wxString_in_helper(obj6);
28997 if (arg7 == NULL) SWIG_fail;
28998 temp7 = true;
d55e5bfc 28999 }
554f62e9
RD
29000 }
29001 {
29002 if (!wxPyCheckForApp()) SWIG_fail;
29003 PyThreadState* __tstate = wxPyBeginAllowThreads();
29004 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29005 wxPyEndAllowThreads(__tstate);
29006 if (PyErr_Occurred()) SWIG_fail;
29007 }
29008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29009 {
29010 if (temp7)
29011 delete arg7;
29012 }
29013 return resultobj;
29014fail:
29015 {
29016 if (temp7)
29017 delete arg7;
29018 }
29019 return NULL;
d55e5bfc
RD
29020}
29021
29022
554f62e9
RD
29023SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29024 PyObject *resultobj = 0;
29025 wxPyListCtrl *result = 0 ;
29026
29027 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29028 {
29029 if (!wxPyCheckForApp()) SWIG_fail;
29030 PyThreadState* __tstate = wxPyBeginAllowThreads();
29031 result = (wxPyListCtrl *)new wxPyListCtrl();
29032 wxPyEndAllowThreads(__tstate);
29033 if (PyErr_Occurred()) SWIG_fail;
29034 }
29035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29036 return resultobj;
29037fail:
29038 return NULL;
29039}
29040
29041
29042SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj = 0;
29044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29045 wxWindow *arg2 = (wxWindow *) 0 ;
29046 int arg3 = (int) -1 ;
29047 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29048 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29049 wxSize const &arg5_defvalue = wxDefaultSize ;
29050 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29051 long arg6 = (long) wxLC_ICON ;
29052 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29053 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29054 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29055 wxString *arg8 = (wxString *) &arg8_defvalue ;
29056 bool result;
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 void *argp2 = 0 ;
29060 int res2 = 0 ;
29061 int val3 ;
29062 int ecode3 = 0 ;
29063 wxPoint temp4 ;
29064 wxSize temp5 ;
29065 long val6 ;
29066 int ecode6 = 0 ;
29067 void *argp7 = 0 ;
29068 int res7 = 0 ;
29069 bool temp8 = false ;
29070 PyObject * obj0 = 0 ;
29071 PyObject * obj1 = 0 ;
29072 PyObject * obj2 = 0 ;
29073 PyObject * obj3 = 0 ;
29074 PyObject * obj4 = 0 ;
29075 PyObject * obj5 = 0 ;
29076 PyObject * obj6 = 0 ;
29077 PyObject * obj7 = 0 ;
29078 char * kwnames[] = {
29079 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29080 };
29081
29082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29084 if (!SWIG_IsOK(res1)) {
29085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29086 }
29087 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29088 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29089 if (!SWIG_IsOK(res2)) {
29090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29091 }
29092 arg2 = reinterpret_cast< wxWindow * >(argp2);
29093 if (obj2) {
29094 ecode3 = SWIG_AsVal_int(obj2, &val3);
29095 if (!SWIG_IsOK(ecode3)) {
29096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29097 }
29098 arg3 = static_cast< int >(val3);
29099 }
29100 if (obj3) {
d55e5bfc 29101 {
554f62e9
RD
29102 arg4 = &temp4;
29103 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 29104 }
554f62e9
RD
29105 }
29106 if (obj4) {
d55e5bfc 29107 {
554f62e9
RD
29108 arg5 = &temp5;
29109 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 29110 }
554f62e9
RD
29111 }
29112 if (obj5) {
29113 ecode6 = SWIG_AsVal_long(obj5, &val6);
29114 if (!SWIG_IsOK(ecode6)) {
29115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29116 }
29117 arg6 = static_cast< long >(val6);
29118 }
29119 if (obj6) {
29120 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29121 if (!SWIG_IsOK(res7)) {
29122 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 29123 }
554f62e9
RD
29124 if (!argp7) {
29125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 29126 }
554f62e9
RD
29127 arg7 = reinterpret_cast< wxValidator * >(argp7);
29128 }
29129 if (obj7) {
d55e5bfc 29130 {
554f62e9
RD
29131 arg8 = wxString_in_helper(obj7);
29132 if (arg8 == NULL) SWIG_fail;
29133 temp8 = true;
d55e5bfc 29134 }
554f62e9
RD
29135 }
29136 {
29137 PyThreadState* __tstate = wxPyBeginAllowThreads();
29138 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29139 wxPyEndAllowThreads(__tstate);
29140 if (PyErr_Occurred()) SWIG_fail;
29141 }
29142 {
29143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29144 }
29145 {
29146 if (temp8)
29147 delete arg8;
29148 }
29149 return resultobj;
29150fail:
29151 {
29152 if (temp8)
29153 delete arg8;
29154 }
29155 return NULL;
29156}
29157
29158
29159SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29160 PyObject *resultobj = 0;
29161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29162 PyObject *arg2 = (PyObject *) 0 ;
29163 PyObject *arg3 = (PyObject *) 0 ;
29164 void *argp1 = 0 ;
29165 int res1 = 0 ;
29166 PyObject * obj0 = 0 ;
29167 PyObject * obj1 = 0 ;
29168 PyObject * obj2 = 0 ;
29169 char * kwnames[] = {
29170 (char *) "self",(char *) "self",(char *) "_class", NULL
29171 };
29172
29173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29175 if (!SWIG_IsOK(res1)) {
29176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29177 }
29178 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29179 arg2 = obj1;
29180 arg3 = obj2;
29181 {
29182 PyThreadState* __tstate = wxPyBeginAllowThreads();
29183 (arg1)->_setCallbackInfo(arg2,arg3);
29184 wxPyEndAllowThreads(__tstate);
29185 if (PyErr_Occurred()) SWIG_fail;
29186 }
29187 resultobj = SWIG_Py_Void();
29188 return resultobj;
29189fail:
29190 return NULL;
29191}
29192
29193
29194SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29195 PyObject *resultobj = 0;
29196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29197 int arg2 ;
29198 wxListItem *result = 0 ;
29199 void *argp1 = 0 ;
29200 int res1 = 0 ;
29201 int val2 ;
29202 int ecode2 = 0 ;
29203 PyObject * obj0 = 0 ;
29204 PyObject * obj1 = 0 ;
29205 char * kwnames[] = {
29206 (char *) "self",(char *) "col", NULL
29207 };
29208
29209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29211 if (!SWIG_IsOK(res1)) {
29212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29213 }
29214 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29215 ecode2 = SWIG_AsVal_int(obj1, &val2);
29216 if (!SWIG_IsOK(ecode2)) {
29217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29218 }
29219 arg2 = static_cast< int >(val2);
29220 {
29221 PyThreadState* __tstate = wxPyBeginAllowThreads();
29222 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 {
3ecece7e 29227 resultobj = wxPyMake_wxObject(result, 0);
554f62e9
RD
29228 }
29229 return resultobj;
29230fail:
29231 return NULL;
29232}
29233
29234
29235SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29236 PyObject *resultobj = 0;
29237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29238 int arg2 ;
29239 wxListItem *arg3 = 0 ;
29240 bool result;
29241 void *argp1 = 0 ;
29242 int res1 = 0 ;
29243 int val2 ;
29244 int ecode2 = 0 ;
29245 void *argp3 = 0 ;
29246 int res3 = 0 ;
29247 PyObject * obj0 = 0 ;
29248 PyObject * obj1 = 0 ;
29249 PyObject * obj2 = 0 ;
29250 char * kwnames[] = {
29251 (char *) "self",(char *) "col",(char *) "item", NULL
29252 };
29253
29254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29256 if (!SWIG_IsOK(res1)) {
29257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29258 }
29259 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29260 ecode2 = SWIG_AsVal_int(obj1, &val2);
29261 if (!SWIG_IsOK(ecode2)) {
29262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29263 }
29264 arg2 = static_cast< int >(val2);
29265 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29266 if (!SWIG_IsOK(res3)) {
29267 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29268 }
29269 if (!argp3) {
29270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29271 }
29272 arg3 = reinterpret_cast< wxListItem * >(argp3);
29273 {
29274 PyThreadState* __tstate = wxPyBeginAllowThreads();
29275 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29276 wxPyEndAllowThreads(__tstate);
29277 if (PyErr_Occurred()) SWIG_fail;
29278 }
29279 {
29280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29281 }
29282 return resultobj;
29283fail:
29284 return NULL;
29285}
29286
29287
29288SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29289 PyObject *resultobj = 0;
29290 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29291 int arg2 ;
29292 int result;
29293 void *argp1 = 0 ;
29294 int res1 = 0 ;
29295 int val2 ;
29296 int ecode2 = 0 ;
29297 PyObject * obj0 = 0 ;
29298 PyObject * obj1 = 0 ;
29299 char * kwnames[] = {
29300 (char *) "self",(char *) "col", NULL
29301 };
29302
29303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29305 if (!SWIG_IsOK(res1)) {
29306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29307 }
29308 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29309 ecode2 = SWIG_AsVal_int(obj1, &val2);
29310 if (!SWIG_IsOK(ecode2)) {
29311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29312 }
29313 arg2 = static_cast< int >(val2);
29314 {
29315 PyThreadState* __tstate = wxPyBeginAllowThreads();
29316 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29317 wxPyEndAllowThreads(__tstate);
29318 if (PyErr_Occurred()) SWIG_fail;
29319 }
29320 resultobj = SWIG_From_int(static_cast< int >(result));
29321 return resultobj;
29322fail:
29323 return NULL;
29324}
29325
29326
29327SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29328 PyObject *resultobj = 0;
29329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29330 int arg2 ;
29331 int arg3 ;
29332 bool result;
29333 void *argp1 = 0 ;
29334 int res1 = 0 ;
29335 int val2 ;
29336 int ecode2 = 0 ;
29337 int val3 ;
29338 int ecode3 = 0 ;
29339 PyObject * obj0 = 0 ;
29340 PyObject * obj1 = 0 ;
29341 PyObject * obj2 = 0 ;
29342 char * kwnames[] = {
29343 (char *) "self",(char *) "col",(char *) "width", NULL
29344 };
29345
29346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29348 if (!SWIG_IsOK(res1)) {
29349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29350 }
29351 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29352 ecode2 = SWIG_AsVal_int(obj1, &val2);
29353 if (!SWIG_IsOK(ecode2)) {
29354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29355 }
29356 arg2 = static_cast< int >(val2);
29357 ecode3 = SWIG_AsVal_int(obj2, &val3);
29358 if (!SWIG_IsOK(ecode3)) {
29359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29360 }
29361 arg3 = static_cast< int >(val3);
29362 {
29363 PyThreadState* __tstate = wxPyBeginAllowThreads();
29364 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29365 wxPyEndAllowThreads(__tstate);
29366 if (PyErr_Occurred()) SWIG_fail;
29367 }
29368 {
29369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29370 }
29371 return resultobj;
29372fail:
29373 return NULL;
d55e5bfc
RD
29374}
29375
29376
554f62e9
RD
29377SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29378 PyObject *resultobj = 0;
29379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29380 int result;
29381 void *argp1 = 0 ;
29382 int res1 = 0 ;
29383 PyObject *swig_obj[1] ;
29384
29385 if (!args) SWIG_fail;
29386 swig_obj[0] = args;
29387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29388 if (!SWIG_IsOK(res1)) {
29389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29390 }
29391 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29392 {
29393 PyThreadState* __tstate = wxPyBeginAllowThreads();
29394 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29395 wxPyEndAllowThreads(__tstate);
29396 if (PyErr_Occurred()) SWIG_fail;
29397 }
29398 resultobj = SWIG_From_int(static_cast< int >(result));
29399 return resultobj;
29400fail:
29401 return NULL;
7e08d4ef
RD
29402}
29403
29404
554f62e9
RD
29405SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29406 PyObject *resultobj = 0;
29407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29408 wxRect result;
29409 void *argp1 = 0 ;
29410 int res1 = 0 ;
29411 PyObject *swig_obj[1] ;
29412
29413 if (!args) SWIG_fail;
29414 swig_obj[0] = args;
29415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29416 if (!SWIG_IsOK(res1)) {
29417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29418 }
29419 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29420 {
29421 PyThreadState* __tstate = wxPyBeginAllowThreads();
29422 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29423 wxPyEndAllowThreads(__tstate);
29424 if (PyErr_Occurred()) SWIG_fail;
29425 }
29426 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29427 return resultobj;
29428fail:
29429 return NULL;
7e08d4ef
RD
29430}
29431
29432
554f62e9
RD
29433SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29434 PyObject *resultobj = 0;
29435 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29436 wxTextCtrl *result = 0 ;
29437 void *argp1 = 0 ;
29438 int res1 = 0 ;
29439 PyObject *swig_obj[1] ;
29440
29441 if (!args) SWIG_fail;
29442 swig_obj[0] = args;
29443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29446 }
29447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29448 {
29449 PyThreadState* __tstate = wxPyBeginAllowThreads();
29450 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29451 wxPyEndAllowThreads(__tstate);
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 {
29455 resultobj = wxPyMake_wxObject(result, 0);
29456 }
29457 return resultobj;
29458fail:
29459 return NULL;
29460}
29461
29462
29463SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29464 PyObject *resultobj = 0;
29465 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29466 long arg2 ;
29467 int arg3 = (int) 0 ;
29468 wxListItem *result = 0 ;
29469 void *argp1 = 0 ;
29470 int res1 = 0 ;
29471 long val2 ;
29472 int ecode2 = 0 ;
29473 int val3 ;
29474 int ecode3 = 0 ;
29475 PyObject * obj0 = 0 ;
29476 PyObject * obj1 = 0 ;
29477 PyObject * obj2 = 0 ;
29478 char * kwnames[] = {
29479 (char *) "self",(char *) "itemId",(char *) "col", NULL
29480 };
29481
29482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29484 if (!SWIG_IsOK(res1)) {
29485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29486 }
29487 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29488 ecode2 = SWIG_AsVal_long(obj1, &val2);
29489 if (!SWIG_IsOK(ecode2)) {
29490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29491 }
29492 arg2 = static_cast< long >(val2);
29493 if (obj2) {
29494 ecode3 = SWIG_AsVal_int(obj2, &val3);
29495 if (!SWIG_IsOK(ecode3)) {
29496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29497 }
29498 arg3 = static_cast< int >(val3);
29499 }
29500 {
29501 PyThreadState* __tstate = wxPyBeginAllowThreads();
29502 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29503 wxPyEndAllowThreads(__tstate);
29504 if (PyErr_Occurred()) SWIG_fail;
29505 }
29506 {
3ecece7e 29507 resultobj = wxPyMake_wxObject(result, 0);
554f62e9
RD
29508 }
29509 return resultobj;
29510fail:
29511 return NULL;
29512}
29513
29514
29515SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29516 PyObject *resultobj = 0;
29517 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29518 wxListItem *arg2 = 0 ;
29519 bool result;
29520 void *argp1 = 0 ;
29521 int res1 = 0 ;
29522 void *argp2 = 0 ;
29523 int res2 = 0 ;
29524 PyObject * obj0 = 0 ;
29525 PyObject * obj1 = 0 ;
29526 char * kwnames[] = {
29527 (char *) "self",(char *) "info", NULL
29528 };
29529
29530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29532 if (!SWIG_IsOK(res1)) {
29533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29534 }
29535 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29537 if (!SWIG_IsOK(res2)) {
29538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29539 }
29540 if (!argp2) {
29541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29542 }
29543 arg2 = reinterpret_cast< wxListItem * >(argp2);
29544 {
29545 PyThreadState* __tstate = wxPyBeginAllowThreads();
29546 result = (bool)(arg1)->SetItem(*arg2);
29547 wxPyEndAllowThreads(__tstate);
29548 if (PyErr_Occurred()) SWIG_fail;
29549 }
29550 {
29551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29552 }
29553 return resultobj;
29554fail:
29555 return NULL;
29556}
29557
29558
29559SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29560 PyObject *resultobj = 0;
29561 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29562 long arg2 ;
29563 int arg3 ;
29564 wxString *arg4 = 0 ;
29565 int arg5 = (int) -1 ;
29566 long result;
29567 void *argp1 = 0 ;
29568 int res1 = 0 ;
29569 long val2 ;
29570 int ecode2 = 0 ;
29571 int val3 ;
29572 int ecode3 = 0 ;
29573 bool temp4 = false ;
29574 int val5 ;
29575 int ecode5 = 0 ;
29576 PyObject * obj0 = 0 ;
29577 PyObject * obj1 = 0 ;
29578 PyObject * obj2 = 0 ;
29579 PyObject * obj3 = 0 ;
29580 PyObject * obj4 = 0 ;
29581 char * kwnames[] = {
29582 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29583 };
29584
29585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29587 if (!SWIG_IsOK(res1)) {
29588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29589 }
29590 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29591 ecode2 = SWIG_AsVal_long(obj1, &val2);
29592 if (!SWIG_IsOK(ecode2)) {
29593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29594 }
29595 arg2 = static_cast< long >(val2);
29596 ecode3 = SWIG_AsVal_int(obj2, &val3);
29597 if (!SWIG_IsOK(ecode3)) {
29598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29599 }
29600 arg3 = static_cast< int >(val3);
29601 {
29602 arg4 = wxString_in_helper(obj3);
29603 if (arg4 == NULL) SWIG_fail;
29604 temp4 = true;
29605 }
29606 if (obj4) {
29607 ecode5 = SWIG_AsVal_int(obj4, &val5);
29608 if (!SWIG_IsOK(ecode5)) {
29609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29610 }
29611 arg5 = static_cast< int >(val5);
29612 }
29613 {
29614 PyThreadState* __tstate = wxPyBeginAllowThreads();
29615 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29616 wxPyEndAllowThreads(__tstate);
29617 if (PyErr_Occurred()) SWIG_fail;
29618 }
29619 resultobj = SWIG_From_long(static_cast< long >(result));
29620 {
29621 if (temp4)
29622 delete arg4;
29623 }
29624 return resultobj;
29625fail:
29626 {
29627 if (temp4)
29628 delete arg4;
29629 }
29630 return NULL;
29631}
29632
29633
29634SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29635 PyObject *resultobj = 0;
29636 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29637 long arg2 ;
29638 long arg3 ;
29639 int result;
29640 void *argp1 = 0 ;
29641 int res1 = 0 ;
29642 long val2 ;
29643 int ecode2 = 0 ;
29644 long val3 ;
29645 int ecode3 = 0 ;
29646 PyObject * obj0 = 0 ;
29647 PyObject * obj1 = 0 ;
29648 PyObject * obj2 = 0 ;
29649 char * kwnames[] = {
29650 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29651 };
29652
29653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29655 if (!SWIG_IsOK(res1)) {
29656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29657 }
29658 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29659 ecode2 = SWIG_AsVal_long(obj1, &val2);
29660 if (!SWIG_IsOK(ecode2)) {
29661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29662 }
29663 arg2 = static_cast< long >(val2);
29664 ecode3 = SWIG_AsVal_long(obj2, &val3);
29665 if (!SWIG_IsOK(ecode3)) {
29666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29667 }
29668 arg3 = static_cast< long >(val3);
29669 {
29670 PyThreadState* __tstate = wxPyBeginAllowThreads();
29671 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29672 wxPyEndAllowThreads(__tstate);
29673 if (PyErr_Occurred()) SWIG_fail;
29674 }
29675 resultobj = SWIG_From_int(static_cast< int >(result));
29676 return resultobj;
29677fail:
29678 return NULL;
29679}
29680
29681
29682SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29683 PyObject *resultobj = 0;
29684 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29685 long arg2 ;
29686 long arg3 ;
29687 long arg4 ;
29688 bool result;
29689 void *argp1 = 0 ;
29690 int res1 = 0 ;
29691 long val2 ;
29692 int ecode2 = 0 ;
29693 long val3 ;
29694 int ecode3 = 0 ;
29695 long val4 ;
29696 int ecode4 = 0 ;
29697 PyObject * obj0 = 0 ;
29698 PyObject * obj1 = 0 ;
29699 PyObject * obj2 = 0 ;
29700 PyObject * obj3 = 0 ;
29701 char * kwnames[] = {
29702 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29703 };
29704
29705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29707 if (!SWIG_IsOK(res1)) {
29708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29709 }
29710 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29711 ecode2 = SWIG_AsVal_long(obj1, &val2);
29712 if (!SWIG_IsOK(ecode2)) {
29713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29714 }
29715 arg2 = static_cast< long >(val2);
29716 ecode3 = SWIG_AsVal_long(obj2, &val3);
29717 if (!SWIG_IsOK(ecode3)) {
29718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29719 }
29720 arg3 = static_cast< long >(val3);
29721 ecode4 = SWIG_AsVal_long(obj3, &val4);
29722 if (!SWIG_IsOK(ecode4)) {
29723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29724 }
29725 arg4 = static_cast< long >(val4);
29726 {
29727 PyThreadState* __tstate = wxPyBeginAllowThreads();
29728 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29729 wxPyEndAllowThreads(__tstate);
29730 if (PyErr_Occurred()) SWIG_fail;
29731 }
29732 {
29733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29734 }
29735 return resultobj;
29736fail:
29737 return NULL;
29738}
29739
29740
29741SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29742 PyObject *resultobj = 0;
29743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29744 long arg2 ;
29745 int arg3 ;
29746 int arg4 = (int) -1 ;
29747 bool result;
29748 void *argp1 = 0 ;
29749 int res1 = 0 ;
29750 long val2 ;
29751 int ecode2 = 0 ;
29752 int val3 ;
29753 int ecode3 = 0 ;
29754 int val4 ;
29755 int ecode4 = 0 ;
29756 PyObject * obj0 = 0 ;
29757 PyObject * obj1 = 0 ;
29758 PyObject * obj2 = 0 ;
29759 PyObject * obj3 = 0 ;
29760 char * kwnames[] = {
29761 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29762 };
29763
29764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29766 if (!SWIG_IsOK(res1)) {
29767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29768 }
29769 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29770 ecode2 = SWIG_AsVal_long(obj1, &val2);
29771 if (!SWIG_IsOK(ecode2)) {
29772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29773 }
29774 arg2 = static_cast< long >(val2);
29775 ecode3 = SWIG_AsVal_int(obj2, &val3);
29776 if (!SWIG_IsOK(ecode3)) {
29777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29778 }
29779 arg3 = static_cast< int >(val3);
29780 if (obj3) {
29781 ecode4 = SWIG_AsVal_int(obj3, &val4);
29782 if (!SWIG_IsOK(ecode4)) {
29783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29784 }
29785 arg4 = static_cast< int >(val4);
29786 }
29787 {
29788 PyThreadState* __tstate = wxPyBeginAllowThreads();
29789 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29790 wxPyEndAllowThreads(__tstate);
29791 if (PyErr_Occurred()) SWIG_fail;
29792 }
29793 {
29794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29795 }
29796 return resultobj;
29797fail:
29798 return NULL;
29799}
29800
29801
29802SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29803 PyObject *resultobj = 0;
29804 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29805 long arg2 ;
29806 long arg3 ;
29807 int arg4 ;
29808 bool result;
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
29811 long val2 ;
29812 int ecode2 = 0 ;
29813 long val3 ;
29814 int ecode3 = 0 ;
29815 int val4 ;
29816 int ecode4 = 0 ;
29817 PyObject * obj0 = 0 ;
29818 PyObject * obj1 = 0 ;
29819 PyObject * obj2 = 0 ;
29820 PyObject * obj3 = 0 ;
29821 char * kwnames[] = {
29822 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29823 };
29824
29825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29827 if (!SWIG_IsOK(res1)) {
29828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29829 }
29830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29831 ecode2 = SWIG_AsVal_long(obj1, &val2);
29832 if (!SWIG_IsOK(ecode2)) {
29833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29834 }
29835 arg2 = static_cast< long >(val2);
29836 ecode3 = SWIG_AsVal_long(obj2, &val3);
29837 if (!SWIG_IsOK(ecode3)) {
29838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29839 }
29840 arg3 = static_cast< long >(val3);
29841 ecode4 = SWIG_AsVal_int(obj3, &val4);
29842 if (!SWIG_IsOK(ecode4)) {
29843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29844 }
29845 arg4 = static_cast< int >(val4);
29846 {
29847 PyThreadState* __tstate = wxPyBeginAllowThreads();
29848 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29849 wxPyEndAllowThreads(__tstate);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 {
29853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29854 }
29855 return resultobj;
29856fail:
29857 return NULL;
29858}
29859
29860
29861SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29862 PyObject *resultobj = 0;
29863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29864 long arg2 ;
29865 wxString result;
29866 void *argp1 = 0 ;
29867 int res1 = 0 ;
29868 long val2 ;
29869 int ecode2 = 0 ;
29870 PyObject * obj0 = 0 ;
29871 PyObject * obj1 = 0 ;
29872 char * kwnames[] = {
29873 (char *) "self",(char *) "item", NULL
29874 };
29875
29876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29878 if (!SWIG_IsOK(res1)) {
29879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29880 }
29881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29882 ecode2 = SWIG_AsVal_long(obj1, &val2);
29883 if (!SWIG_IsOK(ecode2)) {
29884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29885 }
29886 arg2 = static_cast< long >(val2);
29887 {
29888 PyThreadState* __tstate = wxPyBeginAllowThreads();
29889 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29890 wxPyEndAllowThreads(__tstate);
29891 if (PyErr_Occurred()) SWIG_fail;
29892 }
29893 {
29894#if wxUSE_UNICODE
29895 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29896#else
29897 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29898#endif
29899 }
29900 return resultobj;
29901fail:
29902 return NULL;
29903}
29904
29905
29906SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29907 PyObject *resultobj = 0;
29908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29909 long arg2 ;
29910 wxString *arg3 = 0 ;
29911 void *argp1 = 0 ;
29912 int res1 = 0 ;
29913 long val2 ;
29914 int ecode2 = 0 ;
29915 bool temp3 = false ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 PyObject * obj2 = 0 ;
29919 char * kwnames[] = {
29920 (char *) "self",(char *) "item",(char *) "str", NULL
29921 };
29922
29923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29925 if (!SWIG_IsOK(res1)) {
29926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29927 }
29928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29929 ecode2 = SWIG_AsVal_long(obj1, &val2);
29930 if (!SWIG_IsOK(ecode2)) {
29931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29932 }
29933 arg2 = static_cast< long >(val2);
29934 {
29935 arg3 = wxString_in_helper(obj2);
29936 if (arg3 == NULL) SWIG_fail;
29937 temp3 = true;
29938 }
29939 {
29940 PyThreadState* __tstate = wxPyBeginAllowThreads();
29941 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29942 wxPyEndAllowThreads(__tstate);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 }
29945 resultobj = SWIG_Py_Void();
29946 {
29947 if (temp3)
29948 delete arg3;
29949 }
29950 return resultobj;
29951fail:
29952 {
29953 if (temp3)
29954 delete arg3;
29955 }
29956 return NULL;
29957}
29958
29959
29960SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29961 PyObject *resultobj = 0;
29962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29963 long arg2 ;
29964 long result;
29965 void *argp1 = 0 ;
29966 int res1 = 0 ;
29967 long val2 ;
29968 int ecode2 = 0 ;
29969 PyObject * obj0 = 0 ;
29970 PyObject * obj1 = 0 ;
29971 char * kwnames[] = {
29972 (char *) "self",(char *) "item", NULL
29973 };
29974
29975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29977 if (!SWIG_IsOK(res1)) {
29978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29979 }
29980 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29981 ecode2 = SWIG_AsVal_long(obj1, &val2);
29982 if (!SWIG_IsOK(ecode2)) {
29983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29984 }
29985 arg2 = static_cast< long >(val2);
29986 {
29987 PyThreadState* __tstate = wxPyBeginAllowThreads();
29988 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29989 wxPyEndAllowThreads(__tstate);
29990 if (PyErr_Occurred()) SWIG_fail;
29991 }
29992 resultobj = SWIG_From_long(static_cast< long >(result));
29993 return resultobj;
29994fail:
29995 return NULL;
29996}
29997
29998
29999SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30000 PyObject *resultobj = 0;
30001 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30002 long arg2 ;
30003 long arg3 ;
30004 bool result;
30005 void *argp1 = 0 ;
30006 int res1 = 0 ;
30007 long val2 ;
30008 int ecode2 = 0 ;
30009 long val3 ;
30010 int ecode3 = 0 ;
30011 PyObject * obj0 = 0 ;
30012 PyObject * obj1 = 0 ;
30013 PyObject * obj2 = 0 ;
30014 char * kwnames[] = {
30015 (char *) "self",(char *) "item",(char *) "data", NULL
30016 };
30017
30018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30020 if (!SWIG_IsOK(res1)) {
30021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30022 }
30023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30024 ecode2 = SWIG_AsVal_long(obj1, &val2);
30025 if (!SWIG_IsOK(ecode2)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30027 }
30028 arg2 = static_cast< long >(val2);
30029 ecode3 = SWIG_AsVal_long(obj2, &val3);
30030 if (!SWIG_IsOK(ecode3)) {
30031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30032 }
30033 arg3 = static_cast< long >(val3);
30034 {
30035 PyThreadState* __tstate = wxPyBeginAllowThreads();
30036 result = (bool)(arg1)->SetItemData(arg2,arg3);
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 {
30041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30042 }
30043 return resultobj;
30044fail:
30045 return NULL;
30046}
30047
30048
30049SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30050 PyObject *resultobj = 0;
30051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30052 long arg2 ;
30053 wxPoint result;
30054 void *argp1 = 0 ;
30055 int res1 = 0 ;
30056 long val2 ;
30057 int ecode2 = 0 ;
30058 PyObject * obj0 = 0 ;
30059 PyObject * obj1 = 0 ;
30060 char * kwnames[] = {
30061 (char *) "self",(char *) "item", NULL
30062 };
30063
30064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30066 if (!SWIG_IsOK(res1)) {
30067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30068 }
30069 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30070 ecode2 = SWIG_AsVal_long(obj1, &val2);
30071 if (!SWIG_IsOK(ecode2)) {
30072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30073 }
30074 arg2 = static_cast< long >(val2);
30075 {
30076 PyThreadState* __tstate = wxPyBeginAllowThreads();
30077 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30078 wxPyEndAllowThreads(__tstate);
30079 if (PyErr_Occurred()) SWIG_fail;
30080 }
30081 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30082 return resultobj;
30083fail:
30084 return NULL;
30085}
30086
30087
30088SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30089 PyObject *resultobj = 0;
30090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30091 long arg2 ;
30092 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30093 wxRect result;
30094 void *argp1 = 0 ;
30095 int res1 = 0 ;
30096 long val2 ;
30097 int ecode2 = 0 ;
30098 int val3 ;
30099 int ecode3 = 0 ;
30100 PyObject * obj0 = 0 ;
30101 PyObject * obj1 = 0 ;
30102 PyObject * obj2 = 0 ;
30103 char * kwnames[] = {
30104 (char *) "self",(char *) "item",(char *) "code", NULL
30105 };
30106
30107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30109 if (!SWIG_IsOK(res1)) {
30110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30111 }
30112 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30113 ecode2 = SWIG_AsVal_long(obj1, &val2);
30114 if (!SWIG_IsOK(ecode2)) {
30115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30116 }
30117 arg2 = static_cast< long >(val2);
30118 if (obj2) {
30119 ecode3 = SWIG_AsVal_int(obj2, &val3);
30120 if (!SWIG_IsOK(ecode3)) {
30121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30122 }
30123 arg3 = static_cast< int >(val3);
30124 }
30125 {
30126 PyThreadState* __tstate = wxPyBeginAllowThreads();
30127 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30128 wxPyEndAllowThreads(__tstate);
30129 if (PyErr_Occurred()) SWIG_fail;
30130 }
30131 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30132 return resultobj;
30133fail:
30134 return NULL;
30135}
30136
30137
30138SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30139 PyObject *resultobj = 0;
30140 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30141 long arg2 ;
30142 wxPoint *arg3 = 0 ;
30143 bool result;
30144 void *argp1 = 0 ;
30145 int res1 = 0 ;
30146 long val2 ;
30147 int ecode2 = 0 ;
30148 wxPoint temp3 ;
30149 PyObject * obj0 = 0 ;
30150 PyObject * obj1 = 0 ;
30151 PyObject * obj2 = 0 ;
30152 char * kwnames[] = {
30153 (char *) "self",(char *) "item",(char *) "pos", NULL
30154 };
30155
30156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30158 if (!SWIG_IsOK(res1)) {
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30160 }
30161 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30162 ecode2 = SWIG_AsVal_long(obj1, &val2);
30163 if (!SWIG_IsOK(ecode2)) {
30164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30165 }
30166 arg2 = static_cast< long >(val2);
30167 {
30168 arg3 = &temp3;
30169 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30170 }
30171 {
30172 PyThreadState* __tstate = wxPyBeginAllowThreads();
30173 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30174 wxPyEndAllowThreads(__tstate);
30175 if (PyErr_Occurred()) SWIG_fail;
30176 }
30177 {
30178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30179 }
30180 return resultobj;
30181fail:
30182 return NULL;
7e08d4ef
RD
30183}
30184
30185
554f62e9
RD
30186SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30187 PyObject *resultobj = 0;
30188 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30189 int result;
30190 void *argp1 = 0 ;
30191 int res1 = 0 ;
30192 PyObject *swig_obj[1] ;
30193
30194 if (!args) SWIG_fail;
30195 swig_obj[0] = args;
30196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30197 if (!SWIG_IsOK(res1)) {
30198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30199 }
30200 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30201 {
30202 PyThreadState* __tstate = wxPyBeginAllowThreads();
30203 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30204 wxPyEndAllowThreads(__tstate);
30205 if (PyErr_Occurred()) SWIG_fail;
30206 }
30207 resultobj = SWIG_From_int(static_cast< int >(result));
30208 return resultobj;
30209fail:
30210 return NULL;
7e08d4ef
RD
30211}
30212
30213
554f62e9
RD
30214SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30215 PyObject *resultobj = 0;
30216 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30217 int result;
30218 void *argp1 = 0 ;
30219 int res1 = 0 ;
30220 PyObject *swig_obj[1] ;
30221
30222 if (!args) SWIG_fail;
30223 swig_obj[0] = args;
30224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30225 if (!SWIG_IsOK(res1)) {
30226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30227 }
30228 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30229 {
30230 PyThreadState* __tstate = wxPyBeginAllowThreads();
30231 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30232 wxPyEndAllowThreads(__tstate);
30233 if (PyErr_Occurred()) SWIG_fail;
30234 }
30235 resultobj = SWIG_From_int(static_cast< int >(result));
30236 return resultobj;
30237fail:
30238 return NULL;
7e08d4ef
RD
30239}
30240
30241
554f62e9
RD
30242SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30243 PyObject *resultobj = 0;
30244 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30245 wxSize result;
30246 void *argp1 = 0 ;
30247 int res1 = 0 ;
30248 PyObject *swig_obj[1] ;
30249
30250 if (!args) SWIG_fail;
30251 swig_obj[0] = args;
30252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30253 if (!SWIG_IsOK(res1)) {
30254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30255 }
30256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30257 {
30258 PyThreadState* __tstate = wxPyBeginAllowThreads();
30259 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30260 wxPyEndAllowThreads(__tstate);
30261 if (PyErr_Occurred()) SWIG_fail;
30262 }
30263 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30264 return resultobj;
30265fail:
30266 return NULL;
7e08d4ef
RD
30267}
30268
30269
554f62e9
RD
30270SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30271 PyObject *resultobj = 0;
30272 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30273 int result;
30274 void *argp1 = 0 ;
30275 int res1 = 0 ;
30276 PyObject *swig_obj[1] ;
30277
30278 if (!args) SWIG_fail;
30279 swig_obj[0] = args;
30280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30281 if (!SWIG_IsOK(res1)) {
30282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30283 }
30284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30285 {
30286 PyThreadState* __tstate = wxPyBeginAllowThreads();
30287 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30288 wxPyEndAllowThreads(__tstate);
30289 if (PyErr_Occurred()) SWIG_fail;
30290 }
30291 resultobj = SWIG_From_int(static_cast< int >(result));
30292 return resultobj;
30293fail:
30294 return NULL;
7e08d4ef
RD
30295}
30296
30297
554f62e9
RD
30298SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30299 PyObject *resultobj = 0;
30300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30301 wxColour result;
30302 void *argp1 = 0 ;
30303 int res1 = 0 ;
30304 PyObject *swig_obj[1] ;
30305
30306 if (!args) SWIG_fail;
30307 swig_obj[0] = args;
30308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30311 }
30312 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30313 {
30314 PyThreadState* __tstate = wxPyBeginAllowThreads();
30315 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30316 wxPyEndAllowThreads(__tstate);
30317 if (PyErr_Occurred()) SWIG_fail;
30318 }
30319 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30320 return resultobj;
30321fail:
30322 return NULL;
30323}
30324
30325
30326SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30327 PyObject *resultobj = 0;
30328 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30329 wxColour *arg2 = 0 ;
30330 void *argp1 = 0 ;
30331 int res1 = 0 ;
30332 wxColour temp2 ;
30333 PyObject * obj0 = 0 ;
30334 PyObject * obj1 = 0 ;
30335 char * kwnames[] = {
30336 (char *) "self",(char *) "col", NULL
30337 };
30338
30339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30341 if (!SWIG_IsOK(res1)) {
30342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30343 }
30344 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30345 {
30346 arg2 = &temp2;
30347 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30348 }
30349 {
30350 PyThreadState* __tstate = wxPyBeginAllowThreads();
30351 (arg1)->SetTextColour((wxColour const &)*arg2);
30352 wxPyEndAllowThreads(__tstate);
30353 if (PyErr_Occurred()) SWIG_fail;
30354 }
30355 resultobj = SWIG_Py_Void();
30356 return resultobj;
30357fail:
30358 return NULL;
7e08d4ef
RD
30359}
30360
30361
554f62e9
RD
30362SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30363 PyObject *resultobj = 0;
30364 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30365 long result;
30366 void *argp1 = 0 ;
30367 int res1 = 0 ;
30368 PyObject *swig_obj[1] ;
30369
30370 if (!args) SWIG_fail;
30371 swig_obj[0] = args;
30372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30373 if (!SWIG_IsOK(res1)) {
30374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30375 }
30376 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30377 {
30378 PyThreadState* __tstate = wxPyBeginAllowThreads();
30379 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30380 wxPyEndAllowThreads(__tstate);
30381 if (PyErr_Occurred()) SWIG_fail;
30382 }
30383 resultobj = SWIG_From_long(static_cast< long >(result));
30384 return resultobj;
30385fail:
30386 return NULL;
30387}
30388
30389
30390SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30391 PyObject *resultobj = 0;
30392 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30393 long arg2 ;
30394 bool arg3 = (bool) true ;
30395 void *argp1 = 0 ;
30396 int res1 = 0 ;
30397 long val2 ;
30398 int ecode2 = 0 ;
30399 bool val3 ;
30400 int ecode3 = 0 ;
30401 PyObject * obj0 = 0 ;
30402 PyObject * obj1 = 0 ;
30403 PyObject * obj2 = 0 ;
30404 char * kwnames[] = {
30405 (char *) "self",(char *) "style",(char *) "add", NULL
30406 };
30407
30408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30410 if (!SWIG_IsOK(res1)) {
30411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30412 }
30413 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30414 ecode2 = SWIG_AsVal_long(obj1, &val2);
30415 if (!SWIG_IsOK(ecode2)) {
30416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30417 }
30418 arg2 = static_cast< long >(val2);
30419 if (obj2) {
30420 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30421 if (!SWIG_IsOK(ecode3)) {
30422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30423 }
30424 arg3 = static_cast< bool >(val3);
30425 }
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 (arg1)->SetSingleStyle(arg2,arg3);
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 resultobj = SWIG_Py_Void();
30433 return resultobj;
30434fail:
30435 return NULL;
30436}
30437
30438
30439SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30440 PyObject *resultobj = 0;
30441 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30442 long arg2 ;
30443 int arg3 = (int) wxLIST_NEXT_ALL ;
30444 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30445 long result;
30446 void *argp1 = 0 ;
30447 int res1 = 0 ;
30448 long val2 ;
30449 int ecode2 = 0 ;
30450 int val3 ;
30451 int ecode3 = 0 ;
30452 int val4 ;
30453 int ecode4 = 0 ;
30454 PyObject * obj0 = 0 ;
30455 PyObject * obj1 = 0 ;
30456 PyObject * obj2 = 0 ;
30457 PyObject * obj3 = 0 ;
30458 char * kwnames[] = {
30459 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30460 };
30461
30462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30464 if (!SWIG_IsOK(res1)) {
30465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30466 }
30467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30468 ecode2 = SWIG_AsVal_long(obj1, &val2);
30469 if (!SWIG_IsOK(ecode2)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30471 }
30472 arg2 = static_cast< long >(val2);
30473 if (obj2) {
30474 ecode3 = SWIG_AsVal_int(obj2, &val3);
30475 if (!SWIG_IsOK(ecode3)) {
30476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30477 }
30478 arg3 = static_cast< int >(val3);
30479 }
30480 if (obj3) {
30481 ecode4 = SWIG_AsVal_int(obj3, &val4);
30482 if (!SWIG_IsOK(ecode4)) {
30483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30484 }
30485 arg4 = static_cast< int >(val4);
30486 }
30487 {
30488 PyThreadState* __tstate = wxPyBeginAllowThreads();
30489 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30490 wxPyEndAllowThreads(__tstate);
30491 if (PyErr_Occurred()) SWIG_fail;
30492 }
30493 resultobj = SWIG_From_long(static_cast< long >(result));
30494 return resultobj;
30495fail:
30496 return NULL;
30497}
30498
30499
30500SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30501 PyObject *resultobj = 0;
30502 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30503 int arg2 ;
30504 wxImageList *result = 0 ;
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 int val2 ;
30508 int ecode2 = 0 ;
30509 PyObject * obj0 = 0 ;
30510 PyObject * obj1 = 0 ;
30511 char * kwnames[] = {
30512 (char *) "self",(char *) "which", NULL
30513 };
30514
30515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30517 if (!SWIG_IsOK(res1)) {
30518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30519 }
30520 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30521 ecode2 = SWIG_AsVal_int(obj1, &val2);
30522 if (!SWIG_IsOK(ecode2)) {
30523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30524 }
30525 arg2 = static_cast< int >(val2);
30526 {
30527 PyThreadState* __tstate = wxPyBeginAllowThreads();
30528 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30529 wxPyEndAllowThreads(__tstate);
30530 if (PyErr_Occurred()) SWIG_fail;
30531 }
3ecece7e
RD
30532 {
30533 resultobj = wxPyMake_wxObject(result, (bool)0);
30534 }
554f62e9
RD
30535 return resultobj;
30536fail:
30537 return NULL;
30538}
30539
30540
30541SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30542 PyObject *resultobj = 0;
30543 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30544 wxImageList *arg2 = (wxImageList *) 0 ;
30545 int arg3 ;
30546 void *argp1 = 0 ;
30547 int res1 = 0 ;
30548 void *argp2 = 0 ;
30549 int res2 = 0 ;
30550 int val3 ;
30551 int ecode3 = 0 ;
30552 PyObject * obj0 = 0 ;
30553 PyObject * obj1 = 0 ;
30554 PyObject * obj2 = 0 ;
30555 char * kwnames[] = {
30556 (char *) "self",(char *) "imageList",(char *) "which", NULL
30557 };
30558
30559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30561 if (!SWIG_IsOK(res1)) {
30562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30563 }
30564 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30566 if (!SWIG_IsOK(res2)) {
30567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30568 }
30569 arg2 = reinterpret_cast< wxImageList * >(argp2);
30570 ecode3 = SWIG_AsVal_int(obj2, &val3);
30571 if (!SWIG_IsOK(ecode3)) {
30572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30573 }
30574 arg3 = static_cast< int >(val3);
30575 {
30576 PyThreadState* __tstate = wxPyBeginAllowThreads();
30577 (arg1)->SetImageList(arg2,arg3);
30578 wxPyEndAllowThreads(__tstate);
30579 if (PyErr_Occurred()) SWIG_fail;
30580 }
30581 resultobj = SWIG_Py_Void();
30582 return resultobj;
30583fail:
30584 return NULL;
30585}
30586
30587
30588SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30589 PyObject *resultobj = 0;
30590 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30591 wxImageList *arg2 = (wxImageList *) 0 ;
30592 int arg3 ;
30593 void *argp1 = 0 ;
30594 int res1 = 0 ;
30595 int res2 = 0 ;
30596 int val3 ;
30597 int ecode3 = 0 ;
30598 PyObject * obj0 = 0 ;
30599 PyObject * obj1 = 0 ;
30600 PyObject * obj2 = 0 ;
30601 char * kwnames[] = {
30602 (char *) "self",(char *) "imageList",(char *) "which", NULL
30603 };
30604
30605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30607 if (!SWIG_IsOK(res1)) {
30608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30609 }
30610 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30611 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30612 if (!SWIG_IsOK(res2)) {
30613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30614 }
30615 ecode3 = SWIG_AsVal_int(obj2, &val3);
30616 if (!SWIG_IsOK(ecode3)) {
30617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30618 }
30619 arg3 = static_cast< int >(val3);
30620 {
30621 PyThreadState* __tstate = wxPyBeginAllowThreads();
30622 (arg1)->AssignImageList(arg2,arg3);
30623 wxPyEndAllowThreads(__tstate);
30624 if (PyErr_Occurred()) SWIG_fail;
30625 }
30626 resultobj = SWIG_Py_Void();
30627 return resultobj;
30628fail:
30629 return NULL;
7e08d4ef
RD
30630}
30631
30632
554f62e9
RD
30633SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30634 PyObject *resultobj = 0;
30635 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30636 bool result;
30637 void *argp1 = 0 ;
30638 int res1 = 0 ;
30639 PyObject *swig_obj[1] ;
30640
30641 if (!args) SWIG_fail;
30642 swig_obj[0] = args;
30643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30644 if (!SWIG_IsOK(res1)) {
30645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30646 }
30647 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30648 {
30649 PyThreadState* __tstate = wxPyBeginAllowThreads();
30650 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30651 wxPyEndAllowThreads(__tstate);
30652 if (PyErr_Occurred()) SWIG_fail;
30653 }
30654 {
30655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30656 }
30657 return resultobj;
30658fail:
30659 return NULL;
7e08d4ef
RD
30660}
30661
30662
554f62e9
RD
30663SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30664 PyObject *resultobj = 0;
30665 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30666 bool result;
30667 void *argp1 = 0 ;
30668 int res1 = 0 ;
30669 PyObject *swig_obj[1] ;
30670
30671 if (!args) SWIG_fail;
30672 swig_obj[0] = args;
30673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30674 if (!SWIG_IsOK(res1)) {
30675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30676 }
30677 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30678 {
30679 PyThreadState* __tstate = wxPyBeginAllowThreads();
30680 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30681 wxPyEndAllowThreads(__tstate);
30682 if (PyErr_Occurred()) SWIG_fail;
30683 }
30684 {
30685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30686 }
30687 return resultobj;
30688fail:
30689 return NULL;
30690}
30691
30692
30693SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30694 PyObject *resultobj = 0;
30695 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30696 long arg2 ;
30697 void *argp1 = 0 ;
30698 int res1 = 0 ;
30699 long val2 ;
30700 int ecode2 = 0 ;
30701 PyObject * obj0 = 0 ;
30702 PyObject * obj1 = 0 ;
30703 char * kwnames[] = {
30704 (char *) "self",(char *) "item", NULL
30705 };
30706
30707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30709 if (!SWIG_IsOK(res1)) {
30710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30711 }
30712 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30713 ecode2 = SWIG_AsVal_long(obj1, &val2);
30714 if (!SWIG_IsOK(ecode2)) {
30715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30716 }
30717 arg2 = static_cast< long >(val2);
30718 {
30719 PyThreadState* __tstate = wxPyBeginAllowThreads();
30720 (arg1)->RefreshItem(arg2);
30721 wxPyEndAllowThreads(__tstate);
30722 if (PyErr_Occurred()) SWIG_fail;
30723 }
30724 resultobj = SWIG_Py_Void();
30725 return resultobj;
30726fail:
30727 return NULL;
30728}
30729
30730
30731SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30732 PyObject *resultobj = 0;
30733 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30734 long arg2 ;
30735 long arg3 ;
30736 void *argp1 = 0 ;
30737 int res1 = 0 ;
30738 long val2 ;
30739 int ecode2 = 0 ;
30740 long val3 ;
30741 int ecode3 = 0 ;
30742 PyObject * obj0 = 0 ;
30743 PyObject * obj1 = 0 ;
30744 PyObject * obj2 = 0 ;
30745 char * kwnames[] = {
30746 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30747 };
30748
30749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30751 if (!SWIG_IsOK(res1)) {
30752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30753 }
30754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30755 ecode2 = SWIG_AsVal_long(obj1, &val2);
30756 if (!SWIG_IsOK(ecode2)) {
30757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30758 }
30759 arg2 = static_cast< long >(val2);
30760 ecode3 = SWIG_AsVal_long(obj2, &val3);
30761 if (!SWIG_IsOK(ecode3)) {
30762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30763 }
30764 arg3 = static_cast< long >(val3);
30765 {
30766 PyThreadState* __tstate = wxPyBeginAllowThreads();
30767 (arg1)->RefreshItems(arg2,arg3);
30768 wxPyEndAllowThreads(__tstate);
30769 if (PyErr_Occurred()) SWIG_fail;
30770 }
30771 resultobj = SWIG_Py_Void();
30772 return resultobj;
30773fail:
30774 return NULL;
30775}
30776
30777
30778SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30779 PyObject *resultobj = 0;
30780 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30781 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30782 bool result;
30783 void *argp1 = 0 ;
30784 int res1 = 0 ;
30785 int val2 ;
30786 int ecode2 = 0 ;
30787 PyObject * obj0 = 0 ;
30788 PyObject * obj1 = 0 ;
30789 char * kwnames[] = {
30790 (char *) "self",(char *) "flag", NULL
30791 };
30792
30793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30795 if (!SWIG_IsOK(res1)) {
30796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30797 }
30798 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30799 if (obj1) {
30800 ecode2 = SWIG_AsVal_int(obj1, &val2);
30801 if (!SWIG_IsOK(ecode2)) {
30802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30803 }
30804 arg2 = static_cast< int >(val2);
30805 }
30806 {
30807 PyThreadState* __tstate = wxPyBeginAllowThreads();
30808 result = (bool)(arg1)->Arrange(arg2);
30809 wxPyEndAllowThreads(__tstate);
30810 if (PyErr_Occurred()) SWIG_fail;
30811 }
30812 {
30813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30814 }
30815 return resultobj;
30816fail:
30817 return NULL;
30818}
30819
30820
30821SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30822 PyObject *resultobj = 0;
30823 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30824 long arg2 ;
30825 bool result;
30826 void *argp1 = 0 ;
30827 int res1 = 0 ;
30828 long val2 ;
30829 int ecode2 = 0 ;
30830 PyObject * obj0 = 0 ;
30831 PyObject * obj1 = 0 ;
30832 char * kwnames[] = {
30833 (char *) "self",(char *) "item", NULL
30834 };
30835
30836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30838 if (!SWIG_IsOK(res1)) {
30839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30840 }
30841 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30842 ecode2 = SWIG_AsVal_long(obj1, &val2);
30843 if (!SWIG_IsOK(ecode2)) {
30844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30845 }
30846 arg2 = static_cast< long >(val2);
30847 {
30848 PyThreadState* __tstate = wxPyBeginAllowThreads();
30849 result = (bool)(arg1)->DeleteItem(arg2);
30850 wxPyEndAllowThreads(__tstate);
30851 if (PyErr_Occurred()) SWIG_fail;
30852 }
30853 {
30854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30855 }
30856 return resultobj;
30857fail:
30858 return NULL;
7e08d4ef
RD
30859}
30860
30861
554f62e9
RD
30862SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30863 PyObject *resultobj = 0;
30864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30865 bool result;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 PyObject *swig_obj[1] ;
30869
30870 if (!args) SWIG_fail;
30871 swig_obj[0] = args;
30872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30873 if (!SWIG_IsOK(res1)) {
30874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30875 }
30876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30877 {
30878 PyThreadState* __tstate = wxPyBeginAllowThreads();
30879 result = (bool)(arg1)->DeleteAllItems();
30880 wxPyEndAllowThreads(__tstate);
30881 if (PyErr_Occurred()) SWIG_fail;
30882 }
30883 {
30884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30885 }
30886 return resultobj;
30887fail:
30888 return NULL;
30889}
30890
30891
30892SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30893 PyObject *resultobj = 0;
30894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30895 int arg2 ;
30896 bool result;
30897 void *argp1 = 0 ;
30898 int res1 = 0 ;
30899 int val2 ;
30900 int ecode2 = 0 ;
30901 PyObject * obj0 = 0 ;
30902 PyObject * obj1 = 0 ;
30903 char * kwnames[] = {
30904 (char *) "self",(char *) "col", NULL
30905 };
30906
30907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30909 if (!SWIG_IsOK(res1)) {
30910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30911 }
30912 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30913 ecode2 = SWIG_AsVal_int(obj1, &val2);
30914 if (!SWIG_IsOK(ecode2)) {
30915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30916 }
30917 arg2 = static_cast< int >(val2);
30918 {
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 result = (bool)(arg1)->DeleteColumn(arg2);
30921 wxPyEndAllowThreads(__tstate);
30922 if (PyErr_Occurred()) SWIG_fail;
30923 }
30924 {
30925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30926 }
30927 return resultobj;
30928fail:
30929 return NULL;
7e08d4ef
RD
30930}
30931
30932
554f62e9
RD
30933SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30934 PyObject *resultobj = 0;
30935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30936 bool result;
30937 void *argp1 = 0 ;
30938 int res1 = 0 ;
30939 PyObject *swig_obj[1] ;
30940
30941 if (!args) SWIG_fail;
30942 swig_obj[0] = args;
30943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30944 if (!SWIG_IsOK(res1)) {
30945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30946 }
30947 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30948 {
30949 PyThreadState* __tstate = wxPyBeginAllowThreads();
30950 result = (bool)(arg1)->DeleteAllColumns();
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 {
30955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30956 }
30957 return resultobj;
30958fail:
30959 return NULL;
7e08d4ef
RD
30960}
30961
30962
554f62e9
RD
30963SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30964 PyObject *resultobj = 0;
30965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30966 void *argp1 = 0 ;
30967 int res1 = 0 ;
30968 PyObject *swig_obj[1] ;
30969
30970 if (!args) SWIG_fail;
30971 swig_obj[0] = args;
30972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30973 if (!SWIG_IsOK(res1)) {
30974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30975 }
30976 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30977 {
30978 PyThreadState* __tstate = wxPyBeginAllowThreads();
30979 (arg1)->ClearAll();
30980 wxPyEndAllowThreads(__tstate);
30981 if (PyErr_Occurred()) SWIG_fail;
30982 }
30983 resultobj = SWIG_Py_Void();
30984 return resultobj;
30985fail:
30986 return NULL;
30987}
30988
30989
30990SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30991 PyObject *resultobj = 0;
30992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30993 long arg2 ;
30994 wxTextCtrl *result = 0 ;
30995 void *argp1 = 0 ;
30996 int res1 = 0 ;
30997 long val2 ;
30998 int ecode2 = 0 ;
30999 PyObject * obj0 = 0 ;
31000 PyObject * obj1 = 0 ;
31001 char * kwnames[] = {
31002 (char *) "self",(char *) "item", NULL
31003 };
31004
31005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31009 }
31010 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31011 ecode2 = SWIG_AsVal_long(obj1, &val2);
31012 if (!SWIG_IsOK(ecode2)) {
31013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31014 }
31015 arg2 = static_cast< long >(val2);
31016 {
31017 PyThreadState* __tstate = wxPyBeginAllowThreads();
31018 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31019 wxPyEndAllowThreads(__tstate);
31020 if (PyErr_Occurred()) SWIG_fail;
31021 }
31022 {
31023 resultobj = wxPyMake_wxObject(result, 0);
31024 }
31025 return resultobj;
31026fail:
31027 return NULL;
31028}
31029
31030
31031SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31032 PyObject *resultobj = 0;
31033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31034 bool arg2 ;
31035 bool result;
31036 void *argp1 = 0 ;
31037 int res1 = 0 ;
31038 bool val2 ;
31039 int ecode2 = 0 ;
31040 PyObject * obj0 = 0 ;
31041 PyObject * obj1 = 0 ;
31042 char * kwnames[] = {
31043 (char *) "self",(char *) "cancel", NULL
31044 };
31045
31046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31048 if (!SWIG_IsOK(res1)) {
31049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31050 }
31051 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31052 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31053 if (!SWIG_IsOK(ecode2)) {
31054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31055 }
31056 arg2 = static_cast< bool >(val2);
31057 {
31058 PyThreadState* __tstate = wxPyBeginAllowThreads();
31059 result = (bool)(arg1)->EndEditLabel(arg2);
31060 wxPyEndAllowThreads(__tstate);
31061 if (PyErr_Occurred()) SWIG_fail;
31062 }
31063 {
31064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31065 }
31066 return resultobj;
31067fail:
31068 return NULL;
31069}
31070
31071
31072SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31073 PyObject *resultobj = 0;
31074 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31075 long arg2 ;
31076 bool result;
31077 void *argp1 = 0 ;
31078 int res1 = 0 ;
31079 long val2 ;
31080 int ecode2 = 0 ;
31081 PyObject * obj0 = 0 ;
31082 PyObject * obj1 = 0 ;
31083 char * kwnames[] = {
31084 (char *) "self",(char *) "item", NULL
31085 };
31086
31087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31089 if (!SWIG_IsOK(res1)) {
31090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31091 }
31092 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31093 ecode2 = SWIG_AsVal_long(obj1, &val2);
31094 if (!SWIG_IsOK(ecode2)) {
31095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31096 }
31097 arg2 = static_cast< long >(val2);
31098 {
31099 PyThreadState* __tstate = wxPyBeginAllowThreads();
31100 result = (bool)(arg1)->EnsureVisible(arg2);
31101 wxPyEndAllowThreads(__tstate);
31102 if (PyErr_Occurred()) SWIG_fail;
31103 }
31104 {
31105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31106 }
31107 return resultobj;
31108fail:
31109 return NULL;
31110}
31111
31112
31113SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31114 PyObject *resultobj = 0;
31115 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31116 long arg2 ;
31117 wxString *arg3 = 0 ;
31118 bool arg4 = (bool) false ;
31119 long result;
31120 void *argp1 = 0 ;
31121 int res1 = 0 ;
31122 long val2 ;
31123 int ecode2 = 0 ;
31124 bool temp3 = false ;
31125 bool val4 ;
31126 int ecode4 = 0 ;
31127 PyObject * obj0 = 0 ;
31128 PyObject * obj1 = 0 ;
31129 PyObject * obj2 = 0 ;
31130 PyObject * obj3 = 0 ;
31131 char * kwnames[] = {
31132 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31133 };
31134
31135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31137 if (!SWIG_IsOK(res1)) {
31138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31139 }
31140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31141 ecode2 = SWIG_AsVal_long(obj1, &val2);
31142 if (!SWIG_IsOK(ecode2)) {
31143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31144 }
31145 arg2 = static_cast< long >(val2);
31146 {
31147 arg3 = wxString_in_helper(obj2);
31148 if (arg3 == NULL) SWIG_fail;
31149 temp3 = true;
31150 }
31151 if (obj3) {
31152 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31153 if (!SWIG_IsOK(ecode4)) {
31154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31155 }
31156 arg4 = static_cast< bool >(val4);
31157 }
31158 {
31159 PyThreadState* __tstate = wxPyBeginAllowThreads();
31160 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31161 wxPyEndAllowThreads(__tstate);
31162 if (PyErr_Occurred()) SWIG_fail;
31163 }
31164 resultobj = SWIG_From_long(static_cast< long >(result));
31165 {
31166 if (temp3)
31167 delete arg3;
31168 }
31169 return resultobj;
31170fail:
31171 {
31172 if (temp3)
31173 delete arg3;
31174 }
31175 return NULL;
31176}
31177
31178
31179SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31180 PyObject *resultobj = 0;
31181 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31182 long arg2 ;
31183 long arg3 ;
31184 long result;
31185 void *argp1 = 0 ;
31186 int res1 = 0 ;
31187 long val2 ;
31188 int ecode2 = 0 ;
31189 long val3 ;
31190 int ecode3 = 0 ;
31191 PyObject * obj0 = 0 ;
31192 PyObject * obj1 = 0 ;
31193 PyObject * obj2 = 0 ;
31194 char * kwnames[] = {
31195 (char *) "self",(char *) "start",(char *) "data", NULL
31196 };
31197
31198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31200 if (!SWIG_IsOK(res1)) {
31201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31202 }
31203 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31204 ecode2 = SWIG_AsVal_long(obj1, &val2);
31205 if (!SWIG_IsOK(ecode2)) {
31206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31207 }
31208 arg2 = static_cast< long >(val2);
31209 ecode3 = SWIG_AsVal_long(obj2, &val3);
31210 if (!SWIG_IsOK(ecode3)) {
31211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31212 }
31213 arg3 = static_cast< long >(val3);
31214 {
31215 PyThreadState* __tstate = wxPyBeginAllowThreads();
31216 result = (long)(arg1)->FindItem(arg2,arg3);
31217 wxPyEndAllowThreads(__tstate);
31218 if (PyErr_Occurred()) SWIG_fail;
31219 }
31220 resultobj = SWIG_From_long(static_cast< long >(result));
31221 return resultobj;
31222fail:
31223 return NULL;
31224}
31225
31226
31227SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31228 PyObject *resultobj = 0;
31229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31230 long arg2 ;
31231 wxPoint *arg3 = 0 ;
31232 int arg4 ;
31233 long result;
31234 void *argp1 = 0 ;
31235 int res1 = 0 ;
31236 long val2 ;
31237 int ecode2 = 0 ;
31238 wxPoint temp3 ;
31239 int val4 ;
31240 int ecode4 = 0 ;
31241 PyObject * obj0 = 0 ;
31242 PyObject * obj1 = 0 ;
31243 PyObject * obj2 = 0 ;
31244 PyObject * obj3 = 0 ;
31245 char * kwnames[] = {
31246 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31247 };
31248
31249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31251 if (!SWIG_IsOK(res1)) {
31252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31253 }
31254 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31255 ecode2 = SWIG_AsVal_long(obj1, &val2);
31256 if (!SWIG_IsOK(ecode2)) {
31257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31258 }
31259 arg2 = static_cast< long >(val2);
31260 {
31261 arg3 = &temp3;
31262 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31263 }
31264 ecode4 = SWIG_AsVal_int(obj3, &val4);
31265 if (!SWIG_IsOK(ecode4)) {
31266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31267 }
31268 arg4 = static_cast< int >(val4);
31269 {
31270 PyThreadState* __tstate = wxPyBeginAllowThreads();
31271 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 resultobj = SWIG_From_long(static_cast< long >(result));
31276 return resultobj;
31277fail:
31278 return NULL;
31279}
31280
31281
31282SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31283 PyObject *resultobj = 0;
31284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31285 wxPoint *arg2 = 0 ;
31286 int *arg3 = 0 ;
31287 long result;
31288 void *argp1 = 0 ;
31289 int res1 = 0 ;
31290 wxPoint temp2 ;
31291 int temp3 ;
31292 int res3 = SWIG_TMPOBJ ;
31293 PyObject * obj0 = 0 ;
31294 PyObject * obj1 = 0 ;
31295 char * kwnames[] = {
31296 (char *) "self",(char *) "point", NULL
31297 };
31298
31299 arg3 = &temp3;
31300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31302 if (!SWIG_IsOK(res1)) {
31303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31304 }
31305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31306 {
31307 arg2 = &temp2;
31308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31309 }
31310 {
31311 PyThreadState* __tstate = wxPyBeginAllowThreads();
31312 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31313 wxPyEndAllowThreads(__tstate);
31314 if (PyErr_Occurred()) SWIG_fail;
31315 }
31316 resultobj = SWIG_From_long(static_cast< long >(result));
31317 if (SWIG_IsTmpObj(res3)) {
31318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31319 } else {
31320 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31322 }
31323 return resultobj;
31324fail:
31325 return NULL;
31326}
31327
31328
704eda0c
RD
31329SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31330 PyObject *resultobj = 0;
31331 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31332 wxPoint *arg2 = 0 ;
31333 int *arg3 = 0 ;
31334 long *arg4 = (long *) 0 ;
31335 long result;
31336 void *argp1 = 0 ;
31337 int res1 = 0 ;
31338 wxPoint temp2 ;
31339 int temp3 ;
31340 int res3 = SWIG_TMPOBJ ;
31341 long temp4 ;
31342 int res4 = SWIG_TMPOBJ ;
31343 PyObject * obj0 = 0 ;
31344 PyObject * obj1 = 0 ;
31345 char * kwnames[] = {
31346 (char *) "self",(char *) "point", NULL
31347 };
31348
31349 arg3 = &temp3;
31350 arg4 = &temp4;
31351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31353 if (!SWIG_IsOK(res1)) {
31354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31355 }
31356 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31357 {
31358 arg2 = &temp2;
31359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31360 }
31361 {
31362 PyThreadState* __tstate = wxPyBeginAllowThreads();
31363 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31364 wxPyEndAllowThreads(__tstate);
31365 if (PyErr_Occurred()) SWIG_fail;
31366 }
31367 resultobj = SWIG_From_long(static_cast< long >(result));
31368 if (SWIG_IsTmpObj(res3)) {
31369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31370 } else {
31371 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31373 }
31374 if (SWIG_IsTmpObj(res4)) {
31375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31376 } else {
31377 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31379 }
31380 return resultobj;
31381fail:
31382 return NULL;
31383}
31384
31385
554f62e9
RD
31386SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31387 PyObject *resultobj = 0;
31388 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31389 wxListItem *arg2 = 0 ;
31390 long result;
31391 void *argp1 = 0 ;
31392 int res1 = 0 ;
31393 void *argp2 = 0 ;
31394 int res2 = 0 ;
31395 PyObject * obj0 = 0 ;
31396 PyObject * obj1 = 0 ;
31397 char * kwnames[] = {
31398 (char *) "self",(char *) "info", NULL
31399 };
31400
31401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31405 }
31406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31408 if (!SWIG_IsOK(res2)) {
31409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31410 }
31411 if (!argp2) {
31412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31413 }
31414 arg2 = reinterpret_cast< wxListItem * >(argp2);
31415 {
31416 PyThreadState* __tstate = wxPyBeginAllowThreads();
31417 result = (long)(arg1)->InsertItem(*arg2);
31418 wxPyEndAllowThreads(__tstate);
31419 if (PyErr_Occurred()) SWIG_fail;
31420 }
31421 resultobj = SWIG_From_long(static_cast< long >(result));
31422 return resultobj;
31423fail:
31424 return NULL;
31425}
31426
31427
31428SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31429 PyObject *resultobj = 0;
31430 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31431 long arg2 ;
31432 wxString *arg3 = 0 ;
31433 int arg4 = (int) -1 ;
31434 long result;
31435 void *argp1 = 0 ;
31436 int res1 = 0 ;
31437 long val2 ;
31438 int ecode2 = 0 ;
31439 bool temp3 = false ;
31440 int val4 ;
31441 int ecode4 = 0 ;
31442 PyObject * obj0 = 0 ;
31443 PyObject * obj1 = 0 ;
31444 PyObject * obj2 = 0 ;
31445 PyObject * obj3 = 0 ;
31446 char * kwnames[] = {
31447 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31448 };
31449
31450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31452 if (!SWIG_IsOK(res1)) {
31453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31454 }
31455 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31456 ecode2 = SWIG_AsVal_long(obj1, &val2);
31457 if (!SWIG_IsOK(ecode2)) {
31458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31459 }
31460 arg2 = static_cast< long >(val2);
31461 {
31462 arg3 = wxString_in_helper(obj2);
31463 if (arg3 == NULL) SWIG_fail;
31464 temp3 = true;
31465 }
31466 if (obj3) {
31467 ecode4 = SWIG_AsVal_int(obj3, &val4);
31468 if (!SWIG_IsOK(ecode4)) {
31469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31470 }
31471 arg4 = static_cast< int >(val4);
31472 }
31473 {
31474 PyThreadState* __tstate = wxPyBeginAllowThreads();
31475 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31476 wxPyEndAllowThreads(__tstate);
31477 if (PyErr_Occurred()) SWIG_fail;
31478 }
31479 resultobj = SWIG_From_long(static_cast< long >(result));
31480 {
31481 if (temp3)
31482 delete arg3;
31483 }
31484 return resultobj;
31485fail:
31486 {
31487 if (temp3)
31488 delete arg3;
31489 }
31490 return NULL;
31491}
31492
31493
31494SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31495 PyObject *resultobj = 0;
31496 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31497 long arg2 ;
31498 int arg3 ;
31499 long result;
31500 void *argp1 = 0 ;
31501 int res1 = 0 ;
31502 long val2 ;
31503 int ecode2 = 0 ;
31504 int val3 ;
31505 int ecode3 = 0 ;
31506 PyObject * obj0 = 0 ;
31507 PyObject * obj1 = 0 ;
31508 PyObject * obj2 = 0 ;
31509 char * kwnames[] = {
31510 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31511 };
31512
31513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31515 if (!SWIG_IsOK(res1)) {
31516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31517 }
31518 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31519 ecode2 = SWIG_AsVal_long(obj1, &val2);
31520 if (!SWIG_IsOK(ecode2)) {
31521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31522 }
31523 arg2 = static_cast< long >(val2);
31524 ecode3 = SWIG_AsVal_int(obj2, &val3);
31525 if (!SWIG_IsOK(ecode3)) {
31526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31527 }
31528 arg3 = static_cast< int >(val3);
31529 {
31530 PyThreadState* __tstate = wxPyBeginAllowThreads();
31531 result = (long)(arg1)->InsertItem(arg2,arg3);
31532 wxPyEndAllowThreads(__tstate);
31533 if (PyErr_Occurred()) SWIG_fail;
31534 }
31535 resultobj = SWIG_From_long(static_cast< long >(result));
31536 return resultobj;
31537fail:
31538 return NULL;
31539}
31540
31541
31542SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31543 PyObject *resultobj = 0;
31544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31545 long arg2 ;
31546 wxString *arg3 = 0 ;
31547 int arg4 ;
31548 long result;
31549 void *argp1 = 0 ;
31550 int res1 = 0 ;
31551 long val2 ;
31552 int ecode2 = 0 ;
31553 bool temp3 = false ;
31554 int val4 ;
31555 int ecode4 = 0 ;
31556 PyObject * obj0 = 0 ;
31557 PyObject * obj1 = 0 ;
31558 PyObject * obj2 = 0 ;
31559 PyObject * obj3 = 0 ;
31560 char * kwnames[] = {
31561 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31562 };
31563
31564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31566 if (!SWIG_IsOK(res1)) {
31567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31568 }
31569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31570 ecode2 = SWIG_AsVal_long(obj1, &val2);
31571 if (!SWIG_IsOK(ecode2)) {
31572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31573 }
31574 arg2 = static_cast< long >(val2);
31575 {
31576 arg3 = wxString_in_helper(obj2);
31577 if (arg3 == NULL) SWIG_fail;
31578 temp3 = true;
31579 }
31580 ecode4 = SWIG_AsVal_int(obj3, &val4);
31581 if (!SWIG_IsOK(ecode4)) {
31582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31583 }
31584 arg4 = static_cast< int >(val4);
31585 {
31586 PyThreadState* __tstate = wxPyBeginAllowThreads();
31587 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31588 wxPyEndAllowThreads(__tstate);
31589 if (PyErr_Occurred()) SWIG_fail;
31590 }
31591 resultobj = SWIG_From_long(static_cast< long >(result));
31592 {
31593 if (temp3)
31594 delete arg3;
31595 }
31596 return resultobj;
31597fail:
31598 {
31599 if (temp3)
31600 delete arg3;
31601 }
31602 return NULL;
31603}
31604
31605
31606SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31607 PyObject *resultobj = 0;
31608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31609 long arg2 ;
31610 wxListItem *arg3 = 0 ;
31611 long result;
31612 void *argp1 = 0 ;
31613 int res1 = 0 ;
31614 long val2 ;
31615 int ecode2 = 0 ;
31616 void *argp3 = 0 ;
31617 int res3 = 0 ;
31618 PyObject * obj0 = 0 ;
31619 PyObject * obj1 = 0 ;
31620 PyObject * obj2 = 0 ;
31621 char * kwnames[] = {
31622 (char *) "self",(char *) "col",(char *) "info", NULL
31623 };
31624
31625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31627 if (!SWIG_IsOK(res1)) {
31628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31629 }
31630 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31631 ecode2 = SWIG_AsVal_long(obj1, &val2);
31632 if (!SWIG_IsOK(ecode2)) {
31633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31634 }
31635 arg2 = static_cast< long >(val2);
31636 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31637 if (!SWIG_IsOK(res3)) {
31638 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31639 }
31640 if (!argp3) {
31641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31642 }
31643 arg3 = reinterpret_cast< wxListItem * >(argp3);
31644 {
31645 PyThreadState* __tstate = wxPyBeginAllowThreads();
31646 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31647 wxPyEndAllowThreads(__tstate);
31648 if (PyErr_Occurred()) SWIG_fail;
31649 }
31650 resultobj = SWIG_From_long(static_cast< long >(result));
31651 return resultobj;
31652fail:
31653 return NULL;
31654}
31655
31656
31657SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31658 PyObject *resultobj = 0;
31659 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31660 long arg2 ;
31661 wxString *arg3 = 0 ;
31662 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31663 int arg5 = (int) -1 ;
31664 long result;
31665 void *argp1 = 0 ;
31666 int res1 = 0 ;
31667 long val2 ;
31668 int ecode2 = 0 ;
31669 bool temp3 = false ;
31670 int val4 ;
31671 int ecode4 = 0 ;
31672 int val5 ;
31673 int ecode5 = 0 ;
31674 PyObject * obj0 = 0 ;
31675 PyObject * obj1 = 0 ;
31676 PyObject * obj2 = 0 ;
31677 PyObject * obj3 = 0 ;
31678 PyObject * obj4 = 0 ;
31679 char * kwnames[] = {
31680 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31681 };
31682
31683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31685 if (!SWIG_IsOK(res1)) {
31686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31687 }
31688 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31689 ecode2 = SWIG_AsVal_long(obj1, &val2);
31690 if (!SWIG_IsOK(ecode2)) {
31691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31692 }
31693 arg2 = static_cast< long >(val2);
31694 {
31695 arg3 = wxString_in_helper(obj2);
31696 if (arg3 == NULL) SWIG_fail;
31697 temp3 = true;
31698 }
31699 if (obj3) {
31700 ecode4 = SWIG_AsVal_int(obj3, &val4);
31701 if (!SWIG_IsOK(ecode4)) {
31702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31703 }
31704 arg4 = static_cast< int >(val4);
31705 }
31706 if (obj4) {
31707 ecode5 = SWIG_AsVal_int(obj4, &val5);
31708 if (!SWIG_IsOK(ecode5)) {
31709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31710 }
31711 arg5 = static_cast< int >(val5);
31712 }
31713 {
31714 PyThreadState* __tstate = wxPyBeginAllowThreads();
31715 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31716 wxPyEndAllowThreads(__tstate);
31717 if (PyErr_Occurred()) SWIG_fail;
31718 }
31719 resultobj = SWIG_From_long(static_cast< long >(result));
31720 {
31721 if (temp3)
31722 delete arg3;
31723 }
31724 return resultobj;
31725fail:
31726 {
31727 if (temp3)
31728 delete arg3;
31729 }
31730 return NULL;
31731}
31732
31733
31734SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31735 PyObject *resultobj = 0;
31736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31737 long arg2 ;
31738 void *argp1 = 0 ;
31739 int res1 = 0 ;
31740 long val2 ;
31741 int ecode2 = 0 ;
31742 PyObject * obj0 = 0 ;
31743 PyObject * obj1 = 0 ;
31744 char * kwnames[] = {
31745 (char *) "self",(char *) "count", NULL
31746 };
31747
31748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31750 if (!SWIG_IsOK(res1)) {
31751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31752 }
31753 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31754 ecode2 = SWIG_AsVal_long(obj1, &val2);
31755 if (!SWIG_IsOK(ecode2)) {
31756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31757 }
31758 arg2 = static_cast< long >(val2);
31759 {
31760 PyThreadState* __tstate = wxPyBeginAllowThreads();
31761 (arg1)->SetItemCount(arg2);
31762 wxPyEndAllowThreads(__tstate);
31763 if (PyErr_Occurred()) SWIG_fail;
31764 }
31765 resultobj = SWIG_Py_Void();
31766 return resultobj;
31767fail:
31768 return NULL;
31769}
31770
31771
31772SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31773 PyObject *resultobj = 0;
31774 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31775 int arg2 ;
31776 int arg3 ;
31777 bool result;
31778 void *argp1 = 0 ;
31779 int res1 = 0 ;
31780 int val2 ;
31781 int ecode2 = 0 ;
31782 int val3 ;
31783 int ecode3 = 0 ;
31784 PyObject * obj0 = 0 ;
31785 PyObject * obj1 = 0 ;
31786 PyObject * obj2 = 0 ;
31787 char * kwnames[] = {
31788 (char *) "self",(char *) "dx",(char *) "dy", NULL
31789 };
31790
31791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31793 if (!SWIG_IsOK(res1)) {
31794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31795 }
31796 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31797 ecode2 = SWIG_AsVal_int(obj1, &val2);
31798 if (!SWIG_IsOK(ecode2)) {
31799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31800 }
31801 arg2 = static_cast< int >(val2);
31802 ecode3 = SWIG_AsVal_int(obj2, &val3);
31803 if (!SWIG_IsOK(ecode3)) {
31804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31805 }
31806 arg3 = static_cast< int >(val3);
31807 {
31808 PyThreadState* __tstate = wxPyBeginAllowThreads();
31809 result = (bool)(arg1)->ScrollList(arg2,arg3);
31810 wxPyEndAllowThreads(__tstate);
31811 if (PyErr_Occurred()) SWIG_fail;
31812 }
31813 {
31814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31815 }
31816 return resultobj;
31817fail:
31818 return NULL;
31819}
31820
31821
31822SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31823 PyObject *resultobj = 0;
31824 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31825 long arg2 ;
31826 wxColour *arg3 = 0 ;
31827 void *argp1 = 0 ;
31828 int res1 = 0 ;
31829 long val2 ;
31830 int ecode2 = 0 ;
31831 wxColour temp3 ;
31832 PyObject * obj0 = 0 ;
31833 PyObject * obj1 = 0 ;
31834 PyObject * obj2 = 0 ;
31835 char * kwnames[] = {
31836 (char *) "self",(char *) "item",(char *) "col", NULL
31837 };
31838
31839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31841 if (!SWIG_IsOK(res1)) {
31842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31843 }
31844 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31845 ecode2 = SWIG_AsVal_long(obj1, &val2);
31846 if (!SWIG_IsOK(ecode2)) {
31847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31848 }
31849 arg2 = static_cast< long >(val2);
31850 {
31851 arg3 = &temp3;
31852 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31853 }
31854 {
31855 PyThreadState* __tstate = wxPyBeginAllowThreads();
31856 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31857 wxPyEndAllowThreads(__tstate);
31858 if (PyErr_Occurred()) SWIG_fail;
31859 }
31860 resultobj = SWIG_Py_Void();
31861 return resultobj;
31862fail:
31863 return NULL;
31864}
31865
31866
31867SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31868 PyObject *resultobj = 0;
31869 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31870 long arg2 ;
31871 wxColour result;
31872 void *argp1 = 0 ;
31873 int res1 = 0 ;
31874 long val2 ;
31875 int ecode2 = 0 ;
31876 PyObject * obj0 = 0 ;
31877 PyObject * obj1 = 0 ;
31878 char * kwnames[] = {
31879 (char *) "self",(char *) "item", NULL
31880 };
31881
31882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31884 if (!SWIG_IsOK(res1)) {
31885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31886 }
31887 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31888 ecode2 = SWIG_AsVal_long(obj1, &val2);
31889 if (!SWIG_IsOK(ecode2)) {
31890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31891 }
31892 arg2 = static_cast< long >(val2);
31893 {
31894 PyThreadState* __tstate = wxPyBeginAllowThreads();
31895 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31896 wxPyEndAllowThreads(__tstate);
31897 if (PyErr_Occurred()) SWIG_fail;
31898 }
31899 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31900 return resultobj;
31901fail:
31902 return NULL;
31903}
31904
31905
31906SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31907 PyObject *resultobj = 0;
31908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31909 long arg2 ;
31910 wxColour *arg3 = 0 ;
31911 void *argp1 = 0 ;
31912 int res1 = 0 ;
31913 long val2 ;
31914 int ecode2 = 0 ;
31915 wxColour temp3 ;
31916 PyObject * obj0 = 0 ;
31917 PyObject * obj1 = 0 ;
31918 PyObject * obj2 = 0 ;
31919 char * kwnames[] = {
31920 (char *) "self",(char *) "item",(char *) "col", NULL
31921 };
31922
31923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31925 if (!SWIG_IsOK(res1)) {
31926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31927 }
31928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31929 ecode2 = SWIG_AsVal_long(obj1, &val2);
31930 if (!SWIG_IsOK(ecode2)) {
31931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31932 }
31933 arg2 = static_cast< long >(val2);
31934 {
31935 arg3 = &temp3;
31936 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31937 }
31938 {
31939 PyThreadState* __tstate = wxPyBeginAllowThreads();
31940 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31941 wxPyEndAllowThreads(__tstate);
31942 if (PyErr_Occurred()) SWIG_fail;
31943 }
31944 resultobj = SWIG_Py_Void();
31945 return resultobj;
31946fail:
31947 return NULL;
31948}
31949
31950
31951SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31952 PyObject *resultobj = 0;
31953 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31954 long arg2 ;
31955 wxColour result;
31956 void *argp1 = 0 ;
31957 int res1 = 0 ;
31958 long val2 ;
31959 int ecode2 = 0 ;
31960 PyObject * obj0 = 0 ;
31961 PyObject * obj1 = 0 ;
31962 char * kwnames[] = {
31963 (char *) "self",(char *) "item", NULL
31964 };
31965
31966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31968 if (!SWIG_IsOK(res1)) {
31969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31970 }
31971 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31972 ecode2 = SWIG_AsVal_long(obj1, &val2);
31973 if (!SWIG_IsOK(ecode2)) {
31974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31975 }
31976 arg2 = static_cast< long >(val2);
31977 {
31978 PyThreadState* __tstate = wxPyBeginAllowThreads();
31979 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31980 wxPyEndAllowThreads(__tstate);
31981 if (PyErr_Occurred()) SWIG_fail;
31982 }
31983 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31984 return resultobj;
31985fail:
31986 return NULL;
31987}
31988
31989
31990SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31991 PyObject *resultobj = 0;
31992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31993 long arg2 ;
31994 wxFont *arg3 = 0 ;
31995 void *argp1 = 0 ;
31996 int res1 = 0 ;
31997 long val2 ;
31998 int ecode2 = 0 ;
31999 void *argp3 = 0 ;
32000 int res3 = 0 ;
32001 PyObject * obj0 = 0 ;
32002 PyObject * obj1 = 0 ;
32003 PyObject * obj2 = 0 ;
32004 char * kwnames[] = {
32005 (char *) "self",(char *) "item",(char *) "f", NULL
32006 };
32007
32008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32010 if (!SWIG_IsOK(res1)) {
32011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32012 }
32013 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32014 ecode2 = SWIG_AsVal_long(obj1, &val2);
32015 if (!SWIG_IsOK(ecode2)) {
32016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32017 }
32018 arg2 = static_cast< long >(val2);
32019 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32020 if (!SWIG_IsOK(res3)) {
32021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32022 }
32023 if (!argp3) {
32024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32025 }
32026 arg3 = reinterpret_cast< wxFont * >(argp3);
32027 {
32028 PyThreadState* __tstate = wxPyBeginAllowThreads();
32029 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32030 wxPyEndAllowThreads(__tstate);
32031 if (PyErr_Occurred()) SWIG_fail;
32032 }
32033 resultobj = SWIG_Py_Void();
32034 return resultobj;
32035fail:
32036 return NULL;
32037}
32038
32039
32040SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32041 PyObject *resultobj = 0;
32042 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32043 long arg2 ;
32044 wxFont result;
32045 void *argp1 = 0 ;
32046 int res1 = 0 ;
32047 long val2 ;
32048 int ecode2 = 0 ;
32049 PyObject * obj0 = 0 ;
32050 PyObject * obj1 = 0 ;
32051 char * kwnames[] = {
32052 (char *) "self",(char *) "item", NULL
32053 };
32054
32055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32057 if (!SWIG_IsOK(res1)) {
32058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32059 }
32060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32061 ecode2 = SWIG_AsVal_long(obj1, &val2);
32062 if (!SWIG_IsOK(ecode2)) {
32063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32064 }
32065 arg2 = static_cast< long >(val2);
32066 {
32067 PyThreadState* __tstate = wxPyBeginAllowThreads();
32068 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32069 wxPyEndAllowThreads(__tstate);
32070 if (PyErr_Occurred()) SWIG_fail;
32071 }
32072 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32073 return resultobj;
32074fail:
32075 return NULL;
32076}
32077
32078
32079SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32080 PyObject *resultobj = 0;
32081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32082 PyObject *arg2 = (PyObject *) 0 ;
32083 bool result;
32084 void *argp1 = 0 ;
32085 int res1 = 0 ;
32086 PyObject * obj0 = 0 ;
32087 PyObject * obj1 = 0 ;
32088 char * kwnames[] = {
32089 (char *) "self",(char *) "func", NULL
32090 };
32091
32092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32094 if (!SWIG_IsOK(res1)) {
32095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32096 }
32097 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32098 arg2 = obj1;
32099 {
32100 PyThreadState* __tstate = wxPyBeginAllowThreads();
32101 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32102 wxPyEndAllowThreads(__tstate);
32103 if (PyErr_Occurred()) SWIG_fail;
32104 }
32105 {
32106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32107 }
32108 return resultobj;
32109fail:
32110 return NULL;
1fbf26be
RD
32111}
32112
32113
554f62e9
RD
32114SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32115 PyObject *resultobj = 0;
32116 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32117 wxWindow *result = 0 ;
32118 void *argp1 = 0 ;
32119 int res1 = 0 ;
32120 PyObject *swig_obj[1] ;
32121
32122 if (!args) SWIG_fail;
32123 swig_obj[0] = args;
32124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32125 if (!SWIG_IsOK(res1)) {
32126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32127 }
32128 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32129 {
32130 PyThreadState* __tstate = wxPyBeginAllowThreads();
32131 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32132 wxPyEndAllowThreads(__tstate);
32133 if (PyErr_Occurred()) SWIG_fail;
32134 }
32135 {
32136 resultobj = wxPyMake_wxObject(result, 0);
32137 }
32138 return resultobj;
32139fail:
32140 return NULL;
32141}
32142
32143
32144SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32145 PyObject *resultobj = 0;
32146 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32147 SwigValueWrapper<wxVisualAttributes > result;
32148 int val1 ;
32149 int ecode1 = 0 ;
32150 PyObject * obj0 = 0 ;
32151 char * kwnames[] = {
32152 (char *) "variant", NULL
32153 };
32154
32155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32156 if (obj0) {
32157 ecode1 = SWIG_AsVal_int(obj0, &val1);
32158 if (!SWIG_IsOK(ecode1)) {
32159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32160 }
32161 arg1 = static_cast< wxWindowVariant >(val1);
32162 }
32163 {
32164 if (!wxPyCheckForApp()) SWIG_fail;
32165 PyThreadState* __tstate = wxPyBeginAllowThreads();
32166 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32167 wxPyEndAllowThreads(__tstate);
32168 if (PyErr_Occurred()) SWIG_fail;
32169 }
32170 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32171 return resultobj;
32172fail:
32173 return NULL;
32174}
32175
32176
32177SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32178 PyObject *obj;
32179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32180 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32181 return SWIG_Py_Void();
32182}
32183
32184SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32185 return SWIG_Python_InitShadowInstance(args);
32186}
32187
32188SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32189 PyObject *resultobj = 0;
32190 wxWindow *arg1 = (wxWindow *) 0 ;
32191 int arg2 = (int) -1 ;
32192 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32193 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32194 wxSize const &arg4_defvalue = wxDefaultSize ;
32195 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32196 long arg5 = (long) wxLC_REPORT ;
32197 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32198 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32199 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32200 wxString *arg7 = (wxString *) &arg7_defvalue ;
32201 wxListView *result = 0 ;
32202 void *argp1 = 0 ;
32203 int res1 = 0 ;
32204 int val2 ;
32205 int ecode2 = 0 ;
32206 wxPoint temp3 ;
32207 wxSize temp4 ;
32208 long val5 ;
32209 int ecode5 = 0 ;
32210 void *argp6 = 0 ;
32211 int res6 = 0 ;
32212 bool temp7 = false ;
32213 PyObject * obj0 = 0 ;
32214 PyObject * obj1 = 0 ;
32215 PyObject * obj2 = 0 ;
32216 PyObject * obj3 = 0 ;
32217 PyObject * obj4 = 0 ;
32218 PyObject * obj5 = 0 ;
32219 PyObject * obj6 = 0 ;
32220 char * kwnames[] = {
32221 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32222 };
32223
32224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32226 if (!SWIG_IsOK(res1)) {
32227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32228 }
32229 arg1 = reinterpret_cast< wxWindow * >(argp1);
32230 if (obj1) {
32231 ecode2 = SWIG_AsVal_int(obj1, &val2);
32232 if (!SWIG_IsOK(ecode2)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32234 }
32235 arg2 = static_cast< int >(val2);
32236 }
32237 if (obj2) {
32238 {
32239 arg3 = &temp3;
32240 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 32241 }
554f62e9
RD
32242 }
32243 if (obj3) {
32244 {
32245 arg4 = &temp4;
32246 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32247 }
554f62e9
RD
32248 }
32249 if (obj4) {
32250 ecode5 = SWIG_AsVal_long(obj4, &val5);
32251 if (!SWIG_IsOK(ecode5)) {
32252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32253 }
32254 arg5 = static_cast< long >(val5);
32255 }
32256 if (obj5) {
32257 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32258 if (!SWIG_IsOK(res6)) {
32259 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 32260 }
554f62e9
RD
32261 if (!argp6) {
32262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 32263 }
554f62e9
RD
32264 arg6 = reinterpret_cast< wxValidator * >(argp6);
32265 }
32266 if (obj6) {
d55e5bfc 32267 {
554f62e9
RD
32268 arg7 = wxString_in_helper(obj6);
32269 if (arg7 == NULL) SWIG_fail;
32270 temp7 = true;
d55e5bfc 32271 }
554f62e9
RD
32272 }
32273 {
32274 if (!wxPyCheckForApp()) SWIG_fail;
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32281 {
32282 if (temp7)
32283 delete arg7;
32284 }
32285 return resultobj;
32286fail:
32287 {
32288 if (temp7)
32289 delete arg7;
32290 }
32291 return NULL;
d55e5bfc
RD
32292}
32293
32294
554f62e9
RD
32295SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32296 PyObject *resultobj = 0;
32297 wxListView *result = 0 ;
32298
32299 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32300 {
32301 if (!wxPyCheckForApp()) SWIG_fail;
32302 PyThreadState* __tstate = wxPyBeginAllowThreads();
32303 result = (wxListView *)new wxListView();
32304 wxPyEndAllowThreads(__tstate);
32305 if (PyErr_Occurred()) SWIG_fail;
32306 }
32307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32308 return resultobj;
32309fail:
32310 return NULL;
32311}
32312
32313
32314SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32315 PyObject *resultobj = 0;
32316 wxListView *arg1 = (wxListView *) 0 ;
32317 wxWindow *arg2 = (wxWindow *) 0 ;
32318 int arg3 = (int) -1 ;
32319 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32320 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32321 wxSize const &arg5_defvalue = wxDefaultSize ;
32322 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32323 long arg6 = (long) wxLC_REPORT ;
32324 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32325 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32326 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32327 wxString *arg8 = (wxString *) &arg8_defvalue ;
32328 bool result;
32329 void *argp1 = 0 ;
32330 int res1 = 0 ;
32331 void *argp2 = 0 ;
32332 int res2 = 0 ;
32333 int val3 ;
32334 int ecode3 = 0 ;
32335 wxPoint temp4 ;
32336 wxSize temp5 ;
32337 long val6 ;
32338 int ecode6 = 0 ;
32339 void *argp7 = 0 ;
32340 int res7 = 0 ;
32341 bool temp8 = false ;
32342 PyObject * obj0 = 0 ;
32343 PyObject * obj1 = 0 ;
32344 PyObject * obj2 = 0 ;
32345 PyObject * obj3 = 0 ;
32346 PyObject * obj4 = 0 ;
32347 PyObject * obj5 = 0 ;
32348 PyObject * obj6 = 0 ;
32349 PyObject * obj7 = 0 ;
32350 char * kwnames[] = {
32351 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32352 };
32353
32354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32356 if (!SWIG_IsOK(res1)) {
32357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32358 }
32359 arg1 = reinterpret_cast< wxListView * >(argp1);
32360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32361 if (!SWIG_IsOK(res2)) {
32362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32363 }
32364 arg2 = reinterpret_cast< wxWindow * >(argp2);
32365 if (obj2) {
32366 ecode3 = SWIG_AsVal_int(obj2, &val3);
32367 if (!SWIG_IsOK(ecode3)) {
32368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32369 }
32370 arg3 = static_cast< int >(val3);
32371 }
32372 if (obj3) {
093d3ff1 32373 {
554f62e9
RD
32374 arg4 = &temp4;
32375 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
ae8162c8 32376 }
554f62e9
RD
32377 }
32378 if (obj4) {
32379 {
32380 arg5 = &temp5;
32381 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
ae8162c8 32382 }
554f62e9
RD
32383 }
32384 if (obj5) {
32385 ecode6 = SWIG_AsVal_long(obj5, &val6);
32386 if (!SWIG_IsOK(ecode6)) {
32387 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32388 }
32389 arg6 = static_cast< long >(val6);
32390 }
32391 if (obj6) {
32392 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32393 if (!SWIG_IsOK(res7)) {
32394 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32395 }
554f62e9
RD
32396 if (!argp7) {
32397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32398 }
554f62e9
RD
32399 arg7 = reinterpret_cast< wxValidator * >(argp7);
32400 }
32401 if (obj7) {
ae8162c8 32402 {
554f62e9
RD
32403 arg8 = wxString_in_helper(obj7);
32404 if (arg8 == NULL) SWIG_fail;
32405 temp8 = true;
ae8162c8 32406 }
554f62e9
RD
32407 }
32408 {
32409 PyThreadState* __tstate = wxPyBeginAllowThreads();
32410 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32411 wxPyEndAllowThreads(__tstate);
32412 if (PyErr_Occurred()) SWIG_fail;
32413 }
32414 {
32415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32416 }
32417 {
32418 if (temp8)
32419 delete arg8;
32420 }
32421 return resultobj;
32422fail:
32423 {
32424 if (temp8)
32425 delete arg8;
32426 }
32427 return NULL;
32428}
32429
32430
32431SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32432 PyObject *resultobj = 0;
32433 wxListView *arg1 = (wxListView *) 0 ;
32434 long arg2 ;
32435 bool arg3 = (bool) true ;
32436 void *argp1 = 0 ;
32437 int res1 = 0 ;
32438 long val2 ;
32439 int ecode2 = 0 ;
32440 bool val3 ;
32441 int ecode3 = 0 ;
32442 PyObject * obj0 = 0 ;
32443 PyObject * obj1 = 0 ;
32444 PyObject * obj2 = 0 ;
32445 char * kwnames[] = {
32446 (char *) "self",(char *) "n",(char *) "on", NULL
32447 };
32448
32449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32451 if (!SWIG_IsOK(res1)) {
32452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32453 }
32454 arg1 = reinterpret_cast< wxListView * >(argp1);
32455 ecode2 = SWIG_AsVal_long(obj1, &val2);
32456 if (!SWIG_IsOK(ecode2)) {
32457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32458 }
32459 arg2 = static_cast< long >(val2);
32460 if (obj2) {
32461 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32462 if (!SWIG_IsOK(ecode3)) {
32463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32464 }
32465 arg3 = static_cast< bool >(val3);
32466 }
32467 {
32468 PyThreadState* __tstate = wxPyBeginAllowThreads();
32469 (arg1)->Select(arg2,arg3);
32470 wxPyEndAllowThreads(__tstate);
32471 if (PyErr_Occurred()) SWIG_fail;
32472 }
32473 resultobj = SWIG_Py_Void();
32474 return resultobj;
32475fail:
32476 return NULL;
32477}
32478
32479
32480SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32481 PyObject *resultobj = 0;
32482 wxListView *arg1 = (wxListView *) 0 ;
32483 long arg2 ;
32484 void *argp1 = 0 ;
32485 int res1 = 0 ;
32486 long val2 ;
32487 int ecode2 = 0 ;
32488 PyObject * obj0 = 0 ;
32489 PyObject * obj1 = 0 ;
32490 char * kwnames[] = {
32491 (char *) "self",(char *) "index", NULL
32492 };
32493
32494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32496 if (!SWIG_IsOK(res1)) {
32497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32498 }
32499 arg1 = reinterpret_cast< wxListView * >(argp1);
32500 ecode2 = SWIG_AsVal_long(obj1, &val2);
32501 if (!SWIG_IsOK(ecode2)) {
32502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32503 }
32504 arg2 = static_cast< long >(val2);
32505 {
32506 PyThreadState* __tstate = wxPyBeginAllowThreads();
32507 (arg1)->Focus(arg2);
32508 wxPyEndAllowThreads(__tstate);
32509 if (PyErr_Occurred()) SWIG_fail;
32510 }
32511 resultobj = SWIG_Py_Void();
32512 return resultobj;
32513fail:
32514 return NULL;
ae8162c8
RD
32515}
32516
32517
554f62e9
RD
32518SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32519 PyObject *resultobj = 0;
32520 wxListView *arg1 = (wxListView *) 0 ;
32521 long result;
32522 void *argp1 = 0 ;
32523 int res1 = 0 ;
32524 PyObject *swig_obj[1] ;
32525
32526 if (!args) SWIG_fail;
32527 swig_obj[0] = args;
32528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32529 if (!SWIG_IsOK(res1)) {
32530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32531 }
32532 arg1 = reinterpret_cast< wxListView * >(argp1);
32533 {
32534 PyThreadState* __tstate = wxPyBeginAllowThreads();
32535 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32536 wxPyEndAllowThreads(__tstate);
32537 if (PyErr_Occurred()) SWIG_fail;
32538 }
32539 resultobj = SWIG_From_long(static_cast< long >(result));
32540 return resultobj;
32541fail:
32542 return NULL;
32543}
32544
32545
32546SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32547 PyObject *resultobj = 0;
32548 wxListView *arg1 = (wxListView *) 0 ;
32549 long arg2 ;
32550 long result;
32551 void *argp1 = 0 ;
32552 int res1 = 0 ;
32553 long val2 ;
32554 int ecode2 = 0 ;
32555 PyObject * obj0 = 0 ;
32556 PyObject * obj1 = 0 ;
32557 char * kwnames[] = {
32558 (char *) "self",(char *) "item", NULL
32559 };
32560
32561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32563 if (!SWIG_IsOK(res1)) {
32564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32565 }
32566 arg1 = reinterpret_cast< wxListView * >(argp1);
32567 ecode2 = SWIG_AsVal_long(obj1, &val2);
32568 if (!SWIG_IsOK(ecode2)) {
32569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32570 }
32571 arg2 = static_cast< long >(val2);
32572 {
32573 PyThreadState* __tstate = wxPyBeginAllowThreads();
32574 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32575 wxPyEndAllowThreads(__tstate);
32576 if (PyErr_Occurred()) SWIG_fail;
32577 }
32578 resultobj = SWIG_From_long(static_cast< long >(result));
32579 return resultobj;
32580fail:
32581 return NULL;
ae8162c8
RD
32582}
32583
32584
554f62e9
RD
32585SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32586 PyObject *resultobj = 0;
32587 wxListView *arg1 = (wxListView *) 0 ;
32588 long result;
32589 void *argp1 = 0 ;
32590 int res1 = 0 ;
32591 PyObject *swig_obj[1] ;
32592
32593 if (!args) SWIG_fail;
32594 swig_obj[0] = args;
32595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32596 if (!SWIG_IsOK(res1)) {
32597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32598 }
32599 arg1 = reinterpret_cast< wxListView * >(argp1);
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32603 wxPyEndAllowThreads(__tstate);
32604 if (PyErr_Occurred()) SWIG_fail;
32605 }
32606 resultobj = SWIG_From_long(static_cast< long >(result));
32607 return resultobj;
32608fail:
32609 return NULL;
32610}
32611
32612
32613SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32614 PyObject *resultobj = 0;
32615 wxListView *arg1 = (wxListView *) 0 ;
32616 long arg2 ;
32617 bool result;
32618 void *argp1 = 0 ;
32619 int res1 = 0 ;
32620 long val2 ;
32621 int ecode2 = 0 ;
32622 PyObject * obj0 = 0 ;
32623 PyObject * obj1 = 0 ;
32624 char * kwnames[] = {
32625 (char *) "self",(char *) "index", NULL
32626 };
32627
32628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32630 if (!SWIG_IsOK(res1)) {
32631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32632 }
32633 arg1 = reinterpret_cast< wxListView * >(argp1);
32634 ecode2 = SWIG_AsVal_long(obj1, &val2);
32635 if (!SWIG_IsOK(ecode2)) {
32636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32637 }
32638 arg2 = static_cast< long >(val2);
32639 {
32640 PyThreadState* __tstate = wxPyBeginAllowThreads();
32641 result = (bool)(arg1)->IsSelected(arg2);
32642 wxPyEndAllowThreads(__tstate);
32643 if (PyErr_Occurred()) SWIG_fail;
32644 }
32645 {
32646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32647 }
32648 return resultobj;
32649fail:
32650 return NULL;
32651}
32652
32653
32654SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32655 PyObject *resultobj = 0;
32656 wxListView *arg1 = (wxListView *) 0 ;
32657 int arg2 ;
32658 int arg3 ;
32659 void *argp1 = 0 ;
32660 int res1 = 0 ;
32661 int val2 ;
32662 int ecode2 = 0 ;
32663 int val3 ;
32664 int ecode3 = 0 ;
32665 PyObject * obj0 = 0 ;
32666 PyObject * obj1 = 0 ;
32667 PyObject * obj2 = 0 ;
32668 char * kwnames[] = {
32669 (char *) "self",(char *) "col",(char *) "image", NULL
32670 };
32671
32672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32674 if (!SWIG_IsOK(res1)) {
32675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32676 }
32677 arg1 = reinterpret_cast< wxListView * >(argp1);
32678 ecode2 = SWIG_AsVal_int(obj1, &val2);
32679 if (!SWIG_IsOK(ecode2)) {
32680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32681 }
32682 arg2 = static_cast< int >(val2);
32683 ecode3 = SWIG_AsVal_int(obj2, &val3);
32684 if (!SWIG_IsOK(ecode3)) {
32685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32686 }
32687 arg3 = static_cast< int >(val3);
32688 {
32689 PyThreadState* __tstate = wxPyBeginAllowThreads();
32690 (arg1)->SetColumnImage(arg2,arg3);
32691 wxPyEndAllowThreads(__tstate);
32692 if (PyErr_Occurred()) SWIG_fail;
32693 }
32694 resultobj = SWIG_Py_Void();
32695 return resultobj;
32696fail:
32697 return NULL;
32698}
32699
32700
32701SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32702 PyObject *resultobj = 0;
32703 wxListView *arg1 = (wxListView *) 0 ;
32704 int arg2 ;
32705 void *argp1 = 0 ;
32706 int res1 = 0 ;
32707 int val2 ;
32708 int ecode2 = 0 ;
32709 PyObject * obj0 = 0 ;
32710 PyObject * obj1 = 0 ;
32711 char * kwnames[] = {
32712 (char *) "self",(char *) "col", NULL
32713 };
32714
32715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32717 if (!SWIG_IsOK(res1)) {
32718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32719 }
32720 arg1 = reinterpret_cast< wxListView * >(argp1);
32721 ecode2 = SWIG_AsVal_int(obj1, &val2);
32722 if (!SWIG_IsOK(ecode2)) {
32723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32724 }
32725 arg2 = static_cast< int >(val2);
32726 {
32727 PyThreadState* __tstate = wxPyBeginAllowThreads();
32728 (arg1)->ClearColumnImage(arg2);
32729 wxPyEndAllowThreads(__tstate);
32730 if (PyErr_Occurred()) SWIG_fail;
32731 }
32732 resultobj = SWIG_Py_Void();
32733 return resultobj;
32734fail:
32735 return NULL;
ae8162c8
RD
32736}
32737
32738
554f62e9
RD
32739SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32740 PyObject *obj;
32741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32742 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32743 return SWIG_Py_Void();
70b7a5fe
RD
32744}
32745
554f62e9
RD
32746SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32747 return SWIG_Python_InitShadowInstance(args);
ae8162c8
RD
32748}
32749
554f62e9
RD
32750SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32751 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32752 return 1;
ae8162c8
RD
32753}
32754
32755
554f62e9
RD
32756SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32757 PyObject *pyobj = 0;
32758
32759 {
32760#if wxUSE_UNICODE
32761 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32762#else
32763 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32764#endif
32765 }
32766 return pyobj;
d55e5bfc
RD
32767}
32768
32769
554f62e9
RD
32770SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32771 PyObject *resultobj = 0;
32772 wxTreeItemId *result = 0 ;
32773
32774 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32775 {
32776 PyThreadState* __tstate = wxPyBeginAllowThreads();
32777 result = (wxTreeItemId *)new wxTreeItemId();
32778 wxPyEndAllowThreads(__tstate);
32779 if (PyErr_Occurred()) SWIG_fail;
32780 }
32781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32782 return resultobj;
32783fail:
32784 return NULL;
d55e5bfc
RD
32785}
32786
32787
554f62e9
RD
32788SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32789 PyObject *resultobj = 0;
32790 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32791 void *argp1 = 0 ;
32792 int res1 = 0 ;
32793 PyObject *swig_obj[1] ;
32794
32795 if (!args) SWIG_fail;
32796 swig_obj[0] = args;
32797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32798 if (!SWIG_IsOK(res1)) {
32799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32800 }
32801 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32802 {
32803 PyThreadState* __tstate = wxPyBeginAllowThreads();
32804 delete arg1;
d55e5bfc 32805
554f62e9
RD
32806 wxPyEndAllowThreads(__tstate);
32807 if (PyErr_Occurred()) SWIG_fail;
32808 }
32809 resultobj = SWIG_Py_Void();
32810 return resultobj;
32811fail:
32812 return NULL;
d55e5bfc
RD
32813}
32814
32815
554f62e9
RD
32816SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32817 PyObject *resultobj = 0;
32818 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32819 bool result;
32820 void *argp1 = 0 ;
32821 int res1 = 0 ;
32822 PyObject *swig_obj[1] ;
32823
32824 if (!args) SWIG_fail;
32825 swig_obj[0] = args;
32826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32827 if (!SWIG_IsOK(res1)) {
32828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32829 }
32830 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32831 {
32832 PyThreadState* __tstate = wxPyBeginAllowThreads();
32833 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32834 wxPyEndAllowThreads(__tstate);
32835 if (PyErr_Occurred()) SWIG_fail;
32836 }
32837 {
32838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32839 }
32840 return resultobj;
32841fail:
32842 return NULL;
32843}
32844
32845
32846SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32847 PyObject *resultobj = 0;
32848 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32849 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32850 bool result;
32851 void *argp1 = 0 ;
32852 int res1 = 0 ;
32853 void *argp2 = 0 ;
32854 int res2 = 0 ;
32855 PyObject * obj0 = 0 ;
32856 PyObject * obj1 = 0 ;
32857 char * kwnames[] = {
32858 (char *) "self",(char *) "other", NULL
32859 };
32860
32861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32863 if (!SWIG_IsOK(res1)) {
32864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32865 }
32866 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32867 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32868 if (!SWIG_IsOK(res2)) {
32869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32870 }
32871 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32872 {
32873 PyThreadState* __tstate = wxPyBeginAllowThreads();
32874 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32875 wxPyEndAllowThreads(__tstate);
32876 if (PyErr_Occurred()) SWIG_fail;
32877 }
32878 {
32879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32880 }
32881 return resultobj;
32882fail:
32883 return NULL;
32884}
32885
32886
32887SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32888 PyObject *resultobj = 0;
32889 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32890 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32891 bool result;
32892 void *argp1 = 0 ;
32893 int res1 = 0 ;
32894 void *argp2 = 0 ;
32895 int res2 = 0 ;
32896 PyObject * obj0 = 0 ;
32897 PyObject * obj1 = 0 ;
32898 char * kwnames[] = {
32899 (char *) "self",(char *) "other", NULL
32900 };
32901
32902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32904 if (!SWIG_IsOK(res1)) {
32905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32906 }
32907 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32909 if (!SWIG_IsOK(res2)) {
32910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32911 }
32912 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32913 {
32914 PyThreadState* __tstate = wxPyBeginAllowThreads();
32915 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32916 wxPyEndAllowThreads(__tstate);
32917 if (PyErr_Occurred()) SWIG_fail;
32918 }
32919 {
32920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32921 }
32922 return resultobj;
32923fail:
32924 return NULL;
d55e5bfc
RD
32925}
32926
32927
554f62e9
RD
32928SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32929 PyObject *resultobj = 0;
32930 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32931 void *arg2 = (void *) 0 ;
32932 void *argp1 = 0 ;
32933 int res1 = 0 ;
32934 int res2 ;
32935 PyObject *swig_obj[2] ;
32936
32937 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32939 if (!SWIG_IsOK(res1)) {
32940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32941 }
32942 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32943 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32944 if (!SWIG_IsOK(res2)) {
32945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32946 }
32947 if (arg1) (arg1)->m_pItem = arg2;
32948
32949 resultobj = SWIG_Py_Void();
32950 return resultobj;
32951fail:
32952 return NULL;
d55e5bfc
RD
32953}
32954
32955
554f62e9
RD
32956SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32957 PyObject *resultobj = 0;
32958 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32959 void *result = 0 ;
32960 void *argp1 = 0 ;
32961 int res1 = 0 ;
32962 PyObject *swig_obj[1] ;
32963
32964 if (!args) SWIG_fail;
32965 swig_obj[0] = args;
32966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32967 if (!SWIG_IsOK(res1)) {
32968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32969 }
32970 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32971 result = (void *) ((arg1)->m_pItem);
32972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32973 return resultobj;
32974fail:
32975 return NULL;
d55e5bfc
RD
32976}
32977
32978
554f62e9
RD
32979SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32980 PyObject *obj;
32981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32982 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32983 return SWIG_Py_Void();
d55e5bfc
RD
32984}
32985
554f62e9
RD
32986SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32987 return SWIG_Python_InitShadowInstance(args);
32988}
d55e5bfc 32989
554f62e9
RD
32990SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32991 PyObject *resultobj = 0;
32992 PyObject *arg1 = (PyObject *) NULL ;
32993 wxPyTreeItemData *result = 0 ;
32994 PyObject * obj0 = 0 ;
32995 char * kwnames[] = {
32996 (char *) "obj", NULL
32997 };
32998
32999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33000 if (obj0) {
33001 arg1 = obj0;
33002 }
33003 {
33004 PyThreadState* __tstate = wxPyBeginAllowThreads();
33005 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33006 wxPyEndAllowThreads(__tstate);
33007 if (PyErr_Occurred()) SWIG_fail;
33008 }
33009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33010 return resultobj;
33011fail:
33012 return NULL;
d55e5bfc
RD
33013}
33014
33015
554f62e9
RD
33016SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33017 PyObject *resultobj = 0;
33018 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 PyObject *swig_obj[1] ;
33022
33023 if (!args) SWIG_fail;
33024 swig_obj[0] = args;
33025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33026 if (!SWIG_IsOK(res1)) {
33027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33028 }
33029 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33030 {
33031 PyThreadState* __tstate = wxPyBeginAllowThreads();
33032 delete arg1;
d55e5bfc 33033
554f62e9
RD
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_Py_Void();
33038 return resultobj;
33039fail:
33040 return NULL;
d55e5bfc
RD
33041}
33042
33043
554f62e9
RD
33044SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33045 PyObject *resultobj = 0;
33046 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33047 PyObject *result = 0 ;
33048 void *argp1 = 0 ;
33049 int res1 = 0 ;
33050 PyObject *swig_obj[1] ;
33051
33052 if (!args) SWIG_fail;
33053 swig_obj[0] = args;
33054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33055 if (!SWIG_IsOK(res1)) {
33056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33057 }
33058 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33059 {
33060 PyThreadState* __tstate = wxPyBeginAllowThreads();
33061 result = (PyObject *)(arg1)->GetData();
33062 wxPyEndAllowThreads(__tstate);
33063 if (PyErr_Occurred()) SWIG_fail;
33064 }
33065 resultobj = result;
33066 return resultobj;
33067fail:
33068 return NULL;
33069}
33070
33071
33072SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33073 PyObject *resultobj = 0;
33074 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33075 PyObject *arg2 = (PyObject *) 0 ;
33076 void *argp1 = 0 ;
33077 int res1 = 0 ;
33078 PyObject * obj0 = 0 ;
33079 PyObject * obj1 = 0 ;
33080 char * kwnames[] = {
33081 (char *) "self",(char *) "obj", NULL
33082 };
33083
33084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33086 if (!SWIG_IsOK(res1)) {
33087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33088 }
33089 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33090 arg2 = obj1;
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 (arg1)->SetData(arg2);
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_Py_Void();
33098 return resultobj;
33099fail:
33100 return NULL;
d55e5bfc
RD
33101}
33102
33103
554f62e9
RD
33104SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33105 PyObject *resultobj = 0;
33106 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33107 wxTreeItemId *result = 0 ;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 PyObject *swig_obj[1] ;
33111
33112 if (!args) SWIG_fail;
33113 swig_obj[0] = args;
33114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33115 if (!SWIG_IsOK(res1)) {
33116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33117 }
33118 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33119 {
33120 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33121 {
554f62e9
RD
33122 wxTreeItemId const &_result_ref = (arg1)->GetId();
33123 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 33124 }
554f62e9
RD
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33129 return resultobj;
33130fail:
33131 return NULL;
33132}
33133
33134
33135SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33136 PyObject *resultobj = 0;
33137 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33138 wxTreeItemId *arg2 = 0 ;
33139 void *argp1 = 0 ;
33140 int res1 = 0 ;
33141 void *argp2 = 0 ;
33142 int res2 = 0 ;
33143 PyObject * obj0 = 0 ;
33144 PyObject * obj1 = 0 ;
33145 char * kwnames[] = {
33146 (char *) "self",(char *) "id", NULL
33147 };
33148
33149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33151 if (!SWIG_IsOK(res1)) {
33152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33153 }
33154 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33156 if (!SWIG_IsOK(res2)) {
33157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33158 }
33159 if (!argp2) {
33160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33161 }
33162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 (arg1)->SetId((wxTreeItemId const &)*arg2);
33166 wxPyEndAllowThreads(__tstate);
33167 if (PyErr_Occurred()) SWIG_fail;
33168 }
33169 resultobj = SWIG_Py_Void();
33170 return resultobj;
33171fail:
33172 return NULL;
d55e5bfc
RD
33173}
33174
33175
554f62e9
RD
33176SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33177 PyObject *resultobj = 0;
33178 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33179 void *argp1 = 0 ;
33180 int res1 = 0 ;
33181 PyObject *swig_obj[1] ;
33182
33183 if (!args) SWIG_fail;
33184 swig_obj[0] = args;
33185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33186 if (!SWIG_IsOK(res1)) {
33187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33188 }
33189 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33190 {
33191 PyThreadState* __tstate = wxPyBeginAllowThreads();
33192 wxPyTreeItemData_Destroy(arg1);
33193 wxPyEndAllowThreads(__tstate);
33194 if (PyErr_Occurred()) SWIG_fail;
33195 }
33196 resultobj = SWIG_Py_Void();
33197 return resultobj;
33198fail:
33199 return NULL;
d55e5bfc
RD
33200}
33201
33202
554f62e9
RD
33203SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33204 PyObject *obj;
33205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33206 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33207 return SWIG_Py_Void();
d55e5bfc
RD
33208}
33209
554f62e9
RD
33210SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33211 return SWIG_Python_InitShadowInstance(args);
33212}
d55e5bfc 33213
b02396e8
RD
33214SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33215 {
33216 void *argp = 0;
33217 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33218 if (!SWIG_IsOK(res)) {
33219 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33220 }
33221 if (!argp) {
33222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33223 } else {
33224 wxTreeItemId * temp;
33225 temp = reinterpret_cast< wxTreeItemId * >(argp);
33226 wxNullTreeItemId = *temp;
33227 if (SWIG_IsNewObj(res)) delete temp;
33228 }
33229 }
33230 return 0;
33231fail:
33232 return 1;
33233}
33234
33235
33236SWIGINTERN PyObject *NullTreeItemId_get(void) {
33237 PyObject *pyobj = 0;
33238
33239 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33240 return pyobj;
33241}
33242
33243
33244SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
33245 PyObject *resultobj = 0;
33246 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33247 int arg2 = (int) 0 ;
33248 wxTreeEvent *result = 0 ;
33249 int val1 ;
33250 int ecode1 = 0 ;
33251 int val2 ;
33252 int ecode2 = 0 ;
554f62e9 33253
b02396e8
RD
33254 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33255 if (swig_obj[0]) {
33256 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
554f62e9
RD
33257 if (!SWIG_IsOK(ecode1)) {
33258 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33259 }
33260 arg1 = static_cast< wxEventType >(val1);
33261 }
b02396e8
RD
33262 if (swig_obj[1]) {
33263 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
554f62e9
RD
33264 if (!SWIG_IsOK(ecode2)) {
33265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33266 }
33267 arg2 = static_cast< int >(val2);
33268 }
33269 {
33270 PyThreadState* __tstate = wxPyBeginAllowThreads();
33271 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33272 wxPyEndAllowThreads(__tstate);
33273 if (PyErr_Occurred()) SWIG_fail;
33274 }
33275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33276 return resultobj;
33277fail:
33278 return NULL;
d55e5bfc
RD
33279}
33280
33281
b02396e8
RD
33282SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33283 PyObject *resultobj = 0;
33284 wxEventType arg1 ;
33285 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33286 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33287 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33288 wxTreeEvent *result = 0 ;
33289 int val1 ;
33290 int ecode1 = 0 ;
33291 void *argp2 = 0 ;
33292 int res2 = 0 ;
33293 void *argp3 = 0 ;
33294 int res3 = 0 ;
33295
33296 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33297 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33298 if (!SWIG_IsOK(ecode1)) {
33299 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33300 }
33301 arg1 = static_cast< wxEventType >(val1);
33302 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33303 if (!SWIG_IsOK(res2)) {
33304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33305 }
33306 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33307 if (swig_obj[2]) {
33308 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33309 if (!SWIG_IsOK(res3)) {
33310 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33311 }
33312 if (!argp3) {
33313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33314 }
33315 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33316 }
33317 {
33318 PyThreadState* __tstate = wxPyBeginAllowThreads();
33319 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33320 wxPyEndAllowThreads(__tstate);
33321 if (PyErr_Occurred()) SWIG_fail;
33322 }
33323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33324 return resultobj;
33325fail:
33326 return NULL;
33327}
33328
33329
33330SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33331 int argc;
33332 PyObject *argv[4];
33333
33334 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33335 --argc;
33336 if ((argc >= 0) && (argc <= 2)) {
33337 int _v = 0;
33338 if (argc > 1) {
33339 {
33340 {
33341 int res = SWIG_AsVal_int(argv[1], NULL);
33342 _v = SWIG_CheckState(res);
33343 }
33344 }
33345 if (!_v) goto check_1;
33346 }
33347 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33348 }
33349check_1:
33350
33351 if ((argc >= 2) && (argc <= 3)) {
33352 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33353 }
33354
33355fail:
33356 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33357 return NULL;
33358}
33359
33360
554f62e9
RD
33361SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33362 PyObject *resultobj = 0;
33363 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33364 wxTreeItemId result;
33365 void *argp1 = 0 ;
33366 int res1 = 0 ;
33367 PyObject *swig_obj[1] ;
33368
33369 if (!args) SWIG_fail;
33370 swig_obj[0] = args;
33371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33372 if (!SWIG_IsOK(res1)) {
33373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33374 }
33375 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33376 {
33377 PyThreadState* __tstate = wxPyBeginAllowThreads();
33378 result = ((wxTreeEvent const *)arg1)->GetItem();
33379 wxPyEndAllowThreads(__tstate);
33380 if (PyErr_Occurred()) SWIG_fail;
33381 }
33382 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33383 return resultobj;
33384fail:
33385 return NULL;
33386}
33387
33388
33389SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33390 PyObject *resultobj = 0;
33391 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33392 wxTreeItemId *arg2 = 0 ;
33393 void *argp1 = 0 ;
33394 int res1 = 0 ;
33395 void *argp2 = 0 ;
33396 int res2 = 0 ;
33397 PyObject * obj0 = 0 ;
33398 PyObject * obj1 = 0 ;
33399 char * kwnames[] = {
33400 (char *) "self",(char *) "item", NULL
33401 };
33402
33403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33405 if (!SWIG_IsOK(res1)) {
33406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33407 }
33408 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33410 if (!SWIG_IsOK(res2)) {
33411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33412 }
33413 if (!argp2) {
33414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33415 }
33416 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33417 {
33418 PyThreadState* __tstate = wxPyBeginAllowThreads();
33419 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33420 wxPyEndAllowThreads(__tstate);
33421 if (PyErr_Occurred()) SWIG_fail;
33422 }
33423 resultobj = SWIG_Py_Void();
33424 return resultobj;
33425fail:
33426 return NULL;
d55e5bfc
RD
33427}
33428
33429
554f62e9
RD
33430SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33431 PyObject *resultobj = 0;
33432 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33433 wxTreeItemId result;
33434 void *argp1 = 0 ;
33435 int res1 = 0 ;
33436 PyObject *swig_obj[1] ;
33437
33438 if (!args) SWIG_fail;
33439 swig_obj[0] = args;
33440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33441 if (!SWIG_IsOK(res1)) {
33442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33443 }
33444 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33445 {
33446 PyThreadState* __tstate = wxPyBeginAllowThreads();
33447 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33448 wxPyEndAllowThreads(__tstate);
33449 if (PyErr_Occurred()) SWIG_fail;
33450 }
33451 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33452 return resultobj;
33453fail:
33454 return NULL;
33455}
33456
33457
33458SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33459 PyObject *resultobj = 0;
33460 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33461 wxTreeItemId *arg2 = 0 ;
33462 void *argp1 = 0 ;
33463 int res1 = 0 ;
33464 void *argp2 = 0 ;
33465 int res2 = 0 ;
33466 PyObject * obj0 = 0 ;
33467 PyObject * obj1 = 0 ;
33468 char * kwnames[] = {
33469 (char *) "self",(char *) "item", NULL
33470 };
33471
33472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33474 if (!SWIG_IsOK(res1)) {
33475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33476 }
33477 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33478 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33479 if (!SWIG_IsOK(res2)) {
33480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33481 }
33482 if (!argp2) {
33483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33484 }
33485 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33486 {
33487 PyThreadState* __tstate = wxPyBeginAllowThreads();
33488 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33489 wxPyEndAllowThreads(__tstate);
33490 if (PyErr_Occurred()) SWIG_fail;
33491 }
33492 resultobj = SWIG_Py_Void();
33493 return resultobj;
33494fail:
33495 return NULL;
d55e5bfc
RD
33496}
33497
33498
554f62e9
RD
33499SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33500 PyObject *resultobj = 0;
33501 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33502 wxPoint result;
33503 void *argp1 = 0 ;
33504 int res1 = 0 ;
33505 PyObject *swig_obj[1] ;
33506
33507 if (!args) SWIG_fail;
33508 swig_obj[0] = args;
33509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33510 if (!SWIG_IsOK(res1)) {
33511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33512 }
33513 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33514 {
33515 PyThreadState* __tstate = wxPyBeginAllowThreads();
33516 result = ((wxTreeEvent const *)arg1)->GetPoint();
33517 wxPyEndAllowThreads(__tstate);
33518 if (PyErr_Occurred()) SWIG_fail;
33519 }
33520 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33521 return resultobj;
33522fail:
33523 return NULL;
33524}
33525
33526
33527SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33528 PyObject *resultobj = 0;
33529 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33530 wxPoint *arg2 = 0 ;
33531 void *argp1 = 0 ;
33532 int res1 = 0 ;
33533 wxPoint temp2 ;
33534 PyObject * obj0 = 0 ;
33535 PyObject * obj1 = 0 ;
33536 char * kwnames[] = {
33537 (char *) "self",(char *) "pt", NULL
33538 };
33539
33540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33542 if (!SWIG_IsOK(res1)) {
33543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33544 }
33545 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33546 {
33547 arg2 = &temp2;
33548 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33549 }
33550 {
33551 PyThreadState* __tstate = wxPyBeginAllowThreads();
33552 (arg1)->SetPoint((wxPoint const &)*arg2);
33553 wxPyEndAllowThreads(__tstate);
33554 if (PyErr_Occurred()) SWIG_fail;
33555 }
33556 resultobj = SWIG_Py_Void();
33557 return resultobj;
33558fail:
33559 return NULL;
d55e5bfc
RD
33560}
33561
33562
554f62e9
RD
33563SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33564 PyObject *resultobj = 0;
33565 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33566 wxKeyEvent *result = 0 ;
33567 void *argp1 = 0 ;
33568 int res1 = 0 ;
33569 PyObject *swig_obj[1] ;
33570
33571 if (!args) SWIG_fail;
33572 swig_obj[0] = args;
33573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33574 if (!SWIG_IsOK(res1)) {
33575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33576 }
33577 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33578 {
33579 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33580 {
554f62e9
RD
33581 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33582 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33583 }
554f62e9
RD
33584 wxPyEndAllowThreads(__tstate);
33585 if (PyErr_Occurred()) SWIG_fail;
33586 }
33587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33588 return resultobj;
33589fail:
33590 return NULL;
d55e5bfc
RD
33591}
33592
33593
554f62e9
RD
33594SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33595 PyObject *resultobj = 0;
33596 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33597 int result;
33598 void *argp1 = 0 ;
33599 int res1 = 0 ;
33600 PyObject *swig_obj[1] ;
33601
33602 if (!args) SWIG_fail;
33603 swig_obj[0] = args;
33604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33605 if (!SWIG_IsOK(res1)) {
33606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33607 }
33608 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33609 {
33610 PyThreadState* __tstate = wxPyBeginAllowThreads();
33611 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33612 wxPyEndAllowThreads(__tstate);
33613 if (PyErr_Occurred()) SWIG_fail;
33614 }
33615 resultobj = SWIG_From_int(static_cast< int >(result));
33616 return resultobj;
33617fail:
33618 return NULL;
33619}
33620
33621
33622SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33623 PyObject *resultobj = 0;
33624 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33625 wxKeyEvent *arg2 = 0 ;
33626 void *argp1 = 0 ;
33627 int res1 = 0 ;
33628 void *argp2 = 0 ;
33629 int res2 = 0 ;
33630 PyObject * obj0 = 0 ;
33631 PyObject * obj1 = 0 ;
33632 char * kwnames[] = {
33633 (char *) "self",(char *) "evt", NULL
33634 };
33635
33636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33638 if (!SWIG_IsOK(res1)) {
33639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33640 }
33641 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33643 if (!SWIG_IsOK(res2)) {
33644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33645 }
33646 if (!argp2) {
33647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33648 }
33649 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33650 {
33651 PyThreadState* __tstate = wxPyBeginAllowThreads();
33652 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33653 wxPyEndAllowThreads(__tstate);
33654 if (PyErr_Occurred()) SWIG_fail;
33655 }
33656 resultobj = SWIG_Py_Void();
33657 return resultobj;
33658fail:
33659 return NULL;
d55e5bfc
RD
33660}
33661
33662
554f62e9
RD
33663SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33664 PyObject *resultobj = 0;
33665 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33666 wxString *result = 0 ;
33667 void *argp1 = 0 ;
33668 int res1 = 0 ;
33669 PyObject *swig_obj[1] ;
33670
33671 if (!args) SWIG_fail;
33672 swig_obj[0] = args;
33673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33674 if (!SWIG_IsOK(res1)) {
33675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33676 }
33677 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33678 {
33679 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33680 {
554f62e9
RD
33681 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33682 result = (wxString *) &_result_ref;
d55e5bfc 33683 }
554f62e9
RD
33684 wxPyEndAllowThreads(__tstate);
33685 if (PyErr_Occurred()) SWIG_fail;
33686 }
33687 {
33688#if wxUSE_UNICODE
33689 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33690#else
33691 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33692#endif
33693 }
33694 return resultobj;
33695fail:
33696 return NULL;
33697}
33698
33699
33700SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33701 PyObject *resultobj = 0;
33702 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33703 wxString *arg2 = 0 ;
33704 void *argp1 = 0 ;
33705 int res1 = 0 ;
33706 bool temp2 = false ;
33707 PyObject * obj0 = 0 ;
33708 PyObject * obj1 = 0 ;
33709 char * kwnames[] = {
33710 (char *) "self",(char *) "label", NULL
33711 };
33712
33713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33715 if (!SWIG_IsOK(res1)) {
33716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33717 }
33718 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33719 {
33720 arg2 = wxString_in_helper(obj1);
33721 if (arg2 == NULL) SWIG_fail;
33722 temp2 = true;
33723 }
33724 {
33725 PyThreadState* __tstate = wxPyBeginAllowThreads();
33726 (arg1)->SetLabel((wxString const &)*arg2);
33727 wxPyEndAllowThreads(__tstate);
33728 if (PyErr_Occurred()) SWIG_fail;
33729 }
33730 resultobj = SWIG_Py_Void();
33731 {
33732 if (temp2)
33733 delete arg2;
33734 }
33735 return resultobj;
33736fail:
33737 {
33738 if (temp2)
33739 delete arg2;
33740 }
33741 return NULL;
d55e5bfc
RD
33742}
33743
33744
554f62e9
RD
33745SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33746 PyObject *resultobj = 0;
33747 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33748 bool result;
33749 void *argp1 = 0 ;
33750 int res1 = 0 ;
33751 PyObject *swig_obj[1] ;
33752
33753 if (!args) SWIG_fail;
33754 swig_obj[0] = args;
33755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33756 if (!SWIG_IsOK(res1)) {
33757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33758 }
33759 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33760 {
33761 PyThreadState* __tstate = wxPyBeginAllowThreads();
33762 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33763 wxPyEndAllowThreads(__tstate);
33764 if (PyErr_Occurred()) SWIG_fail;
33765 }
33766 {
33767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33768 }
33769 return resultobj;
33770fail:
33771 return NULL;
33772}
33773
33774
33775SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33776 PyObject *resultobj = 0;
33777 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33778 bool arg2 ;
33779 void *argp1 = 0 ;
33780 int res1 = 0 ;
33781 bool val2 ;
33782 int ecode2 = 0 ;
33783 PyObject * obj0 = 0 ;
33784 PyObject * obj1 = 0 ;
33785 char * kwnames[] = {
33786 (char *) "self",(char *) "editCancelled", NULL
33787 };
33788
33789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33791 if (!SWIG_IsOK(res1)) {
33792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33793 }
33794 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33795 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33796 if (!SWIG_IsOK(ecode2)) {
33797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33798 }
33799 arg2 = static_cast< bool >(val2);
33800 {
33801 PyThreadState* __tstate = wxPyBeginAllowThreads();
33802 (arg1)->SetEditCanceled(arg2);
33803 wxPyEndAllowThreads(__tstate);
33804 if (PyErr_Occurred()) SWIG_fail;
33805 }
33806 resultobj = SWIG_Py_Void();
33807 return resultobj;
33808fail:
33809 return NULL;
33810}
33811
33812
33813SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33814 PyObject *resultobj = 0;
33815 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33816 wxString *arg2 = 0 ;
33817 void *argp1 = 0 ;
33818 int res1 = 0 ;
33819 bool temp2 = false ;
33820 PyObject * obj0 = 0 ;
33821 PyObject * obj1 = 0 ;
33822 char * kwnames[] = {
33823 (char *) "self",(char *) "toolTip", NULL
33824 };
33825
33826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33828 if (!SWIG_IsOK(res1)) {
33829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33830 }
33831 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33832 {
33833 arg2 = wxString_in_helper(obj1);
33834 if (arg2 == NULL) SWIG_fail;
33835 temp2 = true;
33836 }
33837 {
33838 PyThreadState* __tstate = wxPyBeginAllowThreads();
33839 (arg1)->SetToolTip((wxString const &)*arg2);
33840 wxPyEndAllowThreads(__tstate);
33841 if (PyErr_Occurred()) SWIG_fail;
33842 }
33843 resultobj = SWIG_Py_Void();
33844 {
33845 if (temp2)
33846 delete arg2;
33847 }
33848 return resultobj;
33849fail:
33850 {
33851 if (temp2)
33852 delete arg2;
33853 }
33854 return NULL;
33855}
33856
33857
33858SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33859 PyObject *resultobj = 0;
33860 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33861 wxString result;
33862 void *argp1 = 0 ;
33863 int res1 = 0 ;
33864 PyObject *swig_obj[1] ;
33865
33866 if (!args) SWIG_fail;
33867 swig_obj[0] = args;
33868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33869 if (!SWIG_IsOK(res1)) {
33870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33871 }
33872 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33873 {
33874 PyThreadState* __tstate = wxPyBeginAllowThreads();
33875 result = (arg1)->GetToolTip();
33876 wxPyEndAllowThreads(__tstate);
33877 if (PyErr_Occurred()) SWIG_fail;
33878 }
33879 {
33880#if wxUSE_UNICODE
33881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33882#else
33883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33884#endif
33885 }
33886 return resultobj;
33887fail:
33888 return NULL;
33889}
33890
33891
33892SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33893 PyObject *obj;
33894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33895 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33896 return SWIG_Py_Void();
33897}
33898
33899SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33900 return SWIG_Python_InitShadowInstance(args);
33901}
33902
33903SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33904 PyObject *resultobj = 0;
33905 wxWindow *arg1 = (wxWindow *) 0 ;
33906 int arg2 = (int) -1 ;
33907 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33908 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33909 wxSize const &arg4_defvalue = wxDefaultSize ;
33910 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33911 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33912 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33913 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33914 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33915 wxString *arg7 = (wxString *) &arg7_defvalue ;
33916 wxPyTreeCtrl *result = 0 ;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 int val2 ;
33920 int ecode2 = 0 ;
33921 wxPoint temp3 ;
33922 wxSize temp4 ;
33923 long val5 ;
33924 int ecode5 = 0 ;
33925 void *argp6 = 0 ;
33926 int res6 = 0 ;
33927 bool temp7 = false ;
33928 PyObject * obj0 = 0 ;
33929 PyObject * obj1 = 0 ;
33930 PyObject * obj2 = 0 ;
33931 PyObject * obj3 = 0 ;
33932 PyObject * obj4 = 0 ;
33933 PyObject * obj5 = 0 ;
33934 PyObject * obj6 = 0 ;
33935 char * kwnames[] = {
33936 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33937 };
33938
33939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33941 if (!SWIG_IsOK(res1)) {
33942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33943 }
33944 arg1 = reinterpret_cast< wxWindow * >(argp1);
33945 if (obj1) {
33946 ecode2 = SWIG_AsVal_int(obj1, &val2);
33947 if (!SWIG_IsOK(ecode2)) {
33948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33949 }
33950 arg2 = static_cast< int >(val2);
33951 }
33952 if (obj2) {
d55e5bfc 33953 {
554f62e9
RD
33954 arg3 = &temp3;
33955 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33956 }
554f62e9
RD
33957 }
33958 if (obj3) {
d55e5bfc 33959 {
554f62e9
RD
33960 arg4 = &temp4;
33961 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33962 }
554f62e9
RD
33963 }
33964 if (obj4) {
33965 ecode5 = SWIG_AsVal_long(obj4, &val5);
33966 if (!SWIG_IsOK(ecode5)) {
33967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33968 }
33969 arg5 = static_cast< long >(val5);
33970 }
33971 if (obj5) {
33972 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33973 if (!SWIG_IsOK(res6)) {
33974 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33975 }
554f62e9
RD
33976 if (!argp6) {
33977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33978 }
554f62e9
RD
33979 arg6 = reinterpret_cast< wxValidator * >(argp6);
33980 }
33981 if (obj6) {
d55e5bfc 33982 {
554f62e9
RD
33983 arg7 = wxString_in_helper(obj6);
33984 if (arg7 == NULL) SWIG_fail;
33985 temp7 = true;
d55e5bfc 33986 }
554f62e9
RD
33987 }
33988 {
33989 if (!wxPyCheckForApp()) SWIG_fail;
33990 PyThreadState* __tstate = wxPyBeginAllowThreads();
33991 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33992 wxPyEndAllowThreads(__tstate);
33993 if (PyErr_Occurred()) SWIG_fail;
33994 }
33995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33996 {
33997 if (temp7)
33998 delete arg7;
33999 }
34000 return resultobj;
34001fail:
34002 {
34003 if (temp7)
34004 delete arg7;
34005 }
34006 return NULL;
d55e5bfc
RD
34007}
34008
34009
554f62e9
RD
34010SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34011 PyObject *resultobj = 0;
34012 wxPyTreeCtrl *result = 0 ;
34013
34014 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34015 {
34016 if (!wxPyCheckForApp()) SWIG_fail;
34017 PyThreadState* __tstate = wxPyBeginAllowThreads();
34018 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34019 wxPyEndAllowThreads(__tstate);
34020 if (PyErr_Occurred()) SWIG_fail;
34021 }
34022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34023 return resultobj;
34024fail:
34025 return NULL;
34026}
34027
34028
34029SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj = 0;
34031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34032 wxWindow *arg2 = (wxWindow *) 0 ;
34033 int arg3 = (int) -1 ;
34034 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34035 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34036 wxSize const &arg5_defvalue = wxDefaultSize ;
34037 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34038 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34041 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34042 wxString *arg8 = (wxString *) &arg8_defvalue ;
34043 bool result;
34044 void *argp1 = 0 ;
34045 int res1 = 0 ;
34046 void *argp2 = 0 ;
34047 int res2 = 0 ;
34048 int val3 ;
34049 int ecode3 = 0 ;
34050 wxPoint temp4 ;
34051 wxSize temp5 ;
34052 long val6 ;
34053 int ecode6 = 0 ;
34054 void *argp7 = 0 ;
34055 int res7 = 0 ;
34056 bool temp8 = false ;
34057 PyObject * obj0 = 0 ;
34058 PyObject * obj1 = 0 ;
34059 PyObject * obj2 = 0 ;
34060 PyObject * obj3 = 0 ;
34061 PyObject * obj4 = 0 ;
34062 PyObject * obj5 = 0 ;
34063 PyObject * obj6 = 0 ;
34064 PyObject * obj7 = 0 ;
34065 char * kwnames[] = {
34066 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34067 };
34068
34069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34071 if (!SWIG_IsOK(res1)) {
34072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34073 }
34074 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34076 if (!SWIG_IsOK(res2)) {
34077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34078 }
34079 arg2 = reinterpret_cast< wxWindow * >(argp2);
34080 if (obj2) {
34081 ecode3 = SWIG_AsVal_int(obj2, &val3);
34082 if (!SWIG_IsOK(ecode3)) {
34083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34084 }
34085 arg3 = static_cast< int >(val3);
34086 }
34087 if (obj3) {
d55e5bfc 34088 {
554f62e9
RD
34089 arg4 = &temp4;
34090 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34091 }
554f62e9
RD
34092 }
34093 if (obj4) {
d55e5bfc 34094 {
554f62e9
RD
34095 arg5 = &temp5;
34096 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 34097 }
554f62e9
RD
34098 }
34099 if (obj5) {
34100 ecode6 = SWIG_AsVal_long(obj5, &val6);
34101 if (!SWIG_IsOK(ecode6)) {
34102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34103 }
34104 arg6 = static_cast< long >(val6);
34105 }
34106 if (obj6) {
34107 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34108 if (!SWIG_IsOK(res7)) {
34109 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34110 }
554f62e9
RD
34111 if (!argp7) {
34112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34113 }
554f62e9
RD
34114 arg7 = reinterpret_cast< wxValidator * >(argp7);
34115 }
34116 if (obj7) {
d55e5bfc 34117 {
554f62e9
RD
34118 arg8 = wxString_in_helper(obj7);
34119 if (arg8 == NULL) SWIG_fail;
34120 temp8 = true;
d55e5bfc 34121 }
554f62e9
RD
34122 }
34123 {
34124 PyThreadState* __tstate = wxPyBeginAllowThreads();
34125 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34126 wxPyEndAllowThreads(__tstate);
34127 if (PyErr_Occurred()) SWIG_fail;
34128 }
34129 {
34130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34131 }
34132 {
34133 if (temp8)
34134 delete arg8;
34135 }
34136 return resultobj;
34137fail:
34138 {
34139 if (temp8)
34140 delete arg8;
34141 }
34142 return NULL;
34143}
34144
34145
34146SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34147 PyObject *resultobj = 0;
34148 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34149 PyObject *arg2 = (PyObject *) 0 ;
34150 PyObject *arg3 = (PyObject *) 0 ;
34151 void *argp1 = 0 ;
34152 int res1 = 0 ;
34153 PyObject * obj0 = 0 ;
34154 PyObject * obj1 = 0 ;
34155 PyObject * obj2 = 0 ;
34156 char * kwnames[] = {
34157 (char *) "self",(char *) "self",(char *) "_class", NULL
34158 };
34159
34160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34162 if (!SWIG_IsOK(res1)) {
34163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34164 }
34165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34166 arg2 = obj1;
34167 arg3 = obj2;
34168 {
34169 PyThreadState* __tstate = wxPyBeginAllowThreads();
34170 (arg1)->_setCallbackInfo(arg2,arg3);
34171 wxPyEndAllowThreads(__tstate);
34172 if (PyErr_Occurred()) SWIG_fail;
34173 }
34174 resultobj = SWIG_Py_Void();
34175 return resultobj;
34176fail:
34177 return NULL;
d55e5bfc
RD
34178}
34179
34180
554f62e9
RD
34181SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34182 PyObject *resultobj = 0;
34183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34184 unsigned int result;
554f62e9
RD
34185 void *argp1 = 0 ;
34186 int res1 = 0 ;
34187 PyObject *swig_obj[1] ;
34188
34189 if (!args) SWIG_fail;
34190 swig_obj[0] = args;
34191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34192 if (!SWIG_IsOK(res1)) {
34193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34194 }
34195 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34196 {
34197 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34198 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
554f62e9
RD
34199 wxPyEndAllowThreads(__tstate);
34200 if (PyErr_Occurred()) SWIG_fail;
34201 }
e9d6f3a4 34202 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
34203 return resultobj;
34204fail:
34205 return NULL;
d55e5bfc
RD
34206}
34207
34208
554f62e9
RD
34209SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34210 PyObject *resultobj = 0;
34211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34212 unsigned int result;
34213 void *argp1 = 0 ;
34214 int res1 = 0 ;
34215 PyObject *swig_obj[1] ;
34216
34217 if (!args) SWIG_fail;
34218 swig_obj[0] = args;
34219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34220 if (!SWIG_IsOK(res1)) {
34221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34222 }
34223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34224 {
34225 PyThreadState* __tstate = wxPyBeginAllowThreads();
34226 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34227 wxPyEndAllowThreads(__tstate);
34228 if (PyErr_Occurred()) SWIG_fail;
34229 }
34230 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34231 return resultobj;
34232fail:
34233 return NULL;
34234}
34235
34236
34237SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34238 PyObject *resultobj = 0;
34239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34240 unsigned int arg2 ;
34241 void *argp1 = 0 ;
34242 int res1 = 0 ;
34243 unsigned int val2 ;
34244 int ecode2 = 0 ;
34245 PyObject * obj0 = 0 ;
34246 PyObject * obj1 = 0 ;
34247 char * kwnames[] = {
34248 (char *) "self",(char *) "indent", NULL
34249 };
34250
34251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34253 if (!SWIG_IsOK(res1)) {
34254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34255 }
34256 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34257 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34258 if (!SWIG_IsOK(ecode2)) {
34259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34260 }
34261 arg2 = static_cast< unsigned int >(val2);
34262 {
34263 PyThreadState* __tstate = wxPyBeginAllowThreads();
34264 (arg1)->SetIndent(arg2);
34265 wxPyEndAllowThreads(__tstate);
34266 if (PyErr_Occurred()) SWIG_fail;
34267 }
34268 resultobj = SWIG_Py_Void();
34269 return resultobj;
34270fail:
34271 return NULL;
d55e5bfc
RD
34272}
34273
34274
554f62e9
RD
34275SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34276 PyObject *resultobj = 0;
34277 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34278 unsigned int result;
34279 void *argp1 = 0 ;
34280 int res1 = 0 ;
34281 PyObject *swig_obj[1] ;
34282
34283 if (!args) SWIG_fail;
34284 swig_obj[0] = args;
34285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34286 if (!SWIG_IsOK(res1)) {
34287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34288 }
34289 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34290 {
34291 PyThreadState* __tstate = wxPyBeginAllowThreads();
34292 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34293 wxPyEndAllowThreads(__tstate);
34294 if (PyErr_Occurred()) SWIG_fail;
34295 }
34296 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34297 return resultobj;
34298fail:
34299 return NULL;
34300}
34301
34302
34303SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34304 PyObject *resultobj = 0;
34305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34306 unsigned int arg2 ;
34307 void *argp1 = 0 ;
34308 int res1 = 0 ;
34309 unsigned int val2 ;
34310 int ecode2 = 0 ;
34311 PyObject * obj0 = 0 ;
34312 PyObject * obj1 = 0 ;
34313 char * kwnames[] = {
34314 (char *) "self",(char *) "spacing", NULL
34315 };
34316
34317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34319 if (!SWIG_IsOK(res1)) {
34320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34321 }
34322 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34323 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34324 if (!SWIG_IsOK(ecode2)) {
34325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34326 }
34327 arg2 = static_cast< unsigned int >(val2);
34328 {
34329 PyThreadState* __tstate = wxPyBeginAllowThreads();
34330 (arg1)->SetSpacing(arg2);
34331 wxPyEndAllowThreads(__tstate);
34332 if (PyErr_Occurred()) SWIG_fail;
34333 }
34334 resultobj = SWIG_Py_Void();
34335 return resultobj;
34336fail:
34337 return NULL;
d55e5bfc
RD
34338}
34339
34340
554f62e9
RD
34341SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34342 PyObject *resultobj = 0;
34343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34344 wxImageList *result = 0 ;
34345 void *argp1 = 0 ;
34346 int res1 = 0 ;
34347 PyObject *swig_obj[1] ;
34348
34349 if (!args) SWIG_fail;
34350 swig_obj[0] = args;
34351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34352 if (!SWIG_IsOK(res1)) {
34353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34354 }
34355 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34356 {
34357 PyThreadState* __tstate = wxPyBeginAllowThreads();
34358 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34359 wxPyEndAllowThreads(__tstate);
34360 if (PyErr_Occurred()) SWIG_fail;
34361 }
3ecece7e
RD
34362 {
34363 resultobj = wxPyMake_wxObject(result, (bool)0);
34364 }
554f62e9
RD
34365 return resultobj;
34366fail:
34367 return NULL;
d55e5bfc
RD
34368}
34369
34370
554f62e9
RD
34371SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34372 PyObject *resultobj = 0;
34373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34374 wxImageList *result = 0 ;
34375 void *argp1 = 0 ;
34376 int res1 = 0 ;
34377 PyObject *swig_obj[1] ;
34378
34379 if (!args) SWIG_fail;
34380 swig_obj[0] = args;
34381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34384 }
34385 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34386 {
34387 PyThreadState* __tstate = wxPyBeginAllowThreads();
34388 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34389 wxPyEndAllowThreads(__tstate);
34390 if (PyErr_Occurred()) SWIG_fail;
34391 }
3ecece7e
RD
34392 {
34393 resultobj = wxPyMake_wxObject(result, (bool)0);
34394 }
554f62e9
RD
34395 return resultobj;
34396fail:
34397 return NULL;
34398}
34399
34400
34401SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34402 PyObject *resultobj = 0;
34403 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34404 wxImageList *arg2 = (wxImageList *) 0 ;
34405 void *argp1 = 0 ;
34406 int res1 = 0 ;
34407 void *argp2 = 0 ;
34408 int res2 = 0 ;
34409 PyObject * obj0 = 0 ;
34410 PyObject * obj1 = 0 ;
34411 char * kwnames[] = {
34412 (char *) "self",(char *) "imageList", NULL
34413 };
34414
34415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34417 if (!SWIG_IsOK(res1)) {
34418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34419 }
34420 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34421 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34422 if (!SWIG_IsOK(res2)) {
34423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34424 }
34425 arg2 = reinterpret_cast< wxImageList * >(argp2);
34426 {
34427 PyThreadState* __tstate = wxPyBeginAllowThreads();
34428 (arg1)->SetImageList(arg2);
34429 wxPyEndAllowThreads(__tstate);
34430 if (PyErr_Occurred()) SWIG_fail;
34431 }
34432 resultobj = SWIG_Py_Void();
34433 return resultobj;
34434fail:
34435 return NULL;
34436}
34437
34438
34439SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34440 PyObject *resultobj = 0;
34441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34442 wxImageList *arg2 = (wxImageList *) 0 ;
34443 void *argp1 = 0 ;
34444 int res1 = 0 ;
34445 void *argp2 = 0 ;
34446 int res2 = 0 ;
34447 PyObject * obj0 = 0 ;
34448 PyObject * obj1 = 0 ;
34449 char * kwnames[] = {
34450 (char *) "self",(char *) "imageList", NULL
34451 };
34452
34453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34455 if (!SWIG_IsOK(res1)) {
34456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34457 }
34458 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34460 if (!SWIG_IsOK(res2)) {
34461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34462 }
34463 arg2 = reinterpret_cast< wxImageList * >(argp2);
34464 {
34465 PyThreadState* __tstate = wxPyBeginAllowThreads();
34466 (arg1)->SetStateImageList(arg2);
34467 wxPyEndAllowThreads(__tstate);
34468 if (PyErr_Occurred()) SWIG_fail;
34469 }
34470 resultobj = SWIG_Py_Void();
34471 return resultobj;
34472fail:
34473 return NULL;
34474}
34475
34476
34477SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34478 PyObject *resultobj = 0;
34479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34480 wxImageList *arg2 = (wxImageList *) 0 ;
34481 void *argp1 = 0 ;
34482 int res1 = 0 ;
34483 int res2 = 0 ;
34484 PyObject * obj0 = 0 ;
34485 PyObject * obj1 = 0 ;
34486 char * kwnames[] = {
34487 (char *) "self",(char *) "imageList", NULL
34488 };
34489
34490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34492 if (!SWIG_IsOK(res1)) {
34493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34494 }
34495 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34496 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34497 if (!SWIG_IsOK(res2)) {
34498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34499 }
34500 {
34501 PyThreadState* __tstate = wxPyBeginAllowThreads();
34502 (arg1)->AssignImageList(arg2);
34503 wxPyEndAllowThreads(__tstate);
34504 if (PyErr_Occurred()) SWIG_fail;
34505 }
34506 resultobj = SWIG_Py_Void();
34507 return resultobj;
34508fail:
34509 return NULL;
34510}
34511
34512
34513SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34514 PyObject *resultobj = 0;
34515 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34516 wxImageList *arg2 = (wxImageList *) 0 ;
34517 void *argp1 = 0 ;
34518 int res1 = 0 ;
34519 int res2 = 0 ;
34520 PyObject * obj0 = 0 ;
34521 PyObject * obj1 = 0 ;
34522 char * kwnames[] = {
34523 (char *) "self",(char *) "imageList", NULL
34524 };
34525
34526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34528 if (!SWIG_IsOK(res1)) {
34529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34530 }
34531 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34532 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34533 if (!SWIG_IsOK(res2)) {
34534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34535 }
34536 {
34537 PyThreadState* __tstate = wxPyBeginAllowThreads();
34538 (arg1)->AssignStateImageList(arg2);
34539 wxPyEndAllowThreads(__tstate);
34540 if (PyErr_Occurred()) SWIG_fail;
34541 }
34542 resultobj = SWIG_Py_Void();
34543 return resultobj;
34544fail:
34545 return NULL;
34546}
34547
34548
34549SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34550 PyObject *resultobj = 0;
34551 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34552 wxTreeItemId *arg2 = 0 ;
34553 wxString result;
34554 void *argp1 = 0 ;
34555 int res1 = 0 ;
34556 void *argp2 = 0 ;
34557 int res2 = 0 ;
34558 PyObject * obj0 = 0 ;
34559 PyObject * obj1 = 0 ;
34560 char * kwnames[] = {
34561 (char *) "self",(char *) "item", NULL
34562 };
34563
34564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34566 if (!SWIG_IsOK(res1)) {
34567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34568 }
34569 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34571 if (!SWIG_IsOK(res2)) {
34572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34573 }
34574 if (!argp2) {
34575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34576 }
34577 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34578 {
34579 PyThreadState* __tstate = wxPyBeginAllowThreads();
34580 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34581 wxPyEndAllowThreads(__tstate);
34582 if (PyErr_Occurred()) SWIG_fail;
34583 }
34584 {
34585#if wxUSE_UNICODE
34586 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34587#else
34588 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34589#endif
34590 }
34591 return resultobj;
34592fail:
34593 return NULL;
34594}
34595
34596
34597SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34598 PyObject *resultobj = 0;
34599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34600 wxTreeItemId *arg2 = 0 ;
34601 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34602 int result;
34603 void *argp1 = 0 ;
34604 int res1 = 0 ;
34605 void *argp2 = 0 ;
34606 int res2 = 0 ;
34607 int val3 ;
34608 int ecode3 = 0 ;
34609 PyObject * obj0 = 0 ;
34610 PyObject * obj1 = 0 ;
34611 PyObject * obj2 = 0 ;
34612 char * kwnames[] = {
34613 (char *) "self",(char *) "item",(char *) "which", NULL
34614 };
34615
34616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34618 if (!SWIG_IsOK(res1)) {
34619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34620 }
34621 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34623 if (!SWIG_IsOK(res2)) {
34624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34625 }
34626 if (!argp2) {
34627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34628 }
34629 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34630 if (obj2) {
34631 ecode3 = SWIG_AsVal_int(obj2, &val3);
34632 if (!SWIG_IsOK(ecode3)) {
34633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34634 }
34635 arg3 = static_cast< wxTreeItemIcon >(val3);
34636 }
34637 {
34638 PyThreadState* __tstate = wxPyBeginAllowThreads();
34639 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34640 wxPyEndAllowThreads(__tstate);
34641 if (PyErr_Occurred()) SWIG_fail;
34642 }
34643 resultobj = SWIG_From_int(static_cast< int >(result));
34644 return resultobj;
34645fail:
34646 return NULL;
34647}
34648
34649
34650SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34651 PyObject *resultobj = 0;
34652 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34653 wxTreeItemId *arg2 = 0 ;
34654 wxPyTreeItemData *result = 0 ;
34655 void *argp1 = 0 ;
34656 int res1 = 0 ;
34657 void *argp2 = 0 ;
34658 int res2 = 0 ;
34659 PyObject * obj0 = 0 ;
34660 PyObject * obj1 = 0 ;
34661 char * kwnames[] = {
34662 (char *) "self",(char *) "item", NULL
34663 };
34664
34665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34667 if (!SWIG_IsOK(res1)) {
34668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34669 }
34670 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34672 if (!SWIG_IsOK(res2)) {
34673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34674 }
34675 if (!argp2) {
34676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34677 }
34678 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34679 {
34680 PyThreadState* __tstate = wxPyBeginAllowThreads();
34681 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34682 wxPyEndAllowThreads(__tstate);
34683 if (PyErr_Occurred()) SWIG_fail;
34684 }
34685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34686 return resultobj;
34687fail:
34688 return NULL;
34689}
34690
34691
34692SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34693 PyObject *resultobj = 0;
34694 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34695 wxTreeItemId *arg2 = 0 ;
34696 PyObject *result = 0 ;
34697 void *argp1 = 0 ;
34698 int res1 = 0 ;
34699 void *argp2 = 0 ;
34700 int res2 = 0 ;
34701 PyObject * obj0 = 0 ;
34702 PyObject * obj1 = 0 ;
34703 char * kwnames[] = {
34704 (char *) "self",(char *) "item", NULL
34705 };
34706
34707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34709 if (!SWIG_IsOK(res1)) {
34710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34711 }
34712 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34714 if (!SWIG_IsOK(res2)) {
34715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34716 }
34717 if (!argp2) {
34718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34719 }
34720 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34721 {
34722 PyThreadState* __tstate = wxPyBeginAllowThreads();
34723 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34724 wxPyEndAllowThreads(__tstate);
34725 if (PyErr_Occurred()) SWIG_fail;
34726 }
34727 resultobj = result;
34728 return resultobj;
34729fail:
34730 return NULL;
34731}
34732
34733
34734SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34735 PyObject *resultobj = 0;
34736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34737 wxTreeItemId *arg2 = 0 ;
34738 wxColour result;
34739 void *argp1 = 0 ;
34740 int res1 = 0 ;
34741 void *argp2 = 0 ;
34742 int res2 = 0 ;
34743 PyObject * obj0 = 0 ;
34744 PyObject * obj1 = 0 ;
34745 char * kwnames[] = {
34746 (char *) "self",(char *) "item", NULL
34747 };
34748
34749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34751 if (!SWIG_IsOK(res1)) {
34752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34753 }
34754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34756 if (!SWIG_IsOK(res2)) {
34757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34758 }
34759 if (!argp2) {
34760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34761 }
34762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34763 {
34764 PyThreadState* __tstate = wxPyBeginAllowThreads();
34765 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34766 wxPyEndAllowThreads(__tstate);
34767 if (PyErr_Occurred()) SWIG_fail;
34768 }
34769 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34770 return resultobj;
34771fail:
34772 return NULL;
34773}
34774
34775
34776SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34777 PyObject *resultobj = 0;
34778 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34779 wxTreeItemId *arg2 = 0 ;
34780 wxColour result;
34781 void *argp1 = 0 ;
34782 int res1 = 0 ;
34783 void *argp2 = 0 ;
34784 int res2 = 0 ;
34785 PyObject * obj0 = 0 ;
34786 PyObject * obj1 = 0 ;
34787 char * kwnames[] = {
34788 (char *) "self",(char *) "item", NULL
34789 };
34790
34791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34793 if (!SWIG_IsOK(res1)) {
34794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34795 }
34796 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34798 if (!SWIG_IsOK(res2)) {
34799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34800 }
34801 if (!argp2) {
34802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34803 }
34804 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34805 {
34806 PyThreadState* __tstate = wxPyBeginAllowThreads();
34807 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34808 wxPyEndAllowThreads(__tstate);
34809 if (PyErr_Occurred()) SWIG_fail;
34810 }
34811 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34812 return resultobj;
34813fail:
34814 return NULL;
34815}
34816
34817
34818SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34819 PyObject *resultobj = 0;
34820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34821 wxTreeItemId *arg2 = 0 ;
34822 wxFont result;
34823 void *argp1 = 0 ;
34824 int res1 = 0 ;
34825 void *argp2 = 0 ;
34826 int res2 = 0 ;
34827 PyObject * obj0 = 0 ;
34828 PyObject * obj1 = 0 ;
34829 char * kwnames[] = {
34830 (char *) "self",(char *) "item", NULL
34831 };
34832
34833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34835 if (!SWIG_IsOK(res1)) {
34836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34837 }
34838 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34840 if (!SWIG_IsOK(res2)) {
34841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34842 }
34843 if (!argp2) {
34844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34845 }
34846 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34847 {
34848 PyThreadState* __tstate = wxPyBeginAllowThreads();
34849 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34850 wxPyEndAllowThreads(__tstate);
34851 if (PyErr_Occurred()) SWIG_fail;
34852 }
34853 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34854 return resultobj;
34855fail:
34856 return NULL;
34857}
34858
34859
34860SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34861 PyObject *resultobj = 0;
34862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34863 wxTreeItemId *arg2 = 0 ;
34864 wxString *arg3 = 0 ;
34865 void *argp1 = 0 ;
34866 int res1 = 0 ;
34867 void *argp2 = 0 ;
34868 int res2 = 0 ;
34869 bool temp3 = false ;
34870 PyObject * obj0 = 0 ;
34871 PyObject * obj1 = 0 ;
34872 PyObject * obj2 = 0 ;
34873 char * kwnames[] = {
34874 (char *) "self",(char *) "item",(char *) "text", NULL
34875 };
34876
34877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34879 if (!SWIG_IsOK(res1)) {
34880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34881 }
34882 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34884 if (!SWIG_IsOK(res2)) {
34885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34886 }
34887 if (!argp2) {
34888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34889 }
34890 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34891 {
34892 arg3 = wxString_in_helper(obj2);
34893 if (arg3 == NULL) SWIG_fail;
34894 temp3 = true;
34895 }
34896 {
34897 PyThreadState* __tstate = wxPyBeginAllowThreads();
34898 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34899 wxPyEndAllowThreads(__tstate);
34900 if (PyErr_Occurred()) SWIG_fail;
34901 }
34902 resultobj = SWIG_Py_Void();
34903 {
34904 if (temp3)
34905 delete arg3;
34906 }
34907 return resultobj;
34908fail:
34909 {
34910 if (temp3)
34911 delete arg3;
34912 }
34913 return NULL;
34914}
34915
34916
34917SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34918 PyObject *resultobj = 0;
34919 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34920 wxTreeItemId *arg2 = 0 ;
34921 int arg3 ;
34922 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34923 void *argp1 = 0 ;
34924 int res1 = 0 ;
34925 void *argp2 = 0 ;
34926 int res2 = 0 ;
34927 int val3 ;
34928 int ecode3 = 0 ;
34929 int val4 ;
34930 int ecode4 = 0 ;
34931 PyObject * obj0 = 0 ;
34932 PyObject * obj1 = 0 ;
34933 PyObject * obj2 = 0 ;
34934 PyObject * obj3 = 0 ;
34935 char * kwnames[] = {
34936 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34937 };
34938
34939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34941 if (!SWIG_IsOK(res1)) {
34942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34943 }
34944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34946 if (!SWIG_IsOK(res2)) {
34947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34948 }
34949 if (!argp2) {
34950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34951 }
34952 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34953 ecode3 = SWIG_AsVal_int(obj2, &val3);
34954 if (!SWIG_IsOK(ecode3)) {
34955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34956 }
34957 arg3 = static_cast< int >(val3);
34958 if (obj3) {
34959 ecode4 = SWIG_AsVal_int(obj3, &val4);
34960 if (!SWIG_IsOK(ecode4)) {
34961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34962 }
34963 arg4 = static_cast< wxTreeItemIcon >(val4);
34964 }
34965 {
34966 PyThreadState* __tstate = wxPyBeginAllowThreads();
34967 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34968 wxPyEndAllowThreads(__tstate);
34969 if (PyErr_Occurred()) SWIG_fail;
34970 }
34971 resultobj = SWIG_Py_Void();
34972 return resultobj;
34973fail:
34974 return NULL;
34975}
34976
34977
34978SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34979 PyObject *resultobj = 0;
34980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34981 wxTreeItemId *arg2 = 0 ;
34982 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34983 void *argp1 = 0 ;
34984 int res1 = 0 ;
34985 void *argp2 = 0 ;
34986 int res2 = 0 ;
34987 int res3 = 0 ;
34988 PyObject * obj0 = 0 ;
34989 PyObject * obj1 = 0 ;
34990 PyObject * obj2 = 0 ;
34991 char * kwnames[] = {
34992 (char *) "self",(char *) "item",(char *) "data", NULL
34993 };
34994
34995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34997 if (!SWIG_IsOK(res1)) {
34998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34999 }
35000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35002 if (!SWIG_IsOK(res2)) {
35003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35004 }
35005 if (!argp2) {
35006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35007 }
35008 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35009 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35010 if (!SWIG_IsOK(res3)) {
35011 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35012 }
35013 {
35014 PyThreadState* __tstate = wxPyBeginAllowThreads();
35015 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35016 wxPyEndAllowThreads(__tstate);
35017 if (PyErr_Occurred()) SWIG_fail;
35018 }
35019 resultobj = SWIG_Py_Void();
35020 return resultobj;
35021fail:
35022 return NULL;
35023}
35024
35025
35026SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35027 PyObject *resultobj = 0;
35028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35029 wxTreeItemId *arg2 = 0 ;
35030 PyObject *arg3 = (PyObject *) 0 ;
35031 void *argp1 = 0 ;
35032 int res1 = 0 ;
35033 void *argp2 = 0 ;
35034 int res2 = 0 ;
35035 PyObject * obj0 = 0 ;
35036 PyObject * obj1 = 0 ;
35037 PyObject * obj2 = 0 ;
35038 char * kwnames[] = {
35039 (char *) "self",(char *) "item",(char *) "obj", NULL
35040 };
35041
35042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35044 if (!SWIG_IsOK(res1)) {
35045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35046 }
35047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35049 if (!SWIG_IsOK(res2)) {
35050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35051 }
35052 if (!argp2) {
35053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35054 }
35055 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35056 arg3 = obj2;
35057 {
35058 PyThreadState* __tstate = wxPyBeginAllowThreads();
35059 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35060 wxPyEndAllowThreads(__tstate);
35061 if (PyErr_Occurred()) SWIG_fail;
35062 }
35063 resultobj = SWIG_Py_Void();
35064 return resultobj;
35065fail:
35066 return NULL;
35067}
35068
35069
35070SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35071 PyObject *resultobj = 0;
35072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35073 wxTreeItemId *arg2 = 0 ;
35074 bool arg3 = (bool) true ;
35075 void *argp1 = 0 ;
35076 int res1 = 0 ;
35077 void *argp2 = 0 ;
35078 int res2 = 0 ;
35079 bool val3 ;
35080 int ecode3 = 0 ;
35081 PyObject * obj0 = 0 ;
35082 PyObject * obj1 = 0 ;
35083 PyObject * obj2 = 0 ;
35084 char * kwnames[] = {
35085 (char *) "self",(char *) "item",(char *) "has", NULL
35086 };
35087
35088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35090 if (!SWIG_IsOK(res1)) {
35091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35092 }
35093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35095 if (!SWIG_IsOK(res2)) {
35096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35097 }
35098 if (!argp2) {
35099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35100 }
35101 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35102 if (obj2) {
35103 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35104 if (!SWIG_IsOK(ecode3)) {
35105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35106 }
35107 arg3 = static_cast< bool >(val3);
35108 }
35109 {
35110 PyThreadState* __tstate = wxPyBeginAllowThreads();
35111 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35112 wxPyEndAllowThreads(__tstate);
35113 if (PyErr_Occurred()) SWIG_fail;
35114 }
35115 resultobj = SWIG_Py_Void();
35116 return resultobj;
35117fail:
35118 return NULL;
35119}
35120
35121
35122SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35123 PyObject *resultobj = 0;
35124 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35125 wxTreeItemId *arg2 = 0 ;
35126 bool arg3 = (bool) true ;
35127 void *argp1 = 0 ;
35128 int res1 = 0 ;
35129 void *argp2 = 0 ;
35130 int res2 = 0 ;
35131 bool val3 ;
35132 int ecode3 = 0 ;
35133 PyObject * obj0 = 0 ;
35134 PyObject * obj1 = 0 ;
35135 PyObject * obj2 = 0 ;
35136 char * kwnames[] = {
35137 (char *) "self",(char *) "item",(char *) "bold", NULL
35138 };
35139
35140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35142 if (!SWIG_IsOK(res1)) {
35143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35144 }
35145 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35147 if (!SWIG_IsOK(res2)) {
35148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35149 }
35150 if (!argp2) {
35151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35152 }
35153 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35154 if (obj2) {
35155 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35156 if (!SWIG_IsOK(ecode3)) {
35157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35158 }
35159 arg3 = static_cast< bool >(val3);
35160 }
35161 {
35162 PyThreadState* __tstate = wxPyBeginAllowThreads();
35163 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35164 wxPyEndAllowThreads(__tstate);
35165 if (PyErr_Occurred()) SWIG_fail;
35166 }
35167 resultobj = SWIG_Py_Void();
35168 return resultobj;
35169fail:
35170 return NULL;
35171}
35172
35173
35174SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35175 PyObject *resultobj = 0;
35176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35177 wxTreeItemId *arg2 = 0 ;
35178 bool arg3 = (bool) true ;
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 *) "highlight", NULL
35190 };
35191
35192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",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_SetItemDropHighlight" "', 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_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35201 }
35202 if (!argp2) {
35203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', 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_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35210 }
35211 arg3 = static_cast< bool >(val3);
35212 }
35213 {
35214 PyThreadState* __tstate = wxPyBeginAllowThreads();
35215 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35216 wxPyEndAllowThreads(__tstate);
35217 if (PyErr_Occurred()) SWIG_fail;
35218 }
35219 resultobj = SWIG_Py_Void();
35220 return resultobj;
35221fail:
35222 return NULL;
35223}
35224
35225
35226SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35227 PyObject *resultobj = 0;
35228 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35229 wxTreeItemId *arg2 = 0 ;
35230 wxColour *arg3 = 0 ;
35231 void *argp1 = 0 ;
35232 int res1 = 0 ;
35233 void *argp2 = 0 ;
35234 int res2 = 0 ;
35235 wxColour temp3 ;
35236 PyObject * obj0 = 0 ;
35237 PyObject * obj1 = 0 ;
35238 PyObject * obj2 = 0 ;
35239 char * kwnames[] = {
35240 (char *) "self",(char *) "item",(char *) "col", NULL
35241 };
35242
35243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35245 if (!SWIG_IsOK(res1)) {
35246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35247 }
35248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35250 if (!SWIG_IsOK(res2)) {
35251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35252 }
35253 if (!argp2) {
35254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35257 {
35258 arg3 = &temp3;
35259 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35260 }
35261 {
35262 PyThreadState* __tstate = wxPyBeginAllowThreads();
35263 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35264 wxPyEndAllowThreads(__tstate);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 }
35267 resultobj = SWIG_Py_Void();
35268 return resultobj;
35269fail:
35270 return NULL;
35271}
35272
35273
35274SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35275 PyObject *resultobj = 0;
35276 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35277 wxTreeItemId *arg2 = 0 ;
35278 wxColour *arg3 = 0 ;
35279 void *argp1 = 0 ;
35280 int res1 = 0 ;
35281 void *argp2 = 0 ;
35282 int res2 = 0 ;
35283 wxColour temp3 ;
35284 PyObject * obj0 = 0 ;
35285 PyObject * obj1 = 0 ;
35286 PyObject * obj2 = 0 ;
35287 char * kwnames[] = {
35288 (char *) "self",(char *) "item",(char *) "col", NULL
35289 };
35290
35291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35293 if (!SWIG_IsOK(res1)) {
35294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35295 }
35296 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35298 if (!SWIG_IsOK(res2)) {
35299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35300 }
35301 if (!argp2) {
35302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35303 }
35304 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35305 {
35306 arg3 = &temp3;
35307 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35308 }
35309 {
35310 PyThreadState* __tstate = wxPyBeginAllowThreads();
35311 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35312 wxPyEndAllowThreads(__tstate);
35313 if (PyErr_Occurred()) SWIG_fail;
35314 }
35315 resultobj = SWIG_Py_Void();
35316 return resultobj;
35317fail:
35318 return NULL;
35319}
35320
35321
35322SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35323 PyObject *resultobj = 0;
35324 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35325 wxTreeItemId *arg2 = 0 ;
35326 wxFont *arg3 = 0 ;
35327 void *argp1 = 0 ;
35328 int res1 = 0 ;
35329 void *argp2 = 0 ;
35330 int res2 = 0 ;
35331 void *argp3 = 0 ;
35332 int res3 = 0 ;
35333 PyObject * obj0 = 0 ;
35334 PyObject * obj1 = 0 ;
35335 PyObject * obj2 = 0 ;
35336 char * kwnames[] = {
35337 (char *) "self",(char *) "item",(char *) "font", NULL
35338 };
35339
35340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35342 if (!SWIG_IsOK(res1)) {
35343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35344 }
35345 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35347 if (!SWIG_IsOK(res2)) {
35348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35349 }
35350 if (!argp2) {
35351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35352 }
35353 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35354 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35355 if (!SWIG_IsOK(res3)) {
35356 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35357 }
35358 if (!argp3) {
35359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35360 }
35361 arg3 = reinterpret_cast< wxFont * >(argp3);
35362 {
35363 PyThreadState* __tstate = wxPyBeginAllowThreads();
35364 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35365 wxPyEndAllowThreads(__tstate);
35366 if (PyErr_Occurred()) SWIG_fail;
35367 }
35368 resultobj = SWIG_Py_Void();
35369 return resultobj;
35370fail:
35371 return NULL;
35372}
35373
35374
35375SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35376 PyObject *resultobj = 0;
35377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35378 wxTreeItemId *arg2 = 0 ;
35379 bool result;
35380 void *argp1 = 0 ;
35381 int res1 = 0 ;
35382 void *argp2 = 0 ;
35383 int res2 = 0 ;
35384 PyObject * obj0 = 0 ;
35385 PyObject * obj1 = 0 ;
35386 char * kwnames[] = {
35387 (char *) "self",(char *) "item", NULL
35388 };
35389
35390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35392 if (!SWIG_IsOK(res1)) {
35393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35394 }
35395 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35397 if (!SWIG_IsOK(res2)) {
35398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35399 }
35400 if (!argp2) {
35401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35402 }
35403 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35404 {
35405 PyThreadState* __tstate = wxPyBeginAllowThreads();
35406 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35407 wxPyEndAllowThreads(__tstate);
35408 if (PyErr_Occurred()) SWIG_fail;
35409 }
35410 {
35411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35412 }
35413 return resultobj;
35414fail:
35415 return NULL;
35416}
35417
35418
35419SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35420 PyObject *resultobj = 0;
35421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35422 wxTreeItemId *arg2 = 0 ;
35423 bool result;
35424 void *argp1 = 0 ;
35425 int res1 = 0 ;
35426 void *argp2 = 0 ;
35427 int res2 = 0 ;
35428 PyObject * obj0 = 0 ;
35429 PyObject * obj1 = 0 ;
35430 char * kwnames[] = {
35431 (char *) "self",(char *) "item", NULL
35432 };
35433
35434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35436 if (!SWIG_IsOK(res1)) {
35437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35438 }
35439 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35441 if (!SWIG_IsOK(res2)) {
35442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35443 }
35444 if (!argp2) {
35445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35446 }
35447 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35448 {
35449 PyThreadState* __tstate = wxPyBeginAllowThreads();
35450 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35451 wxPyEndAllowThreads(__tstate);
35452 if (PyErr_Occurred()) SWIG_fail;
35453 }
35454 {
35455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35456 }
35457 return resultobj;
35458fail:
35459 return NULL;
35460}
35461
35462
35463SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35464 PyObject *resultobj = 0;
35465 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35466 wxTreeItemId *arg2 = 0 ;
35467 bool result;
35468 void *argp1 = 0 ;
35469 int res1 = 0 ;
35470 void *argp2 = 0 ;
35471 int res2 = 0 ;
35472 PyObject * obj0 = 0 ;
35473 PyObject * obj1 = 0 ;
35474 char * kwnames[] = {
35475 (char *) "self",(char *) "item", NULL
35476 };
35477
35478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35480 if (!SWIG_IsOK(res1)) {
35481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35482 }
35483 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35485 if (!SWIG_IsOK(res2)) {
35486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35487 }
35488 if (!argp2) {
35489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35490 }
35491 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35492 {
35493 PyThreadState* __tstate = wxPyBeginAllowThreads();
35494 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35495 wxPyEndAllowThreads(__tstate);
35496 if (PyErr_Occurred()) SWIG_fail;
35497 }
35498 {
35499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35500 }
35501 return resultobj;
35502fail:
35503 return NULL;
35504}
35505
35506
35507SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj = 0;
35509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35510 wxTreeItemId *arg2 = 0 ;
35511 bool result;
35512 void *argp1 = 0 ;
35513 int res1 = 0 ;
35514 void *argp2 = 0 ;
35515 int res2 = 0 ;
35516 PyObject * obj0 = 0 ;
35517 PyObject * obj1 = 0 ;
35518 char * kwnames[] = {
35519 (char *) "self",(char *) "item", NULL
35520 };
35521
35522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35524 if (!SWIG_IsOK(res1)) {
35525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35526 }
35527 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35528 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35529 if (!SWIG_IsOK(res2)) {
35530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35531 }
35532 if (!argp2) {
35533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35534 }
35535 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35536 {
35537 PyThreadState* __tstate = wxPyBeginAllowThreads();
35538 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35539 wxPyEndAllowThreads(__tstate);
35540 if (PyErr_Occurred()) SWIG_fail;
35541 }
35542 {
35543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35544 }
35545 return resultobj;
35546fail:
35547 return NULL;
35548}
35549
35550
35551SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35552 PyObject *resultobj = 0;
35553 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35554 wxTreeItemId *arg2 = 0 ;
35555 bool result;
35556 void *argp1 = 0 ;
35557 int res1 = 0 ;
35558 void *argp2 = 0 ;
35559 int res2 = 0 ;
35560 PyObject * obj0 = 0 ;
35561 PyObject * obj1 = 0 ;
35562 char * kwnames[] = {
35563 (char *) "self",(char *) "item", NULL
35564 };
35565
35566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35568 if (!SWIG_IsOK(res1)) {
35569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35570 }
35571 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35573 if (!SWIG_IsOK(res2)) {
35574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35575 }
35576 if (!argp2) {
35577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35578 }
35579 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35580 {
35581 PyThreadState* __tstate = wxPyBeginAllowThreads();
35582 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35583 wxPyEndAllowThreads(__tstate);
35584 if (PyErr_Occurred()) SWIG_fail;
35585 }
35586 {
35587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35588 }
35589 return resultobj;
35590fail:
35591 return NULL;
35592}
35593
35594
35595SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35596 PyObject *resultobj = 0;
35597 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35598 wxTreeItemId *arg2 = 0 ;
35599 bool arg3 = (bool) true ;
35600 size_t result;
35601 void *argp1 = 0 ;
35602 int res1 = 0 ;
35603 void *argp2 = 0 ;
35604 int res2 = 0 ;
35605 bool val3 ;
35606 int ecode3 = 0 ;
35607 PyObject * obj0 = 0 ;
35608 PyObject * obj1 = 0 ;
35609 PyObject * obj2 = 0 ;
35610 char * kwnames[] = {
35611 (char *) "self",(char *) "item",(char *) "recursively", NULL
35612 };
35613
35614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35616 if (!SWIG_IsOK(res1)) {
35617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35618 }
35619 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35621 if (!SWIG_IsOK(res2)) {
35622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35623 }
35624 if (!argp2) {
35625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35628 if (obj2) {
35629 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35630 if (!SWIG_IsOK(ecode3)) {
35631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35632 }
35633 arg3 = static_cast< bool >(val3);
35634 }
35635 {
35636 PyThreadState* __tstate = wxPyBeginAllowThreads();
35637 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35638 wxPyEndAllowThreads(__tstate);
35639 if (PyErr_Occurred()) SWIG_fail;
35640 }
35641 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35642 return resultobj;
35643fail:
35644 return NULL;
d55e5bfc
RD
35645}
35646
35647
554f62e9
RD
35648SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35649 PyObject *resultobj = 0;
35650 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35651 wxTreeItemId result;
35652 void *argp1 = 0 ;
35653 int res1 = 0 ;
35654 PyObject *swig_obj[1] ;
35655
35656 if (!args) SWIG_fail;
35657 swig_obj[0] = args;
35658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35659 if (!SWIG_IsOK(res1)) {
35660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35661 }
35662 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35663 {
35664 PyThreadState* __tstate = wxPyBeginAllowThreads();
35665 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35666 wxPyEndAllowThreads(__tstate);
35667 if (PyErr_Occurred()) SWIG_fail;
35668 }
35669 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35670 return resultobj;
35671fail:
35672 return NULL;
d55e5bfc
RD
35673}
35674
35675
554f62e9
RD
35676SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35677 PyObject *resultobj = 0;
35678 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35679 wxTreeItemId result;
35680 void *argp1 = 0 ;
35681 int res1 = 0 ;
35682 PyObject *swig_obj[1] ;
35683
35684 if (!args) SWIG_fail;
35685 swig_obj[0] = args;
35686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35687 if (!SWIG_IsOK(res1)) {
35688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35689 }
35690 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35691 {
35692 PyThreadState* __tstate = wxPyBeginAllowThreads();
35693 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35694 wxPyEndAllowThreads(__tstate);
35695 if (PyErr_Occurred()) SWIG_fail;
35696 }
35697 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35698 return resultobj;
35699fail:
35700 return NULL;
d55e5bfc
RD
35701}
35702
35703
554f62e9
RD
35704SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35705 PyObject *resultobj = 0;
35706 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35707 PyObject *result = 0 ;
35708 void *argp1 = 0 ;
35709 int res1 = 0 ;
35710 PyObject *swig_obj[1] ;
35711
35712 if (!args) SWIG_fail;
35713 swig_obj[0] = args;
35714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35715 if (!SWIG_IsOK(res1)) {
35716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35717 }
35718 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35719 {
35720 PyThreadState* __tstate = wxPyBeginAllowThreads();
35721 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35722 wxPyEndAllowThreads(__tstate);
35723 if (PyErr_Occurred()) SWIG_fail;
35724 }
35725 resultobj = result;
35726 return resultobj;
35727fail:
35728 return NULL;
35729}
35730
35731
35732SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35733 PyObject *resultobj = 0;
35734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35735 wxTreeItemId *arg2 = 0 ;
35736 wxTreeItemId result;
35737 void *argp1 = 0 ;
35738 int res1 = 0 ;
35739 void *argp2 = 0 ;
35740 int res2 = 0 ;
35741 PyObject * obj0 = 0 ;
35742 PyObject * obj1 = 0 ;
35743 char * kwnames[] = {
35744 (char *) "self",(char *) "item", NULL
35745 };
35746
35747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35749 if (!SWIG_IsOK(res1)) {
35750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35751 }
35752 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35754 if (!SWIG_IsOK(res2)) {
35755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35756 }
35757 if (!argp2) {
35758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35759 }
35760 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35761 {
35762 PyThreadState* __tstate = wxPyBeginAllowThreads();
35763 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35764 wxPyEndAllowThreads(__tstate);
35765 if (PyErr_Occurred()) SWIG_fail;
35766 }
35767 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35768 return resultobj;
35769fail:
35770 return NULL;
35771}
35772
35773
35774SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35775 PyObject *resultobj = 0;
35776 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35777 wxTreeItemId *arg2 = 0 ;
35778 PyObject *result = 0 ;
35779 void *argp1 = 0 ;
35780 int res1 = 0 ;
35781 void *argp2 = 0 ;
35782 int res2 = 0 ;
35783 PyObject * obj0 = 0 ;
35784 PyObject * obj1 = 0 ;
35785 char * kwnames[] = {
35786 (char *) "self",(char *) "item", NULL
35787 };
35788
35789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35791 if (!SWIG_IsOK(res1)) {
35792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35793 }
35794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35796 if (!SWIG_IsOK(res2)) {
35797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35798 }
35799 if (!argp2) {
35800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35801 }
35802 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35803 {
35804 PyThreadState* __tstate = wxPyBeginAllowThreads();
35805 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35806 wxPyEndAllowThreads(__tstate);
35807 if (PyErr_Occurred()) SWIG_fail;
35808 }
35809 resultobj = result;
35810 return resultobj;
35811fail:
35812 return NULL;
35813}
35814
35815
35816SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35817 PyObject *resultobj = 0;
35818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35819 wxTreeItemId *arg2 = 0 ;
35820 void *arg3 = (void *) 0 ;
35821 PyObject *result = 0 ;
35822 void *argp1 = 0 ;
35823 int res1 = 0 ;
35824 void *argp2 = 0 ;
35825 int res2 = 0 ;
35826 int res3 ;
35827 PyObject * obj0 = 0 ;
35828 PyObject * obj1 = 0 ;
35829 PyObject * obj2 = 0 ;
35830 char * kwnames[] = {
35831 (char *) "self",(char *) "item",(char *) "cookie", NULL
35832 };
35833
35834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35836 if (!SWIG_IsOK(res1)) {
35837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35838 }
35839 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35841 if (!SWIG_IsOK(res2)) {
35842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35843 }
35844 if (!argp2) {
35845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35846 }
35847 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35848 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35849 if (!SWIG_IsOK(res3)) {
35850 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35851 }
35852 {
35853 PyThreadState* __tstate = wxPyBeginAllowThreads();
35854 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35855 wxPyEndAllowThreads(__tstate);
35856 if (PyErr_Occurred()) SWIG_fail;
35857 }
35858 resultobj = result;
35859 return resultobj;
35860fail:
35861 return NULL;
35862}
35863
35864
35865SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35866 PyObject *resultobj = 0;
35867 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35868 wxTreeItemId *arg2 = 0 ;
35869 wxTreeItemId result;
35870 void *argp1 = 0 ;
35871 int res1 = 0 ;
35872 void *argp2 = 0 ;
35873 int res2 = 0 ;
35874 PyObject * obj0 = 0 ;
35875 PyObject * obj1 = 0 ;
35876 char * kwnames[] = {
35877 (char *) "self",(char *) "item", NULL
35878 };
35879
35880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) 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_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35889 }
35890 if (!argp2) {
35891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35892 }
35893 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35894 {
35895 PyThreadState* __tstate = wxPyBeginAllowThreads();
35896 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35897 wxPyEndAllowThreads(__tstate);
35898 if (PyErr_Occurred()) SWIG_fail;
35899 }
35900 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35901 return resultobj;
35902fail:
35903 return NULL;
35904}
35905
35906
35907SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35908 PyObject *resultobj = 0;
35909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35910 wxTreeItemId *arg2 = 0 ;
35911 wxTreeItemId result;
35912 void *argp1 = 0 ;
35913 int res1 = 0 ;
35914 void *argp2 = 0 ;
35915 int res2 = 0 ;
35916 PyObject * obj0 = 0 ;
35917 PyObject * obj1 = 0 ;
35918 char * kwnames[] = {
35919 (char *) "self",(char *) "item", NULL
35920 };
35921
35922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35924 if (!SWIG_IsOK(res1)) {
35925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35926 }
35927 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35929 if (!SWIG_IsOK(res2)) {
35930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35931 }
35932 if (!argp2) {
35933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35934 }
35935 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35936 {
35937 PyThreadState* __tstate = wxPyBeginAllowThreads();
35938 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35939 wxPyEndAllowThreads(__tstate);
35940 if (PyErr_Occurred()) SWIG_fail;
35941 }
35942 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35943 return resultobj;
35944fail:
35945 return NULL;
35946}
35947
35948
35949SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35950 PyObject *resultobj = 0;
35951 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35952 wxTreeItemId *arg2 = 0 ;
35953 wxTreeItemId result;
35954 void *argp1 = 0 ;
35955 int res1 = 0 ;
35956 void *argp2 = 0 ;
35957 int res2 = 0 ;
35958 PyObject * obj0 = 0 ;
35959 PyObject * obj1 = 0 ;
35960 char * kwnames[] = {
35961 (char *) "self",(char *) "item", NULL
35962 };
35963
35964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35966 if (!SWIG_IsOK(res1)) {
35967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35968 }
35969 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35971 if (!SWIG_IsOK(res2)) {
35972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35973 }
35974 if (!argp2) {
35975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35976 }
35977 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35978 {
35979 PyThreadState* __tstate = wxPyBeginAllowThreads();
35980 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35981 wxPyEndAllowThreads(__tstate);
35982 if (PyErr_Occurred()) SWIG_fail;
35983 }
35984 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35985 return resultobj;
35986fail:
35987 return NULL;
d55e5bfc
RD
35988}
35989
35990
554f62e9
RD
35991SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35992 PyObject *resultobj = 0;
35993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35994 wxTreeItemId result;
35995 void *argp1 = 0 ;
35996 int res1 = 0 ;
35997 PyObject *swig_obj[1] ;
35998
35999 if (!args) SWIG_fail;
36000 swig_obj[0] = args;
36001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36002 if (!SWIG_IsOK(res1)) {
36003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36004 }
36005 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36006 {
36007 PyThreadState* __tstate = wxPyBeginAllowThreads();
36008 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36009 wxPyEndAllowThreads(__tstate);
36010 if (PyErr_Occurred()) SWIG_fail;
36011 }
36012 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36013 return resultobj;
36014fail:
36015 return NULL;
36016}
36017
36018
36019SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36020 PyObject *resultobj = 0;
36021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36022 wxTreeItemId *arg2 = 0 ;
36023 wxTreeItemId result;
36024 void *argp1 = 0 ;
36025 int res1 = 0 ;
36026 void *argp2 = 0 ;
36027 int res2 = 0 ;
36028 PyObject * obj0 = 0 ;
36029 PyObject * obj1 = 0 ;
36030 char * kwnames[] = {
36031 (char *) "self",(char *) "item", NULL
36032 };
36033
36034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36036 if (!SWIG_IsOK(res1)) {
36037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36038 }
36039 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36041 if (!SWIG_IsOK(res2)) {
36042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36043 }
36044 if (!argp2) {
36045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36046 }
36047 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36048 {
36049 PyThreadState* __tstate = wxPyBeginAllowThreads();
36050 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36051 wxPyEndAllowThreads(__tstate);
36052 if (PyErr_Occurred()) SWIG_fail;
36053 }
36054 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36055 return resultobj;
36056fail:
36057 return NULL;
36058}
36059
36060
36061SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36062 PyObject *resultobj = 0;
36063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36064 wxTreeItemId *arg2 = 0 ;
36065 wxTreeItemId result;
36066 void *argp1 = 0 ;
36067 int res1 = 0 ;
36068 void *argp2 = 0 ;
36069 int res2 = 0 ;
36070 PyObject * obj0 = 0 ;
36071 PyObject * obj1 = 0 ;
36072 char * kwnames[] = {
36073 (char *) "self",(char *) "item", NULL
36074 };
36075
36076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36078 if (!SWIG_IsOK(res1)) {
36079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36080 }
36081 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36083 if (!SWIG_IsOK(res2)) {
36084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36085 }
36086 if (!argp2) {
36087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36088 }
36089 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36090 {
36091 PyThreadState* __tstate = wxPyBeginAllowThreads();
36092 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36093 wxPyEndAllowThreads(__tstate);
36094 if (PyErr_Occurred()) SWIG_fail;
36095 }
36096 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36097 return resultobj;
36098fail:
36099 return NULL;
36100}
36101
36102
36103SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36104 PyObject *resultobj = 0;
36105 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36106 wxString *arg2 = 0 ;
36107 int arg3 = (int) -1 ;
36108 int arg4 = (int) -1 ;
36109 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36110 wxTreeItemId result;
36111 void *argp1 = 0 ;
36112 int res1 = 0 ;
36113 bool temp2 = false ;
36114 int val3 ;
36115 int ecode3 = 0 ;
36116 int val4 ;
36117 int ecode4 = 0 ;
36118 int res5 = 0 ;
36119 PyObject * obj0 = 0 ;
36120 PyObject * obj1 = 0 ;
36121 PyObject * obj2 = 0 ;
36122 PyObject * obj3 = 0 ;
36123 PyObject * obj4 = 0 ;
36124 char * kwnames[] = {
36125 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36126 };
36127
36128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36130 if (!SWIG_IsOK(res1)) {
36131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36132 }
36133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36134 {
36135 arg2 = wxString_in_helper(obj1);
36136 if (arg2 == NULL) SWIG_fail;
36137 temp2 = true;
36138 }
36139 if (obj2) {
36140 ecode3 = SWIG_AsVal_int(obj2, &val3);
36141 if (!SWIG_IsOK(ecode3)) {
36142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36143 }
36144 arg3 = static_cast< int >(val3);
36145 }
36146 if (obj3) {
36147 ecode4 = SWIG_AsVal_int(obj3, &val4);
36148 if (!SWIG_IsOK(ecode4)) {
36149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36150 }
36151 arg4 = static_cast< int >(val4);
36152 }
36153 if (obj4) {
36154 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36155 if (!SWIG_IsOK(res5)) {
36156 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36157 }
554f62e9
RD
36158 }
36159 {
36160 PyThreadState* __tstate = wxPyBeginAllowThreads();
36161 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36162 wxPyEndAllowThreads(__tstate);
36163 if (PyErr_Occurred()) SWIG_fail;
36164 }
36165 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36166 {
36167 if (temp2)
36168 delete arg2;
36169 }
36170 return resultobj;
36171fail:
36172 {
36173 if (temp2)
36174 delete arg2;
36175 }
36176 return NULL;
36177}
36178
36179
36180SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36181 PyObject *resultobj = 0;
36182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36183 wxTreeItemId *arg2 = 0 ;
36184 wxString *arg3 = 0 ;
36185 int arg4 = (int) -1 ;
36186 int arg5 = (int) -1 ;
36187 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36188 wxTreeItemId result;
36189 void *argp1 = 0 ;
36190 int res1 = 0 ;
36191 void *argp2 = 0 ;
36192 int res2 = 0 ;
36193 bool temp3 = false ;
36194 int val4 ;
36195 int ecode4 = 0 ;
36196 int val5 ;
36197 int ecode5 = 0 ;
36198 int res6 = 0 ;
36199 PyObject * obj0 = 0 ;
36200 PyObject * obj1 = 0 ;
36201 PyObject * obj2 = 0 ;
36202 PyObject * obj3 = 0 ;
36203 PyObject * obj4 = 0 ;
36204 PyObject * obj5 = 0 ;
36205 char * kwnames[] = {
36206 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36207 };
36208
36209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36211 if (!SWIG_IsOK(res1)) {
36212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36213 }
36214 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36216 if (!SWIG_IsOK(res2)) {
36217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36218 }
36219 if (!argp2) {
36220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36221 }
36222 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36223 {
36224 arg3 = wxString_in_helper(obj2);
36225 if (arg3 == NULL) SWIG_fail;
36226 temp3 = true;
36227 }
36228 if (obj3) {
36229 ecode4 = SWIG_AsVal_int(obj3, &val4);
36230 if (!SWIG_IsOK(ecode4)) {
36231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36232 }
36233 arg4 = static_cast< int >(val4);
36234 }
36235 if (obj4) {
36236 ecode5 = SWIG_AsVal_int(obj4, &val5);
36237 if (!SWIG_IsOK(ecode5)) {
36238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36239 }
36240 arg5 = static_cast< int >(val5);
36241 }
36242 if (obj5) {
36243 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36244 if (!SWIG_IsOK(res6)) {
36245 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36246 }
554f62e9
RD
36247 }
36248 {
36249 PyThreadState* __tstate = wxPyBeginAllowThreads();
36250 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36251 wxPyEndAllowThreads(__tstate);
36252 if (PyErr_Occurred()) SWIG_fail;
36253 }
36254 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36255 {
36256 if (temp3)
36257 delete arg3;
36258 }
36259 return resultobj;
36260fail:
36261 {
36262 if (temp3)
36263 delete arg3;
36264 }
36265 return NULL;
36266}
36267
36268
36269SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36270 PyObject *resultobj = 0;
36271 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36272 wxTreeItemId *arg2 = 0 ;
36273 wxTreeItemId *arg3 = 0 ;
36274 wxString *arg4 = 0 ;
36275 int arg5 = (int) -1 ;
36276 int arg6 = (int) -1 ;
36277 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36278 wxTreeItemId result;
36279 void *argp1 = 0 ;
36280 int res1 = 0 ;
36281 void *argp2 = 0 ;
36282 int res2 = 0 ;
36283 void *argp3 = 0 ;
36284 int res3 = 0 ;
36285 bool temp4 = false ;
36286 int val5 ;
36287 int ecode5 = 0 ;
36288 int val6 ;
36289 int ecode6 = 0 ;
36290 int res7 = 0 ;
36291 PyObject * obj0 = 0 ;
36292 PyObject * obj1 = 0 ;
36293 PyObject * obj2 = 0 ;
36294 PyObject * obj3 = 0 ;
36295 PyObject * obj4 = 0 ;
36296 PyObject * obj5 = 0 ;
36297 PyObject * obj6 = 0 ;
36298 char * kwnames[] = {
36299 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36300 };
36301
36302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36304 if (!SWIG_IsOK(res1)) {
36305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36306 }
36307 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36308 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36309 if (!SWIG_IsOK(res2)) {
36310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36311 }
36312 if (!argp2) {
36313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36314 }
36315 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36316 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36317 if (!SWIG_IsOK(res3)) {
36318 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36319 }
36320 if (!argp3) {
36321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36322 }
36323 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36324 {
36325 arg4 = wxString_in_helper(obj3);
36326 if (arg4 == NULL) SWIG_fail;
36327 temp4 = true;
36328 }
36329 if (obj4) {
36330 ecode5 = SWIG_AsVal_int(obj4, &val5);
36331 if (!SWIG_IsOK(ecode5)) {
36332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36333 }
36334 arg5 = static_cast< int >(val5);
36335 }
36336 if (obj5) {
36337 ecode6 = SWIG_AsVal_int(obj5, &val6);
36338 if (!SWIG_IsOK(ecode6)) {
36339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36340 }
36341 arg6 = static_cast< int >(val6);
36342 }
36343 if (obj6) {
36344 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36345 if (!SWIG_IsOK(res7)) {
36346 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36347 }
554f62e9
RD
36348 }
36349 {
36350 PyThreadState* __tstate = wxPyBeginAllowThreads();
36351 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36352 wxPyEndAllowThreads(__tstate);
36353 if (PyErr_Occurred()) SWIG_fail;
36354 }
36355 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36356 {
36357 if (temp4)
36358 delete arg4;
36359 }
36360 return resultobj;
36361fail:
36362 {
36363 if (temp4)
36364 delete arg4;
36365 }
36366 return NULL;
36367}
36368
36369
36370SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36371 PyObject *resultobj = 0;
36372 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36373 wxTreeItemId *arg2 = 0 ;
36374 size_t arg3 ;
36375 wxString *arg4 = 0 ;
36376 int arg5 = (int) -1 ;
36377 int arg6 = (int) -1 ;
36378 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36379 wxTreeItemId result;
36380 void *argp1 = 0 ;
36381 int res1 = 0 ;
36382 void *argp2 = 0 ;
36383 int res2 = 0 ;
36384 size_t val3 ;
36385 int ecode3 = 0 ;
36386 bool temp4 = false ;
36387 int val5 ;
36388 int ecode5 = 0 ;
36389 int val6 ;
36390 int ecode6 = 0 ;
36391 int res7 = 0 ;
36392 PyObject * obj0 = 0 ;
36393 PyObject * obj1 = 0 ;
36394 PyObject * obj2 = 0 ;
36395 PyObject * obj3 = 0 ;
36396 PyObject * obj4 = 0 ;
36397 PyObject * obj5 = 0 ;
36398 PyObject * obj6 = 0 ;
36399 char * kwnames[] = {
36400 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36401 };
36402
36403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36405 if (!SWIG_IsOK(res1)) {
36406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36407 }
36408 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36410 if (!SWIG_IsOK(res2)) {
36411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36412 }
36413 if (!argp2) {
36414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36415 }
36416 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36417 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36418 if (!SWIG_IsOK(ecode3)) {
36419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36420 }
36421 arg3 = static_cast< size_t >(val3);
36422 {
36423 arg4 = wxString_in_helper(obj3);
36424 if (arg4 == NULL) SWIG_fail;
36425 temp4 = true;
36426 }
36427 if (obj4) {
36428 ecode5 = SWIG_AsVal_int(obj4, &val5);
36429 if (!SWIG_IsOK(ecode5)) {
36430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36431 }
36432 arg5 = static_cast< int >(val5);
36433 }
36434 if (obj5) {
36435 ecode6 = SWIG_AsVal_int(obj5, &val6);
36436 if (!SWIG_IsOK(ecode6)) {
36437 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36438 }
36439 arg6 = static_cast< int >(val6);
36440 }
36441 if (obj6) {
36442 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36443 if (!SWIG_IsOK(res7)) {
36444 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36445 }
554f62e9
RD
36446 }
36447 {
36448 PyThreadState* __tstate = wxPyBeginAllowThreads();
36449 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36450 wxPyEndAllowThreads(__tstate);
36451 if (PyErr_Occurred()) SWIG_fail;
36452 }
36453 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36454 {
36455 if (temp4)
36456 delete arg4;
36457 }
36458 return resultobj;
36459fail:
36460 {
36461 if (temp4)
36462 delete arg4;
36463 }
36464 return NULL;
36465}
36466
36467
36468SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36469 PyObject *resultobj = 0;
36470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36471 wxTreeItemId *arg2 = 0 ;
36472 wxString *arg3 = 0 ;
36473 int arg4 = (int) -1 ;
36474 int arg5 = (int) -1 ;
36475 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36476 wxTreeItemId result;
36477 void *argp1 = 0 ;
36478 int res1 = 0 ;
36479 void *argp2 = 0 ;
36480 int res2 = 0 ;
36481 bool temp3 = false ;
36482 int val4 ;
36483 int ecode4 = 0 ;
36484 int val5 ;
36485 int ecode5 = 0 ;
36486 int res6 = 0 ;
36487 PyObject * obj0 = 0 ;
36488 PyObject * obj1 = 0 ;
36489 PyObject * obj2 = 0 ;
36490 PyObject * obj3 = 0 ;
36491 PyObject * obj4 = 0 ;
36492 PyObject * obj5 = 0 ;
36493 char * kwnames[] = {
36494 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36495 };
36496
36497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36499 if (!SWIG_IsOK(res1)) {
36500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36501 }
36502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36504 if (!SWIG_IsOK(res2)) {
36505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36506 }
36507 if (!argp2) {
36508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36509 }
36510 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36511 {
36512 arg3 = wxString_in_helper(obj2);
36513 if (arg3 == NULL) SWIG_fail;
36514 temp3 = true;
36515 }
36516 if (obj3) {
36517 ecode4 = SWIG_AsVal_int(obj3, &val4);
36518 if (!SWIG_IsOK(ecode4)) {
36519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36520 }
36521 arg4 = static_cast< int >(val4);
36522 }
36523 if (obj4) {
36524 ecode5 = SWIG_AsVal_int(obj4, &val5);
36525 if (!SWIG_IsOK(ecode5)) {
36526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36527 }
36528 arg5 = static_cast< int >(val5);
36529 }
36530 if (obj5) {
36531 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36532 if (!SWIG_IsOK(res6)) {
36533 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36534 }
554f62e9
RD
36535 }
36536 {
36537 PyThreadState* __tstate = wxPyBeginAllowThreads();
36538 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36539 wxPyEndAllowThreads(__tstate);
36540 if (PyErr_Occurred()) SWIG_fail;
36541 }
36542 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36543 {
36544 if (temp3)
36545 delete arg3;
36546 }
36547 return resultobj;
36548fail:
36549 {
36550 if (temp3)
36551 delete arg3;
36552 }
36553 return NULL;
36554}
36555
36556
36557SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36558 PyObject *resultobj = 0;
36559 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36560 wxTreeItemId *arg2 = 0 ;
36561 void *argp1 = 0 ;
36562 int res1 = 0 ;
36563 void *argp2 = 0 ;
36564 int res2 = 0 ;
36565 PyObject * obj0 = 0 ;
36566 PyObject * obj1 = 0 ;
36567 char * kwnames[] = {
36568 (char *) "self",(char *) "item", NULL
36569 };
36570
36571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36573 if (!SWIG_IsOK(res1)) {
36574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36575 }
36576 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36578 if (!SWIG_IsOK(res2)) {
36579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36580 }
36581 if (!argp2) {
36582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36583 }
36584 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36585 {
36586 PyThreadState* __tstate = wxPyBeginAllowThreads();
36587 (arg1)->Delete((wxTreeItemId const &)*arg2);
36588 wxPyEndAllowThreads(__tstate);
36589 if (PyErr_Occurred()) SWIG_fail;
36590 }
36591 resultobj = SWIG_Py_Void();
36592 return resultobj;
36593fail:
36594 return NULL;
36595}
36596
36597
36598SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36599 PyObject *resultobj = 0;
36600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36601 wxTreeItemId *arg2 = 0 ;
36602 void *argp1 = 0 ;
36603 int res1 = 0 ;
36604 void *argp2 = 0 ;
36605 int res2 = 0 ;
36606 PyObject * obj0 = 0 ;
36607 PyObject * obj1 = 0 ;
36608 char * kwnames[] = {
36609 (char *) "self",(char *) "item", NULL
36610 };
36611
36612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36614 if (!SWIG_IsOK(res1)) {
36615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36616 }
36617 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36619 if (!SWIG_IsOK(res2)) {
36620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36621 }
36622 if (!argp2) {
36623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36624 }
36625 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = SWIG_Py_Void();
36633 return resultobj;
36634fail:
36635 return NULL;
d55e5bfc
RD
36636}
36637
36638
554f62e9
RD
36639SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36640 PyObject *resultobj = 0;
36641 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36642 void *argp1 = 0 ;
36643 int res1 = 0 ;
36644 PyObject *swig_obj[1] ;
36645
36646 if (!args) SWIG_fail;
36647 swig_obj[0] = args;
36648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36649 if (!SWIG_IsOK(res1)) {
36650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36651 }
36652 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36653 {
36654 PyThreadState* __tstate = wxPyBeginAllowThreads();
36655 (arg1)->DeleteAllItems();
36656 wxPyEndAllowThreads(__tstate);
36657 if (PyErr_Occurred()) SWIG_fail;
36658 }
36659 resultobj = SWIG_Py_Void();
36660 return resultobj;
36661fail:
36662 return NULL;
36663}
36664
36665
36666SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36667 PyObject *resultobj = 0;
36668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36669 wxTreeItemId *arg2 = 0 ;
36670 void *argp1 = 0 ;
36671 int res1 = 0 ;
36672 void *argp2 = 0 ;
36673 int res2 = 0 ;
36674 PyObject * obj0 = 0 ;
36675 PyObject * obj1 = 0 ;
36676 char * kwnames[] = {
36677 (char *) "self",(char *) "item", NULL
36678 };
36679
36680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36682 if (!SWIG_IsOK(res1)) {
36683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36684 }
36685 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36687 if (!SWIG_IsOK(res2)) {
36688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36689 }
36690 if (!argp2) {
36691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36692 }
36693 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36694 {
36695 PyThreadState* __tstate = wxPyBeginAllowThreads();
36696 (arg1)->Expand((wxTreeItemId const &)*arg2);
36697 wxPyEndAllowThreads(__tstate);
36698 if (PyErr_Occurred()) SWIG_fail;
36699 }
36700 resultobj = SWIG_Py_Void();
36701 return resultobj;
36702fail:
36703 return NULL;
36704}
36705
36706
453fb36b
RD
36707SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36708 PyObject *resultobj = 0;
36709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36710 wxTreeItemId *arg2 = 0 ;
36711 void *argp1 = 0 ;
36712 int res1 = 0 ;
36713 void *argp2 = 0 ;
36714 int res2 = 0 ;
36715 PyObject * obj0 = 0 ;
36716 PyObject * obj1 = 0 ;
36717 char * kwnames[] = {
36718 (char *) "self",(char *) "item", NULL
36719 };
36720
36721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36723 if (!SWIG_IsOK(res1)) {
36724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36725 }
36726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36728 if (!SWIG_IsOK(res2)) {
36729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36730 }
36731 if (!argp2) {
36732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36733 }
36734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36735 {
36736 PyThreadState* __tstate = wxPyBeginAllowThreads();
36737 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36738 wxPyEndAllowThreads(__tstate);
36739 if (PyErr_Occurred()) SWIG_fail;
36740 }
36741 resultobj = SWIG_Py_Void();
36742 return resultobj;
36743fail:
36744 return NULL;
36745}
36746
36747
36748SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36749 PyObject *resultobj = 0;
36750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 PyObject *swig_obj[1] ;
36754
36755 if (!args) SWIG_fail;
36756 swig_obj[0] = args;
36757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36758 if (!SWIG_IsOK(res1)) {
36759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36760 }
36761 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36762 {
36763 PyThreadState* __tstate = wxPyBeginAllowThreads();
36764 (arg1)->ExpandAll();
36765 wxPyEndAllowThreads(__tstate);
36766 if (PyErr_Occurred()) SWIG_fail;
36767 }
36768 resultobj = SWIG_Py_Void();
36769 return resultobj;
36770fail:
36771 return NULL;
36772}
36773
36774
554f62e9
RD
36775SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36776 PyObject *resultobj = 0;
36777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36778 wxTreeItemId *arg2 = 0 ;
36779 void *argp1 = 0 ;
36780 int res1 = 0 ;
36781 void *argp2 = 0 ;
36782 int res2 = 0 ;
36783 PyObject * obj0 = 0 ;
36784 PyObject * obj1 = 0 ;
36785 char * kwnames[] = {
36786 (char *) "self",(char *) "item", NULL
36787 };
36788
36789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36791 if (!SWIG_IsOK(res1)) {
36792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36793 }
36794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36796 if (!SWIG_IsOK(res2)) {
36797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36798 }
36799 if (!argp2) {
36800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36801 }
36802 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36803 {
36804 PyThreadState* __tstate = wxPyBeginAllowThreads();
36805 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36806 wxPyEndAllowThreads(__tstate);
36807 if (PyErr_Occurred()) SWIG_fail;
36808 }
36809 resultobj = SWIG_Py_Void();
36810 return resultobj;
36811fail:
36812 return NULL;
36813}
36814
36815
36816SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36817 PyObject *resultobj = 0;
36818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36819 wxTreeItemId *arg2 = 0 ;
36820 void *argp1 = 0 ;
36821 int res1 = 0 ;
36822 void *argp2 = 0 ;
36823 int res2 = 0 ;
36824 PyObject * obj0 = 0 ;
36825 PyObject * obj1 = 0 ;
36826 char * kwnames[] = {
36827 (char *) "self",(char *) "item", NULL
36828 };
36829
36830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36832 if (!SWIG_IsOK(res1)) {
36833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36834 }
36835 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36837 if (!SWIG_IsOK(res2)) {
36838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36839 }
36840 if (!argp2) {
36841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36842 }
36843 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36844 {
36845 PyThreadState* __tstate = wxPyBeginAllowThreads();
36846 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36847 wxPyEndAllowThreads(__tstate);
36848 if (PyErr_Occurred()) SWIG_fail;
36849 }
36850 resultobj = SWIG_Py_Void();
36851 return resultobj;
36852fail:
36853 return NULL;
36854}
36855
36856
36857SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36858 PyObject *resultobj = 0;
36859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36860 wxTreeItemId *arg2 = 0 ;
36861 void *argp1 = 0 ;
36862 int res1 = 0 ;
36863 void *argp2 = 0 ;
36864 int res2 = 0 ;
36865 PyObject * obj0 = 0 ;
36866 PyObject * obj1 = 0 ;
36867 char * kwnames[] = {
36868 (char *) "self",(char *) "item", NULL
36869 };
36870
36871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36873 if (!SWIG_IsOK(res1)) {
36874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36875 }
36876 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36878 if (!SWIG_IsOK(res2)) {
36879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36880 }
36881 if (!argp2) {
36882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36883 }
36884 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36885 {
36886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36887 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36888 wxPyEndAllowThreads(__tstate);
36889 if (PyErr_Occurred()) SWIG_fail;
36890 }
36891 resultobj = SWIG_Py_Void();
36892 return resultobj;
36893fail:
36894 return NULL;
d55e5bfc
RD
36895}
36896
36897
554f62e9
RD
36898SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36899 PyObject *resultobj = 0;
36900 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 PyObject *swig_obj[1] ;
36904
36905 if (!args) SWIG_fail;
36906 swig_obj[0] = args;
36907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36908 if (!SWIG_IsOK(res1)) {
36909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36910 }
36911 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36912 {
36913 PyThreadState* __tstate = wxPyBeginAllowThreads();
36914 (arg1)->Unselect();
36915 wxPyEndAllowThreads(__tstate);
36916 if (PyErr_Occurred()) SWIG_fail;
36917 }
36918 resultobj = SWIG_Py_Void();
36919 return resultobj;
36920fail:
36921 return NULL;
36922}
36923
36924
36925SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36926 PyObject *resultobj = 0;
36927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36928 wxTreeItemId *arg2 = 0 ;
36929 void *argp1 = 0 ;
36930 int res1 = 0 ;
36931 void *argp2 = 0 ;
36932 int res2 = 0 ;
36933 PyObject * obj0 = 0 ;
36934 PyObject * obj1 = 0 ;
36935 char * kwnames[] = {
36936 (char *) "self",(char *) "item", NULL
36937 };
36938
36939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36941 if (!SWIG_IsOK(res1)) {
36942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36943 }
36944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36946 if (!SWIG_IsOK(res2)) {
36947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36948 }
36949 if (!argp2) {
36950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36951 }
36952 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36953 {
36954 PyThreadState* __tstate = wxPyBeginAllowThreads();
36955 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36956 wxPyEndAllowThreads(__tstate);
36957 if (PyErr_Occurred()) SWIG_fail;
36958 }
36959 resultobj = SWIG_Py_Void();
36960 return resultobj;
36961fail:
36962 return NULL;
d55e5bfc
RD
36963}
36964
36965
554f62e9
RD
36966SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36967 PyObject *resultobj = 0;
36968 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36969 void *argp1 = 0 ;
36970 int res1 = 0 ;
36971 PyObject *swig_obj[1] ;
36972
36973 if (!args) SWIG_fail;
36974 swig_obj[0] = args;
36975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36976 if (!SWIG_IsOK(res1)) {
36977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36978 }
36979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36980 {
36981 PyThreadState* __tstate = wxPyBeginAllowThreads();
36982 (arg1)->UnselectAll();
36983 wxPyEndAllowThreads(__tstate);
36984 if (PyErr_Occurred()) SWIG_fail;
36985 }
36986 resultobj = SWIG_Py_Void();
36987 return resultobj;
36988fail:
36989 return NULL;
36990}
36991
36992
36993SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36994 PyObject *resultobj = 0;
36995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36996 wxTreeItemId *arg2 = 0 ;
36997 bool arg3 = (bool) true ;
36998 void *argp1 = 0 ;
36999 int res1 = 0 ;
37000 void *argp2 = 0 ;
37001 int res2 = 0 ;
37002 bool val3 ;
37003 int ecode3 = 0 ;
37004 PyObject * obj0 = 0 ;
37005 PyObject * obj1 = 0 ;
37006 PyObject * obj2 = 0 ;
37007 char * kwnames[] = {
37008 (char *) "self",(char *) "item",(char *) "select", NULL
37009 };
37010
37011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37013 if (!SWIG_IsOK(res1)) {
37014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37015 }
37016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37018 if (!SWIG_IsOK(res2)) {
37019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37020 }
37021 if (!argp2) {
37022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37023 }
37024 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37025 if (obj2) {
37026 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37027 if (!SWIG_IsOK(ecode3)) {
37028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37029 }
37030 arg3 = static_cast< bool >(val3);
37031 }
37032 {
37033 PyThreadState* __tstate = wxPyBeginAllowThreads();
37034 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37035 wxPyEndAllowThreads(__tstate);
37036 if (PyErr_Occurred()) SWIG_fail;
37037 }
37038 resultobj = SWIG_Py_Void();
37039 return resultobj;
37040fail:
37041 return NULL;
37042}
37043
37044
37045SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37046 PyObject *resultobj = 0;
37047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37048 wxTreeItemId *arg2 = 0 ;
37049 void *argp1 = 0 ;
37050 int res1 = 0 ;
37051 void *argp2 = 0 ;
37052 int res2 = 0 ;
37053 PyObject * obj0 = 0 ;
37054 PyObject * obj1 = 0 ;
37055 char * kwnames[] = {
37056 (char *) "self",(char *) "item", NULL
37057 };
37058
37059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37061 if (!SWIG_IsOK(res1)) {
37062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37063 }
37064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37066 if (!SWIG_IsOK(res2)) {
37067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37068 }
37069 if (!argp2) {
37070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37071 }
37072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37073 {
37074 PyThreadState* __tstate = wxPyBeginAllowThreads();
37075 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37076 wxPyEndAllowThreads(__tstate);
37077 if (PyErr_Occurred()) SWIG_fail;
37078 }
37079 resultobj = SWIG_Py_Void();
37080 return resultobj;
37081fail:
37082 return NULL;
37083}
37084
37085
37086SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37087 PyObject *resultobj = 0;
37088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37089 wxTreeItemId *arg2 = 0 ;
37090 void *argp1 = 0 ;
37091 int res1 = 0 ;
37092 void *argp2 = 0 ;
37093 int res2 = 0 ;
37094 PyObject * obj0 = 0 ;
37095 PyObject * obj1 = 0 ;
37096 char * kwnames[] = {
37097 (char *) "self",(char *) "item", NULL
37098 };
37099
37100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37102 if (!SWIG_IsOK(res1)) {
37103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37104 }
37105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37107 if (!SWIG_IsOK(res2)) {
37108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37109 }
37110 if (!argp2) {
37111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37112 }
37113 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37114 {
37115 PyThreadState* __tstate = wxPyBeginAllowThreads();
37116 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37117 wxPyEndAllowThreads(__tstate);
37118 if (PyErr_Occurred()) SWIG_fail;
37119 }
37120 resultobj = SWIG_Py_Void();
37121 return resultobj;
37122fail:
37123 return NULL;
37124}
37125
37126
37127SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37128 PyObject *resultobj = 0;
37129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37130 wxTreeItemId *arg2 = 0 ;
37131 void *argp1 = 0 ;
37132 int res1 = 0 ;
37133 void *argp2 = 0 ;
37134 int res2 = 0 ;
37135 PyObject * obj0 = 0 ;
37136 PyObject * obj1 = 0 ;
37137 char * kwnames[] = {
37138 (char *) "self",(char *) "item", NULL
37139 };
37140
37141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37143 if (!SWIG_IsOK(res1)) {
37144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37145 }
37146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37148 if (!SWIG_IsOK(res2)) {
37149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37150 }
37151 if (!argp2) {
37152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37153 }
37154 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37155 {
37156 PyThreadState* __tstate = wxPyBeginAllowThreads();
37157 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37158 wxPyEndAllowThreads(__tstate);
37159 if (PyErr_Occurred()) SWIG_fail;
37160 }
37161 resultobj = SWIG_Py_Void();
37162 return resultobj;
37163fail:
37164 return NULL;
37165}
37166
37167
37168SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37169 PyObject *resultobj = 0;
37170 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37171 wxTreeItemId *arg2 = 0 ;
37172 void *argp1 = 0 ;
37173 int res1 = 0 ;
37174 void *argp2 = 0 ;
37175 int res2 = 0 ;
37176 PyObject * obj0 = 0 ;
37177 PyObject * obj1 = 0 ;
37178 char * kwnames[] = {
37179 (char *) "self",(char *) "item", NULL
37180 };
37181
37182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37184 if (!SWIG_IsOK(res1)) {
37185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37186 }
37187 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37189 if (!SWIG_IsOK(res2)) {
37190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37191 }
37192 if (!argp2) {
37193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37194 }
37195 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37196 {
37197 PyThreadState* __tstate = wxPyBeginAllowThreads();
37198 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37199 wxPyEndAllowThreads(__tstate);
37200 if (PyErr_Occurred()) SWIG_fail;
37201 }
37202 resultobj = SWIG_Py_Void();
37203 return resultobj;
37204fail:
37205 return NULL;
d55e5bfc
RD
37206}
37207
37208
554f62e9
RD
37209SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37210 PyObject *resultobj = 0;
37211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37212 wxTextCtrl *result = 0 ;
37213 void *argp1 = 0 ;
37214 int res1 = 0 ;
37215 PyObject *swig_obj[1] ;
37216
37217 if (!args) SWIG_fail;
37218 swig_obj[0] = args;
37219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37220 if (!SWIG_IsOK(res1)) {
37221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37222 }
37223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37224 {
37225 PyThreadState* __tstate = wxPyBeginAllowThreads();
37226 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37227 wxPyEndAllowThreads(__tstate);
37228 if (PyErr_Occurred()) SWIG_fail;
37229 }
37230 {
37231 resultobj = wxPyMake_wxObject(result, 0);
37232 }
37233 return resultobj;
37234fail:
37235 return NULL;
37236}
37237
37238
37239SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37240 PyObject *resultobj = 0;
37241 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37242 wxTreeItemId *arg2 = 0 ;
37243 bool arg3 = (bool) false ;
37244 void *argp1 = 0 ;
37245 int res1 = 0 ;
37246 void *argp2 = 0 ;
37247 int res2 = 0 ;
37248 bool val3 ;
37249 int ecode3 = 0 ;
37250 PyObject * obj0 = 0 ;
37251 PyObject * obj1 = 0 ;
37252 PyObject * obj2 = 0 ;
37253 char * kwnames[] = {
37254 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37255 };
37256
37257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37259 if (!SWIG_IsOK(res1)) {
37260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37261 }
37262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37264 if (!SWIG_IsOK(res2)) {
37265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37266 }
37267 if (!argp2) {
37268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37269 }
37270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37271 if (obj2) {
37272 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37273 if (!SWIG_IsOK(ecode3)) {
37274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37275 }
37276 arg3 = static_cast< bool >(val3);
37277 }
37278 {
37279 PyThreadState* __tstate = wxPyBeginAllowThreads();
37280 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37281 wxPyEndAllowThreads(__tstate);
37282 if (PyErr_Occurred()) SWIG_fail;
37283 }
37284 resultobj = SWIG_Py_Void();
37285 return resultobj;
37286fail:
37287 return NULL;
37288}
37289
37290
37291SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37292 PyObject *resultobj = 0;
37293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37294 wxTreeItemId *arg2 = 0 ;
37295 void *argp1 = 0 ;
37296 int res1 = 0 ;
37297 void *argp2 = 0 ;
37298 int res2 = 0 ;
37299 PyObject * obj0 = 0 ;
37300 PyObject * obj1 = 0 ;
37301 char * kwnames[] = {
37302 (char *) "self",(char *) "item", NULL
37303 };
37304
37305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37307 if (!SWIG_IsOK(res1)) {
37308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37309 }
37310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37312 if (!SWIG_IsOK(res2)) {
37313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37314 }
37315 if (!argp2) {
37316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37317 }
37318 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37319 {
37320 PyThreadState* __tstate = wxPyBeginAllowThreads();
37321 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37322 wxPyEndAllowThreads(__tstate);
37323 if (PyErr_Occurred()) SWIG_fail;
37324 }
37325 resultobj = SWIG_Py_Void();
37326 return resultobj;
37327fail:
37328 return NULL;
37329}
37330
37331
37332SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37333 PyObject *resultobj = 0;
37334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37335 wxPoint *arg2 = 0 ;
37336 int *arg3 = 0 ;
37337 wxTreeItemId result;
37338 void *argp1 = 0 ;
37339 int res1 = 0 ;
37340 wxPoint temp2 ;
37341 int temp3 ;
37342 int res3 = SWIG_TMPOBJ ;
37343 PyObject * obj0 = 0 ;
37344 PyObject * obj1 = 0 ;
37345 char * kwnames[] = {
37346 (char *) "self",(char *) "point", NULL
37347 };
37348
37349 arg3 = &temp3;
37350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37352 if (!SWIG_IsOK(res1)) {
37353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37354 }
37355 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37356 {
37357 arg2 = &temp2;
37358 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37359 }
37360 {
37361 PyThreadState* __tstate = wxPyBeginAllowThreads();
37362 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37363 wxPyEndAllowThreads(__tstate);
37364 if (PyErr_Occurred()) SWIG_fail;
37365 }
37366 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37367 if (SWIG_IsTmpObj(res3)) {
37368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37369 } else {
37370 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37372 }
37373 return resultobj;
37374fail:
37375 return NULL;
37376}
37377
37378
37379SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37380 PyObject *resultobj = 0;
37381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37382 wxTreeItemId *arg2 = 0 ;
37383 bool arg3 = (bool) false ;
37384 PyObject *result = 0 ;
37385 void *argp1 = 0 ;
37386 int res1 = 0 ;
37387 void *argp2 = 0 ;
37388 int res2 = 0 ;
37389 bool val3 ;
37390 int ecode3 = 0 ;
37391 PyObject * obj0 = 0 ;
37392 PyObject * obj1 = 0 ;
37393 PyObject * obj2 = 0 ;
37394 char * kwnames[] = {
37395 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37396 };
37397
37398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37400 if (!SWIG_IsOK(res1)) {
37401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37402 }
37403 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37405 if (!SWIG_IsOK(res2)) {
37406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37407 }
37408 if (!argp2) {
37409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37410 }
37411 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37412 if (obj2) {
37413 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37414 if (!SWIG_IsOK(ecode3)) {
37415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37416 }
37417 arg3 = static_cast< bool >(val3);
37418 }
37419 {
37420 PyThreadState* __tstate = wxPyBeginAllowThreads();
37421 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37422 wxPyEndAllowThreads(__tstate);
37423 if (PyErr_Occurred()) SWIG_fail;
37424 }
37425 resultobj = result;
37426 return resultobj;
37427fail:
37428 return NULL;
37429}
37430
37431
37432SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37433 PyObject *resultobj = 0;
37434 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37435 wxTreeItemId *arg2 = 0 ;
37436 int arg3 ;
37437 void *argp1 = 0 ;
37438 int res1 = 0 ;
37439 void *argp2 = 0 ;
37440 int res2 = 0 ;
37441 int val3 ;
37442 int ecode3 = 0 ;
37443 PyObject * obj0 = 0 ;
37444 PyObject * obj1 = 0 ;
37445 PyObject * obj2 = 0 ;
37446 char * kwnames[] = {
37447 (char *) "self",(char *) "node",(char *) "state", NULL
37448 };
37449
37450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37452 if (!SWIG_IsOK(res1)) {
37453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37454 }
37455 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37457 if (!SWIG_IsOK(res2)) {
37458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37459 }
37460 if (!argp2) {
37461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37462 }
37463 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37464 ecode3 = SWIG_AsVal_int(obj2, &val3);
37465 if (!SWIG_IsOK(ecode3)) {
37466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37467 }
37468 arg3 = static_cast< int >(val3);
37469 {
37470 PyThreadState* __tstate = wxPyBeginAllowThreads();
37471 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37472 wxPyEndAllowThreads(__tstate);
37473 if (PyErr_Occurred()) SWIG_fail;
37474 }
37475 resultobj = SWIG_Py_Void();
37476 return resultobj;
37477fail:
37478 return NULL;
37479}
37480
37481
37482SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37483 PyObject *resultobj = 0;
37484 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37485 wxTreeItemId *arg2 = 0 ;
37486 int result;
37487 void *argp1 = 0 ;
37488 int res1 = 0 ;
37489 void *argp2 = 0 ;
37490 int res2 = 0 ;
37491 PyObject * obj0 = 0 ;
37492 PyObject * obj1 = 0 ;
37493 char * kwnames[] = {
37494 (char *) "self",(char *) "node", NULL
37495 };
37496
37497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37499 if (!SWIG_IsOK(res1)) {
37500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37501 }
37502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37504 if (!SWIG_IsOK(res2)) {
37505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37506 }
37507 if (!argp2) {
37508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37509 }
37510 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37511 {
37512 PyThreadState* __tstate = wxPyBeginAllowThreads();
37513 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37514 wxPyEndAllowThreads(__tstate);
37515 if (PyErr_Occurred()) SWIG_fail;
37516 }
37517 resultobj = SWIG_From_int(static_cast< int >(result));
37518 return resultobj;
37519fail:
37520 return NULL;
37521}
37522
37523
37524SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37525 PyObject *resultobj = 0;
37526 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37527 SwigValueWrapper<wxVisualAttributes > result;
37528 int val1 ;
37529 int ecode1 = 0 ;
37530 PyObject * obj0 = 0 ;
37531 char * kwnames[] = {
37532 (char *) "variant", NULL
37533 };
37534
37535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37536 if (obj0) {
37537 ecode1 = SWIG_AsVal_int(obj0, &val1);
37538 if (!SWIG_IsOK(ecode1)) {
37539 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37540 }
37541 arg1 = static_cast< wxWindowVariant >(val1);
37542 }
37543 {
37544 if (!wxPyCheckForApp()) SWIG_fail;
37545 PyThreadState* __tstate = wxPyBeginAllowThreads();
37546 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37547 wxPyEndAllowThreads(__tstate);
37548 if (PyErr_Occurred()) SWIG_fail;
37549 }
37550 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37551 return resultobj;
37552fail:
37553 return NULL;
d55e5bfc
RD
37554}
37555
37556
2131d850
RD
37557SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37558 PyObject *resultobj = 0;
37559 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37560 bool arg2 ;
37561 void *argp1 = 0 ;
37562 int res1 = 0 ;
37563 bool val2 ;
37564 int ecode2 = 0 ;
37565 PyObject * obj0 = 0 ;
37566 PyObject * obj1 = 0 ;
37567 char * kwnames[] = {
37568 (char *) "self",(char *) "q", NULL
37569 };
37570
37571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37573 if (!SWIG_IsOK(res1)) {
37574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37575 }
37576 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37577 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37578 if (!SWIG_IsOK(ecode2)) {
37579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37580 }
37581 arg2 = static_cast< bool >(val2);
37582 {
37583 PyThreadState* __tstate = wxPyBeginAllowThreads();
37584 (arg1)->SetQuickBestSize(arg2);
37585 wxPyEndAllowThreads(__tstate);
37586 if (PyErr_Occurred()) SWIG_fail;
37587 }
37588 resultobj = SWIG_Py_Void();
37589 return resultobj;
37590fail:
37591 return NULL;
37592}
37593
37594
37595SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37596 PyObject *resultobj = 0;
37597 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37598 bool result;
37599 void *argp1 = 0 ;
37600 int res1 = 0 ;
37601 PyObject *swig_obj[1] ;
37602
37603 if (!args) SWIG_fail;
37604 swig_obj[0] = args;
37605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37606 if (!SWIG_IsOK(res1)) {
37607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37608 }
37609 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37610 {
37611 PyThreadState* __tstate = wxPyBeginAllowThreads();
37612 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37613 wxPyEndAllowThreads(__tstate);
37614 if (PyErr_Occurred()) SWIG_fail;
37615 }
37616 {
37617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37618 }
37619 return resultobj;
37620fail:
37621 return NULL;
37622}
37623
37624
554f62e9
RD
37625SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37626 PyObject *obj;
37627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37628 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37629 return SWIG_Py_Void();
d55e5bfc
RD
37630}
37631
554f62e9
RD
37632SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37633 return SWIG_Python_InitShadowInstance(args);
37634}
d55e5bfc 37635
554f62e9
RD
37636SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37637 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37638 return 1;
d55e5bfc
RD
37639}
37640
37641
554f62e9
RD
37642SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37643 PyObject *pyobj = 0;
37644
37645 {
d55e5bfc 37646#if wxUSE_UNICODE
554f62e9 37647 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37648#else
554f62e9 37649 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37650#endif
554f62e9
RD
37651 }
37652 return pyobj;
37653}
37654
37655
37656SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37657 PyObject *resultobj = 0;
37658 wxWindow *arg1 = (wxWindow *) 0 ;
37659 int arg2 = (int) (int)-1 ;
37660 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37661 wxString *arg3 = (wxString *) &arg3_defvalue ;
37662 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37663 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37664 wxSize const &arg5_defvalue = wxDefaultSize ;
37665 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37666 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37667 wxString const &arg7_defvalue = wxPyEmptyString ;
37668 wxString *arg7 = (wxString *) &arg7_defvalue ;
37669 int arg8 = (int) 0 ;
37670 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37671 wxString *arg9 = (wxString *) &arg9_defvalue ;
37672 wxGenericDirCtrl *result = 0 ;
37673 void *argp1 = 0 ;
37674 int res1 = 0 ;
37675 int val2 ;
37676 int ecode2 = 0 ;
37677 bool temp3 = false ;
37678 wxPoint temp4 ;
37679 wxSize temp5 ;
37680 long val6 ;
37681 int ecode6 = 0 ;
37682 bool temp7 = false ;
37683 int val8 ;
37684 int ecode8 = 0 ;
37685 bool temp9 = false ;
37686 PyObject * obj0 = 0 ;
37687 PyObject * obj1 = 0 ;
37688 PyObject * obj2 = 0 ;
37689 PyObject * obj3 = 0 ;
37690 PyObject * obj4 = 0 ;
37691 PyObject * obj5 = 0 ;
37692 PyObject * obj6 = 0 ;
37693 PyObject * obj7 = 0 ;
37694 PyObject * obj8 = 0 ;
37695 char * kwnames[] = {
37696 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37697 };
37698
37699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37701 if (!SWIG_IsOK(res1)) {
37702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37703 }
37704 arg1 = reinterpret_cast< wxWindow * >(argp1);
37705 if (obj1) {
37706 ecode2 = SWIG_AsVal_int(obj1, &val2);
37707 if (!SWIG_IsOK(ecode2)) {
37708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37709 }
37710 arg2 = static_cast< int >(val2);
37711 }
37712 if (obj2) {
093d3ff1 37713 {
554f62e9
RD
37714 arg3 = wxString_in_helper(obj2);
37715 if (arg3 == NULL) SWIG_fail;
37716 temp3 = true;
093d3ff1 37717 }
554f62e9
RD
37718 }
37719 if (obj3) {
093d3ff1 37720 {
554f62e9
RD
37721 arg4 = &temp4;
37722 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37723 }
554f62e9
RD
37724 }
37725 if (obj4) {
d55e5bfc 37726 {
554f62e9
RD
37727 arg5 = &temp5;
37728 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 37729 }
554f62e9
RD
37730 }
37731 if (obj5) {
37732 ecode6 = SWIG_AsVal_long(obj5, &val6);
37733 if (!SWIG_IsOK(ecode6)) {
37734 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37735 }
37736 arg6 = static_cast< long >(val6);
37737 }
37738 if (obj6) {
d55e5bfc 37739 {
554f62e9
RD
37740 arg7 = wxString_in_helper(obj6);
37741 if (arg7 == NULL) SWIG_fail;
37742 temp7 = true;
d55e5bfc 37743 }
554f62e9
RD
37744 }
37745 if (obj7) {
37746 ecode8 = SWIG_AsVal_int(obj7, &val8);
37747 if (!SWIG_IsOK(ecode8)) {
37748 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37749 }
37750 arg8 = static_cast< int >(val8);
37751 }
37752 if (obj8) {
d55e5bfc 37753 {
554f62e9
RD
37754 arg9 = wxString_in_helper(obj8);
37755 if (arg9 == NULL) SWIG_fail;
37756 temp9 = true;
d55e5bfc 37757 }
554f62e9
RD
37758 }
37759 {
37760 if (!wxPyCheckForApp()) SWIG_fail;
37761 PyThreadState* __tstate = wxPyBeginAllowThreads();
37762 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37763 wxPyEndAllowThreads(__tstate);
37764 if (PyErr_Occurred()) SWIG_fail;
37765 }
37766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37767 {
37768 if (temp3)
37769 delete arg3;
37770 }
37771 {
37772 if (temp7)
37773 delete arg7;
37774 }
37775 {
37776 if (temp9)
37777 delete arg9;
37778 }
37779 return resultobj;
37780fail:
37781 {
37782 if (temp3)
37783 delete arg3;
37784 }
37785 {
37786 if (temp7)
37787 delete arg7;
37788 }
37789 {
37790 if (temp9)
37791 delete arg9;
37792 }
37793 return NULL;
d55e5bfc
RD
37794}
37795
37796
554f62e9
RD
37797SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37798 PyObject *resultobj = 0;
37799 wxGenericDirCtrl *result = 0 ;
37800
37801 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37802 {
37803 if (!wxPyCheckForApp()) SWIG_fail;
37804 PyThreadState* __tstate = wxPyBeginAllowThreads();
37805 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37806 wxPyEndAllowThreads(__tstate);
37807 if (PyErr_Occurred()) SWIG_fail;
37808 }
37809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37810 return resultobj;
37811fail:
37812 return NULL;
37813}
37814
37815
37816SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37817 PyObject *resultobj = 0;
37818 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37819 wxWindow *arg2 = (wxWindow *) 0 ;
37820 int arg3 = (int) (int)-1 ;
37821 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37822 wxString *arg4 = (wxString *) &arg4_defvalue ;
37823 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37824 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37825 wxSize const &arg6_defvalue = wxDefaultSize ;
37826 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37827 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37828 wxString const &arg8_defvalue = wxPyEmptyString ;
37829 wxString *arg8 = (wxString *) &arg8_defvalue ;
37830 int arg9 = (int) 0 ;
37831 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37832 wxString *arg10 = (wxString *) &arg10_defvalue ;
37833 bool result;
37834 void *argp1 = 0 ;
37835 int res1 = 0 ;
37836 void *argp2 = 0 ;
37837 int res2 = 0 ;
37838 int val3 ;
37839 int ecode3 = 0 ;
37840 bool temp4 = false ;
37841 wxPoint temp5 ;
37842 wxSize temp6 ;
37843 long val7 ;
37844 int ecode7 = 0 ;
37845 bool temp8 = false ;
37846 int val9 ;
37847 int ecode9 = 0 ;
37848 bool temp10 = false ;
37849 PyObject * obj0 = 0 ;
37850 PyObject * obj1 = 0 ;
37851 PyObject * obj2 = 0 ;
37852 PyObject * obj3 = 0 ;
37853 PyObject * obj4 = 0 ;
37854 PyObject * obj5 = 0 ;
37855 PyObject * obj6 = 0 ;
37856 PyObject * obj7 = 0 ;
37857 PyObject * obj8 = 0 ;
37858 PyObject * obj9 = 0 ;
37859 char * kwnames[] = {
37860 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37861 };
37862
37863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37865 if (!SWIG_IsOK(res1)) {
37866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37867 }
37868 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37869 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37870 if (!SWIG_IsOK(res2)) {
37871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37872 }
37873 arg2 = reinterpret_cast< wxWindow * >(argp2);
37874 if (obj2) {
37875 ecode3 = SWIG_AsVal_int(obj2, &val3);
37876 if (!SWIG_IsOK(ecode3)) {
37877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37878 }
37879 arg3 = static_cast< int >(val3);
37880 }
37881 if (obj3) {
d55e5bfc 37882 {
554f62e9
RD
37883 arg4 = wxString_in_helper(obj3);
37884 if (arg4 == NULL) SWIG_fail;
37885 temp4 = true;
d55e5bfc 37886 }
554f62e9
RD
37887 }
37888 if (obj4) {
093d3ff1 37889 {
554f62e9
RD
37890 arg5 = &temp5;
37891 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37892 }
554f62e9
RD
37893 }
37894 if (obj5) {
d55e5bfc 37895 {
554f62e9
RD
37896 arg6 = &temp6;
37897 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37898 }
554f62e9
RD
37899 }
37900 if (obj6) {
37901 ecode7 = SWIG_AsVal_long(obj6, &val7);
37902 if (!SWIG_IsOK(ecode7)) {
37903 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37904 }
37905 arg7 = static_cast< long >(val7);
37906 }
37907 if (obj7) {
d55e5bfc 37908 {
554f62e9
RD
37909 arg8 = wxString_in_helper(obj7);
37910 if (arg8 == NULL) SWIG_fail;
37911 temp8 = true;
d55e5bfc 37912 }
554f62e9
RD
37913 }
37914 if (obj8) {
37915 ecode9 = SWIG_AsVal_int(obj8, &val9);
37916 if (!SWIG_IsOK(ecode9)) {
37917 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37918 }
37919 arg9 = static_cast< int >(val9);
37920 }
37921 if (obj9) {
d55e5bfc 37922 {
554f62e9
RD
37923 arg10 = wxString_in_helper(obj9);
37924 if (arg10 == NULL) SWIG_fail;
37925 temp10 = true;
d55e5bfc 37926 }
554f62e9
RD
37927 }
37928 {
37929 PyThreadState* __tstate = wxPyBeginAllowThreads();
37930 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37931 wxPyEndAllowThreads(__tstate);
37932 if (PyErr_Occurred()) SWIG_fail;
37933 }
37934 {
37935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37936 }
37937 {
37938 if (temp4)
37939 delete arg4;
37940 }
37941 {
37942 if (temp8)
37943 delete arg8;
37944 }
37945 {
37946 if (temp10)
37947 delete arg10;
37948 }
37949 return resultobj;
37950fail:
37951 {
37952 if (temp4)
37953 delete arg4;
37954 }
37955 {
37956 if (temp8)
37957 delete arg8;
37958 }
37959 {
37960 if (temp10)
37961 delete arg10;
37962 }
37963 return NULL;
37964}
37965
37966
37967SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37968 PyObject *resultobj = 0;
37969 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37970 wxString *arg2 = 0 ;
37971 bool result;
37972 void *argp1 = 0 ;
37973 int res1 = 0 ;
37974 bool temp2 = false ;
37975 PyObject * obj0 = 0 ;
37976 PyObject * obj1 = 0 ;
37977 char * kwnames[] = {
37978 (char *) "self",(char *) "path", NULL
37979 };
37980
37981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37983 if (!SWIG_IsOK(res1)) {
37984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37985 }
37986 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37987 {
37988 arg2 = wxString_in_helper(obj1);
37989 if (arg2 == NULL) SWIG_fail;
37990 temp2 = true;
37991 }
37992 {
37993 PyThreadState* __tstate = wxPyBeginAllowThreads();
37994 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37995 wxPyEndAllowThreads(__tstate);
37996 if (PyErr_Occurred()) SWIG_fail;
37997 }
37998 {
37999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38000 }
38001 {
38002 if (temp2)
38003 delete arg2;
38004 }
38005 return resultobj;
38006fail:
38007 {
38008 if (temp2)
38009 delete arg2;
38010 }
38011 return NULL;
d55e5bfc
RD
38012}
38013
38014
704eda0c
RD
38015SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38016 PyObject *resultobj = 0;
38017 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38018 wxString *arg2 = 0 ;
38019 bool result;
38020 void *argp1 = 0 ;
38021 int res1 = 0 ;
38022 bool temp2 = false ;
38023 PyObject * obj0 = 0 ;
38024 PyObject * obj1 = 0 ;
38025 char * kwnames[] = {
38026 (char *) "self",(char *) "path", NULL
38027 };
38028
38029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38031 if (!SWIG_IsOK(res1)) {
38032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38033 }
38034 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38035 {
38036 arg2 = wxString_in_helper(obj1);
38037 if (arg2 == NULL) SWIG_fail;
38038 temp2 = true;
38039 }
38040 {
38041 PyThreadState* __tstate = wxPyBeginAllowThreads();
38042 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38043 wxPyEndAllowThreads(__tstate);
38044 if (PyErr_Occurred()) SWIG_fail;
38045 }
38046 {
38047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38048 }
38049 {
38050 if (temp2)
38051 delete arg2;
38052 }
38053 return resultobj;
38054fail:
38055 {
38056 if (temp2)
38057 delete arg2;
38058 }
38059 return NULL;
38060}
38061
38062
554f62e9
RD
38063SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38064 PyObject *resultobj = 0;
38065 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38066 wxString result;
38067 void *argp1 = 0 ;
38068 int res1 = 0 ;
38069 PyObject *swig_obj[1] ;
38070
38071 if (!args) SWIG_fail;
38072 swig_obj[0] = args;
38073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38074 if (!SWIG_IsOK(res1)) {
38075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38076 }
38077 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38078 {
38079 PyThreadState* __tstate = wxPyBeginAllowThreads();
38080 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38081 wxPyEndAllowThreads(__tstate);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
38084 {
38085#if wxUSE_UNICODE
38086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38087#else
38088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38089#endif
38090 }
38091 return resultobj;
38092fail:
38093 return NULL;
38094}
38095
38096
38097SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38098 PyObject *resultobj = 0;
38099 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38100 wxString *arg2 = 0 ;
38101 void *argp1 = 0 ;
38102 int res1 = 0 ;
38103 bool temp2 = false ;
38104 PyObject * obj0 = 0 ;
38105 PyObject * obj1 = 0 ;
38106 char * kwnames[] = {
38107 (char *) "self",(char *) "path", NULL
38108 };
38109
38110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38112 if (!SWIG_IsOK(res1)) {
38113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38114 }
38115 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38116 {
38117 arg2 = wxString_in_helper(obj1);
38118 if (arg2 == NULL) SWIG_fail;
38119 temp2 = true;
38120 }
38121 {
38122 PyThreadState* __tstate = wxPyBeginAllowThreads();
38123 (arg1)->SetDefaultPath((wxString const &)*arg2);
38124 wxPyEndAllowThreads(__tstate);
38125 if (PyErr_Occurred()) SWIG_fail;
38126 }
38127 resultobj = SWIG_Py_Void();
38128 {
38129 if (temp2)
38130 delete arg2;
38131 }
38132 return resultobj;
38133fail:
38134 {
38135 if (temp2)
38136 delete arg2;
38137 }
38138 return NULL;
d55e5bfc
RD
38139}
38140
38141
554f62e9
RD
38142SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38143 PyObject *resultobj = 0;
38144 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38145 wxString result;
38146 void *argp1 = 0 ;
38147 int res1 = 0 ;
38148 PyObject *swig_obj[1] ;
38149
38150 if (!args) SWIG_fail;
38151 swig_obj[0] = args;
38152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38153 if (!SWIG_IsOK(res1)) {
38154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38155 }
38156 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38157 {
38158 PyThreadState* __tstate = wxPyBeginAllowThreads();
38159 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38160 wxPyEndAllowThreads(__tstate);
38161 if (PyErr_Occurred()) SWIG_fail;
38162 }
38163 {
38164#if wxUSE_UNICODE
38165 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38166#else
38167 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38168#endif
38169 }
38170 return resultobj;
38171fail:
38172 return NULL;
d55e5bfc
RD
38173}
38174
38175
554f62e9
RD
38176SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38177 PyObject *resultobj = 0;
38178 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38179 wxString result;
38180 void *argp1 = 0 ;
38181 int res1 = 0 ;
38182 PyObject *swig_obj[1] ;
38183
38184 if (!args) SWIG_fail;
38185 swig_obj[0] = args;
38186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38187 if (!SWIG_IsOK(res1)) {
38188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38189 }
38190 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38191 {
38192 PyThreadState* __tstate = wxPyBeginAllowThreads();
38193 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38194 wxPyEndAllowThreads(__tstate);
38195 if (PyErr_Occurred()) SWIG_fail;
38196 }
38197 {
38198#if wxUSE_UNICODE
38199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38200#else
38201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38202#endif
38203 }
38204 return resultobj;
38205fail:
38206 return NULL;
38207}
38208
38209
38210SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38211 PyObject *resultobj = 0;
38212 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38213 wxString *arg2 = 0 ;
38214 void *argp1 = 0 ;
38215 int res1 = 0 ;
38216 bool temp2 = false ;
38217 PyObject * obj0 = 0 ;
38218 PyObject * obj1 = 0 ;
38219 char * kwnames[] = {
38220 (char *) "self",(char *) "path", NULL
38221 };
38222
38223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38225 if (!SWIG_IsOK(res1)) {
38226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38227 }
38228 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38229 {
38230 arg2 = wxString_in_helper(obj1);
38231 if (arg2 == NULL) SWIG_fail;
38232 temp2 = true;
38233 }
38234 {
38235 PyThreadState* __tstate = wxPyBeginAllowThreads();
38236 (arg1)->SetPath((wxString const &)*arg2);
38237 wxPyEndAllowThreads(__tstate);
38238 if (PyErr_Occurred()) SWIG_fail;
38239 }
38240 resultobj = SWIG_Py_Void();
38241 {
38242 if (temp2)
38243 delete arg2;
38244 }
38245 return resultobj;
38246fail:
38247 {
38248 if (temp2)
38249 delete arg2;
38250 }
38251 return NULL;
38252}
38253
38254
38255SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38256 PyObject *resultobj = 0;
38257 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38258 bool arg2 ;
38259 void *argp1 = 0 ;
38260 int res1 = 0 ;
38261 bool val2 ;
38262 int ecode2 = 0 ;
38263 PyObject * obj0 = 0 ;
38264 PyObject * obj1 = 0 ;
38265 char * kwnames[] = {
38266 (char *) "self",(char *) "show", NULL
38267 };
38268
38269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38271 if (!SWIG_IsOK(res1)) {
38272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38273 }
38274 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38275 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38276 if (!SWIG_IsOK(ecode2)) {
38277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38278 }
38279 arg2 = static_cast< bool >(val2);
38280 {
38281 PyThreadState* __tstate = wxPyBeginAllowThreads();
38282 (arg1)->ShowHidden(arg2);
38283 wxPyEndAllowThreads(__tstate);
38284 if (PyErr_Occurred()) SWIG_fail;
38285 }
38286 resultobj = SWIG_Py_Void();
38287 return resultobj;
38288fail:
38289 return NULL;
d55e5bfc
RD
38290}
38291
38292
554f62e9
RD
38293SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38294 PyObject *resultobj = 0;
38295 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38296 bool result;
38297 void *argp1 = 0 ;
38298 int res1 = 0 ;
38299 PyObject *swig_obj[1] ;
38300
38301 if (!args) SWIG_fail;
38302 swig_obj[0] = args;
38303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38304 if (!SWIG_IsOK(res1)) {
38305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38306 }
38307 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38308 {
38309 PyThreadState* __tstate = wxPyBeginAllowThreads();
38310 result = (bool)(arg1)->GetShowHidden();
38311 wxPyEndAllowThreads(__tstate);
38312 if (PyErr_Occurred()) SWIG_fail;
38313 }
38314 {
38315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38316 }
38317 return resultobj;
38318fail:
38319 return NULL;
d55e5bfc
RD
38320}
38321
38322
554f62e9
RD
38323SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38324 PyObject *resultobj = 0;
38325 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38326 wxString result;
38327 void *argp1 = 0 ;
38328 int res1 = 0 ;
38329 PyObject *swig_obj[1] ;
38330
38331 if (!args) SWIG_fail;
38332 swig_obj[0] = args;
38333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38334 if (!SWIG_IsOK(res1)) {
38335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38336 }
38337 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38338 {
38339 PyThreadState* __tstate = wxPyBeginAllowThreads();
38340 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38341 wxPyEndAllowThreads(__tstate);
38342 if (PyErr_Occurred()) SWIG_fail;
38343 }
38344 {
38345#if wxUSE_UNICODE
38346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38347#else
38348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38349#endif
38350 }
38351 return resultobj;
38352fail:
38353 return NULL;
38354}
38355
38356
38357SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38358 PyObject *resultobj = 0;
38359 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38360 wxString *arg2 = 0 ;
38361 void *argp1 = 0 ;
38362 int res1 = 0 ;
38363 bool temp2 = false ;
38364 PyObject * obj0 = 0 ;
38365 PyObject * obj1 = 0 ;
38366 char * kwnames[] = {
38367 (char *) "self",(char *) "filter", NULL
38368 };
38369
38370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38372 if (!SWIG_IsOK(res1)) {
38373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38374 }
38375 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38376 {
38377 arg2 = wxString_in_helper(obj1);
38378 if (arg2 == NULL) SWIG_fail;
38379 temp2 = true;
38380 }
38381 {
38382 PyThreadState* __tstate = wxPyBeginAllowThreads();
38383 (arg1)->SetFilter((wxString const &)*arg2);
38384 wxPyEndAllowThreads(__tstate);
38385 if (PyErr_Occurred()) SWIG_fail;
38386 }
38387 resultobj = SWIG_Py_Void();
38388 {
38389 if (temp2)
38390 delete arg2;
38391 }
38392 return resultobj;
38393fail:
38394 {
38395 if (temp2)
38396 delete arg2;
38397 }
38398 return NULL;
d55e5bfc
RD
38399}
38400
38401
554f62e9
RD
38402SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38403 PyObject *resultobj = 0;
38404 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38405 int result;
38406 void *argp1 = 0 ;
38407 int res1 = 0 ;
38408 PyObject *swig_obj[1] ;
38409
38410 if (!args) SWIG_fail;
38411 swig_obj[0] = args;
38412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38413 if (!SWIG_IsOK(res1)) {
38414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38415 }
38416 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38417 {
38418 PyThreadState* __tstate = wxPyBeginAllowThreads();
38419 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38420 wxPyEndAllowThreads(__tstate);
38421 if (PyErr_Occurred()) SWIG_fail;
38422 }
38423 resultobj = SWIG_From_int(static_cast< int >(result));
38424 return resultobj;
38425fail:
38426 return NULL;
38427}
38428
38429
38430SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38431 PyObject *resultobj = 0;
38432 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38433 int arg2 ;
38434 void *argp1 = 0 ;
38435 int res1 = 0 ;
38436 int val2 ;
38437 int ecode2 = 0 ;
38438 PyObject * obj0 = 0 ;
38439 PyObject * obj1 = 0 ;
38440 char * kwnames[] = {
38441 (char *) "self",(char *) "n", NULL
38442 };
38443
38444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38446 if (!SWIG_IsOK(res1)) {
38447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38448 }
38449 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38450 ecode2 = SWIG_AsVal_int(obj1, &val2);
38451 if (!SWIG_IsOK(ecode2)) {
38452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38453 }
38454 arg2 = static_cast< int >(val2);
38455 {
38456 PyThreadState* __tstate = wxPyBeginAllowThreads();
38457 (arg1)->SetFilterIndex(arg2);
38458 wxPyEndAllowThreads(__tstate);
38459 if (PyErr_Occurred()) SWIG_fail;
38460 }
38461 resultobj = SWIG_Py_Void();
38462 return resultobj;
38463fail:
38464 return NULL;
d55e5bfc
RD
38465}
38466
38467
554f62e9
RD
38468SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38469 PyObject *resultobj = 0;
38470 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38471 wxTreeItemId result;
38472 void *argp1 = 0 ;
38473 int res1 = 0 ;
38474 PyObject *swig_obj[1] ;
38475
38476 if (!args) SWIG_fail;
38477 swig_obj[0] = args;
38478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38479 if (!SWIG_IsOK(res1)) {
38480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38481 }
38482 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38483 {
38484 PyThreadState* __tstate = wxPyBeginAllowThreads();
38485 result = (arg1)->GetRootId();
38486 wxPyEndAllowThreads(__tstate);
38487 if (PyErr_Occurred()) SWIG_fail;
38488 }
38489 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38490 return resultobj;
38491fail:
38492 return NULL;
d55e5bfc
RD
38493}
38494
38495
554f62e9
RD
38496SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38497 PyObject *resultobj = 0;
38498 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38499 wxPyTreeCtrl *result = 0 ;
38500 void *argp1 = 0 ;
38501 int res1 = 0 ;
38502 PyObject *swig_obj[1] ;
38503
38504 if (!args) SWIG_fail;
38505 swig_obj[0] = args;
38506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38507 if (!SWIG_IsOK(res1)) {
38508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38509 }
38510 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38511 {
38512 PyThreadState* __tstate = wxPyBeginAllowThreads();
38513 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38514 wxPyEndAllowThreads(__tstate);
38515 if (PyErr_Occurred()) SWIG_fail;
38516 }
38517 {
38518 resultobj = wxPyMake_wxObject(result, 0);
38519 }
38520 return resultobj;
38521fail:
38522 return NULL;
d55e5bfc
RD
38523}
38524
38525
554f62e9
RD
38526SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38527 PyObject *resultobj = 0;
38528 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38529 wxDirFilterListCtrl *result = 0 ;
38530 void *argp1 = 0 ;
38531 int res1 = 0 ;
38532 PyObject *swig_obj[1] ;
38533
38534 if (!args) SWIG_fail;
38535 swig_obj[0] = args;
38536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38537 if (!SWIG_IsOK(res1)) {
38538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38539 }
38540 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38541 {
38542 PyThreadState* __tstate = wxPyBeginAllowThreads();
38543 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38544 wxPyEndAllowThreads(__tstate);
38545 if (PyErr_Occurred()) SWIG_fail;
38546 }
38547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38548 return resultobj;
38549fail:
38550 return NULL;
38551}
38552
38553
38554SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38555 PyObject *resultobj = 0;
38556 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38557 wxTreeItemId arg2 ;
38558 wxString *arg3 = 0 ;
38559 bool *arg4 = 0 ;
38560 wxTreeItemId result;
38561 void *argp1 = 0 ;
38562 int res1 = 0 ;
38563 void *argp2 ;
38564 int res2 = 0 ;
38565 bool temp3 = false ;
38566 bool temp4 ;
38567 int res4 = SWIG_TMPOBJ ;
38568 PyObject * obj0 = 0 ;
38569 PyObject * obj1 = 0 ;
38570 PyObject * obj2 = 0 ;
38571 char * kwnames[] = {
38572 (char *) "self",(char *) "parentId",(char *) "path", NULL
38573 };
38574
38575 arg4 = &temp4;
38576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38578 if (!SWIG_IsOK(res1)) {
38579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38580 }
38581 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38582 {
38583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38584 if (!SWIG_IsOK(res2)) {
38585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38586 }
38587 if (!argp2) {
38588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38589 } else {
38590 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38591 arg2 = *temp;
38592 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38593 }
554f62e9
RD
38594 }
38595 {
38596 arg3 = wxString_in_helper(obj2);
38597 if (arg3 == NULL) SWIG_fail;
38598 temp3 = true;
38599 }
38600 {
38601 PyThreadState* __tstate = wxPyBeginAllowThreads();
38602 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38603 wxPyEndAllowThreads(__tstate);
38604 if (PyErr_Occurred()) SWIG_fail;
38605 }
38606 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38607 if (SWIG_IsTmpObj(res4)) {
38608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38609 } else {
38610 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38612 }
38613 {
38614 if (temp3)
38615 delete arg3;
38616 }
38617 return resultobj;
38618fail:
38619 {
38620 if (temp3)
38621 delete arg3;
38622 }
38623 return NULL;
d55e5bfc
RD
38624}
38625
38626
554f62e9
RD
38627SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38628 PyObject *resultobj = 0;
38629 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38630 void *argp1 = 0 ;
38631 int res1 = 0 ;
38632 PyObject *swig_obj[1] ;
38633
38634 if (!args) SWIG_fail;
38635 swig_obj[0] = args;
38636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38637 if (!SWIG_IsOK(res1)) {
38638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38639 }
38640 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38641 {
38642 PyThreadState* __tstate = wxPyBeginAllowThreads();
38643 (arg1)->DoResize();
38644 wxPyEndAllowThreads(__tstate);
38645 if (PyErr_Occurred()) SWIG_fail;
38646 }
38647 resultobj = SWIG_Py_Void();
38648 return resultobj;
38649fail:
38650 return NULL;
38651}
38652
38653
38654SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38655 PyObject *resultobj = 0;
38656 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38657 void *argp1 = 0 ;
38658 int res1 = 0 ;
38659 PyObject *swig_obj[1] ;
38660
38661 if (!args) SWIG_fail;
38662 swig_obj[0] = args;
38663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38664 if (!SWIG_IsOK(res1)) {
38665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38666 }
38667 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38668 {
38669 PyThreadState* __tstate = wxPyBeginAllowThreads();
38670 (arg1)->ReCreateTree();
38671 wxPyEndAllowThreads(__tstate);
38672 if (PyErr_Occurred()) SWIG_fail;
38673 }
38674 resultobj = SWIG_Py_Void();
38675 return resultobj;
38676fail:
38677 return NULL;
38678}
38679
38680
38681SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38682 PyObject *obj;
38683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38684 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38685 return SWIG_Py_Void();
38686}
38687
38688SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38689 return SWIG_Python_InitShadowInstance(args);
38690}
38691
38692SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38693 PyObject *resultobj = 0;
38694 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38695 int arg2 = (int) (int)-1 ;
38696 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38697 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38698 wxSize const &arg4_defvalue = wxDefaultSize ;
38699 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38700 long arg5 = (long) 0 ;
38701 wxDirFilterListCtrl *result = 0 ;
38702 void *argp1 = 0 ;
38703 int res1 = 0 ;
38704 int val2 ;
38705 int ecode2 = 0 ;
38706 wxPoint temp3 ;
38707 wxSize temp4 ;
38708 long val5 ;
38709 int ecode5 = 0 ;
38710 PyObject * obj0 = 0 ;
38711 PyObject * obj1 = 0 ;
38712 PyObject * obj2 = 0 ;
38713 PyObject * obj3 = 0 ;
38714 PyObject * obj4 = 0 ;
38715 char * kwnames[] = {
38716 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38717 };
38718
38719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38721 if (!SWIG_IsOK(res1)) {
38722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38723 }
38724 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38725 if (obj1) {
38726 ecode2 = SWIG_AsVal_int(obj1, &val2);
38727 if (!SWIG_IsOK(ecode2)) {
38728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38729 }
38730 arg2 = static_cast< int >(val2);
38731 }
38732 if (obj2) {
d55e5bfc 38733 {
554f62e9
RD
38734 arg3 = &temp3;
38735 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38736 }
554f62e9
RD
38737 }
38738 if (obj3) {
d55e5bfc 38739 {
554f62e9
RD
38740 arg4 = &temp4;
38741 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38742 }
554f62e9
RD
38743 }
38744 if (obj4) {
38745 ecode5 = SWIG_AsVal_long(obj4, &val5);
38746 if (!SWIG_IsOK(ecode5)) {
38747 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38748 }
38749 arg5 = static_cast< long >(val5);
38750 }
38751 {
38752 if (!wxPyCheckForApp()) SWIG_fail;
38753 PyThreadState* __tstate = wxPyBeginAllowThreads();
38754 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38755 wxPyEndAllowThreads(__tstate);
38756 if (PyErr_Occurred()) SWIG_fail;
38757 }
38758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38759 return resultobj;
38760fail:
38761 return NULL;
d55e5bfc
RD
38762}
38763
38764
554f62e9
RD
38765SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38766 PyObject *resultobj = 0;
38767 wxDirFilterListCtrl *result = 0 ;
38768
38769 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38770 {
38771 if (!wxPyCheckForApp()) SWIG_fail;
38772 PyThreadState* __tstate = wxPyBeginAllowThreads();
38773 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38774 wxPyEndAllowThreads(__tstate);
38775 if (PyErr_Occurred()) SWIG_fail;
38776 }
38777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38778 return resultobj;
38779fail:
38780 return NULL;
38781}
38782
38783
38784SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38785 PyObject *resultobj = 0;
38786 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38787 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38788 int arg3 = (int) (int)-1 ;
38789 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38790 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38791 wxSize const &arg5_defvalue = wxDefaultSize ;
38792 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38793 long arg6 = (long) 0 ;
38794 bool result;
38795 void *argp1 = 0 ;
38796 int res1 = 0 ;
38797 void *argp2 = 0 ;
38798 int res2 = 0 ;
38799 int val3 ;
38800 int ecode3 = 0 ;
38801 wxPoint temp4 ;
38802 wxSize temp5 ;
38803 long val6 ;
38804 int ecode6 = 0 ;
38805 PyObject * obj0 = 0 ;
38806 PyObject * obj1 = 0 ;
38807 PyObject * obj2 = 0 ;
38808 PyObject * obj3 = 0 ;
38809 PyObject * obj4 = 0 ;
38810 PyObject * obj5 = 0 ;
38811 char * kwnames[] = {
38812 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38813 };
38814
38815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38817 if (!SWIG_IsOK(res1)) {
38818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38819 }
38820 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38821 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38822 if (!SWIG_IsOK(res2)) {
38823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38824 }
38825 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38826 if (obj2) {
38827 ecode3 = SWIG_AsVal_int(obj2, &val3);
38828 if (!SWIG_IsOK(ecode3)) {
38829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38830 }
38831 arg3 = static_cast< int >(val3);
38832 }
38833 if (obj3) {
093d3ff1 38834 {
554f62e9
RD
38835 arg4 = &temp4;
38836 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38837 }
554f62e9
RD
38838 }
38839 if (obj4) {
093d3ff1 38840 {
554f62e9
RD
38841 arg5 = &temp5;
38842 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 38843 }
554f62e9
RD
38844 }
38845 if (obj5) {
38846 ecode6 = SWIG_AsVal_long(obj5, &val6);
38847 if (!SWIG_IsOK(ecode6)) {
38848 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38849 }
38850 arg6 = static_cast< long >(val6);
38851 }
38852 {
38853 PyThreadState* __tstate = wxPyBeginAllowThreads();
38854 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38855 wxPyEndAllowThreads(__tstate);
38856 if (PyErr_Occurred()) SWIG_fail;
38857 }
38858 {
38859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38860 }
38861 return resultobj;
38862fail:
38863 return NULL;
38864}
38865
38866
38867SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38868 PyObject *resultobj = 0;
38869 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38870 wxString *arg2 = 0 ;
38871 int arg3 ;
38872 void *argp1 = 0 ;
38873 int res1 = 0 ;
38874 bool temp2 = false ;
38875 int val3 ;
38876 int ecode3 = 0 ;
38877 PyObject * obj0 = 0 ;
38878 PyObject * obj1 = 0 ;
38879 PyObject * obj2 = 0 ;
38880 char * kwnames[] = {
38881 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38882 };
38883
38884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38886 if (!SWIG_IsOK(res1)) {
38887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38888 }
38889 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38890 {
38891 arg2 = wxString_in_helper(obj1);
38892 if (arg2 == NULL) SWIG_fail;
38893 temp2 = true;
38894 }
38895 ecode3 = SWIG_AsVal_int(obj2, &val3);
38896 if (!SWIG_IsOK(ecode3)) {
38897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38898 }
38899 arg3 = static_cast< int >(val3);
38900 {
38901 PyThreadState* __tstate = wxPyBeginAllowThreads();
38902 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38903 wxPyEndAllowThreads(__tstate);
38904 if (PyErr_Occurred()) SWIG_fail;
38905 }
38906 resultobj = SWIG_Py_Void();
38907 {
38908 if (temp2)
38909 delete arg2;
38910 }
38911 return resultobj;
38912fail:
38913 {
38914 if (temp2)
38915 delete arg2;
38916 }
38917 return NULL;
38918}
38919
38920
38921SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38922 PyObject *obj;
38923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38924 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38925 return SWIG_Py_Void();
38926}
38927
38928SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38929 return SWIG_Python_InitShadowInstance(args);
38930}
38931
38932SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38933 PyObject *resultobj = 0;
38934 wxWindow *arg1 = (wxWindow *) 0 ;
38935 int arg2 = (int) (int)-1 ;
38936 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38937 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38938 wxSize const &arg4_defvalue = wxDefaultSize ;
38939 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38940 long arg5 = (long) 0 ;
38941 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38942 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38943 wxString const &arg7_defvalue = wxPyControlNameStr ;
38944 wxString *arg7 = (wxString *) &arg7_defvalue ;
38945 wxPyControl *result = 0 ;
38946 void *argp1 = 0 ;
38947 int res1 = 0 ;
38948 int val2 ;
38949 int ecode2 = 0 ;
38950 wxPoint temp3 ;
38951 wxSize temp4 ;
38952 long val5 ;
38953 int ecode5 = 0 ;
38954 void *argp6 = 0 ;
38955 int res6 = 0 ;
38956 bool temp7 = false ;
38957 PyObject * obj0 = 0 ;
38958 PyObject * obj1 = 0 ;
38959 PyObject * obj2 = 0 ;
38960 PyObject * obj3 = 0 ;
38961 PyObject * obj4 = 0 ;
38962 PyObject * obj5 = 0 ;
38963 PyObject * obj6 = 0 ;
38964 char * kwnames[] = {
38965 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38966 };
38967
38968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38970 if (!SWIG_IsOK(res1)) {
38971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38972 }
38973 arg1 = reinterpret_cast< wxWindow * >(argp1);
38974 if (obj1) {
38975 ecode2 = SWIG_AsVal_int(obj1, &val2);
38976 if (!SWIG_IsOK(ecode2)) {
38977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38978 }
38979 arg2 = static_cast< int >(val2);
38980 }
38981 if (obj2) {
d55e5bfc 38982 {
554f62e9
RD
38983 arg3 = &temp3;
38984 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38985 }
554f62e9
RD
38986 }
38987 if (obj3) {
d55e5bfc 38988 {
554f62e9
RD
38989 arg4 = &temp4;
38990 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38991 }
554f62e9
RD
38992 }
38993 if (obj4) {
38994 ecode5 = SWIG_AsVal_long(obj4, &val5);
38995 if (!SWIG_IsOK(ecode5)) {
38996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38997 }
38998 arg5 = static_cast< long >(val5);
38999 }
39000 if (obj5) {
39001 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39002 if (!SWIG_IsOK(res6)) {
39003 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
093d3ff1 39004 }
554f62e9
RD
39005 if (!argp6) {
39006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 39007 }
554f62e9
RD
39008 arg6 = reinterpret_cast< wxValidator * >(argp6);
39009 }
39010 if (obj6) {
d55e5bfc 39011 {
554f62e9
RD
39012 arg7 = wxString_in_helper(obj6);
39013 if (arg7 == NULL) SWIG_fail;
39014 temp7 = true;
d55e5bfc 39015 }
554f62e9
RD
39016 }
39017 {
39018 if (!wxPyCheckForApp()) SWIG_fail;
39019 PyThreadState* __tstate = wxPyBeginAllowThreads();
39020 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39021 wxPyEndAllowThreads(__tstate);
39022 if (PyErr_Occurred()) SWIG_fail;
39023 }
39024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39025 {
39026 if (temp7)
39027 delete arg7;
39028 }
39029 return resultobj;
39030fail:
39031 {
39032 if (temp7)
39033 delete arg7;
39034 }
39035 return NULL;
d55e5bfc
RD
39036}
39037
39038
554f62e9
RD
39039SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39040 PyObject *resultobj = 0;
39041 wxPyControl *result = 0 ;
39042
39043 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39044 {
39045 if (!wxPyCheckForApp()) SWIG_fail;
39046 PyThreadState* __tstate = wxPyBeginAllowThreads();
39047 result = (wxPyControl *)new wxPyControl();
39048 wxPyEndAllowThreads(__tstate);
39049 if (PyErr_Occurred()) SWIG_fail;
39050 }
39051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39052 return resultobj;
39053fail:
39054 return NULL;
39055}
39056
39057
39058SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39059 PyObject *resultobj = 0;
39060 wxPyControl *arg1 = (wxPyControl *) 0 ;
39061 PyObject *arg2 = (PyObject *) 0 ;
39062 PyObject *arg3 = (PyObject *) 0 ;
39063 void *argp1 = 0 ;
39064 int res1 = 0 ;
39065 PyObject * obj0 = 0 ;
39066 PyObject * obj1 = 0 ;
39067 PyObject * obj2 = 0 ;
39068 char * kwnames[] = {
39069 (char *) "self",(char *) "self",(char *) "_class", NULL
39070 };
39071
39072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39074 if (!SWIG_IsOK(res1)) {
39075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39076 }
39077 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39078 arg2 = obj1;
39079 arg3 = obj2;
39080 {
39081 PyThreadState* __tstate = wxPyBeginAllowThreads();
39082 (arg1)->_setCallbackInfo(arg2,arg3);
39083 wxPyEndAllowThreads(__tstate);
39084 if (PyErr_Occurred()) SWIG_fail;
39085 }
39086 resultobj = SWIG_Py_Void();
39087 return resultobj;
39088fail:
39089 return NULL;
39090}
39091
39092
554f62e9
RD
39093SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39094 PyObject *resultobj = 0;
39095 wxPyControl *arg1 = (wxPyControl *) 0 ;
39096 wxDC *arg2 = (wxDC *) 0 ;
39097 bool result;
39098 void *argp1 = 0 ;
39099 int res1 = 0 ;
39100 void *argp2 = 0 ;
39101 int res2 = 0 ;
39102 PyObject * obj0 = 0 ;
39103 PyObject * obj1 = 0 ;
39104 char * kwnames[] = {
39105 (char *) "self",(char *) "dc", NULL
39106 };
39107
39108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39110 if (!SWIG_IsOK(res1)) {
39111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39112 }
39113 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39114 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39115 if (!SWIG_IsOK(res2)) {
39116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39117 }
39118 arg2 = reinterpret_cast< wxDC * >(argp2);
39119 {
39120 PyThreadState* __tstate = wxPyBeginAllowThreads();
39121 result = (bool)(arg1)->DoEraseBackground(arg2);
39122 wxPyEndAllowThreads(__tstate);
39123 if (PyErr_Occurred()) SWIG_fail;
39124 }
39125 {
39126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39127 }
39128 return resultobj;
39129fail:
39130 return NULL;
39131}
39132
39133
39134SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39135 PyObject *resultobj = 0;
39136 wxPyControl *arg1 = (wxPyControl *) 0 ;
39137 int arg2 ;
39138 int arg3 ;
39139 int arg4 ;
39140 int arg5 ;
39141 void *argp1 = 0 ;
39142 int res1 = 0 ;
39143 int val2 ;
39144 int ecode2 = 0 ;
39145 int val3 ;
39146 int ecode3 = 0 ;
39147 int val4 ;
39148 int ecode4 = 0 ;
39149 int val5 ;
39150 int ecode5 = 0 ;
39151 PyObject * obj0 = 0 ;
39152 PyObject * obj1 = 0 ;
39153 PyObject * obj2 = 0 ;
39154 PyObject * obj3 = 0 ;
39155 PyObject * obj4 = 0 ;
39156 char * kwnames[] = {
39157 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39158 };
39159
39160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39162 if (!SWIG_IsOK(res1)) {
39163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39164 }
39165 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39166 ecode2 = SWIG_AsVal_int(obj1, &val2);
39167 if (!SWIG_IsOK(ecode2)) {
39168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39169 }
39170 arg2 = static_cast< int >(val2);
39171 ecode3 = SWIG_AsVal_int(obj2, &val3);
39172 if (!SWIG_IsOK(ecode3)) {
39173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39174 }
39175 arg3 = static_cast< int >(val3);
39176 ecode4 = SWIG_AsVal_int(obj3, &val4);
39177 if (!SWIG_IsOK(ecode4)) {
39178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39179 }
39180 arg4 = static_cast< int >(val4);
39181 ecode5 = SWIG_AsVal_int(obj4, &val5);
39182 if (!SWIG_IsOK(ecode5)) {
39183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39184 }
39185 arg5 = static_cast< int >(val5);
39186 {
39187 PyThreadState* __tstate = wxPyBeginAllowThreads();
39188 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39189 wxPyEndAllowThreads(__tstate);
39190 if (PyErr_Occurred()) SWIG_fail;
39191 }
39192 resultobj = SWIG_Py_Void();
39193 return resultobj;
39194fail:
39195 return NULL;
39196}
39197
39198
39199SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39200 PyObject *resultobj = 0;
39201 wxPyControl *arg1 = (wxPyControl *) 0 ;
39202 int arg2 ;
39203 int arg3 ;
39204 int arg4 ;
39205 int arg5 ;
39206 int arg6 = (int) wxSIZE_AUTO ;
39207 void *argp1 = 0 ;
39208 int res1 = 0 ;
39209 int val2 ;
39210 int ecode2 = 0 ;
39211 int val3 ;
39212 int ecode3 = 0 ;
39213 int val4 ;
39214 int ecode4 = 0 ;
39215 int val5 ;
39216 int ecode5 = 0 ;
39217 int val6 ;
39218 int ecode6 = 0 ;
39219 PyObject * obj0 = 0 ;
39220 PyObject * obj1 = 0 ;
39221 PyObject * obj2 = 0 ;
39222 PyObject * obj3 = 0 ;
39223 PyObject * obj4 = 0 ;
39224 PyObject * obj5 = 0 ;
39225 char * kwnames[] = {
39226 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39227 };
39228
39229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39231 if (!SWIG_IsOK(res1)) {
39232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39233 }
39234 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39235 ecode2 = SWIG_AsVal_int(obj1, &val2);
39236 if (!SWIG_IsOK(ecode2)) {
39237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39238 }
39239 arg2 = static_cast< int >(val2);
39240 ecode3 = SWIG_AsVal_int(obj2, &val3);
39241 if (!SWIG_IsOK(ecode3)) {
39242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39243 }
39244 arg3 = static_cast< int >(val3);
39245 ecode4 = SWIG_AsVal_int(obj3, &val4);
39246 if (!SWIG_IsOK(ecode4)) {
39247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39248 }
39249 arg4 = static_cast< int >(val4);
39250 ecode5 = SWIG_AsVal_int(obj4, &val5);
39251 if (!SWIG_IsOK(ecode5)) {
39252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39253 }
39254 arg5 = static_cast< int >(val5);
39255 if (obj5) {
39256 ecode6 = SWIG_AsVal_int(obj5, &val6);
39257 if (!SWIG_IsOK(ecode6)) {
39258 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39259 }
39260 arg6 = static_cast< int >(val6);
39261 }
39262 {
39263 PyThreadState* __tstate = wxPyBeginAllowThreads();
39264 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39265 wxPyEndAllowThreads(__tstate);
39266 if (PyErr_Occurred()) SWIG_fail;
39267 }
39268 resultobj = SWIG_Py_Void();
39269 return resultobj;
39270fail:
39271 return NULL;
39272}
39273
39274
39275SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39276 PyObject *resultobj = 0;
39277 wxPyControl *arg1 = (wxPyControl *) 0 ;
39278 int arg2 ;
39279 int arg3 ;
39280 void *argp1 = 0 ;
39281 int res1 = 0 ;
39282 int val2 ;
39283 int ecode2 = 0 ;
39284 int val3 ;
39285 int ecode3 = 0 ;
39286 PyObject * obj0 = 0 ;
39287 PyObject * obj1 = 0 ;
39288 PyObject * obj2 = 0 ;
39289 char * kwnames[] = {
39290 (char *) "self",(char *) "width",(char *) "height", NULL
39291 };
39292
39293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39295 if (!SWIG_IsOK(res1)) {
39296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39297 }
39298 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39299 ecode2 = SWIG_AsVal_int(obj1, &val2);
39300 if (!SWIG_IsOK(ecode2)) {
39301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39302 }
39303 arg2 = static_cast< int >(val2);
39304 ecode3 = SWIG_AsVal_int(obj2, &val3);
39305 if (!SWIG_IsOK(ecode3)) {
39306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39307 }
39308 arg3 = static_cast< int >(val3);
39309 {
39310 PyThreadState* __tstate = wxPyBeginAllowThreads();
39311 (arg1)->DoSetClientSize(arg2,arg3);
39312 wxPyEndAllowThreads(__tstate);
39313 if (PyErr_Occurred()) SWIG_fail;
39314 }
39315 resultobj = SWIG_Py_Void();
39316 return resultobj;
39317fail:
39318 return NULL;
39319}
39320
39321
39322SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39323 PyObject *resultobj = 0;
39324 wxPyControl *arg1 = (wxPyControl *) 0 ;
39325 int arg2 ;
39326 int arg3 ;
39327 void *argp1 = 0 ;
39328 int res1 = 0 ;
39329 int val2 ;
39330 int ecode2 = 0 ;
39331 int val3 ;
39332 int ecode3 = 0 ;
39333 PyObject * obj0 = 0 ;
39334 PyObject * obj1 = 0 ;
39335 PyObject * obj2 = 0 ;
39336 char * kwnames[] = {
39337 (char *) "self",(char *) "x",(char *) "y", NULL
39338 };
39339
39340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39342 if (!SWIG_IsOK(res1)) {
39343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39344 }
39345 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39346 ecode2 = SWIG_AsVal_int(obj1, &val2);
39347 if (!SWIG_IsOK(ecode2)) {
39348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39349 }
39350 arg2 = static_cast< int >(val2);
39351 ecode3 = SWIG_AsVal_int(obj2, &val3);
39352 if (!SWIG_IsOK(ecode3)) {
39353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39354 }
39355 arg3 = static_cast< int >(val3);
39356 {
39357 PyThreadState* __tstate = wxPyBeginAllowThreads();
39358 (arg1)->DoSetVirtualSize(arg2,arg3);
39359 wxPyEndAllowThreads(__tstate);
39360 if (PyErr_Occurred()) SWIG_fail;
39361 }
39362 resultobj = SWIG_Py_Void();
39363 return resultobj;
39364fail:
39365 return NULL;
39366}
39367
39368
39369SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39370 PyObject *resultobj = 0;
39371 wxPyControl *arg1 = (wxPyControl *) 0 ;
39372 int *arg2 = (int *) 0 ;
39373 int *arg3 = (int *) 0 ;
39374 void *argp1 = 0 ;
39375 int res1 = 0 ;
39376 int temp2 ;
39377 int res2 = SWIG_TMPOBJ ;
39378 int temp3 ;
39379 int res3 = SWIG_TMPOBJ ;
39380 PyObject *swig_obj[1] ;
39381
39382 arg2 = &temp2;
39383 arg3 = &temp3;
39384 if (!args) SWIG_fail;
39385 swig_obj[0] = args;
39386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39387 if (!SWIG_IsOK(res1)) {
39388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39389 }
39390 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39391 {
39392 PyThreadState* __tstate = wxPyBeginAllowThreads();
39393 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39394 wxPyEndAllowThreads(__tstate);
39395 if (PyErr_Occurred()) SWIG_fail;
39396 }
39397 resultobj = SWIG_Py_Void();
39398 if (SWIG_IsTmpObj(res2)) {
39399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39400 } else {
39401 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39403 }
39404 if (SWIG_IsTmpObj(res3)) {
39405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39406 } else {
39407 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39409 }
39410 return resultobj;
39411fail:
39412 return NULL;
39413}
39414
39415
39416SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39417 PyObject *resultobj = 0;
39418 wxPyControl *arg1 = (wxPyControl *) 0 ;
39419 int *arg2 = (int *) 0 ;
39420 int *arg3 = (int *) 0 ;
39421 void *argp1 = 0 ;
39422 int res1 = 0 ;
39423 int temp2 ;
39424 int res2 = SWIG_TMPOBJ ;
39425 int temp3 ;
39426 int res3 = SWIG_TMPOBJ ;
39427 PyObject *swig_obj[1] ;
39428
39429 arg2 = &temp2;
39430 arg3 = &temp3;
39431 if (!args) SWIG_fail;
39432 swig_obj[0] = args;
39433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39434 if (!SWIG_IsOK(res1)) {
39435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39436 }
39437 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39438 {
39439 PyThreadState* __tstate = wxPyBeginAllowThreads();
39440 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39441 wxPyEndAllowThreads(__tstate);
39442 if (PyErr_Occurred()) SWIG_fail;
39443 }
39444 resultobj = SWIG_Py_Void();
39445 if (SWIG_IsTmpObj(res2)) {
39446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39447 } else {
39448 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39450 }
39451 if (SWIG_IsTmpObj(res3)) {
39452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39453 } else {
39454 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39456 }
39457 return resultobj;
39458fail:
39459 return NULL;
39460}
39461
39462
39463SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39464 PyObject *resultobj = 0;
39465 wxPyControl *arg1 = (wxPyControl *) 0 ;
39466 int *arg2 = (int *) 0 ;
39467 int *arg3 = (int *) 0 ;
39468 void *argp1 = 0 ;
39469 int res1 = 0 ;
39470 int temp2 ;
39471 int res2 = SWIG_TMPOBJ ;
39472 int temp3 ;
39473 int res3 = SWIG_TMPOBJ ;
39474 PyObject *swig_obj[1] ;
39475
39476 arg2 = &temp2;
39477 arg3 = &temp3;
39478 if (!args) SWIG_fail;
39479 swig_obj[0] = args;
39480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39481 if (!SWIG_IsOK(res1)) {
39482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39483 }
39484 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39485 {
39486 PyThreadState* __tstate = wxPyBeginAllowThreads();
39487 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39488 wxPyEndAllowThreads(__tstate);
39489 if (PyErr_Occurred()) SWIG_fail;
39490 }
39491 resultobj = SWIG_Py_Void();
39492 if (SWIG_IsTmpObj(res2)) {
39493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39494 } else {
39495 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39497 }
39498 if (SWIG_IsTmpObj(res3)) {
39499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39500 } else {
39501 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39503 }
39504 return resultobj;
39505fail:
39506 return NULL;
d55e5bfc
RD
39507}
39508
39509
554f62e9
RD
39510SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39511 PyObject *resultobj = 0;
39512 wxPyControl *arg1 = (wxPyControl *) 0 ;
39513 wxSize result;
39514 void *argp1 = 0 ;
39515 int res1 = 0 ;
39516 PyObject *swig_obj[1] ;
39517
39518 if (!args) SWIG_fail;
39519 swig_obj[0] = args;
39520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39521 if (!SWIG_IsOK(res1)) {
39522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39523 }
39524 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39525 {
39526 PyThreadState* __tstate = wxPyBeginAllowThreads();
39527 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39528 wxPyEndAllowThreads(__tstate);
39529 if (PyErr_Occurred()) SWIG_fail;
39530 }
39531 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39532 return resultobj;
39533fail:
39534 return NULL;
d55e5bfc
RD
39535}
39536
39537
554f62e9
RD
39538SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39539 PyObject *resultobj = 0;
39540 wxPyControl *arg1 = (wxPyControl *) 0 ;
39541 wxSize result;
39542 void *argp1 = 0 ;
39543 int res1 = 0 ;
39544 PyObject *swig_obj[1] ;
39545
39546 if (!args) SWIG_fail;
39547 swig_obj[0] = args;
39548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39549 if (!SWIG_IsOK(res1)) {
39550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39551 }
39552 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39553 {
39554 PyThreadState* __tstate = wxPyBeginAllowThreads();
39555 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39556 wxPyEndAllowThreads(__tstate);
39557 if (PyErr_Occurred()) SWIG_fail;
39558 }
39559 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39560 return resultobj;
39561fail:
39562 return NULL;
d55e5bfc
RD
39563}
39564
39565
554f62e9
RD
39566SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39567 PyObject *resultobj = 0;
39568 wxPyControl *arg1 = (wxPyControl *) 0 ;
39569 SwigValueWrapper<wxVisualAttributes > result;
39570 void *argp1 = 0 ;
39571 int res1 = 0 ;
39572 PyObject *swig_obj[1] ;
39573
39574 if (!args) SWIG_fail;
39575 swig_obj[0] = args;
39576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39577 if (!SWIG_IsOK(res1)) {
39578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39579 }
39580 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39581 {
39582 PyThreadState* __tstate = wxPyBeginAllowThreads();
39583 result = (arg1)->GetDefaultAttributes();
39584 wxPyEndAllowThreads(__tstate);
39585 if (PyErr_Occurred()) SWIG_fail;
39586 }
39587 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39588 return resultobj;
39589fail:
39590 return NULL;
d55e5bfc
RD
39591}
39592
39593
554f62e9
RD
39594SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39595 PyObject *resultobj = 0;
39596 wxPyControl *arg1 = (wxPyControl *) 0 ;
39597 void *argp1 = 0 ;
39598 int res1 = 0 ;
39599 PyObject *swig_obj[1] ;
39600
39601 if (!args) SWIG_fail;
39602 swig_obj[0] = args;
39603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39604 if (!SWIG_IsOK(res1)) {
39605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39606 }
39607 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39608 {
39609 PyThreadState* __tstate = wxPyBeginAllowThreads();
39610 (arg1)->OnInternalIdle();
39611 wxPyEndAllowThreads(__tstate);
39612 if (PyErr_Occurred()) SWIG_fail;
39613 }
39614 resultobj = SWIG_Py_Void();
39615 return resultobj;
39616fail:
39617 return NULL;
39618}
39619
39620
39621SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39622 PyObject *obj;
39623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39624 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39625 return SWIG_Py_Void();
39626}
39627
39628SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39629 return SWIG_Python_InitShadowInstance(args);
39630}
39631
39632SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39633 PyObject *resultobj = 0;
39634 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39635 int arg2 = (int) 0 ;
39636 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39637 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39638 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
554f62e9
RD
39639 wxHelpEvent *result = 0 ;
39640 int val1 ;
39641 int ecode1 = 0 ;
39642 int val2 ;
39643 int ecode2 = 0 ;
39644 wxPoint temp3 ;
704eda0c
RD
39645 int val4 ;
39646 int ecode4 = 0 ;
554f62e9
RD
39647 PyObject * obj0 = 0 ;
39648 PyObject * obj1 = 0 ;
39649 PyObject * obj2 = 0 ;
704eda0c 39650 PyObject * obj3 = 0 ;
554f62e9 39651 char * kwnames[] = {
704eda0c 39652 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
554f62e9
RD
39653 };
39654
704eda0c 39655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
39656 if (obj0) {
39657 ecode1 = SWIG_AsVal_int(obj0, &val1);
39658 if (!SWIG_IsOK(ecode1)) {
39659 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39660 }
39661 arg1 = static_cast< wxEventType >(val1);
39662 }
39663 if (obj1) {
39664 ecode2 = SWIG_AsVal_int(obj1, &val2);
39665 if (!SWIG_IsOK(ecode2)) {
39666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39667 }
39668 arg2 = static_cast< int >(val2);
39669 }
39670 if (obj2) {
d55e5bfc 39671 {
554f62e9
RD
39672 arg3 = &temp3;
39673 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39674 }
554f62e9 39675 }
704eda0c
RD
39676 if (obj3) {
39677 ecode4 = SWIG_AsVal_int(obj3, &val4);
39678 if (!SWIG_IsOK(ecode4)) {
39679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39680 }
39681 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39682 }
554f62e9
RD
39683 {
39684 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39685 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
554f62e9
RD
39686 wxPyEndAllowThreads(__tstate);
39687 if (PyErr_Occurred()) SWIG_fail;
39688 }
39689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39690 return resultobj;
39691fail:
39692 return NULL;
d55e5bfc
RD
39693}
39694
39695
554f62e9
RD
39696SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39697 PyObject *resultobj = 0;
39698 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39699 wxPoint result;
39700 void *argp1 = 0 ;
39701 int res1 = 0 ;
39702 PyObject *swig_obj[1] ;
39703
39704 if (!args) SWIG_fail;
39705 swig_obj[0] = args;
39706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39707 if (!SWIG_IsOK(res1)) {
39708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39709 }
39710 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39711 {
39712 PyThreadState* __tstate = wxPyBeginAllowThreads();
39713 result = ((wxHelpEvent const *)arg1)->GetPosition();
39714 wxPyEndAllowThreads(__tstate);
39715 if (PyErr_Occurred()) SWIG_fail;
39716 }
39717 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39718 return resultobj;
39719fail:
39720 return NULL;
39721}
39722
39723
39724SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39725 PyObject *resultobj = 0;
39726 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39727 wxPoint *arg2 = 0 ;
39728 void *argp1 = 0 ;
39729 int res1 = 0 ;
39730 wxPoint temp2 ;
39731 PyObject * obj0 = 0 ;
39732 PyObject * obj1 = 0 ;
39733 char * kwnames[] = {
39734 (char *) "self",(char *) "pos", NULL
39735 };
39736
39737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39739 if (!SWIG_IsOK(res1)) {
39740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39741 }
39742 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39743 {
39744 arg2 = &temp2;
39745 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39746 }
39747 {
39748 PyThreadState* __tstate = wxPyBeginAllowThreads();
39749 (arg1)->SetPosition((wxPoint const &)*arg2);
39750 wxPyEndAllowThreads(__tstate);
39751 if (PyErr_Occurred()) SWIG_fail;
39752 }
39753 resultobj = SWIG_Py_Void();
39754 return resultobj;
39755fail:
39756 return NULL;
f20a2e1f
RD
39757}
39758
39759
554f62e9
RD
39760SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39761 PyObject *resultobj = 0;
39762 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39763 wxString *result = 0 ;
39764 void *argp1 = 0 ;
39765 int res1 = 0 ;
39766 PyObject *swig_obj[1] ;
39767
39768 if (!args) SWIG_fail;
39769 swig_obj[0] = args;
39770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39771 if (!SWIG_IsOK(res1)) {
39772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39773 }
39774 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39775 {
39776 PyThreadState* __tstate = wxPyBeginAllowThreads();
39777 {
39778 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39779 result = (wxString *) &_result_ref;
39780 }
39781 wxPyEndAllowThreads(__tstate);
39782 if (PyErr_Occurred()) SWIG_fail;
39783 }
39784 {
39785#if wxUSE_UNICODE
39786 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39787#else
39788 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39789#endif
39790 }
39791 return resultobj;
39792fail:
39793 return NULL;
39794}
39795
39796
39797SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39798 PyObject *resultobj = 0;
39799 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39800 wxString *arg2 = 0 ;
39801 void *argp1 = 0 ;
39802 int res1 = 0 ;
39803 bool temp2 = false ;
39804 PyObject * obj0 = 0 ;
39805 PyObject * obj1 = 0 ;
39806 char * kwnames[] = {
39807 (char *) "self",(char *) "link", NULL
39808 };
39809
39810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39812 if (!SWIG_IsOK(res1)) {
39813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39814 }
39815 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39816 {
39817 arg2 = wxString_in_helper(obj1);
39818 if (arg2 == NULL) SWIG_fail;
39819 temp2 = true;
39820 }
39821 {
39822 PyThreadState* __tstate = wxPyBeginAllowThreads();
39823 (arg1)->SetLink((wxString const &)*arg2);
39824 wxPyEndAllowThreads(__tstate);
39825 if (PyErr_Occurred()) SWIG_fail;
39826 }
39827 resultobj = SWIG_Py_Void();
39828 {
39829 if (temp2)
39830 delete arg2;
39831 }
39832 return resultobj;
39833fail:
39834 {
39835 if (temp2)
39836 delete arg2;
39837 }
39838 return NULL;
d55e5bfc
RD
39839}
39840
39841
554f62e9
RD
39842SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39843 PyObject *resultobj = 0;
39844 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39845 wxString *result = 0 ;
39846 void *argp1 = 0 ;
39847 int res1 = 0 ;
39848 PyObject *swig_obj[1] ;
39849
39850 if (!args) SWIG_fail;
39851 swig_obj[0] = args;
39852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39853 if (!SWIG_IsOK(res1)) {
39854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39855 }
39856 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39857 {
39858 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39859 {
554f62e9
RD
39860 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39861 result = (wxString *) &_result_ref;
39862 }
39863 wxPyEndAllowThreads(__tstate);
39864 if (PyErr_Occurred()) SWIG_fail;
39865 }
39866 {
d55e5bfc 39867#if wxUSE_UNICODE
554f62e9 39868 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 39869#else
554f62e9 39870 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 39871#endif
554f62e9
RD
39872 }
39873 return resultobj;
39874fail:
39875 return NULL;
39876}
39877
39878
39879SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39880 PyObject *resultobj = 0;
39881 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39882 wxString *arg2 = 0 ;
39883 void *argp1 = 0 ;
39884 int res1 = 0 ;
39885 bool temp2 = false ;
39886 PyObject * obj0 = 0 ;
39887 PyObject * obj1 = 0 ;
39888 char * kwnames[] = {
39889 (char *) "self",(char *) "target", NULL
39890 };
39891
39892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39894 if (!SWIG_IsOK(res1)) {
39895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39896 }
39897 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39898 {
39899 arg2 = wxString_in_helper(obj1);
39900 if (arg2 == NULL) SWIG_fail;
39901 temp2 = true;
39902 }
39903 {
39904 PyThreadState* __tstate = wxPyBeginAllowThreads();
39905 (arg1)->SetTarget((wxString const &)*arg2);
39906 wxPyEndAllowThreads(__tstate);
39907 if (PyErr_Occurred()) SWIG_fail;
39908 }
39909 resultobj = SWIG_Py_Void();
39910 {
39911 if (temp2)
39912 delete arg2;
39913 }
39914 return resultobj;
39915fail:
39916 {
39917 if (temp2)
39918 delete arg2;
39919 }
39920 return NULL;
d55e5bfc
RD
39921}
39922
39923
704eda0c
RD
39924SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39925 PyObject *resultobj = 0;
39926 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39927 wxHelpEvent::Origin result;
39928 void *argp1 = 0 ;
39929 int res1 = 0 ;
39930 PyObject *swig_obj[1] ;
39931
39932 if (!args) SWIG_fail;
39933 swig_obj[0] = args;
39934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39935 if (!SWIG_IsOK(res1)) {
39936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39937 }
39938 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39939 {
39940 PyThreadState* __tstate = wxPyBeginAllowThreads();
39941 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39942 wxPyEndAllowThreads(__tstate);
39943 if (PyErr_Occurred()) SWIG_fail;
39944 }
39945 resultobj = SWIG_From_int(static_cast< int >(result));
39946 return resultobj;
39947fail:
39948 return NULL;
39949}
39950
39951
39952SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39953 PyObject *resultobj = 0;
39954 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39955 wxHelpEvent::Origin arg2 ;
39956 void *argp1 = 0 ;
39957 int res1 = 0 ;
39958 int val2 ;
39959 int ecode2 = 0 ;
39960 PyObject * obj0 = 0 ;
39961 PyObject * obj1 = 0 ;
39962 char * kwnames[] = {
39963 (char *) "self",(char *) "origin", NULL
39964 };
39965
39966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39968 if (!SWIG_IsOK(res1)) {
39969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39970 }
39971 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39972 ecode2 = SWIG_AsVal_int(obj1, &val2);
39973 if (!SWIG_IsOK(ecode2)) {
39974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39975 }
39976 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39977 {
39978 PyThreadState* __tstate = wxPyBeginAllowThreads();
39979 (arg1)->SetOrigin(arg2);
39980 wxPyEndAllowThreads(__tstate);
39981 if (PyErr_Occurred()) SWIG_fail;
39982 }
39983 resultobj = SWIG_Py_Void();
39984 return resultobj;
39985fail:
39986 return NULL;
39987}
39988
39989
554f62e9
RD
39990SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39991 PyObject *obj;
39992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39993 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39994 return SWIG_Py_Void();
7e08d4ef
RD
39995}
39996
554f62e9
RD
39997SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39998 return SWIG_Python_InitShadowInstance(args);
39999}
7e08d4ef 40000
554f62e9
RD
40001SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40002 PyObject *resultobj = 0;
40003 wxWindow *arg1 = (wxWindow *) NULL ;
40004 bool arg2 = (bool) true ;
40005 wxContextHelp *result = 0 ;
40006 void *argp1 = 0 ;
40007 int res1 = 0 ;
40008 bool val2 ;
40009 int ecode2 = 0 ;
40010 PyObject * obj0 = 0 ;
40011 PyObject * obj1 = 0 ;
40012 char * kwnames[] = {
40013 (char *) "window",(char *) "doNow", NULL
40014 };
40015
40016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40017 if (obj0) {
40018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40019 if (!SWIG_IsOK(res1)) {
40020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 40021 }
554f62e9
RD
40022 arg1 = reinterpret_cast< wxWindow * >(argp1);
40023 }
40024 if (obj1) {
40025 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40026 if (!SWIG_IsOK(ecode2)) {
40027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40028 }
40029 arg2 = static_cast< bool >(val2);
40030 }
40031 {
40032 if (!wxPyCheckForApp()) SWIG_fail;
40033 PyThreadState* __tstate = wxPyBeginAllowThreads();
40034 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40035 wxPyEndAllowThreads(__tstate);
40036 if (PyErr_Occurred()) SWIG_fail;
40037 }
40038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40039 return resultobj;
40040fail:
40041 return NULL;
d55e5bfc
RD
40042}
40043
40044
554f62e9
RD
40045SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40046 PyObject *resultobj = 0;
40047 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40048 void *argp1 = 0 ;
40049 int res1 = 0 ;
40050 PyObject *swig_obj[1] ;
40051
40052 if (!args) SWIG_fail;
40053 swig_obj[0] = args;
40054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40055 if (!SWIG_IsOK(res1)) {
40056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40057 }
40058 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40059 {
40060 PyThreadState* __tstate = wxPyBeginAllowThreads();
40061 delete arg1;
d55e5bfc 40062
554f62e9
RD
40063 wxPyEndAllowThreads(__tstate);
40064 if (PyErr_Occurred()) SWIG_fail;
40065 }
40066 resultobj = SWIG_Py_Void();
40067 return resultobj;
40068fail:
40069 return NULL;
40070}
40071
40072
40073SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40074 PyObject *resultobj = 0;
40075 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40076 wxWindow *arg2 = (wxWindow *) NULL ;
40077 bool result;
40078 void *argp1 = 0 ;
40079 int res1 = 0 ;
40080 void *argp2 = 0 ;
40081 int res2 = 0 ;
40082 PyObject * obj0 = 0 ;
40083 PyObject * obj1 = 0 ;
40084 char * kwnames[] = {
40085 (char *) "self",(char *) "window", NULL
40086 };
40087
40088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40090 if (!SWIG_IsOK(res1)) {
40091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40092 }
40093 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40094 if (obj1) {
40095 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40096 if (!SWIG_IsOK(res2)) {
40097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 40098 }
554f62e9
RD
40099 arg2 = reinterpret_cast< wxWindow * >(argp2);
40100 }
40101 {
40102 PyThreadState* __tstate = wxPyBeginAllowThreads();
40103 result = (bool)(arg1)->BeginContextHelp(arg2);
40104 wxPyEndAllowThreads(__tstate);
40105 if (PyErr_Occurred()) SWIG_fail;
40106 }
40107 {
40108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40109 }
40110 return resultobj;
40111fail:
40112 return NULL;
d55e5bfc
RD
40113}
40114
40115
554f62e9
RD
40116SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40117 PyObject *resultobj = 0;
40118 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40119 bool result;
40120 void *argp1 = 0 ;
40121 int res1 = 0 ;
40122 PyObject *swig_obj[1] ;
40123
40124 if (!args) SWIG_fail;
40125 swig_obj[0] = args;
40126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40127 if (!SWIG_IsOK(res1)) {
40128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40129 }
40130 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40131 {
40132 PyThreadState* __tstate = wxPyBeginAllowThreads();
40133 result = (bool)(arg1)->EndContextHelp();
40134 wxPyEndAllowThreads(__tstate);
40135 if (PyErr_Occurred()) SWIG_fail;
40136 }
40137 {
40138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40139 }
40140 return resultobj;
40141fail:
40142 return NULL;
40143}
40144
40145
40146SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40147 PyObject *obj;
40148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40149 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40150 return SWIG_Py_Void();
40151}
40152
40153SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40154 return SWIG_Python_InitShadowInstance(args);
40155}
40156
40157SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40158 PyObject *resultobj = 0;
40159 wxWindow *arg1 = (wxWindow *) 0 ;
40160 int arg2 = (int) wxID_CONTEXT_HELP ;
40161 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40162 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40163 wxSize const &arg4_defvalue = wxDefaultSize ;
40164 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40165 long arg5 = (long) wxBU_AUTODRAW ;
40166 wxContextHelpButton *result = 0 ;
40167 void *argp1 = 0 ;
40168 int res1 = 0 ;
40169 int val2 ;
40170 int ecode2 = 0 ;
40171 wxPoint temp3 ;
40172 wxSize temp4 ;
40173 long val5 ;
40174 int ecode5 = 0 ;
40175 PyObject * obj0 = 0 ;
40176 PyObject * obj1 = 0 ;
40177 PyObject * obj2 = 0 ;
40178 PyObject * obj3 = 0 ;
40179 PyObject * obj4 = 0 ;
40180 char * kwnames[] = {
40181 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40182 };
40183
40184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40186 if (!SWIG_IsOK(res1)) {
40187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40188 }
40189 arg1 = reinterpret_cast< wxWindow * >(argp1);
40190 if (obj1) {
40191 ecode2 = SWIG_AsVal_int(obj1, &val2);
40192 if (!SWIG_IsOK(ecode2)) {
40193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40194 }
40195 arg2 = static_cast< int >(val2);
40196 }
40197 if (obj2) {
d55e5bfc 40198 {
554f62e9
RD
40199 arg3 = &temp3;
40200 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 40201 }
554f62e9
RD
40202 }
40203 if (obj3) {
d55e5bfc 40204 {
554f62e9
RD
40205 arg4 = &temp4;
40206 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 40207 }
554f62e9
RD
40208 }
40209 if (obj4) {
40210 ecode5 = SWIG_AsVal_long(obj4, &val5);
40211 if (!SWIG_IsOK(ecode5)) {
40212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40213 }
40214 arg5 = static_cast< long >(val5);
40215 }
40216 {
40217 if (!wxPyCheckForApp()) SWIG_fail;
40218 PyThreadState* __tstate = wxPyBeginAllowThreads();
40219 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40220 wxPyEndAllowThreads(__tstate);
40221 if (PyErr_Occurred()) SWIG_fail;
40222 }
40223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40224 return resultobj;
40225fail:
40226 return NULL;
d55e5bfc
RD
40227}
40228
40229
554f62e9
RD
40230SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40231 PyObject *obj;
40232 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40233 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40234 return SWIG_Py_Void();
d55e5bfc
RD
40235}
40236
554f62e9
RD
40237SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40238 return SWIG_Python_InitShadowInstance(args);
40239}
d55e5bfc 40240
f52cbe90
RD
40241SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40242 PyObject *resultobj = 0;
40243 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40244 void *argp1 = 0 ;
40245 int res1 = 0 ;
40246 PyObject *swig_obj[1] ;
40247
40248 if (!args) SWIG_fail;
40249 swig_obj[0] = args;
40250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40251 if (!SWIG_IsOK(res1)) {
40252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40253 }
40254 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40255 {
40256 PyThreadState* __tstate = wxPyBeginAllowThreads();
40257 delete arg1;
40258
40259 wxPyEndAllowThreads(__tstate);
40260 if (PyErr_Occurred()) SWIG_fail;
40261 }
40262 resultobj = SWIG_Py_Void();
40263 return resultobj;
40264fail:
40265 return NULL;
40266}
40267
40268
554f62e9
RD
40269SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40270 PyObject *resultobj = 0;
40271 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40272 wxHelpProvider *result = 0 ;
40273 int res1 = 0 ;
40274 PyObject * obj0 = 0 ;
40275 char * kwnames[] = {
40276 (char *) "helpProvider", NULL
40277 };
40278
40279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40280 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40281 if (!SWIG_IsOK(res1)) {
40282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40283 }
40284 {
40285 PyThreadState* __tstate = wxPyBeginAllowThreads();
40286 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40287 wxPyEndAllowThreads(__tstate);
40288 if (PyErr_Occurred()) SWIG_fail;
40289 }
40290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40291 return resultobj;
40292fail:
40293 return NULL;
d55e5bfc
RD
40294}
40295
40296
554f62e9
RD
40297SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40298 PyObject *resultobj = 0;
40299 wxHelpProvider *result = 0 ;
40300
40301 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40302 {
40303 PyThreadState* __tstate = wxPyBeginAllowThreads();
40304 result = (wxHelpProvider *)wxHelpProvider::Get();
40305 wxPyEndAllowThreads(__tstate);
40306 if (PyErr_Occurred()) SWIG_fail;
40307 }
40308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40309 return resultobj;
40310fail:
40311 return NULL;
40312}
40313
40314
40315SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40316 PyObject *resultobj = 0;
40317 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40318 wxWindow *arg2 = (wxWindow *) 0 ;
40319 wxString result;
40320 void *argp1 = 0 ;
40321 int res1 = 0 ;
40322 void *argp2 = 0 ;
40323 int res2 = 0 ;
40324 PyObject * obj0 = 0 ;
40325 PyObject * obj1 = 0 ;
40326 char * kwnames[] = {
40327 (char *) "self",(char *) "window", NULL
40328 };
40329
40330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40332 if (!SWIG_IsOK(res1)) {
40333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40334 }
40335 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40336 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40337 if (!SWIG_IsOK(res2)) {
40338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40339 }
40340 arg2 = reinterpret_cast< wxWindow * >(argp2);
40341 {
40342 PyThreadState* __tstate = wxPyBeginAllowThreads();
40343 result = (arg1)->GetHelp((wxWindow const *)arg2);
40344 wxPyEndAllowThreads(__tstate);
40345 if (PyErr_Occurred()) SWIG_fail;
40346 }
40347 {
40348#if wxUSE_UNICODE
40349 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40350#else
40351 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40352#endif
40353 }
40354 return resultobj;
40355fail:
40356 return NULL;
40357}
40358
40359
40360SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40361 PyObject *resultobj = 0;
40362 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40363 wxWindow *arg2 = (wxWindow *) 0 ;
40364 bool result;
40365 void *argp1 = 0 ;
40366 int res1 = 0 ;
40367 void *argp2 = 0 ;
40368 int res2 = 0 ;
40369 PyObject * obj0 = 0 ;
40370 PyObject * obj1 = 0 ;
40371 char * kwnames[] = {
40372 (char *) "self",(char *) "window", NULL
40373 };
40374
40375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40377 if (!SWIG_IsOK(res1)) {
40378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40379 }
40380 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40382 if (!SWIG_IsOK(res2)) {
40383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40384 }
40385 arg2 = reinterpret_cast< wxWindow * >(argp2);
40386 {
40387 PyThreadState* __tstate = wxPyBeginAllowThreads();
40388 result = (bool)(arg1)->ShowHelp(arg2);
40389 wxPyEndAllowThreads(__tstate);
40390 if (PyErr_Occurred()) SWIG_fail;
40391 }
40392 {
40393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40394 }
40395 return resultobj;
40396fail:
40397 return NULL;
40398}
40399
40400
b850e7f3
RD
40401SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40402 PyObject *resultobj = 0;
40403 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40404 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40405 wxPoint *arg3 = 0 ;
40406 wxHelpEvent::Origin arg4 ;
40407 bool result;
40408 void *argp1 = 0 ;
40409 int res1 = 0 ;
40410 void *argp2 = 0 ;
40411 int res2 = 0 ;
40412 wxPoint temp3 ;
40413 int val4 ;
40414 int ecode4 = 0 ;
40415 PyObject * obj0 = 0 ;
40416 PyObject * obj1 = 0 ;
40417 PyObject * obj2 = 0 ;
40418 PyObject * obj3 = 0 ;
40419 char * kwnames[] = {
40420 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40421 };
40422
40423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40425 if (!SWIG_IsOK(res1)) {
40426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40427 }
40428 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40429 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40430 if (!SWIG_IsOK(res2)) {
40431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40432 }
40433 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40434 {
40435 arg3 = &temp3;
40436 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40437 }
40438 ecode4 = SWIG_AsVal_int(obj3, &val4);
40439 if (!SWIG_IsOK(ecode4)) {
40440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40441 }
40442 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40443 {
40444 PyThreadState* __tstate = wxPyBeginAllowThreads();
40445 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40446 wxPyEndAllowThreads(__tstate);
40447 if (PyErr_Occurred()) SWIG_fail;
40448 }
40449 {
40450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40451 }
40452 return resultobj;
40453fail:
40454 return NULL;
40455}
40456
40457
554f62e9
RD
40458SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40459 PyObject *resultobj = 0;
40460 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40461 wxWindow *arg2 = (wxWindow *) 0 ;
40462 wxString *arg3 = 0 ;
40463 void *argp1 = 0 ;
40464 int res1 = 0 ;
40465 void *argp2 = 0 ;
40466 int res2 = 0 ;
40467 bool temp3 = false ;
40468 PyObject * obj0 = 0 ;
40469 PyObject * obj1 = 0 ;
40470 PyObject * obj2 = 0 ;
40471 char * kwnames[] = {
40472 (char *) "self",(char *) "window",(char *) "text", NULL
40473 };
40474
40475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40477 if (!SWIG_IsOK(res1)) {
40478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40479 }
40480 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40481 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40482 if (!SWIG_IsOK(res2)) {
40483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40484 }
40485 arg2 = reinterpret_cast< wxWindow * >(argp2);
40486 {
40487 arg3 = wxString_in_helper(obj2);
40488 if (arg3 == NULL) SWIG_fail;
40489 temp3 = true;
40490 }
40491 {
40492 PyThreadState* __tstate = wxPyBeginAllowThreads();
40493 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40494 wxPyEndAllowThreads(__tstate);
40495 if (PyErr_Occurred()) SWIG_fail;
40496 }
40497 resultobj = SWIG_Py_Void();
40498 {
40499 if (temp3)
40500 delete arg3;
40501 }
40502 return resultobj;
40503fail:
40504 {
40505 if (temp3)
40506 delete arg3;
40507 }
40508 return NULL;
40509}
40510
40511
40512SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40513 PyObject *resultobj = 0;
40514 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40515 int arg2 ;
40516 wxString *arg3 = 0 ;
40517 void *argp1 = 0 ;
40518 int res1 = 0 ;
40519 int val2 ;
40520 int ecode2 = 0 ;
40521 bool temp3 = false ;
40522 PyObject * obj0 = 0 ;
40523 PyObject * obj1 = 0 ;
40524 PyObject * obj2 = 0 ;
40525 char * kwnames[] = {
40526 (char *) "self",(char *) "id",(char *) "text", NULL
40527 };
40528
40529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40531 if (!SWIG_IsOK(res1)) {
40532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40533 }
40534 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40535 ecode2 = SWIG_AsVal_int(obj1, &val2);
40536 if (!SWIG_IsOK(ecode2)) {
40537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40538 }
40539 arg2 = static_cast< int >(val2);
40540 {
40541 arg3 = wxString_in_helper(obj2);
40542 if (arg3 == NULL) SWIG_fail;
40543 temp3 = true;
40544 }
40545 {
40546 PyThreadState* __tstate = wxPyBeginAllowThreads();
40547 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40548 wxPyEndAllowThreads(__tstate);
40549 if (PyErr_Occurred()) SWIG_fail;
40550 }
40551 resultobj = SWIG_Py_Void();
40552 {
40553 if (temp3)
40554 delete arg3;
40555 }
40556 return resultobj;
40557fail:
40558 {
40559 if (temp3)
40560 delete arg3;
40561 }
40562 return NULL;
40563}
40564
40565
40566SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40567 PyObject *resultobj = 0;
40568 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40569 wxWindow *arg2 = (wxWindow *) 0 ;
40570 void *argp1 = 0 ;
40571 int res1 = 0 ;
40572 void *argp2 = 0 ;
40573 int res2 = 0 ;
40574 PyObject * obj0 = 0 ;
40575 PyObject * obj1 = 0 ;
40576 char * kwnames[] = {
40577 (char *) "self",(char *) "window", NULL
40578 };
40579
40580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40582 if (!SWIG_IsOK(res1)) {
40583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40584 }
40585 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40587 if (!SWIG_IsOK(res2)) {
40588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40589 }
40590 arg2 = reinterpret_cast< wxWindow * >(argp2);
40591 {
40592 PyThreadState* __tstate = wxPyBeginAllowThreads();
40593 (arg1)->RemoveHelp(arg2);
40594 wxPyEndAllowThreads(__tstate);
40595 if (PyErr_Occurred()) SWIG_fail;
40596 }
40597 resultobj = SWIG_Py_Void();
40598 return resultobj;
40599fail:
40600 return NULL;
d55e5bfc
RD
40601}
40602
40603
554f62e9
RD
40604SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40605 PyObject *resultobj = 0;
40606 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40607 void *argp1 = 0 ;
40608 int res1 = 0 ;
40609 PyObject *swig_obj[1] ;
40610
40611 if (!args) SWIG_fail;
40612 swig_obj[0] = args;
40613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40614 if (!SWIG_IsOK(res1)) {
40615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40616 }
40617 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40618 {
40619 PyThreadState* __tstate = wxPyBeginAllowThreads();
40620 wxHelpProvider_Destroy(arg1);
40621 wxPyEndAllowThreads(__tstate);
40622 if (PyErr_Occurred()) SWIG_fail;
40623 }
40624 resultobj = SWIG_Py_Void();
40625 return resultobj;
40626fail:
40627 return NULL;
d55e5bfc
RD
40628}
40629
40630
554f62e9
RD
40631SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40632 PyObject *obj;
40633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40634 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40635 return SWIG_Py_Void();
d55e5bfc
RD
40636}
40637
554f62e9
RD
40638SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40639 PyObject *resultobj = 0;
40640 wxSimpleHelpProvider *result = 0 ;
40641
40642 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40643 {
40644 PyThreadState* __tstate = wxPyBeginAllowThreads();
40645 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40646 wxPyEndAllowThreads(__tstate);
40647 if (PyErr_Occurred()) SWIG_fail;
40648 }
40649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40650 return resultobj;
40651fail:
40652 return NULL;
40653}
40654
40655
40656SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40657 PyObject *obj;
40658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40659 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40660 return SWIG_Py_Void();
40661}
40662
40663SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40664 return SWIG_Python_InitShadowInstance(args);
40665}
40666
40667SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40668 PyObject *resultobj = 0;
40669 wxBitmap *arg1 = 0 ;
40670 wxCursor const &arg2_defvalue = wxNullCursor ;
40671 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40672 wxGenericDragImage *result = 0 ;
40673 void *argp1 = 0 ;
40674 int res1 = 0 ;
40675 void *argp2 = 0 ;
40676 int res2 = 0 ;
40677 PyObject * obj0 = 0 ;
40678 PyObject * obj1 = 0 ;
40679 char * kwnames[] = {
40680 (char *) "image",(char *) "cursor", NULL
40681 };
40682
40683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40684 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40685 if (!SWIG_IsOK(res1)) {
40686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40687 }
40688 if (!argp1) {
40689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40690 }
40691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40692 if (obj1) {
40693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40694 if (!SWIG_IsOK(res2)) {
40695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40696 }
554f62e9
RD
40697 if (!argp2) {
40698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40699 }
554f62e9
RD
40700 arg2 = reinterpret_cast< wxCursor * >(argp2);
40701 }
40702 {
40703 if (!wxPyCheckForApp()) SWIG_fail;
40704 PyThreadState* __tstate = wxPyBeginAllowThreads();
40705 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40706 wxPyEndAllowThreads(__tstate);
40707 if (PyErr_Occurred()) SWIG_fail;
40708 }
40709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40710 return resultobj;
40711fail:
40712 return NULL;
40713}
40714
40715
40716SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40717 PyObject *resultobj = 0;
40718 wxIcon *arg1 = 0 ;
40719 wxCursor const &arg2_defvalue = wxNullCursor ;
40720 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40721 wxGenericDragImage *result = 0 ;
40722 void *argp1 = 0 ;
40723 int res1 = 0 ;
40724 void *argp2 = 0 ;
40725 int res2 = 0 ;
40726 PyObject * obj0 = 0 ;
40727 PyObject * obj1 = 0 ;
40728 char * kwnames[] = {
40729 (char *) "image",(char *) "cursor", NULL
40730 };
40731
40732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40733 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40734 if (!SWIG_IsOK(res1)) {
40735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40736 }
40737 if (!argp1) {
40738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40739 }
40740 arg1 = reinterpret_cast< wxIcon * >(argp1);
40741 if (obj1) {
40742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40743 if (!SWIG_IsOK(res2)) {
40744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40745 }
554f62e9
RD
40746 if (!argp2) {
40747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40748 }
554f62e9
RD
40749 arg2 = reinterpret_cast< wxCursor * >(argp2);
40750 }
40751 {
40752 if (!wxPyCheckForApp()) SWIG_fail;
40753 PyThreadState* __tstate = wxPyBeginAllowThreads();
40754 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40755 wxPyEndAllowThreads(__tstate);
40756 if (PyErr_Occurred()) SWIG_fail;
40757 }
40758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40759 return resultobj;
40760fail:
40761 return NULL;
40762}
40763
40764
40765SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40766 PyObject *resultobj = 0;
40767 wxString *arg1 = 0 ;
40768 wxCursor const &arg2_defvalue = wxNullCursor ;
40769 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40770 wxGenericDragImage *result = 0 ;
40771 bool temp1 = false ;
40772 void *argp2 = 0 ;
40773 int res2 = 0 ;
40774 PyObject * obj0 = 0 ;
40775 PyObject * obj1 = 0 ;
40776 char * kwnames[] = {
40777 (char *) "str",(char *) "cursor", NULL
40778 };
40779
40780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40781 {
40782 arg1 = wxString_in_helper(obj0);
40783 if (arg1 == NULL) SWIG_fail;
40784 temp1 = true;
40785 }
40786 if (obj1) {
40787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40788 if (!SWIG_IsOK(res2)) {
40789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40790 }
554f62e9
RD
40791 if (!argp2) {
40792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40793 }
554f62e9
RD
40794 arg2 = reinterpret_cast< wxCursor * >(argp2);
40795 }
40796 {
40797 if (!wxPyCheckForApp()) SWIG_fail;
40798 PyThreadState* __tstate = wxPyBeginAllowThreads();
40799 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40800 wxPyEndAllowThreads(__tstate);
40801 if (PyErr_Occurred()) SWIG_fail;
40802 }
40803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40804 {
40805 if (temp1)
40806 delete arg1;
40807 }
40808 return resultobj;
40809fail:
40810 {
40811 if (temp1)
40812 delete arg1;
40813 }
40814 return NULL;
40815}
40816
40817
40818SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40819 PyObject *resultobj = 0;
40820 wxPyTreeCtrl *arg1 = 0 ;
40821 wxTreeItemId *arg2 = 0 ;
40822 wxGenericDragImage *result = 0 ;
40823 void *argp1 = 0 ;
40824 int res1 = 0 ;
40825 void *argp2 = 0 ;
40826 int res2 = 0 ;
40827 PyObject * obj0 = 0 ;
40828 PyObject * obj1 = 0 ;
40829 char * kwnames[] = {
40830 (char *) "treeCtrl",(char *) "id", NULL
40831 };
40832
40833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40834 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40835 if (!SWIG_IsOK(res1)) {
40836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40837 }
40838 if (!argp1) {
40839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40840 }
40841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40843 if (!SWIG_IsOK(res2)) {
40844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40845 }
40846 if (!argp2) {
40847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40848 }
40849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40850 {
40851 if (!wxPyCheckForApp()) SWIG_fail;
40852 PyThreadState* __tstate = wxPyBeginAllowThreads();
40853 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40854 wxPyEndAllowThreads(__tstate);
40855 if (PyErr_Occurred()) SWIG_fail;
40856 }
40857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40858 return resultobj;
40859fail:
40860 return NULL;
40861}
40862
40863
40864SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40865 PyObject *resultobj = 0;
40866 wxPyListCtrl *arg1 = 0 ;
40867 long arg2 ;
40868 wxGenericDragImage *result = 0 ;
40869 void *argp1 = 0 ;
40870 int res1 = 0 ;
40871 long val2 ;
40872 int ecode2 = 0 ;
40873 PyObject * obj0 = 0 ;
40874 PyObject * obj1 = 0 ;
40875 char * kwnames[] = {
40876 (char *) "listCtrl",(char *) "id", NULL
40877 };
40878
40879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40880 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40881 if (!SWIG_IsOK(res1)) {
40882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40883 }
40884 if (!argp1) {
40885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40886 }
40887 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40888 ecode2 = SWIG_AsVal_long(obj1, &val2);
40889 if (!SWIG_IsOK(ecode2)) {
40890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40891 }
40892 arg2 = static_cast< long >(val2);
40893 {
40894 if (!wxPyCheckForApp()) SWIG_fail;
40895 PyThreadState* __tstate = wxPyBeginAllowThreads();
40896 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40897 wxPyEndAllowThreads(__tstate);
40898 if (PyErr_Occurred()) SWIG_fail;
40899 }
40900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40901 return resultobj;
40902fail:
40903 return NULL;
d55e5bfc
RD
40904}
40905
40906
554f62e9
RD
40907SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40908 PyObject *resultobj = 0;
40909 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40910 void *argp1 = 0 ;
40911 int res1 = 0 ;
40912 PyObject *swig_obj[1] ;
40913
40914 if (!args) SWIG_fail;
40915 swig_obj[0] = args;
40916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40917 if (!SWIG_IsOK(res1)) {
40918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40919 }
40920 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40921 {
40922 PyThreadState* __tstate = wxPyBeginAllowThreads();
40923 delete arg1;
d55e5bfc 40924
554f62e9
RD
40925 wxPyEndAllowThreads(__tstate);
40926 if (PyErr_Occurred()) SWIG_fail;
40927 }
40928 resultobj = SWIG_Py_Void();
40929 return resultobj;
40930fail:
40931 return NULL;
40932}
40933
40934
40935SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40936 PyObject *resultobj = 0;
40937 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40938 wxBitmap *arg2 = (wxBitmap *) 0 ;
40939 void *argp1 = 0 ;
40940 int res1 = 0 ;
40941 void *argp2 = 0 ;
40942 int res2 = 0 ;
40943 PyObject * obj0 = 0 ;
40944 PyObject * obj1 = 0 ;
40945 char * kwnames[] = {
40946 (char *) "self",(char *) "bitmap", NULL
40947 };
40948
40949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40951 if (!SWIG_IsOK(res1)) {
40952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40953 }
40954 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40956 if (!SWIG_IsOK(res2)) {
40957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40958 }
40959 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40960 {
40961 PyThreadState* __tstate = wxPyBeginAllowThreads();
40962 (arg1)->SetBackingBitmap(arg2);
40963 wxPyEndAllowThreads(__tstate);
40964 if (PyErr_Occurred()) SWIG_fail;
40965 }
40966 resultobj = SWIG_Py_Void();
40967 return resultobj;
40968fail:
40969 return NULL;
40970}
40971
40972
40973SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40974 PyObject *resultobj = 0;
40975 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40976 wxPoint *arg2 = 0 ;
40977 wxWindow *arg3 = (wxWindow *) 0 ;
40978 bool arg4 = (bool) false ;
40979 wxRect *arg5 = (wxRect *) NULL ;
40980 bool result;
40981 void *argp1 = 0 ;
40982 int res1 = 0 ;
40983 wxPoint temp2 ;
40984 void *argp3 = 0 ;
40985 int res3 = 0 ;
40986 bool val4 ;
40987 int ecode4 = 0 ;
40988 void *argp5 = 0 ;
40989 int res5 = 0 ;
40990 PyObject * obj0 = 0 ;
40991 PyObject * obj1 = 0 ;
40992 PyObject * obj2 = 0 ;
40993 PyObject * obj3 = 0 ;
40994 PyObject * obj4 = 0 ;
40995 char * kwnames[] = {
40996 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40997 };
40998
40999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41001 if (!SWIG_IsOK(res1)) {
41002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41003 }
41004 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41005 {
41006 arg2 = &temp2;
41007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41008 }
41009 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41010 if (!SWIG_IsOK(res3)) {
41011 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41012 }
41013 arg3 = reinterpret_cast< wxWindow * >(argp3);
41014 if (obj3) {
41015 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41016 if (!SWIG_IsOK(ecode4)) {
41017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41018 }
41019 arg4 = static_cast< bool >(val4);
41020 }
41021 if (obj4) {
41022 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41023 if (!SWIG_IsOK(res5)) {
41024 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 41025 }
554f62e9
RD
41026 arg5 = reinterpret_cast< wxRect * >(argp5);
41027 }
41028 {
41029 PyThreadState* __tstate = wxPyBeginAllowThreads();
41030 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41031 wxPyEndAllowThreads(__tstate);
41032 if (PyErr_Occurred()) SWIG_fail;
41033 }
41034 {
41035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41036 }
41037 return resultobj;
41038fail:
41039 return NULL;
41040}
41041
41042
41043SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41044 PyObject *resultobj = 0;
41045 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41046 wxPoint *arg2 = 0 ;
41047 wxWindow *arg3 = (wxWindow *) 0 ;
41048 wxWindow *arg4 = (wxWindow *) 0 ;
41049 bool result;
41050 void *argp1 = 0 ;
41051 int res1 = 0 ;
41052 wxPoint temp2 ;
41053 void *argp3 = 0 ;
41054 int res3 = 0 ;
41055 void *argp4 = 0 ;
41056 int res4 = 0 ;
41057 PyObject * obj0 = 0 ;
41058 PyObject * obj1 = 0 ;
41059 PyObject * obj2 = 0 ;
41060 PyObject * obj3 = 0 ;
41061 char * kwnames[] = {
41062 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41063 };
41064
41065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41067 if (!SWIG_IsOK(res1)) {
41068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41069 }
41070 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41071 {
41072 arg2 = &temp2;
41073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41074 }
41075 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41076 if (!SWIG_IsOK(res3)) {
41077 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41078 }
41079 arg3 = reinterpret_cast< wxWindow * >(argp3);
41080 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41081 if (!SWIG_IsOK(res4)) {
41082 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41083 }
41084 arg4 = reinterpret_cast< wxWindow * >(argp4);
41085 {
41086 PyThreadState* __tstate = wxPyBeginAllowThreads();
41087 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41088 wxPyEndAllowThreads(__tstate);
41089 if (PyErr_Occurred()) SWIG_fail;
41090 }
41091 {
41092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41093 }
41094 return resultobj;
41095fail:
41096 return NULL;
d55e5bfc
RD
41097}
41098
41099
554f62e9
RD
41100SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41101 PyObject *resultobj = 0;
41102 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41103 bool result;
41104 void *argp1 = 0 ;
41105 int res1 = 0 ;
41106 PyObject *swig_obj[1] ;
41107
41108 if (!args) SWIG_fail;
41109 swig_obj[0] = args;
41110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41111 if (!SWIG_IsOK(res1)) {
41112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41113 }
41114 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41115 {
41116 PyThreadState* __tstate = wxPyBeginAllowThreads();
41117 result = (bool)(arg1)->EndDrag();
41118 wxPyEndAllowThreads(__tstate);
41119 if (PyErr_Occurred()) SWIG_fail;
41120 }
41121 {
41122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41123 }
41124 return resultobj;
41125fail:
41126 return NULL;
41127}
41128
41129
41130SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41131 PyObject *resultobj = 0;
41132 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41133 wxPoint *arg2 = 0 ;
41134 bool result;
41135 void *argp1 = 0 ;
41136 int res1 = 0 ;
41137 wxPoint temp2 ;
41138 PyObject * obj0 = 0 ;
41139 PyObject * obj1 = 0 ;
41140 char * kwnames[] = {
41141 (char *) "self",(char *) "pt", NULL
41142 };
41143
41144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41146 if (!SWIG_IsOK(res1)) {
41147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41148 }
41149 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41150 {
41151 arg2 = &temp2;
41152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41153 }
41154 {
41155 PyThreadState* __tstate = wxPyBeginAllowThreads();
41156 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41157 wxPyEndAllowThreads(__tstate);
41158 if (PyErr_Occurred()) SWIG_fail;
41159 }
41160 {
41161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41162 }
41163 return resultobj;
41164fail:
41165 return NULL;
d55e5bfc
RD
41166}
41167
41168
554f62e9
RD
41169SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41170 PyObject *resultobj = 0;
41171 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41172 bool result;
41173 void *argp1 = 0 ;
41174 int res1 = 0 ;
41175 PyObject *swig_obj[1] ;
41176
41177 if (!args) SWIG_fail;
41178 swig_obj[0] = args;
41179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41180 if (!SWIG_IsOK(res1)) {
41181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41182 }
41183 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41184 {
41185 PyThreadState* __tstate = wxPyBeginAllowThreads();
41186 result = (bool)(arg1)->Show();
41187 wxPyEndAllowThreads(__tstate);
41188 if (PyErr_Occurred()) SWIG_fail;
41189 }
41190 {
41191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41192 }
41193 return resultobj;
41194fail:
41195 return NULL;
d55e5bfc
RD
41196}
41197
41198
554f62e9
RD
41199SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41200 PyObject *resultobj = 0;
41201 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41202 bool result;
41203 void *argp1 = 0 ;
41204 int res1 = 0 ;
41205 PyObject *swig_obj[1] ;
41206
41207 if (!args) SWIG_fail;
41208 swig_obj[0] = args;
41209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41210 if (!SWIG_IsOK(res1)) {
41211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41212 }
41213 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41214 {
41215 PyThreadState* __tstate = wxPyBeginAllowThreads();
41216 result = (bool)(arg1)->Hide();
41217 wxPyEndAllowThreads(__tstate);
41218 if (PyErr_Occurred()) SWIG_fail;
41219 }
41220 {
41221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41222 }
41223 return resultobj;
41224fail:
41225 return NULL;
41226}
41227
41228
41229SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41230 PyObject *resultobj = 0;
41231 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41232 wxPoint *arg2 = 0 ;
41233 wxRect result;
41234 void *argp1 = 0 ;
41235 int res1 = 0 ;
41236 wxPoint temp2 ;
41237 PyObject * obj0 = 0 ;
41238 PyObject * obj1 = 0 ;
41239 char * kwnames[] = {
41240 (char *) "self",(char *) "pos", NULL
41241 };
41242
41243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41245 if (!SWIG_IsOK(res1)) {
41246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41247 }
41248 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41249 {
41250 arg2 = &temp2;
41251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41252 }
41253 {
41254 PyThreadState* __tstate = wxPyBeginAllowThreads();
41255 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41256 wxPyEndAllowThreads(__tstate);
41257 if (PyErr_Occurred()) SWIG_fail;
41258 }
41259 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41260 return resultobj;
41261fail:
41262 return NULL;
41263}
41264
41265
41266SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41267 PyObject *resultobj = 0;
41268 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41269 wxDC *arg2 = 0 ;
41270 wxPoint *arg3 = 0 ;
41271 bool result;
41272 void *argp1 = 0 ;
41273 int res1 = 0 ;
41274 void *argp2 = 0 ;
41275 int res2 = 0 ;
41276 wxPoint temp3 ;
41277 PyObject * obj0 = 0 ;
41278 PyObject * obj1 = 0 ;
41279 PyObject * obj2 = 0 ;
41280 char * kwnames[] = {
41281 (char *) "self",(char *) "dc",(char *) "pos", NULL
41282 };
41283
41284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41286 if (!SWIG_IsOK(res1)) {
41287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41288 }
41289 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41291 if (!SWIG_IsOK(res2)) {
41292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41293 }
41294 if (!argp2) {
41295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41296 }
41297 arg2 = reinterpret_cast< wxDC * >(argp2);
41298 {
41299 arg3 = &temp3;
41300 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41301 }
41302 {
41303 PyThreadState* __tstate = wxPyBeginAllowThreads();
41304 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41305 wxPyEndAllowThreads(__tstate);
41306 if (PyErr_Occurred()) SWIG_fail;
41307 }
41308 {
41309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41310 }
41311 return resultobj;
41312fail:
41313 return NULL;
41314}
41315
41316
41317SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41318 PyObject *resultobj = 0;
41319 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41320 wxDC *arg2 = 0 ;
41321 wxMemoryDC *arg3 = 0 ;
41322 wxRect *arg4 = 0 ;
41323 wxRect *arg5 = 0 ;
41324 bool result;
41325 void *argp1 = 0 ;
41326 int res1 = 0 ;
41327 void *argp2 = 0 ;
41328 int res2 = 0 ;
41329 void *argp3 = 0 ;
41330 int res3 = 0 ;
41331 wxRect temp4 ;
41332 wxRect temp5 ;
41333 PyObject * obj0 = 0 ;
41334 PyObject * obj1 = 0 ;
41335 PyObject * obj2 = 0 ;
41336 PyObject * obj3 = 0 ;
41337 PyObject * obj4 = 0 ;
41338 char * kwnames[] = {
41339 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41340 };
41341
41342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41344 if (!SWIG_IsOK(res1)) {
41345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41346 }
41347 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41348 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41349 if (!SWIG_IsOK(res2)) {
41350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41351 }
41352 if (!argp2) {
41353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41354 }
41355 arg2 = reinterpret_cast< wxDC * >(argp2);
41356 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41357 if (!SWIG_IsOK(res3)) {
41358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41359 }
41360 if (!argp3) {
41361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41362 }
41363 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41364 {
41365 arg4 = &temp4;
41366 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41367 }
41368 {
41369 arg5 = &temp5;
41370 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41371 }
41372 {
41373 PyThreadState* __tstate = wxPyBeginAllowThreads();
41374 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41375 wxPyEndAllowThreads(__tstate);
41376 if (PyErr_Occurred()) SWIG_fail;
41377 }
41378 {
41379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41380 }
41381 return resultobj;
41382fail:
41383 return NULL;
41384}
41385
41386
41387SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41388 PyObject *resultobj = 0;
41389 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41390 wxPoint *arg2 = 0 ;
41391 wxPoint *arg3 = 0 ;
41392 bool arg4 ;
41393 bool arg5 ;
41394 bool result;
41395 void *argp1 = 0 ;
41396 int res1 = 0 ;
41397 wxPoint temp2 ;
41398 wxPoint temp3 ;
41399 bool val4 ;
41400 int ecode4 = 0 ;
41401 bool val5 ;
41402 int ecode5 = 0 ;
41403 PyObject * obj0 = 0 ;
41404 PyObject * obj1 = 0 ;
41405 PyObject * obj2 = 0 ;
41406 PyObject * obj3 = 0 ;
41407 PyObject * obj4 = 0 ;
41408 char * kwnames[] = {
41409 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41410 };
41411
41412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41414 if (!SWIG_IsOK(res1)) {
41415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41416 }
41417 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41418 {
41419 arg2 = &temp2;
41420 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41421 }
41422 {
41423 arg3 = &temp3;
41424 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41425 }
41426 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41427 if (!SWIG_IsOK(ecode4)) {
41428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41429 }
41430 arg4 = static_cast< bool >(val4);
41431 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41432 if (!SWIG_IsOK(ecode5)) {
41433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41434 }
41435 arg5 = static_cast< bool >(val5);
41436 {
41437 PyThreadState* __tstate = wxPyBeginAllowThreads();
41438 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41439 wxPyEndAllowThreads(__tstate);
41440 if (PyErr_Occurred()) SWIG_fail;
41441 }
41442 {
41443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41444 }
41445 return resultobj;
41446fail:
41447 return NULL;
d55e5bfc
RD
41448}
41449
41450
554f62e9
RD
41451SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41452 PyObject *obj;
41453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41454 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41455 return SWIG_Py_Void();
d55e5bfc
RD
41456}
41457
554f62e9
RD
41458SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41459 return SWIG_Python_InitShadowInstance(args);
41460}
d55e5bfc 41461
554f62e9
RD
41462SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41463 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41464 return 1;
d55e5bfc
RD
41465}
41466
41467
554f62e9
RD
41468SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41469 PyObject *pyobj = 0;
41470
41471 {
41472#if wxUSE_UNICODE
41473 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41474#else
41475 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41476#endif
41477 }
41478 return pyobj;
41479}
41480
41481
41482SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41483 PyObject *resultobj = 0;
41484 wxWindow *arg1 = (wxWindow *) 0 ;
41485 int arg2 = (int) -1 ;
41486 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41487 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41490 wxSize const &arg5_defvalue = wxDefaultSize ;
41491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41492 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41493 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41494 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41495 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41496 wxString *arg8 = (wxString *) &arg8_defvalue ;
41497 wxDatePickerCtrl *result = 0 ;
41498 void *argp1 = 0 ;
41499 int res1 = 0 ;
41500 int val2 ;
41501 int ecode2 = 0 ;
41502 void *argp3 = 0 ;
41503 int res3 = 0 ;
41504 wxPoint temp4 ;
41505 wxSize temp5 ;
41506 long val6 ;
41507 int ecode6 = 0 ;
41508 void *argp7 = 0 ;
41509 int res7 = 0 ;
41510 bool temp8 = false ;
41511 PyObject * obj0 = 0 ;
41512 PyObject * obj1 = 0 ;
41513 PyObject * obj2 = 0 ;
41514 PyObject * obj3 = 0 ;
41515 PyObject * obj4 = 0 ;
41516 PyObject * obj5 = 0 ;
41517 PyObject * obj6 = 0 ;
41518 PyObject * obj7 = 0 ;
41519 char * kwnames[] = {
41520 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41521 };
41522
41523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41525 if (!SWIG_IsOK(res1)) {
41526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41527 }
41528 arg1 = reinterpret_cast< wxWindow * >(argp1);
41529 if (obj1) {
41530 ecode2 = SWIG_AsVal_int(obj1, &val2);
41531 if (!SWIG_IsOK(ecode2)) {
41532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41533 }
41534 arg2 = static_cast< int >(val2);
41535 }
41536 if (obj2) {
41537 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41538 if (!SWIG_IsOK(res3)) {
41539 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41540 }
554f62e9
RD
41541 if (!argp3) {
41542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41543 }
554f62e9
RD
41544 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41545 }
41546 if (obj3) {
d55e5bfc 41547 {
554f62e9
RD
41548 arg4 = &temp4;
41549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 41550 }
554f62e9
RD
41551 }
41552 if (obj4) {
093d3ff1 41553 {
554f62e9
RD
41554 arg5 = &temp5;
41555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41556 }
554f62e9
RD
41557 }
41558 if (obj5) {
41559 ecode6 = SWIG_AsVal_long(obj5, &val6);
41560 if (!SWIG_IsOK(ecode6)) {
41561 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41562 }
41563 arg6 = static_cast< long >(val6);
41564 }
41565 if (obj6) {
41566 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41567 if (!SWIG_IsOK(res7)) {
41568 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41569 }
554f62e9
RD
41570 if (!argp7) {
41571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 41572 }
554f62e9
RD
41573 arg7 = reinterpret_cast< wxValidator * >(argp7);
41574 }
41575 if (obj7) {
d55e5bfc 41576 {
554f62e9
RD
41577 arg8 = wxString_in_helper(obj7);
41578 if (arg8 == NULL) SWIG_fail;
41579 temp8 = true;
d55e5bfc 41580 }
554f62e9
RD
41581 }
41582 {
41583 if (!wxPyCheckForApp()) SWIG_fail;
41584 PyThreadState* __tstate = wxPyBeginAllowThreads();
41585 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41586 wxPyEndAllowThreads(__tstate);
41587 if (PyErr_Occurred()) SWIG_fail;
41588 }
41589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41590 {
41591 if (temp8)
41592 delete arg8;
41593 }
41594 return resultobj;
41595fail:
41596 {
41597 if (temp8)
41598 delete arg8;
41599 }
41600 return NULL;
d55e5bfc
RD
41601}
41602
41603
554f62e9
RD
41604SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41605 PyObject *resultobj = 0;
41606 wxDatePickerCtrl *result = 0 ;
41607
41608 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41609 {
41610 if (!wxPyCheckForApp()) SWIG_fail;
41611 PyThreadState* __tstate = wxPyBeginAllowThreads();
41612 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41613 wxPyEndAllowThreads(__tstate);
41614 if (PyErr_Occurred()) SWIG_fail;
41615 }
41616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41617 return resultobj;
41618fail:
41619 return NULL;
41620}
41621
41622
41623SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41624 PyObject *resultobj = 0;
41625 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41626 wxWindow *arg2 = (wxWindow *) 0 ;
41627 int arg3 = (int) -1 ;
41628 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41629 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41630 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41631 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41632 wxSize const &arg6_defvalue = wxDefaultSize ;
41633 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41634 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41635 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41636 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41637 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41638 wxString *arg9 = (wxString *) &arg9_defvalue ;
41639 bool result;
41640 void *argp1 = 0 ;
41641 int res1 = 0 ;
41642 void *argp2 = 0 ;
41643 int res2 = 0 ;
41644 int val3 ;
41645 int ecode3 = 0 ;
41646 void *argp4 = 0 ;
41647 int res4 = 0 ;
41648 wxPoint temp5 ;
41649 wxSize temp6 ;
41650 long val7 ;
41651 int ecode7 = 0 ;
41652 void *argp8 = 0 ;
41653 int res8 = 0 ;
41654 bool temp9 = false ;
41655 PyObject * obj0 = 0 ;
41656 PyObject * obj1 = 0 ;
41657 PyObject * obj2 = 0 ;
41658 PyObject * obj3 = 0 ;
41659 PyObject * obj4 = 0 ;
41660 PyObject * obj5 = 0 ;
41661 PyObject * obj6 = 0 ;
41662 PyObject * obj7 = 0 ;
41663 PyObject * obj8 = 0 ;
41664 char * kwnames[] = {
41665 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41666 };
41667
41668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41670 if (!SWIG_IsOK(res1)) {
41671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41672 }
41673 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41675 if (!SWIG_IsOK(res2)) {
41676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41677 }
41678 arg2 = reinterpret_cast< wxWindow * >(argp2);
41679 if (obj2) {
41680 ecode3 = SWIG_AsVal_int(obj2, &val3);
41681 if (!SWIG_IsOK(ecode3)) {
41682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41683 }
41684 arg3 = static_cast< int >(val3);
41685 }
41686 if (obj3) {
41687 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41688 if (!SWIG_IsOK(res4)) {
41689 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
093d3ff1 41690 }
554f62e9
RD
41691 if (!argp4) {
41692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41693 }
554f62e9
RD
41694 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41695 }
41696 if (obj4) {
093d3ff1 41697 {
554f62e9
RD
41698 arg5 = &temp5;
41699 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41700 }
554f62e9
RD
41701 }
41702 if (obj5) {
d55e5bfc 41703 {
554f62e9
RD
41704 arg6 = &temp6;
41705 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41706 }
554f62e9
RD
41707 }
41708 if (obj6) {
41709 ecode7 = SWIG_AsVal_long(obj6, &val7);
41710 if (!SWIG_IsOK(ecode7)) {
41711 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41712 }
41713 arg7 = static_cast< long >(val7);
41714 }
41715 if (obj7) {
41716 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41717 if (!SWIG_IsOK(res8)) {
41718 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41719 }
41720 if (!argp8) {
41721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41722 }
554f62e9
RD
41723 arg8 = reinterpret_cast< wxValidator * >(argp8);
41724 }
41725 if (obj8) {
d55e5bfc 41726 {
554f62e9
RD
41727 arg9 = wxString_in_helper(obj8);
41728 if (arg9 == NULL) SWIG_fail;
41729 temp9 = true;
d55e5bfc 41730 }
554f62e9
RD
41731 }
41732 {
41733 PyThreadState* __tstate = wxPyBeginAllowThreads();
41734 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41735 wxPyEndAllowThreads(__tstate);
41736 if (PyErr_Occurred()) SWIG_fail;
41737 }
41738 {
41739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41740 }
41741 {
41742 if (temp9)
41743 delete arg9;
41744 }
41745 return resultobj;
41746fail:
41747 {
41748 if (temp9)
41749 delete arg9;
41750 }
41751 return NULL;
41752}
41753
41754
41755SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41756 PyObject *resultobj = 0;
41757 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41758 wxDateTime *arg2 = 0 ;
41759 void *argp1 = 0 ;
41760 int res1 = 0 ;
41761 void *argp2 = 0 ;
41762 int res2 = 0 ;
41763 PyObject * obj0 = 0 ;
41764 PyObject * obj1 = 0 ;
41765 char * kwnames[] = {
41766 (char *) "self",(char *) "dt", NULL
41767 };
41768
41769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41771 if (!SWIG_IsOK(res1)) {
41772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41773 }
41774 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41776 if (!SWIG_IsOK(res2)) {
41777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41778 }
41779 if (!argp2) {
41780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41781 }
41782 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41783 {
41784 PyThreadState* __tstate = wxPyBeginAllowThreads();
41785 (arg1)->SetValue((wxDateTime const &)*arg2);
41786 wxPyEndAllowThreads(__tstate);
41787 if (PyErr_Occurred()) SWIG_fail;
41788 }
41789 resultobj = SWIG_Py_Void();
41790 return resultobj;
41791fail:
41792 return NULL;
d55e5bfc
RD
41793}
41794
41795
554f62e9
RD
41796SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41797 PyObject *resultobj = 0;
41798 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41799 wxDateTime result;
41800 void *argp1 = 0 ;
41801 int res1 = 0 ;
41802 PyObject *swig_obj[1] ;
41803
41804 if (!args) SWIG_fail;
41805 swig_obj[0] = args;
41806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41807 if (!SWIG_IsOK(res1)) {
41808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41809 }
41810 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41811 {
41812 PyThreadState* __tstate = wxPyBeginAllowThreads();
41813 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41814 wxPyEndAllowThreads(__tstate);
41815 if (PyErr_Occurred()) SWIG_fail;
41816 }
41817 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41818 return resultobj;
41819fail:
41820 return NULL;
41821}
41822
41823
41824SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41825 PyObject *resultobj = 0;
41826 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41827 wxDateTime *arg2 = 0 ;
41828 wxDateTime *arg3 = 0 ;
41829 void *argp1 = 0 ;
41830 int res1 = 0 ;
41831 void *argp2 = 0 ;
41832 int res2 = 0 ;
41833 void *argp3 = 0 ;
41834 int res3 = 0 ;
41835 PyObject * obj0 = 0 ;
41836 PyObject * obj1 = 0 ;
41837 PyObject * obj2 = 0 ;
41838 char * kwnames[] = {
41839 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41840 };
41841
41842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41844 if (!SWIG_IsOK(res1)) {
41845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41846 }
41847 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41849 if (!SWIG_IsOK(res2)) {
41850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41851 }
41852 if (!argp2) {
41853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41854 }
41855 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41856 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41857 if (!SWIG_IsOK(res3)) {
41858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41859 }
41860 if (!argp3) {
41861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41862 }
41863 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41864 {
41865 PyThreadState* __tstate = wxPyBeginAllowThreads();
41866 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41867 wxPyEndAllowThreads(__tstate);
41868 if (PyErr_Occurred()) SWIG_fail;
41869 }
41870 resultobj = SWIG_Py_Void();
41871 return resultobj;
41872fail:
41873 return NULL;
d55e5bfc
RD
41874}
41875
41876
554f62e9
RD
41877SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41878 PyObject *resultobj = 0;
41879 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41880 wxDateTime result;
41881 void *argp1 = 0 ;
41882 int res1 = 0 ;
41883 PyObject *swig_obj[1] ;
41884
41885 if (!args) SWIG_fail;
41886 swig_obj[0] = args;
41887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41888 if (!SWIG_IsOK(res1)) {
41889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41890 }
41891 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41892 {
41893 PyThreadState* __tstate = wxPyBeginAllowThreads();
41894 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41895 wxPyEndAllowThreads(__tstate);
41896 if (PyErr_Occurred()) SWIG_fail;
41897 }
41898 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41899 return resultobj;
41900fail:
41901 return NULL;
d55e5bfc
RD
41902}
41903
41904
554f62e9
RD
41905SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41906 PyObject *resultobj = 0;
41907 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41908 wxDateTime result;
41909 void *argp1 = 0 ;
41910 int res1 = 0 ;
41911 PyObject *swig_obj[1] ;
41912
41913 if (!args) SWIG_fail;
41914 swig_obj[0] = args;
41915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41916 if (!SWIG_IsOK(res1)) {
41917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41918 }
41919 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41920 {
41921 PyThreadState* __tstate = wxPyBeginAllowThreads();
41922 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41923 wxPyEndAllowThreads(__tstate);
41924 if (PyErr_Occurred()) SWIG_fail;
41925 }
41926 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41927 return resultobj;
41928fail:
41929 return NULL;
d55e5bfc
RD
41930}
41931
41932
554f62e9
RD
41933SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41934 PyObject *obj;
41935 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41936 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41937 return SWIG_Py_Void();
d55e5bfc
RD
41938}
41939
554f62e9
RD
41940SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41941 return SWIG_Python_InitShadowInstance(args);
41942}
d55e5bfc 41943
704eda0c
RD
41944SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41945 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41946 return 1;
41947}
41948
41949
41950SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41951 PyObject *pyobj = 0;
41952
41953 {
41954#if wxUSE_UNICODE
41955 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41956#else
41957 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41958#endif
41959 }
41960 return pyobj;
41961}
41962
41963
41964SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41965 PyObject *resultobj = 0;
41966 wxWindow *arg1 = (wxWindow *) 0 ;
41967 int arg2 ;
41968 wxString *arg3 = 0 ;
41969 wxString *arg4 = 0 ;
41970 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41971 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41972 wxSize const &arg6_defvalue = wxDefaultSize ;
41973 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41974 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41975 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41976 wxString *arg8 = (wxString *) &arg8_defvalue ;
41977 wxHyperlinkCtrl *result = 0 ;
41978 void *argp1 = 0 ;
41979 int res1 = 0 ;
41980 int val2 ;
41981 int ecode2 = 0 ;
41982 bool temp3 = false ;
41983 bool temp4 = false ;
41984 wxPoint temp5 ;
41985 wxSize temp6 ;
41986 long val7 ;
41987 int ecode7 = 0 ;
41988 bool temp8 = false ;
41989 PyObject * obj0 = 0 ;
41990 PyObject * obj1 = 0 ;
41991 PyObject * obj2 = 0 ;
41992 PyObject * obj3 = 0 ;
41993 PyObject * obj4 = 0 ;
41994 PyObject * obj5 = 0 ;
41995 PyObject * obj6 = 0 ;
41996 PyObject * obj7 = 0 ;
41997 char * kwnames[] = {
41998 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41999 };
42000
42001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42003 if (!SWIG_IsOK(res1)) {
42004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42005 }
42006 arg1 = reinterpret_cast< wxWindow * >(argp1);
42007 ecode2 = SWIG_AsVal_int(obj1, &val2);
42008 if (!SWIG_IsOK(ecode2)) {
42009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42010 }
42011 arg2 = static_cast< int >(val2);
42012 {
42013 arg3 = wxString_in_helper(obj2);
42014 if (arg3 == NULL) SWIG_fail;
42015 temp3 = true;
42016 }
42017 {
42018 arg4 = wxString_in_helper(obj3);
42019 if (arg4 == NULL) SWIG_fail;
42020 temp4 = true;
42021 }
42022 if (obj4) {
42023 {
42024 arg5 = &temp5;
42025 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42026 }
42027 }
42028 if (obj5) {
42029 {
42030 arg6 = &temp6;
42031 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42032 }
42033 }
42034 if (obj6) {
42035 ecode7 = SWIG_AsVal_long(obj6, &val7);
42036 if (!SWIG_IsOK(ecode7)) {
42037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42038 }
42039 arg7 = static_cast< long >(val7);
42040 }
42041 if (obj7) {
42042 {
42043 arg8 = wxString_in_helper(obj7);
42044 if (arg8 == NULL) SWIG_fail;
42045 temp8 = true;
42046 }
42047 }
42048 {
42049 if (!wxPyCheckForApp()) SWIG_fail;
42050 PyThreadState* __tstate = wxPyBeginAllowThreads();
42051 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42052 wxPyEndAllowThreads(__tstate);
42053 if (PyErr_Occurred()) SWIG_fail;
42054 }
42055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42056 {
42057 if (temp3)
42058 delete arg3;
42059 }
42060 {
42061 if (temp4)
42062 delete arg4;
42063 }
42064 {
42065 if (temp8)
42066 delete arg8;
42067 }
42068 return resultobj;
42069fail:
42070 {
42071 if (temp3)
42072 delete arg3;
42073 }
42074 {
42075 if (temp4)
42076 delete arg4;
42077 }
42078 {
42079 if (temp8)
42080 delete arg8;
42081 }
42082 return NULL;
42083}
42084
42085
42086SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42087 PyObject *resultobj = 0;
42088 wxHyperlinkCtrl *result = 0 ;
42089
42090 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42091 {
42092 if (!wxPyCheckForApp()) SWIG_fail;
42093 PyThreadState* __tstate = wxPyBeginAllowThreads();
42094 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42095 wxPyEndAllowThreads(__tstate);
42096 if (PyErr_Occurred()) SWIG_fail;
42097 }
42098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42099 return resultobj;
42100fail:
42101 return NULL;
42102}
42103
42104
42105SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42106 PyObject *resultobj = 0;
42107 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42108 wxWindow *arg2 = (wxWindow *) 0 ;
42109 int arg3 ;
42110 wxString *arg4 = 0 ;
42111 wxString *arg5 = 0 ;
42112 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42113 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42114 wxSize const &arg7_defvalue = wxDefaultSize ;
42115 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42116 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42117 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42118 wxString *arg9 = (wxString *) &arg9_defvalue ;
42119 bool result;
42120 void *argp1 = 0 ;
42121 int res1 = 0 ;
42122 void *argp2 = 0 ;
42123 int res2 = 0 ;
42124 int val3 ;
42125 int ecode3 = 0 ;
42126 bool temp4 = false ;
42127 bool temp5 = false ;
42128 wxPoint temp6 ;
42129 wxSize temp7 ;
42130 long val8 ;
42131 int ecode8 = 0 ;
42132 bool temp9 = false ;
42133 PyObject * obj0 = 0 ;
42134 PyObject * obj1 = 0 ;
42135 PyObject * obj2 = 0 ;
42136 PyObject * obj3 = 0 ;
42137 PyObject * obj4 = 0 ;
42138 PyObject * obj5 = 0 ;
42139 PyObject * obj6 = 0 ;
42140 PyObject * obj7 = 0 ;
42141 PyObject * obj8 = 0 ;
42142 char * kwnames[] = {
42143 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42144 };
42145
42146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42148 if (!SWIG_IsOK(res1)) {
42149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42150 }
42151 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42153 if (!SWIG_IsOK(res2)) {
42154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42155 }
42156 arg2 = reinterpret_cast< wxWindow * >(argp2);
42157 ecode3 = SWIG_AsVal_int(obj2, &val3);
42158 if (!SWIG_IsOK(ecode3)) {
42159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42160 }
42161 arg3 = static_cast< int >(val3);
42162 {
42163 arg4 = wxString_in_helper(obj3);
42164 if (arg4 == NULL) SWIG_fail;
42165 temp4 = true;
42166 }
42167 {
42168 arg5 = wxString_in_helper(obj4);
42169 if (arg5 == NULL) SWIG_fail;
42170 temp5 = true;
42171 }
42172 if (obj5) {
42173 {
42174 arg6 = &temp6;
42175 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42176 }
42177 }
42178 if (obj6) {
42179 {
42180 arg7 = &temp7;
42181 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42182 }
42183 }
42184 if (obj7) {
42185 ecode8 = SWIG_AsVal_long(obj7, &val8);
42186 if (!SWIG_IsOK(ecode8)) {
42187 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42188 }
42189 arg8 = static_cast< long >(val8);
42190 }
42191 if (obj8) {
42192 {
42193 arg9 = wxString_in_helper(obj8);
42194 if (arg9 == NULL) SWIG_fail;
42195 temp9 = true;
42196 }
42197 }
42198 {
42199 PyThreadState* __tstate = wxPyBeginAllowThreads();
42200 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42201 wxPyEndAllowThreads(__tstate);
42202 if (PyErr_Occurred()) SWIG_fail;
42203 }
42204 {
42205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42206 }
42207 {
42208 if (temp4)
42209 delete arg4;
42210 }
42211 {
42212 if (temp5)
42213 delete arg5;
42214 }
42215 {
42216 if (temp9)
42217 delete arg9;
42218 }
42219 return resultobj;
42220fail:
42221 {
42222 if (temp4)
42223 delete arg4;
42224 }
42225 {
42226 if (temp5)
42227 delete arg5;
42228 }
42229 {
42230 if (temp9)
42231 delete arg9;
42232 }
42233 return NULL;
42234}
42235
42236
42237SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42238 PyObject *resultobj = 0;
42239 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42240 wxColour result;
42241 void *argp1 = 0 ;
42242 int res1 = 0 ;
42243 PyObject *swig_obj[1] ;
42244
42245 if (!args) SWIG_fail;
42246 swig_obj[0] = args;
42247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42248 if (!SWIG_IsOK(res1)) {
42249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42250 }
42251 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42252 {
42253 PyThreadState* __tstate = wxPyBeginAllowThreads();
42254 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42255 wxPyEndAllowThreads(__tstate);
42256 if (PyErr_Occurred()) SWIG_fail;
42257 }
42258 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42259 return resultobj;
42260fail:
42261 return NULL;
42262}
42263
42264
42265SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42266 PyObject *resultobj = 0;
42267 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42268 wxColour *arg2 = 0 ;
42269 void *argp1 = 0 ;
42270 int res1 = 0 ;
42271 wxColour temp2 ;
42272 PyObject * obj0 = 0 ;
42273 PyObject * obj1 = 0 ;
42274 char * kwnames[] = {
42275 (char *) "self",(char *) "colour", NULL
42276 };
42277
42278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42280 if (!SWIG_IsOK(res1)) {
42281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42282 }
42283 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42284 {
42285 arg2 = &temp2;
42286 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42287 }
42288 {
42289 PyThreadState* __tstate = wxPyBeginAllowThreads();
42290 (arg1)->SetHoverColour((wxColour const &)*arg2);
42291 wxPyEndAllowThreads(__tstate);
42292 if (PyErr_Occurred()) SWIG_fail;
42293 }
42294 resultobj = SWIG_Py_Void();
42295 return resultobj;
42296fail:
42297 return NULL;
42298}
42299
42300
42301SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42302 PyObject *resultobj = 0;
42303 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42304 wxColour result;
42305 void *argp1 = 0 ;
42306 int res1 = 0 ;
42307 PyObject *swig_obj[1] ;
42308
42309 if (!args) SWIG_fail;
42310 swig_obj[0] = args;
42311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42312 if (!SWIG_IsOK(res1)) {
42313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42314 }
42315 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42316 {
42317 PyThreadState* __tstate = wxPyBeginAllowThreads();
42318 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42319 wxPyEndAllowThreads(__tstate);
42320 if (PyErr_Occurred()) SWIG_fail;
42321 }
42322 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42323 return resultobj;
42324fail:
42325 return NULL;
42326}
42327
42328
42329SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42330 PyObject *resultobj = 0;
42331 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42332 wxColour *arg2 = 0 ;
42333 void *argp1 = 0 ;
42334 int res1 = 0 ;
42335 wxColour temp2 ;
42336 PyObject * obj0 = 0 ;
42337 PyObject * obj1 = 0 ;
42338 char * kwnames[] = {
42339 (char *) "self",(char *) "colour", NULL
42340 };
42341
42342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42344 if (!SWIG_IsOK(res1)) {
42345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42346 }
42347 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42348 {
42349 arg2 = &temp2;
42350 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42351 }
42352 {
42353 PyThreadState* __tstate = wxPyBeginAllowThreads();
42354 (arg1)->SetNormalColour((wxColour const &)*arg2);
42355 wxPyEndAllowThreads(__tstate);
42356 if (PyErr_Occurred()) SWIG_fail;
42357 }
42358 resultobj = SWIG_Py_Void();
42359 return resultobj;
42360fail:
42361 return NULL;
42362}
42363
42364
42365SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42366 PyObject *resultobj = 0;
42367 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42368 wxColour result;
42369 void *argp1 = 0 ;
42370 int res1 = 0 ;
42371 PyObject *swig_obj[1] ;
42372
42373 if (!args) SWIG_fail;
42374 swig_obj[0] = args;
42375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42376 if (!SWIG_IsOK(res1)) {
42377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42378 }
42379 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42380 {
42381 PyThreadState* __tstate = wxPyBeginAllowThreads();
42382 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42383 wxPyEndAllowThreads(__tstate);
42384 if (PyErr_Occurred()) SWIG_fail;
42385 }
42386 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42387 return resultobj;
42388fail:
42389 return NULL;
42390}
42391
42392
42393SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42394 PyObject *resultobj = 0;
42395 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42396 wxColour *arg2 = 0 ;
42397 void *argp1 = 0 ;
42398 int res1 = 0 ;
42399 wxColour temp2 ;
42400 PyObject * obj0 = 0 ;
42401 PyObject * obj1 = 0 ;
42402 char * kwnames[] = {
42403 (char *) "self",(char *) "colour", NULL
42404 };
42405
42406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42408 if (!SWIG_IsOK(res1)) {
42409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42410 }
42411 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42412 {
42413 arg2 = &temp2;
42414 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42415 }
42416 {
42417 PyThreadState* __tstate = wxPyBeginAllowThreads();
42418 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42419 wxPyEndAllowThreads(__tstate);
42420 if (PyErr_Occurred()) SWIG_fail;
42421 }
42422 resultobj = SWIG_Py_Void();
42423 return resultobj;
42424fail:
42425 return NULL;
42426}
42427
42428
42429SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42430 PyObject *resultobj = 0;
42431 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42432 wxString result;
42433 void *argp1 = 0 ;
42434 int res1 = 0 ;
42435 PyObject *swig_obj[1] ;
42436
42437 if (!args) SWIG_fail;
42438 swig_obj[0] = args;
42439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42440 if (!SWIG_IsOK(res1)) {
42441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42442 }
42443 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42444 {
42445 PyThreadState* __tstate = wxPyBeginAllowThreads();
42446 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42447 wxPyEndAllowThreads(__tstate);
42448 if (PyErr_Occurred()) SWIG_fail;
42449 }
42450 {
42451#if wxUSE_UNICODE
42452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42453#else
42454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42455#endif
42456 }
42457 return resultobj;
42458fail:
42459 return NULL;
42460}
42461
42462
42463SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42464 PyObject *resultobj = 0;
42465 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42466 wxString *arg2 = 0 ;
42467 void *argp1 = 0 ;
42468 int res1 = 0 ;
42469 bool temp2 = false ;
42470 PyObject * obj0 = 0 ;
42471 PyObject * obj1 = 0 ;
42472 char * kwnames[] = {
42473 (char *) "self",(char *) "url", NULL
42474 };
42475
42476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42478 if (!SWIG_IsOK(res1)) {
42479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42480 }
42481 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42482 {
42483 arg2 = wxString_in_helper(obj1);
42484 if (arg2 == NULL) SWIG_fail;
42485 temp2 = true;
42486 }
42487 {
42488 PyThreadState* __tstate = wxPyBeginAllowThreads();
42489 (arg1)->SetURL((wxString const &)*arg2);
42490 wxPyEndAllowThreads(__tstate);
42491 if (PyErr_Occurred()) SWIG_fail;
42492 }
42493 resultobj = SWIG_Py_Void();
42494 {
42495 if (temp2)
42496 delete arg2;
42497 }
42498 return resultobj;
42499fail:
42500 {
42501 if (temp2)
42502 delete arg2;
42503 }
42504 return NULL;
42505}
42506
42507
42508SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42509 PyObject *resultobj = 0;
42510 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42511 bool arg2 = (bool) true ;
42512 void *argp1 = 0 ;
42513 int res1 = 0 ;
42514 bool val2 ;
42515 int ecode2 = 0 ;
42516 PyObject * obj0 = 0 ;
42517 PyObject * obj1 = 0 ;
42518 char * kwnames[] = {
42519 (char *) "self",(char *) "visited", NULL
42520 };
42521
42522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42524 if (!SWIG_IsOK(res1)) {
42525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42526 }
42527 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42528 if (obj1) {
42529 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42530 if (!SWIG_IsOK(ecode2)) {
42531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42532 }
42533 arg2 = static_cast< bool >(val2);
42534 }
42535 {
42536 PyThreadState* __tstate = wxPyBeginAllowThreads();
42537 (arg1)->SetVisited(arg2);
42538 wxPyEndAllowThreads(__tstate);
42539 if (PyErr_Occurred()) SWIG_fail;
42540 }
42541 resultobj = SWIG_Py_Void();
42542 return resultobj;
42543fail:
42544 return NULL;
42545}
42546
42547
42548SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42549 PyObject *resultobj = 0;
42550 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42551 bool result;
42552 void *argp1 = 0 ;
42553 int res1 = 0 ;
42554 PyObject *swig_obj[1] ;
42555
42556 if (!args) SWIG_fail;
42557 swig_obj[0] = args;
42558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42559 if (!SWIG_IsOK(res1)) {
42560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42561 }
42562 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42563 {
42564 PyThreadState* __tstate = wxPyBeginAllowThreads();
42565 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42566 wxPyEndAllowThreads(__tstate);
42567 if (PyErr_Occurred()) SWIG_fail;
42568 }
42569 {
42570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42571 }
42572 return resultobj;
42573fail:
42574 return NULL;
42575}
42576
42577
42578SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42579 PyObject *obj;
42580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42581 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42582 return SWIG_Py_Void();
42583}
42584
42585SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42586 return SWIG_Python_InitShadowInstance(args);
42587}
42588
42589SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42590 PyObject *resultobj = 0;
42591 wxObject *arg1 = (wxObject *) 0 ;
42592 int arg2 ;
42593 wxString *arg3 = 0 ;
42594 wxHyperlinkEvent *result = 0 ;
42595 void *argp1 = 0 ;
42596 int res1 = 0 ;
42597 int val2 ;
42598 int ecode2 = 0 ;
42599 bool temp3 = false ;
42600 PyObject * obj0 = 0 ;
42601 PyObject * obj1 = 0 ;
42602 PyObject * obj2 = 0 ;
42603 char * kwnames[] = {
42604 (char *) "generator",(char *) "id",(char *) "url", NULL
42605 };
42606
42607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42609 if (!SWIG_IsOK(res1)) {
42610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42611 }
42612 arg1 = reinterpret_cast< wxObject * >(argp1);
42613 ecode2 = SWIG_AsVal_int(obj1, &val2);
42614 if (!SWIG_IsOK(ecode2)) {
42615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42616 }
42617 arg2 = static_cast< int >(val2);
42618 {
42619 arg3 = wxString_in_helper(obj2);
42620 if (arg3 == NULL) SWIG_fail;
42621 temp3 = true;
42622 }
42623 {
42624 PyThreadState* __tstate = wxPyBeginAllowThreads();
42625 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42626 wxPyEndAllowThreads(__tstate);
42627 if (PyErr_Occurred()) SWIG_fail;
42628 }
42629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42630 {
42631 if (temp3)
42632 delete arg3;
42633 }
42634 return resultobj;
42635fail:
42636 {
42637 if (temp3)
42638 delete arg3;
42639 }
42640 return NULL;
42641}
42642
42643
42644SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42645 PyObject *resultobj = 0;
42646 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42647 wxString result;
42648 void *argp1 = 0 ;
42649 int res1 = 0 ;
42650 PyObject *swig_obj[1] ;
42651
42652 if (!args) SWIG_fail;
42653 swig_obj[0] = args;
42654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42655 if (!SWIG_IsOK(res1)) {
42656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42657 }
42658 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42659 {
42660 PyThreadState* __tstate = wxPyBeginAllowThreads();
42661 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42662 wxPyEndAllowThreads(__tstate);
42663 if (PyErr_Occurred()) SWIG_fail;
42664 }
42665 {
42666#if wxUSE_UNICODE
42667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42668#else
42669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42670#endif
42671 }
42672 return resultobj;
42673fail:
42674 return NULL;
42675}
42676
42677
42678SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42679 PyObject *resultobj = 0;
42680 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42681 wxString *arg2 = 0 ;
42682 void *argp1 = 0 ;
42683 int res1 = 0 ;
42684 bool temp2 = false ;
42685 PyObject * obj0 = 0 ;
42686 PyObject * obj1 = 0 ;
42687 char * kwnames[] = {
42688 (char *) "self",(char *) "url", NULL
42689 };
42690
42691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42693 if (!SWIG_IsOK(res1)) {
42694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42695 }
42696 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42697 {
42698 arg2 = wxString_in_helper(obj1);
42699 if (arg2 == NULL) SWIG_fail;
42700 temp2 = true;
42701 }
42702 {
42703 PyThreadState* __tstate = wxPyBeginAllowThreads();
42704 (arg1)->SetURL((wxString const &)*arg2);
42705 wxPyEndAllowThreads(__tstate);
42706 if (PyErr_Occurred()) SWIG_fail;
42707 }
42708 resultobj = SWIG_Py_Void();
42709 {
42710 if (temp2)
42711 delete arg2;
42712 }
42713 return resultobj;
42714fail:
42715 {
42716 if (temp2)
42717 delete arg2;
42718 }
42719 return NULL;
42720}
42721
42722
42723SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42724 PyObject *obj;
42725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42726 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42727 return SWIG_Py_Void();
42728}
42729
42730SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42731 return SWIG_Python_InitShadowInstance(args);
42732}
42733
b850e7f3
RD
42734SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42735 PyObject *resultobj = 0;
42736 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42737 wxWindow *arg2 = (wxWindow *) 0 ;
42738 int arg3 ;
42739 wxString const &arg4_defvalue = wxEmptyString ;
42740 wxString *arg4 = (wxString *) &arg4_defvalue ;
42741 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42742 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42743 wxSize const &arg6_defvalue = wxDefaultSize ;
42744 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42745 long arg7 = (long) 0 ;
42746 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42747 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42748 wxString const &arg9_defvalue = wxButtonNameStr ;
42749 wxString *arg9 = (wxString *) &arg9_defvalue ;
42750 bool result;
42751 void *argp1 = 0 ;
42752 int res1 = 0 ;
42753 void *argp2 = 0 ;
42754 int res2 = 0 ;
42755 int val3 ;
42756 int ecode3 = 0 ;
42757 bool temp4 = false ;
42758 wxPoint temp5 ;
42759 wxSize temp6 ;
42760 long val7 ;
42761 int ecode7 = 0 ;
42762 void *argp8 = 0 ;
42763 int res8 = 0 ;
42764 bool temp9 = false ;
42765 PyObject * obj0 = 0 ;
42766 PyObject * obj1 = 0 ;
42767 PyObject * obj2 = 0 ;
42768 PyObject * obj3 = 0 ;
42769 PyObject * obj4 = 0 ;
42770 PyObject * obj5 = 0 ;
42771 PyObject * obj6 = 0 ;
42772 PyObject * obj7 = 0 ;
42773 PyObject * obj8 = 0 ;
42774 char * kwnames[] = {
42775 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42776 };
42777
42778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42780 if (!SWIG_IsOK(res1)) {
42781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42782 }
42783 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42784 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42785 if (!SWIG_IsOK(res2)) {
42786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42787 }
42788 arg2 = reinterpret_cast< wxWindow * >(argp2);
42789 ecode3 = SWIG_AsVal_int(obj2, &val3);
42790 if (!SWIG_IsOK(ecode3)) {
42791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42792 }
42793 arg3 = static_cast< int >(val3);
42794 if (obj3) {
42795 {
42796 arg4 = wxString_in_helper(obj3);
42797 if (arg4 == NULL) SWIG_fail;
42798 temp4 = true;
42799 }
42800 }
42801 if (obj4) {
42802 {
42803 arg5 = &temp5;
42804 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42805 }
42806 }
42807 if (obj5) {
42808 {
42809 arg6 = &temp6;
42810 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42811 }
42812 }
42813 if (obj6) {
42814 ecode7 = SWIG_AsVal_long(obj6, &val7);
42815 if (!SWIG_IsOK(ecode7)) {
42816 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42817 }
42818 arg7 = static_cast< long >(val7);
42819 }
42820 if (obj7) {
42821 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42822 if (!SWIG_IsOK(res8)) {
42823 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42824 }
42825 if (!argp8) {
42826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42827 }
42828 arg8 = reinterpret_cast< wxValidator * >(argp8);
42829 }
42830 if (obj8) {
42831 {
42832 arg9 = wxString_in_helper(obj8);
42833 if (arg9 == NULL) SWIG_fail;
42834 temp9 = true;
42835 }
42836 }
42837 {
42838 PyThreadState* __tstate = wxPyBeginAllowThreads();
42839 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42840 wxPyEndAllowThreads(__tstate);
42841 if (PyErr_Occurred()) SWIG_fail;
42842 }
42843 {
42844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42845 }
42846 {
42847 if (temp4)
42848 delete arg4;
42849 }
42850 {
42851 if (temp9)
42852 delete arg9;
42853 }
42854 return resultobj;
42855fail:
42856 {
42857 if (temp4)
42858 delete arg4;
42859 }
42860 {
42861 if (temp9)
42862 delete arg9;
42863 }
42864 return NULL;
42865}
42866
42867
42868SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42869 PyObject *resultobj = 0;
42870 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42871 int arg2 ;
42872 void *argp1 = 0 ;
42873 int res1 = 0 ;
42874 int val2 ;
42875 int ecode2 = 0 ;
42876 PyObject * obj0 = 0 ;
42877 PyObject * obj1 = 0 ;
42878 char * kwnames[] = {
42879 (char *) "self",(char *) "newmargin", NULL
42880 };
42881
42882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42884 if (!SWIG_IsOK(res1)) {
42885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42886 }
42887 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42888 ecode2 = SWIG_AsVal_int(obj1, &val2);
42889 if (!SWIG_IsOK(ecode2)) {
42890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42891 }
42892 arg2 = static_cast< int >(val2);
42893 {
42894 PyThreadState* __tstate = wxPyBeginAllowThreads();
42895 (arg1)->SetInternalMargin(arg2);
42896 wxPyEndAllowThreads(__tstate);
42897 if (PyErr_Occurred()) SWIG_fail;
42898 }
42899 resultobj = SWIG_Py_Void();
42900 return resultobj;
42901fail:
42902 return NULL;
42903}
42904
42905
42906SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42907 PyObject *resultobj = 0;
42908 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42909 int result;
42910 void *argp1 = 0 ;
42911 int res1 = 0 ;
42912 PyObject *swig_obj[1] ;
42913
42914 if (!args) SWIG_fail;
42915 swig_obj[0] = args;
42916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42917 if (!SWIG_IsOK(res1)) {
42918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42919 }
42920 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42921 {
42922 PyThreadState* __tstate = wxPyBeginAllowThreads();
42923 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42924 wxPyEndAllowThreads(__tstate);
42925 if (PyErr_Occurred()) SWIG_fail;
42926 }
42927 resultobj = SWIG_From_int(static_cast< int >(result));
42928 return resultobj;
42929fail:
42930 return NULL;
42931}
42932
42933
42934SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42935 PyObject *resultobj = 0;
42936 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42937 int arg2 ;
42938 void *argp1 = 0 ;
42939 int res1 = 0 ;
42940 int val2 ;
42941 int ecode2 = 0 ;
42942 PyObject * obj0 = 0 ;
42943 PyObject * obj1 = 0 ;
42944 char * kwnames[] = {
42945 (char *) "self",(char *) "prop", NULL
42946 };
42947
42948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42950 if (!SWIG_IsOK(res1)) {
42951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42952 }
42953 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42954 ecode2 = SWIG_AsVal_int(obj1, &val2);
42955 if (!SWIG_IsOK(ecode2)) {
42956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42957 }
42958 arg2 = static_cast< int >(val2);
42959 {
42960 PyThreadState* __tstate = wxPyBeginAllowThreads();
42961 (arg1)->SetTextCtrlProportion(arg2);
42962 wxPyEndAllowThreads(__tstate);
42963 if (PyErr_Occurred()) SWIG_fail;
42964 }
42965 resultobj = SWIG_Py_Void();
42966 return resultobj;
42967fail:
42968 return NULL;
42969}
42970
42971
42972SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42973 PyObject *resultobj = 0;
42974 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42975 int result;
42976 void *argp1 = 0 ;
42977 int res1 = 0 ;
42978 PyObject *swig_obj[1] ;
42979
42980 if (!args) SWIG_fail;
42981 swig_obj[0] = args;
42982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42983 if (!SWIG_IsOK(res1)) {
42984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42985 }
42986 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42987 {
42988 PyThreadState* __tstate = wxPyBeginAllowThreads();
42989 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42990 wxPyEndAllowThreads(__tstate);
42991 if (PyErr_Occurred()) SWIG_fail;
42992 }
42993 resultobj = SWIG_From_int(static_cast< int >(result));
42994 return resultobj;
42995fail:
42996 return NULL;
42997}
42998
42999
1eeb270e
RD
43000SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43001 PyObject *resultobj = 0;
43002 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43003 int arg2 ;
43004 void *argp1 = 0 ;
43005 int res1 = 0 ;
43006 int val2 ;
43007 int ecode2 = 0 ;
43008 PyObject * obj0 = 0 ;
43009 PyObject * obj1 = 0 ;
43010 char * kwnames[] = {
43011 (char *) "self",(char *) "prop", NULL
43012 };
43013
43014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43016 if (!SWIG_IsOK(res1)) {
43017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43018 }
43019 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43020 ecode2 = SWIG_AsVal_int(obj1, &val2);
43021 if (!SWIG_IsOK(ecode2)) {
43022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43023 }
43024 arg2 = static_cast< int >(val2);
43025 {
43026 PyThreadState* __tstate = wxPyBeginAllowThreads();
43027 (arg1)->SetPickerCtrlProportion(arg2);
43028 wxPyEndAllowThreads(__tstate);
43029 if (PyErr_Occurred()) SWIG_fail;
43030 }
43031 resultobj = SWIG_Py_Void();
43032 return resultobj;
43033fail:
43034 return NULL;
43035}
43036
43037
43038SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43039 PyObject *resultobj = 0;
43040 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43041 int result;
43042 void *argp1 = 0 ;
43043 int res1 = 0 ;
43044 PyObject *swig_obj[1] ;
43045
43046 if (!args) SWIG_fail;
43047 swig_obj[0] = args;
43048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43049 if (!SWIG_IsOK(res1)) {
43050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43051 }
43052 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43053 {
43054 PyThreadState* __tstate = wxPyBeginAllowThreads();
43055 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43056 wxPyEndAllowThreads(__tstate);
43057 if (PyErr_Occurred()) SWIG_fail;
43058 }
43059 resultobj = SWIG_From_int(static_cast< int >(result));
43060 return resultobj;
43061fail:
43062 return NULL;
43063}
43064
43065
b02396e8
RD
43066SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43067 PyObject *resultobj = 0;
43068 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43069 bool result;
43070 void *argp1 = 0 ;
43071 int res1 = 0 ;
43072 PyObject *swig_obj[1] ;
43073
43074 if (!args) SWIG_fail;
43075 swig_obj[0] = args;
43076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43077 if (!SWIG_IsOK(res1)) {
43078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43079 }
43080 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43081 {
43082 PyThreadState* __tstate = wxPyBeginAllowThreads();
43083 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43084 wxPyEndAllowThreads(__tstate);
43085 if (PyErr_Occurred()) SWIG_fail;
43086 }
43087 {
43088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43089 }
43090 return resultobj;
43091fail:
43092 return NULL;
43093}
43094
43095
43096SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43097 PyObject *resultobj = 0;
43098 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43099 bool arg2 = (bool) true ;
43100 void *argp1 = 0 ;
43101 int res1 = 0 ;
43102 bool val2 ;
43103 int ecode2 = 0 ;
43104 PyObject * obj0 = 0 ;
43105 PyObject * obj1 = 0 ;
43106 char * kwnames[] = {
43107 (char *) "self",(char *) "grow", NULL
43108 };
43109
43110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43112 if (!SWIG_IsOK(res1)) {
43113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43114 }
43115 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43116 if (obj1) {
43117 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43118 if (!SWIG_IsOK(ecode2)) {
43119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43120 }
43121 arg2 = static_cast< bool >(val2);
43122 }
43123 {
43124 PyThreadState* __tstate = wxPyBeginAllowThreads();
43125 (arg1)->SetTextCtrlGrowable(arg2);
43126 wxPyEndAllowThreads(__tstate);
43127 if (PyErr_Occurred()) SWIG_fail;
43128 }
43129 resultobj = SWIG_Py_Void();
43130 return resultobj;
43131fail:
43132 return NULL;
43133}
43134
43135
43136SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43137 PyObject *resultobj = 0;
43138 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43139 bool result;
43140 void *argp1 = 0 ;
43141 int res1 = 0 ;
43142 PyObject *swig_obj[1] ;
43143
43144 if (!args) SWIG_fail;
43145 swig_obj[0] = args;
43146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43147 if (!SWIG_IsOK(res1)) {
43148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43149 }
43150 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43151 {
43152 PyThreadState* __tstate = wxPyBeginAllowThreads();
43153 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43154 wxPyEndAllowThreads(__tstate);
43155 if (PyErr_Occurred()) SWIG_fail;
43156 }
43157 {
43158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43159 }
43160 return resultobj;
43161fail:
43162 return NULL;
43163}
43164
43165
43166SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43167 PyObject *resultobj = 0;
43168 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43169 bool arg2 = (bool) true ;
43170 void *argp1 = 0 ;
43171 int res1 = 0 ;
43172 bool val2 ;
43173 int ecode2 = 0 ;
43174 PyObject * obj0 = 0 ;
43175 PyObject * obj1 = 0 ;
43176 char * kwnames[] = {
43177 (char *) "self",(char *) "grow", NULL
43178 };
43179
43180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43182 if (!SWIG_IsOK(res1)) {
43183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43184 }
43185 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43186 if (obj1) {
43187 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43188 if (!SWIG_IsOK(ecode2)) {
43189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43190 }
43191 arg2 = static_cast< bool >(val2);
43192 }
43193 {
43194 PyThreadState* __tstate = wxPyBeginAllowThreads();
43195 (arg1)->SetPickerCtrlGrowable(arg2);
43196 wxPyEndAllowThreads(__tstate);
43197 if (PyErr_Occurred()) SWIG_fail;
43198 }
43199 resultobj = SWIG_Py_Void();
43200 return resultobj;
43201fail:
43202 return NULL;
43203}
43204
43205
b850e7f3
RD
43206SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43207 PyObject *resultobj = 0;
43208 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43209 bool result;
43210 void *argp1 = 0 ;
43211 int res1 = 0 ;
43212 PyObject *swig_obj[1] ;
43213
43214 if (!args) SWIG_fail;
43215 swig_obj[0] = args;
43216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43217 if (!SWIG_IsOK(res1)) {
43218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43219 }
43220 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43221 {
43222 PyThreadState* __tstate = wxPyBeginAllowThreads();
43223 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43224 wxPyEndAllowThreads(__tstate);
43225 if (PyErr_Occurred()) SWIG_fail;
43226 }
43227 {
43228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43229 }
43230 return resultobj;
43231fail:
43232 return NULL;
43233}
43234
43235
43236SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43237 PyObject *resultobj = 0;
43238 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43239 wxTextCtrl *result = 0 ;
43240 void *argp1 = 0 ;
43241 int res1 = 0 ;
43242 PyObject *swig_obj[1] ;
43243
43244 if (!args) SWIG_fail;
43245 swig_obj[0] = args;
43246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43247 if (!SWIG_IsOK(res1)) {
43248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43249 }
43250 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43251 {
43252 PyThreadState* __tstate = wxPyBeginAllowThreads();
43253 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43254 wxPyEndAllowThreads(__tstate);
43255 if (PyErr_Occurred()) SWIG_fail;
43256 }
43257 {
43258 resultobj = wxPyMake_wxObject(result, 0);
43259 }
43260 return resultobj;
43261fail:
43262 return NULL;
43263}
43264
43265
43266SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43267 PyObject *resultobj = 0;
43268 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43269 wxControl *result = 0 ;
43270 void *argp1 = 0 ;
43271 int res1 = 0 ;
43272 PyObject *swig_obj[1] ;
43273
43274 if (!args) SWIG_fail;
43275 swig_obj[0] = args;
43276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43277 if (!SWIG_IsOK(res1)) {
43278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43279 }
43280 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43281 {
43282 PyThreadState* __tstate = wxPyBeginAllowThreads();
43283 result = (wxControl *)(arg1)->GetPickerCtrl();
43284 wxPyEndAllowThreads(__tstate);
43285 if (PyErr_Occurred()) SWIG_fail;
43286 }
43287 {
43288 resultobj = wxPyMake_wxObject(result, 0);
43289 }
43290 return resultobj;
43291fail:
43292 return NULL;
43293}
43294
43295
43296SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43297 PyObject *obj;
43298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43299 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43300 return SWIG_Py_Void();
43301}
43302
43303SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43304 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43305 return 1;
43306}
43307
43308
43309SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43310 PyObject *pyobj = 0;
43311
43312 {
43313#if wxUSE_UNICODE
43314 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43315#else
43316 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43317#endif
43318 }
43319 return pyobj;
43320}
43321
43322
43323SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43324 PyObject *resultobj = 0;
43325 wxWindow *arg1 = (wxWindow *) 0 ;
43326 int arg2 = (int) -1 ;
43327 wxColour const &arg3_defvalue = *wxBLACK ;
43328 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43329 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43330 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43331 wxSize const &arg5_defvalue = wxDefaultSize ;
43332 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43333 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43334 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43335 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43336 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43337 wxString *arg8 = (wxString *) &arg8_defvalue ;
43338 wxColourPickerCtrl *result = 0 ;
43339 void *argp1 = 0 ;
43340 int res1 = 0 ;
43341 int val2 ;
43342 int ecode2 = 0 ;
43343 wxColour temp3 ;
43344 wxPoint temp4 ;
43345 wxSize temp5 ;
43346 long val6 ;
43347 int ecode6 = 0 ;
43348 void *argp7 = 0 ;
43349 int res7 = 0 ;
43350 bool temp8 = false ;
43351 PyObject * obj0 = 0 ;
43352 PyObject * obj1 = 0 ;
43353 PyObject * obj2 = 0 ;
43354 PyObject * obj3 = 0 ;
43355 PyObject * obj4 = 0 ;
43356 PyObject * obj5 = 0 ;
43357 PyObject * obj6 = 0 ;
43358 PyObject * obj7 = 0 ;
43359 char * kwnames[] = {
43360 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43361 };
43362
43363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43365 if (!SWIG_IsOK(res1)) {
43366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43367 }
43368 arg1 = reinterpret_cast< wxWindow * >(argp1);
43369 if (obj1) {
43370 ecode2 = SWIG_AsVal_int(obj1, &val2);
43371 if (!SWIG_IsOK(ecode2)) {
43372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43373 }
43374 arg2 = static_cast< int >(val2);
43375 }
43376 if (obj2) {
43377 {
43378 arg3 = &temp3;
43379 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43380 }
43381 }
43382 if (obj3) {
43383 {
43384 arg4 = &temp4;
43385 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43386 }
43387 }
43388 if (obj4) {
43389 {
43390 arg5 = &temp5;
43391 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43392 }
43393 }
43394 if (obj5) {
43395 ecode6 = SWIG_AsVal_long(obj5, &val6);
43396 if (!SWIG_IsOK(ecode6)) {
43397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43398 }
43399 arg6 = static_cast< long >(val6);
43400 }
43401 if (obj6) {
43402 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43403 if (!SWIG_IsOK(res7)) {
43404 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43405 }
43406 if (!argp7) {
43407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43408 }
43409 arg7 = reinterpret_cast< wxValidator * >(argp7);
43410 }
43411 if (obj7) {
43412 {
43413 arg8 = wxString_in_helper(obj7);
43414 if (arg8 == NULL) SWIG_fail;
43415 temp8 = true;
43416 }
43417 }
43418 {
43419 if (!wxPyCheckForApp()) SWIG_fail;
43420 PyThreadState* __tstate = wxPyBeginAllowThreads();
43421 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43422 wxPyEndAllowThreads(__tstate);
43423 if (PyErr_Occurred()) SWIG_fail;
43424 }
43425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43426 {
43427 if (temp8)
43428 delete arg8;
43429 }
43430 return resultobj;
43431fail:
43432 {
43433 if (temp8)
43434 delete arg8;
43435 }
43436 return NULL;
43437}
43438
43439
43440SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43441 PyObject *resultobj = 0;
43442 wxColourPickerCtrl *result = 0 ;
43443
43444 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43445 {
43446 if (!wxPyCheckForApp()) SWIG_fail;
43447 PyThreadState* __tstate = wxPyBeginAllowThreads();
43448 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43449 wxPyEndAllowThreads(__tstate);
43450 if (PyErr_Occurred()) SWIG_fail;
43451 }
43452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43453 return resultobj;
43454fail:
43455 return NULL;
43456}
43457
43458
43459SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43460 PyObject *resultobj = 0;
43461 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43462 wxWindow *arg2 = (wxWindow *) 0 ;
43463 int arg3 ;
43464 wxColour const &arg4_defvalue = *wxBLACK ;
43465 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43466 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43467 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43468 wxSize const &arg6_defvalue = wxDefaultSize ;
43469 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43470 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43471 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43472 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43473 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43474 wxString *arg9 = (wxString *) &arg9_defvalue ;
43475 bool result;
43476 void *argp1 = 0 ;
43477 int res1 = 0 ;
43478 void *argp2 = 0 ;
43479 int res2 = 0 ;
43480 int val3 ;
43481 int ecode3 = 0 ;
43482 wxColour temp4 ;
43483 wxPoint temp5 ;
43484 wxSize temp6 ;
43485 long val7 ;
43486 int ecode7 = 0 ;
43487 void *argp8 = 0 ;
43488 int res8 = 0 ;
43489 bool temp9 = false ;
43490 PyObject * obj0 = 0 ;
43491 PyObject * obj1 = 0 ;
43492 PyObject * obj2 = 0 ;
43493 PyObject * obj3 = 0 ;
43494 PyObject * obj4 = 0 ;
43495 PyObject * obj5 = 0 ;
43496 PyObject * obj6 = 0 ;
43497 PyObject * obj7 = 0 ;
43498 PyObject * obj8 = 0 ;
43499 char * kwnames[] = {
43500 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43501 };
43502
43503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43505 if (!SWIG_IsOK(res1)) {
43506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43507 }
43508 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43509 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43510 if (!SWIG_IsOK(res2)) {
43511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43512 }
43513 arg2 = reinterpret_cast< wxWindow * >(argp2);
43514 ecode3 = SWIG_AsVal_int(obj2, &val3);
43515 if (!SWIG_IsOK(ecode3)) {
43516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43517 }
43518 arg3 = static_cast< int >(val3);
43519 if (obj3) {
43520 {
43521 arg4 = &temp4;
43522 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43523 }
43524 }
43525 if (obj4) {
43526 {
43527 arg5 = &temp5;
43528 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43529 }
43530 }
43531 if (obj5) {
43532 {
43533 arg6 = &temp6;
43534 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43535 }
43536 }
43537 if (obj6) {
43538 ecode7 = SWIG_AsVal_long(obj6, &val7);
43539 if (!SWIG_IsOK(ecode7)) {
43540 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43541 }
43542 arg7 = static_cast< long >(val7);
43543 }
43544 if (obj7) {
43545 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43546 if (!SWIG_IsOK(res8)) {
43547 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43548 }
43549 if (!argp8) {
43550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43551 }
43552 arg8 = reinterpret_cast< wxValidator * >(argp8);
43553 }
43554 if (obj8) {
43555 {
43556 arg9 = wxString_in_helper(obj8);
43557 if (arg9 == NULL) SWIG_fail;
43558 temp9 = true;
43559 }
43560 }
43561 {
43562 PyThreadState* __tstate = wxPyBeginAllowThreads();
43563 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43564 wxPyEndAllowThreads(__tstate);
43565 if (PyErr_Occurred()) SWIG_fail;
43566 }
43567 {
43568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43569 }
43570 {
43571 if (temp9)
43572 delete arg9;
43573 }
43574 return resultobj;
43575fail:
43576 {
43577 if (temp9)
43578 delete arg9;
43579 }
43580 return NULL;
43581}
43582
43583
43584SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43585 PyObject *resultobj = 0;
43586 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43587 wxColour result;
43588 void *argp1 = 0 ;
43589 int res1 = 0 ;
43590 PyObject *swig_obj[1] ;
43591
43592 if (!args) SWIG_fail;
43593 swig_obj[0] = args;
43594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43595 if (!SWIG_IsOK(res1)) {
43596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43597 }
43598 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43599 {
43600 PyThreadState* __tstate = wxPyBeginAllowThreads();
43601 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43602 wxPyEndAllowThreads(__tstate);
43603 if (PyErr_Occurred()) SWIG_fail;
43604 }
43605 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43606 return resultobj;
43607fail:
43608 return NULL;
43609}
43610
43611
43612SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43613 PyObject *resultobj = 0;
43614 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43615 wxColour *arg2 = 0 ;
43616 void *argp1 = 0 ;
43617 int res1 = 0 ;
43618 wxColour temp2 ;
43619 PyObject * obj0 = 0 ;
43620 PyObject * obj1 = 0 ;
43621 char * kwnames[] = {
43622 (char *) "self",(char *) "col", NULL
43623 };
43624
43625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43627 if (!SWIG_IsOK(res1)) {
43628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43629 }
43630 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43631 {
43632 arg2 = &temp2;
43633 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43634 }
43635 {
43636 PyThreadState* __tstate = wxPyBeginAllowThreads();
43637 (arg1)->SetColour((wxColour const &)*arg2);
43638 wxPyEndAllowThreads(__tstate);
43639 if (PyErr_Occurred()) SWIG_fail;
43640 }
43641 resultobj = SWIG_Py_Void();
43642 return resultobj;
43643fail:
43644 return NULL;
43645}
43646
43647
43648SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43649 PyObject *obj;
43650 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43651 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43652 return SWIG_Py_Void();
43653}
43654
43655SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43656 return SWIG_Python_InitShadowInstance(args);
43657}
43658
43659SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43660 PyObject *resultobj = 0;
43661 wxObject *arg1 = (wxObject *) 0 ;
43662 int arg2 ;
43663 wxColour *arg3 = 0 ;
43664 wxColourPickerEvent *result = 0 ;
43665 void *argp1 = 0 ;
43666 int res1 = 0 ;
43667 int val2 ;
43668 int ecode2 = 0 ;
43669 wxColour temp3 ;
43670 PyObject * obj0 = 0 ;
43671 PyObject * obj1 = 0 ;
43672 PyObject * obj2 = 0 ;
43673 char * kwnames[] = {
43674 (char *) "generator",(char *) "id",(char *) "col", NULL
43675 };
43676
43677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43679 if (!SWIG_IsOK(res1)) {
43680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43681 }
43682 arg1 = reinterpret_cast< wxObject * >(argp1);
43683 ecode2 = SWIG_AsVal_int(obj1, &val2);
43684 if (!SWIG_IsOK(ecode2)) {
43685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43686 }
43687 arg2 = static_cast< int >(val2);
43688 {
43689 arg3 = &temp3;
43690 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43691 }
43692 {
43693 PyThreadState* __tstate = wxPyBeginAllowThreads();
43694 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43695 wxPyEndAllowThreads(__tstate);
43696 if (PyErr_Occurred()) SWIG_fail;
43697 }
43698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43699 return resultobj;
43700fail:
43701 return NULL;
43702}
43703
43704
43705SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43706 PyObject *resultobj = 0;
43707 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43708 wxColour result;
43709 void *argp1 = 0 ;
43710 int res1 = 0 ;
43711 PyObject *swig_obj[1] ;
43712
43713 if (!args) SWIG_fail;
43714 swig_obj[0] = args;
43715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43716 if (!SWIG_IsOK(res1)) {
43717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43718 }
43719 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43720 {
43721 PyThreadState* __tstate = wxPyBeginAllowThreads();
43722 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43723 wxPyEndAllowThreads(__tstate);
43724 if (PyErr_Occurred()) SWIG_fail;
43725 }
43726 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43727 return resultobj;
43728fail:
43729 return NULL;
43730}
43731
43732
43733SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43734 PyObject *resultobj = 0;
43735 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43736 wxColour *arg2 = 0 ;
43737 void *argp1 = 0 ;
43738 int res1 = 0 ;
43739 wxColour temp2 ;
43740 PyObject * obj0 = 0 ;
43741 PyObject * obj1 = 0 ;
43742 char * kwnames[] = {
43743 (char *) "self",(char *) "c", NULL
43744 };
43745
43746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43748 if (!SWIG_IsOK(res1)) {
43749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43750 }
43751 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43752 {
43753 arg2 = &temp2;
43754 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43755 }
43756 {
43757 PyThreadState* __tstate = wxPyBeginAllowThreads();
43758 (arg1)->SetColour((wxColour const &)*arg2);
43759 wxPyEndAllowThreads(__tstate);
43760 if (PyErr_Occurred()) SWIG_fail;
43761 }
43762 resultobj = SWIG_Py_Void();
43763 return resultobj;
43764fail:
43765 return NULL;
43766}
43767
43768
43769SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43770 PyObject *obj;
43771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43772 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43773 return SWIG_Py_Void();
43774}
43775
43776SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43777 return SWIG_Python_InitShadowInstance(args);
43778}
43779
43780SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43781 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43782 return 1;
43783}
43784
43785
43786SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43787 PyObject *pyobj = 0;
43788
43789 {
43790#if wxUSE_UNICODE
43791 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43792#else
43793 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43794#endif
43795 }
43796 return pyobj;
43797}
43798
43799
43800SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43801 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43802 return 1;
43803}
43804
43805
43806SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43807 PyObject *pyobj = 0;
43808
43809 {
43810#if wxUSE_UNICODE
43811 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43812#else
43813 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43814#endif
43815 }
43816 return pyobj;
43817}
43818
43819
43820SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43821 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43822 return 1;
43823}
43824
43825
43826SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43827 PyObject *pyobj = 0;
43828
43829 {
43830#if wxUSE_UNICODE
43831 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43832#else
43833 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43834#endif
43835 }
43836 return pyobj;
43837}
43838
43839
43840SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43841 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43842 return 1;
43843}
43844
43845
43846SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43847 PyObject *pyobj = 0;
43848
43849 {
43850#if wxUSE_UNICODE
43851 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43852#else
43853 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43854#endif
43855 }
43856 return pyobj;
43857}
43858
43859
43860SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43861 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43862 return 1;
43863}
43864
43865
43866SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43867 PyObject *pyobj = 0;
43868
43869 {
43870#if wxUSE_UNICODE
43871 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43872#else
43873 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43874#endif
43875 }
43876 return pyobj;
43877}
43878
43879
43880SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43881 PyObject *resultobj = 0;
43882 wxWindow *arg1 = (wxWindow *) 0 ;
43883 int arg2 = (int) -1 ;
43884 wxString const &arg3_defvalue = wxPyEmptyString ;
43885 wxString *arg3 = (wxString *) &arg3_defvalue ;
43886 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43887 wxString *arg4 = (wxString *) &arg4_defvalue ;
43888 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43889 wxString *arg5 = (wxString *) &arg5_defvalue ;
43890 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43891 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43892 wxSize const &arg7_defvalue = wxDefaultSize ;
43893 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43894 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43895 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43896 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43897 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43898 wxString *arg10 = (wxString *) &arg10_defvalue ;
43899 wxFilePickerCtrl *result = 0 ;
43900 void *argp1 = 0 ;
43901 int res1 = 0 ;
43902 int val2 ;
43903 int ecode2 = 0 ;
43904 bool temp3 = false ;
43905 bool temp4 = false ;
43906 bool temp5 = false ;
43907 wxPoint temp6 ;
43908 wxSize temp7 ;
43909 long val8 ;
43910 int ecode8 = 0 ;
43911 void *argp9 = 0 ;
43912 int res9 = 0 ;
43913 bool temp10 = false ;
43914 PyObject * obj0 = 0 ;
43915 PyObject * obj1 = 0 ;
43916 PyObject * obj2 = 0 ;
43917 PyObject * obj3 = 0 ;
43918 PyObject * obj4 = 0 ;
43919 PyObject * obj5 = 0 ;
43920 PyObject * obj6 = 0 ;
43921 PyObject * obj7 = 0 ;
43922 PyObject * obj8 = 0 ;
43923 PyObject * obj9 = 0 ;
43924 char * kwnames[] = {
43925 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43926 };
43927
43928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43930 if (!SWIG_IsOK(res1)) {
43931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43932 }
43933 arg1 = reinterpret_cast< wxWindow * >(argp1);
43934 if (obj1) {
43935 ecode2 = SWIG_AsVal_int(obj1, &val2);
43936 if (!SWIG_IsOK(ecode2)) {
43937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43938 }
43939 arg2 = static_cast< int >(val2);
43940 }
43941 if (obj2) {
43942 {
43943 arg3 = wxString_in_helper(obj2);
43944 if (arg3 == NULL) SWIG_fail;
43945 temp3 = true;
43946 }
43947 }
43948 if (obj3) {
43949 {
43950 arg4 = wxString_in_helper(obj3);
43951 if (arg4 == NULL) SWIG_fail;
43952 temp4 = true;
43953 }
43954 }
43955 if (obj4) {
43956 {
43957 arg5 = wxString_in_helper(obj4);
43958 if (arg5 == NULL) SWIG_fail;
43959 temp5 = true;
43960 }
43961 }
43962 if (obj5) {
43963 {
43964 arg6 = &temp6;
43965 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43966 }
43967 }
43968 if (obj6) {
43969 {
43970 arg7 = &temp7;
43971 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43972 }
43973 }
43974 if (obj7) {
43975 ecode8 = SWIG_AsVal_long(obj7, &val8);
43976 if (!SWIG_IsOK(ecode8)) {
43977 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43978 }
43979 arg8 = static_cast< long >(val8);
43980 }
43981 if (obj8) {
43982 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43983 if (!SWIG_IsOK(res9)) {
43984 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43985 }
43986 if (!argp9) {
43987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43988 }
43989 arg9 = reinterpret_cast< wxValidator * >(argp9);
43990 }
43991 if (obj9) {
43992 {
43993 arg10 = wxString_in_helper(obj9);
43994 if (arg10 == NULL) SWIG_fail;
43995 temp10 = true;
43996 }
43997 }
43998 {
43999 if (!wxPyCheckForApp()) SWIG_fail;
44000 PyThreadState* __tstate = wxPyBeginAllowThreads();
44001 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);
44002 wxPyEndAllowThreads(__tstate);
44003 if (PyErr_Occurred()) SWIG_fail;
44004 }
44005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44006 {
44007 if (temp3)
44008 delete arg3;
44009 }
44010 {
44011 if (temp4)
44012 delete arg4;
44013 }
44014 {
44015 if (temp5)
44016 delete arg5;
44017 }
44018 {
44019 if (temp10)
44020 delete arg10;
44021 }
44022 return resultobj;
44023fail:
44024 {
44025 if (temp3)
44026 delete arg3;
44027 }
44028 {
44029 if (temp4)
44030 delete arg4;
44031 }
44032 {
44033 if (temp5)
44034 delete arg5;
44035 }
44036 {
44037 if (temp10)
44038 delete arg10;
44039 }
44040 return NULL;
44041}
44042
44043
44044SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44045 PyObject *resultobj = 0;
44046 wxFilePickerCtrl *result = 0 ;
44047
44048 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44049 {
44050 if (!wxPyCheckForApp()) SWIG_fail;
44051 PyThreadState* __tstate = wxPyBeginAllowThreads();
44052 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44053 wxPyEndAllowThreads(__tstate);
44054 if (PyErr_Occurred()) SWIG_fail;
44055 }
44056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44057 return resultobj;
44058fail:
44059 return NULL;
44060}
44061
44062
44063SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44064 PyObject *resultobj = 0;
44065 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44066 wxWindow *arg2 = (wxWindow *) 0 ;
44067 int arg3 = (int) -1 ;
44068 wxString const &arg4_defvalue = wxPyEmptyString ;
44069 wxString *arg4 = (wxString *) &arg4_defvalue ;
44070 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44071 wxString *arg5 = (wxString *) &arg5_defvalue ;
44072 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44073 wxString *arg6 = (wxString *) &arg6_defvalue ;
44074 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44075 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44076 wxSize const &arg8_defvalue = wxDefaultSize ;
44077 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44078 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44079 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44080 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44081 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44082 wxString *arg11 = (wxString *) &arg11_defvalue ;
44083 bool result;
44084 void *argp1 = 0 ;
44085 int res1 = 0 ;
44086 void *argp2 = 0 ;
44087 int res2 = 0 ;
44088 int val3 ;
44089 int ecode3 = 0 ;
44090 bool temp4 = false ;
44091 bool temp5 = false ;
44092 bool temp6 = false ;
44093 wxPoint temp7 ;
44094 wxSize temp8 ;
44095 long val9 ;
44096 int ecode9 = 0 ;
44097 void *argp10 = 0 ;
44098 int res10 = 0 ;
44099 bool temp11 = false ;
44100 PyObject * obj0 = 0 ;
44101 PyObject * obj1 = 0 ;
44102 PyObject * obj2 = 0 ;
44103 PyObject * obj3 = 0 ;
44104 PyObject * obj4 = 0 ;
44105 PyObject * obj5 = 0 ;
44106 PyObject * obj6 = 0 ;
44107 PyObject * obj7 = 0 ;
44108 PyObject * obj8 = 0 ;
44109 PyObject * obj9 = 0 ;
44110 PyObject * obj10 = 0 ;
44111 char * kwnames[] = {
44112 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44113 };
44114
44115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44117 if (!SWIG_IsOK(res1)) {
44118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44119 }
44120 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44121 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44122 if (!SWIG_IsOK(res2)) {
44123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44124 }
44125 arg2 = reinterpret_cast< wxWindow * >(argp2);
44126 if (obj2) {
44127 ecode3 = SWIG_AsVal_int(obj2, &val3);
44128 if (!SWIG_IsOK(ecode3)) {
44129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44130 }
44131 arg3 = static_cast< int >(val3);
44132 }
44133 if (obj3) {
44134 {
44135 arg4 = wxString_in_helper(obj3);
44136 if (arg4 == NULL) SWIG_fail;
44137 temp4 = true;
44138 }
44139 }
44140 if (obj4) {
44141 {
44142 arg5 = wxString_in_helper(obj4);
44143 if (arg5 == NULL) SWIG_fail;
44144 temp5 = true;
44145 }
44146 }
44147 if (obj5) {
44148 {
44149 arg6 = wxString_in_helper(obj5);
44150 if (arg6 == NULL) SWIG_fail;
44151 temp6 = true;
44152 }
44153 }
44154 if (obj6) {
44155 {
44156 arg7 = &temp7;
44157 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44158 }
44159 }
44160 if (obj7) {
44161 {
44162 arg8 = &temp8;
44163 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44164 }
44165 }
44166 if (obj8) {
44167 ecode9 = SWIG_AsVal_long(obj8, &val9);
44168 if (!SWIG_IsOK(ecode9)) {
44169 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44170 }
44171 arg9 = static_cast< long >(val9);
44172 }
44173 if (obj9) {
44174 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44175 if (!SWIG_IsOK(res10)) {
44176 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44177 }
44178 if (!argp10) {
44179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44180 }
44181 arg10 = reinterpret_cast< wxValidator * >(argp10);
44182 }
44183 if (obj10) {
44184 {
44185 arg11 = wxString_in_helper(obj10);
44186 if (arg11 == NULL) SWIG_fail;
44187 temp11 = true;
44188 }
44189 }
44190 {
44191 PyThreadState* __tstate = wxPyBeginAllowThreads();
44192 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);
44193 wxPyEndAllowThreads(__tstate);
44194 if (PyErr_Occurred()) SWIG_fail;
44195 }
44196 {
44197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44198 }
44199 {
44200 if (temp4)
44201 delete arg4;
44202 }
44203 {
44204 if (temp5)
44205 delete arg5;
44206 }
44207 {
44208 if (temp6)
44209 delete arg6;
44210 }
44211 {
44212 if (temp11)
44213 delete arg11;
44214 }
44215 return resultobj;
44216fail:
44217 {
44218 if (temp4)
44219 delete arg4;
44220 }
44221 {
44222 if (temp5)
44223 delete arg5;
44224 }
44225 {
44226 if (temp6)
44227 delete arg6;
44228 }
44229 {
44230 if (temp11)
44231 delete arg11;
44232 }
44233 return NULL;
44234}
44235
44236
44237SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44238 PyObject *resultobj = 0;
44239 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44240 wxString result;
44241 void *argp1 = 0 ;
44242 int res1 = 0 ;
44243 PyObject *swig_obj[1] ;
44244
44245 if (!args) SWIG_fail;
44246 swig_obj[0] = args;
44247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44248 if (!SWIG_IsOK(res1)) {
44249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44250 }
44251 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44252 {
44253 PyThreadState* __tstate = wxPyBeginAllowThreads();
44254 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44255 wxPyEndAllowThreads(__tstate);
44256 if (PyErr_Occurred()) SWIG_fail;
44257 }
44258 {
44259#if wxUSE_UNICODE
44260 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44261#else
44262 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44263#endif
44264 }
44265 return resultobj;
44266fail:
44267 return NULL;
44268}
44269
44270
44271SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44272 PyObject *resultobj = 0;
44273 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44274 wxString *arg2 = 0 ;
44275 void *argp1 = 0 ;
44276 int res1 = 0 ;
44277 bool temp2 = false ;
44278 PyObject * obj0 = 0 ;
44279 PyObject * obj1 = 0 ;
44280 char * kwnames[] = {
44281 (char *) "self",(char *) "str", NULL
44282 };
44283
44284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44286 if (!SWIG_IsOK(res1)) {
44287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44288 }
44289 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44290 {
44291 arg2 = wxString_in_helper(obj1);
44292 if (arg2 == NULL) SWIG_fail;
44293 temp2 = true;
44294 }
44295 {
44296 PyThreadState* __tstate = wxPyBeginAllowThreads();
44297 (arg1)->SetPath((wxString const &)*arg2);
44298 wxPyEndAllowThreads(__tstate);
44299 if (PyErr_Occurred()) SWIG_fail;
44300 }
44301 resultobj = SWIG_Py_Void();
44302 {
44303 if (temp2)
44304 delete arg2;
44305 }
44306 return resultobj;
44307fail:
44308 {
44309 if (temp2)
44310 delete arg2;
44311 }
44312 return NULL;
44313}
44314
44315
b02396e8
RD
44316SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44317 PyObject *resultobj = 0;
44318 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44319 wxString *arg2 = 0 ;
44320 bool result;
44321 void *argp1 = 0 ;
44322 int res1 = 0 ;
44323 bool temp2 = false ;
44324 PyObject * obj0 = 0 ;
44325 PyObject * obj1 = 0 ;
44326 char * kwnames[] = {
44327 (char *) "self",(char *) "path", NULL
44328 };
44329
44330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44332 if (!SWIG_IsOK(res1)) {
44333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44334 }
44335 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44336 {
44337 arg2 = wxString_in_helper(obj1);
44338 if (arg2 == NULL) SWIG_fail;
44339 temp2 = true;
44340 }
44341 {
44342 PyThreadState* __tstate = wxPyBeginAllowThreads();
44343 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44344 wxPyEndAllowThreads(__tstate);
44345 if (PyErr_Occurred()) SWIG_fail;
44346 }
44347 {
44348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44349 }
44350 {
44351 if (temp2)
44352 delete arg2;
44353 }
44354 return resultobj;
44355fail:
44356 {
44357 if (temp2)
44358 delete arg2;
44359 }
44360 return NULL;
44361}
44362
44363
44364SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44365 PyObject *resultobj = 0;
44366 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44367 wxString result;
44368 void *argp1 = 0 ;
44369 int res1 = 0 ;
44370 PyObject *swig_obj[1] ;
44371
44372 if (!args) SWIG_fail;
44373 swig_obj[0] = args;
44374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44375 if (!SWIG_IsOK(res1)) {
44376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44377 }
44378 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44379 {
44380 PyThreadState* __tstate = wxPyBeginAllowThreads();
44381 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44382 wxPyEndAllowThreads(__tstate);
44383 if (PyErr_Occurred()) SWIG_fail;
44384 }
44385 {
44386#if wxUSE_UNICODE
44387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44388#else
44389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44390#endif
44391 }
44392 return resultobj;
44393fail:
44394 return NULL;
44395}
44396
44397
b850e7f3
RD
44398SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44399 PyObject *obj;
44400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44401 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44402 return SWIG_Py_Void();
44403}
44404
44405SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44406 return SWIG_Python_InitShadowInstance(args);
44407}
44408
44409SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44410 PyObject *resultobj = 0;
44411 wxWindow *arg1 = (wxWindow *) 0 ;
44412 int arg2 = (int) -1 ;
44413 wxString const &arg3_defvalue = wxPyEmptyString ;
44414 wxString *arg3 = (wxString *) &arg3_defvalue ;
44415 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44416 wxString *arg4 = (wxString *) &arg4_defvalue ;
44417 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44418 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44419 wxSize const &arg6_defvalue = wxDefaultSize ;
44420 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44421 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44422 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44423 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44424 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44425 wxString *arg9 = (wxString *) &arg9_defvalue ;
44426 wxDirPickerCtrl *result = 0 ;
44427 void *argp1 = 0 ;
44428 int res1 = 0 ;
44429 int val2 ;
44430 int ecode2 = 0 ;
44431 bool temp3 = false ;
44432 bool temp4 = false ;
44433 wxPoint temp5 ;
44434 wxSize temp6 ;
44435 long val7 ;
44436 int ecode7 = 0 ;
44437 void *argp8 = 0 ;
44438 int res8 = 0 ;
44439 bool temp9 = false ;
44440 PyObject * obj0 = 0 ;
44441 PyObject * obj1 = 0 ;
44442 PyObject * obj2 = 0 ;
44443 PyObject * obj3 = 0 ;
44444 PyObject * obj4 = 0 ;
44445 PyObject * obj5 = 0 ;
44446 PyObject * obj6 = 0 ;
44447 PyObject * obj7 = 0 ;
44448 PyObject * obj8 = 0 ;
44449 char * kwnames[] = {
44450 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44451 };
44452
44453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44455 if (!SWIG_IsOK(res1)) {
44456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44457 }
44458 arg1 = reinterpret_cast< wxWindow * >(argp1);
44459 if (obj1) {
44460 ecode2 = SWIG_AsVal_int(obj1, &val2);
44461 if (!SWIG_IsOK(ecode2)) {
44462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44463 }
44464 arg2 = static_cast< int >(val2);
44465 }
44466 if (obj2) {
44467 {
44468 arg3 = wxString_in_helper(obj2);
44469 if (arg3 == NULL) SWIG_fail;
44470 temp3 = true;
44471 }
44472 }
44473 if (obj3) {
44474 {
44475 arg4 = wxString_in_helper(obj3);
44476 if (arg4 == NULL) SWIG_fail;
44477 temp4 = true;
44478 }
44479 }
44480 if (obj4) {
44481 {
44482 arg5 = &temp5;
44483 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44484 }
44485 }
44486 if (obj5) {
44487 {
44488 arg6 = &temp6;
44489 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44490 }
44491 }
44492 if (obj6) {
44493 ecode7 = SWIG_AsVal_long(obj6, &val7);
44494 if (!SWIG_IsOK(ecode7)) {
44495 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44496 }
44497 arg7 = static_cast< long >(val7);
44498 }
44499 if (obj7) {
44500 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44501 if (!SWIG_IsOK(res8)) {
44502 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44503 }
44504 if (!argp8) {
44505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44506 }
44507 arg8 = reinterpret_cast< wxValidator * >(argp8);
44508 }
44509 if (obj8) {
44510 {
44511 arg9 = wxString_in_helper(obj8);
44512 if (arg9 == NULL) SWIG_fail;
44513 temp9 = true;
44514 }
44515 }
44516 {
44517 if (!wxPyCheckForApp()) SWIG_fail;
44518 PyThreadState* __tstate = wxPyBeginAllowThreads();
44519 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);
44520 wxPyEndAllowThreads(__tstate);
44521 if (PyErr_Occurred()) SWIG_fail;
44522 }
44523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44524 {
44525 if (temp3)
44526 delete arg3;
44527 }
44528 {
44529 if (temp4)
44530 delete arg4;
44531 }
44532 {
44533 if (temp9)
44534 delete arg9;
44535 }
44536 return resultobj;
44537fail:
44538 {
44539 if (temp3)
44540 delete arg3;
44541 }
44542 {
44543 if (temp4)
44544 delete arg4;
44545 }
44546 {
44547 if (temp9)
44548 delete arg9;
44549 }
44550 return NULL;
44551}
44552
44553
44554SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44555 PyObject *resultobj = 0;
44556 wxDirPickerCtrl *result = 0 ;
44557
44558 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44559 {
44560 if (!wxPyCheckForApp()) SWIG_fail;
44561 PyThreadState* __tstate = wxPyBeginAllowThreads();
44562 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44563 wxPyEndAllowThreads(__tstate);
44564 if (PyErr_Occurred()) SWIG_fail;
44565 }
44566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44567 return resultobj;
44568fail:
44569 return NULL;
44570}
44571
44572
44573SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44574 PyObject *resultobj = 0;
44575 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44576 wxWindow *arg2 = (wxWindow *) 0 ;
44577 int arg3 = (int) -1 ;
44578 wxString const &arg4_defvalue = wxPyEmptyString ;
44579 wxString *arg4 = (wxString *) &arg4_defvalue ;
44580 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44581 wxString *arg5 = (wxString *) &arg5_defvalue ;
44582 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44583 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44584 wxSize const &arg7_defvalue = wxDefaultSize ;
44585 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44586 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44587 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44588 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44589 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44590 wxString *arg10 = (wxString *) &arg10_defvalue ;
44591 bool result;
44592 void *argp1 = 0 ;
44593 int res1 = 0 ;
44594 void *argp2 = 0 ;
44595 int res2 = 0 ;
44596 int val3 ;
44597 int ecode3 = 0 ;
44598 bool temp4 = false ;
44599 bool temp5 = false ;
44600 wxPoint temp6 ;
44601 wxSize temp7 ;
44602 long val8 ;
44603 int ecode8 = 0 ;
44604 void *argp9 = 0 ;
44605 int res9 = 0 ;
44606 bool temp10 = false ;
44607 PyObject * obj0 = 0 ;
44608 PyObject * obj1 = 0 ;
44609 PyObject * obj2 = 0 ;
44610 PyObject * obj3 = 0 ;
44611 PyObject * obj4 = 0 ;
44612 PyObject * obj5 = 0 ;
44613 PyObject * obj6 = 0 ;
44614 PyObject * obj7 = 0 ;
44615 PyObject * obj8 = 0 ;
44616 PyObject * obj9 = 0 ;
44617 char * kwnames[] = {
44618 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44619 };
44620
44621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44623 if (!SWIG_IsOK(res1)) {
44624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44625 }
44626 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44628 if (!SWIG_IsOK(res2)) {
44629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44630 }
44631 arg2 = reinterpret_cast< wxWindow * >(argp2);
44632 if (obj2) {
44633 ecode3 = SWIG_AsVal_int(obj2, &val3);
44634 if (!SWIG_IsOK(ecode3)) {
44635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44636 }
44637 arg3 = static_cast< int >(val3);
44638 }
44639 if (obj3) {
44640 {
44641 arg4 = wxString_in_helper(obj3);
44642 if (arg4 == NULL) SWIG_fail;
44643 temp4 = true;
44644 }
44645 }
44646 if (obj4) {
44647 {
44648 arg5 = wxString_in_helper(obj4);
44649 if (arg5 == NULL) SWIG_fail;
44650 temp5 = true;
44651 }
44652 }
44653 if (obj5) {
44654 {
44655 arg6 = &temp6;
44656 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44657 }
44658 }
44659 if (obj6) {
44660 {
44661 arg7 = &temp7;
44662 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44663 }
44664 }
44665 if (obj7) {
44666 ecode8 = SWIG_AsVal_long(obj7, &val8);
44667 if (!SWIG_IsOK(ecode8)) {
44668 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44669 }
44670 arg8 = static_cast< long >(val8);
44671 }
44672 if (obj8) {
44673 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44674 if (!SWIG_IsOK(res9)) {
44675 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44676 }
44677 if (!argp9) {
44678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44679 }
44680 arg9 = reinterpret_cast< wxValidator * >(argp9);
44681 }
44682 if (obj9) {
44683 {
44684 arg10 = wxString_in_helper(obj9);
44685 if (arg10 == NULL) SWIG_fail;
44686 temp10 = true;
44687 }
44688 }
44689 {
44690 PyThreadState* __tstate = wxPyBeginAllowThreads();
44691 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);
44692 wxPyEndAllowThreads(__tstate);
44693 if (PyErr_Occurred()) SWIG_fail;
44694 }
44695 {
44696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44697 }
44698 {
44699 if (temp4)
44700 delete arg4;
44701 }
44702 {
44703 if (temp5)
44704 delete arg5;
44705 }
44706 {
44707 if (temp10)
44708 delete arg10;
44709 }
44710 return resultobj;
44711fail:
44712 {
44713 if (temp4)
44714 delete arg4;
44715 }
44716 {
44717 if (temp5)
44718 delete arg5;
44719 }
44720 {
44721 if (temp10)
44722 delete arg10;
44723 }
44724 return NULL;
44725}
44726
44727
44728SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44729 PyObject *resultobj = 0;
44730 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44731 wxString result;
44732 void *argp1 = 0 ;
44733 int res1 = 0 ;
44734 PyObject *swig_obj[1] ;
44735
44736 if (!args) SWIG_fail;
44737 swig_obj[0] = args;
44738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44739 if (!SWIG_IsOK(res1)) {
44740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44741 }
44742 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44743 {
44744 PyThreadState* __tstate = wxPyBeginAllowThreads();
44745 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44746 wxPyEndAllowThreads(__tstate);
44747 if (PyErr_Occurred()) SWIG_fail;
44748 }
44749 {
44750#if wxUSE_UNICODE
44751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44752#else
44753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44754#endif
44755 }
44756 return resultobj;
44757fail:
44758 return NULL;
44759}
44760
44761
44762SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44763 PyObject *resultobj = 0;
44764 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44765 wxString *arg2 = 0 ;
44766 void *argp1 = 0 ;
44767 int res1 = 0 ;
44768 bool temp2 = false ;
44769 PyObject * obj0 = 0 ;
44770 PyObject * obj1 = 0 ;
44771 char * kwnames[] = {
44772 (char *) "self",(char *) "str", NULL
44773 };
44774
44775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44777 if (!SWIG_IsOK(res1)) {
44778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44779 }
44780 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44781 {
44782 arg2 = wxString_in_helper(obj1);
44783 if (arg2 == NULL) SWIG_fail;
44784 temp2 = true;
44785 }
44786 {
44787 PyThreadState* __tstate = wxPyBeginAllowThreads();
44788 (arg1)->SetPath((wxString const &)*arg2);
44789 wxPyEndAllowThreads(__tstate);
44790 if (PyErr_Occurred()) SWIG_fail;
44791 }
44792 resultobj = SWIG_Py_Void();
44793 {
44794 if (temp2)
44795 delete arg2;
44796 }
44797 return resultobj;
44798fail:
44799 {
44800 if (temp2)
44801 delete arg2;
44802 }
44803 return NULL;
44804}
44805
44806
b02396e8
RD
44807SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44808 PyObject *resultobj = 0;
44809 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44810 wxString *arg2 = 0 ;
44811 bool result;
44812 void *argp1 = 0 ;
44813 int res1 = 0 ;
44814 bool temp2 = false ;
44815 PyObject * obj0 = 0 ;
44816 PyObject * obj1 = 0 ;
44817 char * kwnames[] = {
44818 (char *) "self",(char *) "path", NULL
44819 };
44820
44821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44823 if (!SWIG_IsOK(res1)) {
44824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44825 }
44826 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44827 {
44828 arg2 = wxString_in_helper(obj1);
44829 if (arg2 == NULL) SWIG_fail;
44830 temp2 = true;
44831 }
44832 {
44833 PyThreadState* __tstate = wxPyBeginAllowThreads();
44834 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44835 wxPyEndAllowThreads(__tstate);
44836 if (PyErr_Occurred()) SWIG_fail;
44837 }
44838 {
44839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44840 }
44841 {
44842 if (temp2)
44843 delete arg2;
44844 }
44845 return resultobj;
44846fail:
44847 {
44848 if (temp2)
44849 delete arg2;
44850 }
44851 return NULL;
44852}
44853
44854
44855SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44856 PyObject *resultobj = 0;
44857 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44858 wxString result;
44859 void *argp1 = 0 ;
44860 int res1 = 0 ;
44861 PyObject *swig_obj[1] ;
44862
44863 if (!args) SWIG_fail;
44864 swig_obj[0] = args;
44865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44866 if (!SWIG_IsOK(res1)) {
44867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44868 }
44869 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44870 {
44871 PyThreadState* __tstate = wxPyBeginAllowThreads();
44872 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44873 wxPyEndAllowThreads(__tstate);
44874 if (PyErr_Occurred()) SWIG_fail;
44875 }
44876 {
44877#if wxUSE_UNICODE
44878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44879#else
44880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44881#endif
44882 }
44883 return resultobj;
44884fail:
44885 return NULL;
44886}
44887
44888
b850e7f3
RD
44889SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44890 PyObject *obj;
44891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44892 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44893 return SWIG_Py_Void();
44894}
44895
44896SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44897 return SWIG_Python_InitShadowInstance(args);
44898}
44899
44900SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44901 PyObject *resultobj = 0;
44902 wxEventType arg1 ;
44903 wxObject *arg2 = (wxObject *) 0 ;
44904 int arg3 ;
44905 wxString *arg4 = 0 ;
44906 wxFileDirPickerEvent *result = 0 ;
44907 int val1 ;
44908 int ecode1 = 0 ;
44909 void *argp2 = 0 ;
44910 int res2 = 0 ;
44911 int val3 ;
44912 int ecode3 = 0 ;
44913 bool temp4 = false ;
44914 PyObject * obj0 = 0 ;
44915 PyObject * obj1 = 0 ;
44916 PyObject * obj2 = 0 ;
44917 PyObject * obj3 = 0 ;
44918 char * kwnames[] = {
44919 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44920 };
44921
44922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44923 ecode1 = SWIG_AsVal_int(obj0, &val1);
44924 if (!SWIG_IsOK(ecode1)) {
44925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44926 }
44927 arg1 = static_cast< wxEventType >(val1);
44928 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44929 if (!SWIG_IsOK(res2)) {
44930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44931 }
44932 arg2 = reinterpret_cast< wxObject * >(argp2);
44933 ecode3 = SWIG_AsVal_int(obj2, &val3);
44934 if (!SWIG_IsOK(ecode3)) {
44935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44936 }
44937 arg3 = static_cast< int >(val3);
44938 {
44939 arg4 = wxString_in_helper(obj3);
44940 if (arg4 == NULL) SWIG_fail;
44941 temp4 = true;
44942 }
44943 {
44944 PyThreadState* __tstate = wxPyBeginAllowThreads();
44945 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44946 wxPyEndAllowThreads(__tstate);
44947 if (PyErr_Occurred()) SWIG_fail;
44948 }
44949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44950 {
44951 if (temp4)
44952 delete arg4;
44953 }
44954 return resultobj;
44955fail:
44956 {
44957 if (temp4)
44958 delete arg4;
44959 }
44960 return NULL;
44961}
44962
44963
44964SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44965 PyObject *resultobj = 0;
44966 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44967 wxString result;
44968 void *argp1 = 0 ;
44969 int res1 = 0 ;
44970 PyObject *swig_obj[1] ;
44971
44972 if (!args) SWIG_fail;
44973 swig_obj[0] = args;
44974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44975 if (!SWIG_IsOK(res1)) {
44976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44977 }
44978 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44979 {
44980 PyThreadState* __tstate = wxPyBeginAllowThreads();
44981 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44982 wxPyEndAllowThreads(__tstate);
44983 if (PyErr_Occurred()) SWIG_fail;
44984 }
44985 {
44986#if wxUSE_UNICODE
44987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44988#else
44989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44990#endif
44991 }
44992 return resultobj;
44993fail:
44994 return NULL;
44995}
44996
44997
44998SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44999 PyObject *resultobj = 0;
45000 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45001 wxString *arg2 = 0 ;
45002 void *argp1 = 0 ;
45003 int res1 = 0 ;
45004 bool temp2 = false ;
45005 PyObject * obj0 = 0 ;
45006 PyObject * obj1 = 0 ;
45007 char * kwnames[] = {
45008 (char *) "self",(char *) "p", NULL
45009 };
45010
45011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45013 if (!SWIG_IsOK(res1)) {
45014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45015 }
45016 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45017 {
45018 arg2 = wxString_in_helper(obj1);
45019 if (arg2 == NULL) SWIG_fail;
45020 temp2 = true;
45021 }
45022 {
45023 PyThreadState* __tstate = wxPyBeginAllowThreads();
45024 (arg1)->SetPath((wxString const &)*arg2);
45025 wxPyEndAllowThreads(__tstate);
45026 if (PyErr_Occurred()) SWIG_fail;
45027 }
45028 resultobj = SWIG_Py_Void();
45029 {
45030 if (temp2)
45031 delete arg2;
45032 }
45033 return resultobj;
45034fail:
45035 {
45036 if (temp2)
45037 delete arg2;
45038 }
45039 return NULL;
45040}
45041
45042
45043SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45044 PyObject *obj;
45045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45046 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45047 return SWIG_Py_Void();
45048}
45049
45050SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45051 return SWIG_Python_InitShadowInstance(args);
45052}
45053
45054SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45055 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45056 return 1;
45057}
45058
45059
45060SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45061 PyObject *pyobj = 0;
45062
45063 {
45064#if wxUSE_UNICODE
45065 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45066#else
45067 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45068#endif
45069 }
45070 return pyobj;
45071}
45072
45073
45074SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45075 PyObject *resultobj = 0;
45076 wxWindow *arg1 = (wxWindow *) 0 ;
45077 int arg2 = (int) -1 ;
f89238b9 45078 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
45079 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45080 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45081 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45082 wxSize const &arg5_defvalue = wxDefaultSize ;
45083 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45084 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45085 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45086 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45087 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45088 wxString *arg8 = (wxString *) &arg8_defvalue ;
45089 wxFontPickerCtrl *result = 0 ;
45090 void *argp1 = 0 ;
45091 int res1 = 0 ;
45092 int val2 ;
45093 int ecode2 = 0 ;
45094 void *argp3 = 0 ;
45095 int res3 = 0 ;
45096 wxPoint temp4 ;
45097 wxSize temp5 ;
45098 long val6 ;
45099 int ecode6 = 0 ;
45100 void *argp7 = 0 ;
45101 int res7 = 0 ;
45102 bool temp8 = false ;
45103 PyObject * obj0 = 0 ;
45104 PyObject * obj1 = 0 ;
45105 PyObject * obj2 = 0 ;
45106 PyObject * obj3 = 0 ;
45107 PyObject * obj4 = 0 ;
45108 PyObject * obj5 = 0 ;
45109 PyObject * obj6 = 0 ;
45110 PyObject * obj7 = 0 ;
45111 char * kwnames[] = {
45112 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45113 };
45114
45115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45117 if (!SWIG_IsOK(res1)) {
45118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45119 }
45120 arg1 = reinterpret_cast< wxWindow * >(argp1);
45121 if (obj1) {
45122 ecode2 = SWIG_AsVal_int(obj1, &val2);
45123 if (!SWIG_IsOK(ecode2)) {
45124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45125 }
45126 arg2 = static_cast< int >(val2);
45127 }
45128 if (obj2) {
45129 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45130 if (!SWIG_IsOK(res3)) {
45131 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45132 }
45133 if (!argp3) {
45134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45135 }
45136 arg3 = reinterpret_cast< wxFont * >(argp3);
45137 }
45138 if (obj3) {
45139 {
45140 arg4 = &temp4;
45141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45142 }
45143 }
45144 if (obj4) {
45145 {
45146 arg5 = &temp5;
45147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45148 }
45149 }
45150 if (obj5) {
45151 ecode6 = SWIG_AsVal_long(obj5, &val6);
45152 if (!SWIG_IsOK(ecode6)) {
45153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45154 }
45155 arg6 = static_cast< long >(val6);
45156 }
45157 if (obj6) {
45158 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45159 if (!SWIG_IsOK(res7)) {
45160 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45161 }
45162 if (!argp7) {
45163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45164 }
45165 arg7 = reinterpret_cast< wxValidator * >(argp7);
45166 }
45167 if (obj7) {
45168 {
45169 arg8 = wxString_in_helper(obj7);
45170 if (arg8 == NULL) SWIG_fail;
45171 temp8 = true;
45172 }
45173 }
45174 {
45175 if (!wxPyCheckForApp()) SWIG_fail;
45176 PyThreadState* __tstate = wxPyBeginAllowThreads();
45177 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45178 wxPyEndAllowThreads(__tstate);
45179 if (PyErr_Occurred()) SWIG_fail;
45180 }
45181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45182 {
45183 if (temp8)
45184 delete arg8;
45185 }
45186 return resultobj;
45187fail:
45188 {
45189 if (temp8)
45190 delete arg8;
45191 }
45192 return NULL;
45193}
45194
45195
45196SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45197 PyObject *resultobj = 0;
45198 wxFontPickerCtrl *result = 0 ;
45199
45200 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45201 {
45202 if (!wxPyCheckForApp()) SWIG_fail;
45203 PyThreadState* __tstate = wxPyBeginAllowThreads();
45204 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45205 wxPyEndAllowThreads(__tstate);
45206 if (PyErr_Occurred()) SWIG_fail;
45207 }
45208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45209 return resultobj;
45210fail:
45211 return NULL;
45212}
45213
45214
45215SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45216 PyObject *resultobj = 0;
45217 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45218 wxWindow *arg2 = (wxWindow *) 0 ;
45219 int arg3 = (int) -1 ;
f89238b9 45220 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
45221 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45222 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45223 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45224 wxSize const &arg6_defvalue = wxDefaultSize ;
45225 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45226 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45227 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45228 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45229 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45230 wxString *arg9 = (wxString *) &arg9_defvalue ;
45231 bool result;
45232 void *argp1 = 0 ;
45233 int res1 = 0 ;
45234 void *argp2 = 0 ;
45235 int res2 = 0 ;
45236 int val3 ;
45237 int ecode3 = 0 ;
45238 void *argp4 = 0 ;
45239 int res4 = 0 ;
45240 wxPoint temp5 ;
45241 wxSize temp6 ;
45242 long val7 ;
45243 int ecode7 = 0 ;
45244 void *argp8 = 0 ;
45245 int res8 = 0 ;
45246 bool temp9 = false ;
45247 PyObject * obj0 = 0 ;
45248 PyObject * obj1 = 0 ;
45249 PyObject * obj2 = 0 ;
45250 PyObject * obj3 = 0 ;
45251 PyObject * obj4 = 0 ;
45252 PyObject * obj5 = 0 ;
45253 PyObject * obj6 = 0 ;
45254 PyObject * obj7 = 0 ;
45255 PyObject * obj8 = 0 ;
45256 char * kwnames[] = {
45257 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45258 };
45259
45260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45262 if (!SWIG_IsOK(res1)) {
45263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45264 }
45265 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45267 if (!SWIG_IsOK(res2)) {
45268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45269 }
45270 arg2 = reinterpret_cast< wxWindow * >(argp2);
45271 if (obj2) {
45272 ecode3 = SWIG_AsVal_int(obj2, &val3);
45273 if (!SWIG_IsOK(ecode3)) {
45274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45275 }
45276 arg3 = static_cast< int >(val3);
45277 }
45278 if (obj3) {
45279 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45280 if (!SWIG_IsOK(res4)) {
45281 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45282 }
45283 if (!argp4) {
45284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45285 }
45286 arg4 = reinterpret_cast< wxFont * >(argp4);
45287 }
45288 if (obj4) {
45289 {
45290 arg5 = &temp5;
45291 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45292 }
45293 }
45294 if (obj5) {
45295 {
45296 arg6 = &temp6;
45297 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45298 }
45299 }
45300 if (obj6) {
45301 ecode7 = SWIG_AsVal_long(obj6, &val7);
45302 if (!SWIG_IsOK(ecode7)) {
45303 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45304 }
45305 arg7 = static_cast< long >(val7);
45306 }
45307 if (obj7) {
45308 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45309 if (!SWIG_IsOK(res8)) {
45310 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45311 }
45312 if (!argp8) {
45313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45314 }
45315 arg8 = reinterpret_cast< wxValidator * >(argp8);
45316 }
45317 if (obj8) {
45318 {
45319 arg9 = wxString_in_helper(obj8);
45320 if (arg9 == NULL) SWIG_fail;
45321 temp9 = true;
45322 }
45323 }
45324 {
45325 PyThreadState* __tstate = wxPyBeginAllowThreads();
45326 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45327 wxPyEndAllowThreads(__tstate);
45328 if (PyErr_Occurred()) SWIG_fail;
45329 }
45330 {
45331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45332 }
45333 {
45334 if (temp9)
45335 delete arg9;
45336 }
45337 return resultobj;
45338fail:
45339 {
45340 if (temp9)
45341 delete arg9;
45342 }
45343 return NULL;
45344}
45345
45346
45347SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45348 PyObject *resultobj = 0;
45349 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45350 wxFont result;
45351 void *argp1 = 0 ;
45352 int res1 = 0 ;
45353 PyObject *swig_obj[1] ;
45354
45355 if (!args) SWIG_fail;
45356 swig_obj[0] = args;
45357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45358 if (!SWIG_IsOK(res1)) {
45359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45360 }
45361 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45362 {
45363 PyThreadState* __tstate = wxPyBeginAllowThreads();
45364 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45365 wxPyEndAllowThreads(__tstate);
45366 if (PyErr_Occurred()) SWIG_fail;
45367 }
45368 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45369 return resultobj;
45370fail:
45371 return NULL;
45372}
45373
45374
45375SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45376 PyObject *resultobj = 0;
45377 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45378 wxFont *arg2 = 0 ;
45379 void *argp1 = 0 ;
45380 int res1 = 0 ;
45381 void *argp2 = 0 ;
45382 int res2 = 0 ;
45383 PyObject * obj0 = 0 ;
45384 PyObject * obj1 = 0 ;
45385 char * kwnames[] = {
45386 (char *) "self",(char *) "f", NULL
45387 };
45388
45389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45391 if (!SWIG_IsOK(res1)) {
45392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45393 }
45394 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45396 if (!SWIG_IsOK(res2)) {
45397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45398 }
45399 if (!argp2) {
45400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45401 }
45402 arg2 = reinterpret_cast< wxFont * >(argp2);
45403 {
45404 PyThreadState* __tstate = wxPyBeginAllowThreads();
45405 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45406 wxPyEndAllowThreads(__tstate);
45407 if (PyErr_Occurred()) SWIG_fail;
45408 }
45409 resultobj = SWIG_Py_Void();
45410 return resultobj;
45411fail:
45412 return NULL;
45413}
45414
45415
45416SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45417 PyObject *resultobj = 0;
45418 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45419 unsigned int arg2 ;
45420 void *argp1 = 0 ;
45421 int res1 = 0 ;
45422 unsigned int val2 ;
45423 int ecode2 = 0 ;
45424 PyObject * obj0 = 0 ;
45425 PyObject * obj1 = 0 ;
45426 char * kwnames[] = {
45427 (char *) "self",(char *) "max", NULL
45428 };
45429
45430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45432 if (!SWIG_IsOK(res1)) {
45433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45434 }
45435 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45436 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45437 if (!SWIG_IsOK(ecode2)) {
45438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45439 }
45440 arg2 = static_cast< unsigned int >(val2);
45441 {
45442 PyThreadState* __tstate = wxPyBeginAllowThreads();
45443 (arg1)->SetMaxPointSize(arg2);
45444 wxPyEndAllowThreads(__tstate);
45445 if (PyErr_Occurred()) SWIG_fail;
45446 }
45447 resultobj = SWIG_Py_Void();
45448 return resultobj;
45449fail:
45450 return NULL;
45451}
45452
45453
45454SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45455 PyObject *resultobj = 0;
45456 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45457 unsigned int result;
45458 void *argp1 = 0 ;
45459 int res1 = 0 ;
45460 PyObject *swig_obj[1] ;
45461
45462 if (!args) SWIG_fail;
45463 swig_obj[0] = args;
45464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45465 if (!SWIG_IsOK(res1)) {
45466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45467 }
45468 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45469 {
45470 PyThreadState* __tstate = wxPyBeginAllowThreads();
45471 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45472 wxPyEndAllowThreads(__tstate);
45473 if (PyErr_Occurred()) SWIG_fail;
45474 }
45475 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45476 return resultobj;
45477fail:
45478 return NULL;
45479}
45480
45481
45482SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45483 PyObject *obj;
45484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45485 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45486 return SWIG_Py_Void();
45487}
45488
45489SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45490 return SWIG_Python_InitShadowInstance(args);
45491}
45492
45493SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45494 PyObject *resultobj = 0;
45495 wxObject *arg1 = (wxObject *) 0 ;
45496 int arg2 ;
45497 wxFont *arg3 = 0 ;
45498 wxFontPickerEvent *result = 0 ;
45499 void *argp1 = 0 ;
45500 int res1 = 0 ;
45501 int val2 ;
45502 int ecode2 = 0 ;
45503 void *argp3 = 0 ;
45504 int res3 = 0 ;
45505 PyObject * obj0 = 0 ;
45506 PyObject * obj1 = 0 ;
45507 PyObject * obj2 = 0 ;
45508 char * kwnames[] = {
45509 (char *) "generator",(char *) "id",(char *) "f", NULL
45510 };
45511
45512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45514 if (!SWIG_IsOK(res1)) {
45515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45516 }
45517 arg1 = reinterpret_cast< wxObject * >(argp1);
45518 ecode2 = SWIG_AsVal_int(obj1, &val2);
45519 if (!SWIG_IsOK(ecode2)) {
45520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45521 }
45522 arg2 = static_cast< int >(val2);
45523 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45524 if (!SWIG_IsOK(res3)) {
45525 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45526 }
45527 if (!argp3) {
45528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45529 }
45530 arg3 = reinterpret_cast< wxFont * >(argp3);
45531 {
45532 PyThreadState* __tstate = wxPyBeginAllowThreads();
45533 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45534 wxPyEndAllowThreads(__tstate);
45535 if (PyErr_Occurred()) SWIG_fail;
45536 }
45537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45538 return resultobj;
45539fail:
45540 return NULL;
45541}
45542
45543
45544SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45545 PyObject *resultobj = 0;
45546 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45547 wxFont result;
45548 void *argp1 = 0 ;
45549 int res1 = 0 ;
45550 PyObject *swig_obj[1] ;
45551
45552 if (!args) SWIG_fail;
45553 swig_obj[0] = args;
45554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45555 if (!SWIG_IsOK(res1)) {
45556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45557 }
45558 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45559 {
45560 PyThreadState* __tstate = wxPyBeginAllowThreads();
45561 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45562 wxPyEndAllowThreads(__tstate);
45563 if (PyErr_Occurred()) SWIG_fail;
45564 }
45565 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45566 return resultobj;
45567fail:
45568 return NULL;
45569}
45570
45571
45572SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45573 PyObject *resultobj = 0;
45574 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45575 wxFont *arg2 = 0 ;
45576 void *argp1 = 0 ;
45577 int res1 = 0 ;
45578 void *argp2 = 0 ;
45579 int res2 = 0 ;
45580 PyObject * obj0 = 0 ;
45581 PyObject * obj1 = 0 ;
45582 char * kwnames[] = {
45583 (char *) "self",(char *) "c", NULL
45584 };
45585
45586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45588 if (!SWIG_IsOK(res1)) {
45589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45590 }
45591 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45593 if (!SWIG_IsOK(res2)) {
45594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45595 }
45596 if (!argp2) {
45597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45598 }
45599 arg2 = reinterpret_cast< wxFont * >(argp2);
45600 {
45601 PyThreadState* __tstate = wxPyBeginAllowThreads();
45602 (arg1)->SetFont((wxFont const &)*arg2);
45603 wxPyEndAllowThreads(__tstate);
45604 if (PyErr_Occurred()) SWIG_fail;
45605 }
45606 resultobj = SWIG_Py_Void();
45607 return resultobj;
45608fail:
45609 return NULL;
45610}
45611
45612
45613SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45614 PyObject *obj;
45615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45616 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45617 return SWIG_Py_Void();
45618}
45619
45620SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45621 return SWIG_Python_InitShadowInstance(args);
45622}
45623
5172800e
RD
45624SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45625 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45626 return 1;
45627}
45628
45629
45630SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45631 PyObject *pyobj = 0;
45632
45633 {
45634#if wxUSE_UNICODE
45635 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45636#else
45637 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45638#endif
45639 }
45640 return pyobj;
45641}
45642
45643
45644SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45645 PyObject *resultobj = 0;
45646 wxWindow *arg1 = (wxWindow *) 0 ;
45647 int arg2 = (int) -1 ;
45648 wxString const &arg3_defvalue = wxPyEmptyString ;
45649 wxString *arg3 = (wxString *) &arg3_defvalue ;
45650 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45651 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45652 wxSize const &arg5_defvalue = wxDefaultSize ;
45653 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45654 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45655 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45656 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45657 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45658 wxString *arg8 = (wxString *) &arg8_defvalue ;
45659 wxCollapsiblePane *result = 0 ;
45660 void *argp1 = 0 ;
45661 int res1 = 0 ;
45662 int val2 ;
45663 int ecode2 = 0 ;
45664 bool temp3 = false ;
45665 wxPoint temp4 ;
45666 wxSize temp5 ;
45667 long val6 ;
45668 int ecode6 = 0 ;
45669 void *argp7 = 0 ;
45670 int res7 = 0 ;
45671 bool temp8 = false ;
45672 PyObject * obj0 = 0 ;
45673 PyObject * obj1 = 0 ;
45674 PyObject * obj2 = 0 ;
45675 PyObject * obj3 = 0 ;
45676 PyObject * obj4 = 0 ;
45677 PyObject * obj5 = 0 ;
45678 PyObject * obj6 = 0 ;
45679 PyObject * obj7 = 0 ;
45680 char * kwnames[] = {
45681 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45682 };
45683
45684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45686 if (!SWIG_IsOK(res1)) {
45687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45688 }
45689 arg1 = reinterpret_cast< wxWindow * >(argp1);
45690 if (obj1) {
45691 ecode2 = SWIG_AsVal_int(obj1, &val2);
45692 if (!SWIG_IsOK(ecode2)) {
45693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45694 }
45695 arg2 = static_cast< int >(val2);
45696 }
45697 if (obj2) {
45698 {
45699 arg3 = wxString_in_helper(obj2);
45700 if (arg3 == NULL) SWIG_fail;
45701 temp3 = true;
45702 }
45703 }
45704 if (obj3) {
45705 {
45706 arg4 = &temp4;
45707 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45708 }
45709 }
45710 if (obj4) {
45711 {
45712 arg5 = &temp5;
45713 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45714 }
45715 }
45716 if (obj5) {
45717 ecode6 = SWIG_AsVal_long(obj5, &val6);
45718 if (!SWIG_IsOK(ecode6)) {
45719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45720 }
45721 arg6 = static_cast< long >(val6);
45722 }
45723 if (obj6) {
45724 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45725 if (!SWIG_IsOK(res7)) {
45726 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45727 }
45728 if (!argp7) {
45729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45730 }
45731 arg7 = reinterpret_cast< wxValidator * >(argp7);
45732 }
45733 if (obj7) {
45734 {
45735 arg8 = wxString_in_helper(obj7);
45736 if (arg8 == NULL) SWIG_fail;
45737 temp8 = true;
45738 }
45739 }
45740 {
45741 if (!wxPyCheckForApp()) SWIG_fail;
45742 PyThreadState* __tstate = wxPyBeginAllowThreads();
45743 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45744 wxPyEndAllowThreads(__tstate);
45745 if (PyErr_Occurred()) SWIG_fail;
45746 }
45747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45748 {
45749 if (temp3)
45750 delete arg3;
45751 }
45752 {
45753 if (temp8)
45754 delete arg8;
45755 }
45756 return resultobj;
45757fail:
45758 {
45759 if (temp3)
45760 delete arg3;
45761 }
45762 {
45763 if (temp8)
45764 delete arg8;
45765 }
45766 return NULL;
45767}
45768
45769
45770SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45771 PyObject *resultobj = 0;
45772 wxCollapsiblePane *result = 0 ;
45773
45774 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45775 {
45776 if (!wxPyCheckForApp()) SWIG_fail;
45777 PyThreadState* __tstate = wxPyBeginAllowThreads();
45778 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45779 wxPyEndAllowThreads(__tstate);
45780 if (PyErr_Occurred()) SWIG_fail;
45781 }
45782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45783 return resultobj;
45784fail:
45785 return NULL;
45786}
45787
45788
45789SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45790 PyObject *resultobj = 0;
45791 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45792 wxWindow *arg2 = (wxWindow *) 0 ;
45793 int arg3 = (int) -1 ;
45794 wxString const &arg4_defvalue = wxPyEmptyString ;
45795 wxString *arg4 = (wxString *) &arg4_defvalue ;
45796 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45797 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45798 wxSize const &arg6_defvalue = wxDefaultSize ;
45799 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45800 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45801 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45802 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45803 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45804 wxString *arg9 = (wxString *) &arg9_defvalue ;
45805 bool result;
45806 void *argp1 = 0 ;
45807 int res1 = 0 ;
45808 void *argp2 = 0 ;
45809 int res2 = 0 ;
45810 int val3 ;
45811 int ecode3 = 0 ;
45812 bool temp4 = false ;
45813 wxPoint temp5 ;
45814 wxSize temp6 ;
45815 long val7 ;
45816 int ecode7 = 0 ;
45817 void *argp8 = 0 ;
45818 int res8 = 0 ;
45819 bool temp9 = false ;
45820 PyObject * obj0 = 0 ;
45821 PyObject * obj1 = 0 ;
45822 PyObject * obj2 = 0 ;
45823 PyObject * obj3 = 0 ;
45824 PyObject * obj4 = 0 ;
45825 PyObject * obj5 = 0 ;
45826 PyObject * obj6 = 0 ;
45827 PyObject * obj7 = 0 ;
45828 PyObject * obj8 = 0 ;
45829 char * kwnames[] = {
45830 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45831 };
45832
45833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45835 if (!SWIG_IsOK(res1)) {
45836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45837 }
45838 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45839 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45840 if (!SWIG_IsOK(res2)) {
45841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45842 }
45843 arg2 = reinterpret_cast< wxWindow * >(argp2);
45844 if (obj2) {
45845 ecode3 = SWIG_AsVal_int(obj2, &val3);
45846 if (!SWIG_IsOK(ecode3)) {
45847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45848 }
45849 arg3 = static_cast< int >(val3);
45850 }
45851 if (obj3) {
45852 {
45853 arg4 = wxString_in_helper(obj3);
45854 if (arg4 == NULL) SWIG_fail;
45855 temp4 = true;
45856 }
45857 }
45858 if (obj4) {
45859 {
45860 arg5 = &temp5;
45861 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45862 }
45863 }
45864 if (obj5) {
45865 {
45866 arg6 = &temp6;
45867 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45868 }
45869 }
45870 if (obj6) {
45871 ecode7 = SWIG_AsVal_long(obj6, &val7);
45872 if (!SWIG_IsOK(ecode7)) {
45873 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45874 }
45875 arg7 = static_cast< long >(val7);
45876 }
45877 if (obj7) {
45878 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45879 if (!SWIG_IsOK(res8)) {
45880 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45881 }
45882 if (!argp8) {
45883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45884 }
45885 arg8 = reinterpret_cast< wxValidator * >(argp8);
45886 }
45887 if (obj8) {
45888 {
45889 arg9 = wxString_in_helper(obj8);
45890 if (arg9 == NULL) SWIG_fail;
45891 temp9 = true;
45892 }
45893 }
45894 {
45895 PyThreadState* __tstate = wxPyBeginAllowThreads();
45896 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45897 wxPyEndAllowThreads(__tstate);
45898 if (PyErr_Occurred()) SWIG_fail;
45899 }
45900 {
45901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45902 }
45903 {
45904 if (temp4)
45905 delete arg4;
45906 }
45907 {
45908 if (temp9)
45909 delete arg9;
45910 }
45911 return resultobj;
45912fail:
45913 {
45914 if (temp4)
45915 delete arg4;
45916 }
45917 {
45918 if (temp9)
45919 delete arg9;
45920 }
45921 return NULL;
45922}
45923
45924
45925SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45926 PyObject *resultobj = 0;
45927 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45928 bool arg2 = (bool) true ;
45929 void *argp1 = 0 ;
45930 int res1 = 0 ;
45931 bool val2 ;
45932 int ecode2 = 0 ;
45933 PyObject * obj0 = 0 ;
45934 PyObject * obj1 = 0 ;
45935 char * kwnames[] = {
45936 (char *) "self",(char *) "collapse", NULL
45937 };
45938
45939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45941 if (!SWIG_IsOK(res1)) {
45942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45943 }
45944 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45945 if (obj1) {
45946 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45947 if (!SWIG_IsOK(ecode2)) {
45948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45949 }
45950 arg2 = static_cast< bool >(val2);
45951 }
45952 {
45953 PyThreadState* __tstate = wxPyBeginAllowThreads();
45954 (arg1)->Collapse(arg2);
45955 wxPyEndAllowThreads(__tstate);
45956 if (PyErr_Occurred()) SWIG_fail;
45957 }
45958 resultobj = SWIG_Py_Void();
45959 return resultobj;
45960fail:
45961 return NULL;
45962}
45963
45964
45965SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45966 PyObject *resultobj = 0;
45967 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45968 void *argp1 = 0 ;
45969 int res1 = 0 ;
45970 PyObject *swig_obj[1] ;
45971
45972 if (!args) SWIG_fail;
45973 swig_obj[0] = args;
45974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45975 if (!SWIG_IsOK(res1)) {
45976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45977 }
45978 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45979 {
45980 PyThreadState* __tstate = wxPyBeginAllowThreads();
45981 (arg1)->Expand();
45982 wxPyEndAllowThreads(__tstate);
45983 if (PyErr_Occurred()) SWIG_fail;
45984 }
45985 resultobj = SWIG_Py_Void();
45986 return resultobj;
45987fail:
45988 return NULL;
45989}
45990
45991
45992SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45993 PyObject *resultobj = 0;
45994 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45995 bool result;
45996 void *argp1 = 0 ;
45997 int res1 = 0 ;
45998 PyObject *swig_obj[1] ;
45999
46000 if (!args) SWIG_fail;
46001 swig_obj[0] = args;
46002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46003 if (!SWIG_IsOK(res1)) {
46004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46005 }
46006 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46007 {
46008 PyThreadState* __tstate = wxPyBeginAllowThreads();
46009 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46010 wxPyEndAllowThreads(__tstate);
46011 if (PyErr_Occurred()) SWIG_fail;
46012 }
46013 {
46014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46015 }
46016 return resultobj;
46017fail:
46018 return NULL;
46019}
46020
46021
46022SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46023 PyObject *resultobj = 0;
46024 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46025 bool result;
46026 void *argp1 = 0 ;
46027 int res1 = 0 ;
46028 PyObject *swig_obj[1] ;
46029
46030 if (!args) SWIG_fail;
46031 swig_obj[0] = args;
46032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46033 if (!SWIG_IsOK(res1)) {
46034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46035 }
46036 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46037 {
46038 PyThreadState* __tstate = wxPyBeginAllowThreads();
46039 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46040 wxPyEndAllowThreads(__tstate);
46041 if (PyErr_Occurred()) SWIG_fail;
46042 }
46043 {
46044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46045 }
46046 return resultobj;
46047fail:
46048 return NULL;
46049}
46050
46051
46052SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46053 PyObject *resultobj = 0;
46054 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46055 wxWindow *result = 0 ;
46056 void *argp1 = 0 ;
46057 int res1 = 0 ;
46058 PyObject *swig_obj[1] ;
46059
46060 if (!args) SWIG_fail;
46061 swig_obj[0] = args;
46062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46063 if (!SWIG_IsOK(res1)) {
46064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46065 }
46066 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46067 {
46068 PyThreadState* __tstate = wxPyBeginAllowThreads();
46069 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46070 wxPyEndAllowThreads(__tstate);
46071 if (PyErr_Occurred()) SWIG_fail;
46072 }
46073 {
46074 resultobj = wxPyMake_wxObject(result, 0);
46075 }
46076 return resultobj;
46077fail:
46078 return NULL;
46079}
46080
46081
46082SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46083 PyObject *obj;
46084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46085 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46086 return SWIG_Py_Void();
46087}
46088
46089SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46090 return SWIG_Python_InitShadowInstance(args);
46091}
46092
46093SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46094 PyObject *resultobj = 0;
46095 wxObject *arg1 = (wxObject *) 0 ;
46096 int arg2 ;
46097 bool arg3 ;
46098 wxCollapsiblePaneEvent *result = 0 ;
46099 void *argp1 = 0 ;
46100 int res1 = 0 ;
46101 int val2 ;
46102 int ecode2 = 0 ;
46103 bool val3 ;
46104 int ecode3 = 0 ;
46105 PyObject * obj0 = 0 ;
46106 PyObject * obj1 = 0 ;
46107 PyObject * obj2 = 0 ;
46108 char * kwnames[] = {
46109 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46110 };
46111
46112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46114 if (!SWIG_IsOK(res1)) {
46115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46116 }
46117 arg1 = reinterpret_cast< wxObject * >(argp1);
46118 ecode2 = SWIG_AsVal_int(obj1, &val2);
46119 if (!SWIG_IsOK(ecode2)) {
46120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46121 }
46122 arg2 = static_cast< int >(val2);
46123 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46124 if (!SWIG_IsOK(ecode3)) {
46125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46126 }
46127 arg3 = static_cast< bool >(val3);
46128 {
46129 PyThreadState* __tstate = wxPyBeginAllowThreads();
46130 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46131 wxPyEndAllowThreads(__tstate);
46132 if (PyErr_Occurred()) SWIG_fail;
46133 }
46134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46135 return resultobj;
46136fail:
46137 return NULL;
46138}
46139
46140
46141SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46142 PyObject *resultobj = 0;
46143 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46144 bool result;
46145 void *argp1 = 0 ;
46146 int res1 = 0 ;
46147 PyObject *swig_obj[1] ;
46148
46149 if (!args) SWIG_fail;
46150 swig_obj[0] = args;
46151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46152 if (!SWIG_IsOK(res1)) {
46153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46154 }
46155 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46156 {
46157 PyThreadState* __tstate = wxPyBeginAllowThreads();
46158 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46159 wxPyEndAllowThreads(__tstate);
46160 if (PyErr_Occurred()) SWIG_fail;
46161 }
46162 {
46163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46164 }
46165 return resultobj;
46166fail:
46167 return NULL;
46168}
46169
46170
46171SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46172 PyObject *resultobj = 0;
46173 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46174 bool arg2 ;
46175 void *argp1 = 0 ;
46176 int res1 = 0 ;
46177 bool val2 ;
46178 int ecode2 = 0 ;
46179 PyObject * obj0 = 0 ;
46180 PyObject * obj1 = 0 ;
46181 char * kwnames[] = {
46182 (char *) "self",(char *) "c", NULL
46183 };
46184
46185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46187 if (!SWIG_IsOK(res1)) {
46188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46189 }
46190 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46191 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46192 if (!SWIG_IsOK(ecode2)) {
46193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46194 }
46195 arg2 = static_cast< bool >(val2);
46196 {
46197 PyThreadState* __tstate = wxPyBeginAllowThreads();
46198 (arg1)->SetCollapsed(arg2);
46199 wxPyEndAllowThreads(__tstate);
46200 if (PyErr_Occurred()) SWIG_fail;
46201 }
46202 resultobj = SWIG_Py_Void();
46203 return resultobj;
46204fail:
46205 return NULL;
46206}
46207
46208
46209SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46210 PyObject *obj;
46211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46212 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46213 return SWIG_Py_Void();
46214}
46215
46216SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46217 return SWIG_Python_InitShadowInstance(args);
46218}
46219
b850e7f3
RD
46220static PyMethodDef SwigMethods[] = {
46221 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46223 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46225 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46226 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46228 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46229 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46231 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46233 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46234 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46235 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46236 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46237 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46239 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46241 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46244 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46245 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46246 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46247 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46249 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46250 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46251 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46252 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46254 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46255 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46256 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46257 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46259 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46260 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46262 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46264 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46266 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46267 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46269 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46271 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46272 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46273 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46274 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46275 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46277 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46278 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46280 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46281 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46282 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46284 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46286 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46288 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46289 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46290 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46291 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46292 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46293 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46294 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46295 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46296 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46297 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46298 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46299 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46301 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46304 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 46306 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
46307 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46308 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46310 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46312 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46314 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46315 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46317 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46320 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46321 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46323 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46324 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46325 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46326 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46328 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46329 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46331 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46334 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46335 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46336 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46338 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46339 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46340 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46343 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46344 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46345 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46347 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46351 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46356 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46357 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46358 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46359 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46363 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46364 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46366 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46369 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46370 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46372 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46374 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46376 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46377 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46378 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46379 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46380 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46381 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46382 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46383 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46384 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46386 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46387 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46388 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46390 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46391 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46392 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46393 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46394 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46395 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46396 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46397 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46398 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46399 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46400 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46401 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46402 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46403 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46404 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46405 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46406 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46407 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46408 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46409 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46410 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46411 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46412 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46413 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46414 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46415 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46416 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46417 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46418 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46419 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46420 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46421 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46422 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46423 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46424 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46425 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46426 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46427 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46428 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46429 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46430 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46431 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46432 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46434 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 46435 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46436 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46437 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46444 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46445 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46446 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46447 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46449 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46450 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46451 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46452 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46453 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46454 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46455 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46456 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46457 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46458 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46459 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46460 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46461 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46462 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46463 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46464 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46465 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46466 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
46467 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
46468 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
46469 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46470 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46471 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46472 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46473 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46474 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46475 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46476 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46477 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46478 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46479 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46480 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46481 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46482 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46483 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46484 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46485 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46486 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46487 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46488 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46489 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46490 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46491 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46492 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46494 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46495 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46496 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46497 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46498 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46499 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46500 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46501 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46502 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46503 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46504 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46505 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46506 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46507 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46508 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46509 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46510 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46511 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46512 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46513 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46514 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46515 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46516 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46517 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46518 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46519 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46520 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46521 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46522 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46523 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46524 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46525 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46526 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46527 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46528 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46529 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46530 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46531 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46532 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46533 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46534 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46535 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46536 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46537 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46538 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46539 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46540 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46541 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46542 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46543 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46544 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46545 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46546 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46547 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46548 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46549 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46550 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46551 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46552 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46553 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46554 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46555 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46556 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46557 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46558 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46559 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46560 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46561 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46562 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46563 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46564 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46565 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46566 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46567 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46568 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46569 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46570 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46571 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46572 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46573 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46574 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46575 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46576 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46577 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46578 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46579 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46580 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46581 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46582 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46583 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46584 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46585 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46586 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46587 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46588 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46589 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46590 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46591 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46592 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46593 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46594 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46595 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46596 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46597 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46598 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46599 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46600 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46601 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46602 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46604 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46605 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46606 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46607 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
46608 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46609 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
554f62e9
RD
46610 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46611 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 46612 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
554f62e9
RD
46613 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46614 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46615 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46616 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46618 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46619 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 46620 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46621 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46622 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46624 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46625 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46626 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46627 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46628 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46629 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46630 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46631 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46633 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46634 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46635 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46636 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46637 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46638 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46639 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46640 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46641 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46642 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46643 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46645 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46646 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46648 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46649 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46650 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46651 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46652 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46653 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46654 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46655 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46656 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46657 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46658 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46659 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46660 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46661 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46663 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46664 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46666 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46667 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46669 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46671 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46672 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46674 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46675 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46676 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46677 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46678 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46679 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46680 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46681 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46682 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46683 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46684 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46685 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46686 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46688 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46689 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46690 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46691 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46692 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46693 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46694 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46695 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46696 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46697 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46698 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46699 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46700 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46701 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46702 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46703 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46704 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46705 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46706 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46707 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46708 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46709 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46711 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46715 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46717 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46718 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46719 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46720 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46723 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46724 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46726 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46727 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46729 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46731 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46732 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46733 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46736 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46739 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46741 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46743 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46747 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46750 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46751 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46752 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46753 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46754 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46756 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46757 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46759 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46760 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46761 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46762 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46763 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46764 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46765 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46766 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46767 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46768 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46769 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46770 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46771 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46772 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46773 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46775 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46776 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46777 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46778 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46779 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46780 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46781 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46782 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46784 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46785 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46786 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46787 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46788 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46789 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46790 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46793 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46794 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46804 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46805 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46806 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46807 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46808 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46809 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46810 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46811 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46812 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46813 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46814 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46815 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46816 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46817 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46818 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46819 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46820 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46821 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46822 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46823 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46824 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46825 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46826 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46827 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46828 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46829 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46830 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46831 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46832 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46833 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46834 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46835 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46836 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46837 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46838 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46839 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46840 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46841 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46842 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46843 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46844 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46845 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46846 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46847 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46848 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46849 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46850 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46851 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46852 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46853 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46854 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46855 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46856 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46857 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46858 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46859 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46860 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46861 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46862 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46863 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46864 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46865 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46866 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46867 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46869 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46870 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46871 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46872 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46876 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46877 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46878 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46879 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46880 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46881 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46882 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46887 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46889 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46893 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46894 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46895 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46896 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46897 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46898 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46899 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46900 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46901 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46902 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46904 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46905 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46906 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46909 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46910 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46911 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46913 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46914 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46915 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46920 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46921 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46922 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46923 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46925 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46929 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46934 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46938 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46940 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46941 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46943 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46944 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46947 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46949 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46950 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46951 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46952 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46953 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46954 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46955 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46956 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46957 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46958 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46959 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46960 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46961 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46962 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46963 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46965 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46966 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46967 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46968 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46970 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46971 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46972 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
554f62e9
RD
46973 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46974 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46975 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46976 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46977 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46978 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46979 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46980 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46981 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46982 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46983 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46984 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46985 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46986 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46987 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46988 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46989 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46990 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46991 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46992 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46993 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46995 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46996 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46997 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46998 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46999 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47000 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47001 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47002 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47003 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47004 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47006 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47007 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47009 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47011 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47013 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47014 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47016 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47017 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47019 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47021 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47022 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47025 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47027 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47029 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47030 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47031 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47032 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47033 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47034 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47036 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47037 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47038 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47039 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47040 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47041 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47042 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47044 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47046 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47047 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47048 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
47049 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47050 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
554f62e9
RD
47051 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47052 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47053 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47054 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47055 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47056 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47057 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47058 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47059 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47060 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47061 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47062 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47063 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47064 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47065 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47066 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
47069 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
47070 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
554f62e9
RD
47072 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47073 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47074 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47075 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47076 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47077 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47078 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47079 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47080 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47082 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47083 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47084 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47085 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47086 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47087 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47088 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47089 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47090 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47091 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47092 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47093 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47094 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47095 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47096 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47097 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47098 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47099 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47100 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47103 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47104 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47106 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47107 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47109 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47111 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47113 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47114 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47115 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47116 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47117 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47118 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47119 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47120 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47121 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47122 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47123 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47124 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47125 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47126 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47127 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
47128 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47129 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47130 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47131 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47132 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47134 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47136 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47137 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47138 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47139 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47140 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 47141 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
554f62e9
RD
47142 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47144 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47145 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 47146 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47147 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47150 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47151 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47152 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47153 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47154 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47155 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47158 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47161 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47163 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47164 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47165 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47167 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47168 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47169 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47170 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47173 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47174 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47175 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47176 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47177 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47179 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47180 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47181 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47182 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47183 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
47184 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47185 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47186 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47187 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47188 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47189 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47190 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47191 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47192 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47193 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47194 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47195 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47197 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47198 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47199 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47200 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47201 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47202 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47203 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
47204 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47205 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47206 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47207 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
47209 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47210 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
47211 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47212 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47213 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47214 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47215 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47216 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47217 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47218 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47219 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47220 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47221 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47222 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47223 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47225 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47226 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47228 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47230 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47231 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47233 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47235 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47236 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47238 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47239 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47240 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47242 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47244 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47245 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47246 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47247 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47248 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47249 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47250 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47251 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47252 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47253 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47254 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47255 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47256 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47258 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47259 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47261 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47262 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47263 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47264 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47265 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47266 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47267 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
47268 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47270 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47273 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47274 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47275 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47276 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47277 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47278 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47279 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47280 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47282 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
554f62e9
RD
47283 { NULL, NULL, 0, NULL }
47284};
47285
47286
47287/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47288
47289static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47290 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47291}
47292static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47293 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47294}
47295static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47296 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47297}
47298static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47299 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47300}
47301static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47302 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47303}
47304static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47305 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47306}
47307static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47308 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47309}
47310static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47311 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47312}
b850e7f3
RD
47313static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47314 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47315}
47316static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47317 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47318}
47319static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47320 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47321}
554f62e9
RD
47322static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47323 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47324}
47325static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47326 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47327}
47328static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47329 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47330}
554f62e9
RD
47331static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47332 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47333}
0f83f5da
RD
47334static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47335 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47336}
2131d850
RD
47337static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47338 return (void *)((wxEvent *) ((wxPyEvent *) x));
47339}
554f62e9
RD
47340static void *_p_wxListEventTo_p_wxEvent(void *x) {
47341 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47342}
47343static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47344 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47345}
47346static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47347 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47348}
47349static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47350 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47351}
47352static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47353 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47354}
47355static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47356 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47357}
47358static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47359 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47360}
47361static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47362 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47363}
47364static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47365 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47366}
47367static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47368 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47369}
47370static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47371 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47372}
47373static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47374 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47375}
47376static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47377 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47378}
47379static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47380 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47381}
47382static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47383 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47384}
47385static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47386 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47387}
5172800e
RD
47388static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47389 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47390}
554f62e9
RD
47391static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47392 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47393}
47394static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47395 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47396}
0f83f5da
RD
47397static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47398 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47399}
554f62e9
RD
47400static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47401 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47402}
47403static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47404 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47405}
47406static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47407 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47408}
47409static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47410 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47411}
47412static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47413 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47414}
704eda0c
RD
47415static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47416 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47417}
554f62e9
RD
47418static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47419 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47420}
47421static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47422 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47423}
47424static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47425 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47426}
47427static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47428 return (void *)((wxEvent *) ((wxShowEvent *) x));
47429}
47430static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47431 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47432}
47433static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47434 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47435}
47436static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47437 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47438}
47439static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47440 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47441}
47442static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47443 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47444}
47445static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47446 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47447}
47448static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47449 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47450}
b850e7f3
RD
47451static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47452 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47453}
47454static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47455 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47456}
47457static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47458 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47459}
47460static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47461 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47462}
554f62e9
RD
47463static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47464 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47465}
47466static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47467 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47468}
47469static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47470 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47471}
47472static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47473 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47474}
47475static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47476 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47477}
47478static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47479 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47480}
47481static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47482 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47483}
5172800e
RD
47484static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47485 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47486}
554f62e9
RD
47487static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47488 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47489}
47490static void *_p_wxToolBarTo_p_wxControl(void *x) {
47491 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47492}
b850e7f3
RD
47493static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47494 return (void *)((wxControl *) ((wxPickerBase *) x));
47495}
554f62e9
RD
47496static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47497 return (void *)((wxControl *) ((wxToggleButton *) x));
47498}
47499static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47500 return (void *)((wxControl *) ((wxRadioButton *) x));
47501}
47502static void *_p_wxToolbookTo_p_wxControl(void *x) {
47503 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47504}
47505static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47506 return (void *)((wxControl *) ((wxToolBarBase *) x));
47507}
47508static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47509 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47510}
47511static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47512 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47513}
47514static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47515 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47516}
47517static void *_p_wxPyControlTo_p_wxControl(void *x) {
47518 return (void *)((wxControl *) ((wxPyControl *) x));
47519}
47520static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47521 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47522}
47523static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47524 return (void *)((wxControl *) ((wxScrollBar *) x));
47525}
47526static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47527 return (void *)((wxControl *) ((wxControlWithItems *) x));
47528}
47529static void *_p_wxGaugeTo_p_wxControl(void *x) {
47530 return (void *)((wxControl *) ((wxGauge *) x));
47531}
47532static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47533 return (void *)((wxControl *) ((wxStaticLine *) x));
47534}
47535static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47536 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47537}
47538static void *_p_wxListbookTo_p_wxControl(void *x) {
47539 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47540}
704eda0c
RD
47541static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47542 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47543}
554f62e9
RD
47544static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47545 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47546}
47547static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47548 return (void *)((wxControl *) ((wxCheckBox *) x));
47549}
47550static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47551 return (void *)((wxControl *) ((wxRadioBox *) x));
47552}
47553static void *_p_wxChoiceTo_p_wxControl(void *x) {
47554 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47555}
47556static void *_p_wxListBoxTo_p_wxControl(void *x) {
47557 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47558}
47559static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47560 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47561}
47562static void *_p_wxListViewTo_p_wxControl(void *x) {
47563 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47564}
47565static void *_p_wxNotebookTo_p_wxControl(void *x) {
47566 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47567}
47568static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47569 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47570}
47571static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47572 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47573}
47574static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47575 return (void *)((wxControl *) ((wxStaticText *) x));
47576}
47577static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47578 return (void *)((wxControl *) ((wxStaticBox *) x));
47579}
47580static void *_p_wxSliderTo_p_wxControl(void *x) {
47581 return (void *)((wxControl *) ((wxSlider *) x));
47582}
47583static void *_p_wxTreebookTo_p_wxControl(void *x) {
47584 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47585}
47586static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47587 return (void *)((wxControl *) ((wxSpinButton *) x));
47588}
47589static void *_p_wxButtonTo_p_wxControl(void *x) {
47590 return (void *)((wxControl *) ((wxButton *) x));
47591}
47592static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47593 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47594}
47595static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47596 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47597}
47598static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47599 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47600}
b850e7f3
RD
47601static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47602 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47603}
47604static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47605 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47606}
47607static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47608 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47609}
47610static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47611 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47612}
554f62e9
RD
47613static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47614 return (void *)((wxControl *) ((wxTextCtrl *) x));
47615}
47616static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47617 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47618}
47619static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
47620 return (void *)((wxChoice *) ((wxComboBox *) x));
47621}
47622static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47623 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47624}
47625static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47626 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47627}
47628static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47629 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47630}
47631static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47632 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47633}
47634static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47635 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47636}
47637static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47638 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47639}
47640static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47641 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47642}
47643static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47644 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47645}
47646static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47647 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47648}
47649static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47650 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47651}
47652static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47653 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47654}
47655static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47656 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47657}
47658static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47659 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47660}
47661static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47662 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47663}
47664static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47665 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47666}
5172800e
RD
47667static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
47668 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47669}
554f62e9
RD
47670static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47671 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47672}
47673static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47674 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47675}
47676static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47677 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47678}
47679static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47680 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47681}
47682static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47683 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47684}
b850e7f3
RD
47685static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47686 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47687}
554f62e9
RD
47688static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47689 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47690}
47691static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47692 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47693}
47694static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47695 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47696}
47697static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47698 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47699}
47700static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47701 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47702}
47703static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47704 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47705}
47706static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47707 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47708}
47709static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47710 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47711}
47712static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47713 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47714}
47715static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47716 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47717}
47718static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47719 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47720}
47721static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47722 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47723}
47724static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47725 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47726}
47727static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47728 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47729}
47730static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47731 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47732}
47733static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47734 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47735}
47736static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47737 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47738}
47739static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47740 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47741}
47742static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47743 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47744}
704eda0c
RD
47745static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47746 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47747}
554f62e9
RD
47748static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47749 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47750}
47751static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47752 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47753}
47754static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47755 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47756}
47757static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47758 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47759}
47760static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47761 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47762}
47763static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47764 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47765}
47766static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47767 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47768}
47769static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47770 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47771}
47772static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47773 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47774}
47775static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47776 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47777}
47778static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47779 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47780}
47781static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47782 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47783}
47784static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47785 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47786}
47787static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47788 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47789}
47790static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47791 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47792}
47793static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47794 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47795}
47796static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47797 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47798}
47799static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47800 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47801}
47802static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47803 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47804}
b850e7f3
RD
47805static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47806 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47807}
47808static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47809 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47810}
47811static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47812 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47813}
47814static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47815 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47816}
554f62e9
RD
47817static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47818 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47819}
47820static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47821 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47822}
47823static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47824 return (void *)((wxButton *) ((wxBitmapButton *) x));
47825}
47826static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47827 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47828}
47829static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47830 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47831}
47832static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47833 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47834}
47835static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47836 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47837}
47838static void *_p_wxToolbookTo_p_wxObject(void *x) {
47839 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47840}
554f62e9
RD
47841static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47842 return (void *)((wxObject *) ((wxSizerItem *) x));
47843}
0f83f5da
RD
47844static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47845 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47846}
554f62e9
RD
47847static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47848 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47849}
47850static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47851 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47852}
47853static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47855}
47856static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47857 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47858}
47859static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47860 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47861}
47862static void *_p_wxSizerTo_p_wxObject(void *x) {
47863 return (void *)((wxObject *) ((wxSizer *) x));
47864}
47865static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47866 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47867}
47868static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47869 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47870}
47871static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47872 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47873}
47874static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47875 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47876}
47877static void *_p_wxEventTo_p_wxObject(void *x) {
47878 return (void *)((wxObject *) ((wxEvent *) x));
47879}
47880static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47881 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47882}
47883static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47884 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47885}
47886static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47887 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47888}
47889static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47890 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47891}
b850e7f3
RD
47892static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47894}
554f62e9
RD
47895static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47896 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47897}
47898static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47899 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47900}
2131d850
RD
47901static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47902 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47903}
554f62e9
RD
47904static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47905 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47906}
47907static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47908 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47909}
47910static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47911 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47912}
47913static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47914 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47915}
47916static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47917 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47918}
47919static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47920 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47921}
47922static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47923 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47924}
47925static void *_p_wxControlTo_p_wxObject(void *x) {
47926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47927}
47928static void *_p_wxPyControlTo_p_wxObject(void *x) {
47929 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47930}
47931static void *_p_wxGaugeTo_p_wxObject(void *x) {
47932 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47933}
47934static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47935 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47936}
47937static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47939}
47940static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47941 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47942}
47943static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47944 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47945}
b850e7f3
RD
47946static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47947 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47948}
47949static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47950 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47951}
47952static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47953 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47954}
554f62e9
RD
47955static void *_p_wxChoiceTo_p_wxObject(void *x) {
47956 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47957}
47958static void *_p_wxFSFileTo_p_wxObject(void *x) {
47959 return (void *)((wxObject *) ((wxFSFile *) x));
47960}
47961static void *_p_wxPySizerTo_p_wxObject(void *x) {
47962 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47963}
47964static void *_p_wxTreebookTo_p_wxObject(void *x) {
47965 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47966}
47967static void *_p_wxListViewTo_p_wxObject(void *x) {
47968 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47969}
704eda0c
RD
47970static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47971 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47972}
554f62e9
RD
47973static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47974 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47975}
47976static void *_p_wxNotebookTo_p_wxObject(void *x) {
47977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47978}
47979static void *_p_wxPyEventTo_p_wxObject(void *x) {
47980 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47981}
47982static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47983 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47984}
47985static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47986 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47987}
47988static void *_p_wxListbookTo_p_wxObject(void *x) {
47989 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47990}
47991static void *_p_wxShowEventTo_p_wxObject(void *x) {
47992 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47993}
47994static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47995 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47996}
47997static void *_p_wxSliderTo_p_wxObject(void *x) {
47998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47999}
48000static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48001 return (void *)((wxObject *) ((wxMenuItem *) x));
48002}
48003static void *_p_wxDateEventTo_p_wxObject(void *x) {
48004 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48005}
48006static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48007 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48008}
48009static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48010 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48011}
48012static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48013 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48014}
48015static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48016 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48017}
48018static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48019 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48020}
48021static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48022 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48023}
48024static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48025 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48026}
48027static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48028 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48029}
48030static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48031 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48032}
48033static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48034 return (void *)((wxObject *) ((wxContextHelp *) x));
48035}
5172800e
RD
48036static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48037 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48038}
554f62e9
RD
48039static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48041}
48042static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48043 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48044}
48045static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48046 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48047}
48048static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48049 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48050}
48051static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48052 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48053}
48054static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48055 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48056}
48057static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48058 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48059}
48060static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48061 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48062}
48063static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48064 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48065}
48066static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48067 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48068}
48069static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48070 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48071}
48072static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48073 return (void *)((wxObject *) ((wxImageHandler *) x));
48074}
48075static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48076 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48077}
48078static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48079 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48080}
580080c5
RD
48081static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48082 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48083}
554f62e9
RD
48084static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48085 return (void *)((wxObject *) ((wxEvtHandler *) x));
48086}
0f83f5da
RD
48087static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48088 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48089}
554f62e9
RD
48090static void *_p_wxListEventTo_p_wxObject(void *x) {
48091 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48092}
48093static void *_p_wxListBoxTo_p_wxObject(void *x) {
48094 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48095}
48096static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48098}
48099static void *_p_wxButtonTo_p_wxObject(void *x) {
48100 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48101}
48102static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48103 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48104}
48105static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48106 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48107}
48108static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48109 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48110}
554f62e9
RD
48111static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48112 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48113}
580080c5
RD
48114static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48115 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48116}
554f62e9
RD
48117static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48118 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48119}
48120static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48121 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48122}
48123static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48124 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48125}
48126static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48127 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48128}
48129static void *_p_wxListItemTo_p_wxObject(void *x) {
48130 return (void *)((wxObject *) ((wxListItem *) x));
48131}
48132static void *_p_wxImageTo_p_wxObject(void *x) {
48133 return (void *)((wxObject *) ((wxImage *) x));
48134}
48135static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48136 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48137}
48138static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48139 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48140}
48141static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48142 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48143}
48144static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48146}
48147static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48148 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48149}
48150static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48151 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48152}
48153static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48155}
48156static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48157 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48158}
48159static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48160 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48161}
48162static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48164}
48165static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48166 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48167}
48168static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48169 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48170}
48171static void *_p_wxWindowTo_p_wxObject(void *x) {
48172 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48173}
48174static void *_p_wxMenuTo_p_wxObject(void *x) {
48175 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48176}
48177static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48178 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48179}
48180static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48181 return (void *)((wxObject *) ((wxFileSystem *) x));
48182}
5172800e
RD
48183static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48185}
554f62e9
RD
48186static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48187 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48188}
48189static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48190 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48191}
48192static void *_p_wxPyAppTo_p_wxObject(void *x) {
48193 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48194}
48195static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48196 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48197}
48198static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48199 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48200}
48201static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48202 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48203}
48204static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48206}
48207static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48208 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48209}
48210static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48211 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48212}
48213static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48214 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48215}
48216static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48218}
48219static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48220 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48221}
48222static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48223 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48224}
48225static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48226 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48227}
48228static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48229 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48230}
b850e7f3
RD
48231static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48232 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48233}
48234static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48236}
48237static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48238 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48239}
48240static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48241 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48242}
554f62e9
RD
48243static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48245}
704eda0c
RD
48246static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48248}
554f62e9
RD
48249static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48250 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48251}
48252static void *_p_wxToolBarTo_p_wxObject(void *x) {
48253 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48254}
48255static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48256 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48257}
48258static void *_p_wxValidatorTo_p_wxObject(void *x) {
48259 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48260}
5172800e
RD
48261static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48262 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48263}
554f62e9
RD
48264static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48265 return (void *)((wxWindow *) ((wxMenuBar *) x));
48266}
48267static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48268 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48269}
48270static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48271 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48272}
b850e7f3
RD
48273static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48274 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48275}
554f62e9
RD
48276static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48277 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48278}
48279static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48280 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48281}
48282static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48283 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48284}
48285static void *_p_wxControlTo_p_wxWindow(void *x) {
48286 return (void *)((wxWindow *) ((wxControl *) x));
48287}
48288static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48289 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48290}
48291static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48292 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48293}
48294static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48295 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48296}
48297static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48298 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48299}
48300static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48301 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48302}
48303static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48304 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48305}
48306static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48307 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48308}
48309static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48310 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48311}
48312static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48313 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48314}
48315static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48316 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48317}
48318static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48319 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48320}
48321static void *_p_wxListbookTo_p_wxWindow(void *x) {
48322 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48323}
704eda0c
RD
48324static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48325 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48326}
554f62e9
RD
48327static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48328 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48329}
48330static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48331 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48332}
48333static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48334 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48335}
48336static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48337 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48338}
48339static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48340 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48341}
48342static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48343 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48344}
48345static void *_p_wxListViewTo_p_wxWindow(void *x) {
48346 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48347}
48348static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48349 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48350}
48351static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48352 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48353}
48354static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48355 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48356}
48357static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48358 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48359}
48360static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48361 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48362}
48363static void *_p_wxSliderTo_p_wxWindow(void *x) {
48364 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48365}
48366static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48367 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48368}
48369static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48370 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48371}
48372static void *_p_wxButtonTo_p_wxWindow(void *x) {
48373 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48374}
48375static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48376 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48377}
48378static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48379 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48380}
48381static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48382 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48383}
b850e7f3
RD
48384static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48385 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48386}
48387static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48388 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48389}
48390static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48391 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48392}
48393static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48394 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48395}
554f62e9
RD
48396static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48397 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48398}
48399static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48400 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48401}
48402static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48403 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48404}
48405static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48406 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48407}
48408static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48409 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48410}
48411static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48412 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48413}
48414static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48415 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48416}
704eda0c
RD
48417static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48418 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48419}
2131d850
RD
48420static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48421 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48422}
b850e7f3
RD
48423static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48424 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48425}
48426static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48427 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48428}
48429static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48430 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48431}
554f62e9
RD
48432static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48433 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48434}
48435static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48436 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48437}
48438static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48439 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48440}
48441static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48442 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48443}
48444static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48445 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48446}
554f62e9
RD
48447static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48448 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48449}
2131d850
RD
48450static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48451 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48452}
554f62e9
RD
48453static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48454 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48455}
48456static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48457 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48458}
48459static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48460 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48461}
48462static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48463 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48464}
48465static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48466 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48467}
48468static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48469 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48470}
5172800e
RD
48471static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48472 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48473}
554f62e9
RD
48474static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48475 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48476}
48477static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48478 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48479}
48480static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48481 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48482}
48483static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48484 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48485}
48486static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48487 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48488}
48489static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48490 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48491}
48492static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
48493 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
48494}
48495static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48496 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48497}
48498static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48499 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48500}
48501static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48502 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48503}
48504static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48505 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48506}
48507static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48508 return (void *)((wxValidator *) ((wxPyValidator *) x));
48509}
48510static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48511static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48512static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
48513static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48514static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48515static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48516static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48517static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48518static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48519static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48520static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48521static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48522static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48523static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48524static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48525static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48526static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48527static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48528static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48529static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48530static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
48531static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48532static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
554f62e9 48533static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
48534static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48535static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
48536static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48537static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48538static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 48539static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
48540static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48541static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48542static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48543static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48544static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48545static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48546static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48547static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48548static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48549static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48550static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48551static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48552static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48553static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48554static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48555static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 48556static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
554f62e9
RD
48557static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48558static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48559static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48560static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48561static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48562static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48563static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48564static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
0f83f5da 48565static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
48566static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48567static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48568static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48569static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48570static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48571static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
0f83f5da 48572static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
554f62e9
RD
48573static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48574static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48575static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48576static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48577static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48578static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48579static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48580static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48581static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48582static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48583static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48584static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48585static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48586static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48587static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48588static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
48589static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48590static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
554f62e9 48591static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
48592static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48593static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
48594static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48595static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48596static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48597static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48598static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
48599static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48600static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
48601static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48602static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48603static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48604static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48605static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48606static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48607static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48608static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48609static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48610static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48611static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48612static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48613static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48614static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48615static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48616static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48617static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48618static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 48619static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 48620static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
48621static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48622static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48623static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48624static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48625static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48626static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48627static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48628static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48629static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48630static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
48631static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48632static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48633static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48634static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
5172800e 48635static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
48636static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48637static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48638static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48639static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 48640static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 48641static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
554f62e9
RD
48642static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48643static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 48644static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
554f62e9 48645static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 48646static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
554f62e9
RD
48647static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48648static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48649static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 48650static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
554f62e9
RD
48651static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48652static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48653static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48654static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48655static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48656static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48657static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48658static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48659static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48660static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48661static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48662static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48663static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48664static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48665static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48666static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48667static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48668static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48669static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48670static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48671static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48672static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48673static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48674static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48675static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48676static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48677static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48678static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48679static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
48680static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48681static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48682static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48683static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48684static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48685static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48686static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 48687static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
554f62e9
RD
48688
48689static swig_type_info *swig_type_initial[] = {
48690 &_swigt__p_bool,
48691 &_swigt__p_char,
48692 &_swigt__p_form_ops_t,
48693 &_swigt__p_int,
48694 &_swigt__p_long,
48695 &_swigt__p_unsigned_char,
48696 &_swigt__p_unsigned_int,
48697 &_swigt__p_unsigned_long,
48698 &_swigt__p_void,
48699 &_swigt__p_wxANIHandler,
48700 &_swigt__p_wxAcceleratorTable,
48701 &_swigt__p_wxActivateEvent,
48702 &_swigt__p_wxArrayInt,
48703 &_swigt__p_wxArrayString,
48704 &_swigt__p_wxBMPHandler,
48705 &_swigt__p_wxBitmap,
48706 &_swigt__p_wxBitmapButton,
48707 &_swigt__p_wxBookCtrlBase,
48708 &_swigt__p_wxBookCtrlBaseEvent,
48709 &_swigt__p_wxBoxSizer,
48710 &_swigt__p_wxButton,
48711 &_swigt__p_wxCURHandler,
48712 &_swigt__p_wxCheckBox,
48713 &_swigt__p_wxCheckListBox,
48714 &_swigt__p_wxChildFocusEvent,
48715 &_swigt__p_wxChoice,
48716 &_swigt__p_wxChoicebook,
48717 &_swigt__p_wxChoicebookEvent,
2131d850 48718 &_swigt__p_wxClipboardTextEvent,
554f62e9 48719 &_swigt__p_wxCloseEvent,
5172800e
RD
48720 &_swigt__p_wxCollapsiblePane,
48721 &_swigt__p_wxCollapsiblePaneEvent,
554f62e9 48722 &_swigt__p_wxColour,
b850e7f3
RD
48723 &_swigt__p_wxColourPickerCtrl,
48724 &_swigt__p_wxColourPickerEvent,
554f62e9
RD
48725 &_swigt__p_wxComboBox,
48726 &_swigt__p_wxCommandEvent,
48727 &_swigt__p_wxContextHelp,
48728 &_swigt__p_wxContextHelpButton,
48729 &_swigt__p_wxContextMenuEvent,
48730 &_swigt__p_wxControl,
48731 &_swigt__p_wxControlWithItems,
48732 &_swigt__p_wxCursor,
48733 &_swigt__p_wxDC,
48734 &_swigt__p_wxDateEvent,
48735 &_swigt__p_wxDatePickerCtrl,
48736 &_swigt__p_wxDateTime,
48737 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 48738 &_swigt__p_wxDirPickerCtrl,
554f62e9
RD
48739 &_swigt__p_wxDisplayChangedEvent,
48740 &_swigt__p_wxDropFilesEvent,
48741 &_swigt__p_wxDuplexMode,
48742 &_swigt__p_wxEraseEvent,
48743 &_swigt__p_wxEvent,
48744 &_swigt__p_wxEvtHandler,
48745 &_swigt__p_wxFSFile,
b850e7f3
RD
48746 &_swigt__p_wxFileDirPickerEvent,
48747 &_swigt__p_wxFilePickerCtrl,
554f62e9
RD
48748 &_swigt__p_wxFileSystem,
48749 &_swigt__p_wxFlexGridSizer,
48750 &_swigt__p_wxFocusEvent,
48751 &_swigt__p_wxFont,
b850e7f3
RD
48752 &_swigt__p_wxFontPickerCtrl,
48753 &_swigt__p_wxFontPickerEvent,
554f62e9
RD
48754 &_swigt__p_wxGBSizerItem,
48755 &_swigt__p_wxGIFHandler,
48756 &_swigt__p_wxGauge,
48757 &_swigt__p_wxGenericDirCtrl,
48758 &_swigt__p_wxGenericDragImage,
48759 &_swigt__p_wxGridBagSizer,
48760 &_swigt__p_wxGridSizer,
48761 &_swigt__p_wxHelpEvent,
48762 &_swigt__p_wxHelpProvider,
704eda0c
RD
48763 &_swigt__p_wxHyperlinkCtrl,
48764 &_swigt__p_wxHyperlinkEvent,
554f62e9
RD
48765 &_swigt__p_wxICOHandler,
48766 &_swigt__p_wxIcon,
48767 &_swigt__p_wxIconizeEvent,
48768 &_swigt__p_wxIdleEvent,
48769 &_swigt__p_wxImage,
48770 &_swigt__p_wxImageHandler,
48771 &_swigt__p_wxImageList,
48772 &_swigt__p_wxIndividualLayoutConstraint,
48773 &_swigt__p_wxInitDialogEvent,
48774 &_swigt__p_wxItemContainer,
48775 &_swigt__p_wxJPEGHandler,
48776 &_swigt__p_wxKeyEvent,
48777 &_swigt__p_wxLayoutConstraints,
48778 &_swigt__p_wxListBox,
48779 &_swigt__p_wxListEvent,
48780 &_swigt__p_wxListItem,
48781 &_swigt__p_wxListItemAttr,
48782 &_swigt__p_wxListView,
48783 &_swigt__p_wxListbook,
48784 &_swigt__p_wxListbookEvent,
48785 &_swigt__p_wxMaximizeEvent,
48786 &_swigt__p_wxMemoryDC,
48787 &_swigt__p_wxMenu,
48788 &_swigt__p_wxMenuBar,
48789 &_swigt__p_wxMenuEvent,
48790 &_swigt__p_wxMenuItem,
48791 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 48792 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
48793 &_swigt__p_wxMouseEvent,
48794 &_swigt__p_wxMoveEvent,
48795 &_swigt__p_wxNavigationKeyEvent,
48796 &_swigt__p_wxNcPaintEvent,
48797 &_swigt__p_wxNotebook,
48798 &_swigt__p_wxNotebookEvent,
48799 &_swigt__p_wxNotifyEvent,
48800 &_swigt__p_wxObject,
48801 &_swigt__p_wxPCXHandler,
48802 &_swigt__p_wxPNGHandler,
48803 &_swigt__p_wxPNMHandler,
48804 &_swigt__p_wxPaintEvent,
48805 &_swigt__p_wxPaletteChangedEvent,
48806 &_swigt__p_wxPaperSize,
b850e7f3 48807 &_swigt__p_wxPickerBase,
554f62e9
RD
48808 &_swigt__p_wxPoint,
48809 &_swigt__p_wxPyApp,
48810 &_swigt__p_wxPyCommandEvent,
48811 &_swigt__p_wxPyControl,
48812 &_swigt__p_wxPyEvent,
48813 &_swigt__p_wxPyImageHandler,
48814 &_swigt__p_wxPyListCtrl,
48815 &_swigt__p_wxPySizer,
48816 &_swigt__p_wxPyTreeCtrl,
48817 &_swigt__p_wxPyTreeItemData,
48818 &_swigt__p_wxPyValidator,
48819 &_swigt__p_wxQueryNewPaletteEvent,
48820 &_swigt__p_wxRadioBox,
48821 &_swigt__p_wxRadioButton,
48822 &_swigt__p_wxRect,
48823 &_swigt__p_wxScrollBar,
48824 &_swigt__p_wxScrollEvent,
48825 &_swigt__p_wxScrollWinEvent,
48826 &_swigt__p_wxSetCursorEvent,
48827 &_swigt__p_wxShowEvent,
48828 &_swigt__p_wxSimpleHelpProvider,
48829 &_swigt__p_wxSize,
48830 &_swigt__p_wxSizeEvent,
48831 &_swigt__p_wxSizer,
48832 &_swigt__p_wxSizerItem,
48833 &_swigt__p_wxSlider,
48834 &_swigt__p_wxSpinButton,
48835 &_swigt__p_wxSpinCtrl,
48836 &_swigt__p_wxSpinEvent,
48837 &_swigt__p_wxStaticBitmap,
48838 &_swigt__p_wxStaticBox,
48839 &_swigt__p_wxStaticBoxSizer,
48840 &_swigt__p_wxStaticLine,
48841 &_swigt__p_wxStaticText,
48842 &_swigt__p_wxStdDialogButtonSizer,
48843 &_swigt__p_wxString,
48844 &_swigt__p_wxSysColourChangedEvent,
580080c5 48845 &_swigt__p_wxTGAHandler,
554f62e9
RD
48846 &_swigt__p_wxTIFFHandler,
48847 &_swigt__p_wxTextAttr,
48848 &_swigt__p_wxTextCtrl,
48849 &_swigt__p_wxTextUrlEvent,
48850 &_swigt__p_wxToggleButton,
48851 &_swigt__p_wxToolBar,
48852 &_swigt__p_wxToolBarBase,
48853 &_swigt__p_wxToolBarToolBase,
48854 &_swigt__p_wxToolbook,
48855 &_swigt__p_wxToolbookEvent,
554f62e9
RD
48856 &_swigt__p_wxTreeEvent,
48857 &_swigt__p_wxTreeItemId,
48858 &_swigt__p_wxTreebook,
48859 &_swigt__p_wxTreebookEvent,
48860 &_swigt__p_wxUpdateUIEvent,
48861 &_swigt__p_wxValidator,
48862 &_swigt__p_wxVisualAttributes,
48863 &_swigt__p_wxWindow,
b850e7f3 48864 &_swigt__p_wxWindowBase,
554f62e9
RD
48865 &_swigt__p_wxWindowCreateEvent,
48866 &_swigt__p_wxWindowDestroyEvent,
48867 &_swigt__p_wxXPMHandler,
48868};
48869
48870static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48871static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48872static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48873static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48874static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48875static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48876static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48877static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48878static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48879static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48880static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48881static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48882static 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}};
48883static 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}};
48884static 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}};
48885static 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}};
48886static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48887static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48888static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
48889static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48890static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
48891static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
48892static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 48893static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48894static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48895static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48896static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48897static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48898static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48899static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48900static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48901static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48902static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48903static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48904static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48905static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48906static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48907static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48908static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48909static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_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}};
554f62e9
RD
48910static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_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}};
48911static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48912static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48913static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48914static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48915static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48916static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48917static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48918static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48919static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48920static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48921static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48922static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48923static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48924static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48925static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48926static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48927static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48928static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48929static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48930static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48931static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48932static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48933static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48934static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48935static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48936static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48937static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48938static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48939static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48940static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48941static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48942static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48943static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48944static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48945static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48946static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48947static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48948static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48949static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48950static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 48951static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48952static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48953static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48954static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48955static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48956static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48957static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48958static 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
48959static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48960static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48961static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48962static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48963static 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}};
48964static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48965static 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}};
48966static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48967static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48968static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48969static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48970static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48971static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48972static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48973static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48974static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48975static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48976static 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}};
48977static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 48978static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 48979static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48980static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48981static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48982static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48983static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48984static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48985static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48986static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48987static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48988static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48989static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48990static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48991static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48992static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48993static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48994static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48995static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48996static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48997static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48998static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48999static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49000static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49001static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49002static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49003static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 49004static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49005static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49006static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49007static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49008static 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
554f62e9 49009static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49010static 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}};
554f62e9
RD
49011static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49012static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49013static 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}};
49014static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49015static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49016static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49017static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49018static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49019static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49020static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49021static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49022static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49023static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49024static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49025static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49026static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49027static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49028static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49029static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49030static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49031static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49032static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
49033static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49034static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49035static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49036static 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}};
49037static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49038static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49039static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49040static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49041static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49042static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49043static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49044static 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}};
49045static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49046static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
b850e7f3 49047static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49048
49049static swig_cast_info *swig_cast_initial[] = {
49050 _swigc__p_bool,
49051 _swigc__p_char,
49052 _swigc__p_form_ops_t,
49053 _swigc__p_int,
49054 _swigc__p_long,
49055 _swigc__p_unsigned_char,
49056 _swigc__p_unsigned_int,
49057 _swigc__p_unsigned_long,
49058 _swigc__p_void,
49059 _swigc__p_wxANIHandler,
49060 _swigc__p_wxAcceleratorTable,
49061 _swigc__p_wxActivateEvent,
49062 _swigc__p_wxArrayInt,
49063 _swigc__p_wxArrayString,
49064 _swigc__p_wxBMPHandler,
49065 _swigc__p_wxBitmap,
49066 _swigc__p_wxBitmapButton,
49067 _swigc__p_wxBookCtrlBase,
49068 _swigc__p_wxBookCtrlBaseEvent,
49069 _swigc__p_wxBoxSizer,
49070 _swigc__p_wxButton,
49071 _swigc__p_wxCURHandler,
49072 _swigc__p_wxCheckBox,
49073 _swigc__p_wxCheckListBox,
49074 _swigc__p_wxChildFocusEvent,
49075 _swigc__p_wxChoice,
49076 _swigc__p_wxChoicebook,
49077 _swigc__p_wxChoicebookEvent,
2131d850 49078 _swigc__p_wxClipboardTextEvent,
554f62e9 49079 _swigc__p_wxCloseEvent,
5172800e
RD
49080 _swigc__p_wxCollapsiblePane,
49081 _swigc__p_wxCollapsiblePaneEvent,
554f62e9 49082 _swigc__p_wxColour,
b850e7f3
RD
49083 _swigc__p_wxColourPickerCtrl,
49084 _swigc__p_wxColourPickerEvent,
554f62e9
RD
49085 _swigc__p_wxComboBox,
49086 _swigc__p_wxCommandEvent,
49087 _swigc__p_wxContextHelp,
49088 _swigc__p_wxContextHelpButton,
49089 _swigc__p_wxContextMenuEvent,
49090 _swigc__p_wxControl,
49091 _swigc__p_wxControlWithItems,
49092 _swigc__p_wxCursor,
49093 _swigc__p_wxDC,
49094 _swigc__p_wxDateEvent,
49095 _swigc__p_wxDatePickerCtrl,
49096 _swigc__p_wxDateTime,
49097 _swigc__p_wxDirFilterListCtrl,
b850e7f3 49098 _swigc__p_wxDirPickerCtrl,
554f62e9
RD
49099 _swigc__p_wxDisplayChangedEvent,
49100 _swigc__p_wxDropFilesEvent,
49101 _swigc__p_wxDuplexMode,
49102 _swigc__p_wxEraseEvent,
49103 _swigc__p_wxEvent,
49104 _swigc__p_wxEvtHandler,
49105 _swigc__p_wxFSFile,
b850e7f3
RD
49106 _swigc__p_wxFileDirPickerEvent,
49107 _swigc__p_wxFilePickerCtrl,
554f62e9
RD
49108 _swigc__p_wxFileSystem,
49109 _swigc__p_wxFlexGridSizer,
49110 _swigc__p_wxFocusEvent,
49111 _swigc__p_wxFont,
b850e7f3
RD
49112 _swigc__p_wxFontPickerCtrl,
49113 _swigc__p_wxFontPickerEvent,
554f62e9
RD
49114 _swigc__p_wxGBSizerItem,
49115 _swigc__p_wxGIFHandler,
49116 _swigc__p_wxGauge,
49117 _swigc__p_wxGenericDirCtrl,
49118 _swigc__p_wxGenericDragImage,
49119 _swigc__p_wxGridBagSizer,
49120 _swigc__p_wxGridSizer,
49121 _swigc__p_wxHelpEvent,
49122 _swigc__p_wxHelpProvider,
704eda0c
RD
49123 _swigc__p_wxHyperlinkCtrl,
49124 _swigc__p_wxHyperlinkEvent,
554f62e9
RD
49125 _swigc__p_wxICOHandler,
49126 _swigc__p_wxIcon,
49127 _swigc__p_wxIconizeEvent,
49128 _swigc__p_wxIdleEvent,
49129 _swigc__p_wxImage,
49130 _swigc__p_wxImageHandler,
49131 _swigc__p_wxImageList,
49132 _swigc__p_wxIndividualLayoutConstraint,
49133 _swigc__p_wxInitDialogEvent,
49134 _swigc__p_wxItemContainer,
49135 _swigc__p_wxJPEGHandler,
49136 _swigc__p_wxKeyEvent,
49137 _swigc__p_wxLayoutConstraints,
49138 _swigc__p_wxListBox,
49139 _swigc__p_wxListEvent,
49140 _swigc__p_wxListItem,
49141 _swigc__p_wxListItemAttr,
49142 _swigc__p_wxListView,
49143 _swigc__p_wxListbook,
49144 _swigc__p_wxListbookEvent,
49145 _swigc__p_wxMaximizeEvent,
49146 _swigc__p_wxMemoryDC,
49147 _swigc__p_wxMenu,
49148 _swigc__p_wxMenuBar,
49149 _swigc__p_wxMenuEvent,
49150 _swigc__p_wxMenuItem,
49151 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 49152 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
49153 _swigc__p_wxMouseEvent,
49154 _swigc__p_wxMoveEvent,
49155 _swigc__p_wxNavigationKeyEvent,
49156 _swigc__p_wxNcPaintEvent,
49157 _swigc__p_wxNotebook,
49158 _swigc__p_wxNotebookEvent,
49159 _swigc__p_wxNotifyEvent,
49160 _swigc__p_wxObject,
49161 _swigc__p_wxPCXHandler,
49162 _swigc__p_wxPNGHandler,
49163 _swigc__p_wxPNMHandler,
49164 _swigc__p_wxPaintEvent,
49165 _swigc__p_wxPaletteChangedEvent,
49166 _swigc__p_wxPaperSize,
b850e7f3 49167 _swigc__p_wxPickerBase,
554f62e9
RD
49168 _swigc__p_wxPoint,
49169 _swigc__p_wxPyApp,
49170 _swigc__p_wxPyCommandEvent,
49171 _swigc__p_wxPyControl,
49172 _swigc__p_wxPyEvent,
49173 _swigc__p_wxPyImageHandler,
49174 _swigc__p_wxPyListCtrl,
49175 _swigc__p_wxPySizer,
49176 _swigc__p_wxPyTreeCtrl,
49177 _swigc__p_wxPyTreeItemData,
49178 _swigc__p_wxPyValidator,
49179 _swigc__p_wxQueryNewPaletteEvent,
49180 _swigc__p_wxRadioBox,
49181 _swigc__p_wxRadioButton,
49182 _swigc__p_wxRect,
49183 _swigc__p_wxScrollBar,
49184 _swigc__p_wxScrollEvent,
49185 _swigc__p_wxScrollWinEvent,
49186 _swigc__p_wxSetCursorEvent,
49187 _swigc__p_wxShowEvent,
49188 _swigc__p_wxSimpleHelpProvider,
49189 _swigc__p_wxSize,
49190 _swigc__p_wxSizeEvent,
49191 _swigc__p_wxSizer,
49192 _swigc__p_wxSizerItem,
49193 _swigc__p_wxSlider,
49194 _swigc__p_wxSpinButton,
49195 _swigc__p_wxSpinCtrl,
49196 _swigc__p_wxSpinEvent,
49197 _swigc__p_wxStaticBitmap,
49198 _swigc__p_wxStaticBox,
49199 _swigc__p_wxStaticBoxSizer,
49200 _swigc__p_wxStaticLine,
49201 _swigc__p_wxStaticText,
49202 _swigc__p_wxStdDialogButtonSizer,
49203 _swigc__p_wxString,
49204 _swigc__p_wxSysColourChangedEvent,
580080c5 49205 _swigc__p_wxTGAHandler,
554f62e9
RD
49206 _swigc__p_wxTIFFHandler,
49207 _swigc__p_wxTextAttr,
49208 _swigc__p_wxTextCtrl,
49209 _swigc__p_wxTextUrlEvent,
49210 _swigc__p_wxToggleButton,
49211 _swigc__p_wxToolBar,
49212 _swigc__p_wxToolBarBase,
49213 _swigc__p_wxToolBarToolBase,
49214 _swigc__p_wxToolbook,
49215 _swigc__p_wxToolbookEvent,
554f62e9
RD
49216 _swigc__p_wxTreeEvent,
49217 _swigc__p_wxTreeItemId,
49218 _swigc__p_wxTreebook,
49219 _swigc__p_wxTreebookEvent,
49220 _swigc__p_wxUpdateUIEvent,
49221 _swigc__p_wxValidator,
49222 _swigc__p_wxVisualAttributes,
49223 _swigc__p_wxWindow,
b850e7f3 49224 _swigc__p_wxWindowBase,
554f62e9
RD
49225 _swigc__p_wxWindowCreateEvent,
49226 _swigc__p_wxWindowDestroyEvent,
49227 _swigc__p_wxXPMHandler,
49228};
49229
49230
49231/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49232
49233static swig_const_info swig_const_table[] = {
49234{0, 0, 0, 0.0, 0, 0}};
49235
49236#ifdef __cplusplus
49237}
49238#endif
49239/* -----------------------------------------------------------------------------
49240 * Type initialization:
49241 * This problem is tough by the requirement that no dynamic
49242 * memory is used. Also, since swig_type_info structures store pointers to
49243 * swig_cast_info structures and swig_cast_info structures store pointers back
49244 * to swig_type_info structures, we need some lookup code at initialization.
49245 * The idea is that swig generates all the structures that are needed.
49246 * The runtime then collects these partially filled structures.
49247 * The SWIG_InitializeModule function takes these initial arrays out of
49248 * swig_module, and does all the lookup, filling in the swig_module.types
49249 * array with the correct data and linking the correct swig_cast_info
49250 * structures together.
49251 *
49252 * The generated swig_type_info structures are assigned staticly to an initial
49253 * array. We just loop though that array, and handle each type individually.
49254 * First we lookup if this type has been already loaded, and if so, use the
49255 * loaded structure instead of the generated one. Then we have to fill in the
49256 * cast linked list. The cast data is initially stored in something like a
49257 * two-dimensional array. Each row corresponds to a type (there are the same
49258 * number of rows as there are in the swig_type_initial array). Each entry in
49259 * a column is one of the swig_cast_info structures for that type.
49260 * The cast_initial array is actually an array of arrays, because each row has
49261 * a variable number of columns. So to actually build the cast linked list,
49262 * we find the array of casts associated with the type, and loop through it
49263 * adding the casts to the list. The one last trick we need to do is making
49264 * sure the type pointer in the swig_cast_info struct is correct.
49265 *
49266 * First off, we lookup the cast->type name to see if it is already loaded.
49267 * There are three cases to handle:
49268 * 1) If the cast->type has already been loaded AND the type we are adding
49269 * casting info to has not been loaded (it is in this module), THEN we
49270 * replace the cast->type pointer with the type pointer that has already
49271 * been loaded.
49272 * 2) If BOTH types (the one we are adding casting info to, and the
49273 * cast->type) are loaded, THEN the cast info has already been loaded by
49274 * the previous module so we just ignore it.
49275 * 3) Finally, if cast->type has not already been loaded, then we add that
49276 * swig_cast_info to the linked list (because the cast->type) pointer will
49277 * be correct.
49278 * ----------------------------------------------------------------------------- */
49279
49280#ifdef __cplusplus
49281extern "C" {
49282#if 0
49283} /* c-mode */
49284#endif
49285#endif
49286
49287#if 0
49288#define SWIGRUNTIME_DEBUG
49289#endif
49290
49291SWIGRUNTIME void
49292SWIG_InitializeModule(void *clientdata) {
49293 size_t i;
49294 swig_module_info *module_head;
49295 static int init_run = 0;
49296
49297 clientdata = clientdata;
49298
49299 if (init_run) return;
49300 init_run = 1;
49301
49302 /* Initialize the swig_module */
49303 swig_module.type_initial = swig_type_initial;
49304 swig_module.cast_initial = swig_cast_initial;
49305
49306 /* Try and load any already created modules */
49307 module_head = SWIG_GetModule(clientdata);
49308 if (module_head) {
49309 swig_module.next = module_head->next;
49310 module_head->next = &swig_module;
49311 } else {
49312 /* This is the first module loaded */
49313 swig_module.next = &swig_module;
49314 SWIG_SetModule(clientdata, &swig_module);
49315 }
49316
49317 /* Now work on filling in swig_module.types */
49318#ifdef SWIGRUNTIME_DEBUG
49319 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49320#endif
49321 for (i = 0; i < swig_module.size; ++i) {
49322 swig_type_info *type = 0;
49323 swig_type_info *ret;
49324 swig_cast_info *cast;
d55e5bfc 49325
554f62e9
RD
49326#ifdef SWIGRUNTIME_DEBUG
49327 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49328#endif
d55e5bfc 49329
554f62e9
RD
49330 /* if there is another module already loaded */
49331 if (swig_module.next != &swig_module) {
49332 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 49333 }
554f62e9
RD
49334 if (type) {
49335 /* Overwrite clientdata field */
49336#ifdef SWIGRUNTIME_DEBUG
49337 printf("SWIG_InitializeModule: found type %s\n", type->name);
49338#endif
49339 if (swig_module.type_initial[i]->clientdata) {
49340 type->clientdata = swig_module.type_initial[i]->clientdata;
49341#ifdef SWIGRUNTIME_DEBUG
49342 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49343#endif
49344 }
49345 } else {
49346 type = swig_module.type_initial[i];
093d3ff1 49347 }
d55e5bfc 49348
554f62e9
RD
49349 /* Insert casting types */
49350 cast = swig_module.cast_initial[i];
49351 while (cast->type) {
49352 /* Don't need to add information already in the list */
49353 ret = 0;
49354#ifdef SWIGRUNTIME_DEBUG
49355 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49356#endif
49357 if (swig_module.next != &swig_module) {
49358 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49359#ifdef SWIGRUNTIME_DEBUG
49360 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49361#endif
49362 }
49363 if (ret) {
49364 if (type == swig_module.type_initial[i]) {
49365#ifdef SWIGRUNTIME_DEBUG
49366 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49367#endif
49368 cast->type = ret;
49369 ret = 0;
49370 } else {
49371 /* Check for casting already in the list */
49372 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49373#ifdef SWIGRUNTIME_DEBUG
49374 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49375#endif
49376 if (!ocast) ret = 0;
49377 }
49378 }
49379
49380 if (!ret) {
49381#ifdef SWIGRUNTIME_DEBUG
49382 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49383#endif
49384 if (type->cast) {
49385 type->cast->prev = cast;
49386 cast->next = type->cast;
49387 }
49388 type->cast = cast;
49389 }
49390 cast++;
093d3ff1 49391 }
554f62e9
RD
49392 /* Set entry in modules->types array equal to the type */
49393 swig_module.types[i] = type;
49394 }
49395 swig_module.types[i] = 0;
49396
49397#ifdef SWIGRUNTIME_DEBUG
49398 printf("**** SWIG_InitializeModule: Cast List ******\n");
49399 for (i = 0; i < swig_module.size; ++i) {
49400 int j = 0;
49401 swig_cast_info *cast = swig_module.cast_initial[i];
49402 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49403 while (cast->type) {
49404 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49405 cast++;
49406 ++j;
49407 }
49408 printf("---- Total casts: %d\n",j);
49409 }
49410 printf("**** SWIG_InitializeModule: Cast List ******\n");
49411#endif
49412}
49413
49414/* This function will propagate the clientdata field of type to
49415* any new swig_type_info structures that have been added into the list
49416* of equivalent types. It is like calling
49417* SWIG_TypeClientData(type, clientdata) a second time.
49418*/
49419SWIGRUNTIME void
49420SWIG_PropagateClientData(void) {
49421 size_t i;
49422 swig_cast_info *equiv;
49423 static int init_run = 0;
49424
49425 if (init_run) return;
49426 init_run = 1;
49427
49428 for (i = 0; i < swig_module.size; i++) {
49429 if (swig_module.types[i]->clientdata) {
49430 equiv = swig_module.types[i]->cast;
49431 while (equiv) {
49432 if (!equiv->converter) {
49433 if (equiv->type && !equiv->type->clientdata)
49434 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49435 }
49436 equiv = equiv->next;
49437 }
093d3ff1 49438 }
554f62e9
RD
49439 }
49440}
49441
49442#ifdef __cplusplus
49443#if 0
49444{
49445 /* c-mode */
49446#endif
49447}
49448#endif
49449
49450
49451
49452#ifdef __cplusplus
49453extern "C" {
49454#endif
49455
49456 /* Python-specific SWIG API */
49457#define SWIG_newvarlink() SWIG_Python_newvarlink()
49458#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49459#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49460
49461 /* -----------------------------------------------------------------------------
49462 * global variable support code.
49463 * ----------------------------------------------------------------------------- */
49464
49465 typedef struct swig_globalvar {
49466 char *name; /* Name of global variable */
49467 PyObject *(*get_attr)(void); /* Return the current value */
49468 int (*set_attr)(PyObject *); /* Set the value */
49469 struct swig_globalvar *next;
49470 } swig_globalvar;
49471
49472 typedef struct swig_varlinkobject {
49473 PyObject_HEAD
49474 swig_globalvar *vars;
49475 } swig_varlinkobject;
49476
49477 SWIGINTERN PyObject *
49478 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49479 return PyString_FromString("<Swig global variables>");
49480 }
49481
49482 SWIGINTERN PyObject *
49483 swig_varlink_str(swig_varlinkobject *v) {
49484 PyObject *str = PyString_FromString("(");
49485 swig_globalvar *var;
49486 for (var = v->vars; var; var=var->next) {
49487 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49488 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49489 }
49490 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49491 return str;
49492 }
49493
49494 SWIGINTERN int
49495 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49496 PyObject *str = swig_varlink_str(v);
49497 fprintf(fp,"Swig global variables ");
49498 fprintf(fp,"%s\n", PyString_AsString(str));
49499 Py_DECREF(str);
49500 return 0;
49501 }
49502
49503 SWIGINTERN void
49504 swig_varlink_dealloc(swig_varlinkobject *v) {
49505 swig_globalvar *var = v->vars;
49506 while (var) {
49507 swig_globalvar *n = var->next;
49508 free(var->name);
49509 free(var);
49510 var = n;
093d3ff1 49511 }
554f62e9
RD
49512 }
49513
49514 SWIGINTERN PyObject *
49515 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49516 PyObject *res = NULL;
49517 swig_globalvar *var = v->vars;
49518 while (var) {
49519 if (strcmp(var->name,n) == 0) {
49520 res = (*var->get_attr)();
49521 break;
49522 }
49523 var = var->next;
093d3ff1 49524 }
554f62e9
RD
49525 if (res == NULL && !PyErr_Occurred()) {
49526 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 49527 }
554f62e9
RD
49528 return res;
49529 }
49530
49531 SWIGINTERN int
49532 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49533 int res = 1;
49534 swig_globalvar *var = v->vars;
49535 while (var) {
49536 if (strcmp(var->name,n) == 0) {
49537 res = (*var->set_attr)(p);
49538 break;
49539 }
49540 var = var->next;
093d3ff1 49541 }
554f62e9
RD
49542 if (res == 1 && !PyErr_Occurred()) {
49543 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 49544 }
554f62e9
RD
49545 return res;
49546 }
49547
49548 SWIGINTERN PyTypeObject*
49549 swig_varlink_type(void) {
49550 static char varlink__doc__[] = "Swig var link object";
49551 static PyTypeObject varlink_type;
49552 static int type_init = 0;
49553 if (!type_init) {
49554 const PyTypeObject tmp
49555 = {
49556 PyObject_HEAD_INIT(NULL)
49557 0, /* Number of items in variable part (ob_size) */
49558 (char *)"swigvarlink", /* Type name (tp_name) */
49559 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49560 0, /* Itemsize (tp_itemsize) */
49561 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49562 (printfunc) swig_varlink_print, /* Print (tp_print) */
49563 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49564 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49565 0, /* tp_compare */
49566 (reprfunc) swig_varlink_repr, /* tp_repr */
49567 0, /* tp_as_number */
49568 0, /* tp_as_sequence */
49569 0, /* tp_as_mapping */
49570 0, /* tp_hash */
49571 0, /* tp_call */
49572 (reprfunc)swig_varlink_str, /* tp_str */
49573 0, /* tp_getattro */
49574 0, /* tp_setattro */
49575 0, /* tp_as_buffer */
49576 0, /* tp_flags */
49577 varlink__doc__, /* tp_doc */
49578 0, /* tp_traverse */
49579 0, /* tp_clear */
49580 0, /* tp_richcompare */
49581 0, /* tp_weaklistoffset */
49582#if PY_VERSION_HEX >= 0x02020000
49583 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49584#endif
49585#if PY_VERSION_HEX >= 0x02030000
49586 0, /* tp_del */
49587#endif
49588#ifdef COUNT_ALLOCS
49589 0,0,0,0 /* tp_alloc -> tp_next */
49590#endif
49591 };
49592 varlink_type = tmp;
49593 varlink_type.ob_type = &PyType_Type;
49594 type_init = 1;
53aa7709 49595 }
554f62e9
RD
49596 return &varlink_type;
49597 }
49598
49599 /* Create a variable linking object for use later */
49600 SWIGINTERN PyObject *
49601 SWIG_Python_newvarlink(void) {
49602 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49603 if (result) {
49604 result->vars = 0;
49605 }
49606 return ((PyObject*) result);
49607 }
49608
49609 SWIGINTERN void
49610 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49611 swig_varlinkobject *v = (swig_varlinkobject *) p;
49612 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49613 if (gv) {
49614 size_t size = strlen(name)+1;
49615 gv->name = (char *)malloc(size);
49616 if (gv->name) {
49617 strncpy(gv->name,name,size);
49618 gv->get_attr = get_attr;
49619 gv->set_attr = set_attr;
49620 gv->next = v->vars;
49621 }
53aa7709 49622 }
554f62e9
RD
49623 v->vars = gv;
49624 }
49625
49626 SWIGINTERN PyObject *
49627 SWIG_globals() {
49628 static PyObject *_SWIG_globals = 0;
49629 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49630 return _SWIG_globals;
49631 }
49632
49633 /* -----------------------------------------------------------------------------
49634 * constants/methods manipulation
49635 * ----------------------------------------------------------------------------- */
49636
49637 /* Install Constants */
49638 SWIGINTERN void
49639 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49640 PyObject *obj = 0;
49641 size_t i;
49642 for (i = 0; constants[i].type; ++i) {
49643 switch(constants[i].type) {
49644 case SWIG_PY_POINTER:
49645 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49646 break;
49647 case SWIG_PY_BINARY:
49648 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49649 break;
49650 default:
49651 obj = 0;
49652 break;
49653 }
49654 if (obj) {
49655 PyDict_SetItemString(d, constants[i].name, obj);
49656 Py_DECREF(obj);
49657 }
53aa7709 49658 }
554f62e9
RD
49659 }
49660
49661 /* -----------------------------------------------------------------------------*/
49662 /* Fix SwigMethods to carry the callback ptrs when needed */
49663 /* -----------------------------------------------------------------------------*/
49664
49665 SWIGINTERN void
49666 SWIG_Python_FixMethods(PyMethodDef *methods,
49667 swig_const_info *const_table,
49668 swig_type_info **types,
49669 swig_type_info **types_initial) {
49670 size_t i;
49671 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 49672 const char *c = methods[i].ml_doc;
554f62e9
RD
49673 if (c && (c = strstr(c, "swig_ptr: "))) {
49674 int j;
49675 swig_const_info *ci = 0;
453fb36b 49676 const char *name = c + 10;
554f62e9
RD
49677 for (j = 0; const_table[j].type; ++j) {
49678 if (strncmp(const_table[j].name, name,
49679 strlen(const_table[j].name)) == 0) {
49680 ci = &(const_table[j]);
49681 break;
49682 }
49683 }
49684 if (ci) {
49685 size_t shift = (ci->ptype) - types;
49686 swig_type_info *ty = types_initial[shift];
49687 size_t ldoc = (c - methods[i].ml_doc);
49688 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49689 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49690 if (ndoc) {
49691 char *buff = ndoc;
49692 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49693 if (ptr) {
49694 strncpy(buff, methods[i].ml_doc, ldoc);
49695 buff += ldoc;
49696 strncpy(buff, "swig_ptr: ", 10);
49697 buff += 10;
49698 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49699 methods[i].ml_doc = ndoc;
49700 }
49701 }
49702 }
49703 }
53aa7709 49704 }
554f62e9
RD
49705 }
49706
49707#ifdef __cplusplus
49708}
49709#endif
49710
49711/* -----------------------------------------------------------------------------*
49712 * Partial Init method
49713 * -----------------------------------------------------------------------------*/
49714
49715#ifdef __cplusplus
49716extern "C"
49717#endif
49718SWIGEXPORT void SWIG_init(void) {
49719 PyObject *m, *d;
49720
49721 /* Fix SwigMethods to carry the callback ptrs when needed */
49722 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49723
49724 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49725 d = PyModule_GetDict(m);
49726
49727 SWIG_InitializeModule(0);
49728 SWIG_InstallConstants(d,swig_const_table);
49729
49730
49731 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49732 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49733 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49734 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49735 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49736 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49737 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49738 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49739 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49740 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49741 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49742 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49743 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49744 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49745 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49746 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49747 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49748 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49749 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49750 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49751 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49752 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
554f62e9
RD
49753 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49754 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49755 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49756 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49757 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49758 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49759 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49760 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49761 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49762 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49763 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49764 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49765 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49766 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49767 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49768 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49769 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49770 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49771 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49772 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49773 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49774 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49775 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
554f62e9
RD
49776 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49777 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49778 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49779 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49780 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49781 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49782 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49783 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49784 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49785 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49786 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49787 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49788 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49789 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49790 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49791 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49792 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49793 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49794 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49795 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49796 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49797 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49798 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49799 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49800 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49801 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49802 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 49803 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
554f62e9
RD
49804 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49805 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49806 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49807 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49808 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49809 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49810 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49811 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49812 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49813 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49814 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49815 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49816 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49817 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49818 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49819 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49820 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49821 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49822 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49823 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49824 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49825 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49826 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49827 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49828 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49829 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49830 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49831 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49832 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49833 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49834 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49835 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49836 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49837 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49838 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49839 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 49840 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
49841 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49842 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49843 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49844 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49845 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
554f62e9
RD
49846 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49847 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49848 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49849 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49850 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49851 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49852 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49853 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49854 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49855 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49856 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 49857 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
554f62e9
RD
49858 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49859 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49860 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49861 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49862 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49863 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49864 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49865 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49866 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49867 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49868 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49869 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49870 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49871 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49872 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49873 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49874 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49875 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49876 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49877 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49878 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49879 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49880 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49881 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49882 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49883 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49884 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49885 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49886 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
49887 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
49888 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
49889 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
49890 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
554f62e9
RD
49891 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49892 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49893 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49894 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49895 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49896 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49897 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49898 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49899 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 49900 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
554f62e9
RD
49901 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49902 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49903 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49904 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49905 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49906 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49907 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49908 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49909 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49910 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49911 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49912 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49913 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49914 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49915 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49916 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49917 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49918 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49919 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49920 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49921 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49922 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49923 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49924 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49925 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49926 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49927 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49928 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49929 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49930 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49931 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49932 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49933 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49934 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49935 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49936 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49937 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49938 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49939 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49940 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49941 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49942 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49943 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49944 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49945 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49946 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49947 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 49948 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
554f62e9
RD
49949 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49950 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49951 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49952 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49953 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49954 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49955 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49956 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49957 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49958 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49959 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49960 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49961 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49962 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49963 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49964 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49965 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49966 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49967 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49968 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49969 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49970 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49971 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49972 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49973 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49974 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49975 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49976 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49977 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49978 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49979 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49980 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49981 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49982 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49983 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49984 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49985 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49986 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49987 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49988 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49989 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49990 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49991
49992 // Map renamed classes back to their common name for OOR
49993 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49994
49995 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49996 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49997 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49998 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49999 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50000 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50001 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50002 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50003 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50004 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50005 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50006 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50007 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50008 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50009 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
554f62e9
RD
50010 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50011 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50012 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50013 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50014 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50015 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50016 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50017 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50018 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50019 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50020 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50021 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50022 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50023 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50024 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50025 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50026 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50027 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50028 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50029 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50030 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50031 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50032 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50033 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50034 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50035 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50036 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50037 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50038 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50039 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50040 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50041 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50042 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50043 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50044 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50045 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50046 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50047 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50048 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50049 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 50050 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
554f62e9
RD
50051
50052 // Map renamed classes back to their common name for OOR
50053 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50054 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50055
50056 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50057 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50058 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50059 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50060 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50061 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
554f62e9
RD
50062 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50063 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
50064 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50065 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50066 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
554f62e9
RD
50067
50068 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50069
50070 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50071 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50072 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50073 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50074 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50075 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
50076 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50077 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
50078 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50079 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50080 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
50081 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50082 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
50083 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50084 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50085 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50086 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50087 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50088 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50089 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50090 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50091 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50092 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50093 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50094 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50095 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50096 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50097 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50098 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50099 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50100 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50101 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50102 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50103 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50104 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50105 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50106 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50107 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50108 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50109 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50110 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50111 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50112 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
50113 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50114 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50115 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50116 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
d55e5bfc
RD
50117}
50118