]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_controls_wrap.cpp
Changes needed for building with Python 2.5
[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
554f62e9
RD
988/* for raw pointers */
989#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995#define swig_owntype int
d55e5bfc 996
554f62e9
RD
997/* for raw packed data */
998#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1000
554f62e9
RD
1001/* for class or struct pointers */
1002#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1004
554f62e9
RD
1005/* for C or C++ function pointers */
1006#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1008
554f62e9
RD
1009/* for C++ member pointers, ie, member methods */
1010#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
7449af73 1012
d55e5bfc 1013
554f62e9 1014/* Runtime API */
d55e5bfc 1015
554f62e9
RD
1016#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
7449af73 1019
554f62e9
RD
1020#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024#define SWIG_fail goto fail
7449af73 1025
d55e5bfc 1026
554f62e9 1027/* Runtime API implementation */
093d3ff1 1028
554f62e9 1029/* Error manipulation */
093d3ff1 1030
554f62e9
RD
1031SWIGINTERN void
1032SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1037}
1038
554f62e9
RD
1039SWIGINTERN void
1040SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
093d3ff1 1044}
d55e5bfc 1045
554f62e9 1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1047
554f62e9 1048/* Set a constant value */
093d3ff1 1049
554f62e9
RD
1050SWIGINTERN void
1051SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
d55e5bfc
RD
1054}
1055
554f62e9 1056/* Append a value to the result obj */
d55e5bfc 1057
554f62e9
RD
1058SWIGINTERN PyObject*
1059SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076#else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
c32bde28 1084 } else {
554f62e9
RD
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
c32bde28 1096 }
554f62e9
RD
1097 return result;
1098#endif
d55e5bfc 1099}
093d3ff1 1100
554f62e9 1101/* Unpack the argument tuple */
093d3ff1 1102
554f62e9
RD
1103SWIGINTERN int
1104SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105{
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139}
1140
1141/* A functor is a function object with one single object argument */
1142#if PY_VERSION_HEX >= 0x02020000
1143#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144#else
1145#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146#endif
1147
1148/*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151*/
1152#ifdef __cplusplus
1153#define SWIG_STATIC_POINTER(var) var
1154#else
1155#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156#endif
1157
1158/* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162/* Flags for new pointer objects */
1163#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168#ifdef __cplusplus
1169extern "C" {
1170#if 0
1171} /* cc-mode */
1172#endif
1173#endif
1174
1175/* How to access Py_None */
1176#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177# ifndef SWIG_PYTHON_NO_BUILD_NONE
1178# ifndef SWIG_PYTHON_BUILD_NONE
1179# define SWIG_PYTHON_BUILD_NONE
1180# endif
1181# endif
1182#endif
1183
1184#ifdef SWIG_PYTHON_BUILD_NONE
1185# ifdef Py_None
1186# undef Py_None
1187# define Py_None SWIG_Py_None()
1188# endif
1189SWIGRUNTIMEINLINE PyObject *
1190_SWIG_Py_None(void)
1191{
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195}
1196SWIGRUNTIME PyObject *
1197SWIG_Py_None(void)
1198{
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201}
1202#endif
1203
1204/* The python void return value */
1205
1206SWIGRUNTIMEINLINE PyObject *
1207SWIG_Py_Void(void)
1208{
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212}
1213
1214/* PySwigClientData */
1215
1216typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223} PySwigClientData;
1224
1225SWIGRUNTIMEINLINE int
1226SWIG_Python_CheckImplicit(swig_type_info *ty)
1227{
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230}
1231
1232SWIGRUNTIMEINLINE PyObject *
1233SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237}
1238
1239
1240SWIGRUNTIME PySwigClientData *
1241PySwigClientData_New(PyObject* obj)
1242{
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256#if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258#else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260#endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280#ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282#else
1283 data->delargs = 0;
1284#endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291}
1292
1293SWIGRUNTIME void
1294PySwigClientData_Del(PySwigClientData* data)
1295{
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299}
1300
1301/* =============== PySwigObject =====================*/
1302
1303typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309} PySwigObject;
1310
1311SWIGRUNTIME PyObject *
1312PySwigObject_long(PySwigObject *v)
1313{
1314 return PyLong_FromVoidPtr(v->ptr);
1315}
1316
1317SWIGRUNTIME PyObject *
1318PySwigObject_format(const char* fmt, PySwigObject *v)
1319{
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333}
1334
1335SWIGRUNTIME PyObject *
1336PySwigObject_oct(PySwigObject *v)
1337{
1338 return PySwigObject_format("%o",v);
1339}
1340
1341SWIGRUNTIME PyObject *
1342PySwigObject_hex(PySwigObject *v)
1343{
1344 return PySwigObject_format("%x",v);
1345}
1346
1347SWIGRUNTIME PyObject *
1348#ifdef METH_NOARGS
1349PySwigObject_repr(PySwigObject *v)
1350#else
1351PySwigObject_repr(PySwigObject *v, PyObject *args)
1352#endif
1353{
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359#ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361#else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363#endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367}
1368
1369SWIGRUNTIME int
1370PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371{
1372#ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374#else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376#endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384}
1385
1386SWIGRUNTIME PyObject *
1387PySwigObject_str(PySwigObject *v)
1388{
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392}
1393
1394SWIGRUNTIME int
1395PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396{
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400}
1401
1402SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404SWIGRUNTIME PyTypeObject*
1405PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408}
1409
1410SWIGRUNTIMEINLINE int
1411PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414}
1415
1416SWIGRUNTIME PyObject *
1417PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419SWIGRUNTIME void
1420PySwigObject_dealloc(PyObject *v)
1421{
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446#endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451}
1452
1453SWIGRUNTIME PyObject*
1454PySwigObject_append(PyObject* v, PyObject* next)
1455{
1456 PySwigObject *sobj = (PySwigObject *) v;
1457#ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461#endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468}
1469
1470SWIGRUNTIME PyObject*
1471#ifdef METH_NOARGS
1472PySwigObject_next(PyObject* v)
1473#else
1474PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475#endif
1476{
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484}
1485
1486SWIGINTERN PyObject*
1487#ifdef METH_NOARGS
1488PySwigObject_disown(PyObject *v)
1489#else
1490PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491#endif
1492{
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496}
1497
1498SWIGINTERN PyObject*
1499#ifdef METH_NOARGS
1500PySwigObject_acquire(PyObject *v)
1501#else
1502PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503#endif
1504{
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508}
1509
1510SWIGINTERN PyObject*
1511PySwigObject_own(PyObject *v, PyObject *args)
1512{
1513 PyObject *val = 0;
1514#if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516#else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518#endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527#ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533#else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539#endif
1540 }
1541 return obj;
1542 }
1543}
1544
1545#ifdef METH_O
1546static PyMethodDef
1547swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555};
1556#else
1557static PyMethodDef
1558swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566};
1567#endif
1568
1569#if PY_VERSION_HEX < 0x02020000
1570SWIGINTERN PyObject *
1571PySwigObject_getattr(PySwigObject *sobj,char *name)
1572{
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574}
1575#endif
1576
1577SWIGRUNTIME PyTypeObject*
1578_PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
7449af73 1605#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
RD
1607#elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1609#endif
1610 };
1611
554f62e9 1612 static PyTypeObject pyswigobject_type;
7449af73 1613 static int type_init = 0;
093d3ff1 1614 if (!type_init) {
554f62e9
RD
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624#if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626#else
1627 (getattrfunc)0, /* tp_getattr */
093d3ff1 1628#endif
554f62e9
RD
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
093d3ff1 1647#if PY_VERSION_HEX >= 0x02020000
554f62e9
RD
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
d55e5bfc 1668#endif
093d3ff1 1669#if PY_VERSION_HEX >= 0x02030000
554f62e9 1670 0, /* tp_del */
093d3ff1
RD
1671#endif
1672#ifdef COUNT_ALLOCS
554f62e9 1673 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1674#endif
554f62e9 1675 };
7449af73 1676 pyswigobject_type = tmp;
554f62e9 1677 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1678 type_init = 1;
1679 }
7449af73 1680 return &pyswigobject_type;
093d3ff1
RD
1681}
1682
1683SWIGRUNTIME PyObject *
554f62e9 1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1685{
554f62e9
RD
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
7449af73 1692 }
554f62e9 1693 return (PyObject *)sobj;
093d3ff1
RD
1694}
1695
1696/* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700typedef struct {
1701 PyObject_HEAD
1702 void *pack;
554f62e9 1703 swig_type_info *ty;
093d3ff1
RD
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
554f62e9 1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1709{
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
554f62e9 1716 fputs(v->ty->name,fp);
093d3ff1
RD
1717 fputs(">", fp);
1718 return 0;
1719}
9d7dfdff 1720
093d3ff1
RD
1721SWIGRUNTIME PyObject *
1722PySwigPacked_repr(PySwigPacked *v)
1723{
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1727 } else {
554f62e9 1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1729 }
1730}
1731
1732SWIGRUNTIME PyObject *
1733PySwigPacked_str(PySwigPacked *v)
1734{
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1737 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1738 } else {
554f62e9 1739 return PyString_FromString(v->ty->name);
093d3ff1
RD
1740 }
1741}
1742
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745{
554f62e9
RD
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1
RD
1750}
1751
554f62e9 1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1753
1754SWIGRUNTIME PyTypeObject*
7449af73 1755PySwigPacked_type(void) {
554f62e9
RD
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758}
1759
1760SWIGRUNTIMEINLINE int
1761PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764}
1765
1766SWIGRUNTIME void
1767PySwigPacked_dealloc(PyObject *v)
1768{
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774}
1775
1776SWIGRUNTIME PyTypeObject*
1777_PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810#if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
093d3ff1
RD
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
554f62e9 1833 0, /* tp_del */
093d3ff1
RD
1834#endif
1835#ifdef COUNT_ALLOCS
554f62e9 1836 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1837#endif
554f62e9 1838 };
7449af73 1839 pyswigpacked_type = tmp;
554f62e9 1840 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1841 type_init = 1;
1842 }
7449af73 1843 return &pyswigpacked_type;
093d3ff1
RD
1844}
1845
1846SWIGRUNTIME PyObject *
554f62e9 1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1848{
554f62e9
RD
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
093d3ff1 1851 void *pack = malloc(size);
7449af73
RD
1852 if (pack) {
1853 memcpy(pack, ptr, size);
554f62e9
RD
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
7449af73 1860 }
093d3ff1 1861 }
554f62e9 1862 return (PyObject *) sobj;
093d3ff1
RD
1863}
1864
554f62e9 1865SWIGRUNTIME swig_type_info *
093d3ff1
RD
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
554f62e9
RD
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
093d3ff1
RD
1876}
1877
093d3ff1 1878/* -----------------------------------------------------------------------------
554f62e9 1879 * pointers/data manipulation
093d3ff1
RD
1880 * ----------------------------------------------------------------------------- */
1881
554f62e9
RD
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
093d3ff1 1887
554f62e9
RD
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
093d3ff1 1894
554f62e9 1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1896
554f62e9
RD
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1899{
554f62e9
RD
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913#ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918#endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
093d3ff1 1922 } else {
554f62e9
RD
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
093d3ff1 1925 }
093d3ff1 1926 }
554f62e9
RD
1927 }
1928#else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936#endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
093d3ff1
RD
1943 }
1944}
1945
554f62e9
RD
1946/* Acquire a pointer value */
1947
1948SWIGRUNTIME int
1949SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
093d3ff1 1957 }
554f62e9 1958 return 0;
093d3ff1
RD
1959}
1960
554f62e9
RD
1961/* Convert a pointer value */
1962
093d3ff1 1963SWIGRUNTIME int
554f62e9
RD
1964SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
093d3ff1 1988 } else {
554f62e9
RD
1989 if (ptr) *ptr = vptr;
1990 break;
093d3ff1 1991 }
093d3ff1 1992 }
554f62e9
RD
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
093d3ff1
RD
2038 }
2039}
2040
554f62e9
RD
2041/* Convert a function ptr value */
2042
093d3ff1 2043SWIGRUNTIME int
554f62e9
RD
2044SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2047 } else {
554f62e9
RD
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
093d3ff1
RD
2065 }
2066}
2067
554f62e9 2068/* Convert a packed value value */
093d3ff1 2069
093d3ff1 2070SWIGRUNTIME int
554f62e9
RD
2071SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
093d3ff1 2080 }
554f62e9
RD
2081 return SWIG_OK;
2082}
093d3ff1 2083
554f62e9
RD
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
093d3ff1 2087
554f62e9
RD
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
093d3ff1 2092
554f62e9
RD
2093SWIGRUNTIME PyObject*
2094SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095{
2096#if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
093d3ff1 2111 }
554f62e9
RD
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
093d3ff1 2116 }
554f62e9
RD
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
093d3ff1 2122 }
554f62e9
RD
2123 return inst;
2124#else
2125#if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132#else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
093d3ff1 2136 }
554f62e9
RD
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
093d3ff1 2143 }
554f62e9
RD
2144#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146#endif
2147#ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149#endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152#endif
2153#endif
093d3ff1
RD
2154}
2155
554f62e9
RD
2156SWIGRUNTIME void
2157SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158{
2159 PyObject *dict;
2160#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
093d3ff1 2171#endif
554f62e9
RD
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
093d3ff1 2176
554f62e9
RD
2177
2178SWIGINTERN PyObject *
2179SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2187 } else {
554f62e9 2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2189 }
554f62e9 2190 return SWIG_Py_Void();
093d3ff1 2191 }
554f62e9
RD
2192}
2193
2194/* Create a new pointer object */
093d3ff1 2195
093d3ff1 2196SWIGRUNTIME PyObject *
554f62e9 2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2198 if (!ptr) {
554f62e9
RD
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
093d3ff1 2209 }
093d3ff1 2210 }
554f62e9 2211 return robj;
093d3ff1 2212 }
093d3ff1
RD
2213}
2214
554f62e9
RD
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
093d3ff1 2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2220}
2221
2222/* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226#ifdef SWIG_LINK_RUNTIME
2227void *SWIG_ReturnGlobalTypeList(void *);
2228#endif
2229
7449af73
RD
2230SWIGRUNTIME swig_module_info *
2231SWIG_Python_GetModule(void) {
093d3ff1
RD
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235#ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237#else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
093d3ff1 2244#endif
7449af73
RD
2245 }
2246 return (swig_module_info *) type_pointer;
093d3ff1
RD
2247}
2248
7449af73
RD
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2251 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
RD
2252SWIGINTERN int
2253PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254{
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
554f62e9 2259 return SWIG_ERROR;
7449af73
RD
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
554f62e9 2264 return SWIG_ERROR;
7449af73
RD
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
554f62e9 2272 return SWIG_ERROR;
7449af73
RD
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
554f62e9 2275 return SWIG_ERROR;
7449af73 2276 Py_DECREF(o);
554f62e9 2277 return SWIG_OK;
093d3ff1 2278}
7449af73 2279#endif
093d3ff1 2280
554f62e9
RD
2281SWIGRUNTIME void
2282SWIG_Python_DestroyModule(void *vptr)
2283{
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295}
2296
7449af73
RD
2297SWIGRUNTIME void
2298SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
554f62e9 2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2306 } else {
2307 Py_XDECREF(pointer);
7449af73
RD
2308 }
2309}
093d3ff1 2310
554f62e9
RD
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
093d3ff1 2316}
093d3ff1 2317
554f62e9
RD
2318SWIGRUNTIME swig_type_info *
2319SWIG_Python_TypeQuery(const char *type)
2320{
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338}
2339
2340/*
2341 For backward compatibility only
2342*/
2343#define SWIG_POINTER_EXCEPTION 0
2344#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347SWIGRUNTIME int
2348SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349{
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370}
2371
2372SWIGRUNTIME int
2373SWIG_Python_ArgFail(int argnum)
2374{
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383}
2384
2385SWIGRUNTIMEINLINE const char *
2386PySwigObject_GetDesc(PyObject *self)
2387{
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391}
2392
2393SWIGRUNTIME void
2394SWIG_Python_TypeError(const char *type, PyObject *obj)
2395{
2396 if (type) {
2397#if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406#endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427}
2428
2429
2430/* Convert a pointer value, signal an exception on a type mismatch */
2431SWIGRUNTIME void *
2432SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442}
2443
2444
2445#ifdef __cplusplus
2446#if 0
2447{ /* cc-mode */
2448#endif
2449}
2450#endif
2451
2452
2453
2454#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460/* -------- TYPES TABLE (BEGIN) -------- */
2461
2462#define SWIGTYPE_p_bool swig_types[0]
2463#define SWIGTYPE_p_char swig_types[1]
7449af73
RD
2464#define SWIGTYPE_p_form_ops_t swig_types[2]
2465#define SWIGTYPE_p_int swig_types[3]
2466#define SWIGTYPE_p_long swig_types[4]
2467#define SWIGTYPE_p_unsigned_char swig_types[5]
2468#define SWIGTYPE_p_unsigned_int swig_types[6]
2469#define SWIGTYPE_p_unsigned_long swig_types[7]
2470#define SWIGTYPE_p_void swig_types[8]
2471#define SWIGTYPE_p_wxANIHandler swig_types[9]
2472#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474#define SWIGTYPE_p_wxArrayInt swig_types[12]
2475#define SWIGTYPE_p_wxArrayString swig_types[13]
2476#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477#define SWIGTYPE_p_wxBitmap swig_types[15]
2478#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482#define SWIGTYPE_p_wxButton swig_types[20]
2483#define SWIGTYPE_p_wxCURHandler swig_types[21]
2484#define SWIGTYPE_p_wxCheckBox swig_types[22]
2485#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487#define SWIGTYPE_p_wxChoice swig_types[25]
2488#define SWIGTYPE_p_wxChoicebook swig_types[26]
2489#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2493#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2494#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2495#define SWIGTYPE_p_wxComboBox swig_types[33]
2496#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2497#define SWIGTYPE_p_wxContextHelp swig_types[35]
2498#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2499#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2500#define SWIGTYPE_p_wxControl swig_types[38]
2501#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2502#define SWIGTYPE_p_wxCursor swig_types[40]
2503#define SWIGTYPE_p_wxDC swig_types[41]
2504#define SWIGTYPE_p_wxDateEvent swig_types[42]
2505#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2506#define SWIGTYPE_p_wxDateTime swig_types[44]
2507#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2508#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2509#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2510#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2511#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2512#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2513#define SWIGTYPE_p_wxEvent swig_types[51]
2514#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2515#define SWIGTYPE_p_wxFSFile swig_types[53]
2516#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2517#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2518#define SWIGTYPE_p_wxFileSystem swig_types[56]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2521#define SWIGTYPE_p_wxFont swig_types[59]
2522#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2523#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2525#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2526#define SWIGTYPE_p_wxGauge swig_types[64]
2527#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2528#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2529#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2530#define SWIGTYPE_p_wxGridSizer swig_types[68]
2531#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2532#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2533#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2534#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2535#define SWIGTYPE_p_wxICOHandler swig_types[73]
2536#define SWIGTYPE_p_wxIcon swig_types[74]
2537#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2538#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2539#define SWIGTYPE_p_wxImage swig_types[77]
2540#define SWIGTYPE_p_wxImageHandler swig_types[78]
2541#define SWIGTYPE_p_wxImageList swig_types[79]
2542#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2543#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2544#define SWIGTYPE_p_wxItemContainer swig_types[82]
2545#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2546#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2547#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2548#define SWIGTYPE_p_wxListBox swig_types[86]
2549#define SWIGTYPE_p_wxListEvent swig_types[87]
2550#define SWIGTYPE_p_wxListItem swig_types[88]
2551#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2552#define SWIGTYPE_p_wxListView swig_types[90]
2553#define SWIGTYPE_p_wxListbook swig_types[91]
2554#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2555#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2556#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2557#define SWIGTYPE_p_wxMenu swig_types[95]
2558#define SWIGTYPE_p_wxMenuBar swig_types[96]
2559#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2560#define SWIGTYPE_p_wxMenuItem swig_types[98]
2561#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2562#define SWIGTYPE_p_wxMouseEvent swig_types[100]
2563#define SWIGTYPE_p_wxMoveEvent swig_types[101]
2564#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2565#define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2566#define SWIGTYPE_p_wxNotebook swig_types[104]
2567#define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2568#define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2569#define SWIGTYPE_p_wxObject swig_types[107]
2570#define SWIGTYPE_p_wxPCXHandler swig_types[108]
2571#define SWIGTYPE_p_wxPNGHandler swig_types[109]
2572#define SWIGTYPE_p_wxPNMHandler swig_types[110]
2573#define SWIGTYPE_p_wxPaintEvent swig_types[111]
2574#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2575#define SWIGTYPE_p_wxPaperSize swig_types[113]
2576#define SWIGTYPE_p_wxPickerBase swig_types[114]
2577#define SWIGTYPE_p_wxPoint swig_types[115]
2578#define SWIGTYPE_p_wxPyApp swig_types[116]
2579#define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2580#define SWIGTYPE_p_wxPyControl swig_types[118]
2581#define SWIGTYPE_p_wxPyEvent swig_types[119]
2582#define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2583#define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2584#define SWIGTYPE_p_wxPySizer swig_types[122]
2585#define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2586#define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2587#define SWIGTYPE_p_wxPyValidator swig_types[125]
2588#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2589#define SWIGTYPE_p_wxRadioBox swig_types[127]
2590#define SWIGTYPE_p_wxRadioButton swig_types[128]
2591#define SWIGTYPE_p_wxRect swig_types[129]
2592#define SWIGTYPE_p_wxScrollBar swig_types[130]
2593#define SWIGTYPE_p_wxScrollEvent swig_types[131]
2594#define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2595#define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2596#define SWIGTYPE_p_wxShowEvent swig_types[134]
2597#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2598#define SWIGTYPE_p_wxSize swig_types[136]
2599#define SWIGTYPE_p_wxSizeEvent swig_types[137]
2600#define SWIGTYPE_p_wxSizer swig_types[138]
2601#define SWIGTYPE_p_wxSizerItem swig_types[139]
2602#define SWIGTYPE_p_wxSlider swig_types[140]
2603#define SWIGTYPE_p_wxSpinButton swig_types[141]
2604#define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2605#define SWIGTYPE_p_wxSpinEvent swig_types[143]
2606#define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2607#define SWIGTYPE_p_wxStaticBox swig_types[145]
2608#define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2609#define SWIGTYPE_p_wxStaticLine swig_types[147]
2610#define SWIGTYPE_p_wxStaticText swig_types[148]
2611#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2612#define SWIGTYPE_p_wxString swig_types[150]
2613#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2614#define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2615#define SWIGTYPE_p_wxTextAttr swig_types[153]
2616#define SWIGTYPE_p_wxTextCtrl swig_types[154]
2617#define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2618#define SWIGTYPE_p_wxToggleButton swig_types[156]
2619#define SWIGTYPE_p_wxToolBar swig_types[157]
2620#define SWIGTYPE_p_wxToolBarBase swig_types[158]
2621#define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2622#define SWIGTYPE_p_wxToolbook swig_types[160]
2623#define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2624#define SWIGTYPE_p_wxTreeCtrl swig_types[162]
2625#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2626#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2627#define SWIGTYPE_p_wxTreebook swig_types[165]
2628#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2630#define SWIGTYPE_p_wxValidator swig_types[168]
2631#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2632#define SWIGTYPE_p_wxWindow swig_types[170]
2633#define SWIGTYPE_p_wxWindowBase swig_types[171]
2634#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2637static swig_type_info *swig_types[176];
2638static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
7449af73
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2641
2642/* -------- TYPES TABLE (END) -------- */
2643
554f62e9
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
093d3ff1
RD
2658
2659/*-----------------------------------------------
2660 @(target):= _controls_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_controls_
2663
2664#define SWIG_name "_controls_"
2665
554f62e9
RD
2666#define SWIGVERSION 0x010329
2667
2668
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719}
2720
2721
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733}
2734
2735
093d3ff1
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741 static const wxString wxPyControlNameStr(wxControlNameStr);
2742
2743 const wxArrayString wxPyEmptyStringArray;
2744
2745 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2746
554f62e9 2747 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2748
2749
554f62e9
RD
2750SWIGINTERNINLINE PyObject *
2751SWIG_From_int (int value)
2752{
2753 return SWIG_From_long (value);
2754}
093d3ff1
RD
2755
2756
554f62e9
RD
2757#include <limits.h>
2758#ifndef LLONG_MIN
2759# define LLONG_MIN LONG_LONG_MIN
2760#endif
2761#ifndef LLONG_MAX
2762# define LLONG_MAX LONG_LONG_MAX
2763#endif
2764#ifndef ULLONG_MAX
2765# define ULLONG_MAX ULONG_LONG_MAX
2766#endif
093d3ff1
RD
2767
2768
2769SWIGINTERN int
554f62e9 2770SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2771{
2772 if (PyNumber_Check(obj)) {
2773 if (val) *val = PyInt_AsLong(obj);
554f62e9 2774 return SWIG_OK;
093d3ff1 2775 }
554f62e9 2776 return SWIG_TypeError;
093d3ff1
RD
2777}
2778
2779
093d3ff1 2780SWIGINTERN int
554f62e9
RD
2781SWIG_AsVal_int (PyObject * obj, int *val)
2782{
093d3ff1 2783 long v;
554f62e9
RD
2784 int res = SWIG_AsVal_long (obj, &v);
2785 if (SWIG_IsOK(res)) {
2786 if ((v < INT_MIN || v > INT_MAX)) {
2787 return SWIG_OverflowError;
093d3ff1 2788 } else {
554f62e9 2789 if (val) *val = static_cast< int >(v);
093d3ff1 2790 }
554f62e9
RD
2791 }
2792 return res;
d55e5bfc
RD
2793}
2794
c32bde28 2795 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2796
093d3ff1 2797SWIGINTERN int
554f62e9 2798SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2799{
c32bde28
RD
2800 if (obj == Py_True) {
2801 if (val) *val = true;
554f62e9
RD
2802 return SWIG_OK;
2803 } else if (obj == Py_False) {
c32bde28 2804 if (val) *val = false;
554f62e9 2805 return SWIG_OK;
093d3ff1 2806 } else {
554f62e9
RD
2807 long v = 0;
2808 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2809 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2810 return res;
c32bde28 2811 }
d55e5bfc
RD
2812}
2813
2814 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2815 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2816 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2817 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2818 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2819 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2820
2821#include <wx/checklst.h>
d55e5bfc
RD
2822
2823 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
554f62e9 2824SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2825 if (clientData)
2826 {
d55e5bfc
RD
2827 wxPyClientData* data = new wxPyClientData(clientData);
2828 self->Insert(item, pos, data);
e9d6f3a4
RD
2829 }
2830 else
d55e5bfc
RD
2831 self->Insert(item, pos);
2832 }
50f151d7
RD
2833
2834SWIGINTERN int
2835SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2836{
2837 long v = 0;
2838 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2839 return SWIG_TypeError;
2840 }
2841 else if (val)
2842 *val = (unsigned long)v;
2843 return SWIG_OK;
2844}
2845
2846
2847SWIGINTERN int
2848SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2849{
2850 unsigned long v;
2851 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2852 if (SWIG_IsOK(res)) {
2853 if ((v > UINT_MAX)) {
2854 return SWIG_OverflowError;
2855 } else {
2856 if (val) *val = static_cast< unsigned int >(v);
2857 }
2858 }
2859 return res;
2860}
2861
554f62e9 2862SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2863 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2864 wxArrayInt lst;
2865 self->GetSelections(lst);
2866 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2867 for (size_t i=0; i<lst.GetCount(); i++)
2868 {
7e08d4ef
RD
2869 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2870 }
e9d6f3a4 2871 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2872 return tup;
2873 }
554f62e9 2874SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetTextColour(c);
2878 #endif
2879 }
554f62e9 2880SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2881 #ifdef __WXMSW__
2882 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2883 self->GetItem(item)->SetBackgroundColour(c);
2884 #endif
2885 }
554f62e9 2886SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2887 #ifdef __WXMSW__
2888 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2889 self->GetItem(item)->SetFont(f);
2890 #endif
2891 }
2892 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
554f62e9 2893SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2894 self->AppendText(text);
2895 }
554f62e9 2896SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2897 return self->GetValue().Mid(from, to - from);
2898 }
2899 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2900 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2901 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2902 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2903 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2904
1c71765a
RD
2905SWIGINTERNINLINE PyObject*
2906SWIG_From_unsigned_SS_long (unsigned long value)
2907{
2908 return (value > LONG_MAX) ?
2909 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2910}
2911
2912
2913SWIGINTERNINLINE PyObject *
2914SWIG_From_size_t (size_t value)
2915{
2916 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2917}
2918
2919
50f151d7
RD
2920SWIGINTERNINLINE PyObject *
2921SWIG_From_unsigned_SS_int (unsigned int value)
2922{
2923 return SWIG_From_unsigned_SS_long (value);
2924}
2925
2926
d55e5bfc
RD
2927#include <wx/slider.h>
2928
2929
2930 static const wxString wxPySliderNameStr(wxSliderNameStr);
2931 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2932
2933#if !wxUSE_TOGGLEBTN
2934// implement dummy items for platforms that don't have this class
2935
2936#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2937
2938class wxToggleButton : public wxControl
2939{
2940public:
2941 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2942 const wxPoint&, const wxSize&, long,
2943 const wxValidator&, const wxString&)
2944 { wxPyRaiseNotImplemented(); }
2945
2946 wxToggleButton()
2947 { wxPyRaiseNotImplemented(); }
2948};
2949#endif
2950
51b83b37 2951 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2952
7e08d4ef 2953SWIGINTERNINLINE int
554f62e9 2954SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2955{
7e08d4ef 2956 unsigned long v;
554f62e9
RD
2957 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2958 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2959 return res;
7e08d4ef 2960}
7e08d4ef 2961
d55e5bfc 2962 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
554f62e9 2963SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2964 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2965 if (udata) {
2966 Py_INCREF(udata->m_obj);
2967 return udata->m_obj;
2968 } else {
2969 Py_INCREF(Py_None);
2970 return Py_None;
2971 }
2972 }
554f62e9 2973SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2974 self->SetClientData(new wxPyUserData(clientData));
2975 }
554f62e9 2976SWIGINTERN 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
2977 wxPyUserData* udata = NULL;
2978 if (clientData && clientData != Py_None)
2979 udata = new wxPyUserData(clientData);
2980 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2981 shortHelp, longHelp, udata);
2982 }
554f62e9 2983SWIGINTERN 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
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
554f62e9 2990SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2991 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2992 if (udata) {
2993 Py_INCREF(udata->m_obj);
2994 return udata->m_obj;
2995 } else {
2996 Py_INCREF(Py_None);
2997 return Py_None;
2998 }
2999 }
554f62e9 3000SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3001 self->SetToolClientData(id, new wxPyUserData(clientData));
3002 }
3003
3004#include <wx/listctrl.h>
3005
fef4c27a 3006 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
554f62e9 3007SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3008 // Python aware sorting function for wxPyListCtrl
3009 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3010 int retval = 0;
3011 PyObject* func = (PyObject*)funcPtr;
5a446332 3012 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3013
3014 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3015 PyObject* result = PyEval_CallObject(func, args);
3016 Py_DECREF(args);
3017 if (result) {
3018 retval = PyInt_AsLong(result);
3019 Py_DECREF(result);
3020 }
3021
3022 wxPyEndBlockThreads(blocked);
3023 return retval;
3024 }
3025
3026 // C++ Version of a Python aware class
3027class wxPyListCtrl : public wxListCtrl {
7449af73 3028 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3029public:
3030 wxPyListCtrl() : wxListCtrl() {}
3031 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3032 const wxPoint& pos,
3033 const wxSize& size,
3034 long style,
3035 const wxValidator& validator,
3036 const wxString& name) :
3037 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3038
3039 bool Create(wxWindow* parent, wxWindowID id,
3040 const wxPoint& pos,
3041 const wxSize& size,
3042 long style,
3043 const wxValidator& validator,
3044 const wxString& name) {
3045 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3046 }
3047
3048 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3049 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3050
84f85550
RD
3051 // use the virtual version to avoid a confusing assert in the base class
3052 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3053 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3054
d55e5bfc
RD
3055 PYPRIVATE;
3056};
3057
3058IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3059
3060IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3061IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3062IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3063IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3064
d55e5bfc 3065
554f62e9 3066SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3067 wxListItem item;
3068 item.SetMask( wxLIST_MASK_STATE |
3069 wxLIST_MASK_TEXT |
3070 wxLIST_MASK_IMAGE |
3071 wxLIST_MASK_DATA |
3072 wxLIST_SET_ITEM |
3073 wxLIST_MASK_WIDTH |
3074 wxLIST_MASK_FORMAT
3075 );
3076 if (self->GetColumn(col, item))
3077 return new wxListItem(item);
3078 else
3079 return NULL;
3080 }
554f62e9 3081SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3082 wxListItem* info = new wxListItem;
3083 info->m_itemId = itemId;
3084 info->m_col = col;
3085 info->m_mask = 0xFFFF;
3086 self->GetItem(*info);
3087 return info;
3088 }
554f62e9 3089SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3090 wxPoint pos;
3091 self->GetItemPosition(item, pos);
3092 return pos;
3093 }
554f62e9 3094SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3095 wxRect rect;
3096 self->GetItemRect(item, rect, code);
3097 return rect;
3098 }
554f62e9 3099SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3100 if (!PyCallable_Check(func))
ae8162c8 3101 return false;
d55e5bfc
RD
3102 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3103 }
554f62e9 3104SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3105
3106 return self;
3107
3108
3109
3110 }
3111
3112#include <wx/treectrl.h>
3113#include "wx/wxPython/pytree.h"
3114
3115 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
554f62e9
RD
3116SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3117SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3118SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3119
3120 static wxTreeItemId wxNullTreeItemId;
3121
d55e5bfc
RD
3122 // C++ version of Python aware wxTreeCtrl
3123class wxPyTreeCtrl : public wxTreeCtrl {
7449af73 3124 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3125public:
3126 wxPyTreeCtrl() : wxTreeCtrl() {}
3127 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3128 const wxPoint& pos,
3129 const wxSize& size,
3130 long style,
3131 const wxValidator& validator,
3132 const wxString& name) :
3133 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3134
3135 bool Create(wxWindow *parent, wxWindowID id,
3136 const wxPoint& pos,
3137 const wxSize& size,
3138 long style,
3139 const wxValidator& validator,
3140 const wxString& name) {
3141 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3142 }
3143
3144
3145 int OnCompareItems(const wxTreeItemId& item1,
3146 const wxTreeItemId& item2) {
3147 int rval = 0;
3148 bool found;
5a446332 3149 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3150 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3151 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3152 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3153 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3154 Py_DECREF(o1);
3155 Py_DECREF(o2);
3156 }
3157 wxPyEndBlockThreads(blocked);
3158 if (! found)
3159 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3160 return rval;
3161 }
3162 PYPRIVATE;
3163};
3164
3165IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3166
3167
554f62e9 3168SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3169 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3170 if (data == NULL) {
3171 data = new wxPyTreeItemData();
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
3175 return data;
3176 }
554f62e9 3177SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data->GetData();
3185 }
554f62e9 3186SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3187 data->SetId(item); // set the id
3188 self->SetItemData(item, data);
3189 }
554f62e9 3190SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3191 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3192 if (data == NULL) {
3193 data = new wxPyTreeItemData(obj);
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 } else
3197 data->SetData(obj);
3198 }
554f62e9 3199SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3200 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3201 PyObject* rval = PyList_New(0);
3202 wxArrayTreeItemIds array;
3203 size_t num, x;
3204 num = self->GetSelections(array);
3205 for (x=0; x < num; x++) {
3206 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3207 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3208 PyList_Append(rval, item);
a07a67e6 3209 Py_DECREF(item);
d55e5bfc
RD
3210 }
3211 wxPyEndBlockThreads(blocked);
3212 return rval;
3213 }
554f62e9 3214SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3215 void* cookie = 0;
3216 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3218 PyObject* tup = PyTuple_New(2);
ae8162c8 3219 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3220 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3221 wxPyEndBlockThreads(blocked);
3222 return tup;
3223 }
554f62e9 3224SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3227 PyObject* tup = PyTuple_New(2);
ae8162c8 3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
554f62e9 3233SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3234 wxRect rect;
3235 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3237 wxRect* r = new wxRect(rect);
ae8162c8 3238 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3239 wxPyEndBlockThreads(blocked);
3240 return val;
3241 }
3242 else
3243 RETURN_NONE();
3244 }
3245 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3246
7449af73 3247SWIGINTERNINLINE PyObject*
554f62e9 3248 SWIG_From_bool (bool value)
c32bde28 3249{
554f62e9 3250 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3251}
3252
d55e5bfc
RD
3253 // C++ version of Python aware wxControl
3254class wxPyControl : public wxControl
3255{
3256 DECLARE_DYNAMIC_CLASS(wxPyControl)
3257public:
3258 wxPyControl() : wxControl() {}
3259 wxPyControl(wxWindow* parent, const wxWindowID id,
3260 const wxPoint& pos = wxDefaultPosition,
3261 const wxSize& size = wxDefaultSize,
3262 long style = 0,
3263 const wxValidator& validator=wxDefaultValidator,
3264 const wxString& name = wxPyControlNameStr)
3265 : wxControl(parent, id, pos, size, style, validator, name) {}
3266
caef1a4d 3267 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3268
60d5fcc1
RD
3269 bool DoEraseBackground(wxDC* dc) {
3270#ifdef __WXMSW__
3271 return wxWindow::DoEraseBackground(dc->GetHDC());
3272#else
3273 dc->SetBackground(wxBrush(GetBackgroundColour()));
3274 dc->Clear();
3275 return true;
3276#endif
3277 }
3278
d55e5bfc
RD
3279 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3280 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3281 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3282 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3283
3284 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3285 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3286 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3287
3288 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3289 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3290
3291 DEC_PYCALLBACK__(InitDialog);
3292 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3293 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3294 DEC_PYCALLBACK_BOOL_(Validate);
3295
3296 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3297 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3298 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3299
3300 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3301 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3302
caef1a4d 3303 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
caef1a4d 3304 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3305
51b83b37
RD
3306 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3307
8d38bd1d
RD
3308 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3309
d55e5bfc
RD
3310 PYPRIVATE;
3311};
3312
3313IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3314
3315IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3316IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3317IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3318IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3319
3320IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3321IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3322IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3323
3324IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3325IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3326
3327IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3328IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3329IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3330IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3331
3332IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3333IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3334IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3335
3336IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3337IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3338
caef1a4d 3339IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
caef1a4d 3340IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3341
51b83b37 3342IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3343
3344IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3345
d55e5bfc
RD
3346
3347
554f62e9 3348SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3349
3350#include <wx/generic/dragimgg.h>
3351
53aa7709 3352 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
554f62e9 3353SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3354 wxDateTime rv;
3355 self->GetRange(&rv, NULL);
3356 return rv;
3357 }
554f62e9 3358SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3359 wxDateTime rv;
3360 self->GetRange(NULL, &rv);
3361 return rv;
3362 }
704eda0c 3363 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3364 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3365 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3366 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3367 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3368 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3369 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3370 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d55e5bfc
RD
3371#ifdef __cplusplus
3372extern "C" {
3373#endif
554f62e9
RD
3374SWIGINTERN int ButtonNameStr_set(PyObject *) {
3375 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3376 return 1;
d55e5bfc
RD
3377}
3378
3379
554f62e9
RD
3380SWIGINTERN PyObject *ButtonNameStr_get(void) {
3381 PyObject *pyobj = 0;
3382
3383 {
d55e5bfc 3384#if wxUSE_UNICODE
554f62e9 3385 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3386#else
554f62e9 3387 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3388#endif
554f62e9
RD
3389 }
3390 return pyobj;
3391}
3392
3393
3394SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj = 0;
3396 wxWindow *arg1 = (wxWindow *) 0 ;
3397 int arg2 = (int) -1 ;
3398 wxString const &arg3_defvalue = wxPyEmptyString ;
3399 wxString *arg3 = (wxString *) &arg3_defvalue ;
3400 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3401 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3402 wxSize const &arg5_defvalue = wxDefaultSize ;
3403 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3404 long arg6 = (long) 0 ;
3405 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3406 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3407 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3408 wxString *arg8 = (wxString *) &arg8_defvalue ;
3409 wxButton *result = 0 ;
3410 void *argp1 = 0 ;
3411 int res1 = 0 ;
3412 int val2 ;
3413 int ecode2 = 0 ;
3414 bool temp3 = false ;
3415 wxPoint temp4 ;
3416 wxSize temp5 ;
3417 long val6 ;
3418 int ecode6 = 0 ;
3419 void *argp7 = 0 ;
3420 int res7 = 0 ;
3421 bool temp8 = false ;
3422 PyObject * obj0 = 0 ;
3423 PyObject * obj1 = 0 ;
3424 PyObject * obj2 = 0 ;
3425 PyObject * obj3 = 0 ;
3426 PyObject * obj4 = 0 ;
3427 PyObject * obj5 = 0 ;
3428 PyObject * obj6 = 0 ;
3429 PyObject * obj7 = 0 ;
3430 char * kwnames[] = {
3431 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3432 };
3433
3434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3436 if (!SWIG_IsOK(res1)) {
3437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3438 }
3439 arg1 = reinterpret_cast< wxWindow * >(argp1);
3440 if (obj1) {
3441 ecode2 = SWIG_AsVal_int(obj1, &val2);
3442 if (!SWIG_IsOK(ecode2)) {
3443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3444 }
3445 arg2 = static_cast< int >(val2);
3446 }
3447 if (obj2) {
d55e5bfc 3448 {
554f62e9
RD
3449 arg3 = wxString_in_helper(obj2);
3450 if (arg3 == NULL) SWIG_fail;
3451 temp3 = true;
d55e5bfc 3452 }
554f62e9
RD
3453 }
3454 if (obj3) {
d55e5bfc 3455 {
554f62e9
RD
3456 arg4 = &temp4;
3457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3458 }
554f62e9
RD
3459 }
3460 if (obj4) {
d55e5bfc 3461 {
554f62e9
RD
3462 arg5 = &temp5;
3463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3464 }
554f62e9
RD
3465 }
3466 if (obj5) {
3467 ecode6 = SWIG_AsVal_long(obj5, &val6);
3468 if (!SWIG_IsOK(ecode6)) {
3469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3470 }
3471 arg6 = static_cast< long >(val6);
3472 }
3473 if (obj6) {
3474 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3475 if (!SWIG_IsOK(res7)) {
3476 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3477 }
554f62e9
RD
3478 if (!argp7) {
3479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3480 }
554f62e9
RD
3481 arg7 = reinterpret_cast< wxValidator * >(argp7);
3482 }
3483 if (obj7) {
d55e5bfc 3484 {
554f62e9
RD
3485 arg8 = wxString_in_helper(obj7);
3486 if (arg8 == NULL) SWIG_fail;
3487 temp8 = true;
d55e5bfc 3488 }
554f62e9
RD
3489 }
3490 {
3491 if (!wxPyCheckForApp()) SWIG_fail;
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3498 {
3499 if (temp3)
3500 delete arg3;
3501 }
3502 {
3503 if (temp8)
3504 delete arg8;
3505 }
3506 return resultobj;
3507fail:
3508 {
3509 if (temp3)
3510 delete arg3;
3511 }
3512 {
3513 if (temp8)
3514 delete arg8;
3515 }
3516 return NULL;
d55e5bfc
RD
3517}
3518
3519
554f62e9
RD
3520SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3521 PyObject *resultobj = 0;
3522 wxButton *result = 0 ;
3523
3524 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3525 {
3526 if (!wxPyCheckForApp()) SWIG_fail;
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (wxButton *)new wxButton();
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3533 return resultobj;
3534fail:
3535 return NULL;
3536}
3537
3538
3539SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3540 PyObject *resultobj = 0;
3541 wxButton *arg1 = (wxButton *) 0 ;
3542 wxWindow *arg2 = (wxWindow *) 0 ;
3543 int arg3 = (int) -1 ;
3544 wxString const &arg4_defvalue = wxPyEmptyString ;
3545 wxString *arg4 = (wxString *) &arg4_defvalue ;
3546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3548 wxSize const &arg6_defvalue = wxDefaultSize ;
3549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3550 long arg7 = (long) 0 ;
3551 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3552 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3553 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3554 wxString *arg9 = (wxString *) &arg9_defvalue ;
3555 bool result;
3556 void *argp1 = 0 ;
3557 int res1 = 0 ;
3558 void *argp2 = 0 ;
3559 int res2 = 0 ;
3560 int val3 ;
3561 int ecode3 = 0 ;
3562 bool temp4 = false ;
3563 wxPoint temp5 ;
3564 wxSize temp6 ;
3565 long val7 ;
3566 int ecode7 = 0 ;
3567 void *argp8 = 0 ;
3568 int res8 = 0 ;
3569 bool temp9 = false ;
3570 PyObject * obj0 = 0 ;
3571 PyObject * obj1 = 0 ;
3572 PyObject * obj2 = 0 ;
3573 PyObject * obj3 = 0 ;
3574 PyObject * obj4 = 0 ;
3575 PyObject * obj5 = 0 ;
3576 PyObject * obj6 = 0 ;
3577 PyObject * obj7 = 0 ;
3578 PyObject * obj8 = 0 ;
3579 char * kwnames[] = {
3580 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3581 };
3582
3583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3585 if (!SWIG_IsOK(res1)) {
3586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3587 }
3588 arg1 = reinterpret_cast< wxButton * >(argp1);
3589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3590 if (!SWIG_IsOK(res2)) {
3591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3592 }
3593 arg2 = reinterpret_cast< wxWindow * >(argp2);
3594 if (obj2) {
3595 ecode3 = SWIG_AsVal_int(obj2, &val3);
3596 if (!SWIG_IsOK(ecode3)) {
3597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3598 }
3599 arg3 = static_cast< int >(val3);
3600 }
3601 if (obj3) {
d55e5bfc 3602 {
554f62e9
RD
3603 arg4 = wxString_in_helper(obj3);
3604 if (arg4 == NULL) SWIG_fail;
3605 temp4 = true;
d55e5bfc 3606 }
554f62e9
RD
3607 }
3608 if (obj4) {
d55e5bfc 3609 {
554f62e9
RD
3610 arg5 = &temp5;
3611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3612 }
554f62e9
RD
3613 }
3614 if (obj5) {
d55e5bfc 3615 {
554f62e9
RD
3616 arg6 = &temp6;
3617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3618 }
554f62e9
RD
3619 }
3620 if (obj6) {
3621 ecode7 = SWIG_AsVal_long(obj6, &val7);
3622 if (!SWIG_IsOK(ecode7)) {
3623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3624 }
3625 arg7 = static_cast< long >(val7);
3626 }
3627 if (obj7) {
3628 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3629 if (!SWIG_IsOK(res8)) {
3630 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3631 }
554f62e9
RD
3632 if (!argp8) {
3633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3634 }
554f62e9
RD
3635 arg8 = reinterpret_cast< wxValidator * >(argp8);
3636 }
3637 if (obj8) {
d55e5bfc 3638 {
554f62e9
RD
3639 arg9 = wxString_in_helper(obj8);
3640 if (arg9 == NULL) SWIG_fail;
3641 temp9 = true;
d55e5bfc 3642 }
554f62e9
RD
3643 }
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 {
3654 if (temp4)
3655 delete arg4;
3656 }
3657 {
3658 if (temp9)
3659 delete arg9;
3660 }
3661 return resultobj;
3662fail:
3663 {
3664 if (temp4)
3665 delete arg4;
3666 }
3667 {
3668 if (temp9)
3669 delete arg9;
3670 }
3671 return NULL;
d55e5bfc
RD
3672}
3673
3674
554f62e9
RD
3675SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxButton *arg1 = (wxButton *) 0 ;
3678 void *argp1 = 0 ;
3679 int res1 = 0 ;
3680 PyObject *swig_obj[1] ;
3681
3682 if (!args) SWIG_fail;
3683 swig_obj[0] = args;
3684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3685 if (!SWIG_IsOK(res1)) {
3686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3687 }
3688 arg1 = reinterpret_cast< wxButton * >(argp1);
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 (arg1)->SetDefault();
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = SWIG_Py_Void();
3696 return resultobj;
3697fail:
3698 return NULL;
d55e5bfc
RD
3699}
3700
3701
554f62e9
RD
3702SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3703 PyObject *resultobj = 0;
3704 wxSize result;
3705
3706 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 result = wxButton::GetDefaultSize();
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3714 return resultobj;
3715fail:
3716 return NULL;
3717}
3718
3719
3720SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3721 PyObject *resultobj = 0;
3722 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3723 SwigValueWrapper<wxVisualAttributes > result;
3724 int val1 ;
3725 int ecode1 = 0 ;
3726 PyObject * obj0 = 0 ;
3727 char * kwnames[] = {
3728 (char *) "variant", NULL
3729 };
3730
3731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3732 if (obj0) {
3733 ecode1 = SWIG_AsVal_int(obj0, &val1);
3734 if (!SWIG_IsOK(ecode1)) {
3735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3736 }
3737 arg1 = static_cast< wxWindowVariant >(val1);
3738 }
3739 {
3740 if (!wxPyCheckForApp()) SWIG_fail;
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = wxButton::GetClassDefaultAttributes(arg1);
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3747 return resultobj;
3748fail:
3749 return NULL;
3750}
3751
3752
3753SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3754 PyObject *obj;
3755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3756 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3757 return SWIG_Py_Void();
3758}
3759
3760SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 return SWIG_Python_InitShadowInstance(args);
3762}
3763
3764SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj = 0;
3766 wxWindow *arg1 = (wxWindow *) 0 ;
3767 int arg2 = (int) -1 ;
3768 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3769 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3770 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3771 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3772 wxSize const &arg5_defvalue = wxDefaultSize ;
3773 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3774 long arg6 = (long) wxBU_AUTODRAW ;
3775 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3776 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3777 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3778 wxString *arg8 = (wxString *) &arg8_defvalue ;
3779 wxBitmapButton *result = 0 ;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 int val2 ;
3783 int ecode2 = 0 ;
3784 void *argp3 = 0 ;
3785 int res3 = 0 ;
3786 wxPoint temp4 ;
3787 wxSize temp5 ;
3788 long val6 ;
3789 int ecode6 = 0 ;
3790 void *argp7 = 0 ;
3791 int res7 = 0 ;
3792 bool temp8 = false ;
3793 PyObject * obj0 = 0 ;
3794 PyObject * obj1 = 0 ;
3795 PyObject * obj2 = 0 ;
3796 PyObject * obj3 = 0 ;
3797 PyObject * obj4 = 0 ;
3798 PyObject * obj5 = 0 ;
3799 PyObject * obj6 = 0 ;
3800 PyObject * obj7 = 0 ;
3801 char * kwnames[] = {
3802 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3803 };
3804
3805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3807 if (!SWIG_IsOK(res1)) {
3808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3809 }
3810 arg1 = reinterpret_cast< wxWindow * >(argp1);
3811 if (obj1) {
3812 ecode2 = SWIG_AsVal_int(obj1, &val2);
3813 if (!SWIG_IsOK(ecode2)) {
3814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3815 }
3816 arg2 = static_cast< int >(val2);
3817 }
3818 if (obj2) {
3819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3820 if (!SWIG_IsOK(res3)) {
3821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3822 }
3823 if (!argp3) {
3824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3825 }
3826 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3827 }
3828 if (obj3) {
d55e5bfc 3829 {
554f62e9
RD
3830 arg4 = &temp4;
3831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3832 }
554f62e9
RD
3833 }
3834 if (obj4) {
d55e5bfc 3835 {
554f62e9
RD
3836 arg5 = &temp5;
3837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3838 }
554f62e9
RD
3839 }
3840 if (obj5) {
3841 ecode6 = SWIG_AsVal_long(obj5, &val6);
3842 if (!SWIG_IsOK(ecode6)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3844 }
3845 arg6 = static_cast< long >(val6);
3846 }
3847 if (obj6) {
3848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3849 if (!SWIG_IsOK(res7)) {
3850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3851 }
554f62e9
RD
3852 if (!argp7) {
3853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3854 }
554f62e9
RD
3855 arg7 = reinterpret_cast< wxValidator * >(argp7);
3856 }
3857 if (obj7) {
f20a2e1f 3858 {
554f62e9
RD
3859 arg8 = wxString_in_helper(obj7);
3860 if (arg8 == NULL) SWIG_fail;
3861 temp8 = true;
f20a2e1f 3862 }
554f62e9
RD
3863 }
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3872 {
3873 if (temp8)
3874 delete arg8;
3875 }
3876 return resultobj;
3877fail:
3878 {
3879 if (temp8)
3880 delete arg8;
3881 }
3882 return NULL;
f20a2e1f
RD
3883}
3884
3885
554f62e9
RD
3886SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3887 PyObject *resultobj = 0;
3888 wxBitmapButton *result = 0 ;
3889
3890 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3891 {
3892 if (!wxPyCheckForApp()) SWIG_fail;
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 result = (wxBitmapButton *)new wxBitmapButton();
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3899 return resultobj;
3900fail:
3901 return NULL;
3902}
3903
3904
3905SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3906 PyObject *resultobj = 0;
3907 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3908 wxWindow *arg2 = (wxWindow *) 0 ;
3909 int arg3 = (int) -1 ;
3910 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3911 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3912 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3913 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3914 wxSize const &arg6_defvalue = wxDefaultSize ;
3915 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3916 long arg7 = (long) wxBU_AUTODRAW ;
3917 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3918 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3919 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3920 wxString *arg9 = (wxString *) &arg9_defvalue ;
3921 bool result;
3922 void *argp1 = 0 ;
3923 int res1 = 0 ;
3924 void *argp2 = 0 ;
3925 int res2 = 0 ;
3926 int val3 ;
3927 int ecode3 = 0 ;
3928 void *argp4 = 0 ;
3929 int res4 = 0 ;
3930 wxPoint temp5 ;
3931 wxSize temp6 ;
3932 long val7 ;
3933 int ecode7 = 0 ;
3934 void *argp8 = 0 ;
3935 int res8 = 0 ;
3936 bool temp9 = false ;
3937 PyObject * obj0 = 0 ;
3938 PyObject * obj1 = 0 ;
3939 PyObject * obj2 = 0 ;
3940 PyObject * obj3 = 0 ;
3941 PyObject * obj4 = 0 ;
3942 PyObject * obj5 = 0 ;
3943 PyObject * obj6 = 0 ;
3944 PyObject * obj7 = 0 ;
3945 PyObject * obj8 = 0 ;
3946 char * kwnames[] = {
3947 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3948 };
3949
3950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3952 if (!SWIG_IsOK(res1)) {
3953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3954 }
3955 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3957 if (!SWIG_IsOK(res2)) {
3958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3959 }
3960 arg2 = reinterpret_cast< wxWindow * >(argp2);
3961 if (obj2) {
3962 ecode3 = SWIG_AsVal_int(obj2, &val3);
3963 if (!SWIG_IsOK(ecode3)) {
3964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3965 }
3966 arg3 = static_cast< int >(val3);
3967 }
3968 if (obj3) {
3969 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3970 if (!SWIG_IsOK(res4)) {
3971 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3972 }
554f62e9
RD
3973 if (!argp4) {
3974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3975 }
554f62e9
RD
3976 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3977 }
3978 if (obj4) {
d55e5bfc 3979 {
554f62e9
RD
3980 arg5 = &temp5;
3981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3982 }
554f62e9
RD
3983 }
3984 if (obj5) {
d55e5bfc 3985 {
554f62e9
RD
3986 arg6 = &temp6;
3987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3988 }
3989 }
3990 if (obj6) {
3991 ecode7 = SWIG_AsVal_long(obj6, &val7);
3992 if (!SWIG_IsOK(ecode7)) {
3993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3994 }
3995 arg7 = static_cast< long >(val7);
3996 }
3997 if (obj7) {
3998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3999 if (!SWIG_IsOK(res8)) {
4000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4001 }
4002 if (!argp8) {
4003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4004 }
554f62e9
RD
4005 arg8 = reinterpret_cast< wxValidator * >(argp8);
4006 }
4007 if (obj8) {
d55e5bfc 4008 {
554f62e9
RD
4009 arg9 = wxString_in_helper(obj8);
4010 if (arg9 == NULL) SWIG_fail;
4011 temp9 = true;
d55e5bfc 4012 }
554f62e9
RD
4013 }
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 {
4021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4022 }
4023 {
4024 if (temp9)
4025 delete arg9;
4026 }
4027 return resultobj;
4028fail:
4029 {
4030 if (temp9)
4031 delete arg9;
4032 }
4033 return NULL;
d55e5bfc
RD
4034}
4035
4036
554f62e9
RD
4037SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4038 PyObject *resultobj = 0;
4039 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4040 wxBitmap result;
4041 void *argp1 = 0 ;
4042 int res1 = 0 ;
4043 PyObject *swig_obj[1] ;
4044
4045 if (!args) SWIG_fail;
4046 swig_obj[0] = args;
4047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4048 if (!SWIG_IsOK(res1)) {
4049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4050 }
4051 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 result = (arg1)->GetBitmapLabel();
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4059 return resultobj;
4060fail:
4061 return NULL;
d55e5bfc
RD
4062}
4063
4064
554f62e9
RD
4065SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4066 PyObject *resultobj = 0;
4067 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4068 wxBitmap result;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 PyObject *swig_obj[1] ;
4072
4073 if (!args) SWIG_fail;
4074 swig_obj[0] = args;
4075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4078 }
4079 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (arg1)->GetBitmapDisabled();
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4087 return resultobj;
4088fail:
4089 return NULL;
d55e5bfc
RD
4090}
4091
4092
554f62e9
RD
4093SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *resultobj = 0;
4095 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4096 wxBitmap result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 PyObject *swig_obj[1] ;
4100
4101 if (!args) SWIG_fail;
4102 swig_obj[0] = args;
4103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4104 if (!SWIG_IsOK(res1)) {
4105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4106 }
4107 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (arg1)->GetBitmapFocus();
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4115 return resultobj;
4116fail:
4117 return NULL;
d55e5bfc
RD
4118}
4119
4120
554f62e9
RD
4121SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4124 wxBitmap result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 PyObject *swig_obj[1] ;
4128
4129 if (!args) SWIG_fail;
4130 swig_obj[0] = args;
4131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4134 }
4135 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (arg1)->GetBitmapSelected();
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4143 return resultobj;
4144fail:
4145 return NULL;
d55e5bfc
RD
4146}
4147
4148
554f62e9
RD
4149SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4150 PyObject *resultobj = 0;
4151 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4152 wxBitmap result;
4153 void *argp1 = 0 ;
4154 int res1 = 0 ;
4155 PyObject *swig_obj[1] ;
4156
4157 if (!args) SWIG_fail;
4158 swig_obj[0] = args;
4159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4162 }
4163 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (arg1)->GetBitmapHover();
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4171 return resultobj;
4172fail:
4173 return NULL;
4174}
4175
4176
4177SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj = 0;
4179 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4180 wxBitmap *arg2 = 0 ;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 void *argp2 = 0 ;
4184 int res2 = 0 ;
4185 PyObject * obj0 = 0 ;
4186 PyObject * obj1 = 0 ;
4187 char * kwnames[] = {
4188 (char *) "self",(char *) "bitmap", NULL
4189 };
4190
4191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4195 }
4196 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4198 if (!SWIG_IsOK(res2)) {
4199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4200 }
4201 if (!argp2) {
4202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4203 }
4204 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 resultobj = SWIG_Py_Void();
4212 return resultobj;
4213fail:
4214 return NULL;
4215}
4216
4217
4218SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj = 0;
4220 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4221 wxBitmap *arg2 = 0 ;
4222 void *argp1 = 0 ;
4223 int res1 = 0 ;
4224 void *argp2 = 0 ;
4225 int res2 = 0 ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 char * kwnames[] = {
4229 (char *) "self",(char *) "bitmap", NULL
4230 };
4231
4232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4236 }
4237 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4239 if (!SWIG_IsOK(res2)) {
4240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4241 }
4242 if (!argp2) {
4243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4244 }
4245 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_Py_Void();
4253 return resultobj;
4254fail:
4255 return NULL;
4256}
4257
4258
4259SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj = 0;
4261 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4262 wxBitmap *arg2 = 0 ;
4263 void *argp1 = 0 ;
4264 int res1 = 0 ;
4265 void *argp2 = 0 ;
4266 int res2 = 0 ;
4267 PyObject * obj0 = 0 ;
4268 PyObject * obj1 = 0 ;
4269 char * kwnames[] = {
4270 (char *) "self",(char *) "bitmap", NULL
4271 };
4272
4273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4275 if (!SWIG_IsOK(res1)) {
4276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4277 }
4278 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4280 if (!SWIG_IsOK(res2)) {
4281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4282 }
4283 if (!argp2) {
4284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4285 }
4286 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 resultobj = SWIG_Py_Void();
4294 return resultobj;
4295fail:
4296 return NULL;
4297}
4298
4299
4300SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4301 PyObject *resultobj = 0;
4302 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4303 wxBitmap *arg2 = 0 ;
4304 void *argp1 = 0 ;
4305 int res1 = 0 ;
4306 void *argp2 = 0 ;
4307 int res2 = 0 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char * kwnames[] = {
4311 (char *) "self",(char *) "bitmap", NULL
4312 };
4313
4314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4316 if (!SWIG_IsOK(res1)) {
4317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4318 }
4319 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4321 if (!SWIG_IsOK(res2)) {
4322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4323 }
4324 if (!argp2) {
4325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4326 }
4327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_Py_Void();
4335 return resultobj;
4336fail:
4337 return NULL;
4338}
4339
4340
4341SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj = 0;
4343 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4344 wxBitmap *arg2 = 0 ;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 void *argp2 = 0 ;
4348 int res2 = 0 ;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 char * kwnames[] = {
4352 (char *) "self",(char *) "hover", NULL
4353 };
4354
4355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4359 }
4360 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4362 if (!SWIG_IsOK(res2)) {
4363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4364 }
4365 if (!argp2) {
4366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4367 }
4368 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_Py_Void();
4376 return resultobj;
4377fail:
4378 return NULL;
4379}
4380
4381
4382SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4385 int arg2 ;
4386 int arg3 ;
4387 void *argp1 = 0 ;
4388 int res1 = 0 ;
4389 int val2 ;
4390 int ecode2 = 0 ;
4391 int val3 ;
4392 int ecode3 = 0 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 PyObject * obj2 = 0 ;
4396 char * kwnames[] = {
4397 (char *) "self",(char *) "x",(char *) "y", NULL
4398 };
4399
4400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4402 if (!SWIG_IsOK(res1)) {
4403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4404 }
4405 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4406 ecode2 = SWIG_AsVal_int(obj1, &val2);
4407 if (!SWIG_IsOK(ecode2)) {
4408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4409 }
4410 arg2 = static_cast< int >(val2);
4411 ecode3 = SWIG_AsVal_int(obj2, &val3);
4412 if (!SWIG_IsOK(ecode3)) {
4413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4414 }
4415 arg3 = static_cast< int >(val3);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 (arg1)->SetMargins(arg2,arg3);
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = SWIG_Py_Void();
4423 return resultobj;
4424fail:
4425 return NULL;
d55e5bfc
RD
4426}
4427
4428
554f62e9
RD
4429SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4430 PyObject *resultobj = 0;
4431 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 PyObject *swig_obj[1] ;
4436
4437 if (!args) SWIG_fail;
4438 swig_obj[0] = args;
4439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4442 }
4443 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_From_int(static_cast< int >(result));
4451 return resultobj;
4452fail:
4453 return NULL;
d55e5bfc
RD
4454}
4455
4456
554f62e9
RD
4457SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458 PyObject *resultobj = 0;
4459 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4460 int result;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 PyObject *swig_obj[1] ;
4464
4465 if (!args) SWIG_fail;
4466 swig_obj[0] = args;
4467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4468 if (!SWIG_IsOK(res1)) {
4469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4470 }
4471 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_From_int(static_cast< int >(result));
4479 return resultobj;
4480fail:
4481 return NULL;
b1fcee84
RD
4482}
4483
4484
554f62e9
RD
4485SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *obj;
4487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4488 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4489 return SWIG_Py_Void();
d55e5bfc
RD
4490}
4491
554f62e9
RD
4492SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 return SWIG_Python_InitShadowInstance(args);
4494}
d55e5bfc 4495
554f62e9
RD
4496SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4497 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4498 return 1;
d55e5bfc
RD
4499}
4500
4501
554f62e9
RD
4502SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4503 PyObject *pyobj = 0;
4504
4505 {
4506#if wxUSE_UNICODE
4507 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4508#else
4509 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4510#endif
4511 }
4512 return pyobj;
4513}
4514
4515
4516SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 wxWindow *arg1 = (wxWindow *) 0 ;
4519 int arg2 = (int) -1 ;
4520 wxString const &arg3_defvalue = wxPyEmptyString ;
4521 wxString *arg3 = (wxString *) &arg3_defvalue ;
4522 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4523 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4524 wxSize const &arg5_defvalue = wxDefaultSize ;
4525 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4526 long arg6 = (long) 0 ;
4527 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4528 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4529 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4530 wxString *arg8 = (wxString *) &arg8_defvalue ;
4531 wxCheckBox *result = 0 ;
4532 void *argp1 = 0 ;
4533 int res1 = 0 ;
4534 int val2 ;
4535 int ecode2 = 0 ;
4536 bool temp3 = false ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 long val6 ;
4540 int ecode6 = 0 ;
4541 void *argp7 = 0 ;
4542 int res7 = 0 ;
4543 bool temp8 = false ;
4544 PyObject * obj0 = 0 ;
4545 PyObject * obj1 = 0 ;
4546 PyObject * obj2 = 0 ;
4547 PyObject * obj3 = 0 ;
4548 PyObject * obj4 = 0 ;
4549 PyObject * obj5 = 0 ;
4550 PyObject * obj6 = 0 ;
4551 PyObject * obj7 = 0 ;
4552 char * kwnames[] = {
4553 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4554 };
4555
4556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4558 if (!SWIG_IsOK(res1)) {
4559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4560 }
4561 arg1 = reinterpret_cast< wxWindow * >(argp1);
4562 if (obj1) {
4563 ecode2 = SWIG_AsVal_int(obj1, &val2);
4564 if (!SWIG_IsOK(ecode2)) {
4565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4566 }
4567 arg2 = static_cast< int >(val2);
4568 }
4569 if (obj2) {
d55e5bfc 4570 {
554f62e9
RD
4571 arg3 = wxString_in_helper(obj2);
4572 if (arg3 == NULL) SWIG_fail;
4573 temp3 = true;
d55e5bfc 4574 }
554f62e9
RD
4575 }
4576 if (obj3) {
4577 {
4578 arg4 = &temp4;
4579 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4580 }
554f62e9
RD
4581 }
4582 if (obj4) {
d55e5bfc 4583 {
554f62e9
RD
4584 arg5 = &temp5;
4585 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4586 }
554f62e9
RD
4587 }
4588 if (obj5) {
4589 ecode6 = SWIG_AsVal_long(obj5, &val6);
4590 if (!SWIG_IsOK(ecode6)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4592 }
4593 arg6 = static_cast< long >(val6);
4594 }
4595 if (obj6) {
4596 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4597 if (!SWIG_IsOK(res7)) {
4598 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4599 }
554f62e9
RD
4600 if (!argp7) {
4601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4602 }
4603 arg7 = reinterpret_cast< wxValidator * >(argp7);
4604 }
4605 if (obj7) {
b1fcee84 4606 {
554f62e9
RD
4607 arg8 = wxString_in_helper(obj7);
4608 if (arg8 == NULL) SWIG_fail;
4609 temp8 = true;
b1fcee84 4610 }
554f62e9
RD
4611 }
4612 {
4613 if (!wxPyCheckForApp()) SWIG_fail;
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4620 {
4621 if (temp3)
4622 delete arg3;
4623 }
4624 {
4625 if (temp8)
4626 delete arg8;
4627 }
4628 return resultobj;
4629fail:
4630 {
4631 if (temp3)
4632 delete arg3;
4633 }
4634 {
4635 if (temp8)
4636 delete arg8;
4637 }
4638 return NULL;
b1fcee84
RD
4639}
4640
4641
554f62e9
RD
4642SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4643 PyObject *resultobj = 0;
4644 wxCheckBox *result = 0 ;
4645
4646 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4647 {
4648 if (!wxPyCheckForApp()) SWIG_fail;
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 result = (wxCheckBox *)new wxCheckBox();
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4655 return resultobj;
4656fail:
4657 return NULL;
4658}
4659
4660
4661SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj = 0;
4663 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4664 wxWindow *arg2 = (wxWindow *) 0 ;
4665 int arg3 = (int) -1 ;
4666 wxString const &arg4_defvalue = wxPyEmptyString ;
4667 wxString *arg4 = (wxString *) &arg4_defvalue ;
4668 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4669 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4670 wxSize const &arg6_defvalue = wxDefaultSize ;
4671 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4672 long arg7 = (long) 0 ;
4673 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4674 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4675 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4676 wxString *arg9 = (wxString *) &arg9_defvalue ;
4677 bool result;
4678 void *argp1 = 0 ;
4679 int res1 = 0 ;
4680 void *argp2 = 0 ;
4681 int res2 = 0 ;
4682 int val3 ;
4683 int ecode3 = 0 ;
4684 bool temp4 = false ;
4685 wxPoint temp5 ;
4686 wxSize temp6 ;
4687 long val7 ;
4688 int ecode7 = 0 ;
4689 void *argp8 = 0 ;
4690 int res8 = 0 ;
4691 bool temp9 = false ;
4692 PyObject * obj0 = 0 ;
4693 PyObject * obj1 = 0 ;
4694 PyObject * obj2 = 0 ;
4695 PyObject * obj3 = 0 ;
4696 PyObject * obj4 = 0 ;
4697 PyObject * obj5 = 0 ;
4698 PyObject * obj6 = 0 ;
4699 PyObject * obj7 = 0 ;
4700 PyObject * obj8 = 0 ;
4701 char * kwnames[] = {
4702 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4703 };
4704
4705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4709 }
4710 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4712 if (!SWIG_IsOK(res2)) {
4713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4714 }
4715 arg2 = reinterpret_cast< wxWindow * >(argp2);
4716 if (obj2) {
4717 ecode3 = SWIG_AsVal_int(obj2, &val3);
4718 if (!SWIG_IsOK(ecode3)) {
4719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4720 }
4721 arg3 = static_cast< int >(val3);
4722 }
4723 if (obj3) {
093d3ff1 4724 {
554f62e9
RD
4725 arg4 = wxString_in_helper(obj3);
4726 if (arg4 == NULL) SWIG_fail;
4727 temp4 = true;
093d3ff1 4728 }
554f62e9
RD
4729 }
4730 if (obj4) {
093d3ff1 4731 {
554f62e9
RD
4732 arg5 = &temp5;
4733 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4734 }
554f62e9
RD
4735 }
4736 if (obj5) {
d55e5bfc 4737 {
554f62e9
RD
4738 arg6 = &temp6;
4739 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4740 }
554f62e9
RD
4741 }
4742 if (obj6) {
4743 ecode7 = SWIG_AsVal_long(obj6, &val7);
4744 if (!SWIG_IsOK(ecode7)) {
4745 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4746 }
4747 arg7 = static_cast< long >(val7);
4748 }
4749 if (obj7) {
4750 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4751 if (!SWIG_IsOK(res8)) {
4752 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4753 }
554f62e9
RD
4754 if (!argp8) {
4755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4756 }
4757 arg8 = reinterpret_cast< wxValidator * >(argp8);
4758 }
4759 if (obj8) {
093d3ff1 4760 {
554f62e9
RD
4761 arg9 = wxString_in_helper(obj8);
4762 if (arg9 == NULL) SWIG_fail;
4763 temp9 = true;
093d3ff1 4764 }
554f62e9
RD
4765 }
4766 {
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 {
4773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4774 }
4775 {
4776 if (temp4)
4777 delete arg4;
4778 }
4779 {
4780 if (temp9)
4781 delete arg9;
4782 }
4783 return resultobj;
4784fail:
4785 {
4786 if (temp4)
4787 delete arg4;
4788 }
4789 {
4790 if (temp9)
4791 delete arg9;
4792 }
4793 return NULL;
d55e5bfc
RD
4794}
4795
4796
554f62e9
RD
4797SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4800 bool result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4810 }
4811 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->GetValue();
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 {
4819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4820 }
4821 return resultobj;
4822fail:
4823 return NULL;
d55e5bfc
RD
4824}
4825
4826
554f62e9
RD
4827SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4828 PyObject *resultobj = 0;
4829 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4830 bool result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 PyObject *swig_obj[1] ;
4834
4835 if (!args) SWIG_fail;
4836 swig_obj[0] = args;
4837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4838 if (!SWIG_IsOK(res1)) {
4839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4840 }
4841 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = (bool)(arg1)->IsChecked();
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 {
4849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4850 }
4851 return resultobj;
4852fail:
4853 return NULL;
4854}
4855
4856
4857SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj = 0;
4859 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4860 bool arg2 ;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 bool val2 ;
4864 int ecode2 = 0 ;
4865 PyObject * obj0 = 0 ;
4866 PyObject * obj1 = 0 ;
4867 char * kwnames[] = {
4868 (char *) "self",(char *) "state", NULL
4869 };
4870
4871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4873 if (!SWIG_IsOK(res1)) {
4874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4875 }
4876 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4877 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4878 if (!SWIG_IsOK(ecode2)) {
4879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4880 }
4881 arg2 = static_cast< bool >(val2);
4882 {
4883 PyThreadState* __tstate = wxPyBeginAllowThreads();
4884 (arg1)->SetValue(arg2);
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 resultobj = SWIG_Py_Void();
4889 return resultobj;
4890fail:
4891 return NULL;
d55e5bfc 4892}
554f62e9
RD
4893
4894
4895SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4896 PyObject *resultobj = 0;
4897 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4898 wxCheckBoxState result;
4899 void *argp1 = 0 ;
4900 int res1 = 0 ;
4901 PyObject *swig_obj[1] ;
4902
4903 if (!args) SWIG_fail;
4904 swig_obj[0] = args;
4905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4906 if (!SWIG_IsOK(res1)) {
4907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4908 }
4909 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 resultobj = SWIG_From_int(static_cast< int >(result));
4917 return resultobj;
4918fail:
4919 return NULL;
4920}
4921
4922
4923SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj = 0;
4925 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4926 wxCheckBoxState arg2 ;
4927 void *argp1 = 0 ;
4928 int res1 = 0 ;
4929 int val2 ;
4930 int ecode2 = 0 ;
4931 PyObject * obj0 = 0 ;
4932 PyObject * obj1 = 0 ;
4933 char * kwnames[] = {
4934 (char *) "self",(char *) "state", NULL
4935 };
4936
4937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4939 if (!SWIG_IsOK(res1)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4941 }
4942 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4943 ecode2 = SWIG_AsVal_int(obj1, &val2);
4944 if (!SWIG_IsOK(ecode2)) {
4945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4946 }
4947 arg2 = static_cast< wxCheckBoxState >(val2);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 (arg1)->Set3StateValue(arg2);
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_Py_Void();
4955 return resultobj;
4956fail:
4957 return NULL;
d55e5bfc
RD
4958}
4959
4960
554f62e9
RD
4961SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4964 bool result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4974 }
4975 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 {
4983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4984 }
4985 return resultobj;
4986fail:
4987 return NULL;
d55e5bfc
RD
4988}
4989
4990
554f62e9
RD
4991SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992 PyObject *resultobj = 0;
4993 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4994 bool result;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 PyObject *swig_obj[1] ;
4998
4999 if (!args) SWIG_fail;
5000 swig_obj[0] = args;
5001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5002 if (!SWIG_IsOK(res1)) {
5003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5004 }
5005 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5014 }
5015 return resultobj;
5016fail:
5017 return NULL;
d55e5bfc
RD
5018}
5019
5020
554f62e9
RD
5021SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj = 0;
5023 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5024 SwigValueWrapper<wxVisualAttributes > result;
5025 int val1 ;
5026 int ecode1 = 0 ;
5027 PyObject * obj0 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "variant", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5033 if (obj0) {
5034 ecode1 = SWIG_AsVal_int(obj0, &val1);
5035 if (!SWIG_IsOK(ecode1)) {
5036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5037 }
5038 arg1 = static_cast< wxWindowVariant >(val1);
5039 }
5040 {
5041 if (!wxPyCheckForApp()) SWIG_fail;
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5048 return resultobj;
5049fail:
5050 return NULL;
d55e5bfc
RD
5051}
5052
5053
554f62e9
RD
5054SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 PyObject *obj;
5056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5057 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5058 return SWIG_Py_Void();
d55e5bfc
RD
5059}
5060
554f62e9
RD
5061SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 return SWIG_Python_InitShadowInstance(args);
5063}
d55e5bfc 5064
554f62e9
RD
5065SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5066 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5067 return 1;
d55e5bfc
RD
5068}
5069
5070
554f62e9
RD
5071SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5072 PyObject *pyobj = 0;
5073
5074 {
5075#if wxUSE_UNICODE
5076 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5077#else
5078 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5079#endif
5080 }
5081 return pyobj;
5082}
5083
5084
5085SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5086 PyObject *resultobj = 0;
5087 wxWindow *arg1 = (wxWindow *) 0 ;
5088 int arg2 = (int) -1 ;
5089 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5090 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5091 wxSize const &arg4_defvalue = wxDefaultSize ;
5092 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5093 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5094 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5095 long arg6 = (long) 0 ;
5096 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5097 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5098 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5099 wxString *arg8 = (wxString *) &arg8_defvalue ;
5100 wxChoice *result = 0 ;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 int val2 ;
5104 int ecode2 = 0 ;
5105 wxPoint temp3 ;
5106 wxSize temp4 ;
5107 bool temp5 = false ;
5108 long val6 ;
5109 int ecode6 = 0 ;
5110 void *argp7 = 0 ;
5111 int res7 = 0 ;
5112 bool temp8 = false ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5115 PyObject * obj2 = 0 ;
5116 PyObject * obj3 = 0 ;
5117 PyObject * obj4 = 0 ;
5118 PyObject * obj5 = 0 ;
5119 PyObject * obj6 = 0 ;
5120 PyObject * obj7 = 0 ;
5121 char * kwnames[] = {
5122 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5123 };
5124
5125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5129 }
5130 arg1 = reinterpret_cast< wxWindow * >(argp1);
5131 if (obj1) {
5132 ecode2 = SWIG_AsVal_int(obj1, &val2);
5133 if (!SWIG_IsOK(ecode2)) {
5134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5135 }
5136 arg2 = static_cast< int >(val2);
5137 }
5138 if (obj2) {
093d3ff1 5139 {
554f62e9
RD
5140 arg3 = &temp3;
5141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5142 }
554f62e9
RD
5143 }
5144 if (obj3) {
d55e5bfc 5145 {
554f62e9
RD
5146 arg4 = &temp4;
5147 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5148 }
554f62e9
RD
5149 }
5150 if (obj4) {
d55e5bfc 5151 {
554f62e9
RD
5152 if (! PySequence_Check(obj4)) {
5153 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5154 SWIG_fail;
5155 }
5156 arg5 = new wxArrayString;
5157 temp5 = true;
5158 int i, len=PySequence_Length(obj4);
5159 for (i=0; i<len; i++) {
5160 PyObject* item = PySequence_GetItem(obj4, i);
5161 wxString* s = wxString_in_helper(item);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 arg5->Add(*s);
5164 delete s;
5165 Py_DECREF(item);
5166 }
d55e5bfc 5167 }
554f62e9
RD
5168 }
5169 if (obj5) {
5170 ecode6 = SWIG_AsVal_long(obj5, &val6);
5171 if (!SWIG_IsOK(ecode6)) {
5172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5173 }
5174 arg6 = static_cast< long >(val6);
5175 }
5176 if (obj6) {
5177 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5178 if (!SWIG_IsOK(res7)) {
5179 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5180 }
554f62e9
RD
5181 if (!argp7) {
5182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5183 }
5184 arg7 = reinterpret_cast< wxValidator * >(argp7);
5185 }
5186 if (obj7) {
d55e5bfc 5187 {
554f62e9
RD
5188 arg8 = wxString_in_helper(obj7);
5189 if (arg8 == NULL) SWIG_fail;
5190 temp8 = true;
d55e5bfc 5191 }
554f62e9
RD
5192 }
5193 {
5194 if (!wxPyCheckForApp()) SWIG_fail;
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5201 {
5202 if (temp5) delete arg5;
5203 }
5204 {
5205 if (temp8)
5206 delete arg8;
5207 }
5208 return resultobj;
5209fail:
5210 {
5211 if (temp5) delete arg5;
5212 }
5213 {
5214 if (temp8)
5215 delete arg8;
5216 }
5217 return NULL;
d55e5bfc
RD
5218}
5219
5220
554f62e9
RD
5221SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxChoice *result = 0 ;
5224
5225 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5226 {
5227 if (!wxPyCheckForApp()) SWIG_fail;
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (wxChoice *)new wxChoice();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5234 return resultobj;
5235fail:
5236 return NULL;
5237}
5238
5239
5240SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5241 PyObject *resultobj = 0;
5242 wxChoice *arg1 = (wxChoice *) 0 ;
5243 wxWindow *arg2 = (wxWindow *) 0 ;
5244 int arg3 = (int) -1 ;
5245 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5246 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5247 wxSize const &arg5_defvalue = wxDefaultSize ;
5248 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5249 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5250 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5251 long arg7 = (long) 0 ;
5252 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5253 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5254 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5255 wxString *arg9 = (wxString *) &arg9_defvalue ;
5256 bool result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 void *argp2 = 0 ;
5260 int res2 = 0 ;
5261 int val3 ;
5262 int ecode3 = 0 ;
5263 wxPoint temp4 ;
5264 wxSize temp5 ;
5265 bool temp6 = false ;
5266 long val7 ;
5267 int ecode7 = 0 ;
5268 void *argp8 = 0 ;
5269 int res8 = 0 ;
5270 bool temp9 = false ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 PyObject * obj2 = 0 ;
5274 PyObject * obj3 = 0 ;
5275 PyObject * obj4 = 0 ;
5276 PyObject * obj5 = 0 ;
5277 PyObject * obj6 = 0 ;
5278 PyObject * obj7 = 0 ;
5279 PyObject * obj8 = 0 ;
5280 char * kwnames[] = {
5281 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5282 };
5283
5284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5288 }
5289 arg1 = reinterpret_cast< wxChoice * >(argp1);
5290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5291 if (!SWIG_IsOK(res2)) {
5292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5293 }
5294 arg2 = reinterpret_cast< wxWindow * >(argp2);
5295 if (obj2) {
5296 ecode3 = SWIG_AsVal_int(obj2, &val3);
5297 if (!SWIG_IsOK(ecode3)) {
5298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5299 }
5300 arg3 = static_cast< int >(val3);
5301 }
5302 if (obj3) {
d55e5bfc 5303 {
554f62e9
RD
5304 arg4 = &temp4;
5305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5306 }
554f62e9
RD
5307 }
5308 if (obj4) {
d55e5bfc 5309 {
554f62e9
RD
5310 arg5 = &temp5;
5311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5312 }
554f62e9
RD
5313 }
5314 if (obj5) {
d55e5bfc 5315 {
554f62e9
RD
5316 if (! PySequence_Check(obj5)) {
5317 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5318 SWIG_fail;
5319 }
5320 arg6 = new wxArrayString;
5321 temp6 = true;
5322 int i, len=PySequence_Length(obj5);
5323 for (i=0; i<len; i++) {
5324 PyObject* item = PySequence_GetItem(obj5, i);
5325 wxString* s = wxString_in_helper(item);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 arg6->Add(*s);
5328 delete s;
5329 Py_DECREF(item);
5330 }
5331 }
5332 }
5333 if (obj6) {
5334 ecode7 = SWIG_AsVal_long(obj6, &val7);
5335 if (!SWIG_IsOK(ecode7)) {
5336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5337 }
5338 arg7 = static_cast< long >(val7);
5339 }
5340 if (obj7) {
5341 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5342 if (!SWIG_IsOK(res8)) {
5343 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5344 }
554f62e9
RD
5345 if (!argp8) {
5346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5347 }
5348 arg8 = reinterpret_cast< wxValidator * >(argp8);
5349 }
5350 if (obj8) {
d55e5bfc 5351 {
554f62e9
RD
5352 arg9 = wxString_in_helper(obj8);
5353 if (arg9 == NULL) SWIG_fail;
5354 temp9 = true;
d55e5bfc 5355 }
554f62e9
RD
5356 }
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5365 }
5366 {
5367 if (temp6) delete arg6;
5368 }
5369 {
5370 if (temp9)
5371 delete arg9;
5372 }
5373 return resultobj;
5374fail:
5375 {
5376 if (temp6) delete arg6;
5377 }
5378 {
5379 if (temp9)
5380 delete arg9;
5381 }
5382 return NULL;
d55e5bfc
RD
5383}
5384
5385
554f62e9
RD
5386SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5387 PyObject *resultobj = 0;
5388 wxChoice *arg1 = (wxChoice *) 0 ;
5389 int result;
5390 void *argp1 = 0 ;
5391 int res1 = 0 ;
5392 PyObject *swig_obj[1] ;
5393
5394 if (!args) SWIG_fail;
5395 swig_obj[0] = args;
5396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5399 }
5400 arg1 = reinterpret_cast< wxChoice * >(argp1);
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_From_int(static_cast< int >(result));
5408 return resultobj;
5409fail:
5410 return NULL;
5411}
5412
5413
5414SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj = 0;
5416 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5417 SwigValueWrapper<wxVisualAttributes > result;
5418 int val1 ;
5419 int ecode1 = 0 ;
5420 PyObject * obj0 = 0 ;
5421 char * kwnames[] = {
5422 (char *) "variant", NULL
5423 };
5424
5425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5426 if (obj0) {
5427 ecode1 = SWIG_AsVal_int(obj0, &val1);
5428 if (!SWIG_IsOK(ecode1)) {
5429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5430 }
5431 arg1 = static_cast< wxWindowVariant >(val1);
5432 }
5433 {
5434 if (!wxPyCheckForApp()) SWIG_fail;
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = wxChoice::GetClassDefaultAttributes(arg1);
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5441 return resultobj;
5442fail:
5443 return NULL;
f20a2e1f
RD
5444}
5445
5446
554f62e9
RD
5447SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *obj;
5449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5450 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5451 return SWIG_Py_Void();
d55e5bfc 5452}
554f62e9
RD
5453
5454SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 return SWIG_Python_InitShadowInstance(args);
5456}
5457
5458SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5459 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5460 return 1;
d55e5bfc
RD
5461}
5462
5463
554f62e9
RD
5464SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5465 PyObject *pyobj = 0;
5466
5467 {
d55e5bfc 5468#if wxUSE_UNICODE
554f62e9 5469 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5470#else
554f62e9 5471 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5472#endif
554f62e9
RD
5473 }
5474 return pyobj;
5475}
5476
5477
5478SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj = 0;
5480 wxWindow *arg1 = (wxWindow *) 0 ;
5481 int arg2 = (int) -1 ;
5482 wxString const &arg3_defvalue = wxPyEmptyString ;
5483 wxString *arg3 = (wxString *) &arg3_defvalue ;
5484 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5485 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5486 wxSize const &arg5_defvalue = wxDefaultSize ;
5487 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5488 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5489 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5490 long arg7 = (long) 0 ;
5491 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5492 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5493 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5494 wxString *arg9 = (wxString *) &arg9_defvalue ;
5495 wxComboBox *result = 0 ;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 int val2 ;
5499 int ecode2 = 0 ;
5500 bool temp3 = false ;
5501 wxPoint temp4 ;
5502 wxSize temp5 ;
5503 bool temp6 = false ;
5504 long val7 ;
5505 int ecode7 = 0 ;
5506 void *argp8 = 0 ;
5507 int res8 = 0 ;
5508 bool temp9 = false ;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 PyObject * obj2 = 0 ;
5512 PyObject * obj3 = 0 ;
5513 PyObject * obj4 = 0 ;
5514 PyObject * obj5 = 0 ;
5515 PyObject * obj6 = 0 ;
5516 PyObject * obj7 = 0 ;
5517 PyObject * obj8 = 0 ;
5518 char * kwnames[] = {
5519 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5520 };
5521
5522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5524 if (!SWIG_IsOK(res1)) {
5525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5526 }
5527 arg1 = reinterpret_cast< wxWindow * >(argp1);
5528 if (obj1) {
5529 ecode2 = SWIG_AsVal_int(obj1, &val2);
5530 if (!SWIG_IsOK(ecode2)) {
5531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5532 }
5533 arg2 = static_cast< int >(val2);
5534 }
5535 if (obj2) {
d55e5bfc 5536 {
554f62e9
RD
5537 arg3 = wxString_in_helper(obj2);
5538 if (arg3 == NULL) SWIG_fail;
5539 temp3 = true;
d55e5bfc 5540 }
554f62e9
RD
5541 }
5542 if (obj3) {
d55e5bfc 5543 {
554f62e9
RD
5544 arg4 = &temp4;
5545 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5546 }
554f62e9
RD
5547 }
5548 if (obj4) {
d55e5bfc 5549 {
554f62e9
RD
5550 arg5 = &temp5;
5551 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5552 }
554f62e9
RD
5553 }
5554 if (obj5) {
d55e5bfc 5555 {
554f62e9
RD
5556 if (! PySequence_Check(obj5)) {
5557 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5558 SWIG_fail;
5559 }
5560 arg6 = new wxArrayString;
5561 temp6 = true;
5562 int i, len=PySequence_Length(obj5);
5563 for (i=0; i<len; i++) {
5564 PyObject* item = PySequence_GetItem(obj5, i);
5565 wxString* s = wxString_in_helper(item);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 arg6->Add(*s);
5568 delete s;
5569 Py_DECREF(item);
5570 }
d55e5bfc 5571 }
554f62e9
RD
5572 }
5573 if (obj6) {
5574 ecode7 = SWIG_AsVal_long(obj6, &val7);
5575 if (!SWIG_IsOK(ecode7)) {
5576 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5577 }
5578 arg7 = static_cast< long >(val7);
5579 }
5580 if (obj7) {
5581 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5582 if (!SWIG_IsOK(res8)) {
5583 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5584 }
5585 if (!argp8) {
5586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5587 }
5588 arg8 = reinterpret_cast< wxValidator * >(argp8);
5589 }
5590 if (obj8) {
d55e5bfc 5591 {
554f62e9
RD
5592 arg9 = wxString_in_helper(obj8);
5593 if (arg9 == NULL) SWIG_fail;
5594 temp9 = true;
d55e5bfc 5595 }
554f62e9
RD
5596 }
5597 {
5598 if (!wxPyCheckForApp()) SWIG_fail;
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 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);
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5605 {
5606 if (temp3)
5607 delete arg3;
5608 }
5609 {
5610 if (temp6) delete arg6;
5611 }
5612 {
5613 if (temp9)
5614 delete arg9;
5615 }
5616 return resultobj;
5617fail:
5618 {
5619 if (temp3)
5620 delete arg3;
5621 }
5622 {
5623 if (temp6) delete arg6;
5624 }
5625 {
5626 if (temp9)
5627 delete arg9;
5628 }
5629 return NULL;
d55e5bfc
RD
5630}
5631
5632
554f62e9
RD
5633SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5634 PyObject *resultobj = 0;
5635 wxComboBox *result = 0 ;
5636
5637 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5638 {
5639 if (!wxPyCheckForApp()) SWIG_fail;
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (wxComboBox *)new wxComboBox();
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5646 return resultobj;
5647fail:
5648 return NULL;
5649}
5650
5651
5652SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj = 0;
5654 wxComboBox *arg1 = (wxComboBox *) 0 ;
5655 wxWindow *arg2 = (wxWindow *) 0 ;
5656 int arg3 = (int) -1 ;
5657 wxString const &arg4_defvalue = wxPyEmptyString ;
5658 wxString *arg4 = (wxString *) &arg4_defvalue ;
5659 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5660 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5661 wxSize const &arg6_defvalue = wxDefaultSize ;
5662 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5663 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5664 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5665 long arg8 = (long) 0 ;
5666 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5667 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5668 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5669 wxString *arg10 = (wxString *) &arg10_defvalue ;
5670 bool result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 void *argp2 = 0 ;
5674 int res2 = 0 ;
5675 int val3 ;
5676 int ecode3 = 0 ;
5677 bool temp4 = false ;
5678 wxPoint temp5 ;
5679 wxSize temp6 ;
5680 bool temp7 = false ;
5681 long val8 ;
5682 int ecode8 = 0 ;
5683 void *argp9 = 0 ;
5684 int res9 = 0 ;
5685 bool temp10 = false ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 PyObject * obj2 = 0 ;
5689 PyObject * obj3 = 0 ;
5690 PyObject * obj4 = 0 ;
5691 PyObject * obj5 = 0 ;
5692 PyObject * obj6 = 0 ;
5693 PyObject * obj7 = 0 ;
5694 PyObject * obj8 = 0 ;
5695 PyObject * obj9 = 0 ;
5696 char * kwnames[] = {
5697 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5698 };
5699
5700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5702 if (!SWIG_IsOK(res1)) {
5703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5704 }
5705 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5707 if (!SWIG_IsOK(res2)) {
5708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5709 }
5710 arg2 = reinterpret_cast< wxWindow * >(argp2);
5711 if (obj2) {
5712 ecode3 = SWIG_AsVal_int(obj2, &val3);
5713 if (!SWIG_IsOK(ecode3)) {
5714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5715 }
5716 arg3 = static_cast< int >(val3);
5717 }
5718 if (obj3) {
d55e5bfc 5719 {
554f62e9
RD
5720 arg4 = wxString_in_helper(obj3);
5721 if (arg4 == NULL) SWIG_fail;
5722 temp4 = true;
d55e5bfc 5723 }
554f62e9
RD
5724 }
5725 if (obj4) {
d55e5bfc 5726 {
554f62e9
RD
5727 arg5 = &temp5;
5728 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5729 }
554f62e9
RD
5730 }
5731 if (obj5) {
d55e5bfc 5732 {
554f62e9
RD
5733 arg6 = &temp6;
5734 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5735 }
554f62e9
RD
5736 }
5737 if (obj6) {
d55e5bfc 5738 {
554f62e9
RD
5739 if (! PySequence_Check(obj6)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg7 = new wxArrayString;
5744 temp7 = true;
5745 int i, len=PySequence_Length(obj6);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj6, i);
5748 wxString* s = wxString_in_helper(item);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 arg7->Add(*s);
5751 delete s;
5752 Py_DECREF(item);
5753 }
d55e5bfc 5754 }
554f62e9
RD
5755 }
5756 if (obj7) {
5757 ecode8 = SWIG_AsVal_long(obj7, &val8);
5758 if (!SWIG_IsOK(ecode8)) {
5759 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5760 }
5761 arg8 = static_cast< long >(val8);
5762 }
5763 if (obj8) {
5764 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5765 if (!SWIG_IsOK(res9)) {
5766 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5767 }
554f62e9
RD
5768 if (!argp9) {
5769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5770 }
554f62e9
RD
5771 arg9 = reinterpret_cast< wxValidator * >(argp9);
5772 }
5773 if (obj9) {
d55e5bfc 5774 {
554f62e9
RD
5775 arg10 = wxString_in_helper(obj9);
5776 if (arg10 == NULL) SWIG_fail;
5777 temp10 = true;
d55e5bfc 5778 }
554f62e9
RD
5779 }
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 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);
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5788 }
5789 {
5790 if (temp4)
5791 delete arg4;
5792 }
5793 {
5794 if (temp7) delete arg7;
5795 }
5796 {
5797 if (temp10)
5798 delete arg10;
5799 }
5800 return resultobj;
5801fail:
5802 {
5803 if (temp4)
5804 delete arg4;
5805 }
5806 {
5807 if (temp7) delete arg7;
5808 }
5809 {
5810 if (temp10)
5811 delete arg10;
5812 }
5813 return NULL;
d55e5bfc
RD
5814}
5815
5816
554f62e9
RD
5817SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5818 PyObject *resultobj = 0;
5819 wxComboBox *arg1 = (wxComboBox *) 0 ;
5820 wxString result;
5821 void *argp1 = 0 ;
5822 int res1 = 0 ;
5823 PyObject *swig_obj[1] ;
5824
5825 if (!args) SWIG_fail;
5826 swig_obj[0] = args;
5827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5828 if (!SWIG_IsOK(res1)) {
5829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5830 }
5831 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5832 {
5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
5834 result = ((wxComboBox const *)arg1)->GetValue();
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 {
d55e5bfc 5839#if wxUSE_UNICODE
554f62e9 5840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5841#else
554f62e9 5842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5843#endif
554f62e9
RD
5844 }
5845 return resultobj;
5846fail:
5847 return NULL;
5848}
5849
5850
5851SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj = 0;
5853 wxComboBox *arg1 = (wxComboBox *) 0 ;
5854 wxString *arg2 = 0 ;
5855 void *argp1 = 0 ;
5856 int res1 = 0 ;
5857 bool temp2 = false ;
5858 PyObject * obj0 = 0 ;
5859 PyObject * obj1 = 0 ;
5860 char * kwnames[] = {
5861 (char *) "self",(char *) "value", NULL
5862 };
5863
5864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5866 if (!SWIG_IsOK(res1)) {
5867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5868 }
5869 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5870 {
5871 arg2 = wxString_in_helper(obj1);
5872 if (arg2 == NULL) SWIG_fail;
5873 temp2 = true;
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->SetValue((wxString const &)*arg2);
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_Py_Void();
5882 {
5883 if (temp2)
5884 delete arg2;
5885 }
5886 return resultobj;
5887fail:
5888 {
5889 if (temp2)
5890 delete arg2;
5891 }
5892 return NULL;
d55e5bfc
RD
5893}
5894
5895
554f62e9
RD
5896SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5897 PyObject *resultobj = 0;
5898 wxComboBox *arg1 = (wxComboBox *) 0 ;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Copy();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918fail:
5919 return NULL;
d55e5bfc
RD
5920}
5921
5922
554f62e9
RD
5923SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxComboBox *arg1 = (wxComboBox *) 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 PyObject *swig_obj[1] ;
5929
5930 if (!args) SWIG_fail;
5931 swig_obj[0] = args;
5932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5933 if (!SWIG_IsOK(res1)) {
5934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Cut();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945fail:
5946 return NULL;
d55e5bfc
RD
5947}
5948
5949
554f62e9
RD
5950SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5962 }
5963 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 (arg1)->Paste();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_Py_Void();
5971 return resultobj;
5972fail:
5973 return NULL;
5974}
5975
5976
5977SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj = 0;
5979 wxComboBox *arg1 = (wxComboBox *) 0 ;
5980 long arg2 ;
5981 void *argp1 = 0 ;
5982 int res1 = 0 ;
5983 long val2 ;
5984 int ecode2 = 0 ;
5985 PyObject * obj0 = 0 ;
5986 PyObject * obj1 = 0 ;
5987 char * kwnames[] = {
5988 (char *) "self",(char *) "pos", NULL
5989 };
5990
5991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5995 }
5996 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5997 ecode2 = SWIG_AsVal_long(obj1, &val2);
5998 if (!SWIG_IsOK(ecode2)) {
5999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6000 }
6001 arg2 = static_cast< long >(val2);
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 (arg1)->SetInsertionPoint(arg2);
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 resultobj = SWIG_Py_Void();
6009 return resultobj;
6010fail:
6011 return NULL;
d55e5bfc
RD
6012}
6013
6014
554f62e9
RD
6015SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 wxComboBox *arg1 = (wxComboBox *) 0 ;
6018 long result;
6019 void *argp1 = 0 ;
6020 int res1 = 0 ;
6021 PyObject *swig_obj[1] ;
6022
6023 if (!args) SWIG_fail;
6024 swig_obj[0] = args;
6025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6028 }
6029 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 resultobj = SWIG_From_long(static_cast< long >(result));
6037 return resultobj;
6038fail:
6039 return NULL;
d55e5bfc
RD
6040}
6041
6042
554f62e9
RD
6043SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6044 PyObject *resultobj = 0;
6045 wxComboBox *arg1 = (wxComboBox *) 0 ;
6046 long result;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 PyObject *swig_obj[1] ;
6050
6051 if (!args) SWIG_fail;
6052 swig_obj[0] = args;
6053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6056 }
6057 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_From_long(static_cast< long >(result));
6065 return resultobj;
6066fail:
6067 return NULL;
6068}
6069
6070
6071SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6072 PyObject *resultobj = 0;
6073 wxComboBox *arg1 = (wxComboBox *) 0 ;
6074 long arg2 ;
6075 long arg3 ;
6076 wxString *arg4 = 0 ;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 long val2 ;
6080 int ecode2 = 0 ;
6081 long val3 ;
6082 int ecode3 = 0 ;
6083 bool temp4 = false ;
6084 PyObject * obj0 = 0 ;
6085 PyObject * obj1 = 0 ;
6086 PyObject * obj2 = 0 ;
6087 PyObject * obj3 = 0 ;
6088 char * kwnames[] = {
f460c29d 6089 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
6090 };
6091
6092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6094 if (!SWIG_IsOK(res1)) {
6095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6096 }
6097 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6098 ecode2 = SWIG_AsVal_long(obj1, &val2);
6099 if (!SWIG_IsOK(ecode2)) {
6100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6101 }
6102 arg2 = static_cast< long >(val2);
6103 ecode3 = SWIG_AsVal_long(obj2, &val3);
6104 if (!SWIG_IsOK(ecode3)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6106 }
6107 arg3 = static_cast< long >(val3);
6108 {
6109 arg4 = wxString_in_helper(obj3);
6110 if (arg4 == NULL) SWIG_fail;
6111 temp4 = true;
6112 }
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 resultobj = SWIG_Py_Void();
6120 {
6121 if (temp4)
6122 delete arg4;
6123 }
6124 return resultobj;
6125fail:
6126 {
6127 if (temp4)
6128 delete arg4;
6129 }
6130 return NULL;
6131}
6132
6133
6134SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj = 0;
6136 wxComboBox *arg1 = (wxComboBox *) 0 ;
6137 long arg2 ;
6138 long arg3 ;
6139 void *argp1 = 0 ;
6140 int res1 = 0 ;
6141 long val2 ;
6142 int ecode2 = 0 ;
6143 long val3 ;
6144 int ecode3 = 0 ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 PyObject * obj2 = 0 ;
6148 char * kwnames[] = {
f460c29d 6149 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6150 };
6151
6152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6156 }
6157 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6158 ecode2 = SWIG_AsVal_long(obj1, &val2);
6159 if (!SWIG_IsOK(ecode2)) {
6160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6161 }
6162 arg2 = static_cast< long >(val2);
6163 ecode3 = SWIG_AsVal_long(obj2, &val3);
6164 if (!SWIG_IsOK(ecode3)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6166 }
6167 arg3 = static_cast< long >(val3);
6168 {
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 (arg1)->SetSelection(arg2,arg3);
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_Py_Void();
6175 return resultobj;
6176fail:
6177 return NULL;
6178}
6179
6180
6181SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxComboBox *arg1 = (wxComboBox *) 0 ;
6184 long *arg2 = (long *) 0 ;
6185 long *arg3 = (long *) 0 ;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 long temp2 ;
6189 int res2 = SWIG_TMPOBJ ;
6190 long temp3 ;
6191 int res3 = SWIG_TMPOBJ ;
6192 PyObject *swig_obj[1] ;
6193
6194 arg2 = &temp2;
6195 arg3 = &temp3;
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6201 }
6202 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 (arg1)->GetSelection(arg2,arg3);
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_Py_Void();
6210 if (SWIG_IsTmpObj(res2)) {
6211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6212 } else {
6213 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6215 }
6216 if (SWIG_IsTmpObj(res3)) {
6217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6218 } else {
6219 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6221 }
6222 return resultobj;
6223fail:
6224 return NULL;
d55e5bfc
RD
6225}
6226
6227
554f62e9
RD
6228SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6229 PyObject *resultobj = 0;
6230 wxComboBox *arg1 = (wxComboBox *) 0 ;
6231 int result;
6232 void *argp1 = 0 ;
6233 int res1 = 0 ;
6234 PyObject *swig_obj[1] ;
6235
6236 if (!args) SWIG_fail;
6237 swig_obj[0] = args;
6238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6239 if (!SWIG_IsOK(res1)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6241 }
6242 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
6249 resultobj = SWIG_From_int(static_cast< int >(result));
6250 return resultobj;
6251fail:
6252 return NULL;
6253}
6254
6255
6256SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6257 PyObject *resultobj = 0;
6258 wxComboBox *arg1 = (wxComboBox *) 0 ;
6259 wxString *arg2 = 0 ;
6260 bool result;
6261 void *argp1 = 0 ;
6262 int res1 = 0 ;
6263 bool temp2 = false ;
6264 PyObject * obj0 = 0 ;
6265 PyObject * obj1 = 0 ;
6266 char * kwnames[] = {
6267 (char *) "self",(char *) "string", NULL
6268 };
6269
6270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6272 if (!SWIG_IsOK(res1)) {
6273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6274 }
6275 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6276 {
6277 arg2 = wxString_in_helper(obj1);
6278 if (arg2 == NULL) SWIG_fail;
6279 temp2 = true;
6280 }
6281 {
6282 PyThreadState* __tstate = wxPyBeginAllowThreads();
6283 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6289 }
6290 {
6291 if (temp2)
6292 delete arg2;
6293 }
6294 return resultobj;
6295fail:
6296 {
6297 if (temp2)
6298 delete arg2;
6299 }
6300 return NULL;
6301}
6302
6303
50f151d7
RD
6304SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6305 PyObject *resultobj = 0;
6306 wxComboBox *arg1 = (wxComboBox *) 0 ;
6307 int arg2 ;
6308 wxString *arg3 = 0 ;
6309 void *argp1 = 0 ;
6310 int res1 = 0 ;
6311 int val2 ;
6312 int ecode2 = 0 ;
6313 bool temp3 = false ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 PyObject * obj2 = 0 ;
6317 char * kwnames[] = {
6318 (char *) "self",(char *) "n",(char *) "string", NULL
6319 };
6320
6321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6325 }
6326 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6327 ecode2 = SWIG_AsVal_int(obj1, &val2);
6328 if (!SWIG_IsOK(ecode2)) {
6329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6330 }
6331 arg2 = static_cast< int >(val2);
6332 {
6333 arg3 = wxString_in_helper(obj2);
6334 if (arg3 == NULL) SWIG_fail;
6335 temp3 = true;
6336 }
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 (arg1)->SetString(arg2,(wxString const &)*arg3);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_Py_Void();
6344 {
6345 if (temp3)
6346 delete arg3;
6347 }
6348 return resultobj;
6349fail:
6350 {
6351 if (temp3)
6352 delete arg3;
6353 }
6354 return NULL;
6355}
6356
6357
554f62e9
RD
6358SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = 0;
6360 wxComboBox *arg1 = (wxComboBox *) 0 ;
6361 bool arg2 ;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 bool val2 ;
6365 int ecode2 = 0 ;
6366 PyObject * obj0 = 0 ;
6367 PyObject * obj1 = 0 ;
6368 char * kwnames[] = {
6369 (char *) "self",(char *) "editable", NULL
6370 };
6371
6372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6374 if (!SWIG_IsOK(res1)) {
6375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6376 }
6377 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6379 if (!SWIG_IsOK(ecode2)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6381 }
6382 arg2 = static_cast< bool >(val2);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetEditable(arg2);
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391fail:
6392 return NULL;
d55e5bfc
RD
6393}
6394
6395
554f62e9
RD
6396SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 PyObject *swig_obj[1] ;
6402
6403 if (!args) SWIG_fail;
6404 swig_obj[0] = args;
6405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6406 if (!SWIG_IsOK(res1)) {
6407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6408 }
6409 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->SetInsertionPointEnd();
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418fail:
6419 return NULL;
6420}
6421
6422
6423SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 long arg2 ;
6427 long arg3 ;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 long val2 ;
6431 int ecode2 = 0 ;
6432 long val3 ;
6433 int ecode3 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 PyObject * obj2 = 0 ;
6437 char * kwnames[] = {
f460c29d 6438 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6445 }
6446 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6447 ecode2 = SWIG_AsVal_long(obj1, &val2);
6448 if (!SWIG_IsOK(ecode2)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6450 }
6451 arg2 = static_cast< long >(val2);
6452 ecode3 = SWIG_AsVal_long(obj2, &val3);
6453 if (!SWIG_IsOK(ecode3)) {
6454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6455 }
6456 arg3 = static_cast< long >(val3);
6457 {
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 (arg1)->Remove(arg2,arg3);
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_Py_Void();
6464 return resultobj;
6465fail:
6466 return NULL;
d55e5bfc
RD
6467}
6468
6469
554f62e9
RD
6470SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxComboBox *arg1 = (wxComboBox *) 0 ;
6473 bool result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6483 }
6484 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 {
6492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6493 }
6494 return resultobj;
6495fail:
6496 return NULL;
d55e5bfc
RD
6497}
6498
6499
554f62e9
RD
6500SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Undo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522fail:
6523 return NULL;
d55e5bfc
RD
6524}
6525
6526
554f62e9
RD
6527SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->Redo();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549fail:
6550 return NULL;
d55e5bfc
RD
6551}
6552
6553
554f62e9
RD
6554SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6566 }
6567 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 (arg1)->SelectAll();
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_Py_Void();
6575 return resultobj;
6576fail:
6577 return NULL;
f78cc896
RD
6578}
6579
6580
554f62e9
RD
6581SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6582 PyObject *resultobj = 0;
6583 wxComboBox *arg1 = (wxComboBox *) 0 ;
6584 bool result;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 PyObject *swig_obj[1] ;
6588
6589 if (!args) SWIG_fail;
6590 swig_obj[0] = args;
6591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6592 if (!SWIG_IsOK(res1)) {
6593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6594 }
6595 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 return resultobj;
6606fail:
6607 return NULL;
9d7dfdff
RD
6608}
6609
6610
554f62e9
RD
6611SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxComboBox *arg1 = (wxComboBox *) 0 ;
6614 bool result;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 result = (bool)((wxComboBox const *)arg1)->CanCut();
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 {
6633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6634 }
6635 return resultobj;
6636fail:
6637 return NULL;
121b9a67
RD
6638}
6639
6640
554f62e9
RD
6641SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6642 PyObject *resultobj = 0;
6643 wxComboBox *arg1 = (wxComboBox *) 0 ;
6644 bool result;
6645 void *argp1 = 0 ;
6646 int res1 = 0 ;
6647 PyObject *swig_obj[1] ;
6648
6649 if (!args) SWIG_fail;
6650 swig_obj[0] = args;
6651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6652 if (!SWIG_IsOK(res1)) {
6653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6654 }
6655 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 {
6663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6664 }
6665 return resultobj;
6666fail:
6667 return NULL;
121b9a67
RD
6668}
6669
6670
554f62e9
RD
6671SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6672 PyObject *resultobj = 0;
6673 wxComboBox *arg1 = (wxComboBox *) 0 ;
6674 bool result;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject *swig_obj[1] ;
6678
6679 if (!args) SWIG_fail;
6680 swig_obj[0] = args;
6681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6684 }
6685 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6694 }
6695 return resultobj;
6696fail:
6697 return NULL;
d55e5bfc
RD
6698}
6699
6700
554f62e9
RD
6701SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 wxComboBox *arg1 = (wxComboBox *) 0 ;
6704 bool result;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 PyObject *swig_obj[1] ;
6708
6709 if (!args) SWIG_fail;
6710 swig_obj[0] = args;
6711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6712 if (!SWIG_IsOK(res1)) {
6713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6714 }
6715 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6724 }
6725 return resultobj;
6726fail:
6727 return NULL;
d55e5bfc
RD
6728}
6729
6730
554f62e9
RD
6731SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6734 SwigValueWrapper<wxVisualAttributes > result;
6735 int val1 ;
6736 int ecode1 = 0 ;
6737 PyObject * obj0 = 0 ;
6738 char * kwnames[] = {
6739 (char *) "variant", NULL
6740 };
6741
6742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6743 if (obj0) {
6744 ecode1 = SWIG_AsVal_int(obj0, &val1);
6745 if (!SWIG_IsOK(ecode1)) {
6746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6747 }
6748 arg1 = static_cast< wxWindowVariant >(val1);
6749 }
6750 {
6751 if (!wxPyCheckForApp()) SWIG_fail;
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = wxComboBox::GetClassDefaultAttributes(arg1);
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6758 return resultobj;
6759fail:
6760 return NULL;
d55e5bfc
RD
6761}
6762
6763
554f62e9
RD
6764SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *obj;
6766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6767 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6768 return SWIG_Py_Void();
b519803b
RD
6769}
6770
554f62e9
RD
6771SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 return SWIG_Python_InitShadowInstance(args);
6773}
b519803b 6774
554f62e9
RD
6775SWIGINTERN int GaugeNameStr_set(PyObject *) {
6776 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6777 return 1;
b519803b
RD
6778}
6779
6780
554f62e9
RD
6781SWIGINTERN PyObject *GaugeNameStr_get(void) {
6782 PyObject *pyobj = 0;
6783
6784 {
6785#if wxUSE_UNICODE
6786 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6787#else
6788 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6789#endif
6790 }
6791 return pyobj;
6792}
6793
6794
6795SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxWindow *arg1 = (wxWindow *) 0 ;
6798 int arg2 = (int) -1 ;
6799 int arg3 = (int) 100 ;
6800 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6801 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6802 wxSize const &arg5_defvalue = wxDefaultSize ;
6803 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6804 long arg6 = (long) wxGA_HORIZONTAL ;
6805 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6806 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6807 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6808 wxString *arg8 = (wxString *) &arg8_defvalue ;
6809 wxGauge *result = 0 ;
6810 void *argp1 = 0 ;
6811 int res1 = 0 ;
6812 int val2 ;
6813 int ecode2 = 0 ;
6814 int val3 ;
6815 int ecode3 = 0 ;
6816 wxPoint temp4 ;
6817 wxSize temp5 ;
6818 long val6 ;
6819 int ecode6 = 0 ;
6820 void *argp7 = 0 ;
6821 int res7 = 0 ;
6822 bool temp8 = false ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 PyObject * obj3 = 0 ;
6827 PyObject * obj4 = 0 ;
6828 PyObject * obj5 = 0 ;
6829 PyObject * obj6 = 0 ;
6830 PyObject * obj7 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6839 }
6840 arg1 = reinterpret_cast< wxWindow * >(argp1);
6841 if (obj1) {
6842 ecode2 = SWIG_AsVal_int(obj1, &val2);
6843 if (!SWIG_IsOK(ecode2)) {
6844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6845 }
6846 arg2 = static_cast< int >(val2);
6847 }
6848 if (obj2) {
6849 ecode3 = SWIG_AsVal_int(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6852 }
6853 arg3 = static_cast< int >(val3);
6854 }
6855 if (obj3) {
b519803b 6856 {
554f62e9
RD
6857 arg4 = &temp4;
6858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
b519803b 6859 }
554f62e9
RD
6860 }
6861 if (obj4) {
b519803b 6862 {
554f62e9
RD
6863 arg5 = &temp5;
6864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
b519803b 6865 }
554f62e9
RD
6866 }
6867 if (obj5) {
6868 ecode6 = SWIG_AsVal_long(obj5, &val6);
6869 if (!SWIG_IsOK(ecode6)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6871 }
6872 arg6 = static_cast< long >(val6);
6873 }
6874 if (obj6) {
6875 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6876 if (!SWIG_IsOK(res7)) {
6877 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6878 }
6879 if (!argp7) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
b519803b 6881 }
554f62e9
RD
6882 arg7 = reinterpret_cast< wxValidator * >(argp7);
6883 }
6884 if (obj7) {
b519803b 6885 {
554f62e9
RD
6886 arg8 = wxString_in_helper(obj7);
6887 if (arg8 == NULL) SWIG_fail;
6888 temp8 = true;
b519803b 6889 }
554f62e9
RD
6890 }
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6899 {
6900 if (temp8)
6901 delete arg8;
6902 }
6903 return resultobj;
6904fail:
6905 {
6906 if (temp8)
6907 delete arg8;
6908 }
6909 return NULL;
b519803b
RD
6910}
6911
6912
554f62e9
RD
6913SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6914 PyObject *resultobj = 0;
6915 wxGauge *result = 0 ;
6916
6917 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6918 {
6919 if (!wxPyCheckForApp()) SWIG_fail;
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxGauge *)new wxGauge();
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6926 return resultobj;
6927fail:
6928 return NULL;
6929}
6930
6931
6932SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxGauge *arg1 = (wxGauge *) 0 ;
6935 wxWindow *arg2 = (wxWindow *) 0 ;
6936 int arg3 = (int) -1 ;
6937 int arg4 = (int) 100 ;
6938 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6939 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6940 wxSize const &arg6_defvalue = wxDefaultSize ;
6941 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6942 long arg7 = (long) wxGA_HORIZONTAL ;
6943 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6944 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6945 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6946 wxString *arg9 = (wxString *) &arg9_defvalue ;
6947 bool result;
6948 void *argp1 = 0 ;
6949 int res1 = 0 ;
6950 void *argp2 = 0 ;
6951 int res2 = 0 ;
6952 int val3 ;
6953 int ecode3 = 0 ;
6954 int val4 ;
6955 int ecode4 = 0 ;
6956 wxPoint temp5 ;
6957 wxSize temp6 ;
6958 long val7 ;
6959 int ecode7 = 0 ;
6960 void *argp8 = 0 ;
6961 int res8 = 0 ;
6962 bool temp9 = false ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 PyObject * obj2 = 0 ;
6966 PyObject * obj3 = 0 ;
6967 PyObject * obj4 = 0 ;
6968 PyObject * obj5 = 0 ;
6969 PyObject * obj6 = 0 ;
6970 PyObject * obj7 = 0 ;
6971 PyObject * obj8 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6980 }
6981 arg1 = reinterpret_cast< wxGauge * >(argp1);
6982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6983 if (!SWIG_IsOK(res2)) {
6984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6985 }
6986 arg2 = reinterpret_cast< wxWindow * >(argp2);
6987 if (obj2) {
6988 ecode3 = SWIG_AsVal_int(obj2, &val3);
6989 if (!SWIG_IsOK(ecode3)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6991 }
6992 arg3 = static_cast< int >(val3);
6993 }
6994 if (obj3) {
6995 ecode4 = SWIG_AsVal_int(obj3, &val4);
6996 if (!SWIG_IsOK(ecode4)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6998 }
6999 arg4 = static_cast< int >(val4);
7000 }
7001 if (obj4) {
b519803b 7002 {
554f62e9
RD
7003 arg5 = &temp5;
7004 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
b519803b 7005 }
554f62e9
RD
7006 }
7007 if (obj5) {
b519803b 7008 {
554f62e9
RD
7009 arg6 = &temp6;
7010 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
b519803b 7011 }
554f62e9
RD
7012 }
7013 if (obj6) {
7014 ecode7 = SWIG_AsVal_long(obj6, &val7);
7015 if (!SWIG_IsOK(ecode7)) {
7016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7017 }
7018 arg7 = static_cast< long >(val7);
7019 }
7020 if (obj7) {
7021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7022 if (!SWIG_IsOK(res8)) {
7023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
b519803b 7024 }
554f62e9
RD
7025 if (!argp8) {
7026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 arg8 = reinterpret_cast< wxValidator * >(argp8);
7029 }
7030 if (obj8) {
b519803b 7031 {
554f62e9
RD
7032 arg9 = wxString_in_helper(obj8);
7033 if (arg9 == NULL) SWIG_fail;
7034 temp9 = true;
b519803b 7035 }
554f62e9
RD
7036 }
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7045 }
7046 {
7047 if (temp9)
7048 delete arg9;
7049 }
7050 return resultobj;
7051fail:
7052 {
7053 if (temp9)
7054 delete arg9;
7055 }
7056 return NULL;
7057}
7058
7059
7060SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj = 0;
7062 wxGauge *arg1 = (wxGauge *) 0 ;
7063 int arg2 ;
7064 void *argp1 = 0 ;
7065 int res1 = 0 ;
7066 int val2 ;
7067 int ecode2 = 0 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 char * kwnames[] = {
7071 (char *) "self",(char *) "range", NULL
7072 };
7073
7074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7076 if (!SWIG_IsOK(res1)) {
7077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7078 }
7079 arg1 = reinterpret_cast< wxGauge * >(argp1);
7080 ecode2 = SWIG_AsVal_int(obj1, &val2);
7081 if (!SWIG_IsOK(ecode2)) {
7082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7083 }
7084 arg2 = static_cast< int >(val2);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetRange(arg2);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093fail:
7094 return NULL;
b519803b
RD
7095}
7096
7097
554f62e9
RD
7098SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 int result;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxGauge * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (int)((wxGauge const *)arg1)->GetRange();
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121fail:
7122 return NULL;
7123}
7124
7125
7126SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj = 0;
7128 wxGauge *arg1 = (wxGauge *) 0 ;
7129 int arg2 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 int val2 ;
7133 int ecode2 = 0 ;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7136 char * kwnames[] = {
7137 (char *) "self",(char *) "pos", NULL
7138 };
7139
7140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7144 }
7145 arg1 = reinterpret_cast< wxGauge * >(argp1);
7146 ecode2 = SWIG_AsVal_int(obj1, &val2);
7147 if (!SWIG_IsOK(ecode2)) {
7148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7149 }
7150 arg2 = static_cast< int >(val2);
7151 {
7152 PyThreadState* __tstate = wxPyBeginAllowThreads();
7153 (arg1)->SetValue(arg2);
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_Py_Void();
7158 return resultobj;
7159fail:
7160 return NULL;
b519803b
RD
7161}
7162
7163
554f62e9
RD
7164SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxGauge *arg1 = (wxGauge *) 0 ;
7167 int result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7177 }
7178 arg1 = reinterpret_cast< wxGauge * >(argp1);
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (int)((wxGauge const *)arg1)->GetValue();
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_From_int(static_cast< int >(result));
7186 return resultobj;
7187fail:
7188 return NULL;
b519803b
RD
7189}
7190
7191
554f62e9
RD
7192SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 PyObject *resultobj = 0;
7194 wxGauge *arg1 = (wxGauge *) 0 ;
7195 bool result;
7196 void *argp1 = 0 ;
7197 int res1 = 0 ;
7198 PyObject *swig_obj[1] ;
7199
7200 if (!args) SWIG_fail;
7201 swig_obj[0] = args;
7202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7203 if (!SWIG_IsOK(res1)) {
7204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7205 }
7206 arg1 = reinterpret_cast< wxGauge * >(argp1);
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 result = (bool)((wxGauge const *)arg1)->IsVertical();
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 {
7214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7215 }
7216 return resultobj;
7217fail:
7218 return NULL;
7219}
7220
7221
7222SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = 0;
7224 wxGauge *arg1 = (wxGauge *) 0 ;
7225 int arg2 ;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 int val2 ;
7229 int ecode2 = 0 ;
7230 PyObject * obj0 = 0 ;
7231 PyObject * obj1 = 0 ;
7232 char * kwnames[] = {
7233 (char *) "self",(char *) "w", NULL
7234 };
7235
7236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7238 if (!SWIG_IsOK(res1)) {
7239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7240 }
7241 arg1 = reinterpret_cast< wxGauge * >(argp1);
7242 ecode2 = SWIG_AsVal_int(obj1, &val2);
7243 if (!SWIG_IsOK(ecode2)) {
7244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7245 }
7246 arg2 = static_cast< int >(val2);
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 (arg1)->SetShadowWidth(arg2);
7250 wxPyEndAllowThreads(__tstate);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_Py_Void();
7254 return resultobj;
7255fail:
7256 return NULL;
f20a2e1f
RD
7257}
7258
7259
554f62e9
RD
7260SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7261 PyObject *resultobj = 0;
7262 wxGauge *arg1 = (wxGauge *) 0 ;
7263 int result;
7264 void *argp1 = 0 ;
7265 int res1 = 0 ;
7266 PyObject *swig_obj[1] ;
7267
7268 if (!args) SWIG_fail;
7269 swig_obj[0] = args;
7270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7271 if (!SWIG_IsOK(res1)) {
7272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7273 }
7274 arg1 = reinterpret_cast< wxGauge * >(argp1);
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 resultobj = SWIG_From_int(static_cast< int >(result));
7282 return resultobj;
7283fail:
7284 return NULL;
7285}
7286
7287
7288SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj = 0;
7290 wxGauge *arg1 = (wxGauge *) 0 ;
7291 int arg2 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294 int val2 ;
7295 int ecode2 = 0 ;
7296 PyObject * obj0 = 0 ;
7297 PyObject * obj1 = 0 ;
7298 char * kwnames[] = {
7299 (char *) "self",(char *) "w", NULL
7300 };
7301
7302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7306 }
7307 arg1 = reinterpret_cast< wxGauge * >(argp1);
7308 ecode2 = SWIG_AsVal_int(obj1, &val2);
7309 if (!SWIG_IsOK(ecode2)) {
7310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7311 }
7312 arg2 = static_cast< int >(val2);
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 (arg1)->SetBezelFace(arg2);
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_Py_Void();
7320 return resultobj;
7321fail:
7322 return NULL;
d55e5bfc 7323}
554f62e9
RD
7324
7325
7326SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxGauge *arg1 = (wxGauge *) 0 ;
7329 int result;
7330 void *argp1 = 0 ;
7331 int res1 = 0 ;
7332 PyObject *swig_obj[1] ;
7333
7334 if (!args) SWIG_fail;
7335 swig_obj[0] = args;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7339 }
7340 arg1 = reinterpret_cast< wxGauge * >(argp1);
7341 {
7342 PyThreadState* __tstate = wxPyBeginAllowThreads();
7343 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 resultobj = SWIG_From_int(static_cast< int >(result));
7348 return resultobj;
7349fail:
7350 return NULL;
7351}
7352
7353
7354SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7355 PyObject *resultobj = 0;
7356 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7357 SwigValueWrapper<wxVisualAttributes > result;
7358 int val1 ;
7359 int ecode1 = 0 ;
7360 PyObject * obj0 = 0 ;
7361 char * kwnames[] = {
7362 (char *) "variant", NULL
7363 };
7364
7365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7366 if (obj0) {
7367 ecode1 = SWIG_AsVal_int(obj0, &val1);
7368 if (!SWIG_IsOK(ecode1)) {
7369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7370 }
7371 arg1 = static_cast< wxWindowVariant >(val1);
7372 }
7373 {
7374 if (!wxPyCheckForApp()) SWIG_fail;
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = wxGauge::GetClassDefaultAttributes(arg1);
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7381 return resultobj;
7382fail:
7383 return NULL;
d55e5bfc
RD
7384}
7385
7386
554f62e9
RD
7387SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7388 PyObject *obj;
7389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7390 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7391 return SWIG_Py_Void();
7392}
7393
7394SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 return SWIG_Python_InitShadowInstance(args);
7396}
7397
7398SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7399 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7400 return 1;
7401}
7402
7403
7404SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7405 PyObject *pyobj = 0;
7406
7407 {
d55e5bfc 7408#if wxUSE_UNICODE
554f62e9 7409 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7410#else
554f62e9 7411 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7412#endif
554f62e9
RD
7413 }
7414 return pyobj;
d55e5bfc
RD
7415}
7416
7417
554f62e9
RD
7418SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7419 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7420 return 1;
d55e5bfc
RD
7421}
7422
7423
554f62e9
RD
7424SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7425 PyObject *pyobj = 0;
7426
7427 {
7428#if wxUSE_UNICODE
7429 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7430#else
7431 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7432#endif
7433 }
7434 return pyobj;
7435}
7436
7437
7438SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7439 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7440 return 1;
7441}
7442
7443
7444SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7445 PyObject *pyobj = 0;
7446
7447 {
7448#if wxUSE_UNICODE
7449 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7450#else
7451 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7452#endif
7453 }
7454 return pyobj;
7455}
7456
7457
7458SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj = 0;
7460 wxWindow *arg1 = (wxWindow *) 0 ;
7461 int arg2 = (int) -1 ;
7462 wxString const &arg3_defvalue = wxPyEmptyString ;
7463 wxString *arg3 = (wxString *) &arg3_defvalue ;
7464 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7465 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7466 wxSize const &arg5_defvalue = wxDefaultSize ;
7467 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7468 long arg6 = (long) 0 ;
7469 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7470 wxString *arg7 = (wxString *) &arg7_defvalue ;
7471 wxStaticBox *result = 0 ;
7472 void *argp1 = 0 ;
7473 int res1 = 0 ;
7474 int val2 ;
7475 int ecode2 = 0 ;
7476 bool temp3 = false ;
7477 wxPoint temp4 ;
7478 wxSize temp5 ;
7479 long val6 ;
7480 int ecode6 = 0 ;
7481 bool temp7 = false ;
7482 PyObject * obj0 = 0 ;
7483 PyObject * obj1 = 0 ;
7484 PyObject * obj2 = 0 ;
7485 PyObject * obj3 = 0 ;
7486 PyObject * obj4 = 0 ;
7487 PyObject * obj5 = 0 ;
7488 PyObject * obj6 = 0 ;
7489 char * kwnames[] = {
7490 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7491 };
7492
7493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7495 if (!SWIG_IsOK(res1)) {
7496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7497 }
7498 arg1 = reinterpret_cast< wxWindow * >(argp1);
7499 if (obj1) {
7500 ecode2 = SWIG_AsVal_int(obj1, &val2);
7501 if (!SWIG_IsOK(ecode2)) {
7502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7503 }
7504 arg2 = static_cast< int >(val2);
7505 }
7506 if (obj2) {
d55e5bfc 7507 {
554f62e9
RD
7508 arg3 = wxString_in_helper(obj2);
7509 if (arg3 == NULL) SWIG_fail;
7510 temp3 = true;
d55e5bfc 7511 }
554f62e9
RD
7512 }
7513 if (obj3) {
d55e5bfc 7514 {
554f62e9
RD
7515 arg4 = &temp4;
7516 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7517 }
554f62e9
RD
7518 }
7519 if (obj4) {
d55e5bfc 7520 {
554f62e9
RD
7521 arg5 = &temp5;
7522 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7523 }
554f62e9
RD
7524 }
7525 if (obj5) {
7526 ecode6 = SWIG_AsVal_long(obj5, &val6);
7527 if (!SWIG_IsOK(ecode6)) {
7528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7529 }
7530 arg6 = static_cast< long >(val6);
7531 }
7532 if (obj6) {
d55e5bfc 7533 {
554f62e9
RD
7534 arg7 = wxString_in_helper(obj6);
7535 if (arg7 == NULL) SWIG_fail;
7536 temp7 = true;
d55e5bfc 7537 }
554f62e9
RD
7538 }
7539 {
7540 if (!wxPyCheckForApp()) SWIG_fail;
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7547 {
7548 if (temp3)
7549 delete arg3;
7550 }
7551 {
7552 if (temp7)
7553 delete arg7;
7554 }
7555 return resultobj;
7556fail:
7557 {
7558 if (temp3)
7559 delete arg3;
7560 }
7561 {
7562 if (temp7)
7563 delete arg7;
7564 }
7565 return NULL;
d55e5bfc
RD
7566}
7567
7568
554f62e9
RD
7569SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7570 PyObject *resultobj = 0;
7571 wxStaticBox *result = 0 ;
7572
7573 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7574 {
7575 if (!wxPyCheckForApp()) SWIG_fail;
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 result = (wxStaticBox *)new wxStaticBox();
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
7581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7582 return resultobj;
7583fail:
7584 return NULL;
7585}
7586
7587
7588SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj = 0;
7590 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7591 wxWindow *arg2 = (wxWindow *) 0 ;
7592 int arg3 = (int) -1 ;
7593 wxString const &arg4_defvalue = wxPyEmptyString ;
7594 wxString *arg4 = (wxString *) &arg4_defvalue ;
7595 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7596 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7597 wxSize const &arg6_defvalue = wxDefaultSize ;
7598 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7599 long arg7 = (long) 0 ;
7600 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7601 wxString *arg8 = (wxString *) &arg8_defvalue ;
7602 bool result;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 void *argp2 = 0 ;
7606 int res2 = 0 ;
7607 int val3 ;
7608 int ecode3 = 0 ;
7609 bool temp4 = false ;
7610 wxPoint temp5 ;
7611 wxSize temp6 ;
7612 long val7 ;
7613 int ecode7 = 0 ;
7614 bool temp8 = false ;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7617 PyObject * obj2 = 0 ;
7618 PyObject * obj3 = 0 ;
7619 PyObject * obj4 = 0 ;
7620 PyObject * obj5 = 0 ;
7621 PyObject * obj6 = 0 ;
7622 PyObject * obj7 = 0 ;
7623 char * kwnames[] = {
7624 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7625 };
7626
7627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7631 }
7632 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7634 if (!SWIG_IsOK(res2)) {
7635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7636 }
7637 arg2 = reinterpret_cast< wxWindow * >(argp2);
7638 if (obj2) {
7639 ecode3 = SWIG_AsVal_int(obj2, &val3);
7640 if (!SWIG_IsOK(ecode3)) {
7641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7642 }
7643 arg3 = static_cast< int >(val3);
7644 }
7645 if (obj3) {
093d3ff1 7646 {
554f62e9
RD
7647 arg4 = wxString_in_helper(obj3);
7648 if (arg4 == NULL) SWIG_fail;
7649 temp4 = true;
093d3ff1 7650 }
554f62e9
RD
7651 }
7652 if (obj4) {
d55e5bfc 7653 {
554f62e9
RD
7654 arg5 = &temp5;
7655 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7656 }
554f62e9
RD
7657 }
7658 if (obj5) {
d55e5bfc 7659 {
554f62e9
RD
7660 arg6 = &temp6;
7661 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7662 }
554f62e9
RD
7663 }
7664 if (obj6) {
7665 ecode7 = SWIG_AsVal_long(obj6, &val7);
7666 if (!SWIG_IsOK(ecode7)) {
7667 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7668 }
7669 arg7 = static_cast< long >(val7);
7670 }
7671 if (obj7) {
093d3ff1 7672 {
554f62e9
RD
7673 arg8 = wxString_in_helper(obj7);
7674 if (arg8 == NULL) SWIG_fail;
7675 temp8 = true;
093d3ff1 7676 }
554f62e9
RD
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 {
7685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7686 }
7687 {
7688 if (temp4)
7689 delete arg4;
7690 }
7691 {
7692 if (temp8)
7693 delete arg8;
7694 }
7695 return resultobj;
7696fail:
7697 {
7698 if (temp4)
7699 delete arg4;
7700 }
7701 {
7702 if (temp8)
7703 delete arg8;
7704 }
7705 return NULL;
7706}
d55e5bfc 7707
554f62e9
RD
7708
7709SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj = 0;
7711 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7712 SwigValueWrapper<wxVisualAttributes > result;
7713 int val1 ;
7714 int ecode1 = 0 ;
7715 PyObject * obj0 = 0 ;
7716 char * kwnames[] = {
7717 (char *) "variant", NULL
7718 };
7719
7720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7721 if (obj0) {
7722 ecode1 = SWIG_AsVal_int(obj0, &val1);
7723 if (!SWIG_IsOK(ecode1)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7725 }
7726 arg1 = static_cast< wxWindowVariant >(val1);
7727 }
7728 {
7729 if (!wxPyCheckForApp()) SWIG_fail;
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7736 return resultobj;
7737fail:
7738 return NULL;
7739}
7740
7741
7742SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7743 PyObject *obj;
7744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7745 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7746 return SWIG_Py_Void();
7747}
7748
7749SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7750 return SWIG_Python_InitShadowInstance(args);
7751}
7752
7753SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj = 0;
7755 wxWindow *arg1 = (wxWindow *) 0 ;
7756 int arg2 = (int) -1 ;
7757 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7758 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7759 wxSize const &arg4_defvalue = wxDefaultSize ;
7760 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7761 long arg5 = (long) wxLI_HORIZONTAL ;
7762 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7763 wxString *arg6 = (wxString *) &arg6_defvalue ;
7764 wxStaticLine *result = 0 ;
7765 void *argp1 = 0 ;
7766 int res1 = 0 ;
7767 int val2 ;
7768 int ecode2 = 0 ;
7769 wxPoint temp3 ;
7770 wxSize temp4 ;
7771 long val5 ;
7772 int ecode5 = 0 ;
7773 bool temp6 = false ;
7774 PyObject * obj0 = 0 ;
7775 PyObject * obj1 = 0 ;
7776 PyObject * obj2 = 0 ;
7777 PyObject * obj3 = 0 ;
7778 PyObject * obj4 = 0 ;
7779 PyObject * obj5 = 0 ;
7780 char * kwnames[] = {
7781 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7782 };
7783
7784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7786 if (!SWIG_IsOK(res1)) {
7787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7788 }
7789 arg1 = reinterpret_cast< wxWindow * >(argp1);
7790 if (obj1) {
7791 ecode2 = SWIG_AsVal_int(obj1, &val2);
7792 if (!SWIG_IsOK(ecode2)) {
7793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7794 }
7795 arg2 = static_cast< int >(val2);
7796 }
7797 if (obj2) {
093d3ff1 7798 {
554f62e9
RD
7799 arg3 = &temp3;
7800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7801 }
554f62e9
RD
7802 }
7803 if (obj3) {
d55e5bfc 7804 {
554f62e9
RD
7805 arg4 = &temp4;
7806 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7807 }
554f62e9
RD
7808 }
7809 if (obj4) {
7810 ecode5 = SWIG_AsVal_long(obj4, &val5);
7811 if (!SWIG_IsOK(ecode5)) {
7812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7813 }
7814 arg5 = static_cast< long >(val5);
7815 }
7816 if (obj5) {
7817 {
7818 arg6 = wxString_in_helper(obj5);
7819 if (arg6 == NULL) SWIG_fail;
7820 temp6 = true;
7821 }
7822 }
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7831 {
7832 if (temp6)
7833 delete arg6;
7834 }
7835 return resultobj;
7836fail:
7837 {
7838 if (temp6)
7839 delete arg6;
7840 }
7841 return NULL;
d55e5bfc
RD
7842}
7843
7844
554f62e9
RD
7845SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7846 PyObject *resultobj = 0;
7847 wxStaticLine *result = 0 ;
7848
7849 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7850 {
7851 if (!wxPyCheckForApp()) SWIG_fail;
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (wxStaticLine *)new wxStaticLine();
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj = 0;
7866 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7867 wxWindow *arg2 = (wxWindow *) 0 ;
7868 int arg3 = (int) -1 ;
7869 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7870 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7871 wxSize const &arg5_defvalue = wxDefaultSize ;
7872 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7873 long arg6 = (long) wxLI_HORIZONTAL ;
7874 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7875 wxString *arg7 = (wxString *) &arg7_defvalue ;
7876 bool result;
7877 void *argp1 = 0 ;
7878 int res1 = 0 ;
7879 void *argp2 = 0 ;
7880 int res2 = 0 ;
7881 int val3 ;
7882 int ecode3 = 0 ;
7883 wxPoint temp4 ;
7884 wxSize temp5 ;
7885 long val6 ;
7886 int ecode6 = 0 ;
7887 bool temp7 = false ;
7888 PyObject * obj0 = 0 ;
7889 PyObject * obj1 = 0 ;
7890 PyObject * obj2 = 0 ;
7891 PyObject * obj3 = 0 ;
7892 PyObject * obj4 = 0 ;
7893 PyObject * obj5 = 0 ;
7894 PyObject * obj6 = 0 ;
7895 char * kwnames[] = {
7896 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7897 };
7898
7899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7901 if (!SWIG_IsOK(res1)) {
7902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7903 }
7904 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7906 if (!SWIG_IsOK(res2)) {
7907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7908 }
7909 arg2 = reinterpret_cast< wxWindow * >(argp2);
7910 if (obj2) {
7911 ecode3 = SWIG_AsVal_int(obj2, &val3);
7912 if (!SWIG_IsOK(ecode3)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7914 }
7915 arg3 = static_cast< int >(val3);
7916 }
7917 if (obj3) {
d55e5bfc 7918 {
554f62e9
RD
7919 arg4 = &temp4;
7920 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7921 }
554f62e9
RD
7922 }
7923 if (obj4) {
093d3ff1 7924 {
554f62e9
RD
7925 arg5 = &temp5;
7926 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7927 }
554f62e9
RD
7928 }
7929 if (obj5) {
7930 ecode6 = SWIG_AsVal_long(obj5, &val6);
7931 if (!SWIG_IsOK(ecode6)) {
7932 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7933 }
7934 arg6 = static_cast< long >(val6);
7935 }
7936 if (obj6) {
7937 {
7938 arg7 = wxString_in_helper(obj6);
7939 if (arg7 == NULL) SWIG_fail;
7940 temp7 = true;
7941 }
7942 }
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 {
7950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7951 }
7952 {
7953 if (temp7)
7954 delete arg7;
7955 }
7956 return resultobj;
7957fail:
7958 {
7959 if (temp7)
7960 delete arg7;
7961 }
7962 return NULL;
d55e5bfc
RD
7963}
7964
7965
554f62e9
RD
7966SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7967 PyObject *resultobj = 0;
7968 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7969 bool result;
7970 void *argp1 = 0 ;
7971 int res1 = 0 ;
7972 PyObject *swig_obj[1] ;
7973
7974 if (!args) SWIG_fail;
7975 swig_obj[0] = args;
7976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7977 if (!SWIG_IsOK(res1)) {
7978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7979 }
7980 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 {
7988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7989 }
7990 return resultobj;
7991fail:
7992 return NULL;
7993}
7994
7995
7996SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7997 PyObject *resultobj = 0;
7998 int result;
7999
8000 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 result = (int)wxStaticLine::GetDefaultSize();
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 resultobj = SWIG_From_int(static_cast< int >(result));
8008 return resultobj;
8009fail:
8010 return NULL;
8011}
8012
8013
8014SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj = 0;
8016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8017 SwigValueWrapper<wxVisualAttributes > result;
8018 int val1 ;
8019 int ecode1 = 0 ;
8020 PyObject * obj0 = 0 ;
8021 char * kwnames[] = {
8022 (char *) "variant", NULL
8023 };
8024
8025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8026 if (obj0) {
8027 ecode1 = SWIG_AsVal_int(obj0, &val1);
8028 if (!SWIG_IsOK(ecode1)) {
8029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8030 }
8031 arg1 = static_cast< wxWindowVariant >(val1);
8032 }
8033 {
8034 if (!wxPyCheckForApp()) SWIG_fail;
8035 PyThreadState* __tstate = wxPyBeginAllowThreads();
8036 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8041 return resultobj;
8042fail:
8043 return NULL;
8044}
8045
8046
8047SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 PyObject *obj;
8049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8050 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8051 return SWIG_Py_Void();
8052}
8053
8054SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8055 return SWIG_Python_InitShadowInstance(args);
8056}
8057
8058SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj = 0;
8060 wxWindow *arg1 = (wxWindow *) 0 ;
8061 int arg2 = (int) -1 ;
8062 wxString const &arg3_defvalue = wxPyEmptyString ;
8063 wxString *arg3 = (wxString *) &arg3_defvalue ;
8064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8066 wxSize const &arg5_defvalue = wxDefaultSize ;
8067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8068 long arg6 = (long) 0 ;
8069 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8070 wxString *arg7 = (wxString *) &arg7_defvalue ;
8071 wxStaticText *result = 0 ;
8072 void *argp1 = 0 ;
8073 int res1 = 0 ;
8074 int val2 ;
8075 int ecode2 = 0 ;
8076 bool temp3 = false ;
8077 wxPoint temp4 ;
8078 wxSize temp5 ;
8079 long val6 ;
8080 int ecode6 = 0 ;
8081 bool temp7 = false ;
8082 PyObject * obj0 = 0 ;
8083 PyObject * obj1 = 0 ;
8084 PyObject * obj2 = 0 ;
8085 PyObject * obj3 = 0 ;
8086 PyObject * obj4 = 0 ;
8087 PyObject * obj5 = 0 ;
8088 PyObject * obj6 = 0 ;
8089 char * kwnames[] = {
8090 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8091 };
8092
8093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8097 }
8098 arg1 = reinterpret_cast< wxWindow * >(argp1);
8099 if (obj1) {
8100 ecode2 = SWIG_AsVal_int(obj1, &val2);
8101 if (!SWIG_IsOK(ecode2)) {
8102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8103 }
8104 arg2 = static_cast< int >(val2);
8105 }
8106 if (obj2) {
d55e5bfc 8107 {
554f62e9
RD
8108 arg3 = wxString_in_helper(obj2);
8109 if (arg3 == NULL) SWIG_fail;
8110 temp3 = true;
d55e5bfc 8111 }
554f62e9
RD
8112 }
8113 if (obj3) {
d55e5bfc 8114 {
554f62e9
RD
8115 arg4 = &temp4;
8116 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8117 }
554f62e9
RD
8118 }
8119 if (obj4) {
093d3ff1 8120 {
554f62e9
RD
8121 arg5 = &temp5;
8122 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8123 }
554f62e9
RD
8124 }
8125 if (obj5) {
8126 ecode6 = SWIG_AsVal_long(obj5, &val6);
8127 if (!SWIG_IsOK(ecode6)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8129 }
8130 arg6 = static_cast< long >(val6);
8131 }
8132 if (obj6) {
d55e5bfc 8133 {
554f62e9
RD
8134 arg7 = wxString_in_helper(obj6);
8135 if (arg7 == NULL) SWIG_fail;
8136 temp7 = true;
d55e5bfc 8137 }
554f62e9
RD
8138 }
8139 {
8140 if (!wxPyCheckForApp()) SWIG_fail;
8141 PyThreadState* __tstate = wxPyBeginAllowThreads();
8142 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8147 {
8148 if (temp3)
8149 delete arg3;
8150 }
8151 {
8152 if (temp7)
8153 delete arg7;
8154 }
8155 return resultobj;
8156fail:
8157 {
8158 if (temp3)
8159 delete arg3;
8160 }
8161 {
8162 if (temp7)
8163 delete arg7;
8164 }
8165 return NULL;
d55e5bfc
RD
8166}
8167
8168
554f62e9
RD
8169SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8170 PyObject *resultobj = 0;
8171 wxStaticText *result = 0 ;
8172
8173 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8174 {
8175 if (!wxPyCheckForApp()) SWIG_fail;
8176 PyThreadState* __tstate = wxPyBeginAllowThreads();
8177 result = (wxStaticText *)new wxStaticText();
8178 wxPyEndAllowThreads(__tstate);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8182 return resultobj;
8183fail:
8184 return NULL;
8185}
8186
8187
8188SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8189 PyObject *resultobj = 0;
8190 wxStaticText *arg1 = (wxStaticText *) 0 ;
8191 wxWindow *arg2 = (wxWindow *) 0 ;
8192 int arg3 = (int) -1 ;
8193 wxString const &arg4_defvalue = wxPyEmptyString ;
8194 wxString *arg4 = (wxString *) &arg4_defvalue ;
8195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8197 wxSize const &arg6_defvalue = wxDefaultSize ;
8198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8199 long arg7 = (long) 0 ;
8200 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8201 wxString *arg8 = (wxString *) &arg8_defvalue ;
8202 bool result;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 bool temp4 = false ;
8210 wxPoint temp5 ;
8211 wxSize temp6 ;
8212 long val7 ;
8213 int ecode7 = 0 ;
8214 bool temp8 = false ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8218 PyObject * obj3 = 0 ;
8219 PyObject * obj4 = 0 ;
8220 PyObject * obj5 = 0 ;
8221 PyObject * obj6 = 0 ;
8222 PyObject * obj7 = 0 ;
8223 char * kwnames[] = {
8224 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8225 };
8226
8227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8229 if (!SWIG_IsOK(res1)) {
8230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8231 }
8232 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8234 if (!SWIG_IsOK(res2)) {
8235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8236 }
8237 arg2 = reinterpret_cast< wxWindow * >(argp2);
8238 if (obj2) {
8239 ecode3 = SWIG_AsVal_int(obj2, &val3);
8240 if (!SWIG_IsOK(ecode3)) {
8241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8242 }
8243 arg3 = static_cast< int >(val3);
8244 }
8245 if (obj3) {
d55e5bfc 8246 {
554f62e9
RD
8247 arg4 = wxString_in_helper(obj3);
8248 if (arg4 == NULL) SWIG_fail;
8249 temp4 = true;
8250 }
8251 }
8252 if (obj4) {
8253 {
8254 arg5 = &temp5;
8255 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8256 }
554f62e9
RD
8257 }
8258 if (obj5) {
093d3ff1 8259 {
554f62e9
RD
8260 arg6 = &temp6;
8261 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8262 }
554f62e9
RD
8263 }
8264 if (obj6) {
8265 ecode7 = SWIG_AsVal_long(obj6, &val7);
8266 if (!SWIG_IsOK(ecode7)) {
8267 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8268 }
8269 arg7 = static_cast< long >(val7);
8270 }
8271 if (obj7) {
093d3ff1 8272 {
554f62e9
RD
8273 arg8 = wxString_in_helper(obj7);
8274 if (arg8 == NULL) SWIG_fail;
8275 temp8 = true;
8276 }
8277 }
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 {
8285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8286 }
8287 {
8288 if (temp4)
8289 delete arg4;
8290 }
8291 {
8292 if (temp8)
8293 delete arg8;
8294 }
8295 return resultobj;
8296fail:
8297 {
8298 if (temp4)
8299 delete arg4;
8300 }
8301 {
8302 if (temp8)
8303 delete arg8;
8304 }
8305 return NULL;
8306}
8307
8308
8309SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj = 0;
8311 wxStaticText *arg1 = (wxStaticText *) 0 ;
8312 int arg2 ;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 int val2 ;
8316 int ecode2 = 0 ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 char * kwnames[] = {
8320 (char *) "self",(char *) "width", NULL
8321 };
8322
8323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8325 if (!SWIG_IsOK(res1)) {
8326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8327 }
8328 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8329 ecode2 = SWIG_AsVal_int(obj1, &val2);
8330 if (!SWIG_IsOK(ecode2)) {
8331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8332 }
8333 arg2 = static_cast< int >(val2);
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 (arg1)->Wrap(arg2);
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 resultobj = SWIG_Py_Void();
8341 return resultobj;
8342fail:
8343 return NULL;
8344}
8345
8346
8347SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj = 0;
8349 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8350 SwigValueWrapper<wxVisualAttributes > result;
8351 int val1 ;
8352 int ecode1 = 0 ;
8353 PyObject * obj0 = 0 ;
8354 char * kwnames[] = {
8355 (char *) "variant", NULL
8356 };
8357
8358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8359 if (obj0) {
8360 ecode1 = SWIG_AsVal_int(obj0, &val1);
8361 if (!SWIG_IsOK(ecode1)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8363 }
8364 arg1 = static_cast< wxWindowVariant >(val1);
8365 }
8366 {
8367 if (!wxPyCheckForApp()) SWIG_fail;
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = wxStaticText::GetClassDefaultAttributes(arg1);
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8374 return resultobj;
8375fail:
8376 return NULL;
8377}
8378
8379
8380SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8381 PyObject *obj;
8382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8383 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8384 return SWIG_Py_Void();
8385}
8386
8387SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8388 return SWIG_Python_InitShadowInstance(args);
8389}
8390
8391SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj = 0;
8393 wxWindow *arg1 = (wxWindow *) 0 ;
8394 int arg2 = (int) -1 ;
8395 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8396 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8397 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8398 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8399 wxSize const &arg5_defvalue = wxDefaultSize ;
8400 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8401 long arg6 = (long) 0 ;
8402 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8403 wxString *arg7 = (wxString *) &arg7_defvalue ;
8404 wxStaticBitmap *result = 0 ;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407 int val2 ;
8408 int ecode2 = 0 ;
8409 void *argp3 = 0 ;
8410 int res3 = 0 ;
8411 wxPoint temp4 ;
8412 wxSize temp5 ;
8413 long val6 ;
8414 int ecode6 = 0 ;
8415 bool temp7 = false ;
8416 PyObject * obj0 = 0 ;
8417 PyObject * obj1 = 0 ;
8418 PyObject * obj2 = 0 ;
8419 PyObject * obj3 = 0 ;
8420 PyObject * obj4 = 0 ;
8421 PyObject * obj5 = 0 ;
8422 PyObject * obj6 = 0 ;
8423 char * kwnames[] = {
8424 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8425 };
8426
8427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8429 if (!SWIG_IsOK(res1)) {
8430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8431 }
8432 arg1 = reinterpret_cast< wxWindow * >(argp1);
8433 if (obj1) {
8434 ecode2 = SWIG_AsVal_int(obj1, &val2);
8435 if (!SWIG_IsOK(ecode2)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8437 }
8438 arg2 = static_cast< int >(val2);
8439 }
8440 if (obj2) {
8441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8442 if (!SWIG_IsOK(res3)) {
8443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8444 }
8445 if (!argp3) {
8446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8447 }
554f62e9
RD
8448 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8449 }
8450 if (obj3) {
d55e5bfc 8451 {
554f62e9
RD
8452 arg4 = &temp4;
8453 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8454 }
554f62e9
RD
8455 }
8456 if (obj4) {
d55e5bfc 8457 {
554f62e9
RD
8458 arg5 = &temp5;
8459 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8460 }
554f62e9
RD
8461 }
8462 if (obj5) {
8463 ecode6 = SWIG_AsVal_long(obj5, &val6);
8464 if (!SWIG_IsOK(ecode6)) {
8465 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8466 }
8467 arg6 = static_cast< long >(val6);
8468 }
8469 if (obj6) {
093d3ff1 8470 {
554f62e9
RD
8471 arg7 = wxString_in_helper(obj6);
8472 if (arg7 == NULL) SWIG_fail;
8473 temp7 = true;
093d3ff1 8474 }
554f62e9
RD
8475 }
8476 {
8477 if (!wxPyCheckForApp()) SWIG_fail;
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8484 {
8485 if (temp7)
8486 delete arg7;
8487 }
8488 return resultobj;
8489fail:
8490 {
8491 if (temp7)
8492 delete arg7;
8493 }
8494 return NULL;
d55e5bfc
RD
8495}
8496
8497
554f62e9
RD
8498SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8499 PyObject *resultobj = 0;
8500 wxStaticBitmap *result = 0 ;
8501
8502 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8503 {
8504 if (!wxPyCheckForApp()) SWIG_fail;
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 result = (wxStaticBitmap *)new wxStaticBitmap();
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8511 return resultobj;
8512fail:
8513 return NULL;
8514}
8515
8516
8517SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj = 0;
8519 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8520 wxWindow *arg2 = (wxWindow *) 0 ;
8521 int arg3 = (int) -1 ;
8522 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8523 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8526 wxSize const &arg6_defvalue = wxDefaultSize ;
8527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8528 long arg7 = (long) 0 ;
8529 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8530 wxString *arg8 = (wxString *) &arg8_defvalue ;
8531 bool result;
8532 void *argp1 = 0 ;
8533 int res1 = 0 ;
8534 void *argp2 = 0 ;
8535 int res2 = 0 ;
8536 int val3 ;
8537 int ecode3 = 0 ;
8538 void *argp4 = 0 ;
8539 int res4 = 0 ;
8540 wxPoint temp5 ;
8541 wxSize temp6 ;
8542 long val7 ;
8543 int ecode7 = 0 ;
8544 bool temp8 = false ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 PyObject * obj2 = 0 ;
8548 PyObject * obj3 = 0 ;
8549 PyObject * obj4 = 0 ;
8550 PyObject * obj5 = 0 ;
8551 PyObject * obj6 = 0 ;
8552 PyObject * obj7 = 0 ;
8553 char * kwnames[] = {
8554 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8555 };
8556
8557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8559 if (!SWIG_IsOK(res1)) {
8560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8561 }
8562 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8564 if (!SWIG_IsOK(res2)) {
8565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8566 }
8567 arg2 = reinterpret_cast< wxWindow * >(argp2);
8568 if (obj2) {
8569 ecode3 = SWIG_AsVal_int(obj2, &val3);
8570 if (!SWIG_IsOK(ecode3)) {
8571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8572 }
8573 arg3 = static_cast< int >(val3);
8574 }
8575 if (obj3) {
8576 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8577 if (!SWIG_IsOK(res4)) {
8578 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8579 }
8580 if (!argp4) {
8581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
f20a2e1f 8582 }
554f62e9
RD
8583 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8584 }
8585 if (obj4) {
f20a2e1f 8586 {
554f62e9
RD
8587 arg5 = &temp5;
8588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8589 }
554f62e9
RD
8590 }
8591 if (obj5) {
f20a2e1f 8592 {
554f62e9
RD
8593 arg6 = &temp6;
8594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
f20a2e1f 8595 }
554f62e9
RD
8596 }
8597 if (obj6) {
8598 ecode7 = SWIG_AsVal_long(obj6, &val7);
8599 if (!SWIG_IsOK(ecode7)) {
8600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8601 }
8602 arg7 = static_cast< long >(val7);
8603 }
8604 if (obj7) {
d55e5bfc 8605 {
554f62e9
RD
8606 arg8 = wxString_in_helper(obj7);
8607 if (arg8 == NULL) SWIG_fail;
8608 temp8 = true;
d55e5bfc 8609 }
554f62e9
RD
8610 }
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8619 }
8620 {
8621 if (temp8)
8622 delete arg8;
8623 }
8624 return resultobj;
8625fail:
8626 {
8627 if (temp8)
8628 delete arg8;
8629 }
8630 return NULL;
d55e5bfc
RD
8631}
8632
8633
554f62e9
RD
8634SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635 PyObject *resultobj = 0;
8636 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8637 wxBitmap result;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 PyObject *swig_obj[1] ;
8641
8642 if (!args) SWIG_fail;
8643 swig_obj[0] = args;
8644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8645 if (!SWIG_IsOK(res1)) {
8646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8647 }
8648 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (arg1)->GetBitmap();
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8656 return resultobj;
8657fail:
8658 return NULL;
8659}
8660
8661
8662SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj = 0;
8664 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8665 wxBitmap *arg2 = 0 ;
8666 void *argp1 = 0 ;
8667 int res1 = 0 ;
8668 void *argp2 = 0 ;
8669 int res2 = 0 ;
8670 PyObject * obj0 = 0 ;
8671 PyObject * obj1 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "bitmap", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8680 }
8681 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8690 {
8691 PyThreadState* __tstate = wxPyBeginAllowThreads();
8692 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 resultobj = SWIG_Py_Void();
8697 return resultobj;
8698fail:
8699 return NULL;
8700}
8701
8702
8703SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8704 PyObject *resultobj = 0;
8705 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8706 wxIcon *arg2 = 0 ;
8707 void *argp1 = 0 ;
8708 int res1 = 0 ;
8709 void *argp2 = 0 ;
8710 int res2 = 0 ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char * kwnames[] = {
8714 (char *) "self",(char *) "icon", NULL
8715 };
8716
8717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8719 if (!SWIG_IsOK(res1)) {
8720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8721 }
8722 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8724 if (!SWIG_IsOK(res2)) {
8725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8726 }
8727 if (!argp2) {
8728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8729 }
8730 arg2 = reinterpret_cast< wxIcon * >(argp2);
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 (arg1)->SetIcon((wxIcon const &)*arg2);
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 resultobj = SWIG_Py_Void();
8738 return resultobj;
8739fail:
8740 return NULL;
8741}
8742
8743
8744SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj = 0;
8746 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8747 SwigValueWrapper<wxVisualAttributes > result;
8748 int val1 ;
8749 int ecode1 = 0 ;
8750 PyObject * obj0 = 0 ;
8751 char * kwnames[] = {
8752 (char *) "variant", NULL
8753 };
8754
8755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8756 if (obj0) {
8757 ecode1 = SWIG_AsVal_int(obj0, &val1);
8758 if (!SWIG_IsOK(ecode1)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8760 }
8761 arg1 = static_cast< wxWindowVariant >(val1);
8762 }
8763 {
8764 if (!wxPyCheckForApp()) SWIG_fail;
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8767 wxPyEndAllowThreads(__tstate);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 }
8770 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8771 return resultobj;
8772fail:
8773 return NULL;
d55e5bfc
RD
8774}
8775
8776
554f62e9
RD
8777SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8778 PyObject *obj;
8779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8780 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8781 return SWIG_Py_Void();
d55e5bfc
RD
8782}
8783
554f62e9
RD
8784SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 return SWIG_Python_InitShadowInstance(args);
8786}
d55e5bfc 8787
554f62e9
RD
8788SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8789 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8790 return 1;
d55e5bfc
RD
8791}
8792
8793
554f62e9
RD
8794SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8795 PyObject *pyobj = 0;
8796
8797 {
d55e5bfc 8798#if wxUSE_UNICODE
554f62e9 8799 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8800#else
554f62e9 8801 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8802#endif
554f62e9
RD
8803 }
8804 return pyobj;
8805}
8806
8807
8808SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxWindow *arg1 = (wxWindow *) 0 ;
8811 int arg2 = (int) -1 ;
8812 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8813 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8814 wxSize const &arg4_defvalue = wxDefaultSize ;
8815 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8816 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8817 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8818 long arg6 = (long) 0 ;
8819 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8820 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8821 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8822 wxString *arg8 = (wxString *) &arg8_defvalue ;
8823 wxListBox *result = 0 ;
8824 void *argp1 = 0 ;
8825 int res1 = 0 ;
8826 int val2 ;
8827 int ecode2 = 0 ;
8828 wxPoint temp3 ;
8829 wxSize temp4 ;
8830 bool temp5 = false ;
8831 long val6 ;
8832 int ecode6 = 0 ;
8833 void *argp7 = 0 ;
8834 int res7 = 0 ;
8835 bool temp8 = false ;
8836 PyObject * obj0 = 0 ;
8837 PyObject * obj1 = 0 ;
8838 PyObject * obj2 = 0 ;
8839 PyObject * obj3 = 0 ;
8840 PyObject * obj4 = 0 ;
8841 PyObject * obj5 = 0 ;
8842 PyObject * obj6 = 0 ;
8843 PyObject * obj7 = 0 ;
8844 char * kwnames[] = {
8845 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8846 };
8847
8848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8852 }
8853 arg1 = reinterpret_cast< wxWindow * >(argp1);
8854 if (obj1) {
8855 ecode2 = SWIG_AsVal_int(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8858 }
8859 arg2 = static_cast< int >(val2);
8860 }
8861 if (obj2) {
d55e5bfc 8862 {
554f62e9
RD
8863 arg3 = &temp3;
8864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8865 }
554f62e9
RD
8866 }
8867 if (obj3) {
d55e5bfc 8868 {
554f62e9
RD
8869 arg4 = &temp4;
8870 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8871 }
554f62e9
RD
8872 }
8873 if (obj4) {
d55e5bfc 8874 {
554f62e9
RD
8875 if (! PySequence_Check(obj4)) {
8876 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8877 SWIG_fail;
8878 }
8879 arg5 = new wxArrayString;
8880 temp5 = true;
8881 int i, len=PySequence_Length(obj4);
8882 for (i=0; i<len; i++) {
8883 PyObject* item = PySequence_GetItem(obj4, i);
8884 wxString* s = wxString_in_helper(item);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 arg5->Add(*s);
8887 delete s;
8888 Py_DECREF(item);
8889 }
d55e5bfc 8890 }
554f62e9
RD
8891 }
8892 if (obj5) {
8893 ecode6 = SWIG_AsVal_long(obj5, &val6);
8894 if (!SWIG_IsOK(ecode6)) {
8895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8896 }
8897 arg6 = static_cast< long >(val6);
8898 }
8899 if (obj6) {
8900 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8901 if (!SWIG_IsOK(res7)) {
8902 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8903 }
554f62e9
RD
8904 if (!argp7) {
8905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8906 }
554f62e9
RD
8907 arg7 = reinterpret_cast< wxValidator * >(argp7);
8908 }
8909 if (obj7) {
d55e5bfc 8910 {
554f62e9
RD
8911 arg8 = wxString_in_helper(obj7);
8912 if (arg8 == NULL) SWIG_fail;
8913 temp8 = true;
d55e5bfc 8914 }
554f62e9
RD
8915 }
8916 {
8917 if (!wxPyCheckForApp()) SWIG_fail;
8918 PyThreadState* __tstate = wxPyBeginAllowThreads();
8919 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8924 {
8925 if (temp5) delete arg5;
8926 }
8927 {
8928 if (temp8)
8929 delete arg8;
8930 }
8931 return resultobj;
8932fail:
8933 {
8934 if (temp5) delete arg5;
8935 }
8936 {
8937 if (temp8)
8938 delete arg8;
8939 }
8940 return NULL;
d55e5bfc
RD
8941}
8942
8943
554f62e9
RD
8944SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *resultobj = 0;
8946 wxListBox *result = 0 ;
8947
8948 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8949 {
8950 if (!wxPyCheckForApp()) SWIG_fail;
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (wxListBox *)new wxListBox();
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8957 return resultobj;
8958fail:
8959 return NULL;
8960}
8961
8962
8963SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj = 0;
8965 wxListBox *arg1 = (wxListBox *) 0 ;
8966 wxWindow *arg2 = (wxWindow *) 0 ;
8967 int arg3 = (int) -1 ;
8968 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8969 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8970 wxSize const &arg5_defvalue = wxDefaultSize ;
8971 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8972 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8973 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8974 long arg7 = (long) 0 ;
8975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8977 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8978 wxString *arg9 = (wxString *) &arg9_defvalue ;
8979 bool result;
8980 void *argp1 = 0 ;
8981 int res1 = 0 ;
8982 void *argp2 = 0 ;
8983 int res2 = 0 ;
8984 int val3 ;
8985 int ecode3 = 0 ;
8986 wxPoint temp4 ;
8987 wxSize temp5 ;
8988 bool temp6 = false ;
8989 long val7 ;
8990 int ecode7 = 0 ;
8991 void *argp8 = 0 ;
8992 int res8 = 0 ;
8993 bool temp9 = false ;
8994 PyObject * obj0 = 0 ;
8995 PyObject * obj1 = 0 ;
8996 PyObject * obj2 = 0 ;
8997 PyObject * obj3 = 0 ;
8998 PyObject * obj4 = 0 ;
8999 PyObject * obj5 = 0 ;
9000 PyObject * obj6 = 0 ;
9001 PyObject * obj7 = 0 ;
9002 PyObject * obj8 = 0 ;
9003 char * kwnames[] = {
9004 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9005 };
9006
9007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9009 if (!SWIG_IsOK(res1)) {
9010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9011 }
9012 arg1 = reinterpret_cast< wxListBox * >(argp1);
9013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9014 if (!SWIG_IsOK(res2)) {
9015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9016 }
9017 arg2 = reinterpret_cast< wxWindow * >(argp2);
9018 if (obj2) {
9019 ecode3 = SWIG_AsVal_int(obj2, &val3);
9020 if (!SWIG_IsOK(ecode3)) {
9021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9022 }
9023 arg3 = static_cast< int >(val3);
9024 }
9025 if (obj3) {
d55e5bfc 9026 {
554f62e9
RD
9027 arg4 = &temp4;
9028 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9029 }
554f62e9
RD
9030 }
9031 if (obj4) {
d55e5bfc 9032 {
554f62e9
RD
9033 arg5 = &temp5;
9034 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9035 }
554f62e9
RD
9036 }
9037 if (obj5) {
d55e5bfc 9038 {
554f62e9
RD
9039 if (! PySequence_Check(obj5)) {
9040 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9041 SWIG_fail;
9042 }
9043 arg6 = new wxArrayString;
9044 temp6 = true;
9045 int i, len=PySequence_Length(obj5);
9046 for (i=0; i<len; i++) {
9047 PyObject* item = PySequence_GetItem(obj5, i);
9048 wxString* s = wxString_in_helper(item);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 arg6->Add(*s);
9051 delete s;
9052 Py_DECREF(item);
9053 }
d55e5bfc 9054 }
554f62e9
RD
9055 }
9056 if (obj6) {
9057 ecode7 = SWIG_AsVal_long(obj6, &val7);
9058 if (!SWIG_IsOK(ecode7)) {
9059 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9060 }
9061 arg7 = static_cast< long >(val7);
9062 }
9063 if (obj7) {
9064 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9065 if (!SWIG_IsOK(res8)) {
9066 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 9067 }
554f62e9
RD
9068 if (!argp8) {
9069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9070 }
554f62e9
RD
9071 arg8 = reinterpret_cast< wxValidator * >(argp8);
9072 }
9073 if (obj8) {
f20a2e1f 9074 {
554f62e9
RD
9075 arg9 = wxString_in_helper(obj8);
9076 if (arg9 == NULL) SWIG_fail;
9077 temp9 = true;
f20a2e1f 9078 }
554f62e9
RD
9079 }
9080 {
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 {
9087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9088 }
9089 {
9090 if (temp6) delete arg6;
9091 }
9092 {
9093 if (temp9)
9094 delete arg9;
9095 }
9096 return resultobj;
9097fail:
9098 {
9099 if (temp6) delete arg6;
9100 }
9101 {
9102 if (temp9)
9103 delete arg9;
9104 }
9105 return NULL;
9106}
9107
9108
9109SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj = 0;
9111 wxListBox *arg1 = (wxListBox *) 0 ;
9112 wxString *arg2 = 0 ;
9113 int arg3 ;
9114 PyObject *arg4 = (PyObject *) NULL ;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 bool temp2 = false ;
9118 int val3 ;
9119 int ecode3 = 0 ;
9120 PyObject * obj0 = 0 ;
9121 PyObject * obj1 = 0 ;
9122 PyObject * obj2 = 0 ;
9123 PyObject * obj3 = 0 ;
9124 char * kwnames[] = {
9125 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9126 };
9127
9128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9130 if (!SWIG_IsOK(res1)) {
9131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9132 }
9133 arg1 = reinterpret_cast< wxListBox * >(argp1);
9134 {
9135 arg2 = wxString_in_helper(obj1);
9136 if (arg2 == NULL) SWIG_fail;
9137 temp2 = true;
9138 }
9139 ecode3 = SWIG_AsVal_int(obj2, &val3);
9140 if (!SWIG_IsOK(ecode3)) {
9141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9142 }
9143 arg3 = static_cast< int >(val3);
9144 if (obj3) {
9145 arg4 = obj3;
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 resultobj = SWIG_Py_Void();
9154 {
9155 if (temp2)
9156 delete arg2;
9157 }
9158 return resultobj;
9159fail:
9160 {
9161 if (temp2)
9162 delete arg2;
9163 }
9164 return NULL;
9165}
9166
9167
9168SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9169 PyObject *resultobj = 0;
9170 wxListBox *arg1 = (wxListBox *) 0 ;
9171 wxArrayString *arg2 = 0 ;
50f151d7 9172 unsigned int arg3 ;
554f62e9
RD
9173 void *argp1 = 0 ;
9174 int res1 = 0 ;
9175 bool temp2 = false ;
50f151d7 9176 unsigned int val3 ;
554f62e9
RD
9177 int ecode3 = 0 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 PyObject * obj2 = 0 ;
9181 char * kwnames[] = {
9182 (char *) "self",(char *) "items",(char *) "pos", NULL
9183 };
9184
9185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9187 if (!SWIG_IsOK(res1)) {
9188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9189 }
9190 arg1 = reinterpret_cast< wxListBox * >(argp1);
9191 {
9192 if (! PySequence_Check(obj1)) {
9193 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9194 SWIG_fail;
9195 }
9196 arg2 = new wxArrayString;
9197 temp2 = true;
9198 int i, len=PySequence_Length(obj1);
9199 for (i=0; i<len; i++) {
9200 PyObject* item = PySequence_GetItem(obj1, i);
9201 wxString* s = wxString_in_helper(item);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 arg2->Add(*s);
9204 delete s;
9205 Py_DECREF(item);
f20a2e1f 9206 }
554f62e9 9207 }
50f151d7 9208 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
554f62e9 9209 if (!SWIG_IsOK(ecode3)) {
50f151d7 9210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
554f62e9 9211 }
50f151d7 9212 arg3 = static_cast< unsigned int >(val3);
554f62e9
RD
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = SWIG_Py_Void();
9220 {
9221 if (temp2) delete arg2;
9222 }
9223 return resultobj;
9224fail:
9225 {
9226 if (temp2) delete arg2;
9227 }
9228 return NULL;
f20a2e1f
RD
9229}
9230
9231
554f62e9
RD
9232SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9233 PyObject *resultobj = 0;
9234 wxListBox *arg1 = (wxListBox *) 0 ;
9235 wxArrayString *arg2 = 0 ;
9236 void *argp1 = 0 ;
9237 int res1 = 0 ;
9238 bool temp2 = false ;
9239 PyObject * obj0 = 0 ;
9240 PyObject * obj1 = 0 ;
9241 char * kwnames[] = {
9242 (char *) "self",(char *) "items", NULL
9243 };
9244
9245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9247 if (!SWIG_IsOK(res1)) {
9248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9249 }
9250 arg1 = reinterpret_cast< wxListBox * >(argp1);
9251 {
9252 if (! PySequence_Check(obj1)) {
9253 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9254 SWIG_fail;
9255 }
9256 arg2 = new wxArrayString;
9257 temp2 = true;
9258 int i, len=PySequence_Length(obj1);
9259 for (i=0; i<len; i++) {
9260 PyObject* item = PySequence_GetItem(obj1, i);
9261 wxString* s = wxString_in_helper(item);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 arg2->Add(*s);
9264 delete s;
9265 Py_DECREF(item);
d55e5bfc 9266 }
554f62e9
RD
9267 }
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 (arg1)->Set((wxArrayString const &)*arg2);
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 resultobj = SWIG_Py_Void();
9275 {
9276 if (temp2) delete arg2;
9277 }
9278 return resultobj;
9279fail:
9280 {
9281 if (temp2) delete arg2;
9282 }
9283 return NULL;
9284}
9285
9286
9287SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj = 0;
9289 wxListBox *arg1 = (wxListBox *) 0 ;
9290 int arg2 ;
9291 bool result;
9292 void *argp1 = 0 ;
9293 int res1 = 0 ;
9294 int val2 ;
9295 int ecode2 = 0 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 char * kwnames[] = {
9299 (char *) "self",(char *) "n", NULL
9300 };
9301
9302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9304 if (!SWIG_IsOK(res1)) {
9305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9306 }
9307 arg1 = reinterpret_cast< wxListBox * >(argp1);
9308 ecode2 = SWIG_AsVal_int(obj1, &val2);
9309 if (!SWIG_IsOK(ecode2)) {
9310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9311 }
9312 arg2 = static_cast< int >(val2);
9313 {
9314 PyThreadState* __tstate = wxPyBeginAllowThreads();
9315 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 {
9320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9321 }
9322 return resultobj;
9323fail:
9324 return NULL;
9325}
9326
9327
9328SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9329 PyObject *resultobj = 0;
9330 wxListBox *arg1 = (wxListBox *) 0 ;
9331 int arg2 ;
9332 bool arg3 = (bool) true ;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 int val2 ;
9336 int ecode2 = 0 ;
9337 bool val3 ;
9338 int ecode3 = 0 ;
9339 PyObject * obj0 = 0 ;
9340 PyObject * obj1 = 0 ;
9341 PyObject * obj2 = 0 ;
9342 char * kwnames[] = {
9343 (char *) "self",(char *) "n",(char *) "select", NULL
9344 };
9345
9346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9350 }
9351 arg1 = reinterpret_cast< wxListBox * >(argp1);
9352 ecode2 = SWIG_AsVal_int(obj1, &val2);
9353 if (!SWIG_IsOK(ecode2)) {
9354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9355 }
9356 arg2 = static_cast< int >(val2);
9357 if (obj2) {
9358 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9359 if (!SWIG_IsOK(ecode3)) {
9360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9361 }
9362 arg3 = static_cast< bool >(val3);
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 (arg1)->SetSelection(arg2,arg3);
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 resultobj = SWIG_Py_Void();
9371 return resultobj;
9372fail:
9373 return NULL;
9374}
9375
9376
9377SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj = 0;
9379 wxListBox *arg1 = (wxListBox *) 0 ;
9380 int arg2 ;
9381 void *argp1 = 0 ;
9382 int res1 = 0 ;
9383 int val2 ;
9384 int ecode2 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "self",(char *) "n", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9395 }
9396 arg1 = reinterpret_cast< wxListBox * >(argp1);
9397 ecode2 = SWIG_AsVal_int(obj1, &val2);
9398 if (!SWIG_IsOK(ecode2)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9400 }
9401 arg2 = static_cast< int >(val2);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->Select(arg2);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_Py_Void();
9409 return resultobj;
9410fail:
9411 return NULL;
9412}
9413
9414
9415SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = 0;
9417 wxListBox *arg1 = (wxListBox *) 0 ;
9418 int arg2 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 int val2 ;
9422 int ecode2 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "self",(char *) "n", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9431 if (!SWIG_IsOK(res1)) {
9432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9433 }
9434 arg1 = reinterpret_cast< wxListBox * >(argp1);
9435 ecode2 = SWIG_AsVal_int(obj1, &val2);
9436 if (!SWIG_IsOK(ecode2)) {
9437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9438 }
9439 arg2 = static_cast< int >(val2);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->Deselect(arg2);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_Py_Void();
9447 return resultobj;
9448fail:
9449 return NULL;
9450}
9451
9452
9453SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = 0;
9455 wxListBox *arg1 = (wxListBox *) 0 ;
9456 int arg2 = (int) -1 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 int val2 ;
9460 int ecode2 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 char * kwnames[] = {
9464 (char *) "self",(char *) "itemToLeaveSelected", NULL
9465 };
9466
9467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9471 }
9472 arg1 = reinterpret_cast< wxListBox * >(argp1);
9473 if (obj1) {
9474 ecode2 = SWIG_AsVal_int(obj1, &val2);
9475 if (!SWIG_IsOK(ecode2)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9477 }
9478 arg2 = static_cast< int >(val2);
9479 }
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 (arg1)->DeselectAll(arg2);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 resultobj = SWIG_Py_Void();
9487 return resultobj;
9488fail:
9489 return NULL;
9490}
9491
9492
9493SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9494 PyObject *resultobj = 0;
9495 wxListBox *arg1 = (wxListBox *) 0 ;
9496 wxString *arg2 = 0 ;
9497 bool arg3 = (bool) true ;
9498 bool result;
9499 void *argp1 = 0 ;
9500 int res1 = 0 ;
9501 bool temp2 = false ;
9502 bool val3 ;
9503 int ecode3 = 0 ;
9504 PyObject * obj0 = 0 ;
9505 PyObject * obj1 = 0 ;
9506 PyObject * obj2 = 0 ;
9507 char * kwnames[] = {
9508 (char *) "self",(char *) "s",(char *) "select", NULL
9509 };
9510
9511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9513 if (!SWIG_IsOK(res1)) {
9514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9515 }
9516 arg1 = reinterpret_cast< wxListBox * >(argp1);
9517 {
9518 arg2 = wxString_in_helper(obj1);
9519 if (arg2 == NULL) SWIG_fail;
9520 temp2 = true;
9521 }
9522 if (obj2) {
9523 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9524 if (!SWIG_IsOK(ecode3)) {
9525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9526 }
9527 arg3 = static_cast< bool >(val3);
9528 }
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 {
9536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9537 }
9538 {
9539 if (temp2)
9540 delete arg2;
9541 }
9542 return resultobj;
9543fail:
9544 {
9545 if (temp2)
9546 delete arg2;
9547 }
9548 return NULL;
d55e5bfc
RD
9549}
9550
9551
554f62e9
RD
9552SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9553 PyObject *resultobj = 0;
9554 wxListBox *arg1 = (wxListBox *) 0 ;
9555 PyObject *result = 0 ;
9556 void *argp1 = 0 ;
9557 int res1 = 0 ;
9558 PyObject *swig_obj[1] ;
9559
9560 if (!args) SWIG_fail;
9561 swig_obj[0] = args;
9562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9565 }
9566 arg1 = reinterpret_cast< wxListBox * >(argp1);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (PyObject *)wxListBox_GetSelections(arg1);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = result;
9574 return resultobj;
9575fail:
9576 return NULL;
9577}
9578
9579
9580SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj = 0;
9582 wxListBox *arg1 = (wxListBox *) 0 ;
9583 int arg2 ;
9584 void *argp1 = 0 ;
9585 int res1 = 0 ;
9586 int val2 ;
9587 int ecode2 = 0 ;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 char * kwnames[] = {
9591 (char *) "self",(char *) "n", NULL
9592 };
9593
9594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9596 if (!SWIG_IsOK(res1)) {
9597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9598 }
9599 arg1 = reinterpret_cast< wxListBox * >(argp1);
9600 ecode2 = SWIG_AsVal_int(obj1, &val2);
9601 if (!SWIG_IsOK(ecode2)) {
9602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9603 }
9604 arg2 = static_cast< int >(val2);
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 (arg1)->SetFirstItem(arg2);
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_Py_Void();
9612 return resultobj;
9613fail:
9614 return NULL;
9615}
9616
9617
9618SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj = 0;
9620 wxListBox *arg1 = (wxListBox *) 0 ;
9621 wxString *arg2 = 0 ;
9622 void *argp1 = 0 ;
9623 int res1 = 0 ;
9624 bool temp2 = false ;
9625 PyObject * obj0 = 0 ;
9626 PyObject * obj1 = 0 ;
9627 char * kwnames[] = {
9628 (char *) "self",(char *) "s", NULL
9629 };
9630
9631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9633 if (!SWIG_IsOK(res1)) {
9634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9635 }
9636 arg1 = reinterpret_cast< wxListBox * >(argp1);
9637 {
9638 arg2 = wxString_in_helper(obj1);
9639 if (arg2 == NULL) SWIG_fail;
9640 temp2 = true;
9641 }
9642 {
9643 PyThreadState* __tstate = wxPyBeginAllowThreads();
9644 (arg1)->SetFirstItem((wxString const &)*arg2);
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_Py_Void();
9649 {
9650 if (temp2)
9651 delete arg2;
9652 }
9653 return resultobj;
9654fail:
9655 {
9656 if (temp2)
9657 delete arg2;
9658 }
9659 return NULL;
9660}
9661
9662
9663SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxListBox *arg1 = (wxListBox *) 0 ;
9666 int arg2 ;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 int val2 ;
9670 int ecode2 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 char * kwnames[] = {
9674 (char *) "self",(char *) "n", NULL
9675 };
9676
9677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9681 }
9682 arg1 = reinterpret_cast< wxListBox * >(argp1);
9683 ecode2 = SWIG_AsVal_int(obj1, &val2);
9684 if (!SWIG_IsOK(ecode2)) {
9685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9686 }
9687 arg2 = static_cast< int >(val2);
9688 {
9689 PyThreadState* __tstate = wxPyBeginAllowThreads();
9690 (arg1)->EnsureVisible(arg2);
9691 wxPyEndAllowThreads(__tstate);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 resultobj = SWIG_Py_Void();
9695 return resultobj;
9696fail:
9697 return NULL;
9698}
9699
9700
9701SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9702 PyObject *resultobj = 0;
9703 wxListBox *arg1 = (wxListBox *) 0 ;
9704 wxString *arg2 = 0 ;
9705 void *argp1 = 0 ;
9706 int res1 = 0 ;
9707 bool temp2 = false ;
9708 PyObject * obj0 = 0 ;
9709 PyObject * obj1 = 0 ;
9710 char * kwnames[] = {
9711 (char *) "self",(char *) "s", NULL
9712 };
9713
9714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9718 }
9719 arg1 = reinterpret_cast< wxListBox * >(argp1);
9720 {
9721 arg2 = wxString_in_helper(obj1);
9722 if (arg2 == NULL) SWIG_fail;
9723 temp2 = true;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_Py_Void();
9732 {
9733 if (temp2)
9734 delete arg2;
9735 }
9736 return resultobj;
9737fail:
9738 {
9739 if (temp2)
9740 delete arg2;
9741 }
9742 return NULL;
d55e5bfc
RD
9743}
9744
9745
554f62e9
RD
9746SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9747 PyObject *resultobj = 0;
9748 wxListBox *arg1 = (wxListBox *) 0 ;
9749 bool result;
9750 void *argp1 = 0 ;
9751 int res1 = 0 ;
9752 PyObject *swig_obj[1] ;
9753
9754 if (!args) SWIG_fail;
9755 swig_obj[0] = args;
9756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9759 }
9760 arg1 = reinterpret_cast< wxListBox * >(argp1);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (bool)((wxListBox const *)arg1)->IsSorted();
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 {
9768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9769 }
9770 return resultobj;
9771fail:
9772 return NULL;
9773}
9774
9775
9776SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj = 0;
9778 wxListBox *arg1 = (wxListBox *) 0 ;
9779 wxPoint *arg2 = 0 ;
9780 int result;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 wxPoint temp2 ;
9784 PyObject * obj0 = 0 ;
9785 PyObject * obj1 = 0 ;
9786 char * kwnames[] = {
9787 (char *) "self",(char *) "pt", NULL
9788 };
9789
9790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9792 if (!SWIG_IsOK(res1)) {
9793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9794 }
9795 arg1 = reinterpret_cast< wxListBox * >(argp1);
9796 {
9797 arg2 = &temp2;
9798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9799 }
9800 {
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 resultobj = SWIG_From_int(static_cast< int >(result));
9807 return resultobj;
9808fail:
9809 return NULL;
9810}
9811
9812
9813SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj = 0;
9815 wxListBox *arg1 = (wxListBox *) 0 ;
9816 int arg2 ;
9817 wxColour *arg3 = 0 ;
9818 void *argp1 = 0 ;
9819 int res1 = 0 ;
9820 int val2 ;
9821 int ecode2 = 0 ;
9822 wxColour temp3 ;
9823 PyObject * obj0 = 0 ;
9824 PyObject * obj1 = 0 ;
9825 PyObject * obj2 = 0 ;
9826 char * kwnames[] = {
9827 (char *) "self",(char *) "item",(char *) "c", NULL
9828 };
9829
9830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9832 if (!SWIG_IsOK(res1)) {
9833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9834 }
9835 arg1 = reinterpret_cast< wxListBox * >(argp1);
9836 ecode2 = SWIG_AsVal_int(obj1, &val2);
9837 if (!SWIG_IsOK(ecode2)) {
9838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9839 }
9840 arg2 = static_cast< int >(val2);
9841 {
9842 arg3 = &temp3;
9843 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9844 }
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_Py_Void();
9852 return resultobj;
9853fail:
9854 return NULL;
9855}
9856
9857
9858SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj = 0;
9860 wxListBox *arg1 = (wxListBox *) 0 ;
9861 int arg2 ;
9862 wxColour *arg3 = 0 ;
9863 void *argp1 = 0 ;
9864 int res1 = 0 ;
9865 int val2 ;
9866 int ecode2 = 0 ;
9867 wxColour temp3 ;
9868 PyObject * obj0 = 0 ;
9869 PyObject * obj1 = 0 ;
9870 PyObject * obj2 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "self",(char *) "item",(char *) "c", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9877 if (!SWIG_IsOK(res1)) {
9878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9879 }
9880 arg1 = reinterpret_cast< wxListBox * >(argp1);
9881 ecode2 = SWIG_AsVal_int(obj1, &val2);
9882 if (!SWIG_IsOK(ecode2)) {
9883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9884 }
9885 arg2 = static_cast< int >(val2);
9886 {
9887 arg3 = &temp3;
9888 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9889 }
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 resultobj = SWIG_Py_Void();
9897 return resultobj;
9898fail:
9899 return NULL;
9900}
9901
9902
9903SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj = 0;
9905 wxListBox *arg1 = (wxListBox *) 0 ;
9906 int arg2 ;
9907 wxFont *arg3 = 0 ;
9908 void *argp1 = 0 ;
9909 int res1 = 0 ;
9910 int val2 ;
9911 int ecode2 = 0 ;
9912 void *argp3 = 0 ;
9913 int res3 = 0 ;
9914 PyObject * obj0 = 0 ;
9915 PyObject * obj1 = 0 ;
9916 PyObject * obj2 = 0 ;
9917 char * kwnames[] = {
9918 (char *) "self",(char *) "item",(char *) "f", NULL
9919 };
9920
9921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9923 if (!SWIG_IsOK(res1)) {
9924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9925 }
9926 arg1 = reinterpret_cast< wxListBox * >(argp1);
9927 ecode2 = SWIG_AsVal_int(obj1, &val2);
9928 if (!SWIG_IsOK(ecode2)) {
9929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9930 }
9931 arg2 = static_cast< int >(val2);
9932 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9933 if (!SWIG_IsOK(res3)) {
9934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9935 }
9936 if (!argp3) {
9937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9938 }
9939 arg3 = reinterpret_cast< wxFont * >(argp3);
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 resultobj = SWIG_Py_Void();
9947 return resultobj;
9948fail:
9949 return NULL;
9950}
9951
9952
9953SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9956 SwigValueWrapper<wxVisualAttributes > result;
9957 int val1 ;
9958 int ecode1 = 0 ;
9959 PyObject * obj0 = 0 ;
9960 char * kwnames[] = {
9961 (char *) "variant", NULL
9962 };
9963
9964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9965 if (obj0) {
9966 ecode1 = SWIG_AsVal_int(obj0, &val1);
9967 if (!SWIG_IsOK(ecode1)) {
9968 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9969 }
9970 arg1 = static_cast< wxWindowVariant >(val1);
9971 }
9972 {
9973 if (!wxPyCheckForApp()) SWIG_fail;
9974 PyThreadState* __tstate = wxPyBeginAllowThreads();
9975 result = wxListBox::GetClassDefaultAttributes(arg1);
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9980 return resultobj;
9981fail:
9982 return NULL;
9983}
9984
9985
9986SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9987 PyObject *obj;
9988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9989 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9990 return SWIG_Py_Void();
9991}
9992
9993SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 return SWIG_Python_InitShadowInstance(args);
9995}
9996
9997SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9998 PyObject *resultobj = 0;
9999 wxWindow *arg1 = (wxWindow *) 0 ;
10000 int arg2 = (int) -1 ;
10001 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10002 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10003 wxSize const &arg4_defvalue = wxDefaultSize ;
10004 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10005 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10006 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10007 long arg6 = (long) 0 ;
10008 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10009 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10010 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10011 wxString *arg8 = (wxString *) &arg8_defvalue ;
10012 wxCheckListBox *result = 0 ;
10013 void *argp1 = 0 ;
10014 int res1 = 0 ;
10015 int val2 ;
10016 int ecode2 = 0 ;
10017 wxPoint temp3 ;
10018 wxSize temp4 ;
10019 bool temp5 = false ;
10020 long val6 ;
10021 int ecode6 = 0 ;
10022 void *argp7 = 0 ;
10023 int res7 = 0 ;
10024 bool temp8 = false ;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 PyObject * obj2 = 0 ;
10028 PyObject * obj3 = 0 ;
10029 PyObject * obj4 = 0 ;
10030 PyObject * obj5 = 0 ;
10031 PyObject * obj6 = 0 ;
10032 PyObject * obj7 = 0 ;
10033 char * kwnames[] = {
10034 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10035 };
10036
10037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10041 }
10042 arg1 = reinterpret_cast< wxWindow * >(argp1);
10043 if (obj1) {
10044 ecode2 = SWIG_AsVal_int(obj1, &val2);
10045 if (!SWIG_IsOK(ecode2)) {
10046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10047 }
10048 arg2 = static_cast< int >(val2);
10049 }
10050 if (obj2) {
d55e5bfc 10051 {
554f62e9
RD
10052 arg3 = &temp3;
10053 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 10054 }
554f62e9
RD
10055 }
10056 if (obj3) {
d55e5bfc 10057 {
554f62e9
RD
10058 arg4 = &temp4;
10059 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10060 }
554f62e9
RD
10061 }
10062 if (obj4) {
d55e5bfc 10063 {
554f62e9
RD
10064 if (! PySequence_Check(obj4)) {
10065 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10066 SWIG_fail;
10067 }
10068 arg5 = new wxArrayString;
10069 temp5 = true;
10070 int i, len=PySequence_Length(obj4);
10071 for (i=0; i<len; i++) {
10072 PyObject* item = PySequence_GetItem(obj4, i);
10073 wxString* s = wxString_in_helper(item);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 arg5->Add(*s);
10076 delete s;
10077 Py_DECREF(item);
10078 }
d55e5bfc 10079 }
554f62e9
RD
10080 }
10081 if (obj5) {
10082 ecode6 = SWIG_AsVal_long(obj5, &val6);
10083 if (!SWIG_IsOK(ecode6)) {
10084 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10085 }
10086 arg6 = static_cast< long >(val6);
10087 }
10088 if (obj6) {
10089 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10090 if (!SWIG_IsOK(res7)) {
10091 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10092 }
554f62e9
RD
10093 if (!argp7) {
10094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10095 }
554f62e9
RD
10096 arg7 = reinterpret_cast< wxValidator * >(argp7);
10097 }
10098 if (obj7) {
093d3ff1 10099 {
554f62e9
RD
10100 arg8 = wxString_in_helper(obj7);
10101 if (arg8 == NULL) SWIG_fail;
10102 temp8 = true;
093d3ff1 10103 }
554f62e9
RD
10104 }
10105 {
10106 if (!wxPyCheckForApp()) SWIG_fail;
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10109 wxPyEndAllowThreads(__tstate);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 }
10112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10113 {
10114 if (temp5) delete arg5;
10115 }
10116 {
10117 if (temp8)
10118 delete arg8;
10119 }
10120 return resultobj;
10121fail:
10122 {
10123 if (temp5) delete arg5;
10124 }
10125 {
10126 if (temp8)
10127 delete arg8;
10128 }
10129 return NULL;
d55e5bfc
RD
10130}
10131
10132
554f62e9
RD
10133SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10134 PyObject *resultobj = 0;
10135 wxCheckListBox *result = 0 ;
10136
10137 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10138 {
10139 if (!wxPyCheckForApp()) SWIG_fail;
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (wxCheckListBox *)new wxCheckListBox();
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10146 return resultobj;
10147fail:
10148 return NULL;
10149}
10150
10151
10152SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj = 0;
10154 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10155 wxWindow *arg2 = (wxWindow *) 0 ;
10156 int arg3 = (int) -1 ;
10157 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10158 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10159 wxSize const &arg5_defvalue = wxDefaultSize ;
10160 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10161 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10162 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10163 long arg7 = (long) 0 ;
10164 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10165 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10166 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10167 wxString *arg9 = (wxString *) &arg9_defvalue ;
10168 bool result;
10169 void *argp1 = 0 ;
10170 int res1 = 0 ;
10171 void *argp2 = 0 ;
10172 int res2 = 0 ;
10173 int val3 ;
10174 int ecode3 = 0 ;
10175 wxPoint temp4 ;
10176 wxSize temp5 ;
10177 bool temp6 = false ;
10178 long val7 ;
10179 int ecode7 = 0 ;
10180 void *argp8 = 0 ;
10181 int res8 = 0 ;
10182 bool temp9 = false ;
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10185 PyObject * obj2 = 0 ;
10186 PyObject * obj3 = 0 ;
10187 PyObject * obj4 = 0 ;
10188 PyObject * obj5 = 0 ;
10189 PyObject * obj6 = 0 ;
10190 PyObject * obj7 = 0 ;
10191 PyObject * obj8 = 0 ;
10192 char * kwnames[] = {
10193 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10194 };
10195
10196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10200 }
10201 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10203 if (!SWIG_IsOK(res2)) {
10204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10205 }
10206 arg2 = reinterpret_cast< wxWindow * >(argp2);
10207 if (obj2) {
10208 ecode3 = SWIG_AsVal_int(obj2, &val3);
10209 if (!SWIG_IsOK(ecode3)) {
10210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10211 }
10212 arg3 = static_cast< int >(val3);
10213 }
10214 if (obj3) {
f20a2e1f 10215 {
554f62e9
RD
10216 arg4 = &temp4;
10217 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10218 }
554f62e9
RD
10219 }
10220 if (obj4) {
d55e5bfc 10221 {
554f62e9
RD
10222 arg5 = &temp5;
10223 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10224 }
554f62e9
RD
10225 }
10226 if (obj5) {
d55e5bfc 10227 {
554f62e9
RD
10228 if (! PySequence_Check(obj5)) {
10229 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10230 SWIG_fail;
10231 }
10232 arg6 = new wxArrayString;
10233 temp6 = true;
10234 int i, len=PySequence_Length(obj5);
10235 for (i=0; i<len; i++) {
10236 PyObject* item = PySequence_GetItem(obj5, i);
10237 wxString* s = wxString_in_helper(item);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 arg6->Add(*s);
10240 delete s;
10241 Py_DECREF(item);
10242 }
d55e5bfc 10243 }
554f62e9
RD
10244 }
10245 if (obj6) {
10246 ecode7 = SWIG_AsVal_long(obj6, &val7);
10247 if (!SWIG_IsOK(ecode7)) {
10248 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10249 }
10250 arg7 = static_cast< long >(val7);
10251 }
10252 if (obj7) {
10253 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10254 if (!SWIG_IsOK(res8)) {
10255 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10256 }
554f62e9
RD
10257 if (!argp8) {
10258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10259 }
554f62e9
RD
10260 arg8 = reinterpret_cast< wxValidator * >(argp8);
10261 }
10262 if (obj8) {
d55e5bfc 10263 {
554f62e9
RD
10264 arg9 = wxString_in_helper(obj8);
10265 if (arg9 == NULL) SWIG_fail;
10266 temp9 = true;
d55e5bfc 10267 }
554f62e9
RD
10268 }
10269 {
10270 PyThreadState* __tstate = wxPyBeginAllowThreads();
10271 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 {
10276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10277 }
10278 {
10279 if (temp6) delete arg6;
10280 }
10281 {
10282 if (temp9)
10283 delete arg9;
10284 }
10285 return resultobj;
10286fail:
10287 {
10288 if (temp6) delete arg6;
10289 }
10290 {
10291 if (temp9)
10292 delete arg9;
10293 }
10294 return NULL;
10295}
10296
10297
10298SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj = 0;
10300 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10301 unsigned int arg2 ;
554f62e9
RD
10302 bool result;
10303 void *argp1 = 0 ;
10304 int res1 = 0 ;
50f151d7 10305 unsigned int val2 ;
554f62e9
RD
10306 int ecode2 = 0 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 char * kwnames[] = {
10310 (char *) "self",(char *) "index", NULL
10311 };
10312
10313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10315 if (!SWIG_IsOK(res1)) {
10316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10317 }
10318 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10319 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10320 if (!SWIG_IsOK(ecode2)) {
50f151d7 10321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10322 }
50f151d7 10323 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10324 {
10325 PyThreadState* __tstate = wxPyBeginAllowThreads();
10326 result = (bool)(arg1)->IsChecked(arg2);
10327 wxPyEndAllowThreads(__tstate);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
10331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10332 }
10333 return resultobj;
10334fail:
10335 return NULL;
10336}
10337
10338
10339SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj = 0;
10341 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10342 unsigned int arg2 ;
554f62e9
RD
10343 int arg3 = (int) true ;
10344 void *argp1 = 0 ;
10345 int res1 = 0 ;
50f151d7 10346 unsigned int val2 ;
554f62e9
RD
10347 int ecode2 = 0 ;
10348 int val3 ;
10349 int ecode3 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 char * kwnames[] = {
10354 (char *) "self",(char *) "index",(char *) "check", NULL
10355 };
10356
10357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10359 if (!SWIG_IsOK(res1)) {
10360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10361 }
10362 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10363 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10364 if (!SWIG_IsOK(ecode2)) {
50f151d7 10365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10366 }
50f151d7 10367 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10368 if (obj2) {
10369 ecode3 = SWIG_AsVal_int(obj2, &val3);
10370 if (!SWIG_IsOK(ecode3)) {
10371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10372 }
10373 arg3 = static_cast< int >(val3);
10374 }
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 (arg1)->Check(arg2,arg3);
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 resultobj = SWIG_Py_Void();
10382 return resultobj;
10383fail:
10384 return NULL;
d55e5bfc
RD
10385}
10386
10387
554f62e9
RD
10388SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10389 PyObject *resultobj = 0;
10390 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10391 int result;
10392 void *argp1 = 0 ;
10393 int res1 = 0 ;
10394 PyObject *swig_obj[1] ;
10395
10396 if (!args) SWIG_fail;
10397 swig_obj[0] = args;
10398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10401 }
10402 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (int)(arg1)->GetItemHeight();
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_From_int(static_cast< int >(result));
10410 return resultobj;
10411fail:
10412 return NULL;
d55e5bfc
RD
10413}
10414
10415
554f62e9
RD
10416SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 PyObject *obj;
10418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10419 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10420 return SWIG_Py_Void();
d55e5bfc
RD
10421}
10422
554f62e9
RD
10423SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 return SWIG_Python_InitShadowInstance(args);
9d7dfdff
RD
10425}
10426
554f62e9
RD
10427SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10428 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10429 return 1;
f20a2e1f
RD
10430}
10431
10432
554f62e9
RD
10433SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10434 PyObject *pyobj = 0;
10435
10436 {
10437#if wxUSE_UNICODE
10438 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10439#else
10440 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10441#endif
10442 }
10443 return pyobj;
10444}
10445
10446
10447SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 wxColour const &arg1_defvalue = wxNullColour ;
10450 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10451 wxColour const &arg2_defvalue = wxNullColour ;
10452 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10453 wxFont const &arg3_defvalue = wxNullFont ;
10454 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10455 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10456 wxTextAttr *result = 0 ;
10457 wxColour temp1 ;
10458 wxColour temp2 ;
10459 void *argp3 = 0 ;
10460 int res3 = 0 ;
10461 int val4 ;
10462 int ecode4 = 0 ;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10465 PyObject * obj2 = 0 ;
10466 PyObject * obj3 = 0 ;
10467 char * kwnames[] = {
10468 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10469 };
10470
10471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10472 if (obj0) {
d55e5bfc 10473 {
554f62e9
RD
10474 arg1 = &temp1;
10475 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10476 }
554f62e9
RD
10477 }
10478 if (obj1) {
d55e5bfc 10479 {
554f62e9
RD
10480 arg2 = &temp2;
10481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10482 }
554f62e9
RD
10483 }
10484 if (obj2) {
10485 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10486 if (!SWIG_IsOK(res3)) {
10487 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10488 }
554f62e9
RD
10489 if (!argp3) {
10490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10491 }
10492 arg3 = reinterpret_cast< wxFont * >(argp3);
10493 }
10494 if (obj3) {
10495 ecode4 = SWIG_AsVal_int(obj3, &val4);
10496 if (!SWIG_IsOK(ecode4)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10498 }
10499 arg4 = static_cast< wxTextAttrAlignment >(val4);
10500 }
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10508 return resultobj;
10509fail:
10510 return NULL;
d55e5bfc
RD
10511}
10512
10513
554f62e9
RD
10514SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 PyObject *swig_obj[1] ;
10520
10521 if (!args) SWIG_fail;
10522 swig_obj[0] = args;
10523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10526 }
10527 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 delete arg1;
d55e5bfc 10531
554f62e9
RD
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537fail:
10538 return NULL;
d55e5bfc
RD
10539}
10540
10541
554f62e9
RD
10542SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 PyObject *swig_obj[1] ;
10548
10549 if (!args) SWIG_fail;
10550 swig_obj[0] = args;
10551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10554 }
10555 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 (arg1)->Init();
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 resultobj = SWIG_Py_Void();
10563 return resultobj;
10564fail:
10565 return NULL;
10566}
10567
10568
f460c29d
RD
10569SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj = 0;
10571 wxTextAttr *arg1 = 0 ;
10572 wxTextAttr *arg2 = 0 ;
10573 wxTextAttr result;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 void *argp2 = 0 ;
10577 int res2 = 0 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 char * kwnames[] = {
10581 (char *) "base",(char *) "overlay", NULL
10582 };
10583
10584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10585 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10588 }
10589 if (!argp1) {
10590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10591 }
10592 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10594 if (!SWIG_IsOK(res2)) {
10595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10596 }
10597 if (!argp2) {
10598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10599 }
10600 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10608 return resultobj;
10609fail:
10610 return NULL;
10611}
10612
10613
554f62e9
RD
10614SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10617 wxColour *arg2 = 0 ;
10618 void *argp1 = 0 ;
10619 int res1 = 0 ;
10620 wxColour temp2 ;
10621 PyObject * obj0 = 0 ;
10622 PyObject * obj1 = 0 ;
10623 char * kwnames[] = {
10624 (char *) "self",(char *) "colText", NULL
10625 };
10626
10627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10629 if (!SWIG_IsOK(res1)) {
10630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10631 }
10632 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10633 {
10634 arg2 = &temp2;
10635 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10636 }
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 (arg1)->SetTextColour((wxColour const &)*arg2);
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 resultobj = SWIG_Py_Void();
10644 return resultobj;
10645fail:
10646 return NULL;
10647}
10648
10649
10650SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj = 0;
10652 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10653 wxColour *arg2 = 0 ;
10654 void *argp1 = 0 ;
10655 int res1 = 0 ;
10656 wxColour temp2 ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659 char * kwnames[] = {
10660 (char *) "self",(char *) "colBack", NULL
10661 };
10662
10663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10665 if (!SWIG_IsOK(res1)) {
10666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10667 }
10668 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10669 {
10670 arg2 = &temp2;
10671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10672 }
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10676 wxPyEndAllowThreads(__tstate);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 resultobj = SWIG_Py_Void();
10680 return resultobj;
10681fail:
10682 return NULL;
10683}
10684
10685
10686SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj = 0;
10688 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10689 wxFont *arg2 = 0 ;
10690 long arg3 = (long) wxTEXT_ATTR_FONT ;
10691 void *argp1 = 0 ;
10692 int res1 = 0 ;
10693 void *argp2 = 0 ;
10694 int res2 = 0 ;
10695 long val3 ;
10696 int ecode3 = 0 ;
10697 PyObject * obj0 = 0 ;
10698 PyObject * obj1 = 0 ;
10699 PyObject * obj2 = 0 ;
10700 char * kwnames[] = {
10701 (char *) "self",(char *) "font",(char *) "flags", NULL
10702 };
10703
10704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10706 if (!SWIG_IsOK(res1)) {
10707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10708 }
10709 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10711 if (!SWIG_IsOK(res2)) {
10712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10713 }
10714 if (!argp2) {
10715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10716 }
10717 arg2 = reinterpret_cast< wxFont * >(argp2);
10718 if (obj2) {
10719 ecode3 = SWIG_AsVal_long(obj2, &val3);
10720 if (!SWIG_IsOK(ecode3)) {
10721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10722 }
10723 arg3 = static_cast< long >(val3);
10724 }
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 resultobj = SWIG_Py_Void();
10732 return resultobj;
10733fail:
10734 return NULL;
10735}
10736
10737
10738SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj = 0;
10740 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10741 wxTextAttrAlignment arg2 ;
10742 void *argp1 = 0 ;
10743 int res1 = 0 ;
10744 int val2 ;
10745 int ecode2 = 0 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 char * kwnames[] = {
10749 (char *) "self",(char *) "alignment", NULL
10750 };
10751
10752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10754 if (!SWIG_IsOK(res1)) {
10755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10756 }
10757 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10758 ecode2 = SWIG_AsVal_int(obj1, &val2);
10759 if (!SWIG_IsOK(ecode2)) {
10760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10761 }
10762 arg2 = static_cast< wxTextAttrAlignment >(val2);
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 (arg1)->SetAlignment(arg2);
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 resultobj = SWIG_Py_Void();
10770 return resultobj;
10771fail:
10772 return NULL;
10773}
10774
10775
10776SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10777 PyObject *resultobj = 0;
10778 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10779 wxArrayInt *arg2 = 0 ;
10780 void *argp1 = 0 ;
10781 int res1 = 0 ;
10782 bool temp2 = false ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char * kwnames[] = {
10786 (char *) "self",(char *) "tabs", NULL
10787 };
10788
10789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10791 if (!SWIG_IsOK(res1)) {
10792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10793 }
10794 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10795 {
10796 if (! PySequence_Check(obj1)) {
10797 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10798 SWIG_fail;
10799 }
10800 arg2 = new wxArrayInt;
10801 temp2 = true;
10802 int i, len=PySequence_Length(obj1);
10803 for (i=0; i<len; i++) {
10804 PyObject* item = PySequence_GetItem(obj1, i);
10805 PyObject* number = PyNumber_Int(item);
10806 arg2->Add(PyInt_AS_LONG(number));
10807 Py_DECREF(item);
10808 Py_DECREF(number);
d55e5bfc 10809 }
554f62e9
RD
10810 }
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10814 wxPyEndAllowThreads(__tstate);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 }
10817 resultobj = SWIG_Py_Void();
10818 {
10819 if (temp2) delete arg2;
10820 }
10821 return resultobj;
10822fail:
10823 {
10824 if (temp2) delete arg2;
10825 }
10826 return NULL;
10827}
10828
10829
10830SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj = 0;
10832 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10833 int arg2 ;
10834 int arg3 = (int) 0 ;
10835 void *argp1 = 0 ;
10836 int res1 = 0 ;
10837 int val2 ;
10838 int ecode2 = 0 ;
10839 int val3 ;
10840 int ecode3 = 0 ;
10841 PyObject * obj0 = 0 ;
10842 PyObject * obj1 = 0 ;
10843 PyObject * obj2 = 0 ;
10844 char * kwnames[] = {
10845 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10846 };
10847
10848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10850 if (!SWIG_IsOK(res1)) {
10851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10852 }
10853 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10854 ecode2 = SWIG_AsVal_int(obj1, &val2);
10855 if (!SWIG_IsOK(ecode2)) {
10856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10857 }
10858 arg2 = static_cast< int >(val2);
10859 if (obj2) {
10860 ecode3 = SWIG_AsVal_int(obj2, &val3);
10861 if (!SWIG_IsOK(ecode3)) {
10862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10863 }
10864 arg3 = static_cast< int >(val3);
10865 }
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->SetLeftIndent(arg2,arg3);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_Py_Void();
10873 return resultobj;
10874fail:
10875 return NULL;
10876}
10877
10878
10879SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj = 0;
10881 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10882 int arg2 ;
10883 void *argp1 = 0 ;
10884 int res1 = 0 ;
10885 int val2 ;
10886 int ecode2 = 0 ;
10887 PyObject * obj0 = 0 ;
10888 PyObject * obj1 = 0 ;
10889 char * kwnames[] = {
10890 (char *) "self",(char *) "indent", NULL
10891 };
10892
10893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10895 if (!SWIG_IsOK(res1)) {
10896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10897 }
10898 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10899 ecode2 = SWIG_AsVal_int(obj1, &val2);
10900 if (!SWIG_IsOK(ecode2)) {
10901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10902 }
10903 arg2 = static_cast< int >(val2);
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetRightIndent(arg2);
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_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj = 0;
10919 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10920 long arg2 ;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 long val2 ;
10924 int ecode2 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char * kwnames[] = {
10928 (char *) "self",(char *) "flags", NULL
10929 };
10930
10931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",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_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10935 }
10936 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10937 ecode2 = SWIG_AsVal_long(obj1, &val2);
10938 if (!SWIG_IsOK(ecode2)) {
10939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10940 }
10941 arg2 = static_cast< long >(val2);
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 (arg1)->SetFlags(arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_Py_Void();
10949 return resultobj;
10950fail:
10951 return NULL;
d55e5bfc
RD
10952}
10953
10954
554f62e9
RD
10955SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10956 PyObject *resultobj = 0;
10957 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10958 bool result;
10959 void *argp1 = 0 ;
10960 int res1 = 0 ;
10961 PyObject *swig_obj[1] ;
10962
10963 if (!args) SWIG_fail;
10964 swig_obj[0] = args;
10965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10968 }
10969 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 }
10976 {
10977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10978 }
10979 return resultobj;
10980fail:
10981 return NULL;
d55e5bfc
RD
10982}
10983
10984
554f62e9
RD
10985SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10986 PyObject *resultobj = 0;
10987 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10988 bool result;
10989 void *argp1 = 0 ;
10990 int res1 = 0 ;
10991 PyObject *swig_obj[1] ;
10992
10993 if (!args) SWIG_fail;
10994 swig_obj[0] = args;
10995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10998 }
10999 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 {
11007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11008 }
11009 return resultobj;
11010fail:
11011 return NULL;
d55e5bfc
RD
11012}
11013
11014
554f62e9
RD
11015SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11016 PyObject *resultobj = 0;
11017 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 PyObject *swig_obj[1] ;
11022
11023 if (!args) SWIG_fail;
11024 swig_obj[0] = args;
11025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11026 if (!SWIG_IsOK(res1)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11028 }
11029 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11030 {
11031 PyThreadState* __tstate = wxPyBeginAllowThreads();
11032 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11033 wxPyEndAllowThreads(__tstate);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 {
11037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11038 }
11039 return resultobj;
11040fail:
11041 return NULL;
d55e5bfc
RD
11042}
11043
11044
554f62e9
RD
11045SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11046 PyObject *resultobj = 0;
11047 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11048 bool result;
11049 void *argp1 = 0 ;
11050 int res1 = 0 ;
11051 PyObject *swig_obj[1] ;
11052
11053 if (!args) SWIG_fail;
11054 swig_obj[0] = args;
11055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11056 if (!SWIG_IsOK(res1)) {
11057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11058 }
11059 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11068 }
11069 return resultobj;
11070fail:
11071 return NULL;
f20a2e1f
RD
11072}
11073
11074
554f62e9
RD
11075SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11076 PyObject *resultobj = 0;
11077 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11078 bool result;
11079 void *argp1 = 0 ;
11080 int res1 = 0 ;
11081 PyObject *swig_obj[1] ;
11082
11083 if (!args) SWIG_fail;
11084 swig_obj[0] = args;
11085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11086 if (!SWIG_IsOK(res1)) {
11087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11088 }
11089 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
11092 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 {
11097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11098 }
11099 return resultobj;
11100fail:
11101 return NULL;
d55e5bfc
RD
11102}
11103
11104
554f62e9
RD
11105SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11106 PyObject *resultobj = 0;
11107 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11108 bool result;
11109 void *argp1 = 0 ;
11110 int res1 = 0 ;
11111 PyObject *swig_obj[1] ;
11112
11113 if (!args) SWIG_fail;
11114 swig_obj[0] = args;
11115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11118 }
11119 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11128 }
11129 return resultobj;
11130fail:
11131 return NULL;
d55e5bfc
RD
11132}
11133
11134
554f62e9
RD
11135SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11138 bool result;
11139 void *argp1 = 0 ;
11140 int res1 = 0 ;
11141 PyObject *swig_obj[1] ;
11142
11143 if (!args) SWIG_fail;
11144 swig_obj[0] = args;
11145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11148 }
11149 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 {
11157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11158 }
11159 return resultobj;
11160fail:
11161 return NULL;
11162}
11163
11164
11165SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11166 PyObject *resultobj = 0;
11167 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11168 long arg2 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 long val2 ;
11173 int ecode2 = 0 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 char * kwnames[] = {
11177 (char *) "self",(char *) "flag", NULL
11178 };
11179
11180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11184 }
11185 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11186 ecode2 = SWIG_AsVal_long(obj1, &val2);
11187 if (!SWIG_IsOK(ecode2)) {
11188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11189 }
11190 arg2 = static_cast< long >(val2);
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 {
11198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11199 }
11200 return resultobj;
11201fail:
11202 return NULL;
d55e5bfc
RD
11203}
11204
11205
554f62e9
RD
11206SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11207 PyObject *resultobj = 0;
11208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11209 wxColour *result = 0 ;
11210 void *argp1 = 0 ;
11211 int res1 = 0 ;
11212 PyObject *swig_obj[1] ;
11213
11214 if (!args) SWIG_fail;
11215 swig_obj[0] = args;
11216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11217 if (!SWIG_IsOK(res1)) {
11218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11219 }
11220 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11223 {
554f62e9
RD
11224 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11225 result = (wxColour *) &_result_ref;
d55e5bfc 11226 }
554f62e9
RD
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11231 return resultobj;
11232fail:
11233 return NULL;
d55e5bfc
RD
11234}
11235
11236
554f62e9
RD
11237SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxColour *result = 0 ;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11254 {
554f62e9
RD
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11256 result = (wxColour *) &_result_ref;
d55e5bfc 11257 }
554f62e9
RD
11258 wxPyEndAllowThreads(__tstate);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11262 return resultobj;
11263fail:
11264 return NULL;
d55e5bfc
RD
11265}
11266
11267
554f62e9
RD
11268SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxFont *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11285 {
554f62e9
RD
11286 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11287 result = (wxFont *) &_result_ref;
d55e5bfc 11288 }
554f62e9
RD
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 wxFont* resultptr = new wxFont(*result);
11294 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11295 }
11296 return resultobj;
11297fail:
11298 return NULL;
d55e5bfc
RD
11299}
11300
11301
554f62e9
RD
11302SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11303 PyObject *resultobj = 0;
11304 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11305 wxTextAttrAlignment result;
11306 void *argp1 = 0 ;
11307 int res1 = 0 ;
11308 PyObject *swig_obj[1] ;
11309
11310 if (!args) SWIG_fail;
11311 swig_obj[0] = args;
11312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11315 }
11316 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 resultobj = SWIG_From_int(static_cast< int >(result));
11324 return resultobj;
11325fail:
11326 return NULL;
d55e5bfc
RD
11327}
11328
11329
554f62e9
RD
11330SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11331 PyObject *resultobj = 0;
11332 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11333 wxArrayInt *result = 0 ;
11334 void *argp1 = 0 ;
11335 int res1 = 0 ;
11336 PyObject *swig_obj[1] ;
11337
11338 if (!args) SWIG_fail;
11339 swig_obj[0] = args;
11340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11343 }
11344 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11347 {
554f62e9
RD
11348 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11349 result = (wxArrayInt *) &_result_ref;
d55e5bfc 11350 }
554f62e9
RD
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 {
11355 resultobj = PyList_New(0);
11356 size_t idx;
11357 for (idx = 0; idx < result->GetCount(); idx += 1) {
11358 PyObject* val = PyInt_FromLong( result->Item(idx) );
11359 PyList_Append(resultobj, val);
11360 Py_DECREF(val);
d55e5bfc 11361 }
554f62e9
RD
11362 }
11363 return resultobj;
11364fail:
11365 return NULL;
d55e5bfc
RD
11366}
11367
11368
554f62e9
RD
11369SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11370 PyObject *resultobj = 0;
11371 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11372 long result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 PyObject *swig_obj[1] ;
11376
11377 if (!args) SWIG_fail;
11378 swig_obj[0] = args;
11379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11380 if (!SWIG_IsOK(res1)) {
11381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11382 }
11383 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_From_long(static_cast< long >(result));
11391 return resultobj;
11392fail:
11393 return NULL;
d55e5bfc
RD
11394}
11395
11396
554f62e9
RD
11397SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 PyObject *resultobj = 0;
11399 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11400 long result;
11401 void *argp1 = 0 ;
11402 int res1 = 0 ;
11403 PyObject *swig_obj[1] ;
11404
11405 if (!args) SWIG_fail;
11406 swig_obj[0] = args;
11407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11410 }
11411 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 resultobj = SWIG_From_long(static_cast< long >(result));
11419 return resultobj;
11420fail:
11421 return NULL;
d55e5bfc
RD
11422}
11423
11424
554f62e9
RD
11425SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11426 PyObject *resultobj = 0;
11427 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11428 long result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 PyObject *swig_obj[1] ;
11432
11433 if (!args) SWIG_fail;
11434 swig_obj[0] = args;
11435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11438 }
11439 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_From_long(static_cast< long >(result));
11447 return resultobj;
11448fail:
11449 return NULL;
d55e5bfc
RD
11450}
11451
11452
554f62e9
RD
11453SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11456 long result;
11457 void *argp1 = 0 ;
11458 int res1 = 0 ;
11459 PyObject *swig_obj[1] ;
11460
11461 if (!args) SWIG_fail;
11462 swig_obj[0] = args;
11463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 resultobj = SWIG_From_long(static_cast< long >(result));
11475 return resultobj;
11476fail:
11477 return NULL;
d55e5bfc
RD
11478}
11479
11480
554f62e9
RD
11481SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11482 PyObject *resultobj = 0;
11483 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11484 bool result;
11485 void *argp1 = 0 ;
11486 int res1 = 0 ;
11487 PyObject *swig_obj[1] ;
11488
11489 if (!args) SWIG_fail;
11490 swig_obj[0] = args;
11491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11494 }
11495 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11496 {
11497 PyThreadState* __tstate = wxPyBeginAllowThreads();
11498 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 {
11503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11504 }
11505 return resultobj;
11506fail:
11507 return NULL;
11508}
11509
11510
11511SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj = 0;
11513 wxTextAttr *arg1 = 0 ;
11514 wxTextAttr *arg2 = 0 ;
11515 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11516 wxTextAttr result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 void *argp2 = 0 ;
11520 int res2 = 0 ;
11521 void *argp3 = 0 ;
11522 int res3 = 0 ;
11523 PyObject * obj0 = 0 ;
11524 PyObject * obj1 = 0 ;
11525 PyObject * obj2 = 0 ;
11526 char * kwnames[] = {
11527 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11528 };
11529
11530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11534 }
11535 if (!argp1) {
11536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11537 }
11538 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11540 if (!SWIG_IsOK(res2)) {
11541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11542 }
11543 if (!argp2) {
11544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11545 }
11546 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11547 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11548 if (!SWIG_IsOK(res3)) {
11549 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11550 }
11551 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11552 {
11553 PyThreadState* __tstate = wxPyBeginAllowThreads();
11554 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11559 return resultobj;
11560fail:
11561 return NULL;
11562}
11563
11564
11565SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11566 PyObject *obj;
11567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11568 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11569 return SWIG_Py_Void();
11570}
11571
11572SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11573 return SWIG_Python_InitShadowInstance(args);
11574}
11575
11576SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj = 0;
11578 wxWindow *arg1 = (wxWindow *) 0 ;
11579 int arg2 = (int) -1 ;
11580 wxString const &arg3_defvalue = wxPyEmptyString ;
11581 wxString *arg3 = (wxString *) &arg3_defvalue ;
11582 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11583 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11584 wxSize const &arg5_defvalue = wxDefaultSize ;
11585 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11586 long arg6 = (long) 0 ;
11587 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11588 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11589 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11590 wxString *arg8 = (wxString *) &arg8_defvalue ;
11591 wxTextCtrl *result = 0 ;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 int val2 ;
11595 int ecode2 = 0 ;
11596 bool temp3 = false ;
11597 wxPoint temp4 ;
11598 wxSize temp5 ;
11599 long val6 ;
11600 int ecode6 = 0 ;
11601 void *argp7 = 0 ;
11602 int res7 = 0 ;
11603 bool temp8 = false ;
11604 PyObject * obj0 = 0 ;
11605 PyObject * obj1 = 0 ;
11606 PyObject * obj2 = 0 ;
11607 PyObject * obj3 = 0 ;
11608 PyObject * obj4 = 0 ;
11609 PyObject * obj5 = 0 ;
11610 PyObject * obj6 = 0 ;
11611 PyObject * obj7 = 0 ;
11612 char * kwnames[] = {
11613 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11614 };
11615
11616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11618 if (!SWIG_IsOK(res1)) {
11619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11620 }
11621 arg1 = reinterpret_cast< wxWindow * >(argp1);
11622 if (obj1) {
11623 ecode2 = SWIG_AsVal_int(obj1, &val2);
11624 if (!SWIG_IsOK(ecode2)) {
11625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11626 }
11627 arg2 = static_cast< int >(val2);
11628 }
11629 if (obj2) {
d55e5bfc 11630 {
554f62e9
RD
11631 arg3 = wxString_in_helper(obj2);
11632 if (arg3 == NULL) SWIG_fail;
11633 temp3 = true;
d55e5bfc 11634 }
554f62e9
RD
11635 }
11636 if (obj3) {
d55e5bfc 11637 {
554f62e9
RD
11638 arg4 = &temp4;
11639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11640 }
554f62e9
RD
11641 }
11642 if (obj4) {
d55e5bfc 11643 {
554f62e9
RD
11644 arg5 = &temp5;
11645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11646 }
554f62e9
RD
11647 }
11648 if (obj5) {
11649 ecode6 = SWIG_AsVal_long(obj5, &val6);
11650 if (!SWIG_IsOK(ecode6)) {
11651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11652 }
11653 arg6 = static_cast< long >(val6);
11654 }
11655 if (obj6) {
11656 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11657 if (!SWIG_IsOK(res7)) {
11658 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11659 }
554f62e9
RD
11660 if (!argp7) {
11661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11662 }
554f62e9
RD
11663 arg7 = reinterpret_cast< wxValidator * >(argp7);
11664 }
11665 if (obj7) {
d55e5bfc 11666 {
554f62e9
RD
11667 arg8 = wxString_in_helper(obj7);
11668 if (arg8 == NULL) SWIG_fail;
11669 temp8 = true;
d55e5bfc 11670 }
554f62e9
RD
11671 }
11672 {
11673 if (!wxPyCheckForApp()) SWIG_fail;
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11680 {
11681 if (temp3)
11682 delete arg3;
11683 }
11684 {
11685 if (temp8)
11686 delete arg8;
11687 }
11688 return resultobj;
11689fail:
11690 {
11691 if (temp3)
11692 delete arg3;
11693 }
11694 {
11695 if (temp8)
11696 delete arg8;
11697 }
11698 return NULL;
d55e5bfc
RD
11699}
11700
11701
554f62e9
RD
11702SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11703 PyObject *resultobj = 0;
11704 wxTextCtrl *result = 0 ;
11705
11706 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11707 {
11708 if (!wxPyCheckForApp()) SWIG_fail;
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (wxTextCtrl *)new wxTextCtrl();
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11715 return resultobj;
11716fail:
11717 return NULL;
11718}
11719
11720
11721SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj = 0;
11723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11724 wxWindow *arg2 = (wxWindow *) 0 ;
11725 int arg3 = (int) -1 ;
11726 wxString const &arg4_defvalue = wxPyEmptyString ;
11727 wxString *arg4 = (wxString *) &arg4_defvalue ;
11728 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11729 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11730 wxSize const &arg6_defvalue = wxDefaultSize ;
11731 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11732 long arg7 = (long) 0 ;
11733 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11734 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11735 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11736 wxString *arg9 = (wxString *) &arg9_defvalue ;
11737 bool result;
11738 void *argp1 = 0 ;
11739 int res1 = 0 ;
11740 void *argp2 = 0 ;
11741 int res2 = 0 ;
11742 int val3 ;
11743 int ecode3 = 0 ;
11744 bool temp4 = false ;
11745 wxPoint temp5 ;
11746 wxSize temp6 ;
11747 long val7 ;
11748 int ecode7 = 0 ;
11749 void *argp8 = 0 ;
11750 int res8 = 0 ;
11751 bool temp9 = false ;
11752 PyObject * obj0 = 0 ;
11753 PyObject * obj1 = 0 ;
11754 PyObject * obj2 = 0 ;
11755 PyObject * obj3 = 0 ;
11756 PyObject * obj4 = 0 ;
11757 PyObject * obj5 = 0 ;
11758 PyObject * obj6 = 0 ;
11759 PyObject * obj7 = 0 ;
11760 PyObject * obj8 = 0 ;
11761 char * kwnames[] = {
11762 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11763 };
11764
11765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11767 if (!SWIG_IsOK(res1)) {
11768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11769 }
11770 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11772 if (!SWIG_IsOK(res2)) {
11773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11774 }
11775 arg2 = reinterpret_cast< wxWindow * >(argp2);
11776 if (obj2) {
11777 ecode3 = SWIG_AsVal_int(obj2, &val3);
11778 if (!SWIG_IsOK(ecode3)) {
11779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11780 }
11781 arg3 = static_cast< int >(val3);
11782 }
11783 if (obj3) {
d55e5bfc 11784 {
554f62e9
RD
11785 arg4 = wxString_in_helper(obj3);
11786 if (arg4 == NULL) SWIG_fail;
11787 temp4 = true;
d55e5bfc 11788 }
554f62e9
RD
11789 }
11790 if (obj4) {
d55e5bfc 11791 {
554f62e9
RD
11792 arg5 = &temp5;
11793 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11794 }
554f62e9
RD
11795 }
11796 if (obj5) {
d55e5bfc 11797 {
554f62e9
RD
11798 arg6 = &temp6;
11799 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11800 }
554f62e9
RD
11801 }
11802 if (obj6) {
11803 ecode7 = SWIG_AsVal_long(obj6, &val7);
11804 if (!SWIG_IsOK(ecode7)) {
11805 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11806 }
11807 arg7 = static_cast< long >(val7);
11808 }
11809 if (obj7) {
11810 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11811 if (!SWIG_IsOK(res8)) {
11812 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11813 }
554f62e9
RD
11814 if (!argp8) {
11815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11816 }
554f62e9
RD
11817 arg8 = reinterpret_cast< wxValidator * >(argp8);
11818 }
11819 if (obj8) {
d55e5bfc 11820 {
554f62e9
RD
11821 arg9 = wxString_in_helper(obj8);
11822 if (arg9 == NULL) SWIG_fail;
11823 temp9 = true;
d55e5bfc 11824 }
554f62e9
RD
11825 }
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 {
11833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11834 }
11835 {
11836 if (temp4)
11837 delete arg4;
11838 }
11839 {
11840 if (temp9)
11841 delete arg9;
11842 }
11843 return resultobj;
11844fail:
11845 {
11846 if (temp4)
11847 delete arg4;
11848 }
11849 {
11850 if (temp9)
11851 delete arg9;
11852 }
11853 return NULL;
d55e5bfc
RD
11854}
11855
11856
554f62e9
RD
11857SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11858 PyObject *resultobj = 0;
11859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11860 wxString result;
11861 void *argp1 = 0 ;
11862 int res1 = 0 ;
11863 PyObject *swig_obj[1] ;
11864
11865 if (!args) SWIG_fail;
11866 swig_obj[0] = args;
11867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11868 if (!SWIG_IsOK(res1)) {
11869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11870 }
11871 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = ((wxTextCtrl const *)arg1)->GetValue();
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
11879#if wxUSE_UNICODE
11880 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11881#else
11882 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11883#endif
11884 }
11885 return resultobj;
11886fail:
11887 return NULL;
11888}
11889
11890
11891SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11894 wxString *arg2 = 0 ;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 bool temp2 = false ;
11898 PyObject * obj0 = 0 ;
11899 PyObject * obj1 = 0 ;
11900 char * kwnames[] = {
11901 (char *) "self",(char *) "value", NULL
11902 };
11903
11904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11908 }
11909 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11910 {
11911 arg2 = wxString_in_helper(obj1);
11912 if (arg2 == NULL) SWIG_fail;
11913 temp2 = true;
11914 }
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 (arg1)->SetValue((wxString const &)*arg2);
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_Py_Void();
11922 {
11923 if (temp2)
11924 delete arg2;
11925 }
11926 return resultobj;
11927fail:
11928 {
11929 if (temp2)
11930 delete arg2;
11931 }
11932 return NULL;
11933}
11934
11935
11936SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11939 long arg2 ;
11940 long arg3 ;
11941 wxString result;
11942 void *argp1 = 0 ;
11943 int res1 = 0 ;
11944 long val2 ;
11945 int ecode2 = 0 ;
11946 long val3 ;
11947 int ecode3 = 0 ;
11948 PyObject * obj0 = 0 ;
11949 PyObject * obj1 = 0 ;
11950 PyObject * obj2 = 0 ;
11951 char * kwnames[] = {
f460c29d 11952 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
11953 };
11954
11955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11959 }
11960 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11961 ecode2 = SWIG_AsVal_long(obj1, &val2);
11962 if (!SWIG_IsOK(ecode2)) {
11963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11964 }
11965 arg2 = static_cast< long >(val2);
11966 ecode3 = SWIG_AsVal_long(obj2, &val3);
11967 if (!SWIG_IsOK(ecode3)) {
11968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11969 }
11970 arg3 = static_cast< long >(val3);
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978#if wxUSE_UNICODE
11979 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11980#else
11981 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11982#endif
11983 }
11984 return resultobj;
11985fail:
11986 return NULL;
11987}
11988
11989
11990SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj = 0;
11992 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11993 long arg2 ;
11994 int result;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 long val2 ;
11998 int ecode2 = 0 ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12001 char * kwnames[] = {
12002 (char *) "self",(char *) "lineNo", NULL
12003 };
12004
12005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12007 if (!SWIG_IsOK(res1)) {
12008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12009 }
12010 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12011 ecode2 = SWIG_AsVal_long(obj1, &val2);
12012 if (!SWIG_IsOK(ecode2)) {
12013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12014 }
12015 arg2 = static_cast< long >(val2);
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 resultobj = SWIG_From_int(static_cast< int >(result));
12023 return resultobj;
12024fail:
12025 return NULL;
12026}
12027
12028
12029SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj = 0;
12031 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12032 long arg2 ;
12033 wxString result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 long val2 ;
12037 int ecode2 = 0 ;
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
12040 char * kwnames[] = {
12041 (char *) "self",(char *) "lineNo", NULL
12042 };
12043
12044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12046 if (!SWIG_IsOK(res1)) {
12047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12048 }
12049 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12050 ecode2 = SWIG_AsVal_long(obj1, &val2);
12051 if (!SWIG_IsOK(ecode2)) {
12052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12053 }
12054 arg2 = static_cast< long >(val2);
12055 {
12056 PyThreadState* __tstate = wxPyBeginAllowThreads();
12057 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 {
12062#if wxUSE_UNICODE
12063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12064#else
12065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12066#endif
12067 }
12068 return resultobj;
12069fail:
12070 return NULL;
d55e5bfc
RD
12071}
12072
12073
554f62e9
RD
12074SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12075 PyObject *resultobj = 0;
12076 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12077 int result;
12078 void *argp1 = 0 ;
12079 int res1 = 0 ;
12080 PyObject *swig_obj[1] ;
12081
12082 if (!args) SWIG_fail;
12083 swig_obj[0] = args;
12084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12085 if (!SWIG_IsOK(res1)) {
12086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12087 }
12088 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_From_int(static_cast< int >(result));
12096 return resultobj;
12097fail:
12098 return NULL;
d55e5bfc
RD
12099}
12100
12101
554f62e9
RD
12102SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12103 PyObject *resultobj = 0;
12104 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12105 bool result;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 PyObject *swig_obj[1] ;
12109
12110 if (!args) SWIG_fail;
12111 swig_obj[0] = args;
12112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12113 if (!SWIG_IsOK(res1)) {
12114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12115 }
12116 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12125 }
12126 return resultobj;
12127fail:
12128 return NULL;
d55e5bfc
RD
12129}
12130
12131
554f62e9
RD
12132SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12133 PyObject *resultobj = 0;
12134 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12135 bool result;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 PyObject *swig_obj[1] ;
12139
12140 if (!args) SWIG_fail;
12141 swig_obj[0] = args;
12142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12145 }
12146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12155 }
12156 return resultobj;
12157fail:
12158 return NULL;
d55e5bfc
RD
12159}
12160
12161
554f62e9
RD
12162SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12163 PyObject *resultobj = 0;
12164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12165 bool result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 PyObject *swig_obj[1] ;
12169
12170 if (!args) SWIG_fail;
12171 swig_obj[0] = args;
12172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12175 }
12176 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12185 }
12186 return resultobj;
12187fail:
12188 return NULL;
d55e5bfc
RD
12189}
12190
12191
554f62e9
RD
12192SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12193 PyObject *resultobj = 0;
12194 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12195 bool result;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 PyObject *swig_obj[1] ;
12199
12200 if (!args) SWIG_fail;
12201 swig_obj[0] = args;
12202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12203 if (!SWIG_IsOK(res1)) {
12204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12205 }
12206 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 {
12214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12215 }
12216 return resultobj;
12217fail:
12218 return NULL;
12219}
12220
12221
12222SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12225 long *arg2 = (long *) 0 ;
12226 long *arg3 = (long *) 0 ;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 long temp2 ;
12230 int res2 = SWIG_TMPOBJ ;
12231 long temp3 ;
12232 int res3 = SWIG_TMPOBJ ;
12233 PyObject *swig_obj[1] ;
12234
12235 arg2 = &temp2;
12236 arg3 = &temp3;
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12242 }
12243 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 resultobj = SWIG_Py_Void();
12251 if (SWIG_IsTmpObj(res2)) {
12252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12253 } else {
12254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12256 }
12257 if (SWIG_IsTmpObj(res3)) {
12258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12259 } else {
12260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12262 }
12263 return resultobj;
12264fail:
12265 return NULL;
d55e5bfc
RD
12266}
12267
12268
554f62e9
RD
12269SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 wxString 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_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291#if wxUSE_UNICODE
12292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12293#else
12294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12295#endif
12296 }
12297 return resultobj;
12298fail:
12299 return NULL;
d55e5bfc
RD
12300}
12301
12302
554f62e9
RD
12303SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12306 void *argp1 = 0 ;
12307 int res1 = 0 ;
12308 PyObject *swig_obj[1] ;
12309
12310 if (!args) SWIG_fail;
12311 swig_obj[0] = args;
12312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12315 }
12316 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 (arg1)->Clear();
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 resultobj = SWIG_Py_Void();
12324 return resultobj;
12325fail:
12326 return NULL;
12327}
12328
12329
12330SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj = 0;
12332 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12333 long arg2 ;
12334 long arg3 ;
12335 wxString *arg4 = 0 ;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 long val2 ;
12339 int ecode2 = 0 ;
12340 long val3 ;
12341 int ecode3 = 0 ;
12342 bool temp4 = false ;
12343 PyObject * obj0 = 0 ;
12344 PyObject * obj1 = 0 ;
12345 PyObject * obj2 = 0 ;
12346 PyObject * obj3 = 0 ;
12347 char * kwnames[] = {
f460c29d 12348 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
12349 };
12350
12351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12355 }
12356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12357 ecode2 = SWIG_AsVal_long(obj1, &val2);
12358 if (!SWIG_IsOK(ecode2)) {
12359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12360 }
12361 arg2 = static_cast< long >(val2);
12362 ecode3 = SWIG_AsVal_long(obj2, &val3);
12363 if (!SWIG_IsOK(ecode3)) {
12364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12365 }
12366 arg3 = static_cast< long >(val3);
12367 {
12368 arg4 = wxString_in_helper(obj3);
12369 if (arg4 == NULL) SWIG_fail;
12370 temp4 = true;
12371 }
12372 {
12373 PyThreadState* __tstate = wxPyBeginAllowThreads();
12374 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 resultobj = SWIG_Py_Void();
12379 {
12380 if (temp4)
12381 delete arg4;
12382 }
12383 return resultobj;
12384fail:
12385 {
12386 if (temp4)
12387 delete arg4;
12388 }
12389 return NULL;
12390}
12391
12392
12393SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj = 0;
12395 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12396 long arg2 ;
12397 long arg3 ;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 long val2 ;
12401 int ecode2 = 0 ;
12402 long val3 ;
12403 int ecode3 = 0 ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 PyObject * obj2 = 0 ;
12407 char * kwnames[] = {
f460c29d 12408 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12415 }
12416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12417 ecode2 = SWIG_AsVal_long(obj1, &val2);
12418 if (!SWIG_IsOK(ecode2)) {
12419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12420 }
12421 arg2 = static_cast< long >(val2);
12422 ecode3 = SWIG_AsVal_long(obj2, &val3);
12423 if (!SWIG_IsOK(ecode3)) {
12424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12425 }
12426 arg3 = static_cast< long >(val3);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 (arg1)->Remove(arg2,arg3);
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_Py_Void();
12434 return resultobj;
12435fail:
12436 return NULL;
12437}
12438
12439
12440SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 wxString *arg2 = 0 ;
12444 bool result;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 bool temp2 = false ;
12448 PyObject * obj0 = 0 ;
12449 PyObject * obj1 = 0 ;
12450 char * kwnames[] = {
12451 (char *) "self",(char *) "file", NULL
12452 };
12453
12454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12456 if (!SWIG_IsOK(res1)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12458 }
12459 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12460 {
12461 arg2 = wxString_in_helper(obj1);
12462 if (arg2 == NULL) SWIG_fail;
12463 temp2 = true;
12464 }
12465 {
12466 PyThreadState* __tstate = wxPyBeginAllowThreads();
12467 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 {
12472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12473 }
12474 {
12475 if (temp2)
12476 delete arg2;
12477 }
12478 return resultobj;
12479fail:
12480 {
12481 if (temp2)
12482 delete arg2;
12483 }
12484 return NULL;
12485}
12486
12487
12488SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj = 0;
12490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12491 wxString const &arg2_defvalue = wxPyEmptyString ;
12492 wxString *arg2 = (wxString *) &arg2_defvalue ;
12493 bool result;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 bool temp2 = false ;
12497 PyObject * obj0 = 0 ;
12498 PyObject * obj1 = 0 ;
12499 char * kwnames[] = {
12500 (char *) "self",(char *) "file", NULL
12501 };
12502
12503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12507 }
12508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12509 if (obj1) {
d55e5bfc 12510 {
554f62e9
RD
12511 arg2 = wxString_in_helper(obj1);
12512 if (arg2 == NULL) SWIG_fail;
12513 temp2 = true;
d55e5bfc 12514 }
554f62e9
RD
12515 }
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 {
12523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12524 }
12525 {
12526 if (temp2)
12527 delete arg2;
12528 }
12529 return resultobj;
12530fail:
12531 {
12532 if (temp2)
12533 delete arg2;
12534 }
12535 return NULL;
d55e5bfc
RD
12536}
12537
12538
554f62e9
RD
12539SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *resultobj = 0;
12541 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12542 void *argp1 = 0 ;
12543 int res1 = 0 ;
12544 PyObject *swig_obj[1] ;
12545
12546 if (!args) SWIG_fail;
12547 swig_obj[0] = args;
12548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12549 if (!SWIG_IsOK(res1)) {
12550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12551 }
12552 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->MarkDirty();
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 resultobj = SWIG_Py_Void();
12560 return resultobj;
12561fail:
12562 return NULL;
d55e5bfc
RD
12563}
12564
12565
554f62e9
RD
12566SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12567 PyObject *resultobj = 0;
12568 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 PyObject *swig_obj[1] ;
12572
12573 if (!args) SWIG_fail;
12574 swig_obj[0] = args;
12575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12578 }
12579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->DiscardEdits();
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588fail:
12589 return NULL;
12590}
12591
12592
b02396e8
RD
12593SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj = 0;
12595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12596 bool arg2 ;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 bool val2 ;
12600 int ecode2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "modified", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12611 }
12612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12613 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12614 if (!SWIG_IsOK(ecode2)) {
12615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12616 }
12617 arg2 = static_cast< bool >(val2);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetModified(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626fail:
12627 return NULL;
12628}
12629
12630
554f62e9
RD
12631SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj = 0;
12633 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12634 unsigned long arg2 ;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 unsigned long val2 ;
12638 int ecode2 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "len", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12649 }
12650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12651 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12652 if (!SWIG_IsOK(ecode2)) {
12653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12654 }
12655 arg2 = static_cast< unsigned long >(val2);
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 (arg1)->SetMaxLength(arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 resultobj = SWIG_Py_Void();
12663 return resultobj;
12664fail:
12665 return NULL;
12666}
12667
12668
12669SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj = 0;
12671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12672 wxString *arg2 = 0 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool temp2 = false ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 char * kwnames[] = {
12679 (char *) "self",(char *) "text", NULL
12680 };
12681
12682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12686 }
12687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12688 {
12689 arg2 = wxString_in_helper(obj1);
12690 if (arg2 == NULL) SWIG_fail;
12691 temp2 = true;
12692 }
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 (arg1)->WriteText((wxString const &)*arg2);
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 resultobj = SWIG_Py_Void();
12700 {
12701 if (temp2)
12702 delete arg2;
12703 }
12704 return resultobj;
12705fail:
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 return NULL;
d55e5bfc
RD
12711}
12712
12713
554f62e9
RD
12714SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj = 0;
12716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12717 wxString *arg2 = 0 ;
12718 void *argp1 = 0 ;
12719 int res1 = 0 ;
12720 bool temp2 = false ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "text", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12731 }
12732 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12733 {
12734 arg2 = wxString_in_helper(obj1);
12735 if (arg2 == NULL) SWIG_fail;
12736 temp2 = true;
12737 }
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->AppendText((wxString const &)*arg2);
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = SWIG_Py_Void();
12745 {
12746 if (temp2)
12747 delete arg2;
12748 }
12749 return resultobj;
12750fail:
12751 {
12752 if (temp2)
12753 delete arg2;
12754 }
12755 return NULL;
12756}
12757
12758
12759SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12762 wxKeyEvent *arg2 = 0 ;
12763 bool result;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 void *argp2 = 0 ;
12767 int res2 = 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "event", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",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_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12781 if (!SWIG_IsOK(res2)) {
12782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12783 }
12784 if (!argp2) {
12785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12786 }
12787 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 {
12795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12796 }
12797 return resultobj;
12798fail:
12799 return NULL;
12800}
12801
12802
12803SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj = 0;
12805 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12806 long arg2 ;
12807 long arg3 ;
12808 wxTextAttr *arg4 = 0 ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 long val2 ;
12813 int ecode2 = 0 ;
12814 long val3 ;
12815 int ecode3 = 0 ;
12816 void *argp4 = 0 ;
12817 int res4 = 0 ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 PyObject * obj3 = 0 ;
12822 char * kwnames[] = {
12823 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12824 };
12825
12826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12830 }
12831 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12832 ecode2 = SWIG_AsVal_long(obj1, &val2);
12833 if (!SWIG_IsOK(ecode2)) {
12834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12835 }
12836 arg2 = static_cast< long >(val2);
12837 ecode3 = SWIG_AsVal_long(obj2, &val3);
12838 if (!SWIG_IsOK(ecode3)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12840 }
12841 arg3 = static_cast< long >(val3);
12842 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12843 if (!SWIG_IsOK(res4)) {
12844 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12845 }
12846 if (!argp4) {
12847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12848 }
12849 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 {
12857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12858 }
12859 return resultobj;
12860fail:
12861 return NULL;
12862}
12863
12864
12865SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12868 long arg2 ;
12869 wxTextAttr *arg3 = 0 ;
12870 bool result;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 long val2 ;
12874 int ecode2 = 0 ;
12875 void *argp3 = 0 ;
12876 int res3 = 0 ;
12877 PyObject * obj0 = 0 ;
12878 PyObject * obj1 = 0 ;
12879 PyObject * obj2 = 0 ;
12880 char * kwnames[] = {
12881 (char *) "self",(char *) "position",(char *) "style", NULL
12882 };
12883
12884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12886 if (!SWIG_IsOK(res1)) {
12887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12888 }
12889 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12890 ecode2 = SWIG_AsVal_long(obj1, &val2);
12891 if (!SWIG_IsOK(ecode2)) {
12892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12893 }
12894 arg2 = static_cast< long >(val2);
12895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12896 if (!SWIG_IsOK(res3)) {
12897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12898 }
12899 if (!argp3) {
12900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12901 }
12902 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 {
12910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12911 }
12912 return resultobj;
12913fail:
12914 return NULL;
12915}
12916
12917
12918SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 wxTextAttr *arg2 = 0 ;
12922 bool result;
12923 void *argp1 = 0 ;
12924 int res1 = 0 ;
12925 void *argp2 = 0 ;
12926 int res2 = 0 ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 char * kwnames[] = {
12930 (char *) "self",(char *) "style", NULL
12931 };
12932
12933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12935 if (!SWIG_IsOK(res1)) {
12936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12937 }
12938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12939 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12940 if (!SWIG_IsOK(res2)) {
12941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12942 }
12943 if (!argp2) {
12944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12945 }
12946 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12955 }
12956 return resultobj;
12957fail:
12958 return NULL;
d55e5bfc
RD
12959}
12960
12961
554f62e9
RD
12962SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12963 PyObject *resultobj = 0;
12964 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12965 wxTextAttr *result = 0 ;
12966 void *argp1 = 0 ;
12967 int res1 = 0 ;
12968 PyObject *swig_obj[1] ;
12969
12970 if (!args) SWIG_fail;
12971 swig_obj[0] = args;
12972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12975 }
12976 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12979 {
554f62e9
RD
12980 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12981 result = (wxTextAttr *) &_result_ref;
093d3ff1 12982 }
554f62e9
RD
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12987 return resultobj;
12988fail:
12989 return NULL;
12990}
12991
12992
12993SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 long arg2 ;
12997 long arg3 ;
12998 long result;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 long val2 ;
13002 int ecode2 = 0 ;
13003 long val3 ;
13004 int ecode3 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 PyObject * obj1 = 0 ;
13007 PyObject * obj2 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "x",(char *) "y", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13016 }
13017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13018 ecode2 = SWIG_AsVal_long(obj1, &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13021 }
13022 arg2 = static_cast< long >(val2);
13023 ecode3 = SWIG_AsVal_long(obj2, &val3);
13024 if (!SWIG_IsOK(ecode3)) {
13025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13026 }
13027 arg3 = static_cast< long >(val3);
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = SWIG_From_long(static_cast< long >(result));
13035 return resultobj;
13036fail:
13037 return NULL;
13038}
13039
13040
13041SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj = 0;
13043 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13044 long arg2 ;
13045 long *arg3 = (long *) 0 ;
13046 long *arg4 = (long *) 0 ;
13047 void *argp1 = 0 ;
13048 int res1 = 0 ;
13049 long val2 ;
13050 int ecode2 = 0 ;
13051 long temp3 ;
13052 int res3 = SWIG_TMPOBJ ;
13053 long temp4 ;
13054 int res4 = SWIG_TMPOBJ ;
13055 PyObject * obj0 = 0 ;
13056 PyObject * obj1 = 0 ;
13057 char * kwnames[] = {
13058 (char *) "self",(char *) "pos", NULL
13059 };
13060
13061 arg3 = &temp3;
13062 arg4 = &temp4;
13063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13065 if (!SWIG_IsOK(res1)) {
13066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13067 }
13068 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13069 ecode2 = SWIG_AsVal_long(obj1, &val2);
13070 if (!SWIG_IsOK(ecode2)) {
13071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13072 }
13073 arg2 = static_cast< long >(val2);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_Py_Void();
13081 if (SWIG_IsTmpObj(res3)) {
13082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13083 } else {
13084 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13086 }
13087 if (SWIG_IsTmpObj(res4)) {
13088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13089 } else {
13090 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13092 }
13093 return resultobj;
13094fail:
13095 return NULL;
13096}
13097
13098
13099SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = 0;
13101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13102 long arg2 ;
13103 void *argp1 = 0 ;
13104 int res1 = 0 ;
13105 long val2 ;
13106 int ecode2 = 0 ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "self",(char *) "pos", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13117 }
13118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13119 ecode2 = SWIG_AsVal_long(obj1, &val2);
13120 if (!SWIG_IsOK(ecode2)) {
13121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13122 }
13123 arg2 = static_cast< long >(val2);
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 (arg1)->ShowPosition(arg2);
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 resultobj = SWIG_Py_Void();
13131 return resultobj;
13132fail:
13133 return NULL;
13134}
13135
13136
13137SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13138 PyObject *resultobj = 0;
13139 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13140 wxPoint *arg2 = 0 ;
13141 long *arg3 = (long *) 0 ;
13142 long *arg4 = (long *) 0 ;
13143 wxTextCtrlHitTestResult result;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 wxPoint temp2 ;
13147 long temp3 ;
13148 int res3 = SWIG_TMPOBJ ;
13149 long temp4 ;
13150 int res4 = SWIG_TMPOBJ ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "pt", NULL
13155 };
13156
13157 arg3 = &temp3;
13158 arg4 = &temp4;
13159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13161 if (!SWIG_IsOK(res1)) {
13162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13163 }
13164 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13165 {
13166 arg2 = &temp2;
13167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13168 }
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 resultobj = SWIG_From_int(static_cast< int >(result));
13176 if (SWIG_IsTmpObj(res3)) {
13177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13178 } else {
13179 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13181 }
13182 if (SWIG_IsTmpObj(res4)) {
13183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13184 } else {
13185 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13187 }
13188 return resultobj;
13189fail:
13190 return NULL;
13191}
13192
13193
13194SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = 0;
13196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13197 wxPoint *arg2 = 0 ;
13198 long *arg3 = (long *) 0 ;
13199 wxTextCtrlHitTestResult result;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 wxPoint temp2 ;
13203 long temp3 ;
13204 int res3 = SWIG_TMPOBJ ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 char * kwnames[] = {
13208 (char *) "self",(char *) "pt", NULL
13209 };
13210
13211 arg3 = &temp3;
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13216 }
13217 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13218 {
13219 arg2 = &temp2;
13220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_From_int(static_cast< int >(result));
13229 if (SWIG_IsTmpObj(res3)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236fail:
13237 return NULL;
d55e5bfc
RD
13238}
13239
13240
554f62e9
RD
13241SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 PyObject *swig_obj[1] ;
13247
13248 if (!args) SWIG_fail;
13249 swig_obj[0] = args;
13250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13253 }
13254 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->Copy();
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263fail:
13264 return NULL;
d55e5bfc 13265}
554f62e9
RD
13266
13267
13268SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13271 void *argp1 = 0 ;
13272 int res1 = 0 ;
13273 PyObject *swig_obj[1] ;
13274
13275 if (!args) SWIG_fail;
13276 swig_obj[0] = args;
13277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13278 if (!SWIG_IsOK(res1)) {
13279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13280 }
13281 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13282 {
13283 PyThreadState* __tstate = wxPyBeginAllowThreads();
13284 (arg1)->Cut();
13285 wxPyEndAllowThreads(__tstate);
13286 if (PyErr_Occurred()) SWIG_fail;
13287 }
13288 resultobj = SWIG_Py_Void();
13289 return resultobj;
13290fail:
13291 return NULL;
d55e5bfc
RD
13292}
13293
13294
554f62e9
RD
13295SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13296 PyObject *resultobj = 0;
13297 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13298 void *argp1 = 0 ;
13299 int res1 = 0 ;
13300 PyObject *swig_obj[1] ;
13301
13302 if (!args) SWIG_fail;
13303 swig_obj[0] = args;
13304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13305 if (!SWIG_IsOK(res1)) {
13306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13307 }
13308 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 (arg1)->Paste();
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_Py_Void();
13316 return resultobj;
13317fail:
13318 return NULL;
d55e5bfc
RD
13319}
13320
13321
554f62e9
RD
13322SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13325 bool result;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 PyObject *swig_obj[1] ;
13329
13330 if (!args) SWIG_fail;
13331 swig_obj[0] = args;
13332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13335 }
13336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 return resultobj;
13347fail:
13348 return NULL;
d55e5bfc
RD
13349}
13350
13351
554f62e9
RD
13352SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13355 bool result;
13356 void *argp1 = 0 ;
13357 int res1 = 0 ;
13358 PyObject *swig_obj[1] ;
13359
13360 if (!args) SWIG_fail;
13361 swig_obj[0] = args;
13362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13363 if (!SWIG_IsOK(res1)) {
13364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13365 }
13366 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 {
13374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13375 }
13376 return resultobj;
13377fail:
13378 return NULL;
d55e5bfc
RD
13379}
13380
13381
554f62e9
RD
13382SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13385 bool result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 {
13404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13405 }
13406 return resultobj;
13407fail:
13408 return NULL;
d55e5bfc
RD
13409}
13410
13411
554f62e9
RD
13412SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13415 void *argp1 = 0 ;
13416 int res1 = 0 ;
13417 PyObject *swig_obj[1] ;
13418
13419 if (!args) SWIG_fail;
13420 swig_obj[0] = args;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13424 }
13425 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->Undo();
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 resultobj = SWIG_Py_Void();
13433 return resultobj;
13434fail:
13435 return NULL;
d55e5bfc
RD
13436}
13437
13438
554f62e9
RD
13439SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 PyObject *swig_obj[1] ;
13445
13446 if (!args) SWIG_fail;
13447 swig_obj[0] = args;
13448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13451 }
13452 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 (arg1)->Redo();
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_Py_Void();
13460 return resultobj;
13461fail:
13462 return NULL;
d55e5bfc
RD
13463}
13464
13465
554f62e9
RD
13466SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 bool result;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 PyObject *swig_obj[1] ;
13473
13474 if (!args) SWIG_fail;
13475 swig_obj[0] = args;
13476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13477 if (!SWIG_IsOK(res1)) {
13478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13479 }
13480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13489 }
13490 return resultobj;
13491fail:
13492 return NULL;
d55e5bfc
RD
13493}
13494
13495
554f62e9
RD
13496SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13497 PyObject *resultobj = 0;
13498 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13499 bool result;
13500 void *argp1 = 0 ;
13501 int res1 = 0 ;
13502 PyObject *swig_obj[1] ;
13503
13504 if (!args) SWIG_fail;
13505 swig_obj[0] = args;
13506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13507 if (!SWIG_IsOK(res1)) {
13508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13509 }
13510 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 {
13518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13519 }
13520 return resultobj;
13521fail:
13522 return NULL;
13523}
13524
13525
13526SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj = 0;
13528 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13529 long arg2 ;
13530 void *argp1 = 0 ;
13531 int res1 = 0 ;
13532 long val2 ;
13533 int ecode2 = 0 ;
13534 PyObject * obj0 = 0 ;
13535 PyObject * obj1 = 0 ;
13536 char * kwnames[] = {
13537 (char *) "self",(char *) "pos", NULL
13538 };
13539
13540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13544 }
13545 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13546 ecode2 = SWIG_AsVal_long(obj1, &val2);
13547 if (!SWIG_IsOK(ecode2)) {
13548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13549 }
13550 arg2 = static_cast< long >(val2);
13551 {
13552 PyThreadState* __tstate = wxPyBeginAllowThreads();
13553 (arg1)->SetInsertionPoint(arg2);
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 resultobj = SWIG_Py_Void();
13558 return resultobj;
13559fail:
13560 return NULL;
d55e5bfc
RD
13561}
13562
13563
554f62e9
RD
13564SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13565 PyObject *resultobj = 0;
13566 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13567 void *argp1 = 0 ;
13568 int res1 = 0 ;
13569 PyObject *swig_obj[1] ;
13570
13571 if (!args) SWIG_fail;
13572 swig_obj[0] = args;
13573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13574 if (!SWIG_IsOK(res1)) {
13575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13576 }
13577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 (arg1)->SetInsertionPointEnd();
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = SWIG_Py_Void();
13585 return resultobj;
13586fail:
13587 return NULL;
d55e5bfc
RD
13588}
13589
13590
554f62e9
RD
13591SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13592 PyObject *resultobj = 0;
13593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13594 long result;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 PyObject *swig_obj[1] ;
13598
13599 if (!args) SWIG_fail;
13600 swig_obj[0] = args;
13601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13602 if (!SWIG_IsOK(res1)) {
13603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13604 }
13605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_From_long(static_cast< long >(result));
13613 return resultobj;
13614fail:
13615 return NULL;
d55e5bfc
RD
13616}
13617
13618
554f62e9
RD
13619SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13620 PyObject *resultobj = 0;
13621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13622 long result;
13623 void *argp1 = 0 ;
13624 int res1 = 0 ;
13625 PyObject *swig_obj[1] ;
13626
13627 if (!args) SWIG_fail;
13628 swig_obj[0] = args;
13629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13630 if (!SWIG_IsOK(res1)) {
13631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13632 }
13633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13634 {
13635 PyThreadState* __tstate = wxPyBeginAllowThreads();
13636 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 resultobj = SWIG_From_long(static_cast< long >(result));
13641 return resultobj;
13642fail:
13643 return NULL;
13644}
13645
13646
13647SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj = 0;
13649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13650 long arg2 ;
13651 long arg3 ;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 long val2 ;
13655 int ecode2 = 0 ;
13656 long val3 ;
13657 int ecode3 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 PyObject * obj2 = 0 ;
13661 char * kwnames[] = {
f460c29d 13662 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
13663 };
13664
13665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13667 if (!SWIG_IsOK(res1)) {
13668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13669 }
13670 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13671 ecode2 = SWIG_AsVal_long(obj1, &val2);
13672 if (!SWIG_IsOK(ecode2)) {
13673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13674 }
13675 arg2 = static_cast< long >(val2);
13676 ecode3 = SWIG_AsVal_long(obj2, &val3);
13677 if (!SWIG_IsOK(ecode3)) {
13678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13679 }
13680 arg3 = static_cast< long >(val3);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 (arg1)->SetSelection(arg2,arg3);
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_Py_Void();
13688 return resultobj;
13689fail:
13690 return NULL;
d55e5bfc
RD
13691}
13692
13693
554f62e9
RD
13694SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 PyObject *swig_obj[1] ;
13700
13701 if (!args) SWIG_fail;
13702 swig_obj[0] = args;
13703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13704 if (!SWIG_IsOK(res1)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13706 }
13707 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 (arg1)->SelectAll();
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_Py_Void();
13715 return resultobj;
13716fail:
13717 return NULL;
13718}
13719
13720
13721SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13724 bool arg2 ;
13725 void *argp1 = 0 ;
13726 int res1 = 0 ;
13727 bool val2 ;
13728 int ecode2 = 0 ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "editable", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13739 }
13740 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13741 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13742 if (!SWIG_IsOK(ecode2)) {
13743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13744 }
13745 arg2 = static_cast< bool >(val2);
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 (arg1)->SetEditable(arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_Py_Void();
13753 return resultobj;
13754fail:
13755 return NULL;
13756}
13757
13758
13759SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13762 bool arg2 = (bool) true ;
13763 bool result;
13764 void *argp1 = 0 ;
13765 int res1 = 0 ;
13766 bool val2 ;
13767 int ecode2 = 0 ;
13768 PyObject * obj0 = 0 ;
13769 PyObject * obj1 = 0 ;
13770 char * kwnames[] = {
13771 (char *) "self",(char *) "show", NULL
13772 };
13773
13774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13776 if (!SWIG_IsOK(res1)) {
13777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13778 }
13779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13780 if (obj1) {
13781 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13782 if (!SWIG_IsOK(ecode2)) {
13783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13784 }
13785 arg2 = static_cast< bool >(val2);
13786 }
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 result = (bool)(arg1)->ShowNativeCaret(arg2);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 {
13794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13795 }
13796 return resultobj;
13797fail:
13798 return NULL;
d55e5bfc
RD
13799}
13800
13801
554f62e9
RD
13802SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13803 PyObject *resultobj = 0;
13804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13805 bool result;
13806 void *argp1 = 0 ;
13807 int res1 = 0 ;
13808 PyObject *swig_obj[1] ;
13809
13810 if (!args) SWIG_fail;
13811 swig_obj[0] = args;
13812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13815 }
13816 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = (bool)(arg1)->HideNativeCaret();
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 {
13824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13825 }
13826 return resultobj;
13827fail:
13828 return NULL;
13829}
13830
13831
13832SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13833 PyObject *resultobj = 0;
13834 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13835 wxString *arg2 = 0 ;
13836 void *argp1 = 0 ;
13837 int res1 = 0 ;
13838 bool temp2 = false ;
13839 PyObject * obj0 = 0 ;
13840 PyObject * obj1 = 0 ;
13841 char * kwnames[] = {
13842 (char *) "self",(char *) "text", NULL
13843 };
13844
13845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13847 if (!SWIG_IsOK(res1)) {
13848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13849 }
13850 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13851 {
13852 arg2 = wxString_in_helper(obj1);
13853 if (arg2 == NULL) SWIG_fail;
13854 temp2 = true;
13855 }
13856 {
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13859 wxPyEndAllowThreads(__tstate);
13860 if (PyErr_Occurred()) SWIG_fail;
13861 }
13862 resultobj = SWIG_Py_Void();
13863 {
13864 if (temp2)
13865 delete arg2;
13866 }
13867 return resultobj;
13868fail:
13869 {
13870 if (temp2)
13871 delete arg2;
13872 }
13873 return NULL;
13874}
13875
13876
13877SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj = 0;
13879 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13880 long arg2 ;
13881 long arg3 ;
13882 wxString result;
13883 void *argp1 = 0 ;
13884 int res1 = 0 ;
13885 long val2 ;
13886 int ecode2 = 0 ;
13887 long val3 ;
13888 int ecode3 = 0 ;
13889 PyObject * obj0 = 0 ;
13890 PyObject * obj1 = 0 ;
13891 PyObject * obj2 = 0 ;
13892 char * kwnames[] = {
f460c29d 13893 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
13894 };
13895
13896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13898 if (!SWIG_IsOK(res1)) {
13899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13900 }
13901 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13902 ecode2 = SWIG_AsVal_long(obj1, &val2);
13903 if (!SWIG_IsOK(ecode2)) {
13904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13905 }
13906 arg2 = static_cast< long >(val2);
13907 ecode3 = SWIG_AsVal_long(obj2, &val3);
13908 if (!SWIG_IsOK(ecode3)) {
13909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13910 }
13911 arg3 = static_cast< long >(val3);
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 {
13919#if wxUSE_UNICODE
13920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13921#else
13922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13923#endif
13924 }
13925 return resultobj;
13926fail:
13927 return NULL;
d55e5bfc
RD
13928}
13929
13930
554f62e9
RD
13931SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13932 PyObject *resultobj = 0;
13933 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13934 SwigValueWrapper<wxVisualAttributes > result;
13935 int val1 ;
13936 int ecode1 = 0 ;
13937 PyObject * obj0 = 0 ;
13938 char * kwnames[] = {
13939 (char *) "variant", NULL
13940 };
13941
13942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13943 if (obj0) {
13944 ecode1 = SWIG_AsVal_int(obj0, &val1);
13945 if (!SWIG_IsOK(ecode1)) {
13946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13947 }
13948 arg1 = static_cast< wxWindowVariant >(val1);
13949 }
13950 {
13951 if (!wxPyCheckForApp()) SWIG_fail;
13952 PyThreadState* __tstate = wxPyBeginAllowThreads();
13953 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13958 return resultobj;
13959fail:
13960 return NULL;
13961}
13962
13963
13964SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13965 PyObject *obj;
13966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13967 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13968 return SWIG_Py_Void();
13969}
13970
13971SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13972 return SWIG_Python_InitShadowInstance(args);
13973}
13974
13975SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj = 0;
13977 int arg1 ;
13978 wxMouseEvent *arg2 = 0 ;
13979 long arg3 ;
13980 long arg4 ;
13981 wxTextUrlEvent *result = 0 ;
13982 int val1 ;
13983 int ecode1 = 0 ;
13984 void *argp2 = 0 ;
13985 int res2 = 0 ;
13986 long val3 ;
13987 int ecode3 = 0 ;
13988 long val4 ;
13989 int ecode4 = 0 ;
13990 PyObject * obj0 = 0 ;
13991 PyObject * obj1 = 0 ;
13992 PyObject * obj2 = 0 ;
13993 PyObject * obj3 = 0 ;
13994 char * kwnames[] = {
13995 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13996 };
13997
13998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13999 ecode1 = SWIG_AsVal_int(obj0, &val1);
14000 if (!SWIG_IsOK(ecode1)) {
14001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14002 }
14003 arg1 = static_cast< int >(val1);
14004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14005 if (!SWIG_IsOK(res2)) {
14006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14007 }
14008 if (!argp2) {
14009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14010 }
14011 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14012 ecode3 = SWIG_AsVal_long(obj2, &val3);
14013 if (!SWIG_IsOK(ecode3)) {
14014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14015 }
14016 arg3 = static_cast< long >(val3);
14017 ecode4 = SWIG_AsVal_long(obj3, &val4);
14018 if (!SWIG_IsOK(ecode4)) {
14019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14020 }
14021 arg4 = static_cast< long >(val4);
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14029 return resultobj;
14030fail:
14031 return NULL;
d55e5bfc
RD
14032}
14033
14034
554f62e9
RD
14035SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14036 PyObject *resultobj = 0;
14037 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14038 wxMouseEvent *result = 0 ;
14039 void *argp1 = 0 ;
14040 int res1 = 0 ;
14041 PyObject *swig_obj[1] ;
14042
14043 if (!args) SWIG_fail;
14044 swig_obj[0] = args;
14045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14046 if (!SWIG_IsOK(res1)) {
14047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14048 }
14049 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14052 {
554f62e9
RD
14053 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14054 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14055 }
554f62e9
RD
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14060 return resultobj;
14061fail:
14062 return NULL;
d55e5bfc
RD
14063}
14064
14065
554f62e9
RD
14066SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14067 PyObject *resultobj = 0;
14068 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14069 long result;
14070 void *argp1 = 0 ;
14071 int res1 = 0 ;
14072 PyObject *swig_obj[1] ;
14073
14074 if (!args) SWIG_fail;
14075 swig_obj[0] = args;
14076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14077 if (!SWIG_IsOK(res1)) {
14078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14079 }
14080 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 resultobj = SWIG_From_long(static_cast< long >(result));
14088 return resultobj;
14089fail:
14090 return NULL;
d55e5bfc
RD
14091}
14092
14093
554f62e9
RD
14094SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14095 PyObject *resultobj = 0;
14096 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14097 long result;
14098 void *argp1 = 0 ;
14099 int res1 = 0 ;
14100 PyObject *swig_obj[1] ;
14101
14102 if (!args) SWIG_fail;
14103 swig_obj[0] = args;
14104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14105 if (!SWIG_IsOK(res1)) {
14106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14107 }
14108 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 resultobj = SWIG_From_long(static_cast< long >(result));
14116 return resultobj;
14117fail:
14118 return NULL;
d55e5bfc
RD
14119}
14120
14121
554f62e9
RD
14122SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14123 PyObject *obj;
14124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14125 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14126 return SWIG_Py_Void();
d55e5bfc
RD
14127}
14128
554f62e9
RD
14129SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14130 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14131}
14132
554f62e9
RD
14133SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14134 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14135 return 1;
d55e5bfc
RD
14136}
14137
14138
554f62e9
RD
14139SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14140 PyObject *pyobj = 0;
14141
14142 {
14143#if wxUSE_UNICODE
14144 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14145#else
14146 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14147#endif
14148 }
14149 return pyobj;
14150}
14151
14152
14153SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj = 0;
14155 wxWindow *arg1 = (wxWindow *) 0 ;
14156 int arg2 = (int) -1 ;
14157 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14158 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14159 wxSize const &arg4_defvalue = wxDefaultSize ;
14160 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14161 long arg5 = (long) wxSB_HORIZONTAL ;
14162 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14163 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14164 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14165 wxString *arg7 = (wxString *) &arg7_defvalue ;
14166 wxScrollBar *result = 0 ;
14167 void *argp1 = 0 ;
14168 int res1 = 0 ;
14169 int val2 ;
14170 int ecode2 = 0 ;
14171 wxPoint temp3 ;
14172 wxSize temp4 ;
14173 long val5 ;
14174 int ecode5 = 0 ;
14175 void *argp6 = 0 ;
14176 int res6 = 0 ;
14177 bool temp7 = false ;
14178 PyObject * obj0 = 0 ;
14179 PyObject * obj1 = 0 ;
14180 PyObject * obj2 = 0 ;
14181 PyObject * obj3 = 0 ;
14182 PyObject * obj4 = 0 ;
14183 PyObject * obj5 = 0 ;
14184 PyObject * obj6 = 0 ;
14185 char * kwnames[] = {
14186 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14187 };
14188
14189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14191 if (!SWIG_IsOK(res1)) {
14192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14193 }
14194 arg1 = reinterpret_cast< wxWindow * >(argp1);
14195 if (obj1) {
14196 ecode2 = SWIG_AsVal_int(obj1, &val2);
14197 if (!SWIG_IsOK(ecode2)) {
14198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14199 }
14200 arg2 = static_cast< int >(val2);
14201 }
14202 if (obj2) {
d55e5bfc 14203 {
554f62e9
RD
14204 arg3 = &temp3;
14205 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14206 }
554f62e9
RD
14207 }
14208 if (obj3) {
d55e5bfc 14209 {
554f62e9
RD
14210 arg4 = &temp4;
14211 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14212 }
554f62e9
RD
14213 }
14214 if (obj4) {
14215 ecode5 = SWIG_AsVal_long(obj4, &val5);
14216 if (!SWIG_IsOK(ecode5)) {
14217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14218 }
14219 arg5 = static_cast< long >(val5);
14220 }
14221 if (obj5) {
14222 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14223 if (!SWIG_IsOK(res6)) {
14224 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14225 }
14226 if (!argp6) {
14227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14228 }
554f62e9
RD
14229 arg6 = reinterpret_cast< wxValidator * >(argp6);
14230 }
14231 if (obj6) {
d55e5bfc 14232 {
554f62e9
RD
14233 arg7 = wxString_in_helper(obj6);
14234 if (arg7 == NULL) SWIG_fail;
14235 temp7 = true;
d55e5bfc 14236 }
554f62e9
RD
14237 }
14238 {
14239 if (!wxPyCheckForApp()) SWIG_fail;
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14246 {
14247 if (temp7)
14248 delete arg7;
14249 }
14250 return resultobj;
14251fail:
14252 {
14253 if (temp7)
14254 delete arg7;
14255 }
14256 return NULL;
d55e5bfc
RD
14257}
14258
14259
554f62e9
RD
14260SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14261 PyObject *resultobj = 0;
14262 wxScrollBar *result = 0 ;
14263
14264 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14265 {
14266 if (!wxPyCheckForApp()) SWIG_fail;
14267 PyThreadState* __tstate = wxPyBeginAllowThreads();
14268 result = (wxScrollBar *)new wxScrollBar();
14269 wxPyEndAllowThreads(__tstate);
14270 if (PyErr_Occurred()) SWIG_fail;
14271 }
14272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14273 return resultobj;
14274fail:
14275 return NULL;
14276}
14277
14278
14279SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj = 0;
14281 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14282 wxWindow *arg2 = (wxWindow *) 0 ;
14283 int arg3 = (int) -1 ;
14284 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14285 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14286 wxSize const &arg5_defvalue = wxDefaultSize ;
14287 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14288 long arg6 = (long) wxSB_HORIZONTAL ;
14289 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14290 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14291 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14292 wxString *arg8 = (wxString *) &arg8_defvalue ;
14293 bool result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 void *argp2 = 0 ;
14297 int res2 = 0 ;
14298 int val3 ;
14299 int ecode3 = 0 ;
14300 wxPoint temp4 ;
14301 wxSize temp5 ;
14302 long val6 ;
14303 int ecode6 = 0 ;
14304 void *argp7 = 0 ;
14305 int res7 = 0 ;
14306 bool temp8 = false ;
14307 PyObject * obj0 = 0 ;
14308 PyObject * obj1 = 0 ;
14309 PyObject * obj2 = 0 ;
14310 PyObject * obj3 = 0 ;
14311 PyObject * obj4 = 0 ;
14312 PyObject * obj5 = 0 ;
14313 PyObject * obj6 = 0 ;
14314 PyObject * obj7 = 0 ;
14315 char * kwnames[] = {
14316 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14317 };
14318
14319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14321 if (!SWIG_IsOK(res1)) {
14322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14323 }
14324 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14325 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14326 if (!SWIG_IsOK(res2)) {
14327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14328 }
14329 arg2 = reinterpret_cast< wxWindow * >(argp2);
14330 if (obj2) {
14331 ecode3 = SWIG_AsVal_int(obj2, &val3);
14332 if (!SWIG_IsOK(ecode3)) {
14333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14334 }
14335 arg3 = static_cast< int >(val3);
14336 }
14337 if (obj3) {
d55e5bfc 14338 {
554f62e9
RD
14339 arg4 = &temp4;
14340 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14341 }
554f62e9
RD
14342 }
14343 if (obj4) {
093d3ff1 14344 {
554f62e9
RD
14345 arg5 = &temp5;
14346 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 14347 }
554f62e9
RD
14348 }
14349 if (obj5) {
14350 ecode6 = SWIG_AsVal_long(obj5, &val6);
14351 if (!SWIG_IsOK(ecode6)) {
14352 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14353 }
14354 arg6 = static_cast< long >(val6);
14355 }
14356 if (obj6) {
14357 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14358 if (!SWIG_IsOK(res7)) {
14359 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
a07a67e6 14360 }
554f62e9
RD
14361 if (!argp7) {
14362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14363 }
14364 arg7 = reinterpret_cast< wxValidator * >(argp7);
14365 }
14366 if (obj7) {
093d3ff1 14367 {
554f62e9
RD
14368 arg8 = wxString_in_helper(obj7);
14369 if (arg8 == NULL) SWIG_fail;
14370 temp8 = true;
093d3ff1 14371 }
554f62e9
RD
14372 }
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 {
14380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14381 }
14382 {
14383 if (temp8)
14384 delete arg8;
14385 }
14386 return resultobj;
14387fail:
14388 {
14389 if (temp8)
14390 delete arg8;
14391 }
14392 return NULL;
a07a67e6
RD
14393}
14394
14395
554f62e9
RD
14396SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14397 PyObject *resultobj = 0;
14398 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14399 int result;
14400 void *argp1 = 0 ;
14401 int res1 = 0 ;
14402 PyObject *swig_obj[1] ;
14403
14404 if (!args) SWIG_fail;
14405 swig_obj[0] = args;
14406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14407 if (!SWIG_IsOK(res1)) {
14408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14409 }
14410 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14411 {
14412 PyThreadState* __tstate = wxPyBeginAllowThreads();
14413 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14414 wxPyEndAllowThreads(__tstate);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 }
14417 resultobj = SWIG_From_int(static_cast< int >(result));
14418 return resultobj;
14419fail:
14420 return NULL;
d55e5bfc
RD
14421}
14422
14423
554f62e9
RD
14424SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14425 PyObject *resultobj = 0;
14426 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14427 int result;
14428 void *argp1 = 0 ;
14429 int res1 = 0 ;
14430 PyObject *swig_obj[1] ;
14431
14432 if (!args) SWIG_fail;
14433 swig_obj[0] = args;
14434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14435 if (!SWIG_IsOK(res1)) {
14436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14437 }
14438 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 resultobj = SWIG_From_int(static_cast< int >(result));
14446 return resultobj;
14447fail:
14448 return NULL;
d55e5bfc
RD
14449}
14450
14451
554f62e9
RD
14452SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14453 PyObject *resultobj = 0;
14454 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14455 int result;
14456 void *argp1 = 0 ;
14457 int res1 = 0 ;
14458 PyObject *swig_obj[1] ;
14459
14460 if (!args) SWIG_fail;
14461 swig_obj[0] = args;
14462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14463 if (!SWIG_IsOK(res1)) {
14464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14465 }
14466 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 resultobj = SWIG_From_int(static_cast< int >(result));
14474 return resultobj;
14475fail:
14476 return NULL;
d55e5bfc
RD
14477}
14478
14479
554f62e9
RD
14480SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14481 PyObject *resultobj = 0;
14482 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14483 int result;
14484 void *argp1 = 0 ;
14485 int res1 = 0 ;
14486 PyObject *swig_obj[1] ;
14487
14488 if (!args) SWIG_fail;
14489 swig_obj[0] = args;
14490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14491 if (!SWIG_IsOK(res1)) {
14492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14493 }
14494 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (int)((wxScrollBar const *)arg1)->GetRange();
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 resultobj = SWIG_From_int(static_cast< int >(result));
14502 return resultobj;
14503fail:
14504 return NULL;
d55e5bfc
RD
14505}
14506
14507
554f62e9
RD
14508SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14509 PyObject *resultobj = 0;
14510 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14511 bool result;
14512 void *argp1 = 0 ;
14513 int res1 = 0 ;
14514 PyObject *swig_obj[1] ;
14515
14516 if (!args) SWIG_fail;
14517 swig_obj[0] = args;
14518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14519 if (!SWIG_IsOK(res1)) {
14520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14521 }
14522 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 {
14530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14531 }
14532 return resultobj;
14533fail:
14534 return NULL;
14535}
14536
14537
14538SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj = 0;
14540 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14541 int arg2 ;
14542 void *argp1 = 0 ;
14543 int res1 = 0 ;
14544 int val2 ;
14545 int ecode2 = 0 ;
14546 PyObject * obj0 = 0 ;
14547 PyObject * obj1 = 0 ;
14548 char * kwnames[] = {
14549 (char *) "self",(char *) "viewStart", NULL
14550 };
14551
14552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14554 if (!SWIG_IsOK(res1)) {
14555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14556 }
14557 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14558 ecode2 = SWIG_AsVal_int(obj1, &val2);
14559 if (!SWIG_IsOK(ecode2)) {
14560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14561 }
14562 arg2 = static_cast< int >(val2);
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 (arg1)->SetThumbPosition(arg2);
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 resultobj = SWIG_Py_Void();
14570 return resultobj;
14571fail:
14572 return NULL;
14573}
14574
14575
14576SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14577 PyObject *resultobj = 0;
14578 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14579 SwigValueWrapper<wxVisualAttributes > result;
14580 int val1 ;
14581 int ecode1 = 0 ;
14582 PyObject * obj0 = 0 ;
14583 char * kwnames[] = {
14584 (char *) "variant", NULL
14585 };
14586
14587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14588 if (obj0) {
14589 ecode1 = SWIG_AsVal_int(obj0, &val1);
14590 if (!SWIG_IsOK(ecode1)) {
14591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14592 }
14593 arg1 = static_cast< wxWindowVariant >(val1);
14594 }
14595 {
14596 if (!wxPyCheckForApp()) SWIG_fail;
14597 PyThreadState* __tstate = wxPyBeginAllowThreads();
14598 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14603 return resultobj;
14604fail:
14605 return NULL;
d55e5bfc
RD
14606}
14607
14608
554f62e9
RD
14609SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14610 PyObject *obj;
14611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14612 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14613 return SWIG_Py_Void();
d55e5bfc
RD
14614}
14615
554f62e9
RD
14616SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14617 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14618}
14619
554f62e9
RD
14620SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14621 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14622 return 1;
d55e5bfc
RD
14623}
14624
14625
554f62e9
RD
14626SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14627 PyObject *pyobj = 0;
14628
14629 {
d55e5bfc 14630#if wxUSE_UNICODE
554f62e9 14631 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14632#else
554f62e9 14633 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14634#endif
554f62e9
RD
14635 }
14636 return pyobj;
d55e5bfc
RD
14637}
14638
14639
554f62e9
RD
14640SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14641 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14642 return 1;
d55e5bfc
RD
14643}
14644
14645
554f62e9
RD
14646SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14647 PyObject *pyobj = 0;
14648
14649 {
d55e5bfc 14650#if wxUSE_UNICODE
554f62e9 14651 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14652#else
554f62e9 14653 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14654#endif
554f62e9
RD
14655 }
14656 return pyobj;
14657}
14658
14659
14660SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14661 PyObject *resultobj = 0;
14662 wxWindow *arg1 = (wxWindow *) 0 ;
14663 int arg2 = (int) -1 ;
14664 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14665 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14666 wxSize const &arg4_defvalue = wxDefaultSize ;
14667 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14668 long arg5 = (long) wxSP_HORIZONTAL ;
14669 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14670 wxString *arg6 = (wxString *) &arg6_defvalue ;
14671 wxSpinButton *result = 0 ;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 int val2 ;
14675 int ecode2 = 0 ;
14676 wxPoint temp3 ;
14677 wxSize temp4 ;
14678 long val5 ;
14679 int ecode5 = 0 ;
14680 bool temp6 = false ;
14681 PyObject * obj0 = 0 ;
14682 PyObject * obj1 = 0 ;
14683 PyObject * obj2 = 0 ;
14684 PyObject * obj3 = 0 ;
14685 PyObject * obj4 = 0 ;
14686 PyObject * obj5 = 0 ;
14687 char * kwnames[] = {
14688 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14689 };
14690
14691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14693 if (!SWIG_IsOK(res1)) {
14694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14695 }
14696 arg1 = reinterpret_cast< wxWindow * >(argp1);
14697 if (obj1) {
14698 ecode2 = SWIG_AsVal_int(obj1, &val2);
14699 if (!SWIG_IsOK(ecode2)) {
14700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14701 }
14702 arg2 = static_cast< int >(val2);
14703 }
14704 if (obj2) {
14705 {
14706 arg3 = &temp3;
14707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14708 }
554f62e9
RD
14709 }
14710 if (obj3) {
d55e5bfc 14711 {
554f62e9
RD
14712 arg4 = &temp4;
14713 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14714 }
554f62e9
RD
14715 }
14716 if (obj4) {
14717 ecode5 = SWIG_AsVal_long(obj4, &val5);
14718 if (!SWIG_IsOK(ecode5)) {
14719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14720 }
14721 arg5 = static_cast< long >(val5);
14722 }
14723 if (obj5) {
093d3ff1 14724 {
554f62e9
RD
14725 arg6 = wxString_in_helper(obj5);
14726 if (arg6 == NULL) SWIG_fail;
14727 temp6 = true;
093d3ff1 14728 }
554f62e9
RD
14729 }
14730 {
14731 if (!wxPyCheckForApp()) SWIG_fail;
14732 PyThreadState* __tstate = wxPyBeginAllowThreads();
14733 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14738 {
14739 if (temp6)
14740 delete arg6;
14741 }
14742 return resultobj;
14743fail:
14744 {
14745 if (temp6)
14746 delete arg6;
14747 }
14748 return NULL;
d55e5bfc
RD
14749}
14750
14751
554f62e9
RD
14752SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14753 PyObject *resultobj = 0;
14754 wxSpinButton *result = 0 ;
14755
14756 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14757 {
14758 if (!wxPyCheckForApp()) SWIG_fail;
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 result = (wxSpinButton *)new wxSpinButton();
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14765 return resultobj;
14766fail:
14767 return NULL;
14768}
14769
14770
14771SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj = 0;
14773 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14774 wxWindow *arg2 = (wxWindow *) 0 ;
14775 int arg3 = (int) -1 ;
14776 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14777 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14778 wxSize const &arg5_defvalue = wxDefaultSize ;
14779 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14780 long arg6 = (long) wxSP_HORIZONTAL ;
14781 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14782 wxString *arg7 = (wxString *) &arg7_defvalue ;
14783 bool result;
14784 void *argp1 = 0 ;
14785 int res1 = 0 ;
14786 void *argp2 = 0 ;
14787 int res2 = 0 ;
14788 int val3 ;
14789 int ecode3 = 0 ;
14790 wxPoint temp4 ;
14791 wxSize temp5 ;
14792 long val6 ;
14793 int ecode6 = 0 ;
14794 bool temp7 = false ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 PyObject * obj2 = 0 ;
14798 PyObject * obj3 = 0 ;
14799 PyObject * obj4 = 0 ;
14800 PyObject * obj5 = 0 ;
14801 PyObject * obj6 = 0 ;
14802 char * kwnames[] = {
14803 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14804 };
14805
14806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14808 if (!SWIG_IsOK(res1)) {
14809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14810 }
14811 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14813 if (!SWIG_IsOK(res2)) {
14814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14815 }
14816 arg2 = reinterpret_cast< wxWindow * >(argp2);
14817 if (obj2) {
14818 ecode3 = SWIG_AsVal_int(obj2, &val3);
14819 if (!SWIG_IsOK(ecode3)) {
14820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14821 }
14822 arg3 = static_cast< int >(val3);
14823 }
14824 if (obj3) {
d55e5bfc 14825 {
554f62e9
RD
14826 arg4 = &temp4;
14827 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14828 }
554f62e9
RD
14829 }
14830 if (obj4) {
d55e5bfc 14831 {
554f62e9
RD
14832 arg5 = &temp5;
14833 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14834 }
554f62e9
RD
14835 }
14836 if (obj5) {
14837 ecode6 = SWIG_AsVal_long(obj5, &val6);
14838 if (!SWIG_IsOK(ecode6)) {
14839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14840 }
14841 arg6 = static_cast< long >(val6);
14842 }
14843 if (obj6) {
d55e5bfc 14844 {
554f62e9
RD
14845 arg7 = wxString_in_helper(obj6);
14846 if (arg7 == NULL) SWIG_fail;
14847 temp7 = true;
d55e5bfc 14848 }
554f62e9
RD
14849 }
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 {
14857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14858 }
14859 {
14860 if (temp7)
14861 delete arg7;
14862 }
14863 return resultobj;
14864fail:
14865 {
14866 if (temp7)
14867 delete arg7;
14868 }
14869 return NULL;
d55e5bfc
RD
14870}
14871
14872
554f62e9
RD
14873SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14874 PyObject *resultobj = 0;
14875 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14876 int result;
14877 void *argp1 = 0 ;
14878 int res1 = 0 ;
14879 PyObject *swig_obj[1] ;
14880
14881 if (!args) SWIG_fail;
14882 swig_obj[0] = args;
14883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14884 if (!SWIG_IsOK(res1)) {
14885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14886 }
14887 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 result = (int)((wxSpinButton const *)arg1)->GetValue();
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 resultobj = SWIG_From_int(static_cast< int >(result));
14895 return resultobj;
14896fail:
14897 return NULL;
d55e5bfc
RD
14898}
14899
14900
554f62e9
RD
14901SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14902 PyObject *resultobj = 0;
14903 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14904 int result;
14905 void *argp1 = 0 ;
14906 int res1 = 0 ;
14907 PyObject *swig_obj[1] ;
14908
14909 if (!args) SWIG_fail;
14910 swig_obj[0] = args;
14911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14912 if (!SWIG_IsOK(res1)) {
14913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14914 }
14915 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14916 {
14917 PyThreadState* __tstate = wxPyBeginAllowThreads();
14918 result = (int)((wxSpinButton const *)arg1)->GetMin();
14919 wxPyEndAllowThreads(__tstate);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 resultobj = SWIG_From_int(static_cast< int >(result));
14923 return resultobj;
14924fail:
14925 return NULL;
d55e5bfc
RD
14926}
14927
14928
554f62e9
RD
14929SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14930 PyObject *resultobj = 0;
14931 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14932 int result;
14933 void *argp1 = 0 ;
14934 int res1 = 0 ;
14935 PyObject *swig_obj[1] ;
14936
14937 if (!args) SWIG_fail;
14938 swig_obj[0] = args;
14939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14940 if (!SWIG_IsOK(res1)) {
14941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14942 }
14943 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 result = (int)((wxSpinButton const *)arg1)->GetMax();
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 resultobj = SWIG_From_int(static_cast< int >(result));
14951 return resultobj;
14952fail:
14953 return NULL;
14954}
14955
14956
14957SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj = 0;
14959 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14960 int arg2 ;
14961 void *argp1 = 0 ;
14962 int res1 = 0 ;
14963 int val2 ;
14964 int ecode2 = 0 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 char * kwnames[] = {
14968 (char *) "self",(char *) "val", NULL
14969 };
14970
14971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14975 }
14976 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14977 ecode2 = SWIG_AsVal_int(obj1, &val2);
14978 if (!SWIG_IsOK(ecode2)) {
14979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14980 }
14981 arg2 = static_cast< int >(val2);
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 (arg1)->SetValue(arg2);
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = SWIG_Py_Void();
14989 return resultobj;
14990fail:
14991 return NULL;
14992}
14993
14994
14995SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj = 0;
14997 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14998 int arg2 ;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 int val2 ;
15002 int ecode2 = 0 ;
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "self",(char *) "minVal", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15013 }
15014 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15015 ecode2 = SWIG_AsVal_int(obj1, &val2);
15016 if (!SWIG_IsOK(ecode2)) {
15017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15018 }
15019 arg2 = static_cast< int >(val2);
15020 {
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 (arg1)->SetMin(arg2);
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 resultobj = SWIG_Py_Void();
15027 return resultobj;
15028fail:
15029 return NULL;
15030}
15031
15032
15033SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15034 PyObject *resultobj = 0;
15035 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15036 int arg2 ;
15037 void *argp1 = 0 ;
15038 int res1 = 0 ;
15039 int val2 ;
15040 int ecode2 = 0 ;
15041 PyObject * obj0 = 0 ;
15042 PyObject * obj1 = 0 ;
15043 char * kwnames[] = {
15044 (char *) "self",(char *) "maxVal", NULL
15045 };
15046
15047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15049 if (!SWIG_IsOK(res1)) {
15050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15051 }
15052 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15053 ecode2 = SWIG_AsVal_int(obj1, &val2);
15054 if (!SWIG_IsOK(ecode2)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15056 }
15057 arg2 = static_cast< int >(val2);
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 (arg1)->SetMax(arg2);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_Py_Void();
15065 return resultobj;
15066fail:
15067 return NULL;
15068}
15069
15070
15071SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj = 0;
15073 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15074 int arg2 ;
15075 int arg3 ;
15076 void *argp1 = 0 ;
15077 int res1 = 0 ;
15078 int val2 ;
15079 int ecode2 = 0 ;
15080 int val3 ;
15081 int ecode3 = 0 ;
15082 PyObject * obj0 = 0 ;
15083 PyObject * obj1 = 0 ;
15084 PyObject * obj2 = 0 ;
15085 char * kwnames[] = {
15086 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15087 };
15088
15089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15091 if (!SWIG_IsOK(res1)) {
15092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15093 }
15094 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15095 ecode2 = SWIG_AsVal_int(obj1, &val2);
15096 if (!SWIG_IsOK(ecode2)) {
15097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15098 }
15099 arg2 = static_cast< int >(val2);
15100 ecode3 = SWIG_AsVal_int(obj2, &val3);
15101 if (!SWIG_IsOK(ecode3)) {
15102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15103 }
15104 arg3 = static_cast< int >(val3);
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 (arg1)->SetRange(arg2,arg3);
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 resultobj = SWIG_Py_Void();
15112 return resultobj;
15113fail:
15114 return NULL;
d55e5bfc
RD
15115}
15116
15117
554f62e9
RD
15118SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15119 PyObject *resultobj = 0;
15120 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15121 bool result;
15122 void *argp1 = 0 ;
15123 int res1 = 0 ;
15124 PyObject *swig_obj[1] ;
15125
15126 if (!args) SWIG_fail;
15127 swig_obj[0] = args;
15128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15129 if (!SWIG_IsOK(res1)) {
15130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15131 }
15132 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 {
15140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15141 }
15142 return resultobj;
15143fail:
15144 return NULL;
d55e5bfc
RD
15145}
15146
15147
554f62e9
RD
15148SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj = 0;
15150 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15151 SwigValueWrapper<wxVisualAttributes > result;
15152 int val1 ;
15153 int ecode1 = 0 ;
15154 PyObject * obj0 = 0 ;
15155 char * kwnames[] = {
15156 (char *) "variant", NULL
15157 };
15158
15159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15160 if (obj0) {
15161 ecode1 = SWIG_AsVal_int(obj0, &val1);
15162 if (!SWIG_IsOK(ecode1)) {
15163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15164 }
15165 arg1 = static_cast< wxWindowVariant >(val1);
15166 }
15167 {
15168 if (!wxPyCheckForApp()) SWIG_fail;
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15175 return resultobj;
15176fail:
15177 return NULL;
15178}
15179
15180
15181SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15182 PyObject *obj;
15183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15184 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15185 return SWIG_Py_Void();
15186}
15187
15188SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15189 return SWIG_Python_InitShadowInstance(args);
15190}
15191
15192SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15193 PyObject *resultobj = 0;
15194 wxWindow *arg1 = (wxWindow *) 0 ;
15195 int arg2 = (int) -1 ;
15196 wxString const &arg3_defvalue = wxPyEmptyString ;
15197 wxString *arg3 = (wxString *) &arg3_defvalue ;
15198 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15199 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15200 wxSize const &arg5_defvalue = wxDefaultSize ;
15201 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15202 long arg6 = (long) wxSP_ARROW_KEYS ;
15203 int arg7 = (int) 0 ;
15204 int arg8 = (int) 100 ;
15205 int arg9 = (int) 0 ;
15206 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15207 wxString *arg10 = (wxString *) &arg10_defvalue ;
15208 wxSpinCtrl *result = 0 ;
15209 void *argp1 = 0 ;
15210 int res1 = 0 ;
15211 int val2 ;
15212 int ecode2 = 0 ;
15213 bool temp3 = false ;
15214 wxPoint temp4 ;
15215 wxSize temp5 ;
15216 long val6 ;
15217 int ecode6 = 0 ;
15218 int val7 ;
15219 int ecode7 = 0 ;
15220 int val8 ;
15221 int ecode8 = 0 ;
15222 int val9 ;
15223 int ecode9 = 0 ;
15224 bool temp10 = false ;
15225 PyObject * obj0 = 0 ;
15226 PyObject * obj1 = 0 ;
15227 PyObject * obj2 = 0 ;
15228 PyObject * obj3 = 0 ;
15229 PyObject * obj4 = 0 ;
15230 PyObject * obj5 = 0 ;
15231 PyObject * obj6 = 0 ;
15232 PyObject * obj7 = 0 ;
15233 PyObject * obj8 = 0 ;
15234 PyObject * obj9 = 0 ;
15235 char * kwnames[] = {
15236 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15237 };
15238
15239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15241 if (!SWIG_IsOK(res1)) {
15242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15243 }
15244 arg1 = reinterpret_cast< wxWindow * >(argp1);
15245 if (obj1) {
15246 ecode2 = SWIG_AsVal_int(obj1, &val2);
15247 if (!SWIG_IsOK(ecode2)) {
15248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15249 }
15250 arg2 = static_cast< int >(val2);
15251 }
15252 if (obj2) {
d55e5bfc 15253 {
554f62e9
RD
15254 arg3 = wxString_in_helper(obj2);
15255 if (arg3 == NULL) SWIG_fail;
15256 temp3 = true;
d55e5bfc 15257 }
554f62e9
RD
15258 }
15259 if (obj3) {
d55e5bfc 15260 {
554f62e9
RD
15261 arg4 = &temp4;
15262 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15263 }
554f62e9
RD
15264 }
15265 if (obj4) {
d55e5bfc 15266 {
554f62e9
RD
15267 arg5 = &temp5;
15268 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15269 }
554f62e9
RD
15270 }
15271 if (obj5) {
15272 ecode6 = SWIG_AsVal_long(obj5, &val6);
15273 if (!SWIG_IsOK(ecode6)) {
15274 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15275 }
15276 arg6 = static_cast< long >(val6);
15277 }
15278 if (obj6) {
15279 ecode7 = SWIG_AsVal_int(obj6, &val7);
15280 if (!SWIG_IsOK(ecode7)) {
15281 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15282 }
15283 arg7 = static_cast< int >(val7);
15284 }
15285 if (obj7) {
15286 ecode8 = SWIG_AsVal_int(obj7, &val8);
15287 if (!SWIG_IsOK(ecode8)) {
15288 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15289 }
15290 arg8 = static_cast< int >(val8);
15291 }
15292 if (obj8) {
15293 ecode9 = SWIG_AsVal_int(obj8, &val9);
15294 if (!SWIG_IsOK(ecode9)) {
15295 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15296 }
15297 arg9 = static_cast< int >(val9);
15298 }
15299 if (obj9) {
d55e5bfc 15300 {
554f62e9
RD
15301 arg10 = wxString_in_helper(obj9);
15302 if (arg10 == NULL) SWIG_fail;
15303 temp10 = true;
d55e5bfc 15304 }
554f62e9
RD
15305 }
15306 {
15307 if (!wxPyCheckForApp()) SWIG_fail;
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15314 {
15315 if (temp3)
15316 delete arg3;
15317 }
15318 {
15319 if (temp10)
15320 delete arg10;
15321 }
15322 return resultobj;
15323fail:
15324 {
15325 if (temp3)
15326 delete arg3;
15327 }
15328 {
15329 if (temp10)
15330 delete arg10;
15331 }
15332 return NULL;
d55e5bfc
RD
15333}
15334
15335
554f62e9
RD
15336SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxSpinCtrl *result = 0 ;
15339
15340 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15341 {
15342 if (!wxPyCheckForApp()) SWIG_fail;
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (wxSpinCtrl *)new wxSpinCtrl();
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15349 return resultobj;
15350fail:
15351 return NULL;
15352}
15353
15354
15355SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj = 0;
15357 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15358 wxWindow *arg2 = (wxWindow *) 0 ;
15359 int arg3 = (int) -1 ;
15360 wxString const &arg4_defvalue = wxPyEmptyString ;
15361 wxString *arg4 = (wxString *) &arg4_defvalue ;
15362 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15363 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15364 wxSize const &arg6_defvalue = wxDefaultSize ;
15365 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15366 long arg7 = (long) wxSP_ARROW_KEYS ;
15367 int arg8 = (int) 0 ;
15368 int arg9 = (int) 100 ;
15369 int arg10 = (int) 0 ;
15370 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15371 wxString *arg11 = (wxString *) &arg11_defvalue ;
15372 bool result;
15373 void *argp1 = 0 ;
15374 int res1 = 0 ;
15375 void *argp2 = 0 ;
15376 int res2 = 0 ;
15377 int val3 ;
15378 int ecode3 = 0 ;
15379 bool temp4 = false ;
15380 wxPoint temp5 ;
15381 wxSize temp6 ;
15382 long val7 ;
15383 int ecode7 = 0 ;
15384 int val8 ;
15385 int ecode8 = 0 ;
15386 int val9 ;
15387 int ecode9 = 0 ;
15388 int val10 ;
15389 int ecode10 = 0 ;
15390 bool temp11 = false ;
15391 PyObject * obj0 = 0 ;
15392 PyObject * obj1 = 0 ;
15393 PyObject * obj2 = 0 ;
15394 PyObject * obj3 = 0 ;
15395 PyObject * obj4 = 0 ;
15396 PyObject * obj5 = 0 ;
15397 PyObject * obj6 = 0 ;
15398 PyObject * obj7 = 0 ;
15399 PyObject * obj8 = 0 ;
15400 PyObject * obj9 = 0 ;
15401 PyObject * obj10 = 0 ;
15402 char * kwnames[] = {
15403 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15404 };
15405
15406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15408 if (!SWIG_IsOK(res1)) {
15409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15410 }
15411 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15412 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15413 if (!SWIG_IsOK(res2)) {
15414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15415 }
15416 arg2 = reinterpret_cast< wxWindow * >(argp2);
15417 if (obj2) {
15418 ecode3 = SWIG_AsVal_int(obj2, &val3);
15419 if (!SWIG_IsOK(ecode3)) {
15420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15421 }
15422 arg3 = static_cast< int >(val3);
15423 }
15424 if (obj3) {
093d3ff1 15425 {
554f62e9
RD
15426 arg4 = wxString_in_helper(obj3);
15427 if (arg4 == NULL) SWIG_fail;
15428 temp4 = true;
093d3ff1 15429 }
554f62e9
RD
15430 }
15431 if (obj4) {
093d3ff1 15432 {
554f62e9
RD
15433 arg5 = &temp5;
15434 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 15435 }
554f62e9
RD
15436 }
15437 if (obj5) {
d55e5bfc 15438 {
554f62e9
RD
15439 arg6 = &temp6;
15440 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15441 }
554f62e9
RD
15442 }
15443 if (obj6) {
15444 ecode7 = SWIG_AsVal_long(obj6, &val7);
15445 if (!SWIG_IsOK(ecode7)) {
15446 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15447 }
15448 arg7 = static_cast< long >(val7);
15449 }
15450 if (obj7) {
15451 ecode8 = SWIG_AsVal_int(obj7, &val8);
15452 if (!SWIG_IsOK(ecode8)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15454 }
15455 arg8 = static_cast< int >(val8);
15456 }
15457 if (obj8) {
15458 ecode9 = SWIG_AsVal_int(obj8, &val9);
15459 if (!SWIG_IsOK(ecode9)) {
15460 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15461 }
15462 arg9 = static_cast< int >(val9);
15463 }
15464 if (obj9) {
15465 ecode10 = SWIG_AsVal_int(obj9, &val10);
15466 if (!SWIG_IsOK(ecode10)) {
15467 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15468 }
15469 arg10 = static_cast< int >(val10);
15470 }
15471 if (obj10) {
15472 {
15473 arg11 = wxString_in_helper(obj10);
15474 if (arg11 == NULL) SWIG_fail;
15475 temp11 = true;
15476 }
15477 }
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15481 wxPyEndAllowThreads(__tstate);
15482 if (PyErr_Occurred()) SWIG_fail;
15483 }
15484 {
15485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15486 }
15487 {
15488 if (temp4)
15489 delete arg4;
15490 }
15491 {
15492 if (temp11)
15493 delete arg11;
15494 }
15495 return resultobj;
15496fail:
15497 {
15498 if (temp4)
15499 delete arg4;
15500 }
15501 {
15502 if (temp11)
15503 delete arg11;
15504 }
15505 return NULL;
d55e5bfc
RD
15506}
15507
15508
554f62e9
RD
15509SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15510 PyObject *resultobj = 0;
15511 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15512 int result;
15513 void *argp1 = 0 ;
15514 int res1 = 0 ;
15515 PyObject *swig_obj[1] ;
15516
15517 if (!args) SWIG_fail;
15518 swig_obj[0] = args;
15519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15520 if (!SWIG_IsOK(res1)) {
15521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15522 }
15523 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_From_int(static_cast< int >(result));
15531 return resultobj;
15532fail:
15533 return NULL;
15534}
15535
15536
15537SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj = 0;
15539 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15540 int arg2 ;
15541 void *argp1 = 0 ;
15542 int res1 = 0 ;
15543 int val2 ;
15544 int ecode2 = 0 ;
15545 PyObject * obj0 = 0 ;
15546 PyObject * obj1 = 0 ;
15547 char * kwnames[] = {
15548 (char *) "self",(char *) "value", NULL
15549 };
15550
15551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15553 if (!SWIG_IsOK(res1)) {
15554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15555 }
15556 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15557 ecode2 = SWIG_AsVal_int(obj1, &val2);
15558 if (!SWIG_IsOK(ecode2)) {
15559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15560 }
15561 arg2 = static_cast< int >(val2);
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 (arg1)->SetValue(arg2);
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_Py_Void();
15569 return resultobj;
15570fail:
15571 return NULL;
15572}
15573
15574
15575SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj = 0;
15577 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15578 wxString *arg2 = 0 ;
15579 void *argp1 = 0 ;
15580 int res1 = 0 ;
15581 bool temp2 = false ;
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 char * kwnames[] = {
15585 (char *) "self",(char *) "text", NULL
15586 };
15587
15588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15590 if (!SWIG_IsOK(res1)) {
15591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15592 }
15593 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15594 {
15595 arg2 = wxString_in_helper(obj1);
15596 if (arg2 == NULL) SWIG_fail;
15597 temp2 = true;
15598 }
15599 {
15600 PyThreadState* __tstate = wxPyBeginAllowThreads();
15601 (arg1)->SetValue((wxString const &)*arg2);
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 resultobj = SWIG_Py_Void();
15606 {
15607 if (temp2)
15608 delete arg2;
15609 }
15610 return resultobj;
15611fail:
15612 {
15613 if (temp2)
15614 delete arg2;
15615 }
15616 return NULL;
15617}
15618
15619
15620SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15621 PyObject *resultobj = 0;
15622 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15623 int arg2 ;
15624 int arg3 ;
15625 void *argp1 = 0 ;
15626 int res1 = 0 ;
15627 int val2 ;
15628 int ecode2 = 0 ;
15629 int val3 ;
15630 int ecode3 = 0 ;
15631 PyObject * obj0 = 0 ;
15632 PyObject * obj1 = 0 ;
15633 PyObject * obj2 = 0 ;
15634 char * kwnames[] = {
15635 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15636 };
15637
15638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15640 if (!SWIG_IsOK(res1)) {
15641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15642 }
15643 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15644 ecode2 = SWIG_AsVal_int(obj1, &val2);
15645 if (!SWIG_IsOK(ecode2)) {
15646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15647 }
15648 arg2 = static_cast< int >(val2);
15649 ecode3 = SWIG_AsVal_int(obj2, &val3);
15650 if (!SWIG_IsOK(ecode3)) {
15651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15652 }
15653 arg3 = static_cast< int >(val3);
15654 {
15655 PyThreadState* __tstate = wxPyBeginAllowThreads();
15656 (arg1)->SetRange(arg2,arg3);
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 resultobj = SWIG_Py_Void();
15661 return resultobj;
15662fail:
15663 return NULL;
d55e5bfc
RD
15664}
15665
15666
554f62e9
RD
15667SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15668 PyObject *resultobj = 0;
15669 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15670 int result;
15671 void *argp1 = 0 ;
15672 int res1 = 0 ;
15673 PyObject *swig_obj[1] ;
15674
15675 if (!args) SWIG_fail;
15676 swig_obj[0] = args;
15677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15678 if (!SWIG_IsOK(res1)) {
15679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15680 }
15681 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15682 {
15683 PyThreadState* __tstate = wxPyBeginAllowThreads();
15684 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = SWIG_From_int(static_cast< int >(result));
15689 return resultobj;
15690fail:
15691 return NULL;
d55e5bfc
RD
15692}
15693
15694
554f62e9
RD
15695SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15696 PyObject *resultobj = 0;
15697 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15698 int result;
15699 void *argp1 = 0 ;
15700 int res1 = 0 ;
15701 PyObject *swig_obj[1] ;
15702
15703 if (!args) SWIG_fail;
15704 swig_obj[0] = args;
15705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15706 if (!SWIG_IsOK(res1)) {
15707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15708 }
15709 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15713 wxPyEndAllowThreads(__tstate);
15714 if (PyErr_Occurred()) SWIG_fail;
15715 }
15716 resultobj = SWIG_From_int(static_cast< int >(result));
15717 return resultobj;
15718fail:
15719 return NULL;
15720}
15721
15722
15723SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15724 PyObject *resultobj = 0;
15725 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15726 long arg2 ;
15727 long arg3 ;
15728 void *argp1 = 0 ;
15729 int res1 = 0 ;
15730 long val2 ;
15731 int ecode2 = 0 ;
15732 long val3 ;
15733 int ecode3 = 0 ;
15734 PyObject * obj0 = 0 ;
15735 PyObject * obj1 = 0 ;
15736 PyObject * obj2 = 0 ;
15737 char * kwnames[] = {
f460c29d 15738 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
15739 };
15740
15741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15743 if (!SWIG_IsOK(res1)) {
15744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15745 }
15746 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15747 ecode2 = SWIG_AsVal_long(obj1, &val2);
15748 if (!SWIG_IsOK(ecode2)) {
15749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15750 }
15751 arg2 = static_cast< long >(val2);
15752 ecode3 = SWIG_AsVal_long(obj2, &val3);
15753 if (!SWIG_IsOK(ecode3)) {
15754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15755 }
15756 arg3 = static_cast< long >(val3);
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 (arg1)->SetSelection(arg2,arg3);
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 resultobj = SWIG_Py_Void();
15764 return resultobj;
15765fail:
15766 return NULL;
15767}
15768
15769
15770SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj = 0;
15772 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15773 SwigValueWrapper<wxVisualAttributes > result;
15774 int val1 ;
15775 int ecode1 = 0 ;
15776 PyObject * obj0 = 0 ;
15777 char * kwnames[] = {
15778 (char *) "variant", NULL
15779 };
15780
15781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15782 if (obj0) {
15783 ecode1 = SWIG_AsVal_int(obj0, &val1);
15784 if (!SWIG_IsOK(ecode1)) {
15785 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15786 }
15787 arg1 = static_cast< wxWindowVariant >(val1);
15788 }
15789 {
15790 if (!wxPyCheckForApp()) SWIG_fail;
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15797 return resultobj;
15798fail:
15799 return NULL;
d55e5bfc
RD
15800}
15801
15802
554f62e9
RD
15803SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15804 PyObject *obj;
15805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15806 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15807 return SWIG_Py_Void();
d55e5bfc
RD
15808}
15809
554f62e9
RD
15810SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15811 return SWIG_Python_InitShadowInstance(args);
15812}
d55e5bfc 15813
554f62e9
RD
15814SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15815 PyObject *resultobj = 0;
15816 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15817 int arg2 = (int) 0 ;
15818 wxSpinEvent *result = 0 ;
15819 int val1 ;
15820 int ecode1 = 0 ;
15821 int val2 ;
15822 int ecode2 = 0 ;
15823 PyObject * obj0 = 0 ;
15824 PyObject * obj1 = 0 ;
15825 char * kwnames[] = {
15826 (char *) "commandType",(char *) "winid", NULL
15827 };
15828
15829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15830 if (obj0) {
15831 ecode1 = SWIG_AsVal_int(obj0, &val1);
15832 if (!SWIG_IsOK(ecode1)) {
15833 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15834 }
15835 arg1 = static_cast< wxEventType >(val1);
15836 }
15837 if (obj1) {
15838 ecode2 = SWIG_AsVal_int(obj1, &val2);
15839 if (!SWIG_IsOK(ecode2)) {
15840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15841 }
15842 arg2 = static_cast< int >(val2);
15843 }
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15847 wxPyEndAllowThreads(__tstate);
15848 if (PyErr_Occurred()) SWIG_fail;
15849 }
15850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15851 return resultobj;
15852fail:
15853 return NULL;
d55e5bfc
RD
15854}
15855
15856
554f62e9
RD
15857SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15858 PyObject *resultobj = 0;
15859 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15860 int result;
15861 void *argp1 = 0 ;
15862 int res1 = 0 ;
15863 PyObject *swig_obj[1] ;
15864
15865 if (!args) SWIG_fail;
15866 swig_obj[0] = args;
15867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15868 if (!SWIG_IsOK(res1)) {
15869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15870 }
15871 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15872 {
15873 PyThreadState* __tstate = wxPyBeginAllowThreads();
15874 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_From_int(static_cast< int >(result));
15879 return resultobj;
15880fail:
15881 return NULL;
15882}
15883
15884
15885SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj = 0;
15887 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15888 int arg2 ;
15889 void *argp1 = 0 ;
15890 int res1 = 0 ;
15891 int val2 ;
15892 int ecode2 = 0 ;
15893 PyObject * obj0 = 0 ;
15894 PyObject * obj1 = 0 ;
15895 char * kwnames[] = {
15896 (char *) "self",(char *) "pos", NULL
15897 };
15898
15899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15901 if (!SWIG_IsOK(res1)) {
15902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15903 }
15904 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15905 ecode2 = SWIG_AsVal_int(obj1, &val2);
15906 if (!SWIG_IsOK(ecode2)) {
15907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15908 }
15909 arg2 = static_cast< int >(val2);
15910 {
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 (arg1)->SetPosition(arg2);
15913 wxPyEndAllowThreads(__tstate);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 resultobj = SWIG_Py_Void();
15917 return resultobj;
15918fail:
15919 return NULL;
d55e5bfc
RD
15920}
15921
15922
554f62e9
RD
15923SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15924 PyObject *obj;
15925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15926 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15927 return SWIG_Py_Void();
d55e5bfc
RD
15928}
15929
554f62e9
RD
15930SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15931 return SWIG_Python_InitShadowInstance(args);
15932}
d55e5bfc 15933
554f62e9
RD
15934SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15935 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15936 return 1;
d55e5bfc
RD
15937}
15938
15939
554f62e9
RD
15940SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15941 PyObject *pyobj = 0;
15942
15943 {
15944#if wxUSE_UNICODE
15945 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15946#else
15947 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15948#endif
15949 }
15950 return pyobj;
d55e5bfc
RD
15951}
15952
15953
554f62e9
RD
15954SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15955 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15956 return 1;
15957}
15958
15959
15960SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15961 PyObject *pyobj = 0;
15962
15963 {
15964#if wxUSE_UNICODE
15965 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15966#else
15967 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15968#endif
15969 }
15970 return pyobj;
15971}
15972
15973
15974SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15975 PyObject *resultobj = 0;
15976 wxWindow *arg1 = (wxWindow *) 0 ;
15977 int arg2 = (int) -1 ;
15978 wxString const &arg3_defvalue = wxPyEmptyString ;
15979 wxString *arg3 = (wxString *) &arg3_defvalue ;
15980 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15981 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15982 wxSize const &arg5_defvalue = wxDefaultSize ;
15983 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15984 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15985 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15986 int arg7 = (int) 0 ;
15987 long arg8 = (long) wxRA_HORIZONTAL ;
15988 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15989 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15990 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15991 wxString *arg10 = (wxString *) &arg10_defvalue ;
15992 wxRadioBox *result = 0 ;
15993 void *argp1 = 0 ;
15994 int res1 = 0 ;
15995 int val2 ;
15996 int ecode2 = 0 ;
15997 bool temp3 = false ;
15998 wxPoint temp4 ;
15999 wxSize temp5 ;
16000 bool temp6 = false ;
16001 int val7 ;
16002 int ecode7 = 0 ;
16003 long val8 ;
16004 int ecode8 = 0 ;
16005 void *argp9 = 0 ;
16006 int res9 = 0 ;
16007 bool temp10 = false ;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 PyObject * obj2 = 0 ;
16011 PyObject * obj3 = 0 ;
16012 PyObject * obj4 = 0 ;
16013 PyObject * obj5 = 0 ;
16014 PyObject * obj6 = 0 ;
16015 PyObject * obj7 = 0 ;
16016 PyObject * obj8 = 0 ;
16017 PyObject * obj9 = 0 ;
16018 char * kwnames[] = {
16019 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16020 };
16021
16022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16024 if (!SWIG_IsOK(res1)) {
16025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16026 }
16027 arg1 = reinterpret_cast< wxWindow * >(argp1);
16028 if (obj1) {
16029 ecode2 = SWIG_AsVal_int(obj1, &val2);
16030 if (!SWIG_IsOK(ecode2)) {
16031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16032 }
16033 arg2 = static_cast< int >(val2);
16034 }
16035 if (obj2) {
093d3ff1 16036 {
554f62e9
RD
16037 arg3 = wxString_in_helper(obj2);
16038 if (arg3 == NULL) SWIG_fail;
16039 temp3 = true;
093d3ff1 16040 }
554f62e9
RD
16041 }
16042 if (obj3) {
093d3ff1 16043 {
554f62e9
RD
16044 arg4 = &temp4;
16045 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16046 }
554f62e9
RD
16047 }
16048 if (obj4) {
d55e5bfc 16049 {
554f62e9
RD
16050 arg5 = &temp5;
16051 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16052 }
554f62e9
RD
16053 }
16054 if (obj5) {
d55e5bfc 16055 {
554f62e9
RD
16056 if (! PySequence_Check(obj5)) {
16057 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16058 SWIG_fail;
16059 }
16060 arg6 = new wxArrayString;
16061 temp6 = true;
16062 int i, len=PySequence_Length(obj5);
16063 for (i=0; i<len; i++) {
16064 PyObject* item = PySequence_GetItem(obj5, i);
16065 wxString* s = wxString_in_helper(item);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 arg6->Add(*s);
16068 delete s;
16069 Py_DECREF(item);
16070 }
d55e5bfc 16071 }
554f62e9
RD
16072 }
16073 if (obj6) {
16074 ecode7 = SWIG_AsVal_int(obj6, &val7);
16075 if (!SWIG_IsOK(ecode7)) {
16076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16077 }
16078 arg7 = static_cast< int >(val7);
16079 }
16080 if (obj7) {
16081 ecode8 = SWIG_AsVal_long(obj7, &val8);
16082 if (!SWIG_IsOK(ecode8)) {
16083 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16084 }
16085 arg8 = static_cast< long >(val8);
16086 }
16087 if (obj8) {
16088 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16089 if (!SWIG_IsOK(res9)) {
16090 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16091 }
554f62e9
RD
16092 if (!argp9) {
16093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16094 }
554f62e9
RD
16095 arg9 = reinterpret_cast< wxValidator * >(argp9);
16096 }
16097 if (obj9) {
d55e5bfc 16098 {
554f62e9
RD
16099 arg10 = wxString_in_helper(obj9);
16100 if (arg10 == NULL) SWIG_fail;
16101 temp10 = true;
d55e5bfc 16102 }
554f62e9
RD
16103 }
16104 {
16105 if (!wxPyCheckForApp()) SWIG_fail;
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 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);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16112 {
16113 if (temp3)
16114 delete arg3;
16115 }
16116 {
16117 if (temp6) delete arg6;
16118 }
16119 {
16120 if (temp10)
16121 delete arg10;
16122 }
16123 return resultobj;
16124fail:
16125 {
16126 if (temp3)
16127 delete arg3;
16128 }
16129 {
16130 if (temp6) delete arg6;
16131 }
16132 {
16133 if (temp10)
16134 delete arg10;
16135 }
16136 return NULL;
d55e5bfc
RD
16137}
16138
16139
554f62e9
RD
16140SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16141 PyObject *resultobj = 0;
16142 wxRadioBox *result = 0 ;
16143
16144 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16145 {
16146 if (!wxPyCheckForApp()) SWIG_fail;
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = (wxRadioBox *)new wxRadioBox();
16149 wxPyEndAllowThreads(__tstate);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16153 return resultobj;
16154fail:
16155 return NULL;
16156}
16157
16158
16159SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj = 0;
16161 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16162 wxWindow *arg2 = (wxWindow *) 0 ;
16163 int arg3 = (int) -1 ;
16164 wxString const &arg4_defvalue = wxPyEmptyString ;
16165 wxString *arg4 = (wxString *) &arg4_defvalue ;
16166 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16167 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16168 wxSize const &arg6_defvalue = wxDefaultSize ;
16169 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16170 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16171 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16172 int arg8 = (int) 0 ;
16173 long arg9 = (long) wxRA_HORIZONTAL ;
16174 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16175 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16176 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16177 wxString *arg11 = (wxString *) &arg11_defvalue ;
16178 bool result;
16179 void *argp1 = 0 ;
16180 int res1 = 0 ;
16181 void *argp2 = 0 ;
16182 int res2 = 0 ;
16183 int val3 ;
16184 int ecode3 = 0 ;
16185 bool temp4 = false ;
16186 wxPoint temp5 ;
16187 wxSize temp6 ;
16188 bool temp7 = false ;
16189 int val8 ;
16190 int ecode8 = 0 ;
16191 long val9 ;
16192 int ecode9 = 0 ;
16193 void *argp10 = 0 ;
16194 int res10 = 0 ;
16195 bool temp11 = false ;
16196 PyObject * obj0 = 0 ;
16197 PyObject * obj1 = 0 ;
16198 PyObject * obj2 = 0 ;
16199 PyObject * obj3 = 0 ;
16200 PyObject * obj4 = 0 ;
16201 PyObject * obj5 = 0 ;
16202 PyObject * obj6 = 0 ;
16203 PyObject * obj7 = 0 ;
16204 PyObject * obj8 = 0 ;
16205 PyObject * obj9 = 0 ;
16206 PyObject * obj10 = 0 ;
16207 char * kwnames[] = {
16208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16209 };
16210
16211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16213 if (!SWIG_IsOK(res1)) {
16214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16215 }
16216 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16218 if (!SWIG_IsOK(res2)) {
16219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16220 }
16221 arg2 = reinterpret_cast< wxWindow * >(argp2);
16222 if (obj2) {
16223 ecode3 = SWIG_AsVal_int(obj2, &val3);
16224 if (!SWIG_IsOK(ecode3)) {
16225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16226 }
16227 arg3 = static_cast< int >(val3);
16228 }
16229 if (obj3) {
093d3ff1 16230 {
554f62e9
RD
16231 arg4 = wxString_in_helper(obj3);
16232 if (arg4 == NULL) SWIG_fail;
16233 temp4 = true;
093d3ff1 16234 }
554f62e9
RD
16235 }
16236 if (obj4) {
d55e5bfc 16237 {
554f62e9
RD
16238 arg5 = &temp5;
16239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16240 }
554f62e9
RD
16241 }
16242 if (obj5) {
093d3ff1 16243 {
554f62e9
RD
16244 arg6 = &temp6;
16245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 16246 }
554f62e9
RD
16247 }
16248 if (obj6) {
093d3ff1 16249 {
554f62e9
RD
16250 if (! PySequence_Check(obj6)) {
16251 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16252 SWIG_fail;
16253 }
16254 arg7 = new wxArrayString;
16255 temp7 = true;
16256 int i, len=PySequence_Length(obj6);
16257 for (i=0; i<len; i++) {
16258 PyObject* item = PySequence_GetItem(obj6, i);
16259 wxString* s = wxString_in_helper(item);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 arg7->Add(*s);
16262 delete s;
16263 Py_DECREF(item);
16264 }
093d3ff1 16265 }
554f62e9
RD
16266 }
16267 if (obj7) {
16268 ecode8 = SWIG_AsVal_int(obj7, &val8);
16269 if (!SWIG_IsOK(ecode8)) {
16270 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16271 }
16272 arg8 = static_cast< int >(val8);
16273 }
16274 if (obj8) {
16275 ecode9 = SWIG_AsVal_long(obj8, &val9);
16276 if (!SWIG_IsOK(ecode9)) {
16277 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16278 }
16279 arg9 = static_cast< long >(val9);
16280 }
16281 if (obj9) {
16282 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16283 if (!SWIG_IsOK(res10)) {
16284 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 16285 }
554f62e9
RD
16286 if (!argp10) {
16287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 16288 }
554f62e9
RD
16289 arg10 = reinterpret_cast< wxValidator * >(argp10);
16290 }
16291 if (obj10) {
d55e5bfc 16292 {
554f62e9
RD
16293 arg11 = wxString_in_helper(obj10);
16294 if (arg11 == NULL) SWIG_fail;
16295 temp11 = true;
d55e5bfc 16296 }
554f62e9
RD
16297 }
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 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);
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16306 }
16307 {
16308 if (temp4)
16309 delete arg4;
16310 }
16311 {
16312 if (temp7) delete arg7;
16313 }
16314 {
16315 if (temp11)
16316 delete arg11;
16317 }
16318 return resultobj;
16319fail:
16320 {
16321 if (temp4)
16322 delete arg4;
16323 }
16324 {
16325 if (temp7) delete arg7;
16326 }
16327 {
16328 if (temp11)
16329 delete arg11;
16330 }
16331 return NULL;
16332}
16333
16334
16335SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj = 0;
16337 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16338 int arg2 ;
16339 void *argp1 = 0 ;
16340 int res1 = 0 ;
16341 int val2 ;
16342 int ecode2 = 0 ;
16343 PyObject * obj0 = 0 ;
16344 PyObject * obj1 = 0 ;
16345 char * kwnames[] = {
16346 (char *) "self",(char *) "n", NULL
16347 };
16348
16349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16351 if (!SWIG_IsOK(res1)) {
16352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16353 }
16354 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16355 ecode2 = SWIG_AsVal_int(obj1, &val2);
16356 if (!SWIG_IsOK(ecode2)) {
16357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16358 }
16359 arg2 = static_cast< int >(val2);
16360 {
16361 PyThreadState* __tstate = wxPyBeginAllowThreads();
16362 (arg1)->SetSelection(arg2);
16363 wxPyEndAllowThreads(__tstate);
16364 if (PyErr_Occurred()) SWIG_fail;
16365 }
16366 resultobj = SWIG_Py_Void();
16367 return resultobj;
16368fail:
16369 return NULL;
d55e5bfc
RD
16370}
16371
16372
554f62e9
RD
16373SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16374 PyObject *resultobj = 0;
16375 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16376 int result;
16377 void *argp1 = 0 ;
16378 int res1 = 0 ;
16379 PyObject *swig_obj[1] ;
16380
16381 if (!args) SWIG_fail;
16382 swig_obj[0] = args;
16383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16384 if (!SWIG_IsOK(res1)) {
16385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16386 }
16387 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 resultobj = SWIG_From_int(static_cast< int >(result));
16395 return resultobj;
16396fail:
16397 return NULL;
4896ac9e
RD
16398}
16399
16400
554f62e9
RD
16401SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16402 PyObject *resultobj = 0;
16403 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16404 wxString result;
16405 void *argp1 = 0 ;
16406 int res1 = 0 ;
16407 PyObject *swig_obj[1] ;
16408
16409 if (!args) SWIG_fail;
16410 swig_obj[0] = args;
16411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16412 if (!SWIG_IsOK(res1)) {
16413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16414 }
16415 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16416 {
16417 PyThreadState* __tstate = wxPyBeginAllowThreads();
16418 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16419 wxPyEndAllowThreads(__tstate);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 {
16423#if wxUSE_UNICODE
16424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16425#else
16426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16427#endif
16428 }
16429 return resultobj;
16430fail:
16431 return NULL;
16432}
16433
16434
16435SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16436 PyObject *resultobj = 0;
16437 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16438 wxString *arg2 = 0 ;
16439 bool result;
16440 void *argp1 = 0 ;
16441 int res1 = 0 ;
16442 bool temp2 = false ;
16443 PyObject * obj0 = 0 ;
16444 PyObject * obj1 = 0 ;
16445 char * kwnames[] = {
16446 (char *) "self",(char *) "s", NULL
16447 };
16448
16449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16451 if (!SWIG_IsOK(res1)) {
16452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16453 }
16454 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16455 {
16456 arg2 = wxString_in_helper(obj1);
16457 if (arg2 == NULL) SWIG_fail;
16458 temp2 = true;
16459 }
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 {
16467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16468 }
16469 {
16470 if (temp2)
16471 delete arg2;
16472 }
16473 return resultobj;
16474fail:
16475 {
16476 if (temp2)
16477 delete arg2;
16478 }
16479 return NULL;
d55e5bfc
RD
16480}
16481
16482
554f62e9
RD
16483SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16484 PyObject *resultobj = 0;
16485 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16486 size_t result;
554f62e9
RD
16487 void *argp1 = 0 ;
16488 int res1 = 0 ;
16489 PyObject *swig_obj[1] ;
16490
16491 if (!args) SWIG_fail;
16492 swig_obj[0] = args;
16493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16494 if (!SWIG_IsOK(res1)) {
16495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16496 }
16497 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16500 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
554f62e9
RD
16501 wxPyEndAllowThreads(__tstate);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 }
1c71765a 16504 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
554f62e9
RD
16505 return resultobj;
16506fail:
16507 return NULL;
16508}
16509
16510
16511SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj = 0;
16513 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16514 wxString *arg2 = 0 ;
16515 int result;
16516 void *argp1 = 0 ;
16517 int res1 = 0 ;
16518 bool temp2 = false ;
16519 PyObject * obj0 = 0 ;
16520 PyObject * obj1 = 0 ;
16521 char * kwnames[] = {
16522 (char *) "self",(char *) "s", NULL
16523 };
16524
16525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16527 if (!SWIG_IsOK(res1)) {
16528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16529 }
16530 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16531 {
16532 arg2 = wxString_in_helper(obj1);
16533 if (arg2 == NULL) SWIG_fail;
16534 temp2 = true;
16535 }
16536 {
16537 PyThreadState* __tstate = wxPyBeginAllowThreads();
16538 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16539 wxPyEndAllowThreads(__tstate);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 resultobj = SWIG_From_int(static_cast< int >(result));
16543 {
16544 if (temp2)
16545 delete arg2;
16546 }
16547 return resultobj;
16548fail:
16549 {
16550 if (temp2)
16551 delete arg2;
16552 }
16553 return NULL;
16554}
16555
16556
16557SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj = 0;
16559 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16560 int arg2 ;
16561 wxString result;
16562 void *argp1 = 0 ;
16563 int res1 = 0 ;
16564 int val2 ;
16565 int ecode2 = 0 ;
16566 PyObject * obj0 = 0 ;
16567 PyObject * obj1 = 0 ;
16568 char * kwnames[] = {
16569 (char *) "self",(char *) "n", NULL
16570 };
16571
16572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16574 if (!SWIG_IsOK(res1)) {
16575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16576 }
16577 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16578 ecode2 = SWIG_AsVal_int(obj1, &val2);
16579 if (!SWIG_IsOK(ecode2)) {
16580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16581 }
16582 arg2 = static_cast< int >(val2);
16583 {
16584 PyThreadState* __tstate = wxPyBeginAllowThreads();
16585 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16586 wxPyEndAllowThreads(__tstate);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 }
16589 {
16590#if wxUSE_UNICODE
16591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16592#else
16593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16594#endif
16595 }
16596 return resultobj;
16597fail:
16598 return NULL;
16599}
16600
16601
16602SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj = 0;
16604 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16605 int arg2 ;
16606 wxString *arg3 = 0 ;
16607 void *argp1 = 0 ;
16608 int res1 = 0 ;
16609 int val2 ;
16610 int ecode2 = 0 ;
16611 bool temp3 = false ;
16612 PyObject * obj0 = 0 ;
16613 PyObject * obj1 = 0 ;
16614 PyObject * obj2 = 0 ;
16615 char * kwnames[] = {
16616 (char *) "self",(char *) "n",(char *) "label", NULL
16617 };
16618
16619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16623 }
16624 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16625 ecode2 = SWIG_AsVal_int(obj1, &val2);
16626 if (!SWIG_IsOK(ecode2)) {
16627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16628 }
16629 arg2 = static_cast< int >(val2);
16630 {
16631 arg3 = wxString_in_helper(obj2);
16632 if (arg3 == NULL) SWIG_fail;
16633 temp3 = true;
16634 }
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 (arg1)->SetString(arg2,(wxString const &)*arg3);
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = SWIG_Py_Void();
16642 {
16643 if (temp3)
16644 delete arg3;
16645 }
16646 return resultobj;
16647fail:
16648 {
16649 if (temp3)
16650 delete arg3;
16651 }
16652 return NULL;
16653}
16654
16655
16656SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16657 PyObject *resultobj = 0;
16658 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16659 unsigned int arg2 ;
554f62e9
RD
16660 bool arg3 = (bool) true ;
16661 void *argp1 = 0 ;
16662 int res1 = 0 ;
50f151d7 16663 unsigned int val2 ;
554f62e9
RD
16664 int ecode2 = 0 ;
16665 bool val3 ;
16666 int ecode3 = 0 ;
16667 PyObject * obj0 = 0 ;
16668 PyObject * obj1 = 0 ;
16669 PyObject * obj2 = 0 ;
16670 char * kwnames[] = {
16671 (char *) "self",(char *) "n",(char *) "enable", NULL
16672 };
16673
16674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16676 if (!SWIG_IsOK(res1)) {
16677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16678 }
16679 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16680 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16681 if (!SWIG_IsOK(ecode2)) {
50f151d7 16682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16683 }
50f151d7 16684 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16685 if (obj2) {
16686 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16687 if (!SWIG_IsOK(ecode3)) {
16688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16689 }
16690 arg3 = static_cast< bool >(val3);
16691 }
16692 {
16693 PyThreadState* __tstate = wxPyBeginAllowThreads();
16694 (arg1)->Enable(arg2,arg3);
16695 wxPyEndAllowThreads(__tstate);
16696 if (PyErr_Occurred()) SWIG_fail;
16697 }
16698 resultobj = SWIG_Py_Void();
16699 return resultobj;
16700fail:
16701 return NULL;
16702}
16703
16704
16705SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16706 PyObject *resultobj = 0;
16707 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16708 unsigned int arg2 ;
554f62e9
RD
16709 bool arg3 = (bool) true ;
16710 void *argp1 = 0 ;
16711 int res1 = 0 ;
50f151d7 16712 unsigned int val2 ;
554f62e9
RD
16713 int ecode2 = 0 ;
16714 bool val3 ;
16715 int ecode3 = 0 ;
16716 PyObject * obj0 = 0 ;
16717 PyObject * obj1 = 0 ;
16718 PyObject * obj2 = 0 ;
16719 char * kwnames[] = {
16720 (char *) "self",(char *) "n",(char *) "show", NULL
16721 };
16722
16723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16725 if (!SWIG_IsOK(res1)) {
16726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16727 }
16728 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16729 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16730 if (!SWIG_IsOK(ecode2)) {
50f151d7 16731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16732 }
50f151d7 16733 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16734 if (obj2) {
16735 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16736 if (!SWIG_IsOK(ecode3)) {
16737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16738 }
16739 arg3 = static_cast< bool >(val3);
16740 }
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 (arg1)->Show(arg2,arg3);
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 resultobj = SWIG_Py_Void();
16748 return resultobj;
16749fail:
16750 return NULL;
d55e5bfc
RD
16751}
16752
16753
50f151d7
RD
16754SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16755 PyObject *resultobj = 0;
16756 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16757 unsigned int arg2 ;
16758 bool result;
16759 void *argp1 = 0 ;
16760 int res1 = 0 ;
16761 unsigned int val2 ;
16762 int ecode2 = 0 ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 char * kwnames[] = {
16766 (char *) "self",(char *) "n", NULL
16767 };
16768
16769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16771 if (!SWIG_IsOK(res1)) {
16772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16773 }
16774 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16775 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16776 if (!SWIG_IsOK(ecode2)) {
16777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16778 }
16779 arg2 = static_cast< unsigned int >(val2);
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 {
16787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16788 }
16789 return resultobj;
16790fail:
16791 return NULL;
16792}
16793
16794
16795SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj = 0;
16797 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16798 unsigned int arg2 ;
16799 bool result;
16800 void *argp1 = 0 ;
16801 int res1 = 0 ;
16802 unsigned int val2 ;
16803 int ecode2 = 0 ;
16804 PyObject * obj0 = 0 ;
16805 PyObject * obj1 = 0 ;
16806 char * kwnames[] = {
16807 (char *) "self",(char *) "n", NULL
16808 };
16809
16810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16814 }
16815 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16816 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16817 if (!SWIG_IsOK(ecode2)) {
16818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16819 }
16820 arg2 = static_cast< unsigned int >(val2);
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 {
16828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16829 }
16830 return resultobj;
16831fail:
16832 return NULL;
16833}
16834
16835
554f62e9
RD
16836SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16837 PyObject *resultobj = 0;
16838 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16839 unsigned int result;
554f62e9
RD
16840 void *argp1 = 0 ;
16841 int res1 = 0 ;
16842 PyObject *swig_obj[1] ;
16843
16844 if (!args) SWIG_fail;
16845 swig_obj[0] = args;
16846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16847 if (!SWIG_IsOK(res1)) {
16848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16849 }
16850 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16853 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
554f62e9
RD
16854 wxPyEndAllowThreads(__tstate);
16855 if (PyErr_Occurred()) SWIG_fail;
16856 }
50f151d7 16857 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
16858 return resultobj;
16859fail:
16860 return NULL;
d55e5bfc
RD
16861}
16862
16863
554f62e9
RD
16864SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16865 PyObject *resultobj = 0;
16866 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16867 unsigned int result;
554f62e9
RD
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
16870 PyObject *swig_obj[1] ;
16871
16872 if (!args) SWIG_fail;
16873 swig_obj[0] = args;
16874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16877 }
16878 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16879 {
16880 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16881 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
554f62e9
RD
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
50f151d7 16885 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
16886 return resultobj;
16887fail:
16888 return NULL;
16889}
16890
16891
16892SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16893 PyObject *resultobj = 0;
16894 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16895 int arg2 ;
16896 wxDirection arg3 ;
16897 long arg4 ;
16898 int result;
16899 void *argp1 = 0 ;
16900 int res1 = 0 ;
16901 int val2 ;
16902 int ecode2 = 0 ;
16903 int val3 ;
16904 int ecode3 = 0 ;
16905 long val4 ;
16906 int ecode4 = 0 ;
16907 PyObject * obj0 = 0 ;
16908 PyObject * obj1 = 0 ;
16909 PyObject * obj2 = 0 ;
16910 PyObject * obj3 = 0 ;
16911 char * kwnames[] = {
16912 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16913 };
16914
16915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16917 if (!SWIG_IsOK(res1)) {
16918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16919 }
16920 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16921 ecode2 = SWIG_AsVal_int(obj1, &val2);
16922 if (!SWIG_IsOK(ecode2)) {
16923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16924 }
16925 arg2 = static_cast< int >(val2);
16926 ecode3 = SWIG_AsVal_int(obj2, &val3);
16927 if (!SWIG_IsOK(ecode3)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16929 }
16930 arg3 = static_cast< wxDirection >(val3);
16931 ecode4 = SWIG_AsVal_long(obj3, &val4);
16932 if (!SWIG_IsOK(ecode4)) {
16933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16934 }
16935 arg4 = static_cast< long >(val4);
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
16938 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 resultobj = SWIG_From_int(static_cast< int >(result));
16943 return resultobj;
16944fail:
16945 return NULL;
16946}
16947
16948
f460c29d
RD
16949SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj = 0;
16951 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16952 unsigned int arg2 ;
16953 wxString *arg3 = 0 ;
16954 void *argp1 = 0 ;
16955 int res1 = 0 ;
16956 unsigned int val2 ;
16957 int ecode2 = 0 ;
16958 bool temp3 = false ;
16959 PyObject * obj0 = 0 ;
16960 PyObject * obj1 = 0 ;
16961 PyObject * obj2 = 0 ;
16962 char * kwnames[] = {
16963 (char *) "self",(char *) "item",(char *) "text", NULL
16964 };
16965
16966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) 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_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
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_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16975 }
16976 arg2 = static_cast< unsigned int >(val2);
16977 {
16978 arg3 = wxString_in_helper(obj2);
16979 if (arg3 == NULL) SWIG_fail;
16980 temp3 = true;
16981 }
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_Py_Void();
16989 {
16990 if (temp3)
16991 delete arg3;
16992 }
16993 return resultobj;
16994fail:
16995 {
16996 if (temp3)
16997 delete arg3;
16998 }
16999 return NULL;
17000}
17001
17002
17003SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17004 PyObject *resultobj = 0;
17005 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17006 unsigned int arg2 ;
17007 wxToolTip *result = 0 ;
17008 void *argp1 = 0 ;
17009 int res1 = 0 ;
17010 unsigned int val2 ;
17011 int ecode2 = 0 ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 char * kwnames[] = {
17015 (char *) "self",(char *) "item", NULL
17016 };
17017
17018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17020 if (!SWIG_IsOK(res1)) {
17021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17022 }
17023 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17024 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17025 if (!SWIG_IsOK(ecode2)) {
17026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17027 }
17028 arg2 = static_cast< unsigned int >(val2);
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 resultobj = wxPyMake_wxObject(result, (bool)0);
17037 }
17038 return resultobj;
17039fail:
17040 return NULL;
17041}
17042
17043
b850e7f3
RD
17044SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj = 0;
17046 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17047 unsigned int arg2 ;
17048 wxString *arg3 = 0 ;
17049 void *argp1 = 0 ;
17050 int res1 = 0 ;
17051 unsigned int val2 ;
17052 int ecode2 = 0 ;
17053 bool temp3 = false ;
17054 PyObject * obj0 = 0 ;
17055 PyObject * obj1 = 0 ;
17056 PyObject * obj2 = 0 ;
17057 char * kwnames[] = {
17058 (char *) "self",(char *) "n",(char *) "helpText", NULL
17059 };
17060
17061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17063 if (!SWIG_IsOK(res1)) {
17064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17065 }
17066 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17067 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17068 if (!SWIG_IsOK(ecode2)) {
17069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17070 }
17071 arg2 = static_cast< unsigned int >(val2);
17072 {
17073 arg3 = wxString_in_helper(obj2);
17074 if (arg3 == NULL) SWIG_fail;
17075 temp3 = true;
17076 }
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
17079 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 resultobj = SWIG_Py_Void();
17084 {
17085 if (temp3)
17086 delete arg3;
17087 }
17088 return resultobj;
17089fail:
17090 {
17091 if (temp3)
17092 delete arg3;
17093 }
17094 return NULL;
17095}
17096
17097
17098SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17099 PyObject *resultobj = 0;
17100 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17101 unsigned int arg2 ;
17102 wxString result;
17103 void *argp1 = 0 ;
17104 int res1 = 0 ;
17105 unsigned int val2 ;
17106 int ecode2 = 0 ;
17107 PyObject * obj0 = 0 ;
17108 PyObject * obj1 = 0 ;
17109 char * kwnames[] = {
17110 (char *) "self",(char *) "n", NULL
17111 };
17112
17113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17115 if (!SWIG_IsOK(res1)) {
17116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17117 }
17118 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17119 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17120 if (!SWIG_IsOK(ecode2)) {
17121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17122 }
17123 arg2 = static_cast< unsigned int >(val2);
17124 {
17125 PyThreadState* __tstate = wxPyBeginAllowThreads();
17126 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131#if wxUSE_UNICODE
17132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17133#else
17134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17135#endif
17136 }
17137 return resultobj;
17138fail:
17139 return NULL;
17140}
17141
17142
554f62e9
RD
17143SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj = 0;
17145 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17146 SwigValueWrapper<wxVisualAttributes > result;
17147 int val1 ;
17148 int ecode1 = 0 ;
17149 PyObject * obj0 = 0 ;
17150 char * kwnames[] = {
17151 (char *) "variant", NULL
17152 };
17153
17154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17155 if (obj0) {
17156 ecode1 = SWIG_AsVal_int(obj0, &val1);
17157 if (!SWIG_IsOK(ecode1)) {
17158 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17159 }
17160 arg1 = static_cast< wxWindowVariant >(val1);
17161 }
17162 {
17163 if (!wxPyCheckForApp()) SWIG_fail;
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17170 return resultobj;
17171fail:
17172 return NULL;
17173}
17174
17175
17176SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17177 PyObject *obj;
17178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17179 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17180 return SWIG_Py_Void();
17181}
17182
17183SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17184 return SWIG_Python_InitShadowInstance(args);
17185}
17186
17187SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17188 PyObject *resultobj = 0;
17189 wxWindow *arg1 = (wxWindow *) 0 ;
17190 int arg2 = (int) -1 ;
17191 wxString const &arg3_defvalue = wxPyEmptyString ;
17192 wxString *arg3 = (wxString *) &arg3_defvalue ;
17193 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17194 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17195 wxSize const &arg5_defvalue = wxDefaultSize ;
17196 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17197 long arg6 = (long) 0 ;
17198 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17199 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17200 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17201 wxString *arg8 = (wxString *) &arg8_defvalue ;
17202 wxRadioButton *result = 0 ;
17203 void *argp1 = 0 ;
17204 int res1 = 0 ;
17205 int val2 ;
17206 int ecode2 = 0 ;
17207 bool temp3 = false ;
17208 wxPoint temp4 ;
17209 wxSize temp5 ;
17210 long val6 ;
17211 int ecode6 = 0 ;
17212 void *argp7 = 0 ;
17213 int res7 = 0 ;
17214 bool temp8 = false ;
17215 PyObject * obj0 = 0 ;
17216 PyObject * obj1 = 0 ;
17217 PyObject * obj2 = 0 ;
17218 PyObject * obj3 = 0 ;
17219 PyObject * obj4 = 0 ;
17220 PyObject * obj5 = 0 ;
17221 PyObject * obj6 = 0 ;
17222 PyObject * obj7 = 0 ;
17223 char * kwnames[] = {
17224 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17225 };
17226
17227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17229 if (!SWIG_IsOK(res1)) {
17230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17231 }
17232 arg1 = reinterpret_cast< wxWindow * >(argp1);
17233 if (obj1) {
17234 ecode2 = SWIG_AsVal_int(obj1, &val2);
17235 if (!SWIG_IsOK(ecode2)) {
17236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17237 }
17238 arg2 = static_cast< int >(val2);
17239 }
17240 if (obj2) {
d55e5bfc 17241 {
554f62e9
RD
17242 arg3 = wxString_in_helper(obj2);
17243 if (arg3 == NULL) SWIG_fail;
17244 temp3 = true;
d55e5bfc 17245 }
554f62e9
RD
17246 }
17247 if (obj3) {
d55e5bfc 17248 {
554f62e9
RD
17249 arg4 = &temp4;
17250 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17251 }
554f62e9
RD
17252 }
17253 if (obj4) {
d55e5bfc 17254 {
554f62e9
RD
17255 arg5 = &temp5;
17256 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17257 }
554f62e9
RD
17258 }
17259 if (obj5) {
17260 ecode6 = SWIG_AsVal_long(obj5, &val6);
17261 if (!SWIG_IsOK(ecode6)) {
17262 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17263 }
17264 arg6 = static_cast< long >(val6);
17265 }
17266 if (obj6) {
17267 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17268 if (!SWIG_IsOK(res7)) {
17269 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17270 }
554f62e9
RD
17271 if (!argp7) {
17272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17273 }
554f62e9
RD
17274 arg7 = reinterpret_cast< wxValidator * >(argp7);
17275 }
17276 if (obj7) {
d55e5bfc 17277 {
554f62e9
RD
17278 arg8 = wxString_in_helper(obj7);
17279 if (arg8 == NULL) SWIG_fail;
17280 temp8 = true;
d55e5bfc 17281 }
554f62e9
RD
17282 }
17283 {
17284 if (!wxPyCheckForApp()) SWIG_fail;
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17291 {
17292 if (temp3)
17293 delete arg3;
17294 }
17295 {
17296 if (temp8)
17297 delete arg8;
17298 }
17299 return resultobj;
17300fail:
17301 {
17302 if (temp3)
17303 delete arg3;
17304 }
17305 {
17306 if (temp8)
17307 delete arg8;
17308 }
17309 return NULL;
d55e5bfc
RD
17310}
17311
17312
554f62e9
RD
17313SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17314 PyObject *resultobj = 0;
17315 wxRadioButton *result = 0 ;
17316
17317 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17318 {
17319 if (!wxPyCheckForApp()) SWIG_fail;
17320 PyThreadState* __tstate = wxPyBeginAllowThreads();
17321 result = (wxRadioButton *)new wxRadioButton();
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17326 return resultobj;
17327fail:
17328 return NULL;
17329}
17330
17331
17332SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17333 PyObject *resultobj = 0;
17334 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17335 wxWindow *arg2 = (wxWindow *) 0 ;
17336 int arg3 = (int) -1 ;
17337 wxString const &arg4_defvalue = wxPyEmptyString ;
17338 wxString *arg4 = (wxString *) &arg4_defvalue ;
17339 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17340 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17341 wxSize const &arg6_defvalue = wxDefaultSize ;
17342 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17343 long arg7 = (long) 0 ;
17344 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17345 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17346 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17347 wxString *arg9 = (wxString *) &arg9_defvalue ;
17348 bool result;
17349 void *argp1 = 0 ;
17350 int res1 = 0 ;
17351 void *argp2 = 0 ;
17352 int res2 = 0 ;
17353 int val3 ;
17354 int ecode3 = 0 ;
17355 bool temp4 = false ;
17356 wxPoint temp5 ;
17357 wxSize temp6 ;
17358 long val7 ;
17359 int ecode7 = 0 ;
17360 void *argp8 = 0 ;
17361 int res8 = 0 ;
17362 bool temp9 = false ;
17363 PyObject * obj0 = 0 ;
17364 PyObject * obj1 = 0 ;
17365 PyObject * obj2 = 0 ;
17366 PyObject * obj3 = 0 ;
17367 PyObject * obj4 = 0 ;
17368 PyObject * obj5 = 0 ;
17369 PyObject * obj6 = 0 ;
17370 PyObject * obj7 = 0 ;
17371 PyObject * obj8 = 0 ;
17372 char * kwnames[] = {
17373 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17374 };
17375
17376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17378 if (!SWIG_IsOK(res1)) {
17379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17380 }
17381 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17383 if (!SWIG_IsOK(res2)) {
17384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17385 }
17386 arg2 = reinterpret_cast< wxWindow * >(argp2);
17387 if (obj2) {
17388 ecode3 = SWIG_AsVal_int(obj2, &val3);
17389 if (!SWIG_IsOK(ecode3)) {
17390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17391 }
17392 arg3 = static_cast< int >(val3);
17393 }
17394 if (obj3) {
d55e5bfc 17395 {
554f62e9
RD
17396 arg4 = wxString_in_helper(obj3);
17397 if (arg4 == NULL) SWIG_fail;
17398 temp4 = true;
d55e5bfc 17399 }
554f62e9
RD
17400 }
17401 if (obj4) {
d55e5bfc 17402 {
554f62e9
RD
17403 arg5 = &temp5;
17404 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17405 }
554f62e9
RD
17406 }
17407 if (obj5) {
d55e5bfc 17408 {
554f62e9
RD
17409 arg6 = &temp6;
17410 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17411 }
554f62e9
RD
17412 }
17413 if (obj6) {
17414 ecode7 = SWIG_AsVal_long(obj6, &val7);
17415 if (!SWIG_IsOK(ecode7)) {
17416 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17417 }
17418 arg7 = static_cast< long >(val7);
17419 }
17420 if (obj7) {
17421 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17422 if (!SWIG_IsOK(res8)) {
17423 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17424 }
17425 if (!argp8) {
17426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17427 }
554f62e9
RD
17428 arg8 = reinterpret_cast< wxValidator * >(argp8);
17429 }
17430 if (obj8) {
d55e5bfc 17431 {
554f62e9
RD
17432 arg9 = wxString_in_helper(obj8);
17433 if (arg9 == NULL) SWIG_fail;
17434 temp9 = true;
d55e5bfc 17435 }
554f62e9
RD
17436 }
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 {
17444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17445 }
17446 {
17447 if (temp4)
17448 delete arg4;
17449 }
17450 {
17451 if (temp9)
17452 delete arg9;
17453 }
17454 return resultobj;
17455fail:
17456 {
17457 if (temp4)
17458 delete arg4;
17459 }
17460 {
17461 if (temp9)
17462 delete arg9;
17463 }
17464 return NULL;
d55e5bfc
RD
17465}
17466
17467
554f62e9
RD
17468SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17469 PyObject *resultobj = 0;
17470 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17471 bool result;
17472 void *argp1 = 0 ;
17473 int res1 = 0 ;
17474 PyObject *swig_obj[1] ;
17475
17476 if (!args) SWIG_fail;
17477 swig_obj[0] = args;
17478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17479 if (!SWIG_IsOK(res1)) {
17480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17481 }
17482 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = (bool)(arg1)->GetValue();
17486 wxPyEndAllowThreads(__tstate);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 }
17489 {
17490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17491 }
17492 return resultobj;
17493fail:
17494 return NULL;
17495}
17496
17497
17498SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17499 PyObject *resultobj = 0;
17500 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17501 bool arg2 ;
17502 void *argp1 = 0 ;
17503 int res1 = 0 ;
17504 bool val2 ;
17505 int ecode2 = 0 ;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 char * kwnames[] = {
17509 (char *) "self",(char *) "value", NULL
17510 };
17511
17512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17514 if (!SWIG_IsOK(res1)) {
17515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17516 }
17517 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17518 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17519 if (!SWIG_IsOK(ecode2)) {
17520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17521 }
17522 arg2 = static_cast< bool >(val2);
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 (arg1)->SetValue(arg2);
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 resultobj = SWIG_Py_Void();
17530 return resultobj;
17531fail:
17532 return NULL;
17533}
17534
17535
17536SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17537 PyObject *resultobj = 0;
17538 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17539 SwigValueWrapper<wxVisualAttributes > result;
17540 int val1 ;
17541 int ecode1 = 0 ;
17542 PyObject * obj0 = 0 ;
17543 char * kwnames[] = {
17544 (char *) "variant", NULL
17545 };
17546
17547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17548 if (obj0) {
17549 ecode1 = SWIG_AsVal_int(obj0, &val1);
17550 if (!SWIG_IsOK(ecode1)) {
17551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17552 }
17553 arg1 = static_cast< wxWindowVariant >(val1);
17554 }
17555 {
17556 if (!wxPyCheckForApp()) SWIG_fail;
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17559 wxPyEndAllowThreads(__tstate);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17563 return resultobj;
17564fail:
17565 return NULL;
d55e5bfc
RD
17566}
17567
17568
554f62e9
RD
17569SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17570 PyObject *obj;
17571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17572 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17573 return SWIG_Py_Void();
d55e5bfc
RD
17574}
17575
554f62e9
RD
17576SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17577 return SWIG_Python_InitShadowInstance(args);
17578}
d55e5bfc 17579
554f62e9
RD
17580SWIGINTERN int SliderNameStr_set(PyObject *) {
17581 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17582 return 1;
d55e5bfc
RD
17583}
17584
17585
554f62e9
RD
17586SWIGINTERN PyObject *SliderNameStr_get(void) {
17587 PyObject *pyobj = 0;
17588
17589 {
17590#if wxUSE_UNICODE
17591 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17592#else
17593 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17594#endif
17595 }
17596 return pyobj;
17597}
17598
17599
17600SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj = 0;
17602 wxWindow *arg1 = (wxWindow *) 0 ;
17603 int arg2 = (int) -1 ;
17604 int arg3 = (int) 0 ;
17605 int arg4 = (int) 0 ;
17606 int arg5 = (int) 100 ;
17607 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17608 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17609 wxSize const &arg7_defvalue = wxDefaultSize ;
17610 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17611 long arg8 = (long) wxSL_HORIZONTAL ;
17612 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17613 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17614 wxString const &arg10_defvalue = wxPySliderNameStr ;
17615 wxString *arg10 = (wxString *) &arg10_defvalue ;
17616 wxSlider *result = 0 ;
17617 void *argp1 = 0 ;
17618 int res1 = 0 ;
17619 int val2 ;
17620 int ecode2 = 0 ;
17621 int val3 ;
17622 int ecode3 = 0 ;
17623 int val4 ;
17624 int ecode4 = 0 ;
17625 int val5 ;
17626 int ecode5 = 0 ;
17627 wxPoint temp6 ;
17628 wxSize temp7 ;
17629 long val8 ;
17630 int ecode8 = 0 ;
17631 void *argp9 = 0 ;
17632 int res9 = 0 ;
17633 bool temp10 = false ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 PyObject * obj3 = 0 ;
17638 PyObject * obj4 = 0 ;
17639 PyObject * obj5 = 0 ;
17640 PyObject * obj6 = 0 ;
17641 PyObject * obj7 = 0 ;
17642 PyObject * obj8 = 0 ;
17643 PyObject * obj9 = 0 ;
17644 char * kwnames[] = {
17645 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17646 };
17647
17648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17650 if (!SWIG_IsOK(res1)) {
17651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17652 }
17653 arg1 = reinterpret_cast< wxWindow * >(argp1);
17654 if (obj1) {
17655 ecode2 = SWIG_AsVal_int(obj1, &val2);
17656 if (!SWIG_IsOK(ecode2)) {
17657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17658 }
17659 arg2 = static_cast< int >(val2);
17660 }
17661 if (obj2) {
17662 ecode3 = SWIG_AsVal_int(obj2, &val3);
17663 if (!SWIG_IsOK(ecode3)) {
17664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17665 }
17666 arg3 = static_cast< int >(val3);
17667 }
17668 if (obj3) {
17669 ecode4 = SWIG_AsVal_int(obj3, &val4);
17670 if (!SWIG_IsOK(ecode4)) {
17671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17672 }
17673 arg4 = static_cast< int >(val4);
17674 }
17675 if (obj4) {
17676 ecode5 = SWIG_AsVal_int(obj4, &val5);
17677 if (!SWIG_IsOK(ecode5)) {
17678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17679 }
17680 arg5 = static_cast< int >(val5);
17681 }
17682 if (obj5) {
d55e5bfc 17683 {
554f62e9
RD
17684 arg6 = &temp6;
17685 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17686 }
554f62e9
RD
17687 }
17688 if (obj6) {
093d3ff1 17689 {
554f62e9
RD
17690 arg7 = &temp7;
17691 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17692 }
554f62e9
RD
17693 }
17694 if (obj7) {
17695 ecode8 = SWIG_AsVal_long(obj7, &val8);
17696 if (!SWIG_IsOK(ecode8)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17698 }
17699 arg8 = static_cast< long >(val8);
17700 }
17701 if (obj8) {
17702 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17703 if (!SWIG_IsOK(res9)) {
17704 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17705 }
554f62e9
RD
17706 if (!argp9) {
17707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17708 }
554f62e9
RD
17709 arg9 = reinterpret_cast< wxValidator * >(argp9);
17710 }
17711 if (obj9) {
d55e5bfc 17712 {
554f62e9
RD
17713 arg10 = wxString_in_helper(obj9);
17714 if (arg10 == NULL) SWIG_fail;
17715 temp10 = true;
d55e5bfc 17716 }
554f62e9
RD
17717 }
17718 {
17719 if (!wxPyCheckForApp()) SWIG_fail;
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
17721 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17726 {
17727 if (temp10)
17728 delete arg10;
17729 }
17730 return resultobj;
17731fail:
17732 {
17733 if (temp10)
17734 delete arg10;
17735 }
17736 return NULL;
d55e5bfc
RD
17737}
17738
17739
554f62e9
RD
17740SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17741 PyObject *resultobj = 0;
17742 wxSlider *result = 0 ;
17743
17744 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17745 {
17746 if (!wxPyCheckForApp()) SWIG_fail;
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = (wxSlider *)new wxSlider();
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17753 return resultobj;
17754fail:
17755 return NULL;
17756}
17757
17758
17759SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj = 0;
17761 wxSlider *arg1 = (wxSlider *) 0 ;
17762 wxWindow *arg2 = (wxWindow *) 0 ;
17763 int arg3 = (int) -1 ;
17764 int arg4 = (int) 0 ;
17765 int arg5 = (int) 0 ;
17766 int arg6 = (int) 100 ;
17767 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17768 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17769 wxSize const &arg8_defvalue = wxDefaultSize ;
17770 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17771 long arg9 = (long) wxSL_HORIZONTAL ;
17772 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17773 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17774 wxString const &arg11_defvalue = wxPySliderNameStr ;
17775 wxString *arg11 = (wxString *) &arg11_defvalue ;
17776 bool result;
17777 void *argp1 = 0 ;
17778 int res1 = 0 ;
17779 void *argp2 = 0 ;
17780 int res2 = 0 ;
17781 int val3 ;
17782 int ecode3 = 0 ;
17783 int val4 ;
17784 int ecode4 = 0 ;
17785 int val5 ;
17786 int ecode5 = 0 ;
17787 int val6 ;
17788 int ecode6 = 0 ;
17789 wxPoint temp7 ;
17790 wxSize temp8 ;
17791 long val9 ;
17792 int ecode9 = 0 ;
17793 void *argp10 = 0 ;
17794 int res10 = 0 ;
17795 bool temp11 = false ;
17796 PyObject * obj0 = 0 ;
17797 PyObject * obj1 = 0 ;
17798 PyObject * obj2 = 0 ;
17799 PyObject * obj3 = 0 ;
17800 PyObject * obj4 = 0 ;
17801 PyObject * obj5 = 0 ;
17802 PyObject * obj6 = 0 ;
17803 PyObject * obj7 = 0 ;
17804 PyObject * obj8 = 0 ;
17805 PyObject * obj9 = 0 ;
17806 PyObject * obj10 = 0 ;
17807 char * kwnames[] = {
17808 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17809 };
17810
17811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17813 if (!SWIG_IsOK(res1)) {
17814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17815 }
17816 arg1 = reinterpret_cast< wxSlider * >(argp1);
17817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17818 if (!SWIG_IsOK(res2)) {
17819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17820 }
17821 arg2 = reinterpret_cast< wxWindow * >(argp2);
17822 if (obj2) {
17823 ecode3 = SWIG_AsVal_int(obj2, &val3);
17824 if (!SWIG_IsOK(ecode3)) {
17825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17826 }
17827 arg3 = static_cast< int >(val3);
17828 }
17829 if (obj3) {
17830 ecode4 = SWIG_AsVal_int(obj3, &val4);
17831 if (!SWIG_IsOK(ecode4)) {
17832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17833 }
17834 arg4 = static_cast< int >(val4);
17835 }
17836 if (obj4) {
17837 ecode5 = SWIG_AsVal_int(obj4, &val5);
17838 if (!SWIG_IsOK(ecode5)) {
17839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17840 }
17841 arg5 = static_cast< int >(val5);
17842 }
17843 if (obj5) {
17844 ecode6 = SWIG_AsVal_int(obj5, &val6);
17845 if (!SWIG_IsOK(ecode6)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17847 }
17848 arg6 = static_cast< int >(val6);
17849 }
17850 if (obj6) {
d55e5bfc 17851 {
554f62e9
RD
17852 arg7 = &temp7;
17853 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17854 }
554f62e9
RD
17855 }
17856 if (obj7) {
093d3ff1 17857 {
554f62e9
RD
17858 arg8 = &temp8;
17859 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17860 }
17861 }
17862 if (obj8) {
17863 ecode9 = SWIG_AsVal_long(obj8, &val9);
17864 if (!SWIG_IsOK(ecode9)) {
17865 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17866 }
17867 arg9 = static_cast< long >(val9);
17868 }
17869 if (obj9) {
17870 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17871 if (!SWIG_IsOK(res10)) {
17872 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 17873 }
554f62e9
RD
17874 if (!argp10) {
17875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17876 }
17877 arg10 = reinterpret_cast< wxValidator * >(argp10);
17878 }
17879 if (obj10) {
d55e5bfc 17880 {
554f62e9
RD
17881 arg11 = wxString_in_helper(obj10);
17882 if (arg11 == NULL) SWIG_fail;
17883 temp11 = true;
d55e5bfc 17884 }
554f62e9
RD
17885 }
17886 {
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17889 wxPyEndAllowThreads(__tstate);
17890 if (PyErr_Occurred()) SWIG_fail;
17891 }
17892 {
17893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17894 }
17895 {
17896 if (temp11)
17897 delete arg11;
17898 }
17899 return resultobj;
17900fail:
17901 {
17902 if (temp11)
17903 delete arg11;
17904 }
17905 return NULL;
d55e5bfc
RD
17906}
17907
17908
554f62e9
RD
17909SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17910 PyObject *resultobj = 0;
17911 wxSlider *arg1 = (wxSlider *) 0 ;
17912 int result;
17913 void *argp1 = 0 ;
17914 int res1 = 0 ;
17915 PyObject *swig_obj[1] ;
17916
17917 if (!args) SWIG_fail;
17918 swig_obj[0] = args;
17919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17920 if (!SWIG_IsOK(res1)) {
17921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17922 }
17923 arg1 = reinterpret_cast< wxSlider * >(argp1);
17924 {
17925 PyThreadState* __tstate = wxPyBeginAllowThreads();
17926 result = (int)((wxSlider const *)arg1)->GetValue();
17927 wxPyEndAllowThreads(__tstate);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 }
17930 resultobj = SWIG_From_int(static_cast< int >(result));
17931 return resultobj;
17932fail:
17933 return NULL;
17934}
17935
17936
17937SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj = 0;
17939 wxSlider *arg1 = (wxSlider *) 0 ;
17940 int arg2 ;
17941 void *argp1 = 0 ;
17942 int res1 = 0 ;
17943 int val2 ;
17944 int ecode2 = 0 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char * kwnames[] = {
17948 (char *) "self",(char *) "value", NULL
17949 };
17950
17951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17953 if (!SWIG_IsOK(res1)) {
17954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17955 }
17956 arg1 = reinterpret_cast< wxSlider * >(argp1);
17957 ecode2 = SWIG_AsVal_int(obj1, &val2);
17958 if (!SWIG_IsOK(ecode2)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17960 }
17961 arg2 = static_cast< int >(val2);
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 (arg1)->SetValue(arg2);
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_Py_Void();
17969 return resultobj;
17970fail:
17971 return NULL;
17972}
17973
17974
17975SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj = 0;
17977 wxSlider *arg1 = (wxSlider *) 0 ;
17978 int arg2 ;
17979 int arg3 ;
17980 void *argp1 = 0 ;
17981 int res1 = 0 ;
17982 int val2 ;
17983 int ecode2 = 0 ;
17984 int val3 ;
17985 int ecode3 = 0 ;
17986 PyObject * obj0 = 0 ;
17987 PyObject * obj1 = 0 ;
17988 PyObject * obj2 = 0 ;
17989 char * kwnames[] = {
17990 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17991 };
17992
17993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17995 if (!SWIG_IsOK(res1)) {
17996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17997 }
17998 arg1 = reinterpret_cast< wxSlider * >(argp1);
17999 ecode2 = SWIG_AsVal_int(obj1, &val2);
18000 if (!SWIG_IsOK(ecode2)) {
18001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18002 }
18003 arg2 = static_cast< int >(val2);
18004 ecode3 = SWIG_AsVal_int(obj2, &val3);
18005 if (!SWIG_IsOK(ecode3)) {
18006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18007 }
18008 arg3 = static_cast< int >(val3);
18009 {
18010 PyThreadState* __tstate = wxPyBeginAllowThreads();
18011 (arg1)->SetRange(arg2,arg3);
18012 wxPyEndAllowThreads(__tstate);
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
18015 resultobj = SWIG_Py_Void();
18016 return resultobj;
18017fail:
18018 return NULL;
d55e5bfc
RD
18019}
18020
18021
554f62e9
RD
18022SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18023 PyObject *resultobj = 0;
18024 wxSlider *arg1 = (wxSlider *) 0 ;
18025 int result;
18026 void *argp1 = 0 ;
18027 int res1 = 0 ;
18028 PyObject *swig_obj[1] ;
18029
18030 if (!args) SWIG_fail;
18031 swig_obj[0] = args;
18032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18033 if (!SWIG_IsOK(res1)) {
18034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18035 }
18036 arg1 = reinterpret_cast< wxSlider * >(argp1);
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 result = (int)((wxSlider const *)arg1)->GetMin();
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 resultobj = SWIG_From_int(static_cast< int >(result));
18044 return resultobj;
18045fail:
18046 return NULL;
d55e5bfc
RD
18047}
18048
18049
554f62e9
RD
18050SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18051 PyObject *resultobj = 0;
18052 wxSlider *arg1 = (wxSlider *) 0 ;
18053 int result;
18054 void *argp1 = 0 ;
18055 int res1 = 0 ;
18056 PyObject *swig_obj[1] ;
18057
18058 if (!args) SWIG_fail;
18059 swig_obj[0] = args;
18060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18061 if (!SWIG_IsOK(res1)) {
18062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18063 }
18064 arg1 = reinterpret_cast< wxSlider * >(argp1);
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 result = (int)((wxSlider const *)arg1)->GetMax();
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_From_int(static_cast< int >(result));
18072 return resultobj;
18073fail:
18074 return NULL;
18075}
18076
18077
18078SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxSlider *arg1 = (wxSlider *) 0 ;
18081 int arg2 ;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 int val2 ;
18085 int ecode2 = 0 ;
18086 PyObject * obj0 = 0 ;
18087 PyObject * obj1 = 0 ;
18088 char * kwnames[] = {
18089 (char *) "self",(char *) "minValue", NULL
18090 };
18091
18092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18094 if (!SWIG_IsOK(res1)) {
18095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18096 }
18097 arg1 = reinterpret_cast< wxSlider * >(argp1);
18098 ecode2 = SWIG_AsVal_int(obj1, &val2);
18099 if (!SWIG_IsOK(ecode2)) {
18100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18101 }
18102 arg2 = static_cast< int >(val2);
18103 {
18104 PyThreadState* __tstate = wxPyBeginAllowThreads();
18105 (arg1)->SetMin(arg2);
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 resultobj = SWIG_Py_Void();
18110 return resultobj;
18111fail:
18112 return NULL;
18113}
18114
18115
18116SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18117 PyObject *resultobj = 0;
18118 wxSlider *arg1 = (wxSlider *) 0 ;
18119 int arg2 ;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 int val2 ;
18123 int ecode2 = 0 ;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18126 char * kwnames[] = {
18127 (char *) "self",(char *) "maxValue", NULL
18128 };
18129
18130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18132 if (!SWIG_IsOK(res1)) {
18133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18134 }
18135 arg1 = reinterpret_cast< wxSlider * >(argp1);
18136 ecode2 = SWIG_AsVal_int(obj1, &val2);
18137 if (!SWIG_IsOK(ecode2)) {
18138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18139 }
18140 arg2 = static_cast< int >(val2);
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->SetMax(arg2);
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 resultobj = SWIG_Py_Void();
18148 return resultobj;
18149fail:
18150 return NULL;
18151}
18152
18153
18154SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj = 0;
18156 wxSlider *arg1 = (wxSlider *) 0 ;
18157 int arg2 ;
18158 void *argp1 = 0 ;
18159 int res1 = 0 ;
18160 int val2 ;
18161 int ecode2 = 0 ;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char * kwnames[] = {
18165 (char *) "self",(char *) "lineSize", NULL
18166 };
18167
18168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18170 if (!SWIG_IsOK(res1)) {
18171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18172 }
18173 arg1 = reinterpret_cast< wxSlider * >(argp1);
18174 ecode2 = SWIG_AsVal_int(obj1, &val2);
18175 if (!SWIG_IsOK(ecode2)) {
18176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18177 }
18178 arg2 = static_cast< int >(val2);
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->SetLineSize(arg2);
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_Py_Void();
18186 return resultobj;
18187fail:
18188 return NULL;
18189}
18190
18191
18192SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxSlider *arg1 = (wxSlider *) 0 ;
18195 int arg2 ;
18196 void *argp1 = 0 ;
18197 int res1 = 0 ;
18198 int val2 ;
18199 int ecode2 = 0 ;
18200 PyObject * obj0 = 0 ;
18201 PyObject * obj1 = 0 ;
18202 char * kwnames[] = {
18203 (char *) "self",(char *) "pageSize", NULL
18204 };
18205
18206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18208 if (!SWIG_IsOK(res1)) {
18209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18210 }
18211 arg1 = reinterpret_cast< wxSlider * >(argp1);
18212 ecode2 = SWIG_AsVal_int(obj1, &val2);
18213 if (!SWIG_IsOK(ecode2)) {
18214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18215 }
18216 arg2 = static_cast< int >(val2);
18217 {
18218 PyThreadState* __tstate = wxPyBeginAllowThreads();
18219 (arg1)->SetPageSize(arg2);
18220 wxPyEndAllowThreads(__tstate);
18221 if (PyErr_Occurred()) SWIG_fail;
18222 }
18223 resultobj = SWIG_Py_Void();
18224 return resultobj;
18225fail:
18226 return NULL;
d55e5bfc
RD
18227}
18228
18229
554f62e9
RD
18230SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18231 PyObject *resultobj = 0;
18232 wxSlider *arg1 = (wxSlider *) 0 ;
18233 int result;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 PyObject *swig_obj[1] ;
18237
18238 if (!args) SWIG_fail;
18239 swig_obj[0] = args;
18240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18241 if (!SWIG_IsOK(res1)) {
18242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18243 }
18244 arg1 = reinterpret_cast< wxSlider * >(argp1);
18245 {
18246 PyThreadState* __tstate = wxPyBeginAllowThreads();
18247 result = (int)((wxSlider const *)arg1)->GetLineSize();
18248 wxPyEndAllowThreads(__tstate);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 }
18251 resultobj = SWIG_From_int(static_cast< int >(result));
18252 return resultobj;
18253fail:
18254 return NULL;
d55e5bfc
RD
18255}
18256
18257
554f62e9
RD
18258SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18259 PyObject *resultobj = 0;
18260 wxSlider *arg1 = (wxSlider *) 0 ;
18261 int result;
18262 void *argp1 = 0 ;
18263 int res1 = 0 ;
18264 PyObject *swig_obj[1] ;
18265
18266 if (!args) SWIG_fail;
18267 swig_obj[0] = args;
18268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18269 if (!SWIG_IsOK(res1)) {
18270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18271 }
18272 arg1 = reinterpret_cast< wxSlider * >(argp1);
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 result = (int)((wxSlider const *)arg1)->GetPageSize();
18276 wxPyEndAllowThreads(__tstate);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 resultobj = SWIG_From_int(static_cast< int >(result));
18280 return resultobj;
18281fail:
18282 return NULL;
18283}
18284
18285
18286SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj = 0;
18288 wxSlider *arg1 = (wxSlider *) 0 ;
18289 int arg2 ;
18290 void *argp1 = 0 ;
18291 int res1 = 0 ;
18292 int val2 ;
18293 int ecode2 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 char * kwnames[] = {
18297 (char *) "self",(char *) "lenPixels", NULL
18298 };
18299
18300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18304 }
18305 arg1 = reinterpret_cast< wxSlider * >(argp1);
18306 ecode2 = SWIG_AsVal_int(obj1, &val2);
18307 if (!SWIG_IsOK(ecode2)) {
18308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18309 }
18310 arg2 = static_cast< int >(val2);
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
18313 (arg1)->SetThumbLength(arg2);
18314 wxPyEndAllowThreads(__tstate);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
18317 resultobj = SWIG_Py_Void();
18318 return resultobj;
18319fail:
18320 return NULL;
f20a2e1f
RD
18321}
18322
18323
554f62e9
RD
18324SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18325 PyObject *resultobj = 0;
18326 wxSlider *arg1 = (wxSlider *) 0 ;
18327 int result;
18328 void *argp1 = 0 ;
18329 int res1 = 0 ;
18330 PyObject *swig_obj[1] ;
18331
18332 if (!args) SWIG_fail;
18333 swig_obj[0] = args;
18334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18335 if (!SWIG_IsOK(res1)) {
18336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18337 }
18338 arg1 = reinterpret_cast< wxSlider * >(argp1);
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_From_int(static_cast< int >(result));
18346 return resultobj;
18347fail:
18348 return NULL;
18349}
18350
18351
18352SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj = 0;
18354 wxSlider *arg1 = (wxSlider *) 0 ;
18355 int arg2 ;
18356 int arg3 = (int) 1 ;
18357 void *argp1 = 0 ;
18358 int res1 = 0 ;
18359 int val2 ;
18360 int ecode2 = 0 ;
18361 int val3 ;
18362 int ecode3 = 0 ;
18363 PyObject * obj0 = 0 ;
18364 PyObject * obj1 = 0 ;
18365 PyObject * obj2 = 0 ;
18366 char * kwnames[] = {
18367 (char *) "self",(char *) "n",(char *) "pos", NULL
18368 };
18369
18370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18372 if (!SWIG_IsOK(res1)) {
18373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18374 }
18375 arg1 = reinterpret_cast< wxSlider * >(argp1);
18376 ecode2 = SWIG_AsVal_int(obj1, &val2);
18377 if (!SWIG_IsOK(ecode2)) {
18378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18379 }
18380 arg2 = static_cast< int >(val2);
18381 if (obj2) {
18382 ecode3 = SWIG_AsVal_int(obj2, &val3);
18383 if (!SWIG_IsOK(ecode3)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18385 }
18386 arg3 = static_cast< int >(val3);
18387 }
18388 {
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 (arg1)->SetTickFreq(arg2,arg3);
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 resultobj = SWIG_Py_Void();
18395 return resultobj;
18396fail:
18397 return NULL;
d55e5bfc
RD
18398}
18399
18400
554f62e9
RD
18401SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18402 PyObject *resultobj = 0;
18403 wxSlider *arg1 = (wxSlider *) 0 ;
18404 int result;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 PyObject *swig_obj[1] ;
18408
18409 if (!args) SWIG_fail;
18410 swig_obj[0] = args;
18411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18412 if (!SWIG_IsOK(res1)) {
18413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18414 }
18415 arg1 = reinterpret_cast< wxSlider * >(argp1);
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 resultobj = SWIG_From_int(static_cast< int >(result));
18423 return resultobj;
18424fail:
18425 return NULL;
d55e5bfc
RD
18426}
18427
18428
554f62e9
RD
18429SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18430 PyObject *resultobj = 0;
18431 wxSlider *arg1 = (wxSlider *) 0 ;
18432 void *argp1 = 0 ;
18433 int res1 = 0 ;
18434 PyObject *swig_obj[1] ;
18435
18436 if (!args) SWIG_fail;
18437 swig_obj[0] = args;
18438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18439 if (!SWIG_IsOK(res1)) {
18440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18441 }
18442 arg1 = reinterpret_cast< wxSlider * >(argp1);
18443 {
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 (arg1)->ClearTicks();
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_Py_Void();
18450 return resultobj;
18451fail:
18452 return NULL;
18453}
18454
18455
18456SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxSlider *arg1 = (wxSlider *) 0 ;
18459 int arg2 ;
18460 void *argp1 = 0 ;
18461 int res1 = 0 ;
18462 int val2 ;
18463 int ecode2 = 0 ;
18464 PyObject * obj0 = 0 ;
18465 PyObject * obj1 = 0 ;
18466 char * kwnames[] = {
18467 (char *) "self",(char *) "tickPos", NULL
18468 };
18469
18470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18472 if (!SWIG_IsOK(res1)) {
18473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18474 }
18475 arg1 = reinterpret_cast< wxSlider * >(argp1);
18476 ecode2 = SWIG_AsVal_int(obj1, &val2);
18477 if (!SWIG_IsOK(ecode2)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18479 }
18480 arg2 = static_cast< int >(val2);
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 (arg1)->SetTick(arg2);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_Py_Void();
18488 return resultobj;
18489fail:
18490 return NULL;
d55e5bfc
RD
18491}
18492
18493
554f62e9
RD
18494SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18495 PyObject *resultobj = 0;
18496 wxSlider *arg1 = (wxSlider *) 0 ;
18497 void *argp1 = 0 ;
18498 int res1 = 0 ;
18499 PyObject *swig_obj[1] ;
18500
18501 if (!args) SWIG_fail;
18502 swig_obj[0] = args;
18503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18504 if (!SWIG_IsOK(res1)) {
18505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18506 }
18507 arg1 = reinterpret_cast< wxSlider * >(argp1);
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 (arg1)->ClearSel();
18511 wxPyEndAllowThreads(__tstate);
18512 if (PyErr_Occurred()) SWIG_fail;
18513 }
18514 resultobj = SWIG_Py_Void();
18515 return resultobj;
18516fail:
18517 return NULL;
d55e5bfc
RD
18518}
18519
18520
554f62e9
RD
18521SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18522 PyObject *resultobj = 0;
18523 wxSlider *arg1 = (wxSlider *) 0 ;
18524 int result;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 PyObject *swig_obj[1] ;
18528
18529 if (!args) SWIG_fail;
18530 swig_obj[0] = args;
18531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18532 if (!SWIG_IsOK(res1)) {
18533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18534 }
18535 arg1 = reinterpret_cast< wxSlider * >(argp1);
18536 {
18537 PyThreadState* __tstate = wxPyBeginAllowThreads();
18538 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18539 wxPyEndAllowThreads(__tstate);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 resultobj = SWIG_From_int(static_cast< int >(result));
18543 return resultobj;
18544fail:
18545 return NULL;
d55e5bfc 18546}
554f62e9
RD
18547
18548
18549SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18550 PyObject *resultobj = 0;
18551 wxSlider *arg1 = (wxSlider *) 0 ;
18552 int result;
18553 void *argp1 = 0 ;
18554 int res1 = 0 ;
18555 PyObject *swig_obj[1] ;
18556
18557 if (!args) SWIG_fail;
18558 swig_obj[0] = args;
18559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18560 if (!SWIG_IsOK(res1)) {
18561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18562 }
18563 arg1 = reinterpret_cast< wxSlider * >(argp1);
18564 {
18565 PyThreadState* __tstate = wxPyBeginAllowThreads();
18566 result = (int)((wxSlider const *)arg1)->GetSelStart();
18567 wxPyEndAllowThreads(__tstate);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 }
18570 resultobj = SWIG_From_int(static_cast< int >(result));
18571 return resultobj;
18572fail:
18573 return NULL;
18574}
18575
18576
18577SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18578 PyObject *resultobj = 0;
18579 wxSlider *arg1 = (wxSlider *) 0 ;
18580 int arg2 ;
18581 int arg3 ;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 int val2 ;
18585 int ecode2 = 0 ;
18586 int val3 ;
18587 int ecode3 = 0 ;
18588 PyObject * obj0 = 0 ;
18589 PyObject * obj1 = 0 ;
18590 PyObject * obj2 = 0 ;
18591 char * kwnames[] = {
18592 (char *) "self",(char *) "min",(char *) "max", NULL
18593 };
18594
18595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18597 if (!SWIG_IsOK(res1)) {
18598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18599 }
18600 arg1 = reinterpret_cast< wxSlider * >(argp1);
18601 ecode2 = SWIG_AsVal_int(obj1, &val2);
18602 if (!SWIG_IsOK(ecode2)) {
18603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18604 }
18605 arg2 = static_cast< int >(val2);
18606 ecode3 = SWIG_AsVal_int(obj2, &val3);
18607 if (!SWIG_IsOK(ecode3)) {
18608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18609 }
18610 arg3 = static_cast< int >(val3);
18611 {
18612 PyThreadState* __tstate = wxPyBeginAllowThreads();
18613 (arg1)->SetSelection(arg2,arg3);
18614 wxPyEndAllowThreads(__tstate);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 resultobj = SWIG_Py_Void();
18618 return resultobj;
18619fail:
18620 return NULL;
18621}
18622
18623
18624SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18625 PyObject *resultobj = 0;
18626 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18627 SwigValueWrapper<wxVisualAttributes > result;
18628 int val1 ;
18629 int ecode1 = 0 ;
18630 PyObject * obj0 = 0 ;
18631 char * kwnames[] = {
18632 (char *) "variant", NULL
18633 };
18634
18635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18636 if (obj0) {
18637 ecode1 = SWIG_AsVal_int(obj0, &val1);
18638 if (!SWIG_IsOK(ecode1)) {
18639 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18640 }
18641 arg1 = static_cast< wxWindowVariant >(val1);
18642 }
18643 {
18644 if (!wxPyCheckForApp()) SWIG_fail;
18645 PyThreadState* __tstate = wxPyBeginAllowThreads();
18646 result = wxSlider::GetClassDefaultAttributes(arg1);
18647 wxPyEndAllowThreads(__tstate);
18648 if (PyErr_Occurred()) SWIG_fail;
18649 }
18650 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18651 return resultobj;
18652fail:
18653 return NULL;
d55e5bfc
RD
18654}
18655
18656
554f62e9
RD
18657SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18658 PyObject *obj;
18659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18660 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18661 return SWIG_Py_Void();
d55e5bfc
RD
18662}
18663
554f62e9
RD
18664SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18665 return SWIG_Python_InitShadowInstance(args);
18666}
d55e5bfc 18667
554f62e9
RD
18668SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18669 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18670 return 1;
d55e5bfc
RD
18671}
18672
18673
554f62e9
RD
18674SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18675 PyObject *pyobj = 0;
18676
18677 {
18678#if wxUSE_UNICODE
18679 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18680#else
18681 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18682#endif
18683 }
18684 return pyobj;
18685}
18686
18687
18688SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18689 PyObject *resultobj = 0;
18690 wxWindow *arg1 = (wxWindow *) 0 ;
18691 int arg2 = (int) -1 ;
18692 wxString const &arg3_defvalue = wxPyEmptyString ;
18693 wxString *arg3 = (wxString *) &arg3_defvalue ;
18694 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18695 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18696 wxSize const &arg5_defvalue = wxDefaultSize ;
18697 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18698 long arg6 = (long) 0 ;
18699 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18700 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18701 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18702 wxString *arg8 = (wxString *) &arg8_defvalue ;
18703 wxToggleButton *result = 0 ;
18704 void *argp1 = 0 ;
18705 int res1 = 0 ;
18706 int val2 ;
18707 int ecode2 = 0 ;
18708 bool temp3 = false ;
18709 wxPoint temp4 ;
18710 wxSize temp5 ;
18711 long val6 ;
18712 int ecode6 = 0 ;
18713 void *argp7 = 0 ;
18714 int res7 = 0 ;
18715 bool temp8 = false ;
18716 PyObject * obj0 = 0 ;
18717 PyObject * obj1 = 0 ;
18718 PyObject * obj2 = 0 ;
18719 PyObject * obj3 = 0 ;
18720 PyObject * obj4 = 0 ;
18721 PyObject * obj5 = 0 ;
18722 PyObject * obj6 = 0 ;
18723 PyObject * obj7 = 0 ;
18724 char * kwnames[] = {
18725 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18726 };
18727
18728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18730 if (!SWIG_IsOK(res1)) {
18731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18732 }
18733 arg1 = reinterpret_cast< wxWindow * >(argp1);
18734 if (obj1) {
18735 ecode2 = SWIG_AsVal_int(obj1, &val2);
18736 if (!SWIG_IsOK(ecode2)) {
18737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18738 }
18739 arg2 = static_cast< int >(val2);
18740 }
18741 if (obj2) {
d55e5bfc 18742 {
554f62e9
RD
18743 arg3 = wxString_in_helper(obj2);
18744 if (arg3 == NULL) SWIG_fail;
18745 temp3 = true;
d55e5bfc 18746 }
554f62e9
RD
18747 }
18748 if (obj3) {
d55e5bfc 18749 {
554f62e9
RD
18750 arg4 = &temp4;
18751 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 18752 }
554f62e9
RD
18753 }
18754 if (obj4) {
d55e5bfc 18755 {
554f62e9
RD
18756 arg5 = &temp5;
18757 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18758 }
554f62e9
RD
18759 }
18760 if (obj5) {
18761 ecode6 = SWIG_AsVal_long(obj5, &val6);
18762 if (!SWIG_IsOK(ecode6)) {
18763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18764 }
18765 arg6 = static_cast< long >(val6);
18766 }
18767 if (obj6) {
18768 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18769 if (!SWIG_IsOK(res7)) {
18770 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18771 }
554f62e9
RD
18772 if (!argp7) {
18773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18774 }
554f62e9
RD
18775 arg7 = reinterpret_cast< wxValidator * >(argp7);
18776 }
18777 if (obj7) {
093d3ff1 18778 {
554f62e9
RD
18779 arg8 = wxString_in_helper(obj7);
18780 if (arg8 == NULL) SWIG_fail;
18781 temp8 = true;
093d3ff1 18782 }
554f62e9
RD
18783 }
18784 {
18785 if (!wxPyCheckForApp()) SWIG_fail;
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18792 {
18793 if (temp3)
18794 delete arg3;
18795 }
18796 {
18797 if (temp8)
18798 delete arg8;
18799 }
18800 return resultobj;
18801fail:
18802 {
18803 if (temp3)
18804 delete arg3;
18805 }
18806 {
18807 if (temp8)
18808 delete arg8;
18809 }
18810 return NULL;
d55e5bfc
RD
18811}
18812
18813
554f62e9
RD
18814SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18815 PyObject *resultobj = 0;
18816 wxToggleButton *result = 0 ;
18817
18818 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18819 {
18820 if (!wxPyCheckForApp()) SWIG_fail;
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 result = (wxToggleButton *)new wxToggleButton();
18823 wxPyEndAllowThreads(__tstate);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18827 return resultobj;
18828fail:
18829 return NULL;
18830}
18831
18832
18833SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18834 PyObject *resultobj = 0;
18835 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18836 wxWindow *arg2 = (wxWindow *) 0 ;
18837 int arg3 = (int) -1 ;
18838 wxString const &arg4_defvalue = wxPyEmptyString ;
18839 wxString *arg4 = (wxString *) &arg4_defvalue ;
18840 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18841 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18842 wxSize const &arg6_defvalue = wxDefaultSize ;
18843 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18844 long arg7 = (long) 0 ;
18845 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18846 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18847 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18848 wxString *arg9 = (wxString *) &arg9_defvalue ;
18849 bool result;
18850 void *argp1 = 0 ;
18851 int res1 = 0 ;
18852 void *argp2 = 0 ;
18853 int res2 = 0 ;
18854 int val3 ;
18855 int ecode3 = 0 ;
18856 bool temp4 = false ;
18857 wxPoint temp5 ;
18858 wxSize temp6 ;
18859 long val7 ;
18860 int ecode7 = 0 ;
18861 void *argp8 = 0 ;
18862 int res8 = 0 ;
18863 bool temp9 = false ;
18864 PyObject * obj0 = 0 ;
18865 PyObject * obj1 = 0 ;
18866 PyObject * obj2 = 0 ;
18867 PyObject * obj3 = 0 ;
18868 PyObject * obj4 = 0 ;
18869 PyObject * obj5 = 0 ;
18870 PyObject * obj6 = 0 ;
18871 PyObject * obj7 = 0 ;
18872 PyObject * obj8 = 0 ;
18873 char * kwnames[] = {
18874 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18875 };
18876
18877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18879 if (!SWIG_IsOK(res1)) {
18880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18881 }
18882 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18884 if (!SWIG_IsOK(res2)) {
18885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18886 }
18887 arg2 = reinterpret_cast< wxWindow * >(argp2);
18888 if (obj2) {
18889 ecode3 = SWIG_AsVal_int(obj2, &val3);
18890 if (!SWIG_IsOK(ecode3)) {
18891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18892 }
18893 arg3 = static_cast< int >(val3);
18894 }
18895 if (obj3) {
d55e5bfc 18896 {
554f62e9
RD
18897 arg4 = wxString_in_helper(obj3);
18898 if (arg4 == NULL) SWIG_fail;
18899 temp4 = true;
d55e5bfc 18900 }
554f62e9
RD
18901 }
18902 if (obj4) {
093d3ff1 18903 {
554f62e9
RD
18904 arg5 = &temp5;
18905 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 18906 }
554f62e9
RD
18907 }
18908 if (obj5) {
d55e5bfc 18909 {
554f62e9
RD
18910 arg6 = &temp6;
18911 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 18912 }
554f62e9
RD
18913 }
18914 if (obj6) {
18915 ecode7 = SWIG_AsVal_long(obj6, &val7);
18916 if (!SWIG_IsOK(ecode7)) {
18917 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18918 }
18919 arg7 = static_cast< long >(val7);
18920 }
18921 if (obj7) {
18922 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18923 if (!SWIG_IsOK(res8)) {
18924 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 18925 }
554f62e9
RD
18926 if (!argp8) {
18927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18928 }
554f62e9
RD
18929 arg8 = reinterpret_cast< wxValidator * >(argp8);
18930 }
18931 if (obj8) {
093d3ff1 18932 {
554f62e9
RD
18933 arg9 = wxString_in_helper(obj8);
18934 if (arg9 == NULL) SWIG_fail;
18935 temp9 = true;
093d3ff1 18936 }
554f62e9
RD
18937 }
18938 {
18939 PyThreadState* __tstate = wxPyBeginAllowThreads();
18940 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 {
18945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18946 }
18947 {
18948 if (temp4)
18949 delete arg4;
18950 }
18951 {
18952 if (temp9)
18953 delete arg9;
18954 }
18955 return resultobj;
18956fail:
18957 {
18958 if (temp4)
18959 delete arg4;
18960 }
18961 {
18962 if (temp9)
18963 delete arg9;
18964 }
18965 return NULL;
18966}
18967
18968
18969SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18970 PyObject *resultobj = 0;
18971 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18972 bool arg2 ;
18973 void *argp1 = 0 ;
18974 int res1 = 0 ;
18975 bool val2 ;
18976 int ecode2 = 0 ;
18977 PyObject * obj0 = 0 ;
18978 PyObject * obj1 = 0 ;
18979 char * kwnames[] = {
18980 (char *) "self",(char *) "value", NULL
18981 };
18982
18983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18985 if (!SWIG_IsOK(res1)) {
18986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18987 }
18988 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18989 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18990 if (!SWIG_IsOK(ecode2)) {
18991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18992 }
18993 arg2 = static_cast< bool >(val2);
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 (arg1)->SetValue(arg2);
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_Py_Void();
19001 return resultobj;
19002fail:
19003 return NULL;
d55e5bfc
RD
19004}
19005
19006
554f62e9
RD
19007SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19008 PyObject *resultobj = 0;
19009 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19010 bool result;
19011 void *argp1 = 0 ;
19012 int res1 = 0 ;
19013 PyObject *swig_obj[1] ;
19014
19015 if (!args) SWIG_fail;
19016 swig_obj[0] = args;
19017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19018 if (!SWIG_IsOK(res1)) {
19019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19020 }
19021 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 {
19029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19030 }
19031 return resultobj;
19032fail:
19033 return NULL;
d55e5bfc
RD
19034}
19035
19036
554f62e9
RD
19037SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19038 PyObject *resultobj = 0;
19039 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19040 SwigValueWrapper<wxVisualAttributes > result;
19041 int val1 ;
19042 int ecode1 = 0 ;
19043 PyObject * obj0 = 0 ;
19044 char * kwnames[] = {
19045 (char *) "variant", NULL
19046 };
19047
19048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19049 if (obj0) {
19050 ecode1 = SWIG_AsVal_int(obj0, &val1);
19051 if (!SWIG_IsOK(ecode1)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19053 }
19054 arg1 = static_cast< wxWindowVariant >(val1);
19055 }
19056 {
19057 if (!wxPyCheckForApp()) SWIG_fail;
19058 PyThreadState* __tstate = wxPyBeginAllowThreads();
19059 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19060 wxPyEndAllowThreads(__tstate);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19064 return resultobj;
19065fail:
19066 return NULL;
d55e5bfc
RD
19067}
19068
19069
554f62e9
RD
19070SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19071 PyObject *obj;
19072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19073 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19074 return SWIG_Py_Void();
d55e5bfc
RD
19075}
19076
554f62e9
RD
19077SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19078 return SWIG_Python_InitShadowInstance(args);
f20a2e1f
RD
19079}
19080
554f62e9
RD
19081SWIGINTERN int NotebookNameStr_set(PyObject *) {
19082 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19083 return 1;
d55e5bfc
RD
19084}
19085
19086
554f62e9
RD
19087SWIGINTERN PyObject *NotebookNameStr_get(void) {
19088 PyObject *pyobj = 0;
19089
19090 {
d55e5bfc 19091#if wxUSE_UNICODE
554f62e9 19092 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19093#else
554f62e9 19094 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19095#endif
554f62e9
RD
19096 }
19097 return pyobj;
d55e5bfc
RD
19098}
19099
19100
554f62e9
RD
19101SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19102 PyObject *resultobj = 0;
19103 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19104 size_t result;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 PyObject *swig_obj[1] ;
19108
19109 if (!args) SWIG_fail;
19110 swig_obj[0] = args;
19111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19114 }
19115 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19123 return resultobj;
19124fail:
19125 return NULL;
19126}
19127
19128
19129SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19130 PyObject *resultobj = 0;
19131 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19132 size_t arg2 ;
19133 wxWindow *result = 0 ;
19134 void *argp1 = 0 ;
19135 int res1 = 0 ;
19136 size_t val2 ;
19137 int ecode2 = 0 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 char * kwnames[] = {
19141 (char *) "self",(char *) "n", NULL
19142 };
19143
19144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19146 if (!SWIG_IsOK(res1)) {
19147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19148 }
19149 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19150 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19151 if (!SWIG_IsOK(ecode2)) {
19152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19153 }
19154 arg2 = static_cast< size_t >(val2);
19155 {
19156 PyThreadState* __tstate = wxPyBeginAllowThreads();
19157 result = (wxWindow *)(arg1)->GetPage(arg2);
19158 wxPyEndAllowThreads(__tstate);
19159 if (PyErr_Occurred()) SWIG_fail;
19160 }
19161 {
19162 resultobj = wxPyMake_wxObject(result, 0);
19163 }
19164 return resultobj;
19165fail:
19166 return NULL;
d55e5bfc
RD
19167}
19168
19169
554f62e9
RD
19170SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19171 PyObject *resultobj = 0;
19172 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19173 wxWindow *result = 0 ;
19174 void *argp1 = 0 ;
19175 int res1 = 0 ;
19176 PyObject *swig_obj[1] ;
19177
19178 if (!args) SWIG_fail;
19179 swig_obj[0] = args;
19180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19181 if (!SWIG_IsOK(res1)) {
19182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19183 }
19184 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 {
19192 resultobj = wxPyMake_wxObject(result, 0);
19193 }
19194 return resultobj;
19195fail:
19196 return NULL;
d55e5bfc
RD
19197}
19198
19199
554f62e9
RD
19200SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19201 PyObject *resultobj = 0;
19202 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19203 int result;
19204 void *argp1 = 0 ;
19205 int res1 = 0 ;
19206 PyObject *swig_obj[1] ;
19207
19208 if (!args) SWIG_fail;
19209 swig_obj[0] = args;
19210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19211 if (!SWIG_IsOK(res1)) {
19212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19213 }
19214 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 resultobj = SWIG_From_int(static_cast< int >(result));
19222 return resultobj;
19223fail:
19224 return NULL;
19225}
19226
19227
19228SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19229 PyObject *resultobj = 0;
19230 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19231 size_t arg2 ;
19232 wxString *arg3 = 0 ;
19233 bool result;
19234 void *argp1 = 0 ;
19235 int res1 = 0 ;
19236 size_t val2 ;
19237 int ecode2 = 0 ;
19238 bool temp3 = false ;
19239 PyObject * obj0 = 0 ;
19240 PyObject * obj1 = 0 ;
19241 PyObject * obj2 = 0 ;
19242 char * kwnames[] = {
19243 (char *) "self",(char *) "n",(char *) "strText", NULL
19244 };
19245
19246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19248 if (!SWIG_IsOK(res1)) {
19249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19250 }
19251 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19252 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19253 if (!SWIG_IsOK(ecode2)) {
19254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19255 }
19256 arg2 = static_cast< size_t >(val2);
19257 {
19258 arg3 = wxString_in_helper(obj2);
19259 if (arg3 == NULL) SWIG_fail;
19260 temp3 = true;
19261 }
19262 {
19263 PyThreadState* __tstate = wxPyBeginAllowThreads();
19264 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19265 wxPyEndAllowThreads(__tstate);
19266 if (PyErr_Occurred()) SWIG_fail;
19267 }
19268 {
19269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19270 }
19271 {
19272 if (temp3)
19273 delete arg3;
19274 }
19275 return resultobj;
19276fail:
19277 {
19278 if (temp3)
19279 delete arg3;
19280 }
19281 return NULL;
19282}
19283
19284
19285SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19286 PyObject *resultobj = 0;
19287 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19288 size_t arg2 ;
19289 wxString result;
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_GetPageText",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_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
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_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19309 }
19310 arg2 = static_cast< size_t >(val2);
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 {
19318#if wxUSE_UNICODE
19319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19320#else
19321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19322#endif
19323 }
19324 return resultobj;
19325fail:
19326 return NULL;
19327}
19328
19329
19330SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19331 PyObject *resultobj = 0;
19332 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19333 wxImageList *arg2 = (wxImageList *) 0 ;
19334 void *argp1 = 0 ;
19335 int res1 = 0 ;
19336 void *argp2 = 0 ;
19337 int res2 = 0 ;
19338 PyObject * obj0 = 0 ;
19339 PyObject * obj1 = 0 ;
19340 char * kwnames[] = {
19341 (char *) "self",(char *) "imageList", NULL
19342 };
19343
19344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19348 }
19349 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19351 if (!SWIG_IsOK(res2)) {
19352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19353 }
19354 arg2 = reinterpret_cast< wxImageList * >(argp2);
19355 {
19356 PyThreadState* __tstate = wxPyBeginAllowThreads();
19357 (arg1)->SetImageList(arg2);
19358 wxPyEndAllowThreads(__tstate);
19359 if (PyErr_Occurred()) SWIG_fail;
19360 }
19361 resultobj = SWIG_Py_Void();
19362 return resultobj;
19363fail:
19364 return NULL;
19365}
19366
19367
19368SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19369 PyObject *resultobj = 0;
19370 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19371 wxImageList *arg2 = (wxImageList *) 0 ;
19372 void *argp1 = 0 ;
19373 int res1 = 0 ;
19374 int res2 = 0 ;
19375 PyObject * obj0 = 0 ;
19376 PyObject * obj1 = 0 ;
19377 char * kwnames[] = {
19378 (char *) "self",(char *) "imageList", NULL
19379 };
19380
19381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19383 if (!SWIG_IsOK(res1)) {
19384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19385 }
19386 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19387 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19388 if (!SWIG_IsOK(res2)) {
19389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19390 }
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 (arg1)->AssignImageList(arg2);
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 resultobj = SWIG_Py_Void();
19398 return resultobj;
19399fail:
19400 return NULL;
d55e5bfc
RD
19401}
19402
19403
554f62e9
RD
19404SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19405 PyObject *resultobj = 0;
19406 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19407 wxImageList *result = 0 ;
19408 void *argp1 = 0 ;
19409 int res1 = 0 ;
19410 PyObject *swig_obj[1] ;
19411
19412 if (!args) SWIG_fail;
19413 swig_obj[0] = args;
19414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19415 if (!SWIG_IsOK(res1)) {
19416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19417 }
19418 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 {
19426 resultobj = wxPyMake_wxObject(result, (bool)0);
19427 }
19428 return resultobj;
19429fail:
19430 return NULL;
19431}
19432
19433
19434SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj = 0;
19436 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19437 size_t arg2 ;
19438 int result;
19439 void *argp1 = 0 ;
19440 int res1 = 0 ;
19441 size_t val2 ;
19442 int ecode2 = 0 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 char * kwnames[] = {
19446 (char *) "self",(char *) "n", NULL
19447 };
19448
19449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19451 if (!SWIG_IsOK(res1)) {
19452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19453 }
19454 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19455 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19456 if (!SWIG_IsOK(ecode2)) {
19457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19458 }
19459 arg2 = static_cast< size_t >(val2);
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19463 wxPyEndAllowThreads(__tstate);
19464 if (PyErr_Occurred()) SWIG_fail;
19465 }
19466 resultobj = SWIG_From_int(static_cast< int >(result));
19467 return resultobj;
19468fail:
19469 return NULL;
19470}
19471
19472
19473SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19474 PyObject *resultobj = 0;
19475 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19476 size_t arg2 ;
19477 int arg3 ;
19478 bool result;
19479 void *argp1 = 0 ;
19480 int res1 = 0 ;
19481 size_t val2 ;
19482 int ecode2 = 0 ;
19483 int val3 ;
19484 int ecode3 = 0 ;
19485 PyObject * obj0 = 0 ;
19486 PyObject * obj1 = 0 ;
19487 PyObject * obj2 = 0 ;
19488 char * kwnames[] = {
19489 (char *) "self",(char *) "n",(char *) "imageId", NULL
19490 };
19491
19492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19494 if (!SWIG_IsOK(res1)) {
19495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19496 }
19497 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19498 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19499 if (!SWIG_IsOK(ecode2)) {
19500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19501 }
19502 arg2 = static_cast< size_t >(val2);
19503 ecode3 = SWIG_AsVal_int(obj2, &val3);
19504 if (!SWIG_IsOK(ecode3)) {
19505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19506 }
19507 arg3 = static_cast< int >(val3);
19508 {
19509 PyThreadState* __tstate = wxPyBeginAllowThreads();
19510 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19511 wxPyEndAllowThreads(__tstate);
19512 if (PyErr_Occurred()) SWIG_fail;
19513 }
19514 {
19515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19516 }
19517 return resultobj;
19518fail:
19519 return NULL;
19520}
19521
19522
19523SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19524 PyObject *resultobj = 0;
19525 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19526 wxSize *arg2 = 0 ;
19527 void *argp1 = 0 ;
19528 int res1 = 0 ;
19529 wxSize temp2 ;
19530 PyObject * obj0 = 0 ;
19531 PyObject * obj1 = 0 ;
19532 char * kwnames[] = {
19533 (char *) "self",(char *) "size", NULL
19534 };
19535
19536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19540 }
19541 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19542 {
19543 arg2 = &temp2;
19544 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19545 }
19546 {
19547 PyThreadState* __tstate = wxPyBeginAllowThreads();
19548 (arg1)->SetPageSize((wxSize const &)*arg2);
19549 wxPyEndAllowThreads(__tstate);
19550 if (PyErr_Occurred()) SWIG_fail;
19551 }
19552 resultobj = SWIG_Py_Void();
19553 return resultobj;
19554fail:
19555 return NULL;
19556}
19557
19558
19559SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19560 PyObject *resultobj = 0;
19561 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19562 wxSize *arg2 = 0 ;
19563 wxSize result;
19564 void *argp1 = 0 ;
19565 int res1 = 0 ;
19566 wxSize temp2 ;
19567 PyObject * obj0 = 0 ;
19568 PyObject * obj1 = 0 ;
19569 char * kwnames[] = {
19570 (char *) "self",(char *) "sizePage", NULL
19571 };
19572
19573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19577 }
19578 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19579 {
19580 arg2 = &temp2;
19581 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19582 }
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19590 return resultobj;
19591fail:
19592 return NULL;
d55e5bfc
RD
19593}
19594
19595
554f62e9
RD
19596SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19597 PyObject *resultobj = 0;
19598 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19599 unsigned int result;
554f62e9
RD
19600 void *argp1 = 0 ;
19601 int res1 = 0 ;
19602 PyObject *swig_obj[1] ;
19603
19604 if (!args) SWIG_fail;
19605 swig_obj[0] = args;
19606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19607 if (!SWIG_IsOK(res1)) {
19608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19609 }
19610 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19611 {
19612 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19613 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
554f62e9
RD
19614 wxPyEndAllowThreads(__tstate);
19615 if (PyErr_Occurred()) SWIG_fail;
19616 }
e9d6f3a4 19617 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
19618 return resultobj;
19619fail:
19620 return NULL;
19621}
19622
19623
19624SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19625 PyObject *resultobj = 0;
19626 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19627 unsigned int arg2 ;
554f62e9
RD
19628 void *argp1 = 0 ;
19629 int res1 = 0 ;
e9d6f3a4 19630 unsigned int val2 ;
554f62e9
RD
19631 int ecode2 = 0 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 char * kwnames[] = {
19635 (char *) "self",(char *) "internalBorder", NULL
19636 };
19637
19638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19640 if (!SWIG_IsOK(res1)) {
19641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19642 }
19643 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19644 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 19645 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 19647 }
e9d6f3a4 19648 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 (arg1)->SetInternalBorder(arg2);
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 resultobj = SWIG_Py_Void();
19656 return resultobj;
19657fail:
19658 return NULL;
d55e5bfc
RD
19659}
19660
19661
554f62e9
RD
19662SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19663 PyObject *resultobj = 0;
19664 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19665 bool result;
19666 void *argp1 = 0 ;
19667 int res1 = 0 ;
19668 PyObject *swig_obj[1] ;
19669
19670 if (!args) SWIG_fail;
19671 swig_obj[0] = args;
19672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19673 if (!SWIG_IsOK(res1)) {
19674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19675 }
19676 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 {
19684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19685 }
19686 return resultobj;
19687fail:
19688 return NULL;
19689}
19690
19691
e9d6f3a4
RD
19692SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19693 PyObject *resultobj = 0;
19694 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19695 int arg2 ;
19696 void *argp1 = 0 ;
19697 int res1 = 0 ;
19698 int val2 ;
19699 int ecode2 = 0 ;
19700 PyObject * obj0 = 0 ;
19701 PyObject * obj1 = 0 ;
19702 char * kwnames[] = {
19703 (char *) "self",(char *) "margin", NULL
19704 };
19705
19706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19708 if (!SWIG_IsOK(res1)) {
19709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19710 }
19711 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19712 ecode2 = SWIG_AsVal_int(obj1, &val2);
19713 if (!SWIG_IsOK(ecode2)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19715 }
19716 arg2 = static_cast< int >(val2);
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 (arg1)->SetControlMargin(arg2);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_Py_Void();
19724 return resultobj;
19725fail:
19726 return NULL;
19727}
19728
19729
19730SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19731 PyObject *resultobj = 0;
19732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19733 int result;
19734 void *argp1 = 0 ;
19735 int res1 = 0 ;
19736 PyObject *swig_obj[1] ;
19737
19738 if (!args) SWIG_fail;
19739 swig_obj[0] = args;
19740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19741 if (!SWIG_IsOK(res1)) {
19742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19743 }
19744 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19745 {
19746 PyThreadState* __tstate = wxPyBeginAllowThreads();
19747 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 resultobj = SWIG_From_int(static_cast< int >(result));
19752 return resultobj;
19753fail:
19754 return NULL;
19755}
19756
19757
554f62e9
RD
19758SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj = 0;
19760 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19761 bool arg2 ;
19762 void *argp1 = 0 ;
19763 int res1 = 0 ;
19764 bool val2 ;
19765 int ecode2 = 0 ;
19766 PyObject * obj0 = 0 ;
19767 PyObject * obj1 = 0 ;
19768 char * kwnames[] = {
19769 (char *) "self",(char *) "fit", NULL
19770 };
19771
19772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19774 if (!SWIG_IsOK(res1)) {
19775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19776 }
19777 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19778 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19779 if (!SWIG_IsOK(ecode2)) {
19780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19781 }
19782 arg2 = static_cast< bool >(val2);
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->SetFitToCurrentPage(arg2);
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_Py_Void();
19790 return resultobj;
19791fail:
19792 return NULL;
d55e5bfc
RD
19793}
19794
19795
554f62e9
RD
19796SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19797 PyObject *resultobj = 0;
19798 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19799 bool result;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 PyObject *swig_obj[1] ;
19803
19804 if (!args) SWIG_fail;
19805 swig_obj[0] = args;
19806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19807 if (!SWIG_IsOK(res1)) {
19808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19809 }
19810 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 {
19818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19819 }
19820 return resultobj;
19821fail:
19822 return NULL;
19823}
19824
19825
e9d6f3a4
RD
19826SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19827 PyObject *resultobj = 0;
19828 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19829 wxSizer *result = 0 ;
19830 void *argp1 = 0 ;
19831 int res1 = 0 ;
19832 PyObject *swig_obj[1] ;
19833
19834 if (!args) SWIG_fail;
19835 swig_obj[0] = args;
19836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19837 if (!SWIG_IsOK(res1)) {
19838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19839 }
19840 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19841 {
19842 PyThreadState* __tstate = wxPyBeginAllowThreads();
19843 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 {
19848 resultobj = wxPyMake_wxObject(result, (bool)0);
19849 }
19850 return resultobj;
19851fail:
19852 return NULL;
19853}
19854
19855
554f62e9
RD
19856SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19857 PyObject *resultobj = 0;
19858 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19859 size_t arg2 ;
19860 bool result;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 size_t val2 ;
19864 int ecode2 = 0 ;
19865 PyObject * obj0 = 0 ;
19866 PyObject * obj1 = 0 ;
19867 char * kwnames[] = {
19868 (char *) "self",(char *) "n", NULL
19869 };
19870
19871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19873 if (!SWIG_IsOK(res1)) {
19874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19875 }
19876 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19877 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19878 if (!SWIG_IsOK(ecode2)) {
19879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19880 }
19881 arg2 = static_cast< size_t >(val2);
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 result = (bool)(arg1)->DeletePage(arg2);
19885 wxPyEndAllowThreads(__tstate);
19886 if (PyErr_Occurred()) SWIG_fail;
19887 }
19888 {
19889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19890 }
19891 return resultobj;
19892fail:
19893 return NULL;
19894}
19895
19896
19897SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19898 PyObject *resultobj = 0;
19899 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19900 size_t arg2 ;
19901 bool result;
19902 void *argp1 = 0 ;
19903 int res1 = 0 ;
19904 size_t val2 ;
19905 int ecode2 = 0 ;
19906 PyObject * obj0 = 0 ;
19907 PyObject * obj1 = 0 ;
19908 char * kwnames[] = {
19909 (char *) "self",(char *) "n", NULL
19910 };
19911
19912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19914 if (!SWIG_IsOK(res1)) {
19915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19916 }
19917 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19918 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19919 if (!SWIG_IsOK(ecode2)) {
19920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19921 }
19922 arg2 = static_cast< size_t >(val2);
19923 {
19924 PyThreadState* __tstate = wxPyBeginAllowThreads();
19925 result = (bool)(arg1)->RemovePage(arg2);
19926 wxPyEndAllowThreads(__tstate);
19927 if (PyErr_Occurred()) SWIG_fail;
19928 }
19929 {
19930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19931 }
19932 return resultobj;
19933fail:
19934 return NULL;
d55e5bfc
RD
19935}
19936
19937
554f62e9
RD
19938SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19939 PyObject *resultobj = 0;
19940 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19941 bool result;
19942 void *argp1 = 0 ;
19943 int res1 = 0 ;
19944 PyObject *swig_obj[1] ;
19945
19946 if (!args) SWIG_fail;
19947 swig_obj[0] = args;
19948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19949 if (!SWIG_IsOK(res1)) {
19950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19951 }
19952 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = (bool)(arg1)->DeleteAllPages();
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 {
19960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19961 }
19962 return resultobj;
19963fail:
19964 return NULL;
19965}
19966
19967
19968SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19969 PyObject *resultobj = 0;
19970 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19971 wxWindow *arg2 = (wxWindow *) 0 ;
19972 wxString *arg3 = 0 ;
19973 bool arg4 = (bool) false ;
19974 int arg5 = (int) -1 ;
19975 bool result;
19976 void *argp1 = 0 ;
19977 int res1 = 0 ;
19978 void *argp2 = 0 ;
19979 int res2 = 0 ;
19980 bool temp3 = false ;
19981 bool val4 ;
19982 int ecode4 = 0 ;
19983 int val5 ;
19984 int ecode5 = 0 ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 PyObject * obj2 = 0 ;
19988 PyObject * obj3 = 0 ;
19989 PyObject * obj4 = 0 ;
19990 char * kwnames[] = {
19991 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19992 };
19993
19994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19996 if (!SWIG_IsOK(res1)) {
19997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19998 }
19999 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20001 if (!SWIG_IsOK(res2)) {
20002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20003 }
20004 arg2 = reinterpret_cast< wxWindow * >(argp2);
20005 {
20006 arg3 = wxString_in_helper(obj2);
20007 if (arg3 == NULL) SWIG_fail;
20008 temp3 = true;
20009 }
20010 if (obj3) {
20011 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20012 if (!SWIG_IsOK(ecode4)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20014 }
20015 arg4 = static_cast< bool >(val4);
20016 }
20017 if (obj4) {
20018 ecode5 = SWIG_AsVal_int(obj4, &val5);
20019 if (!SWIG_IsOK(ecode5)) {
20020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20021 }
20022 arg5 = static_cast< int >(val5);
20023 }
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 {
20031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20032 }
20033 {
20034 if (temp3)
20035 delete arg3;
20036 }
20037 return resultobj;
20038fail:
20039 {
20040 if (temp3)
20041 delete arg3;
20042 }
20043 return NULL;
20044}
20045
20046
20047SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj = 0;
20049 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20050 size_t arg2 ;
20051 wxWindow *arg3 = (wxWindow *) 0 ;
20052 wxString *arg4 = 0 ;
20053 bool arg5 = (bool) false ;
20054 int arg6 = (int) -1 ;
20055 bool result;
20056 void *argp1 = 0 ;
20057 int res1 = 0 ;
20058 size_t val2 ;
20059 int ecode2 = 0 ;
20060 void *argp3 = 0 ;
20061 int res3 = 0 ;
20062 bool temp4 = false ;
20063 bool val5 ;
20064 int ecode5 = 0 ;
20065 int val6 ;
20066 int ecode6 = 0 ;
20067 PyObject * obj0 = 0 ;
20068 PyObject * obj1 = 0 ;
20069 PyObject * obj2 = 0 ;
20070 PyObject * obj3 = 0 ;
20071 PyObject * obj4 = 0 ;
20072 PyObject * obj5 = 0 ;
20073 char * kwnames[] = {
20074 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20075 };
20076
20077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20079 if (!SWIG_IsOK(res1)) {
20080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20081 }
20082 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20083 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20084 if (!SWIG_IsOK(ecode2)) {
20085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20086 }
20087 arg2 = static_cast< size_t >(val2);
20088 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20089 if (!SWIG_IsOK(res3)) {
20090 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20091 }
20092 arg3 = reinterpret_cast< wxWindow * >(argp3);
20093 {
20094 arg4 = wxString_in_helper(obj3);
20095 if (arg4 == NULL) SWIG_fail;
20096 temp4 = true;
20097 }
20098 if (obj4) {
20099 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20100 if (!SWIG_IsOK(ecode5)) {
20101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20102 }
20103 arg5 = static_cast< bool >(val5);
20104 }
20105 if (obj5) {
20106 ecode6 = SWIG_AsVal_int(obj5, &val6);
20107 if (!SWIG_IsOK(ecode6)) {
20108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20109 }
20110 arg6 = static_cast< int >(val6);
20111 }
20112 {
20113 PyThreadState* __tstate = wxPyBeginAllowThreads();
20114 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20115 wxPyEndAllowThreads(__tstate);
20116 if (PyErr_Occurred()) SWIG_fail;
20117 }
20118 {
20119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20120 }
20121 {
20122 if (temp4)
20123 delete arg4;
20124 }
20125 return resultobj;
20126fail:
20127 {
20128 if (temp4)
20129 delete arg4;
20130 }
20131 return NULL;
20132}
20133
20134
20135SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20136 PyObject *resultobj = 0;
20137 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20138 size_t arg2 ;
20139 int result;
20140 void *argp1 = 0 ;
20141 int res1 = 0 ;
20142 size_t val2 ;
20143 int ecode2 = 0 ;
20144 PyObject * obj0 = 0 ;
20145 PyObject * obj1 = 0 ;
20146 char * kwnames[] = {
20147 (char *) "self",(char *) "n", NULL
20148 };
20149
20150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) 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_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20154 }
20155 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20156 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20157 if (!SWIG_IsOK(ecode2)) {
20158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20159 }
20160 arg2 = static_cast< size_t >(val2);
20161 {
20162 PyThreadState* __tstate = wxPyBeginAllowThreads();
20163 result = (int)(arg1)->SetSelection(arg2);
20164 wxPyEndAllowThreads(__tstate);
20165 if (PyErr_Occurred()) SWIG_fail;
20166 }
20167 resultobj = SWIG_From_int(static_cast< int >(result));
20168 return resultobj;
20169fail:
20170 return NULL;
20171}
20172
20173
20174SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20175 PyObject *resultobj = 0;
20176 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20177 bool arg2 = (bool) true ;
20178 void *argp1 = 0 ;
20179 int res1 = 0 ;
20180 bool val2 ;
20181 int ecode2 = 0 ;
20182 PyObject * obj0 = 0 ;
20183 PyObject * obj1 = 0 ;
20184 char * kwnames[] = {
20185 (char *) "self",(char *) "forward", NULL
20186 };
20187
20188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20190 if (!SWIG_IsOK(res1)) {
20191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20192 }
20193 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20194 if (obj1) {
20195 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20196 if (!SWIG_IsOK(ecode2)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20198 }
20199 arg2 = static_cast< bool >(val2);
20200 }
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 (arg1)->AdvanceSelection(arg2);
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_Py_Void();
20208 return resultobj;
20209fail:
20210 return NULL;
20211}
20212
20213
704eda0c
RD
20214SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20217 wxPoint *arg2 = 0 ;
20218 long *arg3 = (long *) 0 ;
20219 int result;
20220 void *argp1 = 0 ;
20221 int res1 = 0 ;
20222 wxPoint temp2 ;
20223 long temp3 ;
20224 int res3 = SWIG_TMPOBJ ;
20225 PyObject * obj0 = 0 ;
20226 PyObject * obj1 = 0 ;
20227 char * kwnames[] = {
20228 (char *) "self",(char *) "pt", NULL
20229 };
20230
20231 arg3 = &temp3;
20232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20234 if (!SWIG_IsOK(res1)) {
20235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20236 }
20237 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20238 {
20239 arg2 = &temp2;
20240 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20241 }
20242 {
20243 PyThreadState* __tstate = wxPyBeginAllowThreads();
20244 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 resultobj = SWIG_From_int(static_cast< int >(result));
20249 if (SWIG_IsTmpObj(res3)) {
20250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20251 } else {
20252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20254 }
20255 return resultobj;
20256fail:
20257 return NULL;
20258}
20259
20260
554f62e9
RD
20261SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20262 PyObject *resultobj = 0;
20263 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20264 SwigValueWrapper<wxVisualAttributes > result;
20265 int val1 ;
20266 int ecode1 = 0 ;
20267 PyObject * obj0 = 0 ;
20268 char * kwnames[] = {
20269 (char *) "variant", NULL
20270 };
20271
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20273 if (obj0) {
20274 ecode1 = SWIG_AsVal_int(obj0, &val1);
20275 if (!SWIG_IsOK(ecode1)) {
20276 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20277 }
20278 arg1 = static_cast< wxWindowVariant >(val1);
20279 }
20280 {
20281 if (!wxPyCheckForApp()) SWIG_fail;
20282 PyThreadState* __tstate = wxPyBeginAllowThreads();
20283 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20288 return resultobj;
20289fail:
20290 return NULL;
20291}
20292
20293
20294SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20295 PyObject *obj;
20296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20297 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20298 return SWIG_Py_Void();
20299}
20300
20301SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj = 0;
20303 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20304 int arg2 = (int) 0 ;
20305 int arg3 = (int) -1 ;
20306 int arg4 = (int) -1 ;
20307 wxBookCtrlBaseEvent *result = 0 ;
20308 int val1 ;
20309 int ecode1 = 0 ;
20310 int val2 ;
20311 int ecode2 = 0 ;
20312 int val3 ;
20313 int ecode3 = 0 ;
20314 int val4 ;
20315 int ecode4 = 0 ;
20316 PyObject * obj0 = 0 ;
20317 PyObject * obj1 = 0 ;
20318 PyObject * obj2 = 0 ;
20319 PyObject * obj3 = 0 ;
20320 char * kwnames[] = {
20321 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20322 };
20323
20324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20325 if (obj0) {
20326 ecode1 = SWIG_AsVal_int(obj0, &val1);
20327 if (!SWIG_IsOK(ecode1)) {
20328 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20329 }
20330 arg1 = static_cast< wxEventType >(val1);
20331 }
20332 if (obj1) {
20333 ecode2 = SWIG_AsVal_int(obj1, &val2);
20334 if (!SWIG_IsOK(ecode2)) {
20335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20336 }
20337 arg2 = static_cast< int >(val2);
20338 }
20339 if (obj2) {
20340 ecode3 = SWIG_AsVal_int(obj2, &val3);
20341 if (!SWIG_IsOK(ecode3)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20343 }
20344 arg3 = static_cast< int >(val3);
20345 }
20346 if (obj3) {
20347 ecode4 = SWIG_AsVal_int(obj3, &val4);
20348 if (!SWIG_IsOK(ecode4)) {
20349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20350 }
20351 arg4 = static_cast< int >(val4);
20352 }
20353 {
20354 PyThreadState* __tstate = wxPyBeginAllowThreads();
20355 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20360 return resultobj;
20361fail:
20362 return NULL;
d55e5bfc
RD
20363}
20364
20365
554f62e9
RD
20366SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20367 PyObject *resultobj = 0;
20368 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20369 int result;
20370 void *argp1 = 0 ;
20371 int res1 = 0 ;
20372 PyObject *swig_obj[1] ;
20373
20374 if (!args) SWIG_fail;
20375 swig_obj[0] = args;
20376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20377 if (!SWIG_IsOK(res1)) {
20378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20379 }
20380 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20381 {
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_From_int(static_cast< int >(result));
20388 return resultobj;
20389fail:
20390 return NULL;
20391}
20392
20393
20394SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20395 PyObject *resultobj = 0;
20396 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20397 int arg2 ;
20398 void *argp1 = 0 ;
20399 int res1 = 0 ;
20400 int val2 ;
20401 int ecode2 = 0 ;
20402 PyObject * obj0 = 0 ;
20403 PyObject * obj1 = 0 ;
20404 char * kwnames[] = {
20405 (char *) "self",(char *) "nSel", NULL
20406 };
20407
20408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20410 if (!SWIG_IsOK(res1)) {
20411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20412 }
20413 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20414 ecode2 = SWIG_AsVal_int(obj1, &val2);
20415 if (!SWIG_IsOK(ecode2)) {
20416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20417 }
20418 arg2 = static_cast< int >(val2);
20419 {
20420 PyThreadState* __tstate = wxPyBeginAllowThreads();
20421 (arg1)->SetSelection(arg2);
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 resultobj = SWIG_Py_Void();
20426 return resultobj;
20427fail:
20428 return NULL;
d55e5bfc
RD
20429}
20430
20431
554f62e9
RD
20432SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20433 PyObject *resultobj = 0;
20434 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20435 int result;
20436 void *argp1 = 0 ;
20437 int res1 = 0 ;
20438 PyObject *swig_obj[1] ;
20439
20440 if (!args) SWIG_fail;
20441 swig_obj[0] = args;
20442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20443 if (!SWIG_IsOK(res1)) {
20444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20445 }
20446 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20447 {
20448 PyThreadState* __tstate = wxPyBeginAllowThreads();
20449 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
20453 resultobj = SWIG_From_int(static_cast< int >(result));
20454 return resultobj;
20455fail:
20456 return NULL;
20457}
20458
20459
20460SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20461 PyObject *resultobj = 0;
20462 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20463 int arg2 ;
20464 void *argp1 = 0 ;
20465 int res1 = 0 ;
20466 int val2 ;
20467 int ecode2 = 0 ;
20468 PyObject * obj0 = 0 ;
20469 PyObject * obj1 = 0 ;
20470 char * kwnames[] = {
20471 (char *) "self",(char *) "nOldSel", NULL
20472 };
20473
20474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20476 if (!SWIG_IsOK(res1)) {
20477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20478 }
20479 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20480 ecode2 = SWIG_AsVal_int(obj1, &val2);
20481 if (!SWIG_IsOK(ecode2)) {
20482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20483 }
20484 arg2 = static_cast< int >(val2);
20485 {
20486 PyThreadState* __tstate = wxPyBeginAllowThreads();
20487 (arg1)->SetOldSelection(arg2);
20488 wxPyEndAllowThreads(__tstate);
20489 if (PyErr_Occurred()) SWIG_fail;
20490 }
20491 resultobj = SWIG_Py_Void();
20492 return resultobj;
20493fail:
20494 return NULL;
20495}
20496
20497
20498SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20499 PyObject *obj;
20500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20501 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20502 return SWIG_Py_Void();
20503}
20504
20505SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20506 return SWIG_Python_InitShadowInstance(args);
20507}
20508
20509SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20510 PyObject *resultobj = 0;
20511 wxWindow *arg1 = (wxWindow *) 0 ;
20512 int arg2 = (int) -1 ;
20513 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20514 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20515 wxSize const &arg4_defvalue = wxDefaultSize ;
20516 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20517 long arg5 = (long) 0 ;
20518 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20519 wxString *arg6 = (wxString *) &arg6_defvalue ;
20520 wxNotebook *result = 0 ;
20521 void *argp1 = 0 ;
20522 int res1 = 0 ;
20523 int val2 ;
20524 int ecode2 = 0 ;
20525 wxPoint temp3 ;
20526 wxSize temp4 ;
20527 long val5 ;
20528 int ecode5 = 0 ;
20529 bool temp6 = false ;
20530 PyObject * obj0 = 0 ;
20531 PyObject * obj1 = 0 ;
20532 PyObject * obj2 = 0 ;
20533 PyObject * obj3 = 0 ;
20534 PyObject * obj4 = 0 ;
20535 PyObject * obj5 = 0 ;
20536 char * kwnames[] = {
20537 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20538 };
20539
20540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20544 }
20545 arg1 = reinterpret_cast< wxWindow * >(argp1);
20546 if (obj1) {
20547 ecode2 = SWIG_AsVal_int(obj1, &val2);
20548 if (!SWIG_IsOK(ecode2)) {
20549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20550 }
20551 arg2 = static_cast< int >(val2);
20552 }
20553 if (obj2) {
093d3ff1 20554 {
554f62e9
RD
20555 arg3 = &temp3;
20556 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20557 }
554f62e9
RD
20558 }
20559 if (obj3) {
d55e5bfc 20560 {
554f62e9
RD
20561 arg4 = &temp4;
20562 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20563 }
554f62e9
RD
20564 }
20565 if (obj4) {
20566 ecode5 = SWIG_AsVal_long(obj4, &val5);
20567 if (!SWIG_IsOK(ecode5)) {
20568 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20569 }
20570 arg5 = static_cast< long >(val5);
20571 }
20572 if (obj5) {
20573 {
20574 arg6 = wxString_in_helper(obj5);
20575 if (arg6 == NULL) SWIG_fail;
20576 temp6 = true;
20577 }
20578 }
20579 {
20580 if (!wxPyCheckForApp()) SWIG_fail;
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20587 {
20588 if (temp6)
20589 delete arg6;
20590 }
20591 return resultobj;
20592fail:
20593 {
20594 if (temp6)
20595 delete arg6;
20596 }
20597 return NULL;
d55e5bfc
RD
20598}
20599
20600
554f62e9
RD
20601SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20602 PyObject *resultobj = 0;
20603 wxNotebook *result = 0 ;
20604
20605 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20606 {
20607 if (!wxPyCheckForApp()) SWIG_fail;
20608 PyThreadState* __tstate = wxPyBeginAllowThreads();
20609 result = (wxNotebook *)new wxNotebook();
20610 wxPyEndAllowThreads(__tstate);
20611 if (PyErr_Occurred()) SWIG_fail;
20612 }
20613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20614 return resultobj;
20615fail:
20616 return NULL;
20617}
20618
20619
20620SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20621 PyObject *resultobj = 0;
20622 wxNotebook *arg1 = (wxNotebook *) 0 ;
20623 wxWindow *arg2 = (wxWindow *) 0 ;
20624 int arg3 = (int) -1 ;
20625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20627 wxSize const &arg5_defvalue = wxDefaultSize ;
20628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20629 long arg6 = (long) 0 ;
20630 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20631 wxString *arg7 = (wxString *) &arg7_defvalue ;
20632 bool result;
20633 void *argp1 = 0 ;
20634 int res1 = 0 ;
20635 void *argp2 = 0 ;
20636 int res2 = 0 ;
20637 int val3 ;
20638 int ecode3 = 0 ;
20639 wxPoint temp4 ;
20640 wxSize temp5 ;
20641 long val6 ;
20642 int ecode6 = 0 ;
20643 bool temp7 = false ;
20644 PyObject * obj0 = 0 ;
20645 PyObject * obj1 = 0 ;
20646 PyObject * obj2 = 0 ;
20647 PyObject * obj3 = 0 ;
20648 PyObject * obj4 = 0 ;
20649 PyObject * obj5 = 0 ;
20650 PyObject * obj6 = 0 ;
20651 char * kwnames[] = {
20652 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20653 };
20654
20655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20657 if (!SWIG_IsOK(res1)) {
20658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20659 }
20660 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20662 if (!SWIG_IsOK(res2)) {
20663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20664 }
20665 arg2 = reinterpret_cast< wxWindow * >(argp2);
20666 if (obj2) {
20667 ecode3 = SWIG_AsVal_int(obj2, &val3);
20668 if (!SWIG_IsOK(ecode3)) {
20669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20670 }
20671 arg3 = static_cast< int >(val3);
20672 }
20673 if (obj3) {
093d3ff1 20674 {
554f62e9
RD
20675 arg4 = &temp4;
20676 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20677 }
554f62e9
RD
20678 }
20679 if (obj4) {
093d3ff1 20680 {
554f62e9
RD
20681 arg5 = &temp5;
20682 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 20683 }
554f62e9
RD
20684 }
20685 if (obj5) {
20686 ecode6 = SWIG_AsVal_long(obj5, &val6);
20687 if (!SWIG_IsOK(ecode6)) {
20688 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20689 }
20690 arg6 = static_cast< long >(val6);
20691 }
20692 if (obj6) {
d55e5bfc 20693 {
554f62e9
RD
20694 arg7 = wxString_in_helper(obj6);
20695 if (arg7 == NULL) SWIG_fail;
20696 temp7 = true;
d55e5bfc 20697 }
554f62e9
RD
20698 }
20699 {
20700 PyThreadState* __tstate = wxPyBeginAllowThreads();
20701 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20702 wxPyEndAllowThreads(__tstate);
20703 if (PyErr_Occurred()) SWIG_fail;
20704 }
20705 {
20706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20707 }
20708 {
20709 if (temp7)
20710 delete arg7;
20711 }
20712 return resultobj;
20713fail:
20714 {
20715 if (temp7)
20716 delete arg7;
20717 }
20718 return NULL;
f20a2e1f
RD
20719}
20720
20721
554f62e9
RD
20722SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20723 PyObject *resultobj = 0;
20724 wxNotebook *arg1 = (wxNotebook *) 0 ;
20725 int result;
20726 void *argp1 = 0 ;
20727 int res1 = 0 ;
20728 PyObject *swig_obj[1] ;
20729
20730 if (!args) SWIG_fail;
20731 swig_obj[0] = args;
20732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20733 if (!SWIG_IsOK(res1)) {
20734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20735 }
20736 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20737 {
20738 PyThreadState* __tstate = wxPyBeginAllowThreads();
20739 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20740 wxPyEndAllowThreads(__tstate);
20741 if (PyErr_Occurred()) SWIG_fail;
20742 }
20743 resultobj = SWIG_From_int(static_cast< int >(result));
20744 return resultobj;
20745fail:
20746 return NULL;
20747}
20748
20749
20750SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20751 PyObject *resultobj = 0;
20752 wxNotebook *arg1 = (wxNotebook *) 0 ;
20753 wxSize *arg2 = 0 ;
20754 void *argp1 = 0 ;
20755 int res1 = 0 ;
20756 wxSize temp2 ;
20757 PyObject * obj0 = 0 ;
20758 PyObject * obj1 = 0 ;
20759 char * kwnames[] = {
20760 (char *) "self",(char *) "padding", NULL
20761 };
20762
20763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20765 if (!SWIG_IsOK(res1)) {
20766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20767 }
20768 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20769 {
20770 arg2 = &temp2;
20771 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20772 }
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 (arg1)->SetPadding((wxSize const &)*arg2);
20776 wxPyEndAllowThreads(__tstate);
20777 if (PyErr_Occurred()) SWIG_fail;
20778 }
20779 resultobj = SWIG_Py_Void();
20780 return resultobj;
20781fail:
20782 return NULL;
20783}
20784
20785
20786SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20787 PyObject *resultobj = 0;
20788 wxNotebook *arg1 = (wxNotebook *) 0 ;
20789 wxSize *arg2 = 0 ;
20790 void *argp1 = 0 ;
20791 int res1 = 0 ;
20792 wxSize temp2 ;
20793 PyObject * obj0 = 0 ;
20794 PyObject * obj1 = 0 ;
20795 char * kwnames[] = {
20796 (char *) "self",(char *) "sz", NULL
20797 };
20798
20799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20801 if (!SWIG_IsOK(res1)) {
20802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20803 }
20804 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20805 {
20806 arg2 = &temp2;
20807 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20808 }
20809 {
20810 PyThreadState* __tstate = wxPyBeginAllowThreads();
20811 (arg1)->SetTabSize((wxSize const &)*arg2);
20812 wxPyEndAllowThreads(__tstate);
20813 if (PyErr_Occurred()) SWIG_fail;
20814 }
20815 resultobj = SWIG_Py_Void();
20816 return resultobj;
20817fail:
20818 return NULL;
20819}
20820
20821
554f62e9
RD
20822SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20823 PyObject *resultobj = 0;
20824 wxNotebook *arg1 = (wxNotebook *) 0 ;
20825 wxColour result;
20826 void *argp1 = 0 ;
20827 int res1 = 0 ;
20828 PyObject *swig_obj[1] ;
20829
20830 if (!args) SWIG_fail;
20831 swig_obj[0] = args;
20832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20833 if (!SWIG_IsOK(res1)) {
20834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20835 }
20836 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20840 wxPyEndAllowThreads(__tstate);
20841 if (PyErr_Occurred()) SWIG_fail;
20842 }
20843 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20844 return resultobj;
20845fail:
20846 return NULL;
20847}
20848
20849
20850SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20853 SwigValueWrapper<wxVisualAttributes > result;
20854 int val1 ;
20855 int ecode1 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 char * kwnames[] = {
20858 (char *) "variant", NULL
20859 };
20860
20861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20862 if (obj0) {
20863 ecode1 = SWIG_AsVal_int(obj0, &val1);
20864 if (!SWIG_IsOK(ecode1)) {
20865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20866 }
20867 arg1 = static_cast< wxWindowVariant >(val1);
20868 }
20869 {
20870 if (!wxPyCheckForApp()) SWIG_fail;
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 result = wxNotebook::GetClassDefaultAttributes(arg1);
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20877 return resultobj;
20878fail:
20879 return NULL;
20880}
20881
20882
20883SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *obj;
20885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20886 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20887 return SWIG_Py_Void();
20888}
20889
20890SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 return SWIG_Python_InitShadowInstance(args);
20892}
20893
20894SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20897 int arg2 = (int) 0 ;
20898 int arg3 = (int) -1 ;
20899 int arg4 = (int) -1 ;
20900 wxNotebookEvent *result = 0 ;
20901 int val1 ;
20902 int ecode1 = 0 ;
20903 int val2 ;
20904 int ecode2 = 0 ;
20905 int val3 ;
20906 int ecode3 = 0 ;
20907 int val4 ;
20908 int ecode4 = 0 ;
20909 PyObject * obj0 = 0 ;
20910 PyObject * obj1 = 0 ;
20911 PyObject * obj2 = 0 ;
20912 PyObject * obj3 = 0 ;
20913 char * kwnames[] = {
20914 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20915 };
20916
20917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20918 if (obj0) {
20919 ecode1 = SWIG_AsVal_int(obj0, &val1);
20920 if (!SWIG_IsOK(ecode1)) {
20921 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20922 }
20923 arg1 = static_cast< wxEventType >(val1);
20924 }
20925 if (obj1) {
20926 ecode2 = SWIG_AsVal_int(obj1, &val2);
20927 if (!SWIG_IsOK(ecode2)) {
20928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20929 }
20930 arg2 = static_cast< int >(val2);
20931 }
20932 if (obj2) {
20933 ecode3 = SWIG_AsVal_int(obj2, &val3);
20934 if (!SWIG_IsOK(ecode3)) {
20935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20936 }
20937 arg3 = static_cast< int >(val3);
20938 }
20939 if (obj3) {
20940 ecode4 = SWIG_AsVal_int(obj3, &val4);
20941 if (!SWIG_IsOK(ecode4)) {
20942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20943 }
20944 arg4 = static_cast< int >(val4);
20945 }
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20953 return resultobj;
20954fail:
20955 return NULL;
20956}
20957
20958
20959SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20960 PyObject *obj;
20961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20962 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20963 return SWIG_Py_Void();
20964}
20965
20966SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20967 return SWIG_Python_InitShadowInstance(args);
20968}
20969
20970SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20971 PyObject *resultobj = 0;
20972 wxWindow *arg1 = (wxWindow *) 0 ;
20973 int arg2 = (int) -1 ;
20974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20976 wxSize const &arg4_defvalue = wxDefaultSize ;
20977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20978 long arg5 = (long) 0 ;
20979 wxString const &arg6_defvalue = wxPyEmptyString ;
20980 wxString *arg6 = (wxString *) &arg6_defvalue ;
20981 wxListbook *result = 0 ;
20982 void *argp1 = 0 ;
20983 int res1 = 0 ;
20984 int val2 ;
20985 int ecode2 = 0 ;
20986 wxPoint temp3 ;
20987 wxSize temp4 ;
20988 long val5 ;
20989 int ecode5 = 0 ;
20990 bool temp6 = false ;
20991 PyObject * obj0 = 0 ;
20992 PyObject * obj1 = 0 ;
20993 PyObject * obj2 = 0 ;
20994 PyObject * obj3 = 0 ;
20995 PyObject * obj4 = 0 ;
20996 PyObject * obj5 = 0 ;
20997 char * kwnames[] = {
20998 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20999 };
21000
21001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21003 if (!SWIG_IsOK(res1)) {
21004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21005 }
21006 arg1 = reinterpret_cast< wxWindow * >(argp1);
21007 if (obj1) {
21008 ecode2 = SWIG_AsVal_int(obj1, &val2);
21009 if (!SWIG_IsOK(ecode2)) {
21010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21011 }
21012 arg2 = static_cast< int >(val2);
21013 }
21014 if (obj2) {
21015 {
21016 arg3 = &temp3;
21017 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 21018 }
554f62e9
RD
21019 }
21020 if (obj3) {
d55e5bfc 21021 {
554f62e9
RD
21022 arg4 = &temp4;
21023 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21024 }
554f62e9
RD
21025 }
21026 if (obj4) {
21027 ecode5 = SWIG_AsVal_long(obj4, &val5);
21028 if (!SWIG_IsOK(ecode5)) {
21029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21030 }
21031 arg5 = static_cast< long >(val5);
21032 }
21033 if (obj5) {
d55e5bfc 21034 {
554f62e9
RD
21035 arg6 = wxString_in_helper(obj5);
21036 if (arg6 == NULL) SWIG_fail;
21037 temp6 = true;
d55e5bfc 21038 }
554f62e9
RD
21039 }
21040 {
21041 if (!wxPyCheckForApp()) SWIG_fail;
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21048 {
21049 if (temp6)
21050 delete arg6;
21051 }
21052 return resultobj;
21053fail:
21054 {
21055 if (temp6)
21056 delete arg6;
21057 }
21058 return NULL;
d55e5bfc
RD
21059}
21060
21061
554f62e9
RD
21062SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21063 PyObject *resultobj = 0;
21064 wxListbook *result = 0 ;
21065
21066 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21067 {
21068 if (!wxPyCheckForApp()) SWIG_fail;
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = (wxListbook *)new wxListbook();
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21075 return resultobj;
21076fail:
21077 return NULL;
21078}
21079
21080
21081SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxListbook *arg1 = (wxListbook *) 0 ;
21084 wxWindow *arg2 = (wxWindow *) 0 ;
21085 int arg3 = (int) -1 ;
21086 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21087 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21088 wxSize const &arg5_defvalue = wxDefaultSize ;
21089 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21090 long arg6 = (long) 0 ;
21091 wxString const &arg7_defvalue = wxPyEmptyString ;
21092 wxString *arg7 = (wxString *) &arg7_defvalue ;
21093 bool result;
21094 void *argp1 = 0 ;
21095 int res1 = 0 ;
21096 void *argp2 = 0 ;
21097 int res2 = 0 ;
21098 int val3 ;
21099 int ecode3 = 0 ;
21100 wxPoint temp4 ;
21101 wxSize temp5 ;
21102 long val6 ;
21103 int ecode6 = 0 ;
21104 bool temp7 = false ;
21105 PyObject * obj0 = 0 ;
21106 PyObject * obj1 = 0 ;
21107 PyObject * obj2 = 0 ;
21108 PyObject * obj3 = 0 ;
21109 PyObject * obj4 = 0 ;
21110 PyObject * obj5 = 0 ;
21111 PyObject * obj6 = 0 ;
21112 char * kwnames[] = {
21113 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21114 };
21115
21116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21118 if (!SWIG_IsOK(res1)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21120 }
21121 arg1 = reinterpret_cast< wxListbook * >(argp1);
21122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21123 if (!SWIG_IsOK(res2)) {
21124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21125 }
21126 arg2 = reinterpret_cast< wxWindow * >(argp2);
21127 if (obj2) {
21128 ecode3 = SWIG_AsVal_int(obj2, &val3);
21129 if (!SWIG_IsOK(ecode3)) {
21130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21131 }
21132 arg3 = static_cast< int >(val3);
21133 }
21134 if (obj3) {
d55e5bfc 21135 {
554f62e9
RD
21136 arg4 = &temp4;
21137 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21138 }
554f62e9
RD
21139 }
21140 if (obj4) {
d55e5bfc 21141 {
554f62e9
RD
21142 arg5 = &temp5;
21143 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21144 }
554f62e9
RD
21145 }
21146 if (obj5) {
21147 ecode6 = SWIG_AsVal_long(obj5, &val6);
21148 if (!SWIG_IsOK(ecode6)) {
21149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21150 }
21151 arg6 = static_cast< long >(val6);
21152 }
21153 if (obj6) {
d55e5bfc 21154 {
554f62e9
RD
21155 arg7 = wxString_in_helper(obj6);
21156 if (arg7 == NULL) SWIG_fail;
21157 temp7 = true;
d55e5bfc 21158 }
554f62e9
RD
21159 }
21160 {
21161 PyThreadState* __tstate = wxPyBeginAllowThreads();
21162 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21163 wxPyEndAllowThreads(__tstate);
21164 if (PyErr_Occurred()) SWIG_fail;
21165 }
21166 {
21167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21168 }
21169 {
21170 if (temp7)
21171 delete arg7;
21172 }
21173 return resultobj;
21174fail:
21175 {
21176 if (temp7)
21177 delete arg7;
21178 }
21179 return NULL;
d55e5bfc
RD
21180}
21181
21182
554f62e9
RD
21183SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxListbook *arg1 = (wxListbook *) 0 ;
21186 wxListView *result = 0 ;
21187 void *argp1 = 0 ;
21188 int res1 = 0 ;
21189 PyObject *swig_obj[1] ;
21190
21191 if (!args) SWIG_fail;
21192 swig_obj[0] = args;
21193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21194 if (!SWIG_IsOK(res1)) {
21195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21196 }
21197 arg1 = reinterpret_cast< wxListbook * >(argp1);
21198 {
21199 PyThreadState* __tstate = wxPyBeginAllowThreads();
21200 result = (wxListView *)(arg1)->GetListView();
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21205 return resultobj;
21206fail:
21207 return NULL;
21208}
21209
21210
21211SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21212 PyObject *obj;
21213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21214 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21215 return SWIG_Py_Void();
21216}
21217
21218SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21219 return SWIG_Python_InitShadowInstance(args);
21220}
21221
21222SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21223 PyObject *resultobj = 0;
21224 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21225 int arg2 = (int) 0 ;
21226 int arg3 = (int) -1 ;
21227 int arg4 = (int) -1 ;
21228 wxListbookEvent *result = 0 ;
21229 int val1 ;
21230 int ecode1 = 0 ;
21231 int val2 ;
21232 int ecode2 = 0 ;
21233 int val3 ;
21234 int ecode3 = 0 ;
21235 int val4 ;
21236 int ecode4 = 0 ;
21237 PyObject * obj0 = 0 ;
21238 PyObject * obj1 = 0 ;
21239 PyObject * obj2 = 0 ;
21240 PyObject * obj3 = 0 ;
21241 char * kwnames[] = {
21242 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21243 };
21244
21245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21246 if (obj0) {
21247 ecode1 = SWIG_AsVal_int(obj0, &val1);
21248 if (!SWIG_IsOK(ecode1)) {
21249 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21250 }
21251 arg1 = static_cast< wxEventType >(val1);
21252 }
21253 if (obj1) {
21254 ecode2 = SWIG_AsVal_int(obj1, &val2);
21255 if (!SWIG_IsOK(ecode2)) {
21256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21257 }
21258 arg2 = static_cast< int >(val2);
21259 }
21260 if (obj2) {
21261 ecode3 = SWIG_AsVal_int(obj2, &val3);
21262 if (!SWIG_IsOK(ecode3)) {
21263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21264 }
21265 arg3 = static_cast< int >(val3);
21266 }
21267 if (obj3) {
21268 ecode4 = SWIG_AsVal_int(obj3, &val4);
21269 if (!SWIG_IsOK(ecode4)) {
21270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21271 }
21272 arg4 = static_cast< int >(val4);
21273 }
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21281 return resultobj;
21282fail:
21283 return NULL;
21284}
21285
21286
21287SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21288 PyObject *obj;
21289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21290 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21291 return SWIG_Py_Void();
21292}
21293
21294SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21295 return SWIG_Python_InitShadowInstance(args);
21296}
21297
21298SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21299 PyObject *resultobj = 0;
21300 wxWindow *arg1 = (wxWindow *) 0 ;
21301 int arg2 ;
21302 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21303 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21304 wxSize const &arg4_defvalue = wxDefaultSize ;
21305 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21306 long arg5 = (long) 0 ;
21307 wxString const &arg6_defvalue = wxPyEmptyString ;
21308 wxString *arg6 = (wxString *) &arg6_defvalue ;
21309 wxChoicebook *result = 0 ;
21310 void *argp1 = 0 ;
21311 int res1 = 0 ;
21312 int val2 ;
21313 int ecode2 = 0 ;
21314 wxPoint temp3 ;
21315 wxSize temp4 ;
21316 long val5 ;
21317 int ecode5 = 0 ;
21318 bool temp6 = false ;
21319 PyObject * obj0 = 0 ;
21320 PyObject * obj1 = 0 ;
21321 PyObject * obj2 = 0 ;
21322 PyObject * obj3 = 0 ;
21323 PyObject * obj4 = 0 ;
21324 PyObject * obj5 = 0 ;
21325 char * kwnames[] = {
21326 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21327 };
21328
21329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21331 if (!SWIG_IsOK(res1)) {
21332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21333 }
21334 arg1 = reinterpret_cast< wxWindow * >(argp1);
21335 ecode2 = SWIG_AsVal_int(obj1, &val2);
21336 if (!SWIG_IsOK(ecode2)) {
21337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21338 }
21339 arg2 = static_cast< int >(val2);
21340 if (obj2) {
d55e5bfc 21341 {
554f62e9
RD
21342 arg3 = &temp3;
21343 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21344 }
554f62e9
RD
21345 }
21346 if (obj3) {
d55e5bfc 21347 {
554f62e9
RD
21348 arg4 = &temp4;
21349 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21350 }
554f62e9
RD
21351 }
21352 if (obj4) {
21353 ecode5 = SWIG_AsVal_long(obj4, &val5);
21354 if (!SWIG_IsOK(ecode5)) {
21355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21356 }
21357 arg5 = static_cast< long >(val5);
21358 }
21359 if (obj5) {
d55e5bfc 21360 {
554f62e9
RD
21361 arg6 = wxString_in_helper(obj5);
21362 if (arg6 == NULL) SWIG_fail;
21363 temp6 = true;
d55e5bfc 21364 }
554f62e9
RD
21365 }
21366 {
21367 if (!wxPyCheckForApp()) SWIG_fail;
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21374 {
21375 if (temp6)
21376 delete arg6;
21377 }
21378 return resultobj;
21379fail:
21380 {
21381 if (temp6)
21382 delete arg6;
21383 }
21384 return NULL;
d55e5bfc
RD
21385}
21386
21387
554f62e9
RD
21388SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21389 PyObject *resultobj = 0;
21390 wxChoicebook *result = 0 ;
21391
21392 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21393 {
21394 if (!wxPyCheckForApp()) SWIG_fail;
21395 PyThreadState* __tstate = wxPyBeginAllowThreads();
21396 result = (wxChoicebook *)new wxChoicebook();
21397 wxPyEndAllowThreads(__tstate);
21398 if (PyErr_Occurred()) SWIG_fail;
21399 }
21400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21401 return resultobj;
21402fail:
21403 return NULL;
21404}
21405
21406
21407SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21408 PyObject *resultobj = 0;
21409 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21410 wxWindow *arg2 = (wxWindow *) 0 ;
21411 int arg3 ;
21412 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21413 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21414 wxSize const &arg5_defvalue = wxDefaultSize ;
21415 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21416 long arg6 = (long) 0 ;
21417 wxString const &arg7_defvalue = wxPyEmptyString ;
21418 wxString *arg7 = (wxString *) &arg7_defvalue ;
21419 bool result;
21420 void *argp1 = 0 ;
21421 int res1 = 0 ;
21422 void *argp2 = 0 ;
21423 int res2 = 0 ;
21424 int val3 ;
21425 int ecode3 = 0 ;
21426 wxPoint temp4 ;
21427 wxSize temp5 ;
21428 long val6 ;
21429 int ecode6 = 0 ;
21430 bool temp7 = false ;
21431 PyObject * obj0 = 0 ;
21432 PyObject * obj1 = 0 ;
21433 PyObject * obj2 = 0 ;
21434 PyObject * obj3 = 0 ;
21435 PyObject * obj4 = 0 ;
21436 PyObject * obj5 = 0 ;
21437 PyObject * obj6 = 0 ;
21438 char * kwnames[] = {
21439 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21440 };
21441
21442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21444 if (!SWIG_IsOK(res1)) {
21445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21446 }
21447 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21449 if (!SWIG_IsOK(res2)) {
21450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21451 }
21452 arg2 = reinterpret_cast< wxWindow * >(argp2);
21453 ecode3 = SWIG_AsVal_int(obj2, &val3);
21454 if (!SWIG_IsOK(ecode3)) {
21455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21456 }
21457 arg3 = static_cast< int >(val3);
21458 if (obj3) {
093d3ff1 21459 {
554f62e9
RD
21460 arg4 = &temp4;
21461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21462 }
554f62e9
RD
21463 }
21464 if (obj4) {
093d3ff1 21465 {
554f62e9
RD
21466 arg5 = &temp5;
21467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21468 }
554f62e9
RD
21469 }
21470 if (obj5) {
21471 ecode6 = SWIG_AsVal_long(obj5, &val6);
21472 if (!SWIG_IsOK(ecode6)) {
21473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21474 }
21475 arg6 = static_cast< long >(val6);
21476 }
21477 if (obj6) {
d55e5bfc 21478 {
554f62e9
RD
21479 arg7 = wxString_in_helper(obj6);
21480 if (arg7 == NULL) SWIG_fail;
21481 temp7 = true;
d55e5bfc 21482 }
554f62e9
RD
21483 }
21484 {
21485 PyThreadState* __tstate = wxPyBeginAllowThreads();
21486 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21487 wxPyEndAllowThreads(__tstate);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 {
21491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21492 }
21493 {
21494 if (temp7)
21495 delete arg7;
21496 }
21497 return resultobj;
21498fail:
21499 {
21500 if (temp7)
21501 delete arg7;
21502 }
21503 return NULL;
d55e5bfc
RD
21504}
21505
21506
554f62e9
RD
21507SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21508 PyObject *resultobj = 0;
21509 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21510 wxChoice *result = 0 ;
21511 void *argp1 = 0 ;
21512 int res1 = 0 ;
21513 PyObject *swig_obj[1] ;
21514
21515 if (!args) SWIG_fail;
21516 swig_obj[0] = args;
21517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21518 if (!SWIG_IsOK(res1)) {
21519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21520 }
21521 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21522 {
21523 PyThreadState* __tstate = wxPyBeginAllowThreads();
21524 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21525 wxPyEndAllowThreads(__tstate);
21526 if (PyErr_Occurred()) SWIG_fail;
21527 }
21528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21529 return resultobj;
21530fail:
21531 return NULL;
21532}
21533
21534
21535SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21536 PyObject *obj;
21537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21538 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21539 return SWIG_Py_Void();
21540}
21541
21542SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21543 return SWIG_Python_InitShadowInstance(args);
21544}
21545
21546SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21547 PyObject *resultobj = 0;
21548 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21549 int arg2 = (int) 0 ;
21550 int arg3 = (int) -1 ;
21551 int arg4 = (int) -1 ;
21552 wxChoicebookEvent *result = 0 ;
21553 int val1 ;
21554 int ecode1 = 0 ;
21555 int val2 ;
21556 int ecode2 = 0 ;
21557 int val3 ;
21558 int ecode3 = 0 ;
21559 int val4 ;
21560 int ecode4 = 0 ;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 PyObject * obj2 = 0 ;
21564 PyObject * obj3 = 0 ;
21565 char * kwnames[] = {
21566 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21567 };
21568
21569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21570 if (obj0) {
21571 ecode1 = SWIG_AsVal_int(obj0, &val1);
21572 if (!SWIG_IsOK(ecode1)) {
21573 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21574 }
21575 arg1 = static_cast< wxEventType >(val1);
21576 }
21577 if (obj1) {
21578 ecode2 = SWIG_AsVal_int(obj1, &val2);
21579 if (!SWIG_IsOK(ecode2)) {
21580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21581 }
21582 arg2 = static_cast< int >(val2);
21583 }
21584 if (obj2) {
21585 ecode3 = SWIG_AsVal_int(obj2, &val3);
21586 if (!SWIG_IsOK(ecode3)) {
21587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21588 }
21589 arg3 = static_cast< int >(val3);
21590 }
21591 if (obj3) {
21592 ecode4 = SWIG_AsVal_int(obj3, &val4);
21593 if (!SWIG_IsOK(ecode4)) {
21594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21595 }
21596 arg4 = static_cast< int >(val4);
21597 }
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21601 wxPyEndAllowThreads(__tstate);
21602 if (PyErr_Occurred()) SWIG_fail;
21603 }
21604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21605 return resultobj;
21606fail:
21607 return NULL;
21608}
21609
21610
21611SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21612 PyObject *obj;
21613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21614 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21615 return SWIG_Py_Void();
21616}
21617
21618SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21619 return SWIG_Python_InitShadowInstance(args);
21620}
21621
21622SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21623 PyObject *resultobj = 0;
21624 wxWindow *arg1 = (wxWindow *) 0 ;
21625 int arg2 ;
21626 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21627 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21628 wxSize const &arg4_defvalue = wxDefaultSize ;
21629 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21630 long arg5 = (long) wxBK_DEFAULT ;
21631 wxString const &arg6_defvalue = wxPyEmptyString ;
21632 wxString *arg6 = (wxString *) &arg6_defvalue ;
21633 wxTreebook *result = 0 ;
21634 void *argp1 = 0 ;
21635 int res1 = 0 ;
21636 int val2 ;
21637 int ecode2 = 0 ;
21638 wxPoint temp3 ;
21639 wxSize temp4 ;
21640 long val5 ;
21641 int ecode5 = 0 ;
21642 bool temp6 = false ;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 PyObject * obj2 = 0 ;
21646 PyObject * obj3 = 0 ;
21647 PyObject * obj4 = 0 ;
21648 PyObject * obj5 = 0 ;
21649 char * kwnames[] = {
21650 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21651 };
21652
21653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21655 if (!SWIG_IsOK(res1)) {
21656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21657 }
21658 arg1 = reinterpret_cast< wxWindow * >(argp1);
21659 ecode2 = SWIG_AsVal_int(obj1, &val2);
21660 if (!SWIG_IsOK(ecode2)) {
21661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21662 }
21663 arg2 = static_cast< int >(val2);
21664 if (obj2) {
d55e5bfc 21665 {
554f62e9
RD
21666 arg3 = &temp3;
21667 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21668 }
554f62e9
RD
21669 }
21670 if (obj3) {
d55e5bfc 21671 {
554f62e9
RD
21672 arg4 = &temp4;
21673 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21674 }
554f62e9
RD
21675 }
21676 if (obj4) {
21677 ecode5 = SWIG_AsVal_long(obj4, &val5);
21678 if (!SWIG_IsOK(ecode5)) {
21679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21680 }
21681 arg5 = static_cast< long >(val5);
21682 }
21683 if (obj5) {
d55e5bfc 21684 {
554f62e9
RD
21685 arg6 = wxString_in_helper(obj5);
21686 if (arg6 == NULL) SWIG_fail;
21687 temp6 = true;
d55e5bfc 21688 }
554f62e9
RD
21689 }
21690 {
21691 if (!wxPyCheckForApp()) SWIG_fail;
21692 PyThreadState* __tstate = wxPyBeginAllowThreads();
21693 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21694 wxPyEndAllowThreads(__tstate);
21695 if (PyErr_Occurred()) SWIG_fail;
21696 }
21697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21698 {
21699 if (temp6)
21700 delete arg6;
21701 }
21702 return resultobj;
21703fail:
21704 {
21705 if (temp6)
21706 delete arg6;
21707 }
21708 return NULL;
d55e5bfc
RD
21709}
21710
21711
554f62e9
RD
21712SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21713 PyObject *resultobj = 0;
21714 wxTreebook *result = 0 ;
21715
21716 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21717 {
21718 if (!wxPyCheckForApp()) SWIG_fail;
21719 PyThreadState* __tstate = wxPyBeginAllowThreads();
21720 result = (wxTreebook *)new wxTreebook();
21721 wxPyEndAllowThreads(__tstate);
21722 if (PyErr_Occurred()) SWIG_fail;
21723 }
21724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21725 return resultobj;
21726fail:
21727 return NULL;
21728}
21729
21730
21731SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21732 PyObject *resultobj = 0;
21733 wxTreebook *arg1 = (wxTreebook *) 0 ;
21734 wxWindow *arg2 = (wxWindow *) 0 ;
21735 int arg3 ;
21736 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21737 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21738 wxSize const &arg5_defvalue = wxDefaultSize ;
21739 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21740 long arg6 = (long) wxBK_DEFAULT ;
21741 wxString const &arg7_defvalue = wxPyEmptyString ;
21742 wxString *arg7 = (wxString *) &arg7_defvalue ;
21743 bool result;
21744 void *argp1 = 0 ;
21745 int res1 = 0 ;
21746 void *argp2 = 0 ;
21747 int res2 = 0 ;
21748 int val3 ;
21749 int ecode3 = 0 ;
21750 wxPoint temp4 ;
21751 wxSize temp5 ;
21752 long val6 ;
21753 int ecode6 = 0 ;
21754 bool temp7 = false ;
21755 PyObject * obj0 = 0 ;
21756 PyObject * obj1 = 0 ;
21757 PyObject * obj2 = 0 ;
21758 PyObject * obj3 = 0 ;
21759 PyObject * obj4 = 0 ;
21760 PyObject * obj5 = 0 ;
21761 PyObject * obj6 = 0 ;
21762 char * kwnames[] = {
21763 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21764 };
21765
21766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21768 if (!SWIG_IsOK(res1)) {
21769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21770 }
21771 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21773 if (!SWIG_IsOK(res2)) {
21774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21775 }
21776 arg2 = reinterpret_cast< wxWindow * >(argp2);
21777 ecode3 = SWIG_AsVal_int(obj2, &val3);
21778 if (!SWIG_IsOK(ecode3)) {
21779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21780 }
21781 arg3 = static_cast< int >(val3);
21782 if (obj3) {
093d3ff1 21783 {
554f62e9
RD
21784 arg4 = &temp4;
21785 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21786 }
554f62e9
RD
21787 }
21788 if (obj4) {
093d3ff1 21789 {
554f62e9
RD
21790 arg5 = &temp5;
21791 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21792 }
554f62e9
RD
21793 }
21794 if (obj5) {
21795 ecode6 = SWIG_AsVal_long(obj5, &val6);
21796 if (!SWIG_IsOK(ecode6)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21798 }
21799 arg6 = static_cast< long >(val6);
21800 }
21801 if (obj6) {
d55e5bfc 21802 {
554f62e9
RD
21803 arg7 = wxString_in_helper(obj6);
21804 if (arg7 == NULL) SWIG_fail;
21805 temp7 = true;
d55e5bfc 21806 }
554f62e9
RD
21807 }
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 {
21815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21816 }
21817 {
21818 if (temp7)
21819 delete arg7;
21820 }
21821 return resultobj;
21822fail:
21823 {
21824 if (temp7)
21825 delete arg7;
21826 }
21827 return NULL;
21828}
21829
21830
21831SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21832 PyObject *resultobj = 0;
21833 wxTreebook *arg1 = (wxTreebook *) 0 ;
21834 size_t arg2 ;
21835 wxWindow *arg3 = (wxWindow *) 0 ;
21836 wxString *arg4 = 0 ;
21837 bool arg5 = (bool) false ;
21838 int arg6 = (int) wxNOT_FOUND ;
21839 bool result;
21840 void *argp1 = 0 ;
21841 int res1 = 0 ;
21842 size_t val2 ;
21843 int ecode2 = 0 ;
21844 void *argp3 = 0 ;
21845 int res3 = 0 ;
21846 bool temp4 = false ;
21847 bool val5 ;
21848 int ecode5 = 0 ;
21849 int val6 ;
21850 int ecode6 = 0 ;
21851 PyObject * obj0 = 0 ;
21852 PyObject * obj1 = 0 ;
21853 PyObject * obj2 = 0 ;
21854 PyObject * obj3 = 0 ;
21855 PyObject * obj4 = 0 ;
21856 PyObject * obj5 = 0 ;
21857 char * kwnames[] = {
21858 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21859 };
21860
21861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21863 if (!SWIG_IsOK(res1)) {
21864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21865 }
21866 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21867 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21868 if (!SWIG_IsOK(ecode2)) {
21869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21870 }
21871 arg2 = static_cast< size_t >(val2);
21872 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21873 if (!SWIG_IsOK(res3)) {
21874 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21875 }
21876 arg3 = reinterpret_cast< wxWindow * >(argp3);
21877 {
21878 arg4 = wxString_in_helper(obj3);
21879 if (arg4 == NULL) SWIG_fail;
21880 temp4 = true;
21881 }
21882 if (obj4) {
21883 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21884 if (!SWIG_IsOK(ecode5)) {
21885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21886 }
21887 arg5 = static_cast< bool >(val5);
21888 }
21889 if (obj5) {
21890 ecode6 = SWIG_AsVal_int(obj5, &val6);
21891 if (!SWIG_IsOK(ecode6)) {
21892 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21893 }
21894 arg6 = static_cast< int >(val6);
21895 }
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21899 wxPyEndAllowThreads(__tstate);
21900 if (PyErr_Occurred()) SWIG_fail;
21901 }
21902 {
21903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21904 }
21905 {
21906 if (temp4)
21907 delete arg4;
21908 }
21909 return resultobj;
21910fail:
21911 {
21912 if (temp4)
21913 delete arg4;
21914 }
21915 return NULL;
21916}
21917
21918
21919SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21920 PyObject *resultobj = 0;
21921 wxTreebook *arg1 = (wxTreebook *) 0 ;
21922 wxWindow *arg2 = (wxWindow *) 0 ;
21923 wxString *arg3 = 0 ;
21924 bool arg4 = (bool) false ;
21925 int arg5 = (int) wxNOT_FOUND ;
21926 bool result;
21927 void *argp1 = 0 ;
21928 int res1 = 0 ;
21929 void *argp2 = 0 ;
21930 int res2 = 0 ;
21931 bool temp3 = false ;
21932 bool val4 ;
21933 int ecode4 = 0 ;
21934 int val5 ;
21935 int ecode5 = 0 ;
21936 PyObject * obj0 = 0 ;
21937 PyObject * obj1 = 0 ;
21938 PyObject * obj2 = 0 ;
21939 PyObject * obj3 = 0 ;
21940 PyObject * obj4 = 0 ;
21941 char * kwnames[] = {
21942 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21943 };
21944
21945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21947 if (!SWIG_IsOK(res1)) {
21948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21949 }
21950 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21952 if (!SWIG_IsOK(res2)) {
21953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21954 }
21955 arg2 = reinterpret_cast< wxWindow * >(argp2);
21956 {
21957 arg3 = wxString_in_helper(obj2);
21958 if (arg3 == NULL) SWIG_fail;
21959 temp3 = true;
21960 }
21961 if (obj3) {
21962 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21963 if (!SWIG_IsOK(ecode4)) {
21964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21965 }
21966 arg4 = static_cast< bool >(val4);
21967 }
21968 if (obj4) {
21969 ecode5 = SWIG_AsVal_int(obj4, &val5);
21970 if (!SWIG_IsOK(ecode5)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21972 }
21973 arg5 = static_cast< int >(val5);
21974 }
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 {
21982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21983 }
21984 {
21985 if (temp3)
21986 delete arg3;
21987 }
21988 return resultobj;
21989fail:
21990 {
21991 if (temp3)
21992 delete arg3;
21993 }
21994 return NULL;
21995}
21996
21997
21998SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21999 PyObject *resultobj = 0;
22000 wxTreebook *arg1 = (wxTreebook *) 0 ;
22001 size_t arg2 ;
22002 bool result;
22003 void *argp1 = 0 ;
22004 int res1 = 0 ;
22005 size_t val2 ;
22006 int ecode2 = 0 ;
22007 PyObject * obj0 = 0 ;
22008 PyObject * obj1 = 0 ;
22009 char * kwnames[] = {
22010 (char *) "self",(char *) "pos", NULL
22011 };
22012
22013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22017 }
22018 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22019 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22020 if (!SWIG_IsOK(ecode2)) {
22021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22022 }
22023 arg2 = static_cast< size_t >(val2);
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 {
22031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22032 }
22033 return resultobj;
22034fail:
22035 return NULL;
22036}
22037
22038
22039SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22040 PyObject *resultobj = 0;
22041 wxTreebook *arg1 = (wxTreebook *) 0 ;
22042 size_t arg2 ;
22043 bool arg3 = (bool) true ;
22044 bool result;
22045 void *argp1 = 0 ;
22046 int res1 = 0 ;
22047 size_t val2 ;
22048 int ecode2 = 0 ;
22049 bool val3 ;
22050 int ecode3 = 0 ;
22051 PyObject * obj0 = 0 ;
22052 PyObject * obj1 = 0 ;
22053 PyObject * obj2 = 0 ;
22054 char * kwnames[] = {
22055 (char *) "self",(char *) "pos",(char *) "expand", NULL
22056 };
22057
22058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22060 if (!SWIG_IsOK(res1)) {
22061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22062 }
22063 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22064 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22065 if (!SWIG_IsOK(ecode2)) {
22066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22067 }
22068 arg2 = static_cast< size_t >(val2);
22069 if (obj2) {
22070 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22071 if (!SWIG_IsOK(ecode3)) {
22072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22073 }
22074 arg3 = static_cast< bool >(val3);
22075 }
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22079 wxPyEndAllowThreads(__tstate);
22080 if (PyErr_Occurred()) SWIG_fail;
22081 }
22082 {
22083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22084 }
22085 return resultobj;
22086fail:
22087 return NULL;
22088}
22089
22090
22091SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22092 PyObject *resultobj = 0;
22093 wxTreebook *arg1 = (wxTreebook *) 0 ;
22094 size_t arg2 ;
22095 bool result;
22096 void *argp1 = 0 ;
22097 int res1 = 0 ;
22098 size_t val2 ;
22099 int ecode2 = 0 ;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 char * kwnames[] = {
22103 (char *) "self",(char *) "pos", NULL
22104 };
22105
22106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22110 }
22111 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22112 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22113 if (!SWIG_IsOK(ecode2)) {
22114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22115 }
22116 arg2 = static_cast< size_t >(val2);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (bool)(arg1)->CollapseNode(arg2);
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 {
22124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22125 }
22126 return resultobj;
22127fail:
22128 return NULL;
22129}
22130
22131
22132SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22133 PyObject *resultobj = 0;
22134 wxTreebook *arg1 = (wxTreebook *) 0 ;
22135 size_t arg2 ;
22136 int result;
22137 void *argp1 = 0 ;
22138 int res1 = 0 ;
22139 size_t val2 ;
22140 int ecode2 = 0 ;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 char * kwnames[] = {
22144 (char *) "self",(char *) "pos", NULL
22145 };
22146
22147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22149 if (!SWIG_IsOK(res1)) {
22150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22151 }
22152 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22153 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22154 if (!SWIG_IsOK(ecode2)) {
22155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22156 }
22157 arg2 = static_cast< size_t >(val2);
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22161 wxPyEndAllowThreads(__tstate);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 resultobj = SWIG_From_int(static_cast< int >(result));
22165 return resultobj;
22166fail:
22167 return NULL;
d55e5bfc
RD
22168}
22169
22170
554f62e9
RD
22171SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22172 PyObject *resultobj = 0;
22173 wxTreebook *arg1 = (wxTreebook *) 0 ;
22174 wxTreeCtrl *result = 0 ;
22175 void *argp1 = 0 ;
22176 int res1 = 0 ;
22177 PyObject *swig_obj[1] ;
22178
22179 if (!args) SWIG_fail;
22180 swig_obj[0] = args;
22181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22182 if (!SWIG_IsOK(res1)) {
22183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22184 }
22185 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
22188 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22189 wxPyEndAllowThreads(__tstate);
22190 if (PyErr_Occurred()) SWIG_fail;
22191 }
22192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22193 return resultobj;
22194fail:
22195 return NULL;
22196}
22197
22198
22199SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22200 PyObject *obj;
22201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22202 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22203 return SWIG_Py_Void();
22204}
22205
22206SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22207 return SWIG_Python_InitShadowInstance(args);
22208}
22209
22210SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22211 PyObject *resultobj = 0;
22212 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22213 int arg2 = (int) 0 ;
22214 int arg3 = (int) wxNOT_FOUND ;
22215 int arg4 = (int) wxNOT_FOUND ;
22216 wxTreebookEvent *result = 0 ;
22217 int val1 ;
22218 int ecode1 = 0 ;
22219 int val2 ;
22220 int ecode2 = 0 ;
22221 int val3 ;
22222 int ecode3 = 0 ;
22223 int val4 ;
22224 int ecode4 = 0 ;
22225 PyObject * obj0 = 0 ;
22226 PyObject * obj1 = 0 ;
22227 PyObject * obj2 = 0 ;
22228 PyObject * obj3 = 0 ;
22229 char * kwnames[] = {
22230 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22231 };
22232
22233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22234 if (obj0) {
22235 ecode1 = SWIG_AsVal_int(obj0, &val1);
22236 if (!SWIG_IsOK(ecode1)) {
22237 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22238 }
22239 arg1 = static_cast< wxEventType >(val1);
22240 }
22241 if (obj1) {
22242 ecode2 = SWIG_AsVal_int(obj1, &val2);
22243 if (!SWIG_IsOK(ecode2)) {
22244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22245 }
22246 arg2 = static_cast< int >(val2);
22247 }
22248 if (obj2) {
22249 ecode3 = SWIG_AsVal_int(obj2, &val3);
22250 if (!SWIG_IsOK(ecode3)) {
22251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22252 }
22253 arg3 = static_cast< int >(val3);
22254 }
22255 if (obj3) {
22256 ecode4 = SWIG_AsVal_int(obj3, &val4);
22257 if (!SWIG_IsOK(ecode4)) {
22258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22259 }
22260 arg4 = static_cast< int >(val4);
22261 }
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22265 wxPyEndAllowThreads(__tstate);
22266 if (PyErr_Occurred()) SWIG_fail;
22267 }
22268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22269 return resultobj;
22270fail:
22271 return NULL;
22272}
22273
22274
22275SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22276 PyObject *obj;
22277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22278 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22279 return SWIG_Py_Void();
22280}
22281
22282SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22283 return SWIG_Python_InitShadowInstance(args);
22284}
22285
22286SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj = 0;
22288 wxWindow *arg1 = (wxWindow *) 0 ;
22289 int arg2 ;
22290 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22291 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22292 wxSize const &arg4_defvalue = wxDefaultSize ;
22293 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22294 long arg5 = (long) wxBK_DEFAULT ;
22295 wxString const &arg6_defvalue = wxPyEmptyString ;
22296 wxString *arg6 = (wxString *) &arg6_defvalue ;
22297 wxToolbook *result = 0 ;
22298 void *argp1 = 0 ;
22299 int res1 = 0 ;
22300 int val2 ;
22301 int ecode2 = 0 ;
22302 wxPoint temp3 ;
22303 wxSize temp4 ;
22304 long val5 ;
22305 int ecode5 = 0 ;
22306 bool temp6 = false ;
22307 PyObject * obj0 = 0 ;
22308 PyObject * obj1 = 0 ;
22309 PyObject * obj2 = 0 ;
22310 PyObject * obj3 = 0 ;
22311 PyObject * obj4 = 0 ;
22312 PyObject * obj5 = 0 ;
22313 char * kwnames[] = {
22314 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22315 };
22316
22317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22321 }
22322 arg1 = reinterpret_cast< wxWindow * >(argp1);
22323 ecode2 = SWIG_AsVal_int(obj1, &val2);
22324 if (!SWIG_IsOK(ecode2)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22326 }
22327 arg2 = static_cast< int >(val2);
22328 if (obj2) {
093d3ff1 22329 {
554f62e9
RD
22330 arg3 = &temp3;
22331 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 22332 }
554f62e9
RD
22333 }
22334 if (obj3) {
d55e5bfc 22335 {
554f62e9
RD
22336 arg4 = &temp4;
22337 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 22338 }
554f62e9
RD
22339 }
22340 if (obj4) {
22341 ecode5 = SWIG_AsVal_long(obj4, &val5);
22342 if (!SWIG_IsOK(ecode5)) {
22343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22344 }
22345 arg5 = static_cast< long >(val5);
22346 }
22347 if (obj5) {
093d3ff1 22348 {
554f62e9
RD
22349 arg6 = wxString_in_helper(obj5);
22350 if (arg6 == NULL) SWIG_fail;
22351 temp6 = true;
093d3ff1 22352 }
554f62e9
RD
22353 }
22354 {
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22361 {
22362 if (temp6)
22363 delete arg6;
22364 }
22365 return resultobj;
22366fail:
22367 {
22368 if (temp6)
22369 delete arg6;
22370 }
22371 return NULL;
d55e5bfc
RD
22372}
22373
22374
554f62e9
RD
22375SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22376 PyObject *resultobj = 0;
22377 wxToolbook *result = 0 ;
22378
22379 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 result = (wxToolbook *)new wxToolbook();
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22387 return resultobj;
22388fail:
22389 return NULL;
22390}
22391
22392
22393SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj = 0;
22395 wxToolbook *arg1 = (wxToolbook *) 0 ;
22396 wxWindow *arg2 = (wxWindow *) 0 ;
22397 int arg3 ;
22398 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22399 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22400 wxSize const &arg5_defvalue = wxDefaultSize ;
22401 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22402 long arg6 = (long) 0 ;
22403 wxString const &arg7_defvalue = wxEmptyString ;
22404 wxString *arg7 = (wxString *) &arg7_defvalue ;
22405 bool result;
22406 void *argp1 = 0 ;
22407 int res1 = 0 ;
22408 void *argp2 = 0 ;
22409 int res2 = 0 ;
22410 int val3 ;
22411 int ecode3 = 0 ;
22412 wxPoint temp4 ;
22413 wxSize temp5 ;
22414 long val6 ;
22415 int ecode6 = 0 ;
22416 bool temp7 = false ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 PyObject * obj2 = 0 ;
22420 PyObject * obj3 = 0 ;
22421 PyObject * obj4 = 0 ;
22422 PyObject * obj5 = 0 ;
22423 PyObject * obj6 = 0 ;
22424 char * kwnames[] = {
22425 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22426 };
22427
22428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22430 if (!SWIG_IsOK(res1)) {
22431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22432 }
22433 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22434 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22435 if (!SWIG_IsOK(res2)) {
22436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22437 }
22438 arg2 = reinterpret_cast< wxWindow * >(argp2);
22439 ecode3 = SWIG_AsVal_int(obj2, &val3);
22440 if (!SWIG_IsOK(ecode3)) {
22441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22442 }
22443 arg3 = static_cast< int >(val3);
22444 if (obj3) {
093d3ff1 22445 {
554f62e9
RD
22446 arg4 = &temp4;
22447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22448 }
554f62e9
RD
22449 }
22450 if (obj4) {
093d3ff1 22451 {
554f62e9
RD
22452 arg5 = &temp5;
22453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22454 }
554f62e9
RD
22455 }
22456 if (obj5) {
22457 ecode6 = SWIG_AsVal_long(obj5, &val6);
22458 if (!SWIG_IsOK(ecode6)) {
22459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22460 }
22461 arg6 = static_cast< long >(val6);
22462 }
22463 if (obj6) {
d55e5bfc 22464 {
554f62e9
RD
22465 arg7 = wxString_in_helper(obj6);
22466 if (arg7 == NULL) SWIG_fail;
22467 temp7 = true;
d55e5bfc 22468 }
554f62e9
RD
22469 }
22470 {
22471 PyThreadState* __tstate = wxPyBeginAllowThreads();
22472 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 {
22477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22478 }
22479 {
22480 if (temp7)
22481 delete arg7;
22482 }
22483 return resultobj;
22484fail:
22485 {
22486 if (temp7)
22487 delete arg7;
22488 }
22489 return NULL;
d55e5bfc
RD
22490}
22491
22492
554f62e9
RD
22493SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 PyObject *resultobj = 0;
22495 wxToolbook *arg1 = (wxToolbook *) 0 ;
22496 wxToolBarBase *result = 0 ;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 PyObject *swig_obj[1] ;
22500
22501 if (!args) SWIG_fail;
22502 swig_obj[0] = args;
22503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22504 if (!SWIG_IsOK(res1)) {
22505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22506 }
22507 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22511 wxPyEndAllowThreads(__tstate);
22512 if (PyErr_Occurred()) SWIG_fail;
22513 }
22514 {
22515 resultobj = wxPyMake_wxObject(result, (bool)0);
22516 }
22517 return resultobj;
22518fail:
22519 return NULL;
f20a2e1f
RD
22520}
22521
22522
554f62e9
RD
22523SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22524 PyObject *resultobj = 0;
22525 wxToolbook *arg1 = (wxToolbook *) 0 ;
22526 void *argp1 = 0 ;
22527 int res1 = 0 ;
22528 PyObject *swig_obj[1] ;
22529
22530 if (!args) SWIG_fail;
22531 swig_obj[0] = args;
22532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22535 }
22536 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 (arg1)->Realize();
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 return resultobj;
22545fail:
22546 return NULL;
22547}
22548
22549
22550SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22551 PyObject *obj;
22552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22553 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22554 return SWIG_Py_Void();
22555}
22556
22557SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22558 return SWIG_Python_InitShadowInstance(args);
22559}
22560
22561SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22562 PyObject *resultobj = 0;
22563 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22564 int arg2 = (int) 0 ;
22565 int arg3 = (int) wxNOT_FOUND ;
22566 int arg4 = (int) wxNOT_FOUND ;
22567 wxToolbookEvent *result = 0 ;
22568 int val1 ;
22569 int ecode1 = 0 ;
22570 int val2 ;
22571 int ecode2 = 0 ;
22572 int val3 ;
22573 int ecode3 = 0 ;
22574 int val4 ;
22575 int ecode4 = 0 ;
22576 PyObject * obj0 = 0 ;
22577 PyObject * obj1 = 0 ;
22578 PyObject * obj2 = 0 ;
22579 PyObject * obj3 = 0 ;
22580 char * kwnames[] = {
22581 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22582 };
22583
22584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22585 if (obj0) {
22586 ecode1 = SWIG_AsVal_int(obj0, &val1);
22587 if (!SWIG_IsOK(ecode1)) {
22588 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22589 }
22590 arg1 = static_cast< wxEventType >(val1);
22591 }
22592 if (obj1) {
22593 ecode2 = SWIG_AsVal_int(obj1, &val2);
22594 if (!SWIG_IsOK(ecode2)) {
22595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22596 }
22597 arg2 = static_cast< int >(val2);
22598 }
22599 if (obj2) {
22600 ecode3 = SWIG_AsVal_int(obj2, &val3);
22601 if (!SWIG_IsOK(ecode3)) {
22602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22603 }
22604 arg3 = static_cast< int >(val3);
22605 }
22606 if (obj3) {
22607 ecode4 = SWIG_AsVal_int(obj3, &val4);
22608 if (!SWIG_IsOK(ecode4)) {
22609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22610 }
22611 arg4 = static_cast< int >(val4);
22612 }
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22620 return resultobj;
22621fail:
22622 return NULL;
d55e5bfc
RD
22623}
22624
22625
554f62e9
RD
22626SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22627 PyObject *obj;
22628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22629 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22630 return SWIG_Py_Void();
d55e5bfc
RD
22631}
22632
554f62e9
RD
22633SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 return SWIG_Python_InitShadowInstance(args);
22635}
d55e5bfc 22636
554f62e9
RD
22637SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22638 PyObject *resultobj = 0;
22639 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22640 int result;
22641 void *argp1 = 0 ;
22642 int res1 = 0 ;
22643 PyObject *swig_obj[1] ;
22644
22645 if (!args) SWIG_fail;
22646 swig_obj[0] = args;
22647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22650 }
22651 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 result = (int)(arg1)->GetId();
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 resultobj = SWIG_From_int(static_cast< int >(result));
22659 return resultobj;
22660fail:
22661 return NULL;
d55e5bfc
RD
22662}
22663
22664
554f62e9
RD
22665SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22666 PyObject *resultobj = 0;
22667 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22668 wxControl *result = 0 ;
22669 void *argp1 = 0 ;
22670 int res1 = 0 ;
22671 PyObject *swig_obj[1] ;
22672
22673 if (!args) SWIG_fail;
22674 swig_obj[0] = args;
22675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22676 if (!SWIG_IsOK(res1)) {
22677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22678 }
22679 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22680 {
22681 PyThreadState* __tstate = wxPyBeginAllowThreads();
22682 result = (wxControl *)(arg1)->GetControl();
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 {
22687 resultobj = wxPyMake_wxObject(result, 0);
22688 }
22689 return resultobj;
22690fail:
22691 return NULL;
d55e5bfc
RD
22692}
22693
22694
554f62e9
RD
22695SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22696 PyObject *resultobj = 0;
22697 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22698 wxToolBarBase *result = 0 ;
22699 void *argp1 = 0 ;
22700 int res1 = 0 ;
22701 PyObject *swig_obj[1] ;
22702
22703 if (!args) SWIG_fail;
22704 swig_obj[0] = args;
22705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22706 if (!SWIG_IsOK(res1)) {
22707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22708 }
22709 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22710 {
22711 PyThreadState* __tstate = wxPyBeginAllowThreads();
22712 result = (wxToolBarBase *)(arg1)->GetToolBar();
22713 wxPyEndAllowThreads(__tstate);
22714 if (PyErr_Occurred()) SWIG_fail;
22715 }
22716 {
22717 resultobj = wxPyMake_wxObject(result, (bool)0);
22718 }
22719 return resultobj;
22720fail:
22721 return NULL;
d55e5bfc
RD
22722}
22723
22724
554f62e9
RD
22725SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22726 PyObject *resultobj = 0;
22727 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22728 int result;
22729 void *argp1 = 0 ;
22730 int res1 = 0 ;
22731 PyObject *swig_obj[1] ;
22732
22733 if (!args) SWIG_fail;
22734 swig_obj[0] = args;
22735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22738 }
22739 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 result = (int)(arg1)->IsButton();
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_From_int(static_cast< int >(result));
22747 return resultobj;
22748fail:
22749 return NULL;
d55e5bfc
RD
22750}
22751
22752
554f62e9
RD
22753SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22754 PyObject *resultobj = 0;
22755 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22756 int result;
22757 void *argp1 = 0 ;
22758 int res1 = 0 ;
22759 PyObject *swig_obj[1] ;
22760
22761 if (!args) SWIG_fail;
22762 swig_obj[0] = args;
22763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22764 if (!SWIG_IsOK(res1)) {
22765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22766 }
22767 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 result = (int)(arg1)->IsControl();
22771 wxPyEndAllowThreads(__tstate);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 resultobj = SWIG_From_int(static_cast< int >(result));
22775 return resultobj;
22776fail:
22777 return NULL;
d55e5bfc
RD
22778}
22779
22780
554f62e9
RD
22781SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22782 PyObject *resultobj = 0;
22783 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22784 int result;
22785 void *argp1 = 0 ;
22786 int res1 = 0 ;
22787 PyObject *swig_obj[1] ;
22788
22789 if (!args) SWIG_fail;
22790 swig_obj[0] = args;
22791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22792 if (!SWIG_IsOK(res1)) {
22793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22794 }
22795 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22796 {
22797 PyThreadState* __tstate = wxPyBeginAllowThreads();
22798 result = (int)(arg1)->IsSeparator();
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 resultobj = SWIG_From_int(static_cast< int >(result));
22803 return resultobj;
22804fail:
22805 return NULL;
d55e5bfc
RD
22806}
22807
22808
554f62e9
RD
22809SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22810 PyObject *resultobj = 0;
22811 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22812 int result;
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_wxToolBarToolBase, 0 | 0 );
22820 if (!SWIG_IsOK(res1)) {
22821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22822 }
22823 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22824 {
22825 PyThreadState* __tstate = wxPyBeginAllowThreads();
22826 result = (int)(arg1)->GetStyle();
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = SWIG_From_int(static_cast< int >(result));
22831 return resultobj;
22832fail:
22833 return NULL;
d55e5bfc
RD
22834}
22835
22836
554f62e9
RD
22837SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22838 PyObject *resultobj = 0;
22839 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22840 wxItemKind result;
22841 void *argp1 = 0 ;
22842 int res1 = 0 ;
22843 PyObject *swig_obj[1] ;
22844
22845 if (!args) SWIG_fail;
22846 swig_obj[0] = args;
22847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22848 if (!SWIG_IsOK(res1)) {
22849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22850 }
22851 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 result = (wxItemKind)(arg1)->GetKind();
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 resultobj = SWIG_From_int(static_cast< int >(result));
22859 return resultobj;
22860fail:
22861 return NULL;
d55e5bfc
RD
22862}
22863
22864
554f62e9
RD
22865SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22866 PyObject *resultobj = 0;
22867 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22868 bool result;
22869 void *argp1 = 0 ;
22870 int res1 = 0 ;
22871 PyObject *swig_obj[1] ;
22872
22873 if (!args) SWIG_fail;
22874 swig_obj[0] = args;
22875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22878 }
22879 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22880 {
22881 PyThreadState* __tstate = wxPyBeginAllowThreads();
22882 result = (bool)(arg1)->IsEnabled();
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 {
22887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22888 }
22889 return resultobj;
22890fail:
22891 return NULL;
d55e5bfc
RD
22892}
22893
22894
554f62e9
RD
22895SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22896 PyObject *resultobj = 0;
22897 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22898 bool result;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 PyObject *swig_obj[1] ;
22902
22903 if (!args) SWIG_fail;
22904 swig_obj[0] = args;
22905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22906 if (!SWIG_IsOK(res1)) {
22907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22908 }
22909 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22910 {
22911 PyThreadState* __tstate = wxPyBeginAllowThreads();
22912 result = (bool)(arg1)->IsToggled();
22913 wxPyEndAllowThreads(__tstate);
22914 if (PyErr_Occurred()) SWIG_fail;
22915 }
22916 {
22917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22918 }
22919 return resultobj;
22920fail:
22921 return NULL;
d55e5bfc
RD
22922}
22923
22924
554f62e9
RD
22925SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22926 PyObject *resultobj = 0;
22927 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22928 bool result;
22929 void *argp1 = 0 ;
22930 int res1 = 0 ;
22931 PyObject *swig_obj[1] ;
22932
22933 if (!args) SWIG_fail;
22934 swig_obj[0] = args;
22935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22936 if (!SWIG_IsOK(res1)) {
22937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22938 }
22939 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22940 {
22941 PyThreadState* __tstate = wxPyBeginAllowThreads();
22942 result = (bool)(arg1)->CanBeToggled();
22943 wxPyEndAllowThreads(__tstate);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
22946 {
22947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22948 }
22949 return resultobj;
22950fail:
22951 return NULL;
d55e5bfc
RD
22952}
22953
22954
554f62e9
RD
22955SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22956 PyObject *resultobj = 0;
22957 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22958 wxBitmap *result = 0 ;
22959 void *argp1 = 0 ;
22960 int res1 = 0 ;
22961 PyObject *swig_obj[1] ;
22962
22963 if (!args) SWIG_fail;
22964 swig_obj[0] = args;
22965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22966 if (!SWIG_IsOK(res1)) {
22967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22968 }
22969 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22970 {
22971 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22972 {
554f62e9
RD
22973 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22974 result = (wxBitmap *) &_result_ref;
093d3ff1 22975 }
554f62e9
RD
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 {
22980 wxBitmap* resultptr = new wxBitmap(*result);
22981 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22982 }
22983 return resultobj;
22984fail:
22985 return NULL;
d55e5bfc
RD
22986}
22987
22988
554f62e9
RD
22989SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22990 PyObject *resultobj = 0;
22991 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22992 wxBitmap *result = 0 ;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 PyObject *swig_obj[1] ;
22996
22997 if (!args) SWIG_fail;
22998 swig_obj[0] = args;
22999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23000 if (!SWIG_IsOK(res1)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23002 }
23003 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23006 {
554f62e9
RD
23007 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23008 result = (wxBitmap *) &_result_ref;
d55e5bfc 23009 }
554f62e9
RD
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 {
23014 wxBitmap* resultptr = new wxBitmap(*result);
23015 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23016 }
23017 return resultobj;
23018fail:
23019 return NULL;
d55e5bfc
RD
23020}
23021
23022
554f62e9
RD
23023SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23024 PyObject *resultobj = 0;
23025 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23026 wxBitmap result;
23027 void *argp1 = 0 ;
23028 int res1 = 0 ;
23029 PyObject *swig_obj[1] ;
23030
23031 if (!args) SWIG_fail;
23032 swig_obj[0] = args;
23033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23034 if (!SWIG_IsOK(res1)) {
23035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23036 }
23037 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23038 {
23039 PyThreadState* __tstate = wxPyBeginAllowThreads();
23040 result = (arg1)->GetBitmap();
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23045 return resultobj;
23046fail:
23047 return NULL;
23048}
23049
23050
23051SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23052 PyObject *resultobj = 0;
23053 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23054 wxString result;
23055 void *argp1 = 0 ;
23056 int res1 = 0 ;
23057 PyObject *swig_obj[1] ;
23058
23059 if (!args) SWIG_fail;
23060 swig_obj[0] = args;
23061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23062 if (!SWIG_IsOK(res1)) {
23063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23064 }
23065 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = (arg1)->GetLabel();
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 {
d55e5bfc 23073#if wxUSE_UNICODE
554f62e9 23074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 23075#else
554f62e9 23076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 23077#endif
554f62e9
RD
23078 }
23079 return resultobj;
23080fail:
23081 return NULL;
d55e5bfc
RD
23082}
23083
23084
554f62e9
RD
23085SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23088 wxString result;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 PyObject *swig_obj[1] ;
23092
23093 if (!args) SWIG_fail;
23094 swig_obj[0] = args;
23095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23098 }
23099 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = (arg1)->GetShortHelp();
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 {
23107#if wxUSE_UNICODE
23108 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23109#else
23110 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23111#endif
23112 }
23113 return resultobj;
23114fail:
23115 return NULL;
d55e5bfc
RD
23116}
23117
23118
554f62e9
RD
23119SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23120 PyObject *resultobj = 0;
23121 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23122 wxString result;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 PyObject *swig_obj[1] ;
23126
23127 if (!args) SWIG_fail;
23128 swig_obj[0] = args;
23129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23132 }
23133 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 result = (arg1)->GetLongHelp();
23137 wxPyEndAllowThreads(__tstate);
23138 if (PyErr_Occurred()) SWIG_fail;
23139 }
23140 {
23141#if wxUSE_UNICODE
23142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23143#else
23144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23145#endif
23146 }
23147 return resultobj;
23148fail:
23149 return NULL;
23150}
23151
23152
23153SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23154 PyObject *resultobj = 0;
23155 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23156 bool arg2 ;
23157 bool result;
23158 void *argp1 = 0 ;
23159 int res1 = 0 ;
23160 bool val2 ;
23161 int ecode2 = 0 ;
23162 PyObject * obj0 = 0 ;
23163 PyObject * obj1 = 0 ;
23164 char * kwnames[] = {
23165 (char *) "self",(char *) "enable", NULL
23166 };
23167
23168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23170 if (!SWIG_IsOK(res1)) {
23171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23172 }
23173 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23174 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23175 if (!SWIG_IsOK(ecode2)) {
23176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23177 }
23178 arg2 = static_cast< bool >(val2);
23179 {
23180 PyThreadState* __tstate = wxPyBeginAllowThreads();
23181 result = (bool)(arg1)->Enable(arg2);
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 {
23186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23187 }
23188 return resultobj;
23189fail:
23190 return NULL;
d55e5bfc
RD
23191}
23192
23193
554f62e9
RD
23194SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23195 PyObject *resultobj = 0;
23196 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23197 void *argp1 = 0 ;
23198 int res1 = 0 ;
23199 PyObject *swig_obj[1] ;
23200
23201 if (!args) SWIG_fail;
23202 swig_obj[0] = args;
23203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23204 if (!SWIG_IsOK(res1)) {
23205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23206 }
23207 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23208 {
23209 PyThreadState* __tstate = wxPyBeginAllowThreads();
23210 (arg1)->Toggle();
23211 wxPyEndAllowThreads(__tstate);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 }
23214 resultobj = SWIG_Py_Void();
23215 return resultobj;
23216fail:
23217 return NULL;
23218}
23219
23220
23221SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23222 PyObject *resultobj = 0;
23223 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23224 bool arg2 ;
23225 bool result;
23226 void *argp1 = 0 ;
23227 int res1 = 0 ;
23228 bool val2 ;
23229 int ecode2 = 0 ;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 char * kwnames[] = {
23233 (char *) "self",(char *) "toggle", NULL
23234 };
23235
23236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23238 if (!SWIG_IsOK(res1)) {
23239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23240 }
23241 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23242 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23243 if (!SWIG_IsOK(ecode2)) {
23244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23245 }
23246 arg2 = static_cast< bool >(val2);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (bool)(arg1)->SetToggle(arg2);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 {
23254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23255 }
23256 return resultobj;
23257fail:
23258 return NULL;
23259}
23260
23261
23262SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23263 PyObject *resultobj = 0;
23264 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23265 wxString *arg2 = 0 ;
23266 bool result;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 bool temp2 = false ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23272 char * kwnames[] = {
23273 (char *) "self",(char *) "help", NULL
23274 };
23275
23276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23280 }
23281 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23282 {
23283 arg2 = wxString_in_helper(obj1);
23284 if (arg2 == NULL) SWIG_fail;
23285 temp2 = true;
23286 }
23287 {
23288 PyThreadState* __tstate = wxPyBeginAllowThreads();
23289 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 {
23294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23295 }
23296 {
23297 if (temp2)
23298 delete arg2;
23299 }
23300 return resultobj;
23301fail:
23302 {
23303 if (temp2)
23304 delete arg2;
23305 }
23306 return NULL;
23307}
23308
23309
23310SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj = 0;
23312 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23313 wxString *arg2 = 0 ;
23314 bool result;
23315 void *argp1 = 0 ;
23316 int res1 = 0 ;
23317 bool temp2 = false ;
23318 PyObject * obj0 = 0 ;
23319 PyObject * obj1 = 0 ;
23320 char * kwnames[] = {
23321 (char *) "self",(char *) "help", NULL
23322 };
23323
23324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23326 if (!SWIG_IsOK(res1)) {
23327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23328 }
23329 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23330 {
23331 arg2 = wxString_in_helper(obj1);
23332 if (arg2 == NULL) SWIG_fail;
23333 temp2 = true;
23334 }
23335 {
23336 PyThreadState* __tstate = wxPyBeginAllowThreads();
23337 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23338 wxPyEndAllowThreads(__tstate);
23339 if (PyErr_Occurred()) SWIG_fail;
23340 }
23341 {
23342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23343 }
23344 {
23345 if (temp2)
23346 delete arg2;
23347 }
23348 return resultobj;
23349fail:
23350 {
23351 if (temp2)
23352 delete arg2;
23353 }
23354 return NULL;
23355}
23356
23357
23358SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23359 PyObject *resultobj = 0;
23360 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23361 wxBitmap *arg2 = 0 ;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 void *argp2 = 0 ;
23365 int res2 = 0 ;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 char * kwnames[] = {
23369 (char *) "self",(char *) "bmp", NULL
23370 };
23371
23372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23376 }
23377 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23379 if (!SWIG_IsOK(res2)) {
23380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23381 }
23382 if (!argp2) {
23383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23384 }
23385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23386 {
23387 PyThreadState* __tstate = wxPyBeginAllowThreads();
23388 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 resultobj = SWIG_Py_Void();
23393 return resultobj;
23394fail:
23395 return NULL;
23396}
23397
23398
23399SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj = 0;
23401 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23402 wxBitmap *arg2 = 0 ;
23403 void *argp1 = 0 ;
23404 int res1 = 0 ;
23405 void *argp2 = 0 ;
23406 int res2 = 0 ;
23407 PyObject * obj0 = 0 ;
23408 PyObject * obj1 = 0 ;
23409 char * kwnames[] = {
23410 (char *) "self",(char *) "bmp", NULL
23411 };
23412
23413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23415 if (!SWIG_IsOK(res1)) {
23416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23417 }
23418 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23420 if (!SWIG_IsOK(res2)) {
23421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23422 }
23423 if (!argp2) {
23424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23425 }
23426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = SWIG_Py_Void();
23434 return resultobj;
23435fail:
23436 return NULL;
23437}
23438
23439
23440SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj = 0;
23442 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23443 wxString *arg2 = 0 ;
23444 void *argp1 = 0 ;
23445 int res1 = 0 ;
23446 bool temp2 = false ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 char * kwnames[] = {
23450 (char *) "self",(char *) "label", NULL
23451 };
23452
23453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23457 }
23458 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23459 {
23460 arg2 = wxString_in_helper(obj1);
23461 if (arg2 == NULL) SWIG_fail;
23462 temp2 = true;
23463 }
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 (arg1)->SetLabel((wxString const &)*arg2);
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_Py_Void();
23471 {
23472 if (temp2)
23473 delete arg2;
23474 }
23475 return resultobj;
23476fail:
23477 {
23478 if (temp2)
23479 delete arg2;
23480 }
23481 return NULL;
d55e5bfc
RD
23482}
23483
23484
554f62e9
RD
23485SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23486 PyObject *resultobj = 0;
23487 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 PyObject *swig_obj[1] ;
23491
23492 if (!args) SWIG_fail;
23493 swig_obj[0] = args;
23494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23495 if (!SWIG_IsOK(res1)) {
23496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23497 }
23498 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23499 {
23500 PyThreadState* __tstate = wxPyBeginAllowThreads();
23501 (arg1)->Detach();
23502 wxPyEndAllowThreads(__tstate);
23503 if (PyErr_Occurred()) SWIG_fail;
23504 }
23505 resultobj = SWIG_Py_Void();
23506 return resultobj;
23507fail:
23508 return NULL;
23509}
23510
23511
23512SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23513 PyObject *resultobj = 0;
23514 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23515 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23516 void *argp1 = 0 ;
23517 int res1 = 0 ;
23518 void *argp2 = 0 ;
23519 int res2 = 0 ;
23520 PyObject * obj0 = 0 ;
23521 PyObject * obj1 = 0 ;
23522 char * kwnames[] = {
23523 (char *) "self",(char *) "tbar", NULL
23524 };
23525
23526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23528 if (!SWIG_IsOK(res1)) {
23529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23530 }
23531 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23533 if (!SWIG_IsOK(res2)) {
23534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23535 }
23536 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23537 {
23538 PyThreadState* __tstate = wxPyBeginAllowThreads();
23539 (arg1)->Attach(arg2);
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 resultobj = SWIG_Py_Void();
23544 return resultobj;
23545fail:
23546 return NULL;
d55e5bfc
RD
23547}
23548
23549
554f62e9
RD
23550SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23551 PyObject *resultobj = 0;
23552 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23553 PyObject *result = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 PyObject *swig_obj[1] ;
23557
23558 if (!args) SWIG_fail;
23559 swig_obj[0] = args;
23560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23561 if (!SWIG_IsOK(res1)) {
23562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23563 }
23564 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23565 {
23566 PyThreadState* __tstate = wxPyBeginAllowThreads();
23567 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23568 wxPyEndAllowThreads(__tstate);
23569 if (PyErr_Occurred()) SWIG_fail;
23570 }
23571 resultobj = result;
23572 return resultobj;
23573fail:
23574 return NULL;
23575}
23576
23577
23578SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23579 PyObject *resultobj = 0;
23580 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23581 PyObject *arg2 = (PyObject *) 0 ;
23582 void *argp1 = 0 ;
23583 int res1 = 0 ;
23584 PyObject * obj0 = 0 ;
23585 PyObject * obj1 = 0 ;
23586 char * kwnames[] = {
23587 (char *) "self",(char *) "clientData", NULL
23588 };
23589
23590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23592 if (!SWIG_IsOK(res1)) {
23593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23594 }
23595 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23596 arg2 = obj1;
23597 {
23598 PyThreadState* __tstate = wxPyBeginAllowThreads();
23599 wxToolBarToolBase_SetClientData(arg1,arg2);
23600 wxPyEndAllowThreads(__tstate);
23601 if (PyErr_Occurred()) SWIG_fail;
23602 }
23603 resultobj = SWIG_Py_Void();
23604 return resultobj;
23605fail:
23606 return NULL;
23607}
23608
23609
23610SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23611 PyObject *obj;
23612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23613 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23614 return SWIG_Py_Void();
23615}
23616
23617SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23618 PyObject *resultobj = 0;
23619 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23620 int arg2 ;
23621 wxString *arg3 = 0 ;
23622 wxBitmap *arg4 = 0 ;
23623 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23624 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23625 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23626 wxString const &arg7_defvalue = wxPyEmptyString ;
23627 wxString *arg7 = (wxString *) &arg7_defvalue ;
23628 wxString const &arg8_defvalue = wxPyEmptyString ;
23629 wxString *arg8 = (wxString *) &arg8_defvalue ;
23630 PyObject *arg9 = (PyObject *) NULL ;
23631 wxToolBarToolBase *result = 0 ;
23632 void *argp1 = 0 ;
23633 int res1 = 0 ;
23634 int val2 ;
23635 int ecode2 = 0 ;
23636 bool temp3 = false ;
23637 void *argp4 = 0 ;
23638 int res4 = 0 ;
23639 void *argp5 = 0 ;
23640 int res5 = 0 ;
23641 int val6 ;
23642 int ecode6 = 0 ;
23643 bool temp7 = false ;
23644 bool temp8 = false ;
23645 PyObject * obj0 = 0 ;
23646 PyObject * obj1 = 0 ;
23647 PyObject * obj2 = 0 ;
23648 PyObject * obj3 = 0 ;
23649 PyObject * obj4 = 0 ;
23650 PyObject * obj5 = 0 ;
23651 PyObject * obj6 = 0 ;
23652 PyObject * obj7 = 0 ;
23653 PyObject * obj8 = 0 ;
23654 char * kwnames[] = {
23655 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23656 };
23657
23658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23662 }
23663 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23664 ecode2 = SWIG_AsVal_int(obj1, &val2);
23665 if (!SWIG_IsOK(ecode2)) {
23666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23667 }
23668 arg2 = static_cast< int >(val2);
23669 {
23670 arg3 = wxString_in_helper(obj2);
23671 if (arg3 == NULL) SWIG_fail;
23672 temp3 = true;
23673 }
23674 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23675 if (!SWIG_IsOK(res4)) {
23676 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23677 }
23678 if (!argp4) {
23679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23680 }
23681 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23682 if (obj4) {
23683 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23684 if (!SWIG_IsOK(res5)) {
23685 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23686 }
23687 if (!argp5) {
23688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23689 }
23690 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23691 }
23692 if (obj5) {
23693 ecode6 = SWIG_AsVal_int(obj5, &val6);
23694 if (!SWIG_IsOK(ecode6)) {
23695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23696 }
23697 arg6 = static_cast< wxItemKind >(val6);
23698 }
23699 if (obj6) {
d55e5bfc 23700 {
554f62e9
RD
23701 arg7 = wxString_in_helper(obj6);
23702 if (arg7 == NULL) SWIG_fail;
23703 temp7 = true;
d55e5bfc 23704 }
554f62e9
RD
23705 }
23706 if (obj7) {
093d3ff1 23707 {
554f62e9
RD
23708 arg8 = wxString_in_helper(obj7);
23709 if (arg8 == NULL) SWIG_fail;
23710 temp8 = true;
093d3ff1 23711 }
554f62e9
RD
23712 }
23713 if (obj8) {
23714 arg9 = obj8;
23715 }
23716 {
23717 PyThreadState* __tstate = wxPyBeginAllowThreads();
23718 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 {
23723 resultobj = wxPyMake_wxObject(result, (bool)0);
23724 }
23725 {
23726 if (temp3)
23727 delete arg3;
23728 }
23729 {
23730 if (temp7)
23731 delete arg7;
23732 }
23733 {
23734 if (temp8)
23735 delete arg8;
23736 }
23737 return resultobj;
23738fail:
23739 {
23740 if (temp3)
23741 delete arg3;
23742 }
23743 {
23744 if (temp7)
23745 delete arg7;
23746 }
23747 {
23748 if (temp8)
23749 delete arg8;
23750 }
23751 return NULL;
23752}
23753
23754
23755SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23756 PyObject *resultobj = 0;
23757 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23758 size_t arg2 ;
23759 int arg3 ;
23760 wxString *arg4 = 0 ;
23761 wxBitmap *arg5 = 0 ;
23762 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23763 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23764 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23765 wxString const &arg8_defvalue = wxPyEmptyString ;
23766 wxString *arg8 = (wxString *) &arg8_defvalue ;
23767 wxString const &arg9_defvalue = wxPyEmptyString ;
23768 wxString *arg9 = (wxString *) &arg9_defvalue ;
23769 PyObject *arg10 = (PyObject *) NULL ;
23770 wxToolBarToolBase *result = 0 ;
23771 void *argp1 = 0 ;
23772 int res1 = 0 ;
23773 size_t val2 ;
23774 int ecode2 = 0 ;
23775 int val3 ;
23776 int ecode3 = 0 ;
23777 bool temp4 = false ;
23778 void *argp5 = 0 ;
23779 int res5 = 0 ;
23780 void *argp6 = 0 ;
23781 int res6 = 0 ;
23782 int val7 ;
23783 int ecode7 = 0 ;
23784 bool temp8 = false ;
23785 bool temp9 = false ;
23786 PyObject * obj0 = 0 ;
23787 PyObject * obj1 = 0 ;
23788 PyObject * obj2 = 0 ;
23789 PyObject * obj3 = 0 ;
23790 PyObject * obj4 = 0 ;
23791 PyObject * obj5 = 0 ;
23792 PyObject * obj6 = 0 ;
23793 PyObject * obj7 = 0 ;
23794 PyObject * obj8 = 0 ;
23795 PyObject * obj9 = 0 ;
23796 char * kwnames[] = {
23797 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23798 };
23799
23800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23802 if (!SWIG_IsOK(res1)) {
23803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23804 }
23805 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23806 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23807 if (!SWIG_IsOK(ecode2)) {
23808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23809 }
23810 arg2 = static_cast< size_t >(val2);
23811 ecode3 = SWIG_AsVal_int(obj2, &val3);
23812 if (!SWIG_IsOK(ecode3)) {
23813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23814 }
23815 arg3 = static_cast< int >(val3);
23816 {
23817 arg4 = wxString_in_helper(obj3);
23818 if (arg4 == NULL) SWIG_fail;
23819 temp4 = true;
23820 }
23821 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23822 if (!SWIG_IsOK(res5)) {
23823 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23824 }
23825 if (!argp5) {
23826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23827 }
23828 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23829 if (obj5) {
23830 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23831 if (!SWIG_IsOK(res6)) {
23832 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23833 }
554f62e9
RD
23834 if (!argp6) {
23835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23836 }
554f62e9
RD
23837 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23838 }
23839 if (obj6) {
23840 ecode7 = SWIG_AsVal_int(obj6, &val7);
23841 if (!SWIG_IsOK(ecode7)) {
23842 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23843 }
23844 arg7 = static_cast< wxItemKind >(val7);
23845 }
23846 if (obj7) {
d55e5bfc 23847 {
554f62e9
RD
23848 arg8 = wxString_in_helper(obj7);
23849 if (arg8 == NULL) SWIG_fail;
23850 temp8 = true;
d55e5bfc 23851 }
554f62e9
RD
23852 }
23853 if (obj8) {
d55e5bfc 23854 {
554f62e9
RD
23855 arg9 = wxString_in_helper(obj8);
23856 if (arg9 == NULL) SWIG_fail;
23857 temp9 = true;
d55e5bfc 23858 }
554f62e9
RD
23859 }
23860 if (obj9) {
23861 arg10 = obj9;
23862 }
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 {
23870 resultobj = wxPyMake_wxObject(result, (bool)0);
23871 }
23872 {
23873 if (temp4)
23874 delete arg4;
23875 }
23876 {
23877 if (temp8)
23878 delete arg8;
23879 }
23880 {
23881 if (temp9)
23882 delete arg9;
23883 }
23884 return resultobj;
23885fail:
23886 {
23887 if (temp4)
23888 delete arg4;
23889 }
23890 {
23891 if (temp8)
23892 delete arg8;
23893 }
23894 {
23895 if (temp9)
23896 delete arg9;
23897 }
23898 return NULL;
23899}
23900
23901
23902SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23903 PyObject *resultobj = 0;
23904 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23905 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23906 wxToolBarToolBase *result = 0 ;
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 void *argp2 = 0 ;
23910 int res2 = 0 ;
23911 PyObject * obj0 = 0 ;
23912 PyObject * obj1 = 0 ;
23913 char * kwnames[] = {
23914 (char *) "self",(char *) "tool", NULL
23915 };
23916
23917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23919 if (!SWIG_IsOK(res1)) {
23920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23921 }
23922 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23924 if (!SWIG_IsOK(res2)) {
23925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23926 }
23927 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23928 {
23929 PyThreadState* __tstate = wxPyBeginAllowThreads();
23930 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23931 wxPyEndAllowThreads(__tstate);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 }
23934 {
23935 resultobj = wxPyMake_wxObject(result, (bool)0);
23936 }
23937 return resultobj;
23938fail:
23939 return NULL;
23940}
23941
23942
23943SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23944 PyObject *resultobj = 0;
23945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23946 size_t arg2 ;
23947 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23948 wxToolBarToolBase *result = 0 ;
23949 void *argp1 = 0 ;
23950 int res1 = 0 ;
23951 size_t val2 ;
23952 int ecode2 = 0 ;
23953 void *argp3 = 0 ;
23954 int res3 = 0 ;
23955 PyObject * obj0 = 0 ;
23956 PyObject * obj1 = 0 ;
23957 PyObject * obj2 = 0 ;
23958 char * kwnames[] = {
23959 (char *) "self",(char *) "pos",(char *) "tool", NULL
23960 };
23961
23962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23964 if (!SWIG_IsOK(res1)) {
23965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23966 }
23967 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23968 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23969 if (!SWIG_IsOK(ecode2)) {
23970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23971 }
23972 arg2 = static_cast< size_t >(val2);
23973 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23974 if (!SWIG_IsOK(res3)) {
23975 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23976 }
23977 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23978 {
23979 PyThreadState* __tstate = wxPyBeginAllowThreads();
23980 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 {
23985 resultobj = wxPyMake_wxObject(result, (bool)0);
23986 }
23987 return resultobj;
23988fail:
23989 return NULL;
23990}
23991
23992
23993SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23994 PyObject *resultobj = 0;
23995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23996 wxControl *arg2 = (wxControl *) 0 ;
23997 wxToolBarToolBase *result = 0 ;
23998 void *argp1 = 0 ;
23999 int res1 = 0 ;
24000 void *argp2 = 0 ;
24001 int res2 = 0 ;
24002 PyObject * obj0 = 0 ;
24003 PyObject * obj1 = 0 ;
24004 char * kwnames[] = {
24005 (char *) "self",(char *) "control", NULL
24006 };
24007
24008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24010 if (!SWIG_IsOK(res1)) {
24011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24012 }
24013 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24015 if (!SWIG_IsOK(res2)) {
24016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24017 }
24018 arg2 = reinterpret_cast< wxControl * >(argp2);
24019 {
24020 PyThreadState* __tstate = wxPyBeginAllowThreads();
24021 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24022 wxPyEndAllowThreads(__tstate);
24023 if (PyErr_Occurred()) SWIG_fail;
24024 }
24025 {
24026 resultobj = wxPyMake_wxObject(result, (bool)0);
24027 }
24028 return resultobj;
24029fail:
24030 return NULL;
24031}
24032
24033
24034SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24035 PyObject *resultobj = 0;
24036 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24037 size_t arg2 ;
24038 wxControl *arg3 = (wxControl *) 0 ;
24039 wxToolBarToolBase *result = 0 ;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 size_t val2 ;
24043 int ecode2 = 0 ;
24044 void *argp3 = 0 ;
24045 int res3 = 0 ;
24046 PyObject * obj0 = 0 ;
24047 PyObject * obj1 = 0 ;
24048 PyObject * obj2 = 0 ;
24049 char * kwnames[] = {
24050 (char *) "self",(char *) "pos",(char *) "control", NULL
24051 };
24052
24053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24055 if (!SWIG_IsOK(res1)) {
24056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24057 }
24058 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24059 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24060 if (!SWIG_IsOK(ecode2)) {
24061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24062 }
24063 arg2 = static_cast< size_t >(val2);
24064 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24065 if (!SWIG_IsOK(res3)) {
24066 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24067 }
24068 arg3 = reinterpret_cast< wxControl * >(argp3);
24069 {
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 {
24076 resultobj = wxPyMake_wxObject(result, (bool)0);
24077 }
24078 return resultobj;
24079fail:
24080 return NULL;
24081}
24082
24083
24084SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24085 PyObject *resultobj = 0;
24086 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24087 int arg2 ;
24088 wxControl *result = 0 ;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 int val2 ;
24092 int ecode2 = 0 ;
24093 PyObject * obj0 = 0 ;
24094 PyObject * obj1 = 0 ;
24095 char * kwnames[] = {
24096 (char *) "self",(char *) "id", NULL
24097 };
24098
24099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24101 if (!SWIG_IsOK(res1)) {
24102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24103 }
24104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24105 ecode2 = SWIG_AsVal_int(obj1, &val2);
24106 if (!SWIG_IsOK(ecode2)) {
24107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24108 }
24109 arg2 = static_cast< int >(val2);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (wxControl *)(arg1)->FindControl(arg2);
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 {
24117 resultobj = wxPyMake_wxObject(result, 0);
24118 }
24119 return resultobj;
24120fail:
24121 return NULL;
d55e5bfc
RD
24122}
24123
24124
554f62e9
RD
24125SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24126 PyObject *resultobj = 0;
24127 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24128 wxToolBarToolBase *result = 0 ;
24129 void *argp1 = 0 ;
24130 int res1 = 0 ;
24131 PyObject *swig_obj[1] ;
24132
24133 if (!args) SWIG_fail;
24134 swig_obj[0] = args;
24135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24138 }
24139 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24140 {
24141 PyThreadState* __tstate = wxPyBeginAllowThreads();
24142 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24143 wxPyEndAllowThreads(__tstate);
24144 if (PyErr_Occurred()) SWIG_fail;
24145 }
24146 {
24147 resultobj = wxPyMake_wxObject(result, (bool)0);
24148 }
24149 return resultobj;
24150fail:
24151 return NULL;
24152}
24153
24154
24155SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24156 PyObject *resultobj = 0;
24157 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24158 size_t arg2 ;
24159 wxToolBarToolBase *result = 0 ;
24160 void *argp1 = 0 ;
24161 int res1 = 0 ;
24162 size_t val2 ;
24163 int ecode2 = 0 ;
24164 PyObject * obj0 = 0 ;
24165 PyObject * obj1 = 0 ;
24166 char * kwnames[] = {
24167 (char *) "self",(char *) "pos", NULL
24168 };
24169
24170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24172 if (!SWIG_IsOK(res1)) {
24173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24174 }
24175 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24176 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24177 if (!SWIG_IsOK(ecode2)) {
24178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24179 }
24180 arg2 = static_cast< size_t >(val2);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 resultobj = wxPyMake_wxObject(result, (bool)0);
24189 }
24190 return resultobj;
24191fail:
24192 return NULL;
24193}
24194
24195
24196SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj = 0;
24198 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24199 int arg2 ;
24200 wxToolBarToolBase *result = 0 ;
24201 void *argp1 = 0 ;
24202 int res1 = 0 ;
24203 int val2 ;
24204 int ecode2 = 0 ;
24205 PyObject * obj0 = 0 ;
24206 PyObject * obj1 = 0 ;
24207 char * kwnames[] = {
24208 (char *) "self",(char *) "id", NULL
24209 };
24210
24211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24213 if (!SWIG_IsOK(res1)) {
24214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24215 }
24216 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24217 ecode2 = SWIG_AsVal_int(obj1, &val2);
24218 if (!SWIG_IsOK(ecode2)) {
24219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24220 }
24221 arg2 = static_cast< int >(val2);
24222 {
24223 PyThreadState* __tstate = wxPyBeginAllowThreads();
24224 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24225 wxPyEndAllowThreads(__tstate);
24226 if (PyErr_Occurred()) SWIG_fail;
24227 }
24228 {
24229 resultobj = wxPyMake_wxObject(result, (bool)0);
24230 }
24231 return resultobj;
24232fail:
24233 return NULL;
24234}
24235
24236
24237SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj = 0;
24239 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24240 size_t arg2 ;
24241 bool result;
24242 void *argp1 = 0 ;
24243 int res1 = 0 ;
24244 size_t val2 ;
24245 int ecode2 = 0 ;
24246 PyObject * obj0 = 0 ;
24247 PyObject * obj1 = 0 ;
24248 char * kwnames[] = {
24249 (char *) "self",(char *) "pos", NULL
24250 };
24251
24252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24254 if (!SWIG_IsOK(res1)) {
24255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24256 }
24257 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24258 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24259 if (!SWIG_IsOK(ecode2)) {
24260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24261 }
24262 arg2 = static_cast< size_t >(val2);
24263 {
24264 PyThreadState* __tstate = wxPyBeginAllowThreads();
24265 result = (bool)(arg1)->DeleteToolByPos(arg2);
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 {
24270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24271 }
24272 return resultobj;
24273fail:
24274 return NULL;
24275}
24276
24277
24278SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj = 0;
24280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24281 int arg2 ;
24282 bool result;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 int val2 ;
24286 int ecode2 = 0 ;
24287 PyObject * obj0 = 0 ;
24288 PyObject * obj1 = 0 ;
24289 char * kwnames[] = {
24290 (char *) "self",(char *) "id", NULL
24291 };
24292
24293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24295 if (!SWIG_IsOK(res1)) {
24296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24297 }
24298 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24299 ecode2 = SWIG_AsVal_int(obj1, &val2);
24300 if (!SWIG_IsOK(ecode2)) {
24301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24302 }
24303 arg2 = static_cast< int >(val2);
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 result = (bool)(arg1)->DeleteTool(arg2);
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 {
24311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24312 }
24313 return resultobj;
24314fail:
24315 return NULL;
d55e5bfc
RD
24316}
24317
24318
554f62e9
RD
24319SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24320 PyObject *resultobj = 0;
24321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24322 void *argp1 = 0 ;
24323 int res1 = 0 ;
24324 PyObject *swig_obj[1] ;
24325
24326 if (!args) SWIG_fail;
24327 swig_obj[0] = args;
24328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24329 if (!SWIG_IsOK(res1)) {
24330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24331 }
24332 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 (arg1)->ClearTools();
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 resultobj = SWIG_Py_Void();
24340 return resultobj;
24341fail:
24342 return NULL;
f20a2e1f
RD
24343}
24344
24345
554f62e9
RD
24346SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24347 PyObject *resultobj = 0;
24348 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24349 bool result;
24350 void *argp1 = 0 ;
24351 int res1 = 0 ;
24352 PyObject *swig_obj[1] ;
24353
24354 if (!args) SWIG_fail;
24355 swig_obj[0] = args;
24356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24357 if (!SWIG_IsOK(res1)) {
24358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24359 }
24360 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 result = (bool)(arg1)->Realize();
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 {
24368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24369 }
24370 return resultobj;
24371fail:
24372 return NULL;
24373}
24374
24375
24376SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24377 PyObject *resultobj = 0;
24378 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24379 int arg2 ;
24380 bool arg3 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 int val2 ;
24384 int ecode2 = 0 ;
24385 bool val3 ;
24386 int ecode3 = 0 ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 PyObject * obj2 = 0 ;
24390 char * kwnames[] = {
24391 (char *) "self",(char *) "id",(char *) "enable", NULL
24392 };
24393
24394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24398 }
24399 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24400 ecode2 = SWIG_AsVal_int(obj1, &val2);
24401 if (!SWIG_IsOK(ecode2)) {
24402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24403 }
24404 arg2 = static_cast< int >(val2);
24405 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24406 if (!SWIG_IsOK(ecode3)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24408 }
24409 arg3 = static_cast< bool >(val3);
24410 {
24411 PyThreadState* __tstate = wxPyBeginAllowThreads();
24412 (arg1)->EnableTool(arg2,arg3);
24413 wxPyEndAllowThreads(__tstate);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 }
24416 resultobj = SWIG_Py_Void();
24417 return resultobj;
24418fail:
24419 return NULL;
24420}
24421
24422
24423SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24424 PyObject *resultobj = 0;
24425 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24426 int arg2 ;
24427 bool arg3 ;
24428 void *argp1 = 0 ;
24429 int res1 = 0 ;
24430 int val2 ;
24431 int ecode2 = 0 ;
24432 bool val3 ;
24433 int ecode3 = 0 ;
24434 PyObject * obj0 = 0 ;
24435 PyObject * obj1 = 0 ;
24436 PyObject * obj2 = 0 ;
24437 char * kwnames[] = {
24438 (char *) "self",(char *) "id",(char *) "toggle", NULL
24439 };
24440
24441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24443 if (!SWIG_IsOK(res1)) {
24444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24445 }
24446 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24447 ecode2 = SWIG_AsVal_int(obj1, &val2);
24448 if (!SWIG_IsOK(ecode2)) {
24449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24450 }
24451 arg2 = static_cast< int >(val2);
24452 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24453 if (!SWIG_IsOK(ecode3)) {
24454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24455 }
24456 arg3 = static_cast< bool >(val3);
24457 {
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
24459 (arg1)->ToggleTool(arg2,arg3);
24460 wxPyEndAllowThreads(__tstate);
24461 if (PyErr_Occurred()) SWIG_fail;
24462 }
24463 resultobj = SWIG_Py_Void();
24464 return resultobj;
24465fail:
24466 return NULL;
24467}
24468
24469
24470SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24473 int arg2 ;
24474 bool arg3 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 int val2 ;
24478 int ecode2 = 0 ;
24479 bool val3 ;
24480 int ecode3 = 0 ;
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 PyObject * obj2 = 0 ;
24484 char * kwnames[] = {
24485 (char *) "self",(char *) "id",(char *) "toggle", NULL
24486 };
24487
24488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24490 if (!SWIG_IsOK(res1)) {
24491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24492 }
24493 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24494 ecode2 = SWIG_AsVal_int(obj1, &val2);
24495 if (!SWIG_IsOK(ecode2)) {
24496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24497 }
24498 arg2 = static_cast< int >(val2);
24499 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24500 if (!SWIG_IsOK(ecode3)) {
24501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24502 }
24503 arg3 = static_cast< bool >(val3);
24504 {
24505 PyThreadState* __tstate = wxPyBeginAllowThreads();
24506 (arg1)->SetToggle(arg2,arg3);
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 resultobj = SWIG_Py_Void();
24511 return resultobj;
24512fail:
24513 return NULL;
24514}
24515
24516
24517SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj = 0;
24519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24520 int arg2 ;
24521 PyObject *result = 0 ;
24522 void *argp1 = 0 ;
24523 int res1 = 0 ;
24524 int val2 ;
24525 int ecode2 = 0 ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 char * kwnames[] = {
24529 (char *) "self",(char *) "id", NULL
24530 };
24531
24532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24534 if (!SWIG_IsOK(res1)) {
24535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24536 }
24537 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24538 ecode2 = SWIG_AsVal_int(obj1, &val2);
24539 if (!SWIG_IsOK(ecode2)) {
24540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24541 }
24542 arg2 = static_cast< int >(val2);
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24546 wxPyEndAllowThreads(__tstate);
24547 if (PyErr_Occurred()) SWIG_fail;
24548 }
24549 resultobj = result;
24550 return resultobj;
24551fail:
24552 return NULL;
24553}
24554
24555
24556SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24557 PyObject *resultobj = 0;
24558 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24559 int arg2 ;
24560 PyObject *arg3 = (PyObject *) 0 ;
24561 void *argp1 = 0 ;
24562 int res1 = 0 ;
24563 int val2 ;
24564 int ecode2 = 0 ;
24565 PyObject * obj0 = 0 ;
24566 PyObject * obj1 = 0 ;
24567 PyObject * obj2 = 0 ;
24568 char * kwnames[] = {
24569 (char *) "self",(char *) "id",(char *) "clientData", NULL
24570 };
24571
24572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24574 if (!SWIG_IsOK(res1)) {
24575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24576 }
24577 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24578 ecode2 = SWIG_AsVal_int(obj1, &val2);
24579 if (!SWIG_IsOK(ecode2)) {
24580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24581 }
24582 arg2 = static_cast< int >(val2);
24583 arg3 = obj2;
24584 {
24585 PyThreadState* __tstate = wxPyBeginAllowThreads();
24586 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 resultobj = SWIG_Py_Void();
24591 return resultobj;
24592fail:
24593 return NULL;
24594}
24595
24596
24597SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24598 PyObject *resultobj = 0;
24599 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24600 int arg2 ;
24601 int result;
24602 void *argp1 = 0 ;
24603 int res1 = 0 ;
24604 int val2 ;
24605 int ecode2 = 0 ;
24606 PyObject * obj0 = 0 ;
24607 PyObject * obj1 = 0 ;
24608 char * kwnames[] = {
24609 (char *) "self",(char *) "id", NULL
24610 };
24611
24612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24614 if (!SWIG_IsOK(res1)) {
24615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24616 }
24617 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24618 ecode2 = SWIG_AsVal_int(obj1, &val2);
24619 if (!SWIG_IsOK(ecode2)) {
24620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24621 }
24622 arg2 = static_cast< int >(val2);
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24626 wxPyEndAllowThreads(__tstate);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 }
24629 resultobj = SWIG_From_int(static_cast< int >(result));
24630 return resultobj;
24631fail:
24632 return NULL;
24633}
24634
24635
24636SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24637 PyObject *resultobj = 0;
24638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24639 int arg2 ;
24640 bool result;
24641 void *argp1 = 0 ;
24642 int res1 = 0 ;
24643 int val2 ;
24644 int ecode2 = 0 ;
24645 PyObject * obj0 = 0 ;
24646 PyObject * obj1 = 0 ;
24647 char * kwnames[] = {
24648 (char *) "self",(char *) "id", NULL
24649 };
24650
24651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24653 if (!SWIG_IsOK(res1)) {
24654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24655 }
24656 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24657 ecode2 = SWIG_AsVal_int(obj1, &val2);
24658 if (!SWIG_IsOK(ecode2)) {
24659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24660 }
24661 arg2 = static_cast< int >(val2);
24662 {
24663 PyThreadState* __tstate = wxPyBeginAllowThreads();
24664 result = (bool)(arg1)->GetToolState(arg2);
24665 wxPyEndAllowThreads(__tstate);
24666 if (PyErr_Occurred()) SWIG_fail;
24667 }
24668 {
24669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24670 }
24671 return resultobj;
24672fail:
24673 return NULL;
24674}
24675
24676
24677SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24678 PyObject *resultobj = 0;
24679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24680 int arg2 ;
24681 bool result;
24682 void *argp1 = 0 ;
24683 int res1 = 0 ;
24684 int val2 ;
24685 int ecode2 = 0 ;
24686 PyObject * obj0 = 0 ;
24687 PyObject * obj1 = 0 ;
24688 char * kwnames[] = {
24689 (char *) "self",(char *) "id", NULL
24690 };
24691
24692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24694 if (!SWIG_IsOK(res1)) {
24695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24696 }
24697 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24698 ecode2 = SWIG_AsVal_int(obj1, &val2);
24699 if (!SWIG_IsOK(ecode2)) {
24700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24701 }
24702 arg2 = static_cast< int >(val2);
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 result = (bool)(arg1)->GetToolEnabled(arg2);
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 {
24710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24711 }
24712 return resultobj;
24713fail:
24714 return NULL;
24715}
24716
24717
24718SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj = 0;
24720 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24721 int arg2 ;
24722 wxString *arg3 = 0 ;
24723 void *argp1 = 0 ;
24724 int res1 = 0 ;
24725 int val2 ;
24726 int ecode2 = 0 ;
24727 bool temp3 = false ;
24728 PyObject * obj0 = 0 ;
24729 PyObject * obj1 = 0 ;
24730 PyObject * obj2 = 0 ;
24731 char * kwnames[] = {
24732 (char *) "self",(char *) "id",(char *) "helpString", NULL
24733 };
24734
24735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24739 }
24740 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24741 ecode2 = SWIG_AsVal_int(obj1, &val2);
24742 if (!SWIG_IsOK(ecode2)) {
24743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24744 }
24745 arg2 = static_cast< int >(val2);
24746 {
24747 arg3 = wxString_in_helper(obj2);
24748 if (arg3 == NULL) SWIG_fail;
24749 temp3 = true;
24750 }
24751 {
24752 PyThreadState* __tstate = wxPyBeginAllowThreads();
24753 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 resultobj = SWIG_Py_Void();
24758 {
24759 if (temp3)
24760 delete arg3;
24761 }
24762 return resultobj;
24763fail:
24764 {
24765 if (temp3)
24766 delete arg3;
24767 }
24768 return NULL;
24769}
24770
24771
24772SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj = 0;
24774 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24775 int arg2 ;
24776 wxString result;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 int val2 ;
24780 int ecode2 = 0 ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char * kwnames[] = {
24784 (char *) "self",(char *) "id", NULL
24785 };
24786
24787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24789 if (!SWIG_IsOK(res1)) {
24790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24791 }
24792 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24793 ecode2 = SWIG_AsVal_int(obj1, &val2);
24794 if (!SWIG_IsOK(ecode2)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24796 }
24797 arg2 = static_cast< int >(val2);
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 result = (arg1)->GetToolShortHelp(arg2);
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 {
d55e5bfc 24805#if wxUSE_UNICODE
554f62e9 24806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 24807#else
554f62e9 24808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 24809#endif
554f62e9
RD
24810 }
24811 return resultobj;
24812fail:
24813 return NULL;
24814}
24815
24816
24817SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24818 PyObject *resultobj = 0;
24819 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24820 int arg2 ;
24821 wxString *arg3 = 0 ;
24822 void *argp1 = 0 ;
24823 int res1 = 0 ;
24824 int val2 ;
24825 int ecode2 = 0 ;
24826 bool temp3 = false ;
24827 PyObject * obj0 = 0 ;
24828 PyObject * obj1 = 0 ;
24829 PyObject * obj2 = 0 ;
24830 char * kwnames[] = {
24831 (char *) "self",(char *) "id",(char *) "helpString", NULL
24832 };
24833
24834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24836 if (!SWIG_IsOK(res1)) {
24837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24838 }
24839 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24840 ecode2 = SWIG_AsVal_int(obj1, &val2);
24841 if (!SWIG_IsOK(ecode2)) {
24842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24843 }
24844 arg2 = static_cast< int >(val2);
24845 {
24846 arg3 = wxString_in_helper(obj2);
24847 if (arg3 == NULL) SWIG_fail;
24848 temp3 = true;
24849 }
24850 {
24851 PyThreadState* __tstate = wxPyBeginAllowThreads();
24852 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24853 wxPyEndAllowThreads(__tstate);
24854 if (PyErr_Occurred()) SWIG_fail;
24855 }
24856 resultobj = SWIG_Py_Void();
24857 {
24858 if (temp3)
24859 delete arg3;
24860 }
24861 return resultobj;
24862fail:
24863 {
24864 if (temp3)
24865 delete arg3;
24866 }
24867 return NULL;
24868}
24869
24870
24871SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24872 PyObject *resultobj = 0;
24873 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24874 int arg2 ;
24875 wxString result;
24876 void *argp1 = 0 ;
24877 int res1 = 0 ;
24878 int val2 ;
24879 int ecode2 = 0 ;
24880 PyObject * obj0 = 0 ;
24881 PyObject * obj1 = 0 ;
24882 char * kwnames[] = {
24883 (char *) "self",(char *) "id", NULL
24884 };
24885
24886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24890 }
24891 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24892 ecode2 = SWIG_AsVal_int(obj1, &val2);
24893 if (!SWIG_IsOK(ecode2)) {
24894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24895 }
24896 arg2 = static_cast< int >(val2);
24897 {
24898 PyThreadState* __tstate = wxPyBeginAllowThreads();
24899 result = (arg1)->GetToolLongHelp(arg2);
24900 wxPyEndAllowThreads(__tstate);
24901 if (PyErr_Occurred()) SWIG_fail;
24902 }
24903 {
24904#if wxUSE_UNICODE
24905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24906#else
24907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24908#endif
24909 }
24910 return resultobj;
24911fail:
24912 return NULL;
24913}
24914
24915
24916SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24917 PyObject *resultobj = 0;
24918 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24919 int arg2 ;
24920 int arg3 ;
24921 void *argp1 = 0 ;
24922 int res1 = 0 ;
24923 int val2 ;
24924 int ecode2 = 0 ;
24925 int val3 ;
24926 int ecode3 = 0 ;
24927 PyObject * obj0 = 0 ;
24928 PyObject * obj1 = 0 ;
24929 PyObject * obj2 = 0 ;
24930 char * kwnames[] = {
24931 (char *) "self",(char *) "x",(char *) "y", NULL
24932 };
24933
24934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24938 }
24939 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24940 ecode2 = SWIG_AsVal_int(obj1, &val2);
24941 if (!SWIG_IsOK(ecode2)) {
24942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24943 }
24944 arg2 = static_cast< int >(val2);
24945 ecode3 = SWIG_AsVal_int(obj2, &val3);
24946 if (!SWIG_IsOK(ecode3)) {
24947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24948 }
24949 arg3 = static_cast< int >(val3);
24950 {
24951 PyThreadState* __tstate = wxPyBeginAllowThreads();
24952 (arg1)->SetMargins(arg2,arg3);
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 resultobj = SWIG_Py_Void();
24957 return resultobj;
24958fail:
24959 return NULL;
24960}
24961
24962
24963SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24964 PyObject *resultobj = 0;
24965 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24966 wxSize *arg2 = 0 ;
24967 void *argp1 = 0 ;
24968 int res1 = 0 ;
24969 wxSize temp2 ;
24970 PyObject * obj0 = 0 ;
24971 PyObject * obj1 = 0 ;
24972 char * kwnames[] = {
24973 (char *) "self",(char *) "size", NULL
24974 };
24975
24976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24978 if (!SWIG_IsOK(res1)) {
24979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24980 }
24981 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24982 {
24983 arg2 = &temp2;
24984 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24985 }
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 (arg1)->SetMargins((wxSize const &)*arg2);
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_Py_Void();
24993 return resultobj;
24994fail:
24995 return NULL;
24996}
24997
24998
24999SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj = 0;
25001 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25002 int arg2 ;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 int val2 ;
25006 int ecode2 = 0 ;
25007 PyObject * obj0 = 0 ;
25008 PyObject * obj1 = 0 ;
25009 char * kwnames[] = {
25010 (char *) "self",(char *) "packing", NULL
25011 };
25012
25013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25015 if (!SWIG_IsOK(res1)) {
25016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25017 }
25018 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25019 ecode2 = SWIG_AsVal_int(obj1, &val2);
25020 if (!SWIG_IsOK(ecode2)) {
25021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25022 }
25023 arg2 = static_cast< int >(val2);
25024 {
25025 PyThreadState* __tstate = wxPyBeginAllowThreads();
25026 (arg1)->SetToolPacking(arg2);
25027 wxPyEndAllowThreads(__tstate);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 resultobj = SWIG_Py_Void();
25031 return resultobj;
25032fail:
25033 return NULL;
25034}
25035
25036
25037SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25040 int arg2 ;
25041 void *argp1 = 0 ;
25042 int res1 = 0 ;
25043 int val2 ;
25044 int ecode2 = 0 ;
25045 PyObject * obj0 = 0 ;
25046 PyObject * obj1 = 0 ;
25047 char * kwnames[] = {
25048 (char *) "self",(char *) "separation", NULL
25049 };
25050
25051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25053 if (!SWIG_IsOK(res1)) {
25054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25055 }
25056 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25057 ecode2 = SWIG_AsVal_int(obj1, &val2);
25058 if (!SWIG_IsOK(ecode2)) {
25059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25060 }
25061 arg2 = static_cast< int >(val2);
25062 {
25063 PyThreadState* __tstate = wxPyBeginAllowThreads();
25064 (arg1)->SetToolSeparation(arg2);
25065 wxPyEndAllowThreads(__tstate);
25066 if (PyErr_Occurred()) SWIG_fail;
25067 }
25068 resultobj = SWIG_Py_Void();
25069 return resultobj;
25070fail:
25071 return NULL;
d55e5bfc
RD
25072}
25073
25074
554f62e9
RD
25075SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25076 PyObject *resultobj = 0;
25077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25078 wxSize result;
25079 void *argp1 = 0 ;
25080 int res1 = 0 ;
25081 PyObject *swig_obj[1] ;
25082
25083 if (!args) SWIG_fail;
25084 swig_obj[0] = args;
25085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25086 if (!SWIG_IsOK(res1)) {
25087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25088 }
25089 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25090 {
25091 PyThreadState* __tstate = wxPyBeginAllowThreads();
25092 result = (arg1)->GetToolMargins();
25093 wxPyEndAllowThreads(__tstate);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 }
25096 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25097 return resultobj;
25098fail:
25099 return NULL;
d55e5bfc
RD
25100}
25101
25102
554f62e9
RD
25103SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25104 PyObject *resultobj = 0;
25105 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25106 wxSize result;
25107 void *argp1 = 0 ;
25108 int res1 = 0 ;
25109 PyObject *swig_obj[1] ;
25110
25111 if (!args) SWIG_fail;
25112 swig_obj[0] = args;
25113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25114 if (!SWIG_IsOK(res1)) {
25115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25116 }
25117 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 result = (arg1)->GetMargins();
25121 wxPyEndAllowThreads(__tstate);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25125 return resultobj;
25126fail:
25127 return NULL;
d55e5bfc
RD
25128}
25129
25130
554f62e9
RD
25131SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25132 PyObject *resultobj = 0;
25133 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25134 int result;
25135 void *argp1 = 0 ;
25136 int res1 = 0 ;
25137 PyObject *swig_obj[1] ;
25138
25139 if (!args) SWIG_fail;
25140 swig_obj[0] = args;
25141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25142 if (!SWIG_IsOK(res1)) {
25143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25144 }
25145 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 result = (int)(arg1)->GetToolPacking();
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = SWIG_From_int(static_cast< int >(result));
25153 return resultobj;
25154fail:
25155 return NULL;
d55e5bfc
RD
25156}
25157
25158
554f62e9
RD
25159SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25160 PyObject *resultobj = 0;
25161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25162 int result;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 PyObject *swig_obj[1] ;
25166
25167 if (!args) SWIG_fail;
25168 swig_obj[0] = args;
25169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25172 }
25173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (int)(arg1)->GetToolSeparation();
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_From_int(static_cast< int >(result));
25181 return resultobj;
25182fail:
25183 return NULL;
25184}
25185
25186
25187SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj = 0;
25189 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25190 int arg2 ;
25191 void *argp1 = 0 ;
25192 int res1 = 0 ;
25193 int val2 ;
25194 int ecode2 = 0 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 char * kwnames[] = {
25198 (char *) "self",(char *) "nRows", NULL
25199 };
25200
25201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25203 if (!SWIG_IsOK(res1)) {
25204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25205 }
25206 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25207 ecode2 = SWIG_AsVal_int(obj1, &val2);
25208 if (!SWIG_IsOK(ecode2)) {
25209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25210 }
25211 arg2 = static_cast< int >(val2);
25212 {
25213 PyThreadState* __tstate = wxPyBeginAllowThreads();
25214 (arg1)->SetRows(arg2);
25215 wxPyEndAllowThreads(__tstate);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_Py_Void();
25219 return resultobj;
25220fail:
25221 return NULL;
25222}
25223
25224
25225SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25226 PyObject *resultobj = 0;
25227 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25228 int arg2 ;
25229 int arg3 ;
25230 void *argp1 = 0 ;
25231 int res1 = 0 ;
25232 int val2 ;
25233 int ecode2 = 0 ;
25234 int val3 ;
25235 int ecode3 = 0 ;
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 PyObject * obj2 = 0 ;
25239 char * kwnames[] = {
25240 (char *) "self",(char *) "rows",(char *) "cols", NULL
25241 };
25242
25243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25247 }
25248 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25249 ecode2 = SWIG_AsVal_int(obj1, &val2);
25250 if (!SWIG_IsOK(ecode2)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25252 }
25253 arg2 = static_cast< int >(val2);
25254 ecode3 = SWIG_AsVal_int(obj2, &val3);
25255 if (!SWIG_IsOK(ecode3)) {
25256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25257 }
25258 arg3 = static_cast< int >(val3);
25259 {
25260 PyThreadState* __tstate = wxPyBeginAllowThreads();
25261 (arg1)->SetMaxRowsCols(arg2,arg3);
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_Py_Void();
25266 return resultobj;
25267fail:
25268 return NULL;
d55e5bfc
RD
25269}
25270
25271
554f62e9
RD
25272SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25273 PyObject *resultobj = 0;
25274 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25275 int result;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 PyObject *swig_obj[1] ;
25279
25280 if (!args) SWIG_fail;
25281 swig_obj[0] = args;
25282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25283 if (!SWIG_IsOK(res1)) {
25284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25285 }
25286 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 result = (int)(arg1)->GetMaxRows();
25290 wxPyEndAllowThreads(__tstate);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 resultobj = SWIG_From_int(static_cast< int >(result));
25294 return resultobj;
25295fail:
25296 return NULL;
d55e5bfc
RD
25297}
25298
25299
554f62e9
RD
25300SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 PyObject *resultobj = 0;
25302 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25303 int result;
25304 void *argp1 = 0 ;
25305 int res1 = 0 ;
25306 PyObject *swig_obj[1] ;
25307
25308 if (!args) SWIG_fail;
25309 swig_obj[0] = args;
25310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25313 }
25314 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25315 {
25316 PyThreadState* __tstate = wxPyBeginAllowThreads();
25317 result = (int)(arg1)->GetMaxCols();
25318 wxPyEndAllowThreads(__tstate);
25319 if (PyErr_Occurred()) SWIG_fail;
25320 }
25321 resultobj = SWIG_From_int(static_cast< int >(result));
25322 return resultobj;
25323fail:
25324 return NULL;
25325}
25326
25327
25328SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25329 PyObject *resultobj = 0;
25330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25331 wxSize *arg2 = 0 ;
25332 void *argp1 = 0 ;
25333 int res1 = 0 ;
25334 wxSize temp2 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 char * kwnames[] = {
25338 (char *) "self",(char *) "size", NULL
25339 };
25340
25341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25343 if (!SWIG_IsOK(res1)) {
25344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25345 }
25346 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25347 {
25348 arg2 = &temp2;
25349 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25350 }
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 resultobj = SWIG_Py_Void();
25358 return resultobj;
25359fail:
25360 return NULL;
d55e5bfc
RD
25361}
25362
25363
554f62e9
RD
25364SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25365 PyObject *resultobj = 0;
25366 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25367 wxSize result;
25368 void *argp1 = 0 ;
25369 int res1 = 0 ;
25370 PyObject *swig_obj[1] ;
25371
25372 if (!args) SWIG_fail;
25373 swig_obj[0] = args;
25374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25377 }
25378 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25379 {
25380 PyThreadState* __tstate = wxPyBeginAllowThreads();
25381 result = (arg1)->GetToolBitmapSize();
25382 wxPyEndAllowThreads(__tstate);
25383 if (PyErr_Occurred()) SWIG_fail;
25384 }
25385 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25386 return resultobj;
25387fail:
25388 return NULL;
d55e5bfc
RD
25389}
25390
25391
554f62e9
RD
25392SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25393 PyObject *resultobj = 0;
25394 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25395 wxSize result;
25396 void *argp1 = 0 ;
25397 int res1 = 0 ;
25398 PyObject *swig_obj[1] ;
25399
25400 if (!args) SWIG_fail;
25401 swig_obj[0] = args;
25402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25403 if (!SWIG_IsOK(res1)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25405 }
25406 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25407 {
25408 PyThreadState* __tstate = wxPyBeginAllowThreads();
25409 result = (arg1)->GetToolSize();
25410 wxPyEndAllowThreads(__tstate);
25411 if (PyErr_Occurred()) SWIG_fail;
25412 }
25413 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25414 return resultobj;
25415fail:
25416 return NULL;
25417}
25418
25419
25420SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25421 PyObject *resultobj = 0;
25422 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25423 int arg2 ;
25424 int arg3 ;
25425 wxToolBarToolBase *result = 0 ;
25426 void *argp1 = 0 ;
25427 int res1 = 0 ;
25428 int val2 ;
25429 int ecode2 = 0 ;
25430 int val3 ;
25431 int ecode3 = 0 ;
25432 PyObject * obj0 = 0 ;
25433 PyObject * obj1 = 0 ;
25434 PyObject * obj2 = 0 ;
25435 char * kwnames[] = {
25436 (char *) "self",(char *) "x",(char *) "y", NULL
25437 };
25438
25439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25443 }
25444 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25445 ecode2 = SWIG_AsVal_int(obj1, &val2);
25446 if (!SWIG_IsOK(ecode2)) {
25447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25448 }
25449 arg2 = static_cast< int >(val2);
25450 ecode3 = SWIG_AsVal_int(obj2, &val3);
25451 if (!SWIG_IsOK(ecode3)) {
25452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25453 }
25454 arg3 = static_cast< int >(val3);
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 {
25462 resultobj = wxPyMake_wxObject(result, (bool)0);
25463 }
25464 return resultobj;
25465fail:
25466 return NULL;
25467}
25468
25469
25470SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25471 PyObject *resultobj = 0;
25472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25473 int arg2 ;
25474 wxToolBarToolBase *result = 0 ;
25475 void *argp1 = 0 ;
25476 int res1 = 0 ;
25477 int val2 ;
25478 int ecode2 = 0 ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 char * kwnames[] = {
25482 (char *) "self",(char *) "toolid", NULL
25483 };
25484
25485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25487 if (!SWIG_IsOK(res1)) {
25488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25489 }
25490 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25491 ecode2 = SWIG_AsVal_int(obj1, &val2);
25492 if (!SWIG_IsOK(ecode2)) {
25493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25494 }
25495 arg2 = static_cast< int >(val2);
25496 {
25497 PyThreadState* __tstate = wxPyBeginAllowThreads();
25498 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25499 wxPyEndAllowThreads(__tstate);
25500 if (PyErr_Occurred()) SWIG_fail;
25501 }
25502 {
25503 resultobj = wxPyMake_wxObject(result, (bool)0);
25504 }
25505 return resultobj;
25506fail:
25507 return NULL;
d55e5bfc
RD
25508}
25509
25510
554f62e9
RD
25511SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25512 PyObject *resultobj = 0;
25513 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25514 bool result;
25515 void *argp1 = 0 ;
25516 int res1 = 0 ;
25517 PyObject *swig_obj[1] ;
25518
25519 if (!args) SWIG_fail;
25520 swig_obj[0] = args;
25521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25522 if (!SWIG_IsOK(res1)) {
25523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25524 }
25525 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25526 {
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 result = (bool)(arg1)->IsVertical();
25529 wxPyEndAllowThreads(__tstate);
25530 if (PyErr_Occurred()) SWIG_fail;
25531 }
25532 {
25533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25534 }
25535 return resultobj;
25536fail:
25537 return NULL;
d55e5bfc
RD
25538}
25539
25540
554f62e9
RD
25541SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *resultobj = 0;
25543 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25544 size_t result;
25545 void *argp1 = 0 ;
25546 int res1 = 0 ;
25547 PyObject *swig_obj[1] ;
25548
25549 if (!args) SWIG_fail;
25550 swig_obj[0] = args;
25551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25552 if (!SWIG_IsOK(res1)) {
25553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25554 }
25555 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25559 wxPyEndAllowThreads(__tstate);
25560 if (PyErr_Occurred()) SWIG_fail;
25561 }
25562 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25563 return resultobj;
25564fail:
25565 return NULL;
25566}
25567
25568
25569SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25570 PyObject *obj;
25571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25572 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25573 return SWIG_Py_Void();
25574}
25575
25576SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25577 PyObject *resultobj = 0;
25578 wxWindow *arg1 = (wxWindow *) 0 ;
25579 int arg2 = (int) -1 ;
25580 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25581 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25582 wxSize const &arg4_defvalue = wxDefaultSize ;
25583 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25584 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25585 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25586 wxString *arg6 = (wxString *) &arg6_defvalue ;
25587 wxToolBar *result = 0 ;
25588 void *argp1 = 0 ;
25589 int res1 = 0 ;
25590 int val2 ;
25591 int ecode2 = 0 ;
25592 wxPoint temp3 ;
25593 wxSize temp4 ;
25594 long val5 ;
25595 int ecode5 = 0 ;
25596 bool temp6 = false ;
25597 PyObject * obj0 = 0 ;
25598 PyObject * obj1 = 0 ;
25599 PyObject * obj2 = 0 ;
25600 PyObject * obj3 = 0 ;
25601 PyObject * obj4 = 0 ;
25602 PyObject * obj5 = 0 ;
25603 char * kwnames[] = {
25604 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25605 };
25606
25607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25609 if (!SWIG_IsOK(res1)) {
25610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25611 }
25612 arg1 = reinterpret_cast< wxWindow * >(argp1);
25613 if (obj1) {
25614 ecode2 = SWIG_AsVal_int(obj1, &val2);
25615 if (!SWIG_IsOK(ecode2)) {
25616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25617 }
25618 arg2 = static_cast< int >(val2);
25619 }
25620 if (obj2) {
d55e5bfc 25621 {
554f62e9
RD
25622 arg3 = &temp3;
25623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25624 }
554f62e9
RD
25625 }
25626 if (obj3) {
093d3ff1 25627 {
554f62e9
RD
25628 arg4 = &temp4;
25629 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25630 }
554f62e9
RD
25631 }
25632 if (obj4) {
25633 ecode5 = SWIG_AsVal_long(obj4, &val5);
25634 if (!SWIG_IsOK(ecode5)) {
25635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25636 }
25637 arg5 = static_cast< long >(val5);
25638 }
25639 if (obj5) {
d55e5bfc 25640 {
554f62e9
RD
25641 arg6 = wxString_in_helper(obj5);
25642 if (arg6 == NULL) SWIG_fail;
25643 temp6 = true;
d55e5bfc 25644 }
554f62e9
RD
25645 }
25646 {
25647 if (!wxPyCheckForApp()) SWIG_fail;
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25650 wxPyEndAllowThreads(__tstate);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25654 {
25655 if (temp6)
25656 delete arg6;
25657 }
25658 return resultobj;
25659fail:
25660 {
25661 if (temp6)
25662 delete arg6;
25663 }
25664 return NULL;
d55e5bfc
RD
25665}
25666
25667
554f62e9
RD
25668SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25669 PyObject *resultobj = 0;
25670 wxToolBar *result = 0 ;
25671
25672 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25673 {
25674 if (!wxPyCheckForApp()) SWIG_fail;
25675 PyThreadState* __tstate = wxPyBeginAllowThreads();
25676 result = (wxToolBar *)new wxToolBar();
25677 wxPyEndAllowThreads(__tstate);
25678 if (PyErr_Occurred()) SWIG_fail;
25679 }
25680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25681 return resultobj;
25682fail:
25683 return NULL;
25684}
25685
25686
25687SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25688 PyObject *resultobj = 0;
25689 wxToolBar *arg1 = (wxToolBar *) 0 ;
25690 wxWindow *arg2 = (wxWindow *) 0 ;
25691 int arg3 = (int) -1 ;
25692 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25693 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25694 wxSize const &arg5_defvalue = wxDefaultSize ;
25695 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25696 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25697 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25698 wxString *arg7 = (wxString *) &arg7_defvalue ;
25699 bool result;
25700 void *argp1 = 0 ;
25701 int res1 = 0 ;
25702 void *argp2 = 0 ;
25703 int res2 = 0 ;
25704 int val3 ;
25705 int ecode3 = 0 ;
25706 wxPoint temp4 ;
25707 wxSize temp5 ;
25708 long val6 ;
25709 int ecode6 = 0 ;
25710 bool temp7 = false ;
25711 PyObject * obj0 = 0 ;
25712 PyObject * obj1 = 0 ;
25713 PyObject * obj2 = 0 ;
25714 PyObject * obj3 = 0 ;
25715 PyObject * obj4 = 0 ;
25716 PyObject * obj5 = 0 ;
25717 PyObject * obj6 = 0 ;
25718 char * kwnames[] = {
25719 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25720 };
25721
25722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25724 if (!SWIG_IsOK(res1)) {
25725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25726 }
25727 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25729 if (!SWIG_IsOK(res2)) {
25730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25731 }
25732 arg2 = reinterpret_cast< wxWindow * >(argp2);
25733 if (obj2) {
25734 ecode3 = SWIG_AsVal_int(obj2, &val3);
25735 if (!SWIG_IsOK(ecode3)) {
25736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25737 }
25738 arg3 = static_cast< int >(val3);
25739 }
25740 if (obj3) {
d55e5bfc 25741 {
554f62e9
RD
25742 arg4 = &temp4;
25743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25744 }
554f62e9
RD
25745 }
25746 if (obj4) {
093d3ff1 25747 {
554f62e9
RD
25748 arg5 = &temp5;
25749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 25750 }
554f62e9
RD
25751 }
25752 if (obj5) {
25753 ecode6 = SWIG_AsVal_long(obj5, &val6);
25754 if (!SWIG_IsOK(ecode6)) {
25755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25756 }
25757 arg6 = static_cast< long >(val6);
25758 }
25759 if (obj6) {
25760 {
25761 arg7 = wxString_in_helper(obj6);
25762 if (arg7 == NULL) SWIG_fail;
25763 temp7 = true;
25764 }
25765 }
25766 {
25767 PyThreadState* __tstate = wxPyBeginAllowThreads();
25768 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25769 wxPyEndAllowThreads(__tstate);
25770 if (PyErr_Occurred()) SWIG_fail;
25771 }
25772 {
25773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25774 }
25775 {
25776 if (temp7)
25777 delete arg7;
25778 }
25779 return resultobj;
25780fail:
25781 {
25782 if (temp7)
25783 delete arg7;
25784 }
25785 return NULL;
25786}
25787
25788
554f62e9
RD
25789SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25790 PyObject *resultobj = 0;
25791 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25792 SwigValueWrapper<wxVisualAttributes > result;
25793 int val1 ;
25794 int ecode1 = 0 ;
25795 PyObject * obj0 = 0 ;
25796 char * kwnames[] = {
25797 (char *) "variant", NULL
25798 };
25799
25800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25801 if (obj0) {
25802 ecode1 = SWIG_AsVal_int(obj0, &val1);
25803 if (!SWIG_IsOK(ecode1)) {
25804 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25805 }
25806 arg1 = static_cast< wxWindowVariant >(val1);
25807 }
25808 {
25809 if (!wxPyCheckForApp()) SWIG_fail;
25810 PyThreadState* __tstate = wxPyBeginAllowThreads();
25811 result = wxToolBar::GetClassDefaultAttributes(arg1);
25812 wxPyEndAllowThreads(__tstate);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25816 return resultobj;
25817fail:
25818 return NULL;
d55e5bfc
RD
25819}
25820
25821
554f62e9
RD
25822SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25823 PyObject *obj;
25824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25825 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25826 return SWIG_Py_Void();
d55e5bfc
RD
25827}
25828
554f62e9
RD
25829SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25830 return SWIG_Python_InitShadowInstance(args);
25831}
d55e5bfc 25832
554f62e9
RD
25833SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25834 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25835 return 1;
d55e5bfc
RD
25836}
25837
25838
554f62e9
RD
25839SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25840 PyObject *pyobj = 0;
25841
25842 {
25843#if wxUSE_UNICODE
25844 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25845#else
25846 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25847#endif
25848 }
25849 return pyobj;
25850}
25851
25852
25853SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25854 PyObject *resultobj = 0;
25855 wxColour const &arg1_defvalue = wxNullColour ;
25856 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25857 wxColour const &arg2_defvalue = wxNullColour ;
25858 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25859 wxFont const &arg3_defvalue = wxNullFont ;
25860 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25861 wxListItemAttr *result = 0 ;
25862 wxColour temp1 ;
25863 wxColour temp2 ;
25864 void *argp3 = 0 ;
25865 int res3 = 0 ;
25866 PyObject * obj0 = 0 ;
25867 PyObject * obj1 = 0 ;
25868 PyObject * obj2 = 0 ;
25869 char * kwnames[] = {
25870 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25871 };
25872
25873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25874 if (obj0) {
093d3ff1 25875 {
554f62e9
RD
25876 arg1 = &temp1;
25877 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 25878 }
554f62e9
RD
25879 }
25880 if (obj1) {
d55e5bfc 25881 {
554f62e9
RD
25882 arg2 = &temp2;
25883 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 25884 }
554f62e9
RD
25885 }
25886 if (obj2) {
25887 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25888 if (!SWIG_IsOK(res3)) {
25889 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25890 }
25891 if (!argp3) {
25892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25893 }
25894 arg3 = reinterpret_cast< wxFont * >(argp3);
25895 }
25896 {
25897 PyThreadState* __tstate = wxPyBeginAllowThreads();
25898 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25899 wxPyEndAllowThreads(__tstate);
25900 if (PyErr_Occurred()) SWIG_fail;
25901 }
25902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25903 return resultobj;
25904fail:
25905 return NULL;
d55e5bfc
RD
25906}
25907
25908
554f62e9
RD
25909SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25910 PyObject *resultobj = 0;
25911 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25912 void *argp1 = 0 ;
25913 int res1 = 0 ;
25914 PyObject *swig_obj[1] ;
25915
25916 if (!args) SWIG_fail;
25917 swig_obj[0] = args;
25918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25921 }
25922 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25923 {
25924 PyThreadState* __tstate = wxPyBeginAllowThreads();
25925 delete arg1;
d55e5bfc 25926
554f62e9
RD
25927 wxPyEndAllowThreads(__tstate);
25928 if (PyErr_Occurred()) SWIG_fail;
25929 }
25930 resultobj = SWIG_Py_Void();
25931 return resultobj;
25932fail:
25933 return NULL;
25934}
25935
25936
25937SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25938 PyObject *resultobj = 0;
25939 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25940 wxColour *arg2 = 0 ;
25941 void *argp1 = 0 ;
25942 int res1 = 0 ;
25943 wxColour temp2 ;
25944 PyObject * obj0 = 0 ;
25945 PyObject * obj1 = 0 ;
25946 char * kwnames[] = {
25947 (char *) "self",(char *) "colText", NULL
25948 };
25949
25950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25952 if (!SWIG_IsOK(res1)) {
25953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25954 }
25955 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25956 {
25957 arg2 = &temp2;
25958 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25959 }
25960 {
25961 PyThreadState* __tstate = wxPyBeginAllowThreads();
25962 (arg1)->SetTextColour((wxColour const &)*arg2);
25963 wxPyEndAllowThreads(__tstate);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 resultobj = SWIG_Py_Void();
25967 return resultobj;
25968fail:
25969 return NULL;
25970}
25971
25972
25973SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25974 PyObject *resultobj = 0;
25975 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25976 wxColour *arg2 = 0 ;
25977 void *argp1 = 0 ;
25978 int res1 = 0 ;
25979 wxColour temp2 ;
25980 PyObject * obj0 = 0 ;
25981 PyObject * obj1 = 0 ;
25982 char * kwnames[] = {
25983 (char *) "self",(char *) "colBack", NULL
25984 };
25985
25986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25988 if (!SWIG_IsOK(res1)) {
25989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25990 }
25991 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25992 {
25993 arg2 = &temp2;
25994 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25995 }
25996 {
25997 PyThreadState* __tstate = wxPyBeginAllowThreads();
25998 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25999 wxPyEndAllowThreads(__tstate);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 resultobj = SWIG_Py_Void();
26003 return resultobj;
26004fail:
26005 return NULL;
26006}
26007
26008
26009SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26010 PyObject *resultobj = 0;
26011 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26012 wxFont *arg2 = 0 ;
26013 void *argp1 = 0 ;
26014 int res1 = 0 ;
26015 void *argp2 = 0 ;
26016 int res2 = 0 ;
26017 PyObject * obj0 = 0 ;
26018 PyObject * obj1 = 0 ;
26019 char * kwnames[] = {
26020 (char *) "self",(char *) "font", NULL
26021 };
26022
26023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26025 if (!SWIG_IsOK(res1)) {
26026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26027 }
26028 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26030 if (!SWIG_IsOK(res2)) {
26031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26032 }
26033 if (!argp2) {
26034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26035 }
26036 arg2 = reinterpret_cast< wxFont * >(argp2);
26037 {
26038 PyThreadState* __tstate = wxPyBeginAllowThreads();
26039 (arg1)->SetFont((wxFont const &)*arg2);
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 resultobj = SWIG_Py_Void();
26044 return resultobj;
26045fail:
26046 return NULL;
d55e5bfc
RD
26047}
26048
26049
554f62e9
RD
26050SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26051 PyObject *resultobj = 0;
26052 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26053 bool result;
26054 void *argp1 = 0 ;
26055 int res1 = 0 ;
26056 PyObject *swig_obj[1] ;
26057
26058 if (!args) SWIG_fail;
26059 swig_obj[0] = args;
26060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26061 if (!SWIG_IsOK(res1)) {
26062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26063 }
26064 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = (bool)(arg1)->HasTextColour();
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 {
26072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26073 }
26074 return resultobj;
26075fail:
26076 return NULL;
d55e5bfc
RD
26077}
26078
26079
554f62e9
RD
26080SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26081 PyObject *resultobj = 0;
26082 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26083 bool result;
26084 void *argp1 = 0 ;
26085 int res1 = 0 ;
26086 PyObject *swig_obj[1] ;
26087
26088 if (!args) SWIG_fail;
26089 swig_obj[0] = args;
26090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26091 if (!SWIG_IsOK(res1)) {
26092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26093 }
26094 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26095 {
26096 PyThreadState* __tstate = wxPyBeginAllowThreads();
26097 result = (bool)(arg1)->HasBackgroundColour();
26098 wxPyEndAllowThreads(__tstate);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 {
26102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26103 }
26104 return resultobj;
26105fail:
26106 return NULL;
d55e5bfc
RD
26107}
26108
26109
554f62e9
RD
26110SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26111 PyObject *resultobj = 0;
26112 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26113 bool result;
26114 void *argp1 = 0 ;
26115 int res1 = 0 ;
26116 PyObject *swig_obj[1] ;
26117
26118 if (!args) SWIG_fail;
26119 swig_obj[0] = args;
26120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26121 if (!SWIG_IsOK(res1)) {
26122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26123 }
26124 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26125 {
26126 PyThreadState* __tstate = wxPyBeginAllowThreads();
26127 result = (bool)(arg1)->HasFont();
26128 wxPyEndAllowThreads(__tstate);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 }
26131 {
26132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26133 }
26134 return resultobj;
26135fail:
26136 return NULL;
d55e5bfc
RD
26137}
26138
26139
554f62e9
RD
26140SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26141 PyObject *resultobj = 0;
26142 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26143 wxColour result;
26144 void *argp1 = 0 ;
26145 int res1 = 0 ;
26146 PyObject *swig_obj[1] ;
26147
26148 if (!args) SWIG_fail;
26149 swig_obj[0] = args;
26150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26151 if (!SWIG_IsOK(res1)) {
26152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26153 }
26154 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26155 {
26156 PyThreadState* __tstate = wxPyBeginAllowThreads();
26157 result = (arg1)->GetTextColour();
26158 wxPyEndAllowThreads(__tstate);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26162 return resultobj;
26163fail:
26164 return NULL;
d55e5bfc
RD
26165}
26166
26167
554f62e9
RD
26168SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26169 PyObject *resultobj = 0;
26170 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26171 wxColour result;
26172 void *argp1 = 0 ;
26173 int res1 = 0 ;
26174 PyObject *swig_obj[1] ;
26175
26176 if (!args) SWIG_fail;
26177 swig_obj[0] = args;
26178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26181 }
26182 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 result = (arg1)->GetBackgroundColour();
26186 wxPyEndAllowThreads(__tstate);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26190 return resultobj;
26191fail:
26192 return NULL;
d55e5bfc
RD
26193}
26194
26195
554f62e9
RD
26196SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26197 PyObject *resultobj = 0;
26198 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26199 wxFont result;
26200 void *argp1 = 0 ;
26201 int res1 = 0 ;
26202 PyObject *swig_obj[1] ;
26203
26204 if (!args) SWIG_fail;
26205 swig_obj[0] = args;
26206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26207 if (!SWIG_IsOK(res1)) {
26208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26209 }
26210 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26211 {
26212 PyThreadState* __tstate = wxPyBeginAllowThreads();
26213 result = (arg1)->GetFont();
26214 wxPyEndAllowThreads(__tstate);
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26218 return resultobj;
26219fail:
26220 return NULL;
26221}
26222
26223
26224SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26225 PyObject *resultobj = 0;
26226 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26227 wxListItemAttr *arg2 = 0 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 void *argp2 = 0 ;
26231 int res2 = 0 ;
26232 PyObject * obj0 = 0 ;
26233 PyObject * obj1 = 0 ;
26234 char * kwnames[] = {
26235 (char *) "self",(char *) "source", NULL
26236 };
26237
26238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26242 }
26243 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26245 if (!SWIG_IsOK(res2)) {
26246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26247 }
26248 if (!argp2) {
26249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26250 }
26251 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26252 {
26253 PyThreadState* __tstate = wxPyBeginAllowThreads();
26254 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26255 wxPyEndAllowThreads(__tstate);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 resultobj = SWIG_Py_Void();
26259 return resultobj;
26260fail:
26261 return NULL;
d55e5bfc
RD
26262}
26263
26264
554f62e9
RD
26265SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26266 PyObject *resultobj = 0;
26267 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26268 void *argp1 = 0 ;
26269 int res1 = 0 ;
26270 PyObject *swig_obj[1] ;
26271
26272 if (!args) SWIG_fail;
26273 swig_obj[0] = args;
26274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26275 if (!SWIG_IsOK(res1)) {
26276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26277 }
26278 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 wxListItemAttr_Destroy(arg1);
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 resultobj = SWIG_Py_Void();
26286 return resultobj;
26287fail:
26288 return NULL;
f20a2e1f
RD
26289}
26290
26291
554f62e9
RD
26292SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26293 PyObject *obj;
26294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26295 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26296 return SWIG_Py_Void();
d55e5bfc 26297}
554f62e9
RD
26298
26299SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26300 return SWIG_Python_InitShadowInstance(args);
26301}
26302
26303SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26304 PyObject *resultobj = 0;
26305 wxListItem *result = 0 ;
26306
26307 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26308 {
26309 PyThreadState* __tstate = wxPyBeginAllowThreads();
26310 result = (wxListItem *)new wxListItem();
26311 wxPyEndAllowThreads(__tstate);
26312 if (PyErr_Occurred()) SWIG_fail;
26313 }
26314 {
26315 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26316 }
26317 return resultobj;
26318fail:
26319 return NULL;
d55e5bfc
RD
26320}
26321
26322
554f62e9
RD
26323SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26324 PyObject *resultobj = 0;
26325 wxListItem *arg1 = (wxListItem *) 0 ;
26326 void *argp1 = 0 ;
26327 int res1 = 0 ;
26328 PyObject *swig_obj[1] ;
26329
26330 if (!args) SWIG_fail;
26331 swig_obj[0] = args;
26332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26333 if (!SWIG_IsOK(res1)) {
26334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26335 }
26336 arg1 = reinterpret_cast< wxListItem * >(argp1);
26337 {
26338 PyThreadState* __tstate = wxPyBeginAllowThreads();
26339 delete arg1;
d55e5bfc 26340
554f62e9
RD
26341 wxPyEndAllowThreads(__tstate);
26342 if (PyErr_Occurred()) SWIG_fail;
26343 }
26344 resultobj = SWIG_Py_Void();
26345 return resultobj;
26346fail:
26347 return NULL;
d55e5bfc
RD
26348}
26349
26350
554f62e9
RD
26351SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26352 PyObject *resultobj = 0;
26353 wxListItem *arg1 = (wxListItem *) 0 ;
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 PyObject *swig_obj[1] ;
26357
26358 if (!args) SWIG_fail;
26359 swig_obj[0] = args;
26360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26361 if (!SWIG_IsOK(res1)) {
26362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26363 }
26364 arg1 = reinterpret_cast< wxListItem * >(argp1);
26365 {
26366 PyThreadState* __tstate = wxPyBeginAllowThreads();
26367 (arg1)->Clear();
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
26371 resultobj = SWIG_Py_Void();
26372 return resultobj;
26373fail:
26374 return NULL;
d55e5bfc
RD
26375}
26376
26377
554f62e9
RD
26378SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26379 PyObject *resultobj = 0;
26380 wxListItem *arg1 = (wxListItem *) 0 ;
26381 void *argp1 = 0 ;
26382 int res1 = 0 ;
26383 PyObject *swig_obj[1] ;
26384
26385 if (!args) SWIG_fail;
26386 swig_obj[0] = args;
26387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26388 if (!SWIG_IsOK(res1)) {
26389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26390 }
26391 arg1 = reinterpret_cast< wxListItem * >(argp1);
26392 {
26393 PyThreadState* __tstate = wxPyBeginAllowThreads();
26394 (arg1)->ClearAttributes();
26395 wxPyEndAllowThreads(__tstate);
26396 if (PyErr_Occurred()) SWIG_fail;
26397 }
26398 resultobj = SWIG_Py_Void();
26399 return resultobj;
26400fail:
26401 return NULL;
26402}
26403
26404
26405SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26406 PyObject *resultobj = 0;
26407 wxListItem *arg1 = (wxListItem *) 0 ;
26408 long arg2 ;
26409 void *argp1 = 0 ;
26410 int res1 = 0 ;
26411 long val2 ;
26412 int ecode2 = 0 ;
26413 PyObject * obj0 = 0 ;
26414 PyObject * obj1 = 0 ;
26415 char * kwnames[] = {
26416 (char *) "self",(char *) "mask", NULL
26417 };
26418
26419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26421 if (!SWIG_IsOK(res1)) {
26422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26423 }
26424 arg1 = reinterpret_cast< wxListItem * >(argp1);
26425 ecode2 = SWIG_AsVal_long(obj1, &val2);
26426 if (!SWIG_IsOK(ecode2)) {
26427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26428 }
26429 arg2 = static_cast< long >(val2);
26430 {
26431 PyThreadState* __tstate = wxPyBeginAllowThreads();
26432 (arg1)->SetMask(arg2);
26433 wxPyEndAllowThreads(__tstate);
26434 if (PyErr_Occurred()) SWIG_fail;
26435 }
26436 resultobj = SWIG_Py_Void();
26437 return resultobj;
26438fail:
26439 return NULL;
26440}
26441
26442
26443SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26444 PyObject *resultobj = 0;
26445 wxListItem *arg1 = (wxListItem *) 0 ;
26446 long arg2 ;
26447 void *argp1 = 0 ;
26448 int res1 = 0 ;
26449 long val2 ;
26450 int ecode2 = 0 ;
26451 PyObject * obj0 = 0 ;
26452 PyObject * obj1 = 0 ;
26453 char * kwnames[] = {
26454 (char *) "self",(char *) "id", NULL
26455 };
26456
26457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26459 if (!SWIG_IsOK(res1)) {
26460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26461 }
26462 arg1 = reinterpret_cast< wxListItem * >(argp1);
26463 ecode2 = SWIG_AsVal_long(obj1, &val2);
26464 if (!SWIG_IsOK(ecode2)) {
26465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26466 }
26467 arg2 = static_cast< long >(val2);
26468 {
26469 PyThreadState* __tstate = wxPyBeginAllowThreads();
26470 (arg1)->SetId(arg2);
26471 wxPyEndAllowThreads(__tstate);
26472 if (PyErr_Occurred()) SWIG_fail;
26473 }
26474 resultobj = SWIG_Py_Void();
26475 return resultobj;
26476fail:
26477 return NULL;
26478}
26479
26480
26481SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26482 PyObject *resultobj = 0;
26483 wxListItem *arg1 = (wxListItem *) 0 ;
26484 int arg2 ;
26485 void *argp1 = 0 ;
26486 int res1 = 0 ;
26487 int val2 ;
26488 int ecode2 = 0 ;
26489 PyObject * obj0 = 0 ;
26490 PyObject * obj1 = 0 ;
26491 char * kwnames[] = {
26492 (char *) "self",(char *) "col", NULL
26493 };
26494
26495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26497 if (!SWIG_IsOK(res1)) {
26498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26499 }
26500 arg1 = reinterpret_cast< wxListItem * >(argp1);
26501 ecode2 = SWIG_AsVal_int(obj1, &val2);
26502 if (!SWIG_IsOK(ecode2)) {
26503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26504 }
26505 arg2 = static_cast< int >(val2);
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 (arg1)->SetColumn(arg2);
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 return resultobj;
26514fail:
26515 return NULL;
26516}
26517
26518
26519SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj = 0;
26521 wxListItem *arg1 = (wxListItem *) 0 ;
26522 long arg2 ;
26523 void *argp1 = 0 ;
26524 int res1 = 0 ;
26525 long val2 ;
26526 int ecode2 = 0 ;
26527 PyObject * obj0 = 0 ;
26528 PyObject * obj1 = 0 ;
26529 char * kwnames[] = {
26530 (char *) "self",(char *) "state", NULL
26531 };
26532
26533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26535 if (!SWIG_IsOK(res1)) {
26536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26537 }
26538 arg1 = reinterpret_cast< wxListItem * >(argp1);
26539 ecode2 = SWIG_AsVal_long(obj1, &val2);
26540 if (!SWIG_IsOK(ecode2)) {
26541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26542 }
26543 arg2 = static_cast< long >(val2);
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
26546 (arg1)->SetState(arg2);
26547 wxPyEndAllowThreads(__tstate);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 }
26550 resultobj = SWIG_Py_Void();
26551 return resultobj;
26552fail:
26553 return NULL;
26554}
26555
26556
26557SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26558 PyObject *resultobj = 0;
26559 wxListItem *arg1 = (wxListItem *) 0 ;
26560 long arg2 ;
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 long val2 ;
26564 int ecode2 = 0 ;
26565 PyObject * obj0 = 0 ;
26566 PyObject * obj1 = 0 ;
26567 char * kwnames[] = {
26568 (char *) "self",(char *) "stateMask", NULL
26569 };
26570
26571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26575 }
26576 arg1 = reinterpret_cast< wxListItem * >(argp1);
26577 ecode2 = SWIG_AsVal_long(obj1, &val2);
26578 if (!SWIG_IsOK(ecode2)) {
26579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26580 }
26581 arg2 = static_cast< long >(val2);
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 (arg1)->SetStateMask(arg2);
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590fail:
26591 return NULL;
26592}
26593
26594
26595SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj = 0;
26597 wxListItem *arg1 = (wxListItem *) 0 ;
26598 wxString *arg2 = 0 ;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 bool temp2 = false ;
26602 PyObject * obj0 = 0 ;
26603 PyObject * obj1 = 0 ;
26604 char * kwnames[] = {
26605 (char *) "self",(char *) "text", NULL
26606 };
26607
26608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26612 }
26613 arg1 = reinterpret_cast< wxListItem * >(argp1);
26614 {
26615 arg2 = wxString_in_helper(obj1);
26616 if (arg2 == NULL) SWIG_fail;
26617 temp2 = true;
26618 }
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 (arg1)->SetText((wxString const &)*arg2);
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 resultobj = SWIG_Py_Void();
26626 {
26627 if (temp2)
26628 delete arg2;
26629 }
26630 return resultobj;
26631fail:
26632 {
26633 if (temp2)
26634 delete arg2;
26635 }
26636 return NULL;
26637}
26638
26639
26640SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26641 PyObject *resultobj = 0;
26642 wxListItem *arg1 = (wxListItem *) 0 ;
26643 int arg2 ;
26644 void *argp1 = 0 ;
26645 int res1 = 0 ;
26646 int val2 ;
26647 int ecode2 = 0 ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "image", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26656 if (!SWIG_IsOK(res1)) {
26657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26658 }
26659 arg1 = reinterpret_cast< wxListItem * >(argp1);
26660 ecode2 = SWIG_AsVal_int(obj1, &val2);
26661 if (!SWIG_IsOK(ecode2)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26663 }
26664 arg2 = static_cast< int >(val2);
26665 {
26666 PyThreadState* __tstate = wxPyBeginAllowThreads();
26667 (arg1)->SetImage(arg2);
26668 wxPyEndAllowThreads(__tstate);
26669 if (PyErr_Occurred()) SWIG_fail;
26670 }
26671 resultobj = SWIG_Py_Void();
26672 return resultobj;
26673fail:
26674 return NULL;
26675}
26676
26677
26678SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26679 PyObject *resultobj = 0;
26680 wxListItem *arg1 = (wxListItem *) 0 ;
26681 long arg2 ;
26682 void *argp1 = 0 ;
26683 int res1 = 0 ;
26684 long val2 ;
26685 int ecode2 = 0 ;
26686 PyObject * obj0 = 0 ;
26687 PyObject * obj1 = 0 ;
26688 char * kwnames[] = {
26689 (char *) "self",(char *) "data", NULL
26690 };
26691
26692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26694 if (!SWIG_IsOK(res1)) {
26695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26696 }
26697 arg1 = reinterpret_cast< wxListItem * >(argp1);
26698 ecode2 = SWIG_AsVal_long(obj1, &val2);
26699 if (!SWIG_IsOK(ecode2)) {
26700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26701 }
26702 arg2 = static_cast< long >(val2);
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 (arg1)->SetData(arg2);
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_Py_Void();
26710 return resultobj;
26711fail:
26712 return NULL;
26713}
26714
26715
26716SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = 0;
26718 wxListItem *arg1 = (wxListItem *) 0 ;
26719 int arg2 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 int val2 ;
26723 int ecode2 = 0 ;
26724 PyObject * obj0 = 0 ;
26725 PyObject * obj1 = 0 ;
26726 char * kwnames[] = {
26727 (char *) "self",(char *) "width", NULL
26728 };
26729
26730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26732 if (!SWIG_IsOK(res1)) {
26733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26734 }
26735 arg1 = reinterpret_cast< wxListItem * >(argp1);
26736 ecode2 = SWIG_AsVal_int(obj1, &val2);
26737 if (!SWIG_IsOK(ecode2)) {
26738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26739 }
26740 arg2 = static_cast< int >(val2);
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 (arg1)->SetWidth(arg2);
26744 wxPyEndAllowThreads(__tstate);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 }
26747 resultobj = SWIG_Py_Void();
26748 return resultobj;
26749fail:
26750 return NULL;
26751}
26752
26753
26754SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26755 PyObject *resultobj = 0;
26756 wxListItem *arg1 = (wxListItem *) 0 ;
26757 wxListColumnFormat arg2 ;
26758 void *argp1 = 0 ;
26759 int res1 = 0 ;
26760 int val2 ;
26761 int ecode2 = 0 ;
26762 PyObject * obj0 = 0 ;
26763 PyObject * obj1 = 0 ;
26764 char * kwnames[] = {
26765 (char *) "self",(char *) "align", NULL
26766 };
26767
26768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26770 if (!SWIG_IsOK(res1)) {
26771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26772 }
26773 arg1 = reinterpret_cast< wxListItem * >(argp1);
26774 ecode2 = SWIG_AsVal_int(obj1, &val2);
26775 if (!SWIG_IsOK(ecode2)) {
26776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26777 }
26778 arg2 = static_cast< wxListColumnFormat >(val2);
26779 {
26780 PyThreadState* __tstate = wxPyBeginAllowThreads();
26781 (arg1)->SetAlign(arg2);
26782 wxPyEndAllowThreads(__tstate);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 }
26785 resultobj = SWIG_Py_Void();
26786 return resultobj;
26787fail:
26788 return NULL;
26789}
26790
26791
26792SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26793 PyObject *resultobj = 0;
26794 wxListItem *arg1 = (wxListItem *) 0 ;
26795 wxColour *arg2 = 0 ;
26796 void *argp1 = 0 ;
26797 int res1 = 0 ;
26798 wxColour temp2 ;
26799 PyObject * obj0 = 0 ;
26800 PyObject * obj1 = 0 ;
26801 char * kwnames[] = {
26802 (char *) "self",(char *) "colText", NULL
26803 };
26804
26805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26809 }
26810 arg1 = reinterpret_cast< wxListItem * >(argp1);
26811 {
26812 arg2 = &temp2;
26813 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26814 }
26815 {
26816 PyThreadState* __tstate = wxPyBeginAllowThreads();
26817 (arg1)->SetTextColour((wxColour const &)*arg2);
26818 wxPyEndAllowThreads(__tstate);
26819 if (PyErr_Occurred()) SWIG_fail;
26820 }
26821 resultobj = SWIG_Py_Void();
26822 return resultobj;
26823fail:
26824 return NULL;
26825}
26826
26827
26828SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26829 PyObject *resultobj = 0;
26830 wxListItem *arg1 = (wxListItem *) 0 ;
26831 wxColour *arg2 = 0 ;
26832 void *argp1 = 0 ;
26833 int res1 = 0 ;
26834 wxColour temp2 ;
26835 PyObject * obj0 = 0 ;
26836 PyObject * obj1 = 0 ;
26837 char * kwnames[] = {
26838 (char *) "self",(char *) "colBack", NULL
26839 };
26840
26841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26843 if (!SWIG_IsOK(res1)) {
26844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26845 }
26846 arg1 = reinterpret_cast< wxListItem * >(argp1);
26847 {
26848 arg2 = &temp2;
26849 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26850 }
26851 {
26852 PyThreadState* __tstate = wxPyBeginAllowThreads();
26853 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 resultobj = SWIG_Py_Void();
26858 return resultobj;
26859fail:
26860 return NULL;
26861}
26862
26863
26864SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26865 PyObject *resultobj = 0;
26866 wxListItem *arg1 = (wxListItem *) 0 ;
26867 wxFont *arg2 = 0 ;
26868 void *argp1 = 0 ;
26869 int res1 = 0 ;
26870 void *argp2 = 0 ;
26871 int res2 = 0 ;
26872 PyObject * obj0 = 0 ;
26873 PyObject * obj1 = 0 ;
26874 char * kwnames[] = {
26875 (char *) "self",(char *) "font", NULL
26876 };
26877
26878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26880 if (!SWIG_IsOK(res1)) {
26881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26882 }
26883 arg1 = reinterpret_cast< wxListItem * >(argp1);
26884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26885 if (!SWIG_IsOK(res2)) {
26886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26887 }
26888 if (!argp2) {
26889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26890 }
26891 arg2 = reinterpret_cast< wxFont * >(argp2);
26892 {
26893 PyThreadState* __tstate = wxPyBeginAllowThreads();
26894 (arg1)->SetFont((wxFont const &)*arg2);
26895 wxPyEndAllowThreads(__tstate);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 }
26898 resultobj = SWIG_Py_Void();
26899 return resultobj;
26900fail:
26901 return NULL;
d55e5bfc
RD
26902}
26903
26904
554f62e9
RD
26905SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26906 PyObject *resultobj = 0;
26907 wxListItem *arg1 = (wxListItem *) 0 ;
26908 long result;
26909 void *argp1 = 0 ;
26910 int res1 = 0 ;
26911 PyObject *swig_obj[1] ;
26912
26913 if (!args) SWIG_fail;
26914 swig_obj[0] = args;
26915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26916 if (!SWIG_IsOK(res1)) {
26917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26918 }
26919 arg1 = reinterpret_cast< wxListItem * >(argp1);
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 result = (long)(arg1)->GetMask();
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_From_long(static_cast< long >(result));
26927 return resultobj;
26928fail:
26929 return NULL;
d55e5bfc
RD
26930}
26931
26932
554f62e9
RD
26933SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26934 PyObject *resultobj = 0;
26935 wxListItem *arg1 = (wxListItem *) 0 ;
26936 long result;
26937 void *argp1 = 0 ;
26938 int res1 = 0 ;
26939 PyObject *swig_obj[1] ;
26940
26941 if (!args) SWIG_fail;
26942 swig_obj[0] = args;
26943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26946 }
26947 arg1 = reinterpret_cast< wxListItem * >(argp1);
26948 {
26949 PyThreadState* __tstate = wxPyBeginAllowThreads();
26950 result = (long)(arg1)->GetId();
26951 wxPyEndAllowThreads(__tstate);
26952 if (PyErr_Occurred()) SWIG_fail;
26953 }
26954 resultobj = SWIG_From_long(static_cast< long >(result));
26955 return resultobj;
26956fail:
26957 return NULL;
d55e5bfc
RD
26958}
26959
26960
554f62e9
RD
26961SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26962 PyObject *resultobj = 0;
26963 wxListItem *arg1 = (wxListItem *) 0 ;
26964 int result;
26965 void *argp1 = 0 ;
26966 int res1 = 0 ;
26967 PyObject *swig_obj[1] ;
26968
26969 if (!args) SWIG_fail;
26970 swig_obj[0] = args;
26971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26972 if (!SWIG_IsOK(res1)) {
26973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26974 }
26975 arg1 = reinterpret_cast< wxListItem * >(argp1);
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 result = (int)(arg1)->GetColumn();
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 resultobj = SWIG_From_int(static_cast< int >(result));
26983 return resultobj;
26984fail:
26985 return NULL;
d55e5bfc
RD
26986}
26987
26988
554f62e9
RD
26989SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26990 PyObject *resultobj = 0;
26991 wxListItem *arg1 = (wxListItem *) 0 ;
26992 long result;
26993 void *argp1 = 0 ;
26994 int res1 = 0 ;
26995 PyObject *swig_obj[1] ;
26996
26997 if (!args) SWIG_fail;
26998 swig_obj[0] = args;
26999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27000 if (!SWIG_IsOK(res1)) {
27001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27002 }
27003 arg1 = reinterpret_cast< wxListItem * >(argp1);
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 result = (long)(arg1)->GetState();
27007 wxPyEndAllowThreads(__tstate);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_From_long(static_cast< long >(result));
27011 return resultobj;
27012fail:
27013 return NULL;
d55e5bfc
RD
27014}
27015
27016
554f62e9
RD
27017SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27018 PyObject *resultobj = 0;
27019 wxListItem *arg1 = (wxListItem *) 0 ;
27020 wxString *result = 0 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 PyObject *swig_obj[1] ;
27024
27025 if (!args) SWIG_fail;
27026 swig_obj[0] = args;
27027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27028 if (!SWIG_IsOK(res1)) {
27029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27030 }
27031 arg1 = reinterpret_cast< wxListItem * >(argp1);
27032 {
27033 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27034 {
554f62e9
RD
27035 wxString const &_result_ref = (arg1)->GetText();
27036 result = (wxString *) &_result_ref;
27037 }
27038 wxPyEndAllowThreads(__tstate);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 {
d55e5bfc 27042#if wxUSE_UNICODE
554f62e9 27043 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 27044#else
554f62e9 27045 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 27046#endif
554f62e9
RD
27047 }
27048 return resultobj;
27049fail:
27050 return NULL;
d55e5bfc
RD
27051}
27052
27053
554f62e9
RD
27054SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 int result;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 PyObject *swig_obj[1] ;
27061
27062 if (!args) SWIG_fail;
27063 swig_obj[0] = args;
27064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27065 if (!SWIG_IsOK(res1)) {
27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27067 }
27068 arg1 = reinterpret_cast< wxListItem * >(argp1);
27069 {
27070 PyThreadState* __tstate = wxPyBeginAllowThreads();
27071 result = (int)(arg1)->GetImage();
27072 wxPyEndAllowThreads(__tstate);
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
27075 resultobj = SWIG_From_int(static_cast< int >(result));
27076 return resultobj;
27077fail:
27078 return NULL;
d55e5bfc
RD
27079}
27080
27081
554f62e9
RD
27082SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27083 PyObject *resultobj = 0;
27084 wxListItem *arg1 = (wxListItem *) 0 ;
27085 long result;
27086 void *argp1 = 0 ;
27087 int res1 = 0 ;
27088 PyObject *swig_obj[1] ;
27089
27090 if (!args) SWIG_fail;
27091 swig_obj[0] = args;
27092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27093 if (!SWIG_IsOK(res1)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27095 }
27096 arg1 = reinterpret_cast< wxListItem * >(argp1);
27097 {
27098 PyThreadState* __tstate = wxPyBeginAllowThreads();
27099 result = (long)(arg1)->GetData();
27100 wxPyEndAllowThreads(__tstate);
27101 if (PyErr_Occurred()) SWIG_fail;
27102 }
27103 resultobj = SWIG_From_long(static_cast< long >(result));
27104 return resultobj;
27105fail:
27106 return NULL;
8fb0e70a
RD
27107}
27108
27109
554f62e9
RD
27110SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27111 PyObject *resultobj = 0;
27112 wxListItem *arg1 = (wxListItem *) 0 ;
27113 int result;
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 PyObject *swig_obj[1] ;
27117
27118 if (!args) SWIG_fail;
27119 swig_obj[0] = args;
27120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27121 if (!SWIG_IsOK(res1)) {
27122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27123 }
27124 arg1 = reinterpret_cast< wxListItem * >(argp1);
27125 {
27126 PyThreadState* __tstate = wxPyBeginAllowThreads();
27127 result = (int)(arg1)->GetWidth();
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 resultobj = SWIG_From_int(static_cast< int >(result));
27132 return resultobj;
27133fail:
27134 return NULL;
d55e5bfc
RD
27135}
27136
27137
554f62e9
RD
27138SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27139 PyObject *resultobj = 0;
27140 wxListItem *arg1 = (wxListItem *) 0 ;
27141 wxListColumnFormat result;
27142 void *argp1 = 0 ;
27143 int res1 = 0 ;
27144 PyObject *swig_obj[1] ;
27145
27146 if (!args) SWIG_fail;
27147 swig_obj[0] = args;
27148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27149 if (!SWIG_IsOK(res1)) {
27150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27151 }
27152 arg1 = reinterpret_cast< wxListItem * >(argp1);
27153 {
27154 PyThreadState* __tstate = wxPyBeginAllowThreads();
27155 result = (wxListColumnFormat)(arg1)->GetAlign();
27156 wxPyEndAllowThreads(__tstate);
27157 if (PyErr_Occurred()) SWIG_fail;
27158 }
27159 resultobj = SWIG_From_int(static_cast< int >(result));
27160 return resultobj;
27161fail:
27162 return NULL;
d55e5bfc
RD
27163}
27164
27165
554f62e9
RD
27166SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27167 PyObject *resultobj = 0;
27168 wxListItem *arg1 = (wxListItem *) 0 ;
27169 wxListItemAttr *result = 0 ;
27170 void *argp1 = 0 ;
27171 int res1 = 0 ;
27172 PyObject *swig_obj[1] ;
27173
27174 if (!args) SWIG_fail;
27175 swig_obj[0] = args;
27176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27177 if (!SWIG_IsOK(res1)) {
27178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27179 }
27180 arg1 = reinterpret_cast< wxListItem * >(argp1);
27181 {
27182 PyThreadState* __tstate = wxPyBeginAllowThreads();
27183 result = (wxListItemAttr *)(arg1)->GetAttributes();
27184 wxPyEndAllowThreads(__tstate);
27185 if (PyErr_Occurred()) SWIG_fail;
27186 }
27187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27188 return resultobj;
27189fail:
27190 return NULL;
d55e5bfc
RD
27191}
27192
27193
554f62e9
RD
27194SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27195 PyObject *resultobj = 0;
27196 wxListItem *arg1 = (wxListItem *) 0 ;
27197 bool result;
27198 void *argp1 = 0 ;
27199 int res1 = 0 ;
27200 PyObject *swig_obj[1] ;
27201
27202 if (!args) SWIG_fail;
27203 swig_obj[0] = args;
27204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27205 if (!SWIG_IsOK(res1)) {
27206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27207 }
27208 arg1 = reinterpret_cast< wxListItem * >(argp1);
27209 {
27210 PyThreadState* __tstate = wxPyBeginAllowThreads();
27211 result = (bool)(arg1)->HasAttributes();
27212 wxPyEndAllowThreads(__tstate);
27213 if (PyErr_Occurred()) SWIG_fail;
27214 }
27215 {
27216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27217 }
27218 return resultobj;
27219fail:
27220 return NULL;
d55e5bfc
RD
27221}
27222
27223
554f62e9
RD
27224SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27225 PyObject *resultobj = 0;
27226 wxListItem *arg1 = (wxListItem *) 0 ;
27227 wxColour result;
27228 void *argp1 = 0 ;
27229 int res1 = 0 ;
27230 PyObject *swig_obj[1] ;
27231
27232 if (!args) SWIG_fail;
27233 swig_obj[0] = args;
27234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27235 if (!SWIG_IsOK(res1)) {
27236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27237 }
27238 arg1 = reinterpret_cast< wxListItem * >(argp1);
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = ((wxListItem const *)arg1)->GetTextColour();
27242 wxPyEndAllowThreads(__tstate);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 }
27245 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27246 return resultobj;
27247fail:
27248 return NULL;
d55e5bfc
RD
27249}
27250
27251
554f62e9
RD
27252SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27253 PyObject *resultobj = 0;
27254 wxListItem *arg1 = (wxListItem *) 0 ;
27255 wxColour result;
27256 void *argp1 = 0 ;
27257 int res1 = 0 ;
27258 PyObject *swig_obj[1] ;
27259
27260 if (!args) SWIG_fail;
27261 swig_obj[0] = args;
27262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27263 if (!SWIG_IsOK(res1)) {
27264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27265 }
27266 arg1 = reinterpret_cast< wxListItem * >(argp1);
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27270 wxPyEndAllowThreads(__tstate);
27271 if (PyErr_Occurred()) SWIG_fail;
27272 }
27273 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27274 return resultobj;
27275fail:
27276 return NULL;
d55e5bfc
RD
27277}
27278
27279
554f62e9
RD
27280SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27281 PyObject *resultobj = 0;
27282 wxListItem *arg1 = (wxListItem *) 0 ;
27283 wxFont result;
27284 void *argp1 = 0 ;
27285 int res1 = 0 ;
27286 PyObject *swig_obj[1] ;
27287
27288 if (!args) SWIG_fail;
27289 swig_obj[0] = args;
27290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27291 if (!SWIG_IsOK(res1)) {
27292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27293 }
27294 arg1 = reinterpret_cast< wxListItem * >(argp1);
27295 {
27296 PyThreadState* __tstate = wxPyBeginAllowThreads();
27297 result = ((wxListItem const *)arg1)->GetFont();
27298 wxPyEndAllowThreads(__tstate);
27299 if (PyErr_Occurred()) SWIG_fail;
27300 }
27301 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27302 return resultobj;
27303fail:
27304 return NULL;
27305}
27306
27307
27308SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27309 PyObject *resultobj = 0;
27310 wxListItem *arg1 = (wxListItem *) 0 ;
27311 long arg2 ;
27312 void *argp1 = 0 ;
27313 int res1 = 0 ;
27314 long val2 ;
27315 int ecode2 = 0 ;
27316 PyObject *swig_obj[2] ;
27317
27318 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27320 if (!SWIG_IsOK(res1)) {
27321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27322 }
27323 arg1 = reinterpret_cast< wxListItem * >(argp1);
27324 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27325 if (!SWIG_IsOK(ecode2)) {
27326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27327 }
27328 arg2 = static_cast< long >(val2);
27329 if (arg1) (arg1)->m_mask = arg2;
27330
27331 resultobj = SWIG_Py_Void();
27332 return resultobj;
27333fail:
27334 return NULL;
d55e5bfc
RD
27335}
27336
27337
554f62e9
RD
27338SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27339 PyObject *resultobj = 0;
27340 wxListItem *arg1 = (wxListItem *) 0 ;
27341 long result;
27342 void *argp1 = 0 ;
27343 int res1 = 0 ;
27344 PyObject *swig_obj[1] ;
27345
27346 if (!args) SWIG_fail;
27347 swig_obj[0] = args;
27348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27349 if (!SWIG_IsOK(res1)) {
27350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27351 }
27352 arg1 = reinterpret_cast< wxListItem * >(argp1);
27353 result = (long) ((arg1)->m_mask);
27354 resultobj = SWIG_From_long(static_cast< long >(result));
27355 return resultobj;
27356fail:
27357 return NULL;
27358}
27359
27360
27361SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27362 PyObject *resultobj = 0;
27363 wxListItem *arg1 = (wxListItem *) 0 ;
27364 long arg2 ;
27365 void *argp1 = 0 ;
27366 int res1 = 0 ;
27367 long val2 ;
27368 int ecode2 = 0 ;
27369 PyObject *swig_obj[2] ;
27370
27371 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27373 if (!SWIG_IsOK(res1)) {
27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27375 }
27376 arg1 = reinterpret_cast< wxListItem * >(argp1);
27377 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27378 if (!SWIG_IsOK(ecode2)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27380 }
27381 arg2 = static_cast< long >(val2);
27382 if (arg1) (arg1)->m_itemId = arg2;
27383
27384 resultobj = SWIG_Py_Void();
27385 return resultobj;
27386fail:
27387 return NULL;
d55e5bfc
RD
27388}
27389
27390
554f62e9
RD
27391SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27392 PyObject *resultobj = 0;
27393 wxListItem *arg1 = (wxListItem *) 0 ;
27394 long result;
27395 void *argp1 = 0 ;
27396 int res1 = 0 ;
27397 PyObject *swig_obj[1] ;
27398
27399 if (!args) SWIG_fail;
27400 swig_obj[0] = args;
27401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27402 if (!SWIG_IsOK(res1)) {
27403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27404 }
27405 arg1 = reinterpret_cast< wxListItem * >(argp1);
27406 result = (long) ((arg1)->m_itemId);
27407 resultobj = SWIG_From_long(static_cast< long >(result));
27408 return resultobj;
27409fail:
27410 return NULL;
27411}
27412
27413
27414SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27415 PyObject *resultobj = 0;
27416 wxListItem *arg1 = (wxListItem *) 0 ;
27417 int arg2 ;
27418 void *argp1 = 0 ;
27419 int res1 = 0 ;
27420 int val2 ;
27421 int ecode2 = 0 ;
27422 PyObject *swig_obj[2] ;
27423
27424 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27426 if (!SWIG_IsOK(res1)) {
27427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27428 }
27429 arg1 = reinterpret_cast< wxListItem * >(argp1);
27430 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27431 if (!SWIG_IsOK(ecode2)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27433 }
27434 arg2 = static_cast< int >(val2);
27435 if (arg1) (arg1)->m_col = arg2;
27436
27437 resultobj = SWIG_Py_Void();
27438 return resultobj;
27439fail:
27440 return NULL;
d55e5bfc
RD
27441}
27442
27443
554f62e9
RD
27444SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27445 PyObject *resultobj = 0;
27446 wxListItem *arg1 = (wxListItem *) 0 ;
27447 int result;
27448 void *argp1 = 0 ;
27449 int res1 = 0 ;
27450 PyObject *swig_obj[1] ;
27451
27452 if (!args) SWIG_fail;
27453 swig_obj[0] = args;
27454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27455 if (!SWIG_IsOK(res1)) {
27456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27457 }
27458 arg1 = reinterpret_cast< wxListItem * >(argp1);
27459 result = (int) ((arg1)->m_col);
27460 resultobj = SWIG_From_int(static_cast< int >(result));
27461 return resultobj;
27462fail:
27463 return NULL;
27464}
27465
27466
27467SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27468 PyObject *resultobj = 0;
27469 wxListItem *arg1 = (wxListItem *) 0 ;
27470 long arg2 ;
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
27473 long val2 ;
27474 int ecode2 = 0 ;
27475 PyObject *swig_obj[2] ;
27476
27477 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27479 if (!SWIG_IsOK(res1)) {
27480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27481 }
27482 arg1 = reinterpret_cast< wxListItem * >(argp1);
27483 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27484 if (!SWIG_IsOK(ecode2)) {
27485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27486 }
27487 arg2 = static_cast< long >(val2);
27488 if (arg1) (arg1)->m_state = arg2;
27489
27490 resultobj = SWIG_Py_Void();
27491 return resultobj;
27492fail:
27493 return NULL;
d55e5bfc
RD
27494}
27495
27496
554f62e9
RD
27497SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27498 PyObject *resultobj = 0;
27499 wxListItem *arg1 = (wxListItem *) 0 ;
27500 long result;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 PyObject *swig_obj[1] ;
27504
27505 if (!args) SWIG_fail;
27506 swig_obj[0] = args;
27507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27508 if (!SWIG_IsOK(res1)) {
27509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27510 }
27511 arg1 = reinterpret_cast< wxListItem * >(argp1);
27512 result = (long) ((arg1)->m_state);
27513 resultobj = SWIG_From_long(static_cast< long >(result));
27514 return resultobj;
27515fail:
27516 return NULL;
27517}
27518
27519
27520SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27521 PyObject *resultobj = 0;
27522 wxListItem *arg1 = (wxListItem *) 0 ;
27523 long arg2 ;
27524 void *argp1 = 0 ;
27525 int res1 = 0 ;
27526 long val2 ;
27527 int ecode2 = 0 ;
27528 PyObject *swig_obj[2] ;
27529
27530 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27534 }
27535 arg1 = reinterpret_cast< wxListItem * >(argp1);
27536 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27537 if (!SWIG_IsOK(ecode2)) {
27538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27539 }
27540 arg2 = static_cast< long >(val2);
27541 if (arg1) (arg1)->m_stateMask = arg2;
27542
27543 resultobj = SWIG_Py_Void();
27544 return resultobj;
27545fail:
27546 return NULL;
7e08d4ef
RD
27547}
27548
27549
554f62e9
RD
27550SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *resultobj = 0;
27552 wxListItem *arg1 = (wxListItem *) 0 ;
27553 long result;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 PyObject *swig_obj[1] ;
27557
27558 if (!args) SWIG_fail;
27559 swig_obj[0] = args;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27563 }
27564 arg1 = reinterpret_cast< wxListItem * >(argp1);
27565 result = (long) ((arg1)->m_stateMask);
27566 resultobj = SWIG_From_long(static_cast< long >(result));
27567 return resultobj;
27568fail:
27569 return NULL;
27570}
27571
27572
27573SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27574 PyObject *resultobj = 0;
27575 wxListItem *arg1 = (wxListItem *) 0 ;
27576 wxString *arg2 = (wxString *) 0 ;
27577 void *argp1 = 0 ;
27578 int res1 = 0 ;
27579 bool temp2 = false ;
27580 PyObject *swig_obj[2] ;
27581
27582 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27586 }
27587 arg1 = reinterpret_cast< wxListItem * >(argp1);
27588 {
27589 arg2 = wxString_in_helper(swig_obj[1]);
27590 if (arg2 == NULL) SWIG_fail;
27591 temp2 = true;
27592 }
27593 if (arg1) (arg1)->m_text = *arg2;
27594
27595 resultobj = SWIG_Py_Void();
27596 {
27597 if (temp2)
27598 delete arg2;
27599 }
27600 return resultobj;
27601fail:
27602 {
27603 if (temp2)
27604 delete arg2;
27605 }
27606 return NULL;
7e08d4ef
RD
27607}
27608
27609
554f62e9
RD
27610SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27611 PyObject *resultobj = 0;
27612 wxListItem *arg1 = (wxListItem *) 0 ;
27613 wxString *result = 0 ;
27614 void *argp1 = 0 ;
27615 int res1 = 0 ;
27616 PyObject *swig_obj[1] ;
27617
27618 if (!args) SWIG_fail;
27619 swig_obj[0] = args;
27620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27621 if (!SWIG_IsOK(res1)) {
27622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27623 }
27624 arg1 = reinterpret_cast< wxListItem * >(argp1);
27625 result = (wxString *)& ((arg1)->m_text);
27626 {
27627#if wxUSE_UNICODE
27628 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27629#else
27630 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27631#endif
27632 }
27633 return resultobj;
27634fail:
27635 return NULL;
7e08d4ef
RD
27636}
27637
27638
554f62e9
RD
27639SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27640 PyObject *resultobj = 0;
27641 wxListItem *arg1 = (wxListItem *) 0 ;
27642 int arg2 ;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 int val2 ;
27646 int ecode2 = 0 ;
27647 PyObject *swig_obj[2] ;
27648
27649 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27651 if (!SWIG_IsOK(res1)) {
27652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27653 }
27654 arg1 = reinterpret_cast< wxListItem * >(argp1);
27655 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27656 if (!SWIG_IsOK(ecode2)) {
27657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27658 }
27659 arg2 = static_cast< int >(val2);
27660 if (arg1) (arg1)->m_image = arg2;
27661
27662 resultobj = SWIG_Py_Void();
27663 return resultobj;
27664fail:
27665 return NULL;
7e08d4ef
RD
27666}
27667
27668
554f62e9
RD
27669SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27670 PyObject *resultobj = 0;
27671 wxListItem *arg1 = (wxListItem *) 0 ;
27672 int result;
27673 void *argp1 = 0 ;
27674 int res1 = 0 ;
27675 PyObject *swig_obj[1] ;
27676
27677 if (!args) SWIG_fail;
27678 swig_obj[0] = args;
27679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27680 if (!SWIG_IsOK(res1)) {
27681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27682 }
27683 arg1 = reinterpret_cast< wxListItem * >(argp1);
27684 result = (int) ((arg1)->m_image);
27685 resultobj = SWIG_From_int(static_cast< int >(result));
27686 return resultobj;
27687fail:
27688 return NULL;
27689}
27690
27691
27692SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27693 PyObject *resultobj = 0;
27694 wxListItem *arg1 = (wxListItem *) 0 ;
27695 long arg2 ;
27696 void *argp1 = 0 ;
27697 int res1 = 0 ;
27698 long val2 ;
27699 int ecode2 = 0 ;
27700 PyObject *swig_obj[2] ;
27701
27702 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27704 if (!SWIG_IsOK(res1)) {
27705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27706 }
27707 arg1 = reinterpret_cast< wxListItem * >(argp1);
27708 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27709 if (!SWIG_IsOK(ecode2)) {
27710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27711 }
27712 arg2 = static_cast< long >(val2);
27713 if (arg1) (arg1)->m_data = arg2;
27714
27715 resultobj = SWIG_Py_Void();
27716 return resultobj;
27717fail:
27718 return NULL;
7e08d4ef
RD
27719}
27720
27721
554f62e9
RD
27722SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27723 PyObject *resultobj = 0;
27724 wxListItem *arg1 = (wxListItem *) 0 ;
27725 long result;
27726 void *argp1 = 0 ;
27727 int res1 = 0 ;
27728 PyObject *swig_obj[1] ;
27729
27730 if (!args) SWIG_fail;
27731 swig_obj[0] = args;
27732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27733 if (!SWIG_IsOK(res1)) {
27734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27735 }
27736 arg1 = reinterpret_cast< wxListItem * >(argp1);
27737 result = (long) ((arg1)->m_data);
27738 resultobj = SWIG_From_long(static_cast< long >(result));
27739 return resultobj;
27740fail:
27741 return NULL;
27742}
27743
27744
27745SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27746 PyObject *resultobj = 0;
27747 wxListItem *arg1 = (wxListItem *) 0 ;
27748 int arg2 ;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 int val2 ;
27752 int ecode2 = 0 ;
27753 PyObject *swig_obj[2] ;
27754
27755 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27757 if (!SWIG_IsOK(res1)) {
27758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27759 }
27760 arg1 = reinterpret_cast< wxListItem * >(argp1);
27761 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27762 if (!SWIG_IsOK(ecode2)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27764 }
27765 arg2 = static_cast< int >(val2);
27766 if (arg1) (arg1)->m_format = arg2;
27767
27768 resultobj = SWIG_Py_Void();
27769 return resultobj;
27770fail:
27771 return NULL;
d55e5bfc
RD
27772}
27773
27774
554f62e9
RD
27775SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776 PyObject *resultobj = 0;
27777 wxListItem *arg1 = (wxListItem *) 0 ;
27778 int result;
27779 void *argp1 = 0 ;
27780 int res1 = 0 ;
27781 PyObject *swig_obj[1] ;
27782
27783 if (!args) SWIG_fail;
27784 swig_obj[0] = args;
27785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27786 if (!SWIG_IsOK(res1)) {
27787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27788 }
27789 arg1 = reinterpret_cast< wxListItem * >(argp1);
27790 result = (int) ((arg1)->m_format);
27791 resultobj = SWIG_From_int(static_cast< int >(result));
27792 return resultobj;
27793fail:
27794 return NULL;
27795}
27796
27797
27798SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27799 PyObject *resultobj = 0;
27800 wxListItem *arg1 = (wxListItem *) 0 ;
27801 int arg2 ;
27802 void *argp1 = 0 ;
27803 int res1 = 0 ;
27804 int val2 ;
27805 int ecode2 = 0 ;
27806 PyObject *swig_obj[2] ;
27807
27808 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27810 if (!SWIG_IsOK(res1)) {
27811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27812 }
27813 arg1 = reinterpret_cast< wxListItem * >(argp1);
27814 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27815 if (!SWIG_IsOK(ecode2)) {
27816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27817 }
27818 arg2 = static_cast< int >(val2);
27819 if (arg1) (arg1)->m_width = arg2;
27820
27821 resultobj = SWIG_Py_Void();
27822 return resultobj;
27823fail:
27824 return NULL;
d55e5bfc
RD
27825}
27826
27827
554f62e9
RD
27828SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27829 PyObject *resultobj = 0;
27830 wxListItem *arg1 = (wxListItem *) 0 ;
27831 int result;
27832 void *argp1 = 0 ;
27833 int res1 = 0 ;
27834 PyObject *swig_obj[1] ;
27835
27836 if (!args) SWIG_fail;
27837 swig_obj[0] = args;
27838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27839 if (!SWIG_IsOK(res1)) {
27840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27841 }
27842 arg1 = reinterpret_cast< wxListItem * >(argp1);
27843 result = (int) ((arg1)->m_width);
27844 resultobj = SWIG_From_int(static_cast< int >(result));
27845 return resultobj;
27846fail:
27847 return NULL;
27848}
27849
27850
27851SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27852 PyObject *obj;
27853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27854 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27855 return SWIG_Py_Void();
27856}
27857
27858SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27859 return SWIG_Python_InitShadowInstance(args);
27860}
27861
27862SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27863 PyObject *resultobj = 0;
27864 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27865 int arg2 = (int) 0 ;
27866 wxListEvent *result = 0 ;
27867 int val1 ;
27868 int ecode1 = 0 ;
27869 int val2 ;
27870 int ecode2 = 0 ;
27871 PyObject * obj0 = 0 ;
27872 PyObject * obj1 = 0 ;
27873 char * kwnames[] = {
27874 (char *) "commandType",(char *) "id", NULL
27875 };
27876
27877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27878 if (obj0) {
27879 ecode1 = SWIG_AsVal_int(obj0, &val1);
27880 if (!SWIG_IsOK(ecode1)) {
27881 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27882 }
27883 arg1 = static_cast< wxEventType >(val1);
27884 }
27885 if (obj1) {
27886 ecode2 = SWIG_AsVal_int(obj1, &val2);
27887 if (!SWIG_IsOK(ecode2)) {
27888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27889 }
27890 arg2 = static_cast< int >(val2);
27891 }
27892 {
27893 PyThreadState* __tstate = wxPyBeginAllowThreads();
27894 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27895 wxPyEndAllowThreads(__tstate);
27896 if (PyErr_Occurred()) SWIG_fail;
27897 }
27898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27899 return resultobj;
27900fail:
27901 return NULL;
27902}
27903
27904
27905SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27906 PyObject *resultobj = 0;
27907 wxListEvent *arg1 = (wxListEvent *) 0 ;
27908 int arg2 ;
27909 void *argp1 = 0 ;
27910 int res1 = 0 ;
27911 int val2 ;
27912 int ecode2 = 0 ;
27913 PyObject *swig_obj[2] ;
27914
27915 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27917 if (!SWIG_IsOK(res1)) {
27918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27919 }
27920 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27921 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27922 if (!SWIG_IsOK(ecode2)) {
27923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27924 }
27925 arg2 = static_cast< int >(val2);
27926 if (arg1) (arg1)->m_code = arg2;
27927
27928 resultobj = SWIG_Py_Void();
27929 return resultobj;
27930fail:
27931 return NULL;
d55e5bfc
RD
27932}
27933
27934
554f62e9
RD
27935SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936 PyObject *resultobj = 0;
27937 wxListEvent *arg1 = (wxListEvent *) 0 ;
27938 int result;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 PyObject *swig_obj[1] ;
27942
27943 if (!args) SWIG_fail;
27944 swig_obj[0] = args;
27945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27946 if (!SWIG_IsOK(res1)) {
27947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27948 }
27949 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27950 result = (int) ((arg1)->m_code);
27951 resultobj = SWIG_From_int(static_cast< int >(result));
27952 return resultobj;
27953fail:
27954 return NULL;
27955}
27956
27957
27958SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27959 PyObject *resultobj = 0;
27960 wxListEvent *arg1 = (wxListEvent *) 0 ;
27961 long arg2 ;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 long val2 ;
27965 int ecode2 = 0 ;
27966 PyObject *swig_obj[2] ;
27967
27968 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27970 if (!SWIG_IsOK(res1)) {
27971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27972 }
27973 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27974 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27975 if (!SWIG_IsOK(ecode2)) {
27976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27977 }
27978 arg2 = static_cast< long >(val2);
27979 if (arg1) (arg1)->m_oldItemIndex = arg2;
27980
27981 resultobj = SWIG_Py_Void();
27982 return resultobj;
27983fail:
27984 return NULL;
d55e5bfc
RD
27985}
27986
27987
554f62e9
RD
27988SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxListEvent *arg1 = (wxListEvent *) 0 ;
27991 long result;
27992 void *argp1 = 0 ;
27993 int res1 = 0 ;
27994 PyObject *swig_obj[1] ;
27995
27996 if (!args) SWIG_fail;
27997 swig_obj[0] = args;
27998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27999 if (!SWIG_IsOK(res1)) {
28000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28001 }
28002 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28003 result = (long) ((arg1)->m_oldItemIndex);
28004 resultobj = SWIG_From_long(static_cast< long >(result));
28005 return resultobj;
28006fail:
28007 return NULL;
28008}
28009
28010
28011SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28012 PyObject *resultobj = 0;
28013 wxListEvent *arg1 = (wxListEvent *) 0 ;
28014 long arg2 ;
28015 void *argp1 = 0 ;
28016 int res1 = 0 ;
28017 long val2 ;
28018 int ecode2 = 0 ;
28019 PyObject *swig_obj[2] ;
28020
28021 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28023 if (!SWIG_IsOK(res1)) {
28024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28025 }
28026 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28027 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28028 if (!SWIG_IsOK(ecode2)) {
28029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28030 }
28031 arg2 = static_cast< long >(val2);
28032 if (arg1) (arg1)->m_itemIndex = arg2;
28033
28034 resultobj = SWIG_Py_Void();
28035 return resultobj;
28036fail:
28037 return NULL;
d55e5bfc
RD
28038}
28039
28040
554f62e9
RD
28041SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *resultobj = 0;
28043 wxListEvent *arg1 = (wxListEvent *) 0 ;
28044 long result;
28045 void *argp1 = 0 ;
28046 int res1 = 0 ;
28047 PyObject *swig_obj[1] ;
28048
28049 if (!args) SWIG_fail;
28050 swig_obj[0] = args;
28051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28052 if (!SWIG_IsOK(res1)) {
28053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28054 }
28055 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28056 result = (long) ((arg1)->m_itemIndex);
28057 resultobj = SWIG_From_long(static_cast< long >(result));
28058 return resultobj;
28059fail:
28060 return NULL;
28061}
28062
28063
28064SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28065 PyObject *resultobj = 0;
28066 wxListEvent *arg1 = (wxListEvent *) 0 ;
28067 int arg2 ;
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
28070 int val2 ;
28071 int ecode2 = 0 ;
28072 PyObject *swig_obj[2] ;
28073
28074 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28076 if (!SWIG_IsOK(res1)) {
28077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28078 }
28079 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28080 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28081 if (!SWIG_IsOK(ecode2)) {
28082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28083 }
28084 arg2 = static_cast< int >(val2);
28085 if (arg1) (arg1)->m_col = arg2;
28086
28087 resultobj = SWIG_Py_Void();
28088 return resultobj;
28089fail:
28090 return NULL;
d55e5bfc
RD
28091}
28092
28093
554f62e9
RD
28094SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28095 PyObject *resultobj = 0;
28096 wxListEvent *arg1 = (wxListEvent *) 0 ;
28097 int result;
28098 void *argp1 = 0 ;
28099 int res1 = 0 ;
28100 PyObject *swig_obj[1] ;
28101
28102 if (!args) SWIG_fail;
28103 swig_obj[0] = args;
28104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28105 if (!SWIG_IsOK(res1)) {
28106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28107 }
28108 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28109 result = (int) ((arg1)->m_col);
28110 resultobj = SWIG_From_int(static_cast< int >(result));
28111 return resultobj;
28112fail:
28113 return NULL;
28114}
28115
28116
28117SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28118 PyObject *resultobj = 0;
28119 wxListEvent *arg1 = (wxListEvent *) 0 ;
28120 wxPoint *arg2 = (wxPoint *) 0 ;
28121 void *argp1 = 0 ;
28122 int res1 = 0 ;
28123 void *argp2 = 0 ;
28124 int res2 = 0 ;
28125 PyObject *swig_obj[2] ;
28126
28127 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28131 }
28132 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28133 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28134 if (!SWIG_IsOK(res2)) {
28135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28136 }
28137 arg2 = reinterpret_cast< wxPoint * >(argp2);
28138 if (arg1) (arg1)->m_pointDrag = *arg2;
28139
28140 resultobj = SWIG_Py_Void();
28141 return resultobj;
28142fail:
28143 return NULL;
d55e5bfc
RD
28144}
28145
28146
554f62e9
RD
28147SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28148 PyObject *resultobj = 0;
28149 wxListEvent *arg1 = (wxListEvent *) 0 ;
28150 wxPoint *result = 0 ;
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 PyObject *swig_obj[1] ;
28154
28155 if (!args) SWIG_fail;
28156 swig_obj[0] = args;
28157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28158 if (!SWIG_IsOK(res1)) {
28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28160 }
28161 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28162 result = (wxPoint *)& ((arg1)->m_pointDrag);
28163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28164 return resultobj;
28165fail:
28166 return NULL;
28167}
28168
28169
28170SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28171 PyObject *resultobj = 0;
28172 wxListEvent *arg1 = (wxListEvent *) 0 ;
28173 wxListItem *result = 0 ;
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
28176 PyObject *swig_obj[1] ;
28177
28178 if (!args) SWIG_fail;
28179 swig_obj[0] = args;
28180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28181 if (!SWIG_IsOK(res1)) {
28182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28183 }
28184 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28185 result = (wxListItem *)& ((arg1)->m_item);
28186 {
28187 resultobj = wxPyMake_wxObject(result, (bool)0);
28188 }
28189 return resultobj;
28190fail:
28191 return NULL;
f20a2e1f
RD
28192}
28193
28194
554f62e9
RD
28195SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28196 PyObject *resultobj = 0;
28197 wxListEvent *arg1 = (wxListEvent *) 0 ;
28198 int result;
28199 void *argp1 = 0 ;
28200 int res1 = 0 ;
28201 PyObject *swig_obj[1] ;
28202
28203 if (!args) SWIG_fail;
28204 swig_obj[0] = args;
28205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28206 if (!SWIG_IsOK(res1)) {
28207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28208 }
28209 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28210 {
28211 PyThreadState* __tstate = wxPyBeginAllowThreads();
28212 result = (int)(arg1)->GetKeyCode();
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 resultobj = SWIG_From_int(static_cast< int >(result));
28217 return resultobj;
28218fail:
28219 return NULL;
d55e5bfc
RD
28220}
28221
28222
554f62e9
RD
28223SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxListEvent *arg1 = (wxListEvent *) 0 ;
28226 long result;
28227 void *argp1 = 0 ;
28228 int res1 = 0 ;
28229 PyObject *swig_obj[1] ;
28230
28231 if (!args) SWIG_fail;
28232 swig_obj[0] = args;
28233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28234 if (!SWIG_IsOK(res1)) {
28235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28236 }
28237 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28238 {
28239 PyThreadState* __tstate = wxPyBeginAllowThreads();
28240 result = (long)(arg1)->GetIndex();
28241 wxPyEndAllowThreads(__tstate);
28242 if (PyErr_Occurred()) SWIG_fail;
28243 }
28244 resultobj = SWIG_From_long(static_cast< long >(result));
28245 return resultobj;
28246fail:
28247 return NULL;
d55e5bfc
RD
28248}
28249
28250
554f62e9
RD
28251SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28252 PyObject *resultobj = 0;
28253 wxListEvent *arg1 = (wxListEvent *) 0 ;
28254 int result;
28255 void *argp1 = 0 ;
28256 int res1 = 0 ;
28257 PyObject *swig_obj[1] ;
28258
28259 if (!args) SWIG_fail;
28260 swig_obj[0] = args;
28261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28262 if (!SWIG_IsOK(res1)) {
28263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28264 }
28265 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28266 {
28267 PyThreadState* __tstate = wxPyBeginAllowThreads();
28268 result = (int)(arg1)->GetColumn();
28269 wxPyEndAllowThreads(__tstate);
28270 if (PyErr_Occurred()) SWIG_fail;
28271 }
28272 resultobj = SWIG_From_int(static_cast< int >(result));
28273 return resultobj;
28274fail:
28275 return NULL;
d55e5bfc
RD
28276}
28277
28278
554f62e9
RD
28279SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28280 PyObject *resultobj = 0;
28281 wxListEvent *arg1 = (wxListEvent *) 0 ;
28282 wxPoint result;
28283 void *argp1 = 0 ;
28284 int res1 = 0 ;
28285 PyObject *swig_obj[1] ;
28286
28287 if (!args) SWIG_fail;
28288 swig_obj[0] = args;
28289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28290 if (!SWIG_IsOK(res1)) {
28291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28292 }
28293 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28294 {
28295 PyThreadState* __tstate = wxPyBeginAllowThreads();
28296 result = (arg1)->GetPoint();
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28301 return resultobj;
28302fail:
28303 return NULL;
d55e5bfc
RD
28304}
28305
28306
554f62e9
RD
28307SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *resultobj = 0;
28309 wxListEvent *arg1 = (wxListEvent *) 0 ;
28310 wxString *result = 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 PyObject *swig_obj[1] ;
28314
28315 if (!args) SWIG_fail;
28316 swig_obj[0] = args;
28317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28318 if (!SWIG_IsOK(res1)) {
28319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28320 }
28321 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28322 {
28323 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28324 {
554f62e9
RD
28325 wxString const &_result_ref = (arg1)->GetLabel();
28326 result = (wxString *) &_result_ref;
d55e5bfc 28327 }
554f62e9
RD
28328 wxPyEndAllowThreads(__tstate);
28329 if (PyErr_Occurred()) SWIG_fail;
28330 }
28331 {
28332#if wxUSE_UNICODE
28333 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28334#else
28335 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28336#endif
28337 }
28338 return resultobj;
28339fail:
28340 return NULL;
d55e5bfc
RD
28341}
28342
28343
554f62e9
RD
28344SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28345 PyObject *resultobj = 0;
28346 wxListEvent *arg1 = (wxListEvent *) 0 ;
28347 wxString *result = 0 ;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 PyObject *swig_obj[1] ;
28351
28352 if (!args) SWIG_fail;
28353 swig_obj[0] = args;
28354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28355 if (!SWIG_IsOK(res1)) {
28356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28357 }
28358 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28361 {
554f62e9
RD
28362 wxString const &_result_ref = (arg1)->GetText();
28363 result = (wxString *) &_result_ref;
d55e5bfc 28364 }
554f62e9
RD
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 {
28369#if wxUSE_UNICODE
28370 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28371#else
28372 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28373#endif
28374 }
28375 return resultobj;
28376fail:
28377 return NULL;
d55e5bfc
RD
28378}
28379
28380
554f62e9
RD
28381SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28382 PyObject *resultobj = 0;
28383 wxListEvent *arg1 = (wxListEvent *) 0 ;
28384 int result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 PyObject *swig_obj[1] ;
28388
28389 if (!args) SWIG_fail;
28390 swig_obj[0] = args;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 {
28397 PyThreadState* __tstate = wxPyBeginAllowThreads();
28398 result = (int)(arg1)->GetImage();
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_From_int(static_cast< int >(result));
28403 return resultobj;
28404fail:
28405 return NULL;
d55e5bfc
RD
28406}
28407
28408
554f62e9
RD
28409SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxListEvent *arg1 = (wxListEvent *) 0 ;
28412 long result;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28422 }
28423 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (long)(arg1)->GetData();
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_From_long(static_cast< long >(result));
28431 return resultobj;
28432fail:
28433 return NULL;
d55e5bfc
RD
28434}
28435
28436
554f62e9
RD
28437SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28438 PyObject *resultobj = 0;
28439 wxListEvent *arg1 = (wxListEvent *) 0 ;
28440 long result;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 PyObject *swig_obj[1] ;
28444
28445 if (!args) SWIG_fail;
28446 swig_obj[0] = args;
28447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28450 }
28451 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28452 {
28453 PyThreadState* __tstate = wxPyBeginAllowThreads();
28454 result = (long)(arg1)->GetMask();
28455 wxPyEndAllowThreads(__tstate);
28456 if (PyErr_Occurred()) SWIG_fail;
28457 }
28458 resultobj = SWIG_From_long(static_cast< long >(result));
28459 return resultobj;
28460fail:
28461 return NULL;
d55e5bfc
RD
28462}
28463
28464
554f62e9
RD
28465SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28466 PyObject *resultobj = 0;
28467 wxListEvent *arg1 = (wxListEvent *) 0 ;
28468 wxListItem *result = 0 ;
28469 void *argp1 = 0 ;
28470 int res1 = 0 ;
28471 PyObject *swig_obj[1] ;
28472
28473 if (!args) SWIG_fail;
28474 swig_obj[0] = args;
28475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28476 if (!SWIG_IsOK(res1)) {
28477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28478 }
28479 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 28482 {
554f62e9
RD
28483 wxListItem const &_result_ref = (arg1)->GetItem();
28484 result = (wxListItem *) &_result_ref;
093d3ff1 28485 }
554f62e9
RD
28486 wxPyEndAllowThreads(__tstate);
28487 if (PyErr_Occurred()) SWIG_fail;
28488 }
28489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28490 return resultobj;
28491fail:
28492 return NULL;
d55e5bfc
RD
28493}
28494
28495
554f62e9
RD
28496SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28497 PyObject *resultobj = 0;
28498 wxListEvent *arg1 = (wxListEvent *) 0 ;
28499 long result;
28500 void *argp1 = 0 ;
28501 int res1 = 0 ;
28502 PyObject *swig_obj[1] ;
28503
28504 if (!args) SWIG_fail;
28505 swig_obj[0] = args;
28506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28507 if (!SWIG_IsOK(res1)) {
28508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28509 }
28510 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28511 {
28512 PyThreadState* __tstate = wxPyBeginAllowThreads();
28513 result = (long)(arg1)->GetCacheFrom();
28514 wxPyEndAllowThreads(__tstate);
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 resultobj = SWIG_From_long(static_cast< long >(result));
28518 return resultobj;
28519fail:
28520 return NULL;
d55e5bfc
RD
28521}
28522
28523
554f62e9
RD
28524SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28525 PyObject *resultobj = 0;
28526 wxListEvent *arg1 = (wxListEvent *) 0 ;
28527 long result;
28528 void *argp1 = 0 ;
28529 int res1 = 0 ;
28530 PyObject *swig_obj[1] ;
28531
28532 if (!args) SWIG_fail;
28533 swig_obj[0] = args;
28534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28535 if (!SWIG_IsOK(res1)) {
28536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28537 }
28538 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28539 {
28540 PyThreadState* __tstate = wxPyBeginAllowThreads();
28541 result = (long)(arg1)->GetCacheTo();
28542 wxPyEndAllowThreads(__tstate);
28543 if (PyErr_Occurred()) SWIG_fail;
28544 }
28545 resultobj = SWIG_From_long(static_cast< long >(result));
28546 return resultobj;
28547fail:
28548 return NULL;
091fdbfa
RD
28549}
28550
28551
554f62e9
RD
28552SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28553 PyObject *resultobj = 0;
28554 wxListEvent *arg1 = (wxListEvent *) 0 ;
28555 bool result;
28556 void *argp1 = 0 ;
28557 int res1 = 0 ;
28558 PyObject *swig_obj[1] ;
28559
28560 if (!args) SWIG_fail;
28561 swig_obj[0] = args;
28562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28563 if (!SWIG_IsOK(res1)) {
28564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28565 }
28566 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28567 {
28568 PyThreadState* __tstate = wxPyBeginAllowThreads();
28569 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28570 wxPyEndAllowThreads(__tstate);
28571 if (PyErr_Occurred()) SWIG_fail;
28572 }
28573 {
28574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28575 }
28576 return resultobj;
28577fail:
28578 return NULL;
28579}
28580
28581
28582SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28583 PyObject *resultobj = 0;
28584 wxListEvent *arg1 = (wxListEvent *) 0 ;
28585 bool arg2 ;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 bool val2 ;
28589 int ecode2 = 0 ;
28590 PyObject * obj0 = 0 ;
28591 PyObject * obj1 = 0 ;
28592 char * kwnames[] = {
28593 (char *) "self",(char *) "editCancelled", NULL
28594 };
28595
28596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28600 }
28601 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28602 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28603 if (!SWIG_IsOK(ecode2)) {
28604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28605 }
28606 arg2 = static_cast< bool >(val2);
28607 {
28608 PyThreadState* __tstate = wxPyBeginAllowThreads();
28609 (arg1)->SetEditCanceled(arg2);
28610 wxPyEndAllowThreads(__tstate);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 resultobj = SWIG_Py_Void();
28614 return resultobj;
28615fail:
28616 return NULL;
28617}
28618
28619
28620SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28621 PyObject *obj;
28622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28623 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28624 return SWIG_Py_Void();
28625}
28626
28627SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28628 return SWIG_Python_InitShadowInstance(args);
28629}
28630
28631SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28632 PyObject *resultobj = 0;
28633 wxWindow *arg1 = (wxWindow *) 0 ;
28634 int arg2 = (int) -1 ;
28635 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28636 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28637 wxSize const &arg4_defvalue = wxDefaultSize ;
28638 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28639 long arg5 = (long) wxLC_ICON ;
28640 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28641 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28642 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28643 wxString *arg7 = (wxString *) &arg7_defvalue ;
28644 wxPyListCtrl *result = 0 ;
28645 void *argp1 = 0 ;
28646 int res1 = 0 ;
28647 int val2 ;
28648 int ecode2 = 0 ;
28649 wxPoint temp3 ;
28650 wxSize temp4 ;
28651 long val5 ;
28652 int ecode5 = 0 ;
28653 void *argp6 = 0 ;
28654 int res6 = 0 ;
28655 bool temp7 = false ;
28656 PyObject * obj0 = 0 ;
28657 PyObject * obj1 = 0 ;
28658 PyObject * obj2 = 0 ;
28659 PyObject * obj3 = 0 ;
28660 PyObject * obj4 = 0 ;
28661 PyObject * obj5 = 0 ;
28662 PyObject * obj6 = 0 ;
28663 char * kwnames[] = {
28664 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28665 };
28666
28667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28669 if (!SWIG_IsOK(res1)) {
28670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28671 }
28672 arg1 = reinterpret_cast< wxWindow * >(argp1);
28673 if (obj1) {
28674 ecode2 = SWIG_AsVal_int(obj1, &val2);
28675 if (!SWIG_IsOK(ecode2)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28677 }
28678 arg2 = static_cast< int >(val2);
28679 }
28680 if (obj2) {
f20a2e1f 28681 {
554f62e9
RD
28682 arg3 = &temp3;
28683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 28684 }
554f62e9
RD
28685 }
28686 if (obj3) {
d55e5bfc 28687 {
554f62e9
RD
28688 arg4 = &temp4;
28689 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 28690 }
554f62e9
RD
28691 }
28692 if (obj4) {
28693 ecode5 = SWIG_AsVal_long(obj4, &val5);
28694 if (!SWIG_IsOK(ecode5)) {
28695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28696 }
28697 arg5 = static_cast< long >(val5);
28698 }
28699 if (obj5) {
28700 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28701 if (!SWIG_IsOK(res6)) {
28702 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28703 }
554f62e9
RD
28704 if (!argp6) {
28705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 28706 }
554f62e9
RD
28707 arg6 = reinterpret_cast< wxValidator * >(argp6);
28708 }
28709 if (obj6) {
d55e5bfc 28710 {
554f62e9
RD
28711 arg7 = wxString_in_helper(obj6);
28712 if (arg7 == NULL) SWIG_fail;
28713 temp7 = true;
d55e5bfc 28714 }
554f62e9
RD
28715 }
28716 {
28717 if (!wxPyCheckForApp()) SWIG_fail;
28718 PyThreadState* __tstate = wxPyBeginAllowThreads();
28719 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28720 wxPyEndAllowThreads(__tstate);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28724 {
28725 if (temp7)
28726 delete arg7;
28727 }
28728 return resultobj;
28729fail:
28730 {
28731 if (temp7)
28732 delete arg7;
28733 }
28734 return NULL;
d55e5bfc
RD
28735}
28736
28737
554f62e9
RD
28738SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28739 PyObject *resultobj = 0;
28740 wxPyListCtrl *result = 0 ;
28741
28742 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28743 {
28744 if (!wxPyCheckForApp()) SWIG_fail;
28745 PyThreadState* __tstate = wxPyBeginAllowThreads();
28746 result = (wxPyListCtrl *)new wxPyListCtrl();
28747 wxPyEndAllowThreads(__tstate);
28748 if (PyErr_Occurred()) SWIG_fail;
28749 }
28750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28751 return resultobj;
28752fail:
28753 return NULL;
28754}
28755
28756
28757SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28758 PyObject *resultobj = 0;
28759 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28760 wxWindow *arg2 = (wxWindow *) 0 ;
28761 int arg3 = (int) -1 ;
28762 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28763 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28764 wxSize const &arg5_defvalue = wxDefaultSize ;
28765 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28766 long arg6 = (long) wxLC_ICON ;
28767 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28768 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28769 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28770 wxString *arg8 = (wxString *) &arg8_defvalue ;
28771 bool result;
28772 void *argp1 = 0 ;
28773 int res1 = 0 ;
28774 void *argp2 = 0 ;
28775 int res2 = 0 ;
28776 int val3 ;
28777 int ecode3 = 0 ;
28778 wxPoint temp4 ;
28779 wxSize temp5 ;
28780 long val6 ;
28781 int ecode6 = 0 ;
28782 void *argp7 = 0 ;
28783 int res7 = 0 ;
28784 bool temp8 = false ;
28785 PyObject * obj0 = 0 ;
28786 PyObject * obj1 = 0 ;
28787 PyObject * obj2 = 0 ;
28788 PyObject * obj3 = 0 ;
28789 PyObject * obj4 = 0 ;
28790 PyObject * obj5 = 0 ;
28791 PyObject * obj6 = 0 ;
28792 PyObject * obj7 = 0 ;
28793 char * kwnames[] = {
28794 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28795 };
28796
28797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28799 if (!SWIG_IsOK(res1)) {
28800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28801 }
28802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28804 if (!SWIG_IsOK(res2)) {
28805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28806 }
28807 arg2 = reinterpret_cast< wxWindow * >(argp2);
28808 if (obj2) {
28809 ecode3 = SWIG_AsVal_int(obj2, &val3);
28810 if (!SWIG_IsOK(ecode3)) {
28811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28812 }
28813 arg3 = static_cast< int >(val3);
28814 }
28815 if (obj3) {
d55e5bfc 28816 {
554f62e9
RD
28817 arg4 = &temp4;
28818 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 28819 }
554f62e9
RD
28820 }
28821 if (obj4) {
d55e5bfc 28822 {
554f62e9
RD
28823 arg5 = &temp5;
28824 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 28825 }
554f62e9
RD
28826 }
28827 if (obj5) {
28828 ecode6 = SWIG_AsVal_long(obj5, &val6);
28829 if (!SWIG_IsOK(ecode6)) {
28830 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28831 }
28832 arg6 = static_cast< long >(val6);
28833 }
28834 if (obj6) {
28835 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28836 if (!SWIG_IsOK(res7)) {
28837 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 28838 }
554f62e9
RD
28839 if (!argp7) {
28840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 28841 }
554f62e9
RD
28842 arg7 = reinterpret_cast< wxValidator * >(argp7);
28843 }
28844 if (obj7) {
d55e5bfc 28845 {
554f62e9
RD
28846 arg8 = wxString_in_helper(obj7);
28847 if (arg8 == NULL) SWIG_fail;
28848 temp8 = true;
d55e5bfc 28849 }
554f62e9
RD
28850 }
28851 {
28852 PyThreadState* __tstate = wxPyBeginAllowThreads();
28853 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 {
28858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28859 }
28860 {
28861 if (temp8)
28862 delete arg8;
28863 }
28864 return resultobj;
28865fail:
28866 {
28867 if (temp8)
28868 delete arg8;
28869 }
28870 return NULL;
28871}
28872
28873
28874SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28875 PyObject *resultobj = 0;
28876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28877 PyObject *arg2 = (PyObject *) 0 ;
28878 PyObject *arg3 = (PyObject *) 0 ;
28879 void *argp1 = 0 ;
28880 int res1 = 0 ;
28881 PyObject * obj0 = 0 ;
28882 PyObject * obj1 = 0 ;
28883 PyObject * obj2 = 0 ;
28884 char * kwnames[] = {
28885 (char *) "self",(char *) "self",(char *) "_class", NULL
28886 };
28887
28888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28890 if (!SWIG_IsOK(res1)) {
28891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28892 }
28893 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28894 arg2 = obj1;
28895 arg3 = obj2;
28896 {
28897 PyThreadState* __tstate = wxPyBeginAllowThreads();
28898 (arg1)->_setCallbackInfo(arg2,arg3);
28899 wxPyEndAllowThreads(__tstate);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 resultobj = SWIG_Py_Void();
28903 return resultobj;
28904fail:
28905 return NULL;
28906}
28907
28908
28909SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28910 PyObject *resultobj = 0;
28911 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28912 int arg2 ;
28913 wxListItem *result = 0 ;
28914 void *argp1 = 0 ;
28915 int res1 = 0 ;
28916 int val2 ;
28917 int ecode2 = 0 ;
28918 PyObject * obj0 = 0 ;
28919 PyObject * obj1 = 0 ;
28920 char * kwnames[] = {
28921 (char *) "self",(char *) "col", NULL
28922 };
28923
28924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28926 if (!SWIG_IsOK(res1)) {
28927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28928 }
28929 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28930 ecode2 = SWIG_AsVal_int(obj1, &val2);
28931 if (!SWIG_IsOK(ecode2)) {
28932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28933 }
28934 arg2 = static_cast< int >(val2);
28935 {
28936 PyThreadState* __tstate = wxPyBeginAllowThreads();
28937 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28938 wxPyEndAllowThreads(__tstate);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 }
28941 {
28942 resultobj = wxPyMake_wxObject(result, (bool)0);
28943 }
28944 return resultobj;
28945fail:
28946 return NULL;
28947}
28948
28949
28950SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28951 PyObject *resultobj = 0;
28952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28953 int arg2 ;
28954 wxListItem *arg3 = 0 ;
28955 bool result;
28956 void *argp1 = 0 ;
28957 int res1 = 0 ;
28958 int val2 ;
28959 int ecode2 = 0 ;
28960 void *argp3 = 0 ;
28961 int res3 = 0 ;
28962 PyObject * obj0 = 0 ;
28963 PyObject * obj1 = 0 ;
28964 PyObject * obj2 = 0 ;
28965 char * kwnames[] = {
28966 (char *) "self",(char *) "col",(char *) "item", NULL
28967 };
28968
28969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28971 if (!SWIG_IsOK(res1)) {
28972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28973 }
28974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28975 ecode2 = SWIG_AsVal_int(obj1, &val2);
28976 if (!SWIG_IsOK(ecode2)) {
28977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28978 }
28979 arg2 = static_cast< int >(val2);
28980 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28981 if (!SWIG_IsOK(res3)) {
28982 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28983 }
28984 if (!argp3) {
28985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28986 }
28987 arg3 = reinterpret_cast< wxListItem * >(argp3);
28988 {
28989 PyThreadState* __tstate = wxPyBeginAllowThreads();
28990 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28991 wxPyEndAllowThreads(__tstate);
28992 if (PyErr_Occurred()) SWIG_fail;
28993 }
28994 {
28995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28996 }
28997 return resultobj;
28998fail:
28999 return NULL;
29000}
29001
29002
29003SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29004 PyObject *resultobj = 0;
29005 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29006 int arg2 ;
29007 int result;
29008 void *argp1 = 0 ;
29009 int res1 = 0 ;
29010 int val2 ;
29011 int ecode2 = 0 ;
29012 PyObject * obj0 = 0 ;
29013 PyObject * obj1 = 0 ;
29014 char * kwnames[] = {
29015 (char *) "self",(char *) "col", NULL
29016 };
29017
29018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29020 if (!SWIG_IsOK(res1)) {
29021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29022 }
29023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29024 ecode2 = SWIG_AsVal_int(obj1, &val2);
29025 if (!SWIG_IsOK(ecode2)) {
29026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29027 }
29028 arg2 = static_cast< int >(val2);
29029 {
29030 PyThreadState* __tstate = wxPyBeginAllowThreads();
29031 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29032 wxPyEndAllowThreads(__tstate);
29033 if (PyErr_Occurred()) SWIG_fail;
29034 }
29035 resultobj = SWIG_From_int(static_cast< int >(result));
29036 return resultobj;
29037fail:
29038 return NULL;
29039}
29040
29041
29042SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj = 0;
29044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29045 int arg2 ;
29046 int arg3 ;
29047 bool result;
29048 void *argp1 = 0 ;
29049 int res1 = 0 ;
29050 int val2 ;
29051 int ecode2 = 0 ;
29052 int val3 ;
29053 int ecode3 = 0 ;
29054 PyObject * obj0 = 0 ;
29055 PyObject * obj1 = 0 ;
29056 PyObject * obj2 = 0 ;
29057 char * kwnames[] = {
29058 (char *) "self",(char *) "col",(char *) "width", NULL
29059 };
29060
29061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29063 if (!SWIG_IsOK(res1)) {
29064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29065 }
29066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29067 ecode2 = SWIG_AsVal_int(obj1, &val2);
29068 if (!SWIG_IsOK(ecode2)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29070 }
29071 arg2 = static_cast< int >(val2);
29072 ecode3 = SWIG_AsVal_int(obj2, &val3);
29073 if (!SWIG_IsOK(ecode3)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29075 }
29076 arg3 = static_cast< int >(val3);
29077 {
29078 PyThreadState* __tstate = wxPyBeginAllowThreads();
29079 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 {
29084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29085 }
29086 return resultobj;
29087fail:
29088 return NULL;
d55e5bfc
RD
29089}
29090
29091
554f62e9
RD
29092SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29093 PyObject *resultobj = 0;
29094 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29095 int result;
29096 void *argp1 = 0 ;
29097 int res1 = 0 ;
29098 PyObject *swig_obj[1] ;
29099
29100 if (!args) SWIG_fail;
29101 swig_obj[0] = args;
29102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29103 if (!SWIG_IsOK(res1)) {
29104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29105 }
29106 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29107 {
29108 PyThreadState* __tstate = wxPyBeginAllowThreads();
29109 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29110 wxPyEndAllowThreads(__tstate);
29111 if (PyErr_Occurred()) SWIG_fail;
29112 }
29113 resultobj = SWIG_From_int(static_cast< int >(result));
29114 return resultobj;
29115fail:
29116 return NULL;
7e08d4ef
RD
29117}
29118
29119
554f62e9
RD
29120SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29121 PyObject *resultobj = 0;
29122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29123 wxRect result;
29124 void *argp1 = 0 ;
29125 int res1 = 0 ;
29126 PyObject *swig_obj[1] ;
29127
29128 if (!args) SWIG_fail;
29129 swig_obj[0] = args;
29130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29131 if (!SWIG_IsOK(res1)) {
29132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29133 }
29134 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29135 {
29136 PyThreadState* __tstate = wxPyBeginAllowThreads();
29137 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29138 wxPyEndAllowThreads(__tstate);
29139 if (PyErr_Occurred()) SWIG_fail;
29140 }
29141 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29142 return resultobj;
29143fail:
29144 return NULL;
7e08d4ef
RD
29145}
29146
29147
554f62e9
RD
29148SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29149 PyObject *resultobj = 0;
29150 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29151 wxTextCtrl *result = 0 ;
29152 void *argp1 = 0 ;
29153 int res1 = 0 ;
29154 PyObject *swig_obj[1] ;
29155
29156 if (!args) SWIG_fail;
29157 swig_obj[0] = args;
29158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29161 }
29162 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29163 {
29164 PyThreadState* __tstate = wxPyBeginAllowThreads();
29165 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29166 wxPyEndAllowThreads(__tstate);
29167 if (PyErr_Occurred()) SWIG_fail;
29168 }
29169 {
29170 resultobj = wxPyMake_wxObject(result, 0);
29171 }
29172 return resultobj;
29173fail:
29174 return NULL;
29175}
29176
29177
29178SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29179 PyObject *resultobj = 0;
29180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29181 long arg2 ;
29182 int arg3 = (int) 0 ;
29183 wxListItem *result = 0 ;
29184 void *argp1 = 0 ;
29185 int res1 = 0 ;
29186 long val2 ;
29187 int ecode2 = 0 ;
29188 int val3 ;
29189 int ecode3 = 0 ;
29190 PyObject * obj0 = 0 ;
29191 PyObject * obj1 = 0 ;
29192 PyObject * obj2 = 0 ;
29193 char * kwnames[] = {
29194 (char *) "self",(char *) "itemId",(char *) "col", NULL
29195 };
29196
29197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29199 if (!SWIG_IsOK(res1)) {
29200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29201 }
29202 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29203 ecode2 = SWIG_AsVal_long(obj1, &val2);
29204 if (!SWIG_IsOK(ecode2)) {
29205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29206 }
29207 arg2 = static_cast< long >(val2);
29208 if (obj2) {
29209 ecode3 = SWIG_AsVal_int(obj2, &val3);
29210 if (!SWIG_IsOK(ecode3)) {
29211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29212 }
29213 arg3 = static_cast< int >(val3);
29214 }
29215 {
29216 PyThreadState* __tstate = wxPyBeginAllowThreads();
29217 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29218 wxPyEndAllowThreads(__tstate);
29219 if (PyErr_Occurred()) SWIG_fail;
29220 }
29221 {
29222 resultobj = wxPyMake_wxObject(result, (bool)0);
29223 }
29224 return resultobj;
29225fail:
29226 return NULL;
29227}
29228
29229
29230SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29231 PyObject *resultobj = 0;
29232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29233 wxListItem *arg2 = 0 ;
29234 bool result;
29235 void *argp1 = 0 ;
29236 int res1 = 0 ;
29237 void *argp2 = 0 ;
29238 int res2 = 0 ;
29239 PyObject * obj0 = 0 ;
29240 PyObject * obj1 = 0 ;
29241 char * kwnames[] = {
29242 (char *) "self",(char *) "info", NULL
29243 };
29244
29245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29247 if (!SWIG_IsOK(res1)) {
29248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29249 }
29250 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29252 if (!SWIG_IsOK(res2)) {
29253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29254 }
29255 if (!argp2) {
29256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29257 }
29258 arg2 = reinterpret_cast< wxListItem * >(argp2);
29259 {
29260 PyThreadState* __tstate = wxPyBeginAllowThreads();
29261 result = (bool)(arg1)->SetItem(*arg2);
29262 wxPyEndAllowThreads(__tstate);
29263 if (PyErr_Occurred()) SWIG_fail;
29264 }
29265 {
29266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29267 }
29268 return resultobj;
29269fail:
29270 return NULL;
29271}
29272
29273
29274SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29275 PyObject *resultobj = 0;
29276 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29277 long arg2 ;
29278 int arg3 ;
29279 wxString *arg4 = 0 ;
29280 int arg5 = (int) -1 ;
29281 long result;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 long val2 ;
29285 int ecode2 = 0 ;
29286 int val3 ;
29287 int ecode3 = 0 ;
29288 bool temp4 = false ;
29289 int val5 ;
29290 int ecode5 = 0 ;
29291 PyObject * obj0 = 0 ;
29292 PyObject * obj1 = 0 ;
29293 PyObject * obj2 = 0 ;
29294 PyObject * obj3 = 0 ;
29295 PyObject * obj4 = 0 ;
29296 char * kwnames[] = {
29297 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29298 };
29299
29300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29302 if (!SWIG_IsOK(res1)) {
29303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29304 }
29305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29306 ecode2 = SWIG_AsVal_long(obj1, &val2);
29307 if (!SWIG_IsOK(ecode2)) {
29308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29309 }
29310 arg2 = static_cast< long >(val2);
29311 ecode3 = SWIG_AsVal_int(obj2, &val3);
29312 if (!SWIG_IsOK(ecode3)) {
29313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29314 }
29315 arg3 = static_cast< int >(val3);
29316 {
29317 arg4 = wxString_in_helper(obj3);
29318 if (arg4 == NULL) SWIG_fail;
29319 temp4 = true;
29320 }
29321 if (obj4) {
29322 ecode5 = SWIG_AsVal_int(obj4, &val5);
29323 if (!SWIG_IsOK(ecode5)) {
29324 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29325 }
29326 arg5 = static_cast< int >(val5);
29327 }
29328 {
29329 PyThreadState* __tstate = wxPyBeginAllowThreads();
29330 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29331 wxPyEndAllowThreads(__tstate);
29332 if (PyErr_Occurred()) SWIG_fail;
29333 }
29334 resultobj = SWIG_From_long(static_cast< long >(result));
29335 {
29336 if (temp4)
29337 delete arg4;
29338 }
29339 return resultobj;
29340fail:
29341 {
29342 if (temp4)
29343 delete arg4;
29344 }
29345 return NULL;
29346}
29347
29348
29349SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29350 PyObject *resultobj = 0;
29351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29352 long arg2 ;
29353 long arg3 ;
29354 int result;
29355 void *argp1 = 0 ;
29356 int res1 = 0 ;
29357 long val2 ;
29358 int ecode2 = 0 ;
29359 long val3 ;
29360 int ecode3 = 0 ;
29361 PyObject * obj0 = 0 ;
29362 PyObject * obj1 = 0 ;
29363 PyObject * obj2 = 0 ;
29364 char * kwnames[] = {
29365 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29366 };
29367
29368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29370 if (!SWIG_IsOK(res1)) {
29371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29372 }
29373 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29374 ecode2 = SWIG_AsVal_long(obj1, &val2);
29375 if (!SWIG_IsOK(ecode2)) {
29376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29377 }
29378 arg2 = static_cast< long >(val2);
29379 ecode3 = SWIG_AsVal_long(obj2, &val3);
29380 if (!SWIG_IsOK(ecode3)) {
29381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29382 }
29383 arg3 = static_cast< long >(val3);
29384 {
29385 PyThreadState* __tstate = wxPyBeginAllowThreads();
29386 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29387 wxPyEndAllowThreads(__tstate);
29388 if (PyErr_Occurred()) SWIG_fail;
29389 }
29390 resultobj = SWIG_From_int(static_cast< int >(result));
29391 return resultobj;
29392fail:
29393 return NULL;
29394}
29395
29396
29397SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29398 PyObject *resultobj = 0;
29399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29400 long arg2 ;
29401 long arg3 ;
29402 long arg4 ;
29403 bool result;
29404 void *argp1 = 0 ;
29405 int res1 = 0 ;
29406 long val2 ;
29407 int ecode2 = 0 ;
29408 long val3 ;
29409 int ecode3 = 0 ;
29410 long val4 ;
29411 int ecode4 = 0 ;
29412 PyObject * obj0 = 0 ;
29413 PyObject * obj1 = 0 ;
29414 PyObject * obj2 = 0 ;
29415 PyObject * obj3 = 0 ;
29416 char * kwnames[] = {
29417 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29418 };
29419
29420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29422 if (!SWIG_IsOK(res1)) {
29423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29424 }
29425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29426 ecode2 = SWIG_AsVal_long(obj1, &val2);
29427 if (!SWIG_IsOK(ecode2)) {
29428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29429 }
29430 arg2 = static_cast< long >(val2);
29431 ecode3 = SWIG_AsVal_long(obj2, &val3);
29432 if (!SWIG_IsOK(ecode3)) {
29433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29434 }
29435 arg3 = static_cast< long >(val3);
29436 ecode4 = SWIG_AsVal_long(obj3, &val4);
29437 if (!SWIG_IsOK(ecode4)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29439 }
29440 arg4 = static_cast< long >(val4);
29441 {
29442 PyThreadState* __tstate = wxPyBeginAllowThreads();
29443 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29444 wxPyEndAllowThreads(__tstate);
29445 if (PyErr_Occurred()) SWIG_fail;
29446 }
29447 {
29448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29449 }
29450 return resultobj;
29451fail:
29452 return NULL;
29453}
29454
29455
29456SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj = 0;
29458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29459 long arg2 ;
29460 int arg3 ;
29461 int arg4 = (int) -1 ;
29462 bool result;
29463 void *argp1 = 0 ;
29464 int res1 = 0 ;
29465 long val2 ;
29466 int ecode2 = 0 ;
29467 int val3 ;
29468 int ecode3 = 0 ;
29469 int val4 ;
29470 int ecode4 = 0 ;
29471 PyObject * obj0 = 0 ;
29472 PyObject * obj1 = 0 ;
29473 PyObject * obj2 = 0 ;
29474 PyObject * obj3 = 0 ;
29475 char * kwnames[] = {
29476 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29477 };
29478
29479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29481 if (!SWIG_IsOK(res1)) {
29482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29483 }
29484 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29485 ecode2 = SWIG_AsVal_long(obj1, &val2);
29486 if (!SWIG_IsOK(ecode2)) {
29487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29488 }
29489 arg2 = static_cast< long >(val2);
29490 ecode3 = SWIG_AsVal_int(obj2, &val3);
29491 if (!SWIG_IsOK(ecode3)) {
29492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29493 }
29494 arg3 = static_cast< int >(val3);
29495 if (obj3) {
29496 ecode4 = SWIG_AsVal_int(obj3, &val4);
29497 if (!SWIG_IsOK(ecode4)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29499 }
29500 arg4 = static_cast< int >(val4);
29501 }
29502 {
29503 PyThreadState* __tstate = wxPyBeginAllowThreads();
29504 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29505 wxPyEndAllowThreads(__tstate);
29506 if (PyErr_Occurred()) SWIG_fail;
29507 }
29508 {
29509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29510 }
29511 return resultobj;
29512fail:
29513 return NULL;
29514}
29515
29516
29517SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29518 PyObject *resultobj = 0;
29519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29520 long arg2 ;
29521 long arg3 ;
29522 int arg4 ;
29523 bool result;
29524 void *argp1 = 0 ;
29525 int res1 = 0 ;
29526 long val2 ;
29527 int ecode2 = 0 ;
29528 long val3 ;
29529 int ecode3 = 0 ;
29530 int val4 ;
29531 int ecode4 = 0 ;
29532 PyObject * obj0 = 0 ;
29533 PyObject * obj1 = 0 ;
29534 PyObject * obj2 = 0 ;
29535 PyObject * obj3 = 0 ;
29536 char * kwnames[] = {
29537 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29538 };
29539
29540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29542 if (!SWIG_IsOK(res1)) {
29543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29544 }
29545 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29546 ecode2 = SWIG_AsVal_long(obj1, &val2);
29547 if (!SWIG_IsOK(ecode2)) {
29548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29549 }
29550 arg2 = static_cast< long >(val2);
29551 ecode3 = SWIG_AsVal_long(obj2, &val3);
29552 if (!SWIG_IsOK(ecode3)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29554 }
29555 arg3 = static_cast< long >(val3);
29556 ecode4 = SWIG_AsVal_int(obj3, &val4);
29557 if (!SWIG_IsOK(ecode4)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29559 }
29560 arg4 = static_cast< int >(val4);
29561 {
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 {
29568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29569 }
29570 return resultobj;
29571fail:
29572 return NULL;
29573}
29574
29575
29576SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29579 long arg2 ;
29580 wxString result;
29581 void *argp1 = 0 ;
29582 int res1 = 0 ;
29583 long val2 ;
29584 int ecode2 = 0 ;
29585 PyObject * obj0 = 0 ;
29586 PyObject * obj1 = 0 ;
29587 char * kwnames[] = {
29588 (char *) "self",(char *) "item", NULL
29589 };
29590
29591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29593 if (!SWIG_IsOK(res1)) {
29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29595 }
29596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29597 ecode2 = SWIG_AsVal_long(obj1, &val2);
29598 if (!SWIG_IsOK(ecode2)) {
29599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29600 }
29601 arg2 = static_cast< long >(val2);
29602 {
29603 PyThreadState* __tstate = wxPyBeginAllowThreads();
29604 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29605 wxPyEndAllowThreads(__tstate);
29606 if (PyErr_Occurred()) SWIG_fail;
29607 }
29608 {
29609#if wxUSE_UNICODE
29610 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29611#else
29612 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29613#endif
29614 }
29615 return resultobj;
29616fail:
29617 return NULL;
29618}
29619
29620
29621SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29622 PyObject *resultobj = 0;
29623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29624 long arg2 ;
29625 wxString *arg3 = 0 ;
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
29628 long val2 ;
29629 int ecode2 = 0 ;
29630 bool temp3 = false ;
29631 PyObject * obj0 = 0 ;
29632 PyObject * obj1 = 0 ;
29633 PyObject * obj2 = 0 ;
29634 char * kwnames[] = {
29635 (char *) "self",(char *) "item",(char *) "str", NULL
29636 };
29637
29638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29640 if (!SWIG_IsOK(res1)) {
29641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29642 }
29643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29644 ecode2 = SWIG_AsVal_long(obj1, &val2);
29645 if (!SWIG_IsOK(ecode2)) {
29646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29647 }
29648 arg2 = static_cast< long >(val2);
29649 {
29650 arg3 = wxString_in_helper(obj2);
29651 if (arg3 == NULL) SWIG_fail;
29652 temp3 = true;
29653 }
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29657 wxPyEndAllowThreads(__tstate);
29658 if (PyErr_Occurred()) SWIG_fail;
29659 }
29660 resultobj = SWIG_Py_Void();
29661 {
29662 if (temp3)
29663 delete arg3;
29664 }
29665 return resultobj;
29666fail:
29667 {
29668 if (temp3)
29669 delete arg3;
29670 }
29671 return NULL;
29672}
29673
29674
29675SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29676 PyObject *resultobj = 0;
29677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29678 long arg2 ;
29679 long result;
29680 void *argp1 = 0 ;
29681 int res1 = 0 ;
29682 long val2 ;
29683 int ecode2 = 0 ;
29684 PyObject * obj0 = 0 ;
29685 PyObject * obj1 = 0 ;
29686 char * kwnames[] = {
29687 (char *) "self",(char *) "item", NULL
29688 };
29689
29690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29692 if (!SWIG_IsOK(res1)) {
29693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29694 }
29695 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29696 ecode2 = SWIG_AsVal_long(obj1, &val2);
29697 if (!SWIG_IsOK(ecode2)) {
29698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29699 }
29700 arg2 = static_cast< long >(val2);
29701 {
29702 PyThreadState* __tstate = wxPyBeginAllowThreads();
29703 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29704 wxPyEndAllowThreads(__tstate);
29705 if (PyErr_Occurred()) SWIG_fail;
29706 }
29707 resultobj = SWIG_From_long(static_cast< long >(result));
29708 return resultobj;
29709fail:
29710 return NULL;
29711}
29712
29713
29714SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29715 PyObject *resultobj = 0;
29716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29717 long arg2 ;
29718 long arg3 ;
29719 bool result;
29720 void *argp1 = 0 ;
29721 int res1 = 0 ;
29722 long val2 ;
29723 int ecode2 = 0 ;
29724 long val3 ;
29725 int ecode3 = 0 ;
29726 PyObject * obj0 = 0 ;
29727 PyObject * obj1 = 0 ;
29728 PyObject * obj2 = 0 ;
29729 char * kwnames[] = {
29730 (char *) "self",(char *) "item",(char *) "data", NULL
29731 };
29732
29733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29737 }
29738 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29739 ecode2 = SWIG_AsVal_long(obj1, &val2);
29740 if (!SWIG_IsOK(ecode2)) {
29741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29742 }
29743 arg2 = static_cast< long >(val2);
29744 ecode3 = SWIG_AsVal_long(obj2, &val3);
29745 if (!SWIG_IsOK(ecode3)) {
29746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29747 }
29748 arg3 = static_cast< long >(val3);
29749 {
29750 PyThreadState* __tstate = wxPyBeginAllowThreads();
29751 result = (bool)(arg1)->SetItemData(arg2,arg3);
29752 wxPyEndAllowThreads(__tstate);
29753 if (PyErr_Occurred()) SWIG_fail;
29754 }
29755 {
29756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29757 }
29758 return resultobj;
29759fail:
29760 return NULL;
29761}
29762
29763
29764SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29765 PyObject *resultobj = 0;
29766 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29767 long arg2 ;
29768 wxPoint result;
29769 void *argp1 = 0 ;
29770 int res1 = 0 ;
29771 long val2 ;
29772 int ecode2 = 0 ;
29773 PyObject * obj0 = 0 ;
29774 PyObject * obj1 = 0 ;
29775 char * kwnames[] = {
29776 (char *) "self",(char *) "item", NULL
29777 };
29778
29779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29781 if (!SWIG_IsOK(res1)) {
29782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29783 }
29784 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29785 ecode2 = SWIG_AsVal_long(obj1, &val2);
29786 if (!SWIG_IsOK(ecode2)) {
29787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29788 }
29789 arg2 = static_cast< long >(val2);
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29793 wxPyEndAllowThreads(__tstate);
29794 if (PyErr_Occurred()) SWIG_fail;
29795 }
29796 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29797 return resultobj;
29798fail:
29799 return NULL;
29800}
29801
29802
29803SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29804 PyObject *resultobj = 0;
29805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29806 long arg2 ;
29807 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29808 wxRect result;
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
29811 long val2 ;
29812 int ecode2 = 0 ;
29813 int val3 ;
29814 int ecode3 = 0 ;
29815 PyObject * obj0 = 0 ;
29816 PyObject * obj1 = 0 ;
29817 PyObject * obj2 = 0 ;
29818 char * kwnames[] = {
29819 (char *) "self",(char *) "item",(char *) "code", NULL
29820 };
29821
29822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29824 if (!SWIG_IsOK(res1)) {
29825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29826 }
29827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29828 ecode2 = SWIG_AsVal_long(obj1, &val2);
29829 if (!SWIG_IsOK(ecode2)) {
29830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29831 }
29832 arg2 = static_cast< long >(val2);
29833 if (obj2) {
29834 ecode3 = SWIG_AsVal_int(obj2, &val3);
29835 if (!SWIG_IsOK(ecode3)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29837 }
29838 arg3 = static_cast< int >(val3);
29839 }
29840 {
29841 PyThreadState* __tstate = wxPyBeginAllowThreads();
29842 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29843 wxPyEndAllowThreads(__tstate);
29844 if (PyErr_Occurred()) SWIG_fail;
29845 }
29846 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29847 return resultobj;
29848fail:
29849 return NULL;
29850}
29851
29852
29853SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29854 PyObject *resultobj = 0;
29855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29856 long arg2 ;
29857 wxPoint *arg3 = 0 ;
29858 bool result;
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 long val2 ;
29862 int ecode2 = 0 ;
29863 wxPoint temp3 ;
29864 PyObject * obj0 = 0 ;
29865 PyObject * obj1 = 0 ;
29866 PyObject * obj2 = 0 ;
29867 char * kwnames[] = {
29868 (char *) "self",(char *) "item",(char *) "pos", NULL
29869 };
29870
29871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29875 }
29876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29877 ecode2 = SWIG_AsVal_long(obj1, &val2);
29878 if (!SWIG_IsOK(ecode2)) {
29879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29880 }
29881 arg2 = static_cast< long >(val2);
29882 {
29883 arg3 = &temp3;
29884 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29885 }
29886 {
29887 PyThreadState* __tstate = wxPyBeginAllowThreads();
29888 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29889 wxPyEndAllowThreads(__tstate);
29890 if (PyErr_Occurred()) SWIG_fail;
29891 }
29892 {
29893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29894 }
29895 return resultobj;
29896fail:
29897 return NULL;
7e08d4ef
RD
29898}
29899
29900
554f62e9
RD
29901SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29902 PyObject *resultobj = 0;
29903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29904 int result;
29905 void *argp1 = 0 ;
29906 int res1 = 0 ;
29907 PyObject *swig_obj[1] ;
29908
29909 if (!args) SWIG_fail;
29910 swig_obj[0] = args;
29911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29912 if (!SWIG_IsOK(res1)) {
29913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29914 }
29915 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29916 {
29917 PyThreadState* __tstate = wxPyBeginAllowThreads();
29918 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29919 wxPyEndAllowThreads(__tstate);
29920 if (PyErr_Occurred()) SWIG_fail;
29921 }
29922 resultobj = SWIG_From_int(static_cast< int >(result));
29923 return resultobj;
29924fail:
29925 return NULL;
7e08d4ef
RD
29926}
29927
29928
554f62e9
RD
29929SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29930 PyObject *resultobj = 0;
29931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29932 int result;
29933 void *argp1 = 0 ;
29934 int res1 = 0 ;
29935 PyObject *swig_obj[1] ;
29936
29937 if (!args) SWIG_fail;
29938 swig_obj[0] = args;
29939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29940 if (!SWIG_IsOK(res1)) {
29941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29942 }
29943 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29947 wxPyEndAllowThreads(__tstate);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 }
29950 resultobj = SWIG_From_int(static_cast< int >(result));
29951 return resultobj;
29952fail:
29953 return NULL;
7e08d4ef
RD
29954}
29955
29956
554f62e9
RD
29957SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29958 PyObject *resultobj = 0;
29959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29960 wxSize result;
29961 void *argp1 = 0 ;
29962 int res1 = 0 ;
29963 PyObject *swig_obj[1] ;
29964
29965 if (!args) SWIG_fail;
29966 swig_obj[0] = args;
29967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29968 if (!SWIG_IsOK(res1)) {
29969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29970 }
29971 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29972 {
29973 PyThreadState* __tstate = wxPyBeginAllowThreads();
29974 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29975 wxPyEndAllowThreads(__tstate);
29976 if (PyErr_Occurred()) SWIG_fail;
29977 }
29978 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29979 return resultobj;
29980fail:
29981 return NULL;
7e08d4ef
RD
29982}
29983
29984
554f62e9
RD
29985SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29986 PyObject *resultobj = 0;
29987 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29988 int result;
29989 void *argp1 = 0 ;
29990 int res1 = 0 ;
29991 PyObject *swig_obj[1] ;
29992
29993 if (!args) SWIG_fail;
29994 swig_obj[0] = args;
29995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29996 if (!SWIG_IsOK(res1)) {
29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29998 }
29999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30000 {
30001 PyThreadState* __tstate = wxPyBeginAllowThreads();
30002 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30003 wxPyEndAllowThreads(__tstate);
30004 if (PyErr_Occurred()) SWIG_fail;
30005 }
30006 resultobj = SWIG_From_int(static_cast< int >(result));
30007 return resultobj;
30008fail:
30009 return NULL;
7e08d4ef
RD
30010}
30011
30012
554f62e9
RD
30013SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30014 PyObject *resultobj = 0;
30015 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30016 wxColour result;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 PyObject *swig_obj[1] ;
30020
30021 if (!args) SWIG_fail;
30022 swig_obj[0] = args;
30023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30024 if (!SWIG_IsOK(res1)) {
30025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30026 }
30027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30028 {
30029 PyThreadState* __tstate = wxPyBeginAllowThreads();
30030 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30031 wxPyEndAllowThreads(__tstate);
30032 if (PyErr_Occurred()) SWIG_fail;
30033 }
30034 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30035 return resultobj;
30036fail:
30037 return NULL;
30038}
30039
30040
30041SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30042 PyObject *resultobj = 0;
30043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30044 wxColour *arg2 = 0 ;
30045 void *argp1 = 0 ;
30046 int res1 = 0 ;
30047 wxColour temp2 ;
30048 PyObject * obj0 = 0 ;
30049 PyObject * obj1 = 0 ;
30050 char * kwnames[] = {
30051 (char *) "self",(char *) "col", NULL
30052 };
30053
30054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30056 if (!SWIG_IsOK(res1)) {
30057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30058 }
30059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30060 {
30061 arg2 = &temp2;
30062 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30063 }
30064 {
30065 PyThreadState* __tstate = wxPyBeginAllowThreads();
30066 (arg1)->SetTextColour((wxColour const &)*arg2);
30067 wxPyEndAllowThreads(__tstate);
30068 if (PyErr_Occurred()) SWIG_fail;
30069 }
30070 resultobj = SWIG_Py_Void();
30071 return resultobj;
30072fail:
30073 return NULL;
7e08d4ef
RD
30074}
30075
30076
554f62e9
RD
30077SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30078 PyObject *resultobj = 0;
30079 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30080 long result;
30081 void *argp1 = 0 ;
30082 int res1 = 0 ;
30083 PyObject *swig_obj[1] ;
30084
30085 if (!args) SWIG_fail;
30086 swig_obj[0] = args;
30087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30088 if (!SWIG_IsOK(res1)) {
30089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30090 }
30091 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30092 {
30093 PyThreadState* __tstate = wxPyBeginAllowThreads();
30094 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30095 wxPyEndAllowThreads(__tstate);
30096 if (PyErr_Occurred()) SWIG_fail;
30097 }
30098 resultobj = SWIG_From_long(static_cast< long >(result));
30099 return resultobj;
30100fail:
30101 return NULL;
30102}
30103
30104
30105SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30106 PyObject *resultobj = 0;
30107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30108 long arg2 ;
30109 bool arg3 = (bool) true ;
30110 void *argp1 = 0 ;
30111 int res1 = 0 ;
30112 long val2 ;
30113 int ecode2 = 0 ;
30114 bool val3 ;
30115 int ecode3 = 0 ;
30116 PyObject * obj0 = 0 ;
30117 PyObject * obj1 = 0 ;
30118 PyObject * obj2 = 0 ;
30119 char * kwnames[] = {
30120 (char *) "self",(char *) "style",(char *) "add", NULL
30121 };
30122
30123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30125 if (!SWIG_IsOK(res1)) {
30126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30127 }
30128 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30129 ecode2 = SWIG_AsVal_long(obj1, &val2);
30130 if (!SWIG_IsOK(ecode2)) {
30131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30132 }
30133 arg2 = static_cast< long >(val2);
30134 if (obj2) {
30135 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30136 if (!SWIG_IsOK(ecode3)) {
30137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30138 }
30139 arg3 = static_cast< bool >(val3);
30140 }
30141 {
30142 PyThreadState* __tstate = wxPyBeginAllowThreads();
30143 (arg1)->SetSingleStyle(arg2,arg3);
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 resultobj = SWIG_Py_Void();
30148 return resultobj;
30149fail:
30150 return NULL;
30151}
30152
30153
30154SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30155 PyObject *resultobj = 0;
30156 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30157 long arg2 ;
30158 int arg3 = (int) wxLIST_NEXT_ALL ;
30159 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30160 long result;
30161 void *argp1 = 0 ;
30162 int res1 = 0 ;
30163 long val2 ;
30164 int ecode2 = 0 ;
30165 int val3 ;
30166 int ecode3 = 0 ;
30167 int val4 ;
30168 int ecode4 = 0 ;
30169 PyObject * obj0 = 0 ;
30170 PyObject * obj1 = 0 ;
30171 PyObject * obj2 = 0 ;
30172 PyObject * obj3 = 0 ;
30173 char * kwnames[] = {
30174 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30175 };
30176
30177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30179 if (!SWIG_IsOK(res1)) {
30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30181 }
30182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30183 ecode2 = SWIG_AsVal_long(obj1, &val2);
30184 if (!SWIG_IsOK(ecode2)) {
30185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30186 }
30187 arg2 = static_cast< long >(val2);
30188 if (obj2) {
30189 ecode3 = SWIG_AsVal_int(obj2, &val3);
30190 if (!SWIG_IsOK(ecode3)) {
30191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30192 }
30193 arg3 = static_cast< int >(val3);
30194 }
30195 if (obj3) {
30196 ecode4 = SWIG_AsVal_int(obj3, &val4);
30197 if (!SWIG_IsOK(ecode4)) {
30198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30199 }
30200 arg4 = static_cast< int >(val4);
30201 }
30202 {
30203 PyThreadState* __tstate = wxPyBeginAllowThreads();
30204 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30205 wxPyEndAllowThreads(__tstate);
30206 if (PyErr_Occurred()) SWIG_fail;
30207 }
30208 resultobj = SWIG_From_long(static_cast< long >(result));
30209 return resultobj;
30210fail:
30211 return NULL;
30212}
30213
30214
30215SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj = 0;
30217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30218 int arg2 ;
30219 wxImageList *result = 0 ;
30220 void *argp1 = 0 ;
30221 int res1 = 0 ;
30222 int val2 ;
30223 int ecode2 = 0 ;
30224 PyObject * obj0 = 0 ;
30225 PyObject * obj1 = 0 ;
30226 char * kwnames[] = {
30227 (char *) "self",(char *) "which", NULL
30228 };
30229
30230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30232 if (!SWIG_IsOK(res1)) {
30233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30234 }
30235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30236 ecode2 = SWIG_AsVal_int(obj1, &val2);
30237 if (!SWIG_IsOK(ecode2)) {
30238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30239 }
30240 arg2 = static_cast< int >(val2);
30241 {
30242 PyThreadState* __tstate = wxPyBeginAllowThreads();
30243 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30244 wxPyEndAllowThreads(__tstate);
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 {
30248 resultobj = wxPyMake_wxObject(result, (bool)0);
30249 }
30250 return resultobj;
30251fail:
30252 return NULL;
30253}
30254
30255
30256SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30257 PyObject *resultobj = 0;
30258 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30259 wxImageList *arg2 = (wxImageList *) 0 ;
30260 int arg3 ;
30261 void *argp1 = 0 ;
30262 int res1 = 0 ;
30263 void *argp2 = 0 ;
30264 int res2 = 0 ;
30265 int val3 ;
30266 int ecode3 = 0 ;
30267 PyObject * obj0 = 0 ;
30268 PyObject * obj1 = 0 ;
30269 PyObject * obj2 = 0 ;
30270 char * kwnames[] = {
30271 (char *) "self",(char *) "imageList",(char *) "which", NULL
30272 };
30273
30274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30276 if (!SWIG_IsOK(res1)) {
30277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30278 }
30279 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30281 if (!SWIG_IsOK(res2)) {
30282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30283 }
30284 arg2 = reinterpret_cast< wxImageList * >(argp2);
30285 ecode3 = SWIG_AsVal_int(obj2, &val3);
30286 if (!SWIG_IsOK(ecode3)) {
30287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30288 }
30289 arg3 = static_cast< int >(val3);
30290 {
30291 PyThreadState* __tstate = wxPyBeginAllowThreads();
30292 (arg1)->SetImageList(arg2,arg3);
30293 wxPyEndAllowThreads(__tstate);
30294 if (PyErr_Occurred()) SWIG_fail;
30295 }
30296 resultobj = SWIG_Py_Void();
30297 return resultobj;
30298fail:
30299 return NULL;
30300}
30301
30302
30303SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30304 PyObject *resultobj = 0;
30305 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30306 wxImageList *arg2 = (wxImageList *) 0 ;
30307 int arg3 ;
30308 void *argp1 = 0 ;
30309 int res1 = 0 ;
30310 int res2 = 0 ;
30311 int val3 ;
30312 int ecode3 = 0 ;
30313 PyObject * obj0 = 0 ;
30314 PyObject * obj1 = 0 ;
30315 PyObject * obj2 = 0 ;
30316 char * kwnames[] = {
30317 (char *) "self",(char *) "imageList",(char *) "which", NULL
30318 };
30319
30320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30322 if (!SWIG_IsOK(res1)) {
30323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30324 }
30325 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30326 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30327 if (!SWIG_IsOK(res2)) {
30328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30329 }
30330 ecode3 = SWIG_AsVal_int(obj2, &val3);
30331 if (!SWIG_IsOK(ecode3)) {
30332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30333 }
30334 arg3 = static_cast< int >(val3);
30335 {
30336 PyThreadState* __tstate = wxPyBeginAllowThreads();
30337 (arg1)->AssignImageList(arg2,arg3);
30338 wxPyEndAllowThreads(__tstate);
30339 if (PyErr_Occurred()) SWIG_fail;
30340 }
30341 resultobj = SWIG_Py_Void();
30342 return resultobj;
30343fail:
30344 return NULL;
7e08d4ef
RD
30345}
30346
30347
554f62e9
RD
30348SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30349 PyObject *resultobj = 0;
30350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30351 bool result;
30352 void *argp1 = 0 ;
30353 int res1 = 0 ;
30354 PyObject *swig_obj[1] ;
30355
30356 if (!args) SWIG_fail;
30357 swig_obj[0] = args;
30358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30359 if (!SWIG_IsOK(res1)) {
30360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30361 }
30362 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30363 {
30364 PyThreadState* __tstate = wxPyBeginAllowThreads();
30365 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30366 wxPyEndAllowThreads(__tstate);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 {
30370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30371 }
30372 return resultobj;
30373fail:
30374 return NULL;
7e08d4ef
RD
30375}
30376
30377
554f62e9
RD
30378SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30379 PyObject *resultobj = 0;
30380 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30381 bool result;
30382 void *argp1 = 0 ;
30383 int res1 = 0 ;
30384 PyObject *swig_obj[1] ;
30385
30386 if (!args) SWIG_fail;
30387 swig_obj[0] = args;
30388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30389 if (!SWIG_IsOK(res1)) {
30390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30391 }
30392 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30393 {
30394 PyThreadState* __tstate = wxPyBeginAllowThreads();
30395 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30396 wxPyEndAllowThreads(__tstate);
30397 if (PyErr_Occurred()) SWIG_fail;
30398 }
30399 {
30400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30401 }
30402 return resultobj;
30403fail:
30404 return NULL;
30405}
30406
30407
30408SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30409 PyObject *resultobj = 0;
30410 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30411 long arg2 ;
30412 void *argp1 = 0 ;
30413 int res1 = 0 ;
30414 long val2 ;
30415 int ecode2 = 0 ;
30416 PyObject * obj0 = 0 ;
30417 PyObject * obj1 = 0 ;
30418 char * kwnames[] = {
30419 (char *) "self",(char *) "item", NULL
30420 };
30421
30422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30424 if (!SWIG_IsOK(res1)) {
30425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30426 }
30427 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30428 ecode2 = SWIG_AsVal_long(obj1, &val2);
30429 if (!SWIG_IsOK(ecode2)) {
30430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30431 }
30432 arg2 = static_cast< long >(val2);
30433 {
30434 PyThreadState* __tstate = wxPyBeginAllowThreads();
30435 (arg1)->RefreshItem(arg2);
30436 wxPyEndAllowThreads(__tstate);
30437 if (PyErr_Occurred()) SWIG_fail;
30438 }
30439 resultobj = SWIG_Py_Void();
30440 return resultobj;
30441fail:
30442 return NULL;
30443}
30444
30445
30446SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30447 PyObject *resultobj = 0;
30448 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30449 long arg2 ;
30450 long arg3 ;
30451 void *argp1 = 0 ;
30452 int res1 = 0 ;
30453 long val2 ;
30454 int ecode2 = 0 ;
30455 long val3 ;
30456 int ecode3 = 0 ;
30457 PyObject * obj0 = 0 ;
30458 PyObject * obj1 = 0 ;
30459 PyObject * obj2 = 0 ;
30460 char * kwnames[] = {
30461 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30462 };
30463
30464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30466 if (!SWIG_IsOK(res1)) {
30467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30468 }
30469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30470 ecode2 = SWIG_AsVal_long(obj1, &val2);
30471 if (!SWIG_IsOK(ecode2)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30473 }
30474 arg2 = static_cast< long >(val2);
30475 ecode3 = SWIG_AsVal_long(obj2, &val3);
30476 if (!SWIG_IsOK(ecode3)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30478 }
30479 arg3 = static_cast< long >(val3);
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 (arg1)->RefreshItems(arg2,arg3);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 resultobj = SWIG_Py_Void();
30487 return resultobj;
30488fail:
30489 return NULL;
30490}
30491
30492
30493SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30494 PyObject *resultobj = 0;
30495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30496 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30497 bool result;
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
30500 int val2 ;
30501 int ecode2 = 0 ;
30502 PyObject * obj0 = 0 ;
30503 PyObject * obj1 = 0 ;
30504 char * kwnames[] = {
30505 (char *) "self",(char *) "flag", NULL
30506 };
30507
30508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30510 if (!SWIG_IsOK(res1)) {
30511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30512 }
30513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30514 if (obj1) {
30515 ecode2 = SWIG_AsVal_int(obj1, &val2);
30516 if (!SWIG_IsOK(ecode2)) {
30517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30518 }
30519 arg2 = static_cast< int >(val2);
30520 }
30521 {
30522 PyThreadState* __tstate = wxPyBeginAllowThreads();
30523 result = (bool)(arg1)->Arrange(arg2);
30524 wxPyEndAllowThreads(__tstate);
30525 if (PyErr_Occurred()) SWIG_fail;
30526 }
30527 {
30528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30529 }
30530 return resultobj;
30531fail:
30532 return NULL;
30533}
30534
30535
30536SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30537 PyObject *resultobj = 0;
30538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30539 long arg2 ;
30540 bool result;
30541 void *argp1 = 0 ;
30542 int res1 = 0 ;
30543 long val2 ;
30544 int ecode2 = 0 ;
30545 PyObject * obj0 = 0 ;
30546 PyObject * obj1 = 0 ;
30547 char * kwnames[] = {
30548 (char *) "self",(char *) "item", NULL
30549 };
30550
30551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30553 if (!SWIG_IsOK(res1)) {
30554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30555 }
30556 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30557 ecode2 = SWIG_AsVal_long(obj1, &val2);
30558 if (!SWIG_IsOK(ecode2)) {
30559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30560 }
30561 arg2 = static_cast< long >(val2);
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 result = (bool)(arg1)->DeleteItem(arg2);
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 {
30569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30570 }
30571 return resultobj;
30572fail:
30573 return NULL;
7e08d4ef
RD
30574}
30575
30576
554f62e9
RD
30577SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30578 PyObject *resultobj = 0;
30579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30580 bool result;
30581 void *argp1 = 0 ;
30582 int res1 = 0 ;
30583 PyObject *swig_obj[1] ;
30584
30585 if (!args) SWIG_fail;
30586 swig_obj[0] = args;
30587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30588 if (!SWIG_IsOK(res1)) {
30589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30590 }
30591 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = (bool)(arg1)->DeleteAllItems();
30595 wxPyEndAllowThreads(__tstate);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 {
30599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30600 }
30601 return resultobj;
30602fail:
30603 return NULL;
30604}
30605
30606
30607SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30608 PyObject *resultobj = 0;
30609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30610 int arg2 ;
30611 bool result;
30612 void *argp1 = 0 ;
30613 int res1 = 0 ;
30614 int val2 ;
30615 int ecode2 = 0 ;
30616 PyObject * obj0 = 0 ;
30617 PyObject * obj1 = 0 ;
30618 char * kwnames[] = {
30619 (char *) "self",(char *) "col", NULL
30620 };
30621
30622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30624 if (!SWIG_IsOK(res1)) {
30625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30626 }
30627 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30628 ecode2 = SWIG_AsVal_int(obj1, &val2);
30629 if (!SWIG_IsOK(ecode2)) {
30630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30631 }
30632 arg2 = static_cast< int >(val2);
30633 {
30634 PyThreadState* __tstate = wxPyBeginAllowThreads();
30635 result = (bool)(arg1)->DeleteColumn(arg2);
30636 wxPyEndAllowThreads(__tstate);
30637 if (PyErr_Occurred()) SWIG_fail;
30638 }
30639 {
30640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30641 }
30642 return resultobj;
30643fail:
30644 return NULL;
7e08d4ef
RD
30645}
30646
30647
554f62e9
RD
30648SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30649 PyObject *resultobj = 0;
30650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30651 bool result;
30652 void *argp1 = 0 ;
30653 int res1 = 0 ;
30654 PyObject *swig_obj[1] ;
30655
30656 if (!args) SWIG_fail;
30657 swig_obj[0] = args;
30658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30659 if (!SWIG_IsOK(res1)) {
30660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30661 }
30662 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30663 {
30664 PyThreadState* __tstate = wxPyBeginAllowThreads();
30665 result = (bool)(arg1)->DeleteAllColumns();
30666 wxPyEndAllowThreads(__tstate);
30667 if (PyErr_Occurred()) SWIG_fail;
30668 }
30669 {
30670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30671 }
30672 return resultobj;
30673fail:
30674 return NULL;
7e08d4ef
RD
30675}
30676
30677
554f62e9
RD
30678SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30679 PyObject *resultobj = 0;
30680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30681 void *argp1 = 0 ;
30682 int res1 = 0 ;
30683 PyObject *swig_obj[1] ;
30684
30685 if (!args) SWIG_fail;
30686 swig_obj[0] = args;
30687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30688 if (!SWIG_IsOK(res1)) {
30689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30690 }
30691 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30692 {
30693 PyThreadState* __tstate = wxPyBeginAllowThreads();
30694 (arg1)->ClearAll();
30695 wxPyEndAllowThreads(__tstate);
30696 if (PyErr_Occurred()) SWIG_fail;
30697 }
30698 resultobj = SWIG_Py_Void();
30699 return resultobj;
30700fail:
30701 return NULL;
30702}
30703
30704
30705SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30706 PyObject *resultobj = 0;
30707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30708 long arg2 ;
30709 wxTextCtrl *result = 0 ;
30710 void *argp1 = 0 ;
30711 int res1 = 0 ;
30712 long val2 ;
30713 int ecode2 = 0 ;
30714 PyObject * obj0 = 0 ;
30715 PyObject * obj1 = 0 ;
30716 char * kwnames[] = {
30717 (char *) "self",(char *) "item", NULL
30718 };
30719
30720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30722 if (!SWIG_IsOK(res1)) {
30723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30724 }
30725 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30726 ecode2 = SWIG_AsVal_long(obj1, &val2);
30727 if (!SWIG_IsOK(ecode2)) {
30728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30729 }
30730 arg2 = static_cast< long >(val2);
30731 {
30732 PyThreadState* __tstate = wxPyBeginAllowThreads();
30733 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30734 wxPyEndAllowThreads(__tstate);
30735 if (PyErr_Occurred()) SWIG_fail;
30736 }
30737 {
30738 resultobj = wxPyMake_wxObject(result, 0);
30739 }
30740 return resultobj;
30741fail:
30742 return NULL;
30743}
30744
30745
30746SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30747 PyObject *resultobj = 0;
30748 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30749 bool arg2 ;
30750 bool result;
30751 void *argp1 = 0 ;
30752 int res1 = 0 ;
30753 bool val2 ;
30754 int ecode2 = 0 ;
30755 PyObject * obj0 = 0 ;
30756 PyObject * obj1 = 0 ;
30757 char * kwnames[] = {
30758 (char *) "self",(char *) "cancel", NULL
30759 };
30760
30761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30765 }
30766 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30767 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30768 if (!SWIG_IsOK(ecode2)) {
30769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30770 }
30771 arg2 = static_cast< bool >(val2);
30772 {
30773 PyThreadState* __tstate = wxPyBeginAllowThreads();
30774 result = (bool)(arg1)->EndEditLabel(arg2);
30775 wxPyEndAllowThreads(__tstate);
30776 if (PyErr_Occurred()) SWIG_fail;
30777 }
30778 {
30779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30780 }
30781 return resultobj;
30782fail:
30783 return NULL;
30784}
30785
30786
30787SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30788 PyObject *resultobj = 0;
30789 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30790 long arg2 ;
30791 bool result;
30792 void *argp1 = 0 ;
30793 int res1 = 0 ;
30794 long val2 ;
30795 int ecode2 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 char * kwnames[] = {
30799 (char *) "self",(char *) "item", NULL
30800 };
30801
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30806 }
30807 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30808 ecode2 = SWIG_AsVal_long(obj1, &val2);
30809 if (!SWIG_IsOK(ecode2)) {
30810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30811 }
30812 arg2 = static_cast< long >(val2);
30813 {
30814 PyThreadState* __tstate = wxPyBeginAllowThreads();
30815 result = (bool)(arg1)->EnsureVisible(arg2);
30816 wxPyEndAllowThreads(__tstate);
30817 if (PyErr_Occurred()) SWIG_fail;
30818 }
30819 {
30820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30821 }
30822 return resultobj;
30823fail:
30824 return NULL;
30825}
30826
30827
30828SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30829 PyObject *resultobj = 0;
30830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30831 long arg2 ;
30832 wxString *arg3 = 0 ;
30833 bool arg4 = (bool) false ;
30834 long result;
30835 void *argp1 = 0 ;
30836 int res1 = 0 ;
30837 long val2 ;
30838 int ecode2 = 0 ;
30839 bool temp3 = false ;
30840 bool val4 ;
30841 int ecode4 = 0 ;
30842 PyObject * obj0 = 0 ;
30843 PyObject * obj1 = 0 ;
30844 PyObject * obj2 = 0 ;
30845 PyObject * obj3 = 0 ;
30846 char * kwnames[] = {
30847 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30848 };
30849
30850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30852 if (!SWIG_IsOK(res1)) {
30853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30854 }
30855 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30856 ecode2 = SWIG_AsVal_long(obj1, &val2);
30857 if (!SWIG_IsOK(ecode2)) {
30858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30859 }
30860 arg2 = static_cast< long >(val2);
30861 {
30862 arg3 = wxString_in_helper(obj2);
30863 if (arg3 == NULL) SWIG_fail;
30864 temp3 = true;
30865 }
30866 if (obj3) {
30867 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30868 if (!SWIG_IsOK(ecode4)) {
30869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30870 }
30871 arg4 = static_cast< bool >(val4);
30872 }
30873 {
30874 PyThreadState* __tstate = wxPyBeginAllowThreads();
30875 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30876 wxPyEndAllowThreads(__tstate);
30877 if (PyErr_Occurred()) SWIG_fail;
30878 }
30879 resultobj = SWIG_From_long(static_cast< long >(result));
30880 {
30881 if (temp3)
30882 delete arg3;
30883 }
30884 return resultobj;
30885fail:
30886 {
30887 if (temp3)
30888 delete arg3;
30889 }
30890 return NULL;
30891}
30892
30893
30894SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30895 PyObject *resultobj = 0;
30896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30897 long arg2 ;
30898 long arg3 ;
30899 long result;
30900 void *argp1 = 0 ;
30901 int res1 = 0 ;
30902 long val2 ;
30903 int ecode2 = 0 ;
30904 long val3 ;
30905 int ecode3 = 0 ;
30906 PyObject * obj0 = 0 ;
30907 PyObject * obj1 = 0 ;
30908 PyObject * obj2 = 0 ;
30909 char * kwnames[] = {
30910 (char *) "self",(char *) "start",(char *) "data", NULL
30911 };
30912
30913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30915 if (!SWIG_IsOK(res1)) {
30916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30917 }
30918 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30919 ecode2 = SWIG_AsVal_long(obj1, &val2);
30920 if (!SWIG_IsOK(ecode2)) {
30921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30922 }
30923 arg2 = static_cast< long >(val2);
30924 ecode3 = SWIG_AsVal_long(obj2, &val3);
30925 if (!SWIG_IsOK(ecode3)) {
30926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30927 }
30928 arg3 = static_cast< long >(val3);
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 result = (long)(arg1)->FindItem(arg2,arg3);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_From_long(static_cast< long >(result));
30936 return resultobj;
30937fail:
30938 return NULL;
30939}
30940
30941
30942SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30945 long arg2 ;
30946 wxPoint *arg3 = 0 ;
30947 int arg4 ;
30948 long result;
30949 void *argp1 = 0 ;
30950 int res1 = 0 ;
30951 long val2 ;
30952 int ecode2 = 0 ;
30953 wxPoint temp3 ;
30954 int val4 ;
30955 int ecode4 = 0 ;
30956 PyObject * obj0 = 0 ;
30957 PyObject * obj1 = 0 ;
30958 PyObject * obj2 = 0 ;
30959 PyObject * obj3 = 0 ;
30960 char * kwnames[] = {
30961 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30962 };
30963
30964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30966 if (!SWIG_IsOK(res1)) {
30967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30968 }
30969 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30970 ecode2 = SWIG_AsVal_long(obj1, &val2);
30971 if (!SWIG_IsOK(ecode2)) {
30972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30973 }
30974 arg2 = static_cast< long >(val2);
30975 {
30976 arg3 = &temp3;
30977 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30978 }
30979 ecode4 = SWIG_AsVal_int(obj3, &val4);
30980 if (!SWIG_IsOK(ecode4)) {
30981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30982 }
30983 arg4 = static_cast< int >(val4);
30984 {
30985 PyThreadState* __tstate = wxPyBeginAllowThreads();
30986 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30987 wxPyEndAllowThreads(__tstate);
30988 if (PyErr_Occurred()) SWIG_fail;
30989 }
30990 resultobj = SWIG_From_long(static_cast< long >(result));
30991 return resultobj;
30992fail:
30993 return NULL;
30994}
30995
30996
30997SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30998 PyObject *resultobj = 0;
30999 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31000 wxPoint *arg2 = 0 ;
31001 int *arg3 = 0 ;
31002 long result;
31003 void *argp1 = 0 ;
31004 int res1 = 0 ;
31005 wxPoint temp2 ;
31006 int temp3 ;
31007 int res3 = SWIG_TMPOBJ ;
31008 PyObject * obj0 = 0 ;
31009 PyObject * obj1 = 0 ;
31010 char * kwnames[] = {
31011 (char *) "self",(char *) "point", NULL
31012 };
31013
31014 arg3 = &temp3;
31015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31017 if (!SWIG_IsOK(res1)) {
31018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31019 }
31020 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31021 {
31022 arg2 = &temp2;
31023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31024 }
31025 {
31026 PyThreadState* __tstate = wxPyBeginAllowThreads();
31027 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31028 wxPyEndAllowThreads(__tstate);
31029 if (PyErr_Occurred()) SWIG_fail;
31030 }
31031 resultobj = SWIG_From_long(static_cast< long >(result));
31032 if (SWIG_IsTmpObj(res3)) {
31033 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31034 } else {
31035 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31037 }
31038 return resultobj;
31039fail:
31040 return NULL;
31041}
31042
31043
704eda0c
RD
31044SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31045 PyObject *resultobj = 0;
31046 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31047 wxPoint *arg2 = 0 ;
31048 int *arg3 = 0 ;
31049 long *arg4 = (long *) 0 ;
31050 long result;
31051 void *argp1 = 0 ;
31052 int res1 = 0 ;
31053 wxPoint temp2 ;
31054 int temp3 ;
31055 int res3 = SWIG_TMPOBJ ;
31056 long temp4 ;
31057 int res4 = SWIG_TMPOBJ ;
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 char * kwnames[] = {
31061 (char *) "self",(char *) "point", NULL
31062 };
31063
31064 arg3 = &temp3;
31065 arg4 = &temp4;
31066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31068 if (!SWIG_IsOK(res1)) {
31069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31070 }
31071 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31072 {
31073 arg2 = &temp2;
31074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31075 }
31076 {
31077 PyThreadState* __tstate = wxPyBeginAllowThreads();
31078 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31079 wxPyEndAllowThreads(__tstate);
31080 if (PyErr_Occurred()) SWIG_fail;
31081 }
31082 resultobj = SWIG_From_long(static_cast< long >(result));
31083 if (SWIG_IsTmpObj(res3)) {
31084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31085 } else {
31086 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31088 }
31089 if (SWIG_IsTmpObj(res4)) {
31090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31091 } else {
31092 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31094 }
31095 return resultobj;
31096fail:
31097 return NULL;
31098}
31099
31100
554f62e9
RD
31101SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31102 PyObject *resultobj = 0;
31103 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31104 wxListItem *arg2 = 0 ;
31105 long result;
31106 void *argp1 = 0 ;
31107 int res1 = 0 ;
31108 void *argp2 = 0 ;
31109 int res2 = 0 ;
31110 PyObject * obj0 = 0 ;
31111 PyObject * obj1 = 0 ;
31112 char * kwnames[] = {
31113 (char *) "self",(char *) "info", NULL
31114 };
31115
31116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31118 if (!SWIG_IsOK(res1)) {
31119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31120 }
31121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31123 if (!SWIG_IsOK(res2)) {
31124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31125 }
31126 if (!argp2) {
31127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31128 }
31129 arg2 = reinterpret_cast< wxListItem * >(argp2);
31130 {
31131 PyThreadState* __tstate = wxPyBeginAllowThreads();
31132 result = (long)(arg1)->InsertItem(*arg2);
31133 wxPyEndAllowThreads(__tstate);
31134 if (PyErr_Occurred()) SWIG_fail;
31135 }
31136 resultobj = SWIG_From_long(static_cast< long >(result));
31137 return resultobj;
31138fail:
31139 return NULL;
31140}
31141
31142
31143SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31144 PyObject *resultobj = 0;
31145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31146 long arg2 ;
31147 wxString *arg3 = 0 ;
31148 int arg4 = (int) -1 ;
31149 long result;
31150 void *argp1 = 0 ;
31151 int res1 = 0 ;
31152 long val2 ;
31153 int ecode2 = 0 ;
31154 bool temp3 = false ;
31155 int val4 ;
31156 int ecode4 = 0 ;
31157 PyObject * obj0 = 0 ;
31158 PyObject * obj1 = 0 ;
31159 PyObject * obj2 = 0 ;
31160 PyObject * obj3 = 0 ;
31161 char * kwnames[] = {
31162 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31163 };
31164
31165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31167 if (!SWIG_IsOK(res1)) {
31168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31169 }
31170 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31171 ecode2 = SWIG_AsVal_long(obj1, &val2);
31172 if (!SWIG_IsOK(ecode2)) {
31173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31174 }
31175 arg2 = static_cast< long >(val2);
31176 {
31177 arg3 = wxString_in_helper(obj2);
31178 if (arg3 == NULL) SWIG_fail;
31179 temp3 = true;
31180 }
31181 if (obj3) {
31182 ecode4 = SWIG_AsVal_int(obj3, &val4);
31183 if (!SWIG_IsOK(ecode4)) {
31184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31185 }
31186 arg4 = static_cast< int >(val4);
31187 }
31188 {
31189 PyThreadState* __tstate = wxPyBeginAllowThreads();
31190 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31191 wxPyEndAllowThreads(__tstate);
31192 if (PyErr_Occurred()) SWIG_fail;
31193 }
31194 resultobj = SWIG_From_long(static_cast< long >(result));
31195 {
31196 if (temp3)
31197 delete arg3;
31198 }
31199 return resultobj;
31200fail:
31201 {
31202 if (temp3)
31203 delete arg3;
31204 }
31205 return NULL;
31206}
31207
31208
31209SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj = 0;
31211 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31212 long arg2 ;
31213 int arg3 ;
31214 long result;
31215 void *argp1 = 0 ;
31216 int res1 = 0 ;
31217 long val2 ;
31218 int ecode2 = 0 ;
31219 int val3 ;
31220 int ecode3 = 0 ;
31221 PyObject * obj0 = 0 ;
31222 PyObject * obj1 = 0 ;
31223 PyObject * obj2 = 0 ;
31224 char * kwnames[] = {
31225 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31226 };
31227
31228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31230 if (!SWIG_IsOK(res1)) {
31231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31232 }
31233 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31234 ecode2 = SWIG_AsVal_long(obj1, &val2);
31235 if (!SWIG_IsOK(ecode2)) {
31236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31237 }
31238 arg2 = static_cast< long >(val2);
31239 ecode3 = SWIG_AsVal_int(obj2, &val3);
31240 if (!SWIG_IsOK(ecode3)) {
31241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31242 }
31243 arg3 = static_cast< int >(val3);
31244 {
31245 PyThreadState* __tstate = wxPyBeginAllowThreads();
31246 result = (long)(arg1)->InsertItem(arg2,arg3);
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 resultobj = SWIG_From_long(static_cast< long >(result));
31251 return resultobj;
31252fail:
31253 return NULL;
31254}
31255
31256
31257SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31258 PyObject *resultobj = 0;
31259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31260 long arg2 ;
31261 wxString *arg3 = 0 ;
31262 int arg4 ;
31263 long result;
31264 void *argp1 = 0 ;
31265 int res1 = 0 ;
31266 long val2 ;
31267 int ecode2 = 0 ;
31268 bool temp3 = false ;
31269 int val4 ;
31270 int ecode4 = 0 ;
31271 PyObject * obj0 = 0 ;
31272 PyObject * obj1 = 0 ;
31273 PyObject * obj2 = 0 ;
31274 PyObject * obj3 = 0 ;
31275 char * kwnames[] = {
31276 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31277 };
31278
31279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31281 if (!SWIG_IsOK(res1)) {
31282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31283 }
31284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31285 ecode2 = SWIG_AsVal_long(obj1, &val2);
31286 if (!SWIG_IsOK(ecode2)) {
31287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31288 }
31289 arg2 = static_cast< long >(val2);
31290 {
31291 arg3 = wxString_in_helper(obj2);
31292 if (arg3 == NULL) SWIG_fail;
31293 temp3 = true;
31294 }
31295 ecode4 = SWIG_AsVal_int(obj3, &val4);
31296 if (!SWIG_IsOK(ecode4)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31298 }
31299 arg4 = static_cast< int >(val4);
31300 {
31301 PyThreadState* __tstate = wxPyBeginAllowThreads();
31302 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31303 wxPyEndAllowThreads(__tstate);
31304 if (PyErr_Occurred()) SWIG_fail;
31305 }
31306 resultobj = SWIG_From_long(static_cast< long >(result));
31307 {
31308 if (temp3)
31309 delete arg3;
31310 }
31311 return resultobj;
31312fail:
31313 {
31314 if (temp3)
31315 delete arg3;
31316 }
31317 return NULL;
31318}
31319
31320
31321SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31322 PyObject *resultobj = 0;
31323 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31324 long arg2 ;
31325 wxListItem *arg3 = 0 ;
31326 long result;
31327 void *argp1 = 0 ;
31328 int res1 = 0 ;
31329 long val2 ;
31330 int ecode2 = 0 ;
31331 void *argp3 = 0 ;
31332 int res3 = 0 ;
31333 PyObject * obj0 = 0 ;
31334 PyObject * obj1 = 0 ;
31335 PyObject * obj2 = 0 ;
31336 char * kwnames[] = {
31337 (char *) "self",(char *) "col",(char *) "info", NULL
31338 };
31339
31340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31342 if (!SWIG_IsOK(res1)) {
31343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31344 }
31345 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31346 ecode2 = SWIG_AsVal_long(obj1, &val2);
31347 if (!SWIG_IsOK(ecode2)) {
31348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31349 }
31350 arg2 = static_cast< long >(val2);
31351 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31352 if (!SWIG_IsOK(res3)) {
31353 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31354 }
31355 if (!argp3) {
31356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31357 }
31358 arg3 = reinterpret_cast< wxListItem * >(argp3);
31359 {
31360 PyThreadState* __tstate = wxPyBeginAllowThreads();
31361 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31362 wxPyEndAllowThreads(__tstate);
31363 if (PyErr_Occurred()) SWIG_fail;
31364 }
31365 resultobj = SWIG_From_long(static_cast< long >(result));
31366 return resultobj;
31367fail:
31368 return NULL;
31369}
31370
31371
31372SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31373 PyObject *resultobj = 0;
31374 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31375 long arg2 ;
31376 wxString *arg3 = 0 ;
31377 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31378 int arg5 = (int) -1 ;
31379 long result;
31380 void *argp1 = 0 ;
31381 int res1 = 0 ;
31382 long val2 ;
31383 int ecode2 = 0 ;
31384 bool temp3 = false ;
31385 int val4 ;
31386 int ecode4 = 0 ;
31387 int val5 ;
31388 int ecode5 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 PyObject * obj2 = 0 ;
31392 PyObject * obj3 = 0 ;
31393 PyObject * obj4 = 0 ;
31394 char * kwnames[] = {
31395 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31396 };
31397
31398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31400 if (!SWIG_IsOK(res1)) {
31401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31402 }
31403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31404 ecode2 = SWIG_AsVal_long(obj1, &val2);
31405 if (!SWIG_IsOK(ecode2)) {
31406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31407 }
31408 arg2 = static_cast< long >(val2);
31409 {
31410 arg3 = wxString_in_helper(obj2);
31411 if (arg3 == NULL) SWIG_fail;
31412 temp3 = true;
31413 }
31414 if (obj3) {
31415 ecode4 = SWIG_AsVal_int(obj3, &val4);
31416 if (!SWIG_IsOK(ecode4)) {
31417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31418 }
31419 arg4 = static_cast< int >(val4);
31420 }
31421 if (obj4) {
31422 ecode5 = SWIG_AsVal_int(obj4, &val5);
31423 if (!SWIG_IsOK(ecode5)) {
31424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31425 }
31426 arg5 = static_cast< int >(val5);
31427 }
31428 {
31429 PyThreadState* __tstate = wxPyBeginAllowThreads();
31430 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31431 wxPyEndAllowThreads(__tstate);
31432 if (PyErr_Occurred()) SWIG_fail;
31433 }
31434 resultobj = SWIG_From_long(static_cast< long >(result));
31435 {
31436 if (temp3)
31437 delete arg3;
31438 }
31439 return resultobj;
31440fail:
31441 {
31442 if (temp3)
31443 delete arg3;
31444 }
31445 return NULL;
31446}
31447
31448
31449SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31450 PyObject *resultobj = 0;
31451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31452 long arg2 ;
31453 void *argp1 = 0 ;
31454 int res1 = 0 ;
31455 long val2 ;
31456 int ecode2 = 0 ;
31457 PyObject * obj0 = 0 ;
31458 PyObject * obj1 = 0 ;
31459 char * kwnames[] = {
31460 (char *) "self",(char *) "count", NULL
31461 };
31462
31463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31465 if (!SWIG_IsOK(res1)) {
31466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31467 }
31468 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31469 ecode2 = SWIG_AsVal_long(obj1, &val2);
31470 if (!SWIG_IsOK(ecode2)) {
31471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31472 }
31473 arg2 = static_cast< long >(val2);
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 (arg1)->SetItemCount(arg2);
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 resultobj = SWIG_Py_Void();
31481 return resultobj;
31482fail:
31483 return NULL;
31484}
31485
31486
31487SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31488 PyObject *resultobj = 0;
31489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31490 int arg2 ;
31491 int arg3 ;
31492 bool result;
31493 void *argp1 = 0 ;
31494 int res1 = 0 ;
31495 int val2 ;
31496 int ecode2 = 0 ;
31497 int val3 ;
31498 int ecode3 = 0 ;
31499 PyObject * obj0 = 0 ;
31500 PyObject * obj1 = 0 ;
31501 PyObject * obj2 = 0 ;
31502 char * kwnames[] = {
31503 (char *) "self",(char *) "dx",(char *) "dy", NULL
31504 };
31505
31506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31508 if (!SWIG_IsOK(res1)) {
31509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31510 }
31511 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31512 ecode2 = SWIG_AsVal_int(obj1, &val2);
31513 if (!SWIG_IsOK(ecode2)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31515 }
31516 arg2 = static_cast< int >(val2);
31517 ecode3 = SWIG_AsVal_int(obj2, &val3);
31518 if (!SWIG_IsOK(ecode3)) {
31519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31520 }
31521 arg3 = static_cast< int >(val3);
31522 {
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 result = (bool)(arg1)->ScrollList(arg2,arg3);
31525 wxPyEndAllowThreads(__tstate);
31526 if (PyErr_Occurred()) SWIG_fail;
31527 }
31528 {
31529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31530 }
31531 return resultobj;
31532fail:
31533 return NULL;
31534}
31535
31536
31537SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31538 PyObject *resultobj = 0;
31539 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31540 long arg2 ;
31541 wxColour *arg3 = 0 ;
31542 void *argp1 = 0 ;
31543 int res1 = 0 ;
31544 long val2 ;
31545 int ecode2 = 0 ;
31546 wxColour temp3 ;
31547 PyObject * obj0 = 0 ;
31548 PyObject * obj1 = 0 ;
31549 PyObject * obj2 = 0 ;
31550 char * kwnames[] = {
31551 (char *) "self",(char *) "item",(char *) "col", NULL
31552 };
31553
31554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31556 if (!SWIG_IsOK(res1)) {
31557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31558 }
31559 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31560 ecode2 = SWIG_AsVal_long(obj1, &val2);
31561 if (!SWIG_IsOK(ecode2)) {
31562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31563 }
31564 arg2 = static_cast< long >(val2);
31565 {
31566 arg3 = &temp3;
31567 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31568 }
31569 {
31570 PyThreadState* __tstate = wxPyBeginAllowThreads();
31571 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31572 wxPyEndAllowThreads(__tstate);
31573 if (PyErr_Occurred()) SWIG_fail;
31574 }
31575 resultobj = SWIG_Py_Void();
31576 return resultobj;
31577fail:
31578 return NULL;
31579}
31580
31581
31582SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31583 PyObject *resultobj = 0;
31584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31585 long arg2 ;
31586 wxColour result;
31587 void *argp1 = 0 ;
31588 int res1 = 0 ;
31589 long val2 ;
31590 int ecode2 = 0 ;
31591 PyObject * obj0 = 0 ;
31592 PyObject * obj1 = 0 ;
31593 char * kwnames[] = {
31594 (char *) "self",(char *) "item", NULL
31595 };
31596
31597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31599 if (!SWIG_IsOK(res1)) {
31600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31601 }
31602 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31603 ecode2 = SWIG_AsVal_long(obj1, &val2);
31604 if (!SWIG_IsOK(ecode2)) {
31605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31606 }
31607 arg2 = static_cast< long >(val2);
31608 {
31609 PyThreadState* __tstate = wxPyBeginAllowThreads();
31610 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31611 wxPyEndAllowThreads(__tstate);
31612 if (PyErr_Occurred()) SWIG_fail;
31613 }
31614 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31615 return resultobj;
31616fail:
31617 return NULL;
31618}
31619
31620
31621SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31622 PyObject *resultobj = 0;
31623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31624 long arg2 ;
31625 wxColour *arg3 = 0 ;
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 long val2 ;
31629 int ecode2 = 0 ;
31630 wxColour temp3 ;
31631 PyObject * obj0 = 0 ;
31632 PyObject * obj1 = 0 ;
31633 PyObject * obj2 = 0 ;
31634 char * kwnames[] = {
31635 (char *) "self",(char *) "item",(char *) "col", NULL
31636 };
31637
31638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31640 if (!SWIG_IsOK(res1)) {
31641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31642 }
31643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31644 ecode2 = SWIG_AsVal_long(obj1, &val2);
31645 if (!SWIG_IsOK(ecode2)) {
31646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31647 }
31648 arg2 = static_cast< long >(val2);
31649 {
31650 arg3 = &temp3;
31651 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31652 }
31653 {
31654 PyThreadState* __tstate = wxPyBeginAllowThreads();
31655 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31656 wxPyEndAllowThreads(__tstate);
31657 if (PyErr_Occurred()) SWIG_fail;
31658 }
31659 resultobj = SWIG_Py_Void();
31660 return resultobj;
31661fail:
31662 return NULL;
31663}
31664
31665
31666SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31667 PyObject *resultobj = 0;
31668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31669 long arg2 ;
31670 wxColour result;
31671 void *argp1 = 0 ;
31672 int res1 = 0 ;
31673 long val2 ;
31674 int ecode2 = 0 ;
31675 PyObject * obj0 = 0 ;
31676 PyObject * obj1 = 0 ;
31677 char * kwnames[] = {
31678 (char *) "self",(char *) "item", NULL
31679 };
31680
31681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31685 }
31686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31687 ecode2 = SWIG_AsVal_long(obj1, &val2);
31688 if (!SWIG_IsOK(ecode2)) {
31689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31690 }
31691 arg2 = static_cast< long >(val2);
31692 {
31693 PyThreadState* __tstate = wxPyBeginAllowThreads();
31694 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31695 wxPyEndAllowThreads(__tstate);
31696 if (PyErr_Occurred()) SWIG_fail;
31697 }
31698 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31699 return resultobj;
31700fail:
31701 return NULL;
31702}
31703
31704
31705SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31706 PyObject *resultobj = 0;
31707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31708 long arg2 ;
31709 wxFont *arg3 = 0 ;
31710 void *argp1 = 0 ;
31711 int res1 = 0 ;
31712 long val2 ;
31713 int ecode2 = 0 ;
31714 void *argp3 = 0 ;
31715 int res3 = 0 ;
31716 PyObject * obj0 = 0 ;
31717 PyObject * obj1 = 0 ;
31718 PyObject * obj2 = 0 ;
31719 char * kwnames[] = {
31720 (char *) "self",(char *) "item",(char *) "f", NULL
31721 };
31722
31723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31727 }
31728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31729 ecode2 = SWIG_AsVal_long(obj1, &val2);
31730 if (!SWIG_IsOK(ecode2)) {
31731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31732 }
31733 arg2 = static_cast< long >(val2);
31734 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31735 if (!SWIG_IsOK(res3)) {
31736 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31737 }
31738 if (!argp3) {
31739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31740 }
31741 arg3 = reinterpret_cast< wxFont * >(argp3);
31742 {
31743 PyThreadState* __tstate = wxPyBeginAllowThreads();
31744 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31745 wxPyEndAllowThreads(__tstate);
31746 if (PyErr_Occurred()) SWIG_fail;
31747 }
31748 resultobj = SWIG_Py_Void();
31749 return resultobj;
31750fail:
31751 return NULL;
31752}
31753
31754
31755SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31756 PyObject *resultobj = 0;
31757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31758 long arg2 ;
31759 wxFont result;
31760 void *argp1 = 0 ;
31761 int res1 = 0 ;
31762 long val2 ;
31763 int ecode2 = 0 ;
31764 PyObject * obj0 = 0 ;
31765 PyObject * obj1 = 0 ;
31766 char * kwnames[] = {
31767 (char *) "self",(char *) "item", NULL
31768 };
31769
31770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31772 if (!SWIG_IsOK(res1)) {
31773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31774 }
31775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31776 ecode2 = SWIG_AsVal_long(obj1, &val2);
31777 if (!SWIG_IsOK(ecode2)) {
31778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31779 }
31780 arg2 = static_cast< long >(val2);
31781 {
31782 PyThreadState* __tstate = wxPyBeginAllowThreads();
31783 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31784 wxPyEndAllowThreads(__tstate);
31785 if (PyErr_Occurred()) SWIG_fail;
31786 }
31787 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31788 return resultobj;
31789fail:
31790 return NULL;
31791}
31792
31793
31794SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31795 PyObject *resultobj = 0;
31796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31797 PyObject *arg2 = (PyObject *) 0 ;
31798 bool result;
31799 void *argp1 = 0 ;
31800 int res1 = 0 ;
31801 PyObject * obj0 = 0 ;
31802 PyObject * obj1 = 0 ;
31803 char * kwnames[] = {
31804 (char *) "self",(char *) "func", NULL
31805 };
31806
31807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31809 if (!SWIG_IsOK(res1)) {
31810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31811 }
31812 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31813 arg2 = obj1;
31814 {
31815 PyThreadState* __tstate = wxPyBeginAllowThreads();
31816 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31817 wxPyEndAllowThreads(__tstate);
31818 if (PyErr_Occurred()) SWIG_fail;
31819 }
31820 {
31821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31822 }
31823 return resultobj;
31824fail:
31825 return NULL;
1fbf26be
RD
31826}
31827
31828
554f62e9
RD
31829SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31830 PyObject *resultobj = 0;
31831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31832 wxWindow *result = 0 ;
31833 void *argp1 = 0 ;
31834 int res1 = 0 ;
31835 PyObject *swig_obj[1] ;
31836
31837 if (!args) SWIG_fail;
31838 swig_obj[0] = args;
31839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31840 if (!SWIG_IsOK(res1)) {
31841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31842 }
31843 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31844 {
31845 PyThreadState* __tstate = wxPyBeginAllowThreads();
31846 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31847 wxPyEndAllowThreads(__tstate);
31848 if (PyErr_Occurred()) SWIG_fail;
31849 }
31850 {
31851 resultobj = wxPyMake_wxObject(result, 0);
31852 }
31853 return resultobj;
31854fail:
31855 return NULL;
31856}
31857
31858
31859SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31860 PyObject *resultobj = 0;
31861 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31862 SwigValueWrapper<wxVisualAttributes > result;
31863 int val1 ;
31864 int ecode1 = 0 ;
31865 PyObject * obj0 = 0 ;
31866 char * kwnames[] = {
31867 (char *) "variant", NULL
31868 };
31869
31870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31871 if (obj0) {
31872 ecode1 = SWIG_AsVal_int(obj0, &val1);
31873 if (!SWIG_IsOK(ecode1)) {
31874 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31875 }
31876 arg1 = static_cast< wxWindowVariant >(val1);
31877 }
31878 {
31879 if (!wxPyCheckForApp()) SWIG_fail;
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31886 return resultobj;
31887fail:
31888 return NULL;
31889}
31890
31891
31892SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31893 PyObject *obj;
31894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31895 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31896 return SWIG_Py_Void();
31897}
31898
31899SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31900 return SWIG_Python_InitShadowInstance(args);
31901}
31902
31903SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31904 PyObject *resultobj = 0;
31905 wxWindow *arg1 = (wxWindow *) 0 ;
31906 int arg2 = (int) -1 ;
31907 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31908 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31909 wxSize const &arg4_defvalue = wxDefaultSize ;
31910 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31911 long arg5 = (long) wxLC_REPORT ;
31912 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31913 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31914 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31915 wxString *arg7 = (wxString *) &arg7_defvalue ;
31916 wxListView *result = 0 ;
31917 void *argp1 = 0 ;
31918 int res1 = 0 ;
31919 int val2 ;
31920 int ecode2 = 0 ;
31921 wxPoint temp3 ;
31922 wxSize temp4 ;
31923 long val5 ;
31924 int ecode5 = 0 ;
31925 void *argp6 = 0 ;
31926 int res6 = 0 ;
31927 bool temp7 = false ;
31928 PyObject * obj0 = 0 ;
31929 PyObject * obj1 = 0 ;
31930 PyObject * obj2 = 0 ;
31931 PyObject * obj3 = 0 ;
31932 PyObject * obj4 = 0 ;
31933 PyObject * obj5 = 0 ;
31934 PyObject * obj6 = 0 ;
31935 char * kwnames[] = {
31936 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31937 };
31938
31939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31941 if (!SWIG_IsOK(res1)) {
31942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31943 }
31944 arg1 = reinterpret_cast< wxWindow * >(argp1);
31945 if (obj1) {
31946 ecode2 = SWIG_AsVal_int(obj1, &val2);
31947 if (!SWIG_IsOK(ecode2)) {
31948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31949 }
31950 arg2 = static_cast< int >(val2);
31951 }
31952 if (obj2) {
31953 {
31954 arg3 = &temp3;
31955 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 31956 }
554f62e9
RD
31957 }
31958 if (obj3) {
31959 {
31960 arg4 = &temp4;
31961 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 31962 }
554f62e9
RD
31963 }
31964 if (obj4) {
31965 ecode5 = SWIG_AsVal_long(obj4, &val5);
31966 if (!SWIG_IsOK(ecode5)) {
31967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31968 }
31969 arg5 = static_cast< long >(val5);
31970 }
31971 if (obj5) {
31972 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31973 if (!SWIG_IsOK(res6)) {
31974 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 31975 }
554f62e9
RD
31976 if (!argp6) {
31977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 31978 }
554f62e9
RD
31979 arg6 = reinterpret_cast< wxValidator * >(argp6);
31980 }
31981 if (obj6) {
d55e5bfc 31982 {
554f62e9
RD
31983 arg7 = wxString_in_helper(obj6);
31984 if (arg7 == NULL) SWIG_fail;
31985 temp7 = true;
d55e5bfc 31986 }
554f62e9
RD
31987 }
31988 {
31989 if (!wxPyCheckForApp()) SWIG_fail;
31990 PyThreadState* __tstate = wxPyBeginAllowThreads();
31991 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31992 wxPyEndAllowThreads(__tstate);
31993 if (PyErr_Occurred()) SWIG_fail;
31994 }
31995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31996 {
31997 if (temp7)
31998 delete arg7;
31999 }
32000 return resultobj;
32001fail:
32002 {
32003 if (temp7)
32004 delete arg7;
32005 }
32006 return NULL;
d55e5bfc
RD
32007}
32008
32009
554f62e9
RD
32010SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32011 PyObject *resultobj = 0;
32012 wxListView *result = 0 ;
32013
32014 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32015 {
32016 if (!wxPyCheckForApp()) SWIG_fail;
32017 PyThreadState* __tstate = wxPyBeginAllowThreads();
32018 result = (wxListView *)new wxListView();
32019 wxPyEndAllowThreads(__tstate);
32020 if (PyErr_Occurred()) SWIG_fail;
32021 }
32022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32023 return resultobj;
32024fail:
32025 return NULL;
32026}
32027
32028
32029SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32030 PyObject *resultobj = 0;
32031 wxListView *arg1 = (wxListView *) 0 ;
32032 wxWindow *arg2 = (wxWindow *) 0 ;
32033 int arg3 = (int) -1 ;
32034 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32035 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32036 wxSize const &arg5_defvalue = wxDefaultSize ;
32037 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32038 long arg6 = (long) wxLC_REPORT ;
32039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32041 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32042 wxString *arg8 = (wxString *) &arg8_defvalue ;
32043 bool result;
32044 void *argp1 = 0 ;
32045 int res1 = 0 ;
32046 void *argp2 = 0 ;
32047 int res2 = 0 ;
32048 int val3 ;
32049 int ecode3 = 0 ;
32050 wxPoint temp4 ;
32051 wxSize temp5 ;
32052 long val6 ;
32053 int ecode6 = 0 ;
32054 void *argp7 = 0 ;
32055 int res7 = 0 ;
32056 bool temp8 = false ;
32057 PyObject * obj0 = 0 ;
32058 PyObject * obj1 = 0 ;
32059 PyObject * obj2 = 0 ;
32060 PyObject * obj3 = 0 ;
32061 PyObject * obj4 = 0 ;
32062 PyObject * obj5 = 0 ;
32063 PyObject * obj6 = 0 ;
32064 PyObject * obj7 = 0 ;
32065 char * kwnames[] = {
32066 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32067 };
32068
32069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32071 if (!SWIG_IsOK(res1)) {
32072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32073 }
32074 arg1 = reinterpret_cast< wxListView * >(argp1);
32075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32076 if (!SWIG_IsOK(res2)) {
32077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32078 }
32079 arg2 = reinterpret_cast< wxWindow * >(argp2);
32080 if (obj2) {
32081 ecode3 = SWIG_AsVal_int(obj2, &val3);
32082 if (!SWIG_IsOK(ecode3)) {
32083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32084 }
32085 arg3 = static_cast< int >(val3);
32086 }
32087 if (obj3) {
093d3ff1 32088 {
554f62e9
RD
32089 arg4 = &temp4;
32090 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
ae8162c8 32091 }
554f62e9
RD
32092 }
32093 if (obj4) {
32094 {
32095 arg5 = &temp5;
32096 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
ae8162c8 32097 }
554f62e9
RD
32098 }
32099 if (obj5) {
32100 ecode6 = SWIG_AsVal_long(obj5, &val6);
32101 if (!SWIG_IsOK(ecode6)) {
32102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32103 }
32104 arg6 = static_cast< long >(val6);
32105 }
32106 if (obj6) {
32107 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32108 if (!SWIG_IsOK(res7)) {
32109 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32110 }
554f62e9
RD
32111 if (!argp7) {
32112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32113 }
554f62e9
RD
32114 arg7 = reinterpret_cast< wxValidator * >(argp7);
32115 }
32116 if (obj7) {
ae8162c8 32117 {
554f62e9
RD
32118 arg8 = wxString_in_helper(obj7);
32119 if (arg8 == NULL) SWIG_fail;
32120 temp8 = true;
ae8162c8 32121 }
554f62e9
RD
32122 }
32123 {
32124 PyThreadState* __tstate = wxPyBeginAllowThreads();
32125 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32126 wxPyEndAllowThreads(__tstate);
32127 if (PyErr_Occurred()) SWIG_fail;
32128 }
32129 {
32130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32131 }
32132 {
32133 if (temp8)
32134 delete arg8;
32135 }
32136 return resultobj;
32137fail:
32138 {
32139 if (temp8)
32140 delete arg8;
32141 }
32142 return NULL;
32143}
32144
32145
32146SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32147 PyObject *resultobj = 0;
32148 wxListView *arg1 = (wxListView *) 0 ;
32149 long arg2 ;
32150 bool arg3 = (bool) true ;
32151 void *argp1 = 0 ;
32152 int res1 = 0 ;
32153 long val2 ;
32154 int ecode2 = 0 ;
32155 bool val3 ;
32156 int ecode3 = 0 ;
32157 PyObject * obj0 = 0 ;
32158 PyObject * obj1 = 0 ;
32159 PyObject * obj2 = 0 ;
32160 char * kwnames[] = {
32161 (char *) "self",(char *) "n",(char *) "on", NULL
32162 };
32163
32164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32166 if (!SWIG_IsOK(res1)) {
32167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32168 }
32169 arg1 = reinterpret_cast< wxListView * >(argp1);
32170 ecode2 = SWIG_AsVal_long(obj1, &val2);
32171 if (!SWIG_IsOK(ecode2)) {
32172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32173 }
32174 arg2 = static_cast< long >(val2);
32175 if (obj2) {
32176 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32177 if (!SWIG_IsOK(ecode3)) {
32178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32179 }
32180 arg3 = static_cast< bool >(val3);
32181 }
32182 {
32183 PyThreadState* __tstate = wxPyBeginAllowThreads();
32184 (arg1)->Select(arg2,arg3);
32185 wxPyEndAllowThreads(__tstate);
32186 if (PyErr_Occurred()) SWIG_fail;
32187 }
32188 resultobj = SWIG_Py_Void();
32189 return resultobj;
32190fail:
32191 return NULL;
32192}
32193
32194
32195SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxListView *arg1 = (wxListView *) 0 ;
32198 long arg2 ;
32199 void *argp1 = 0 ;
32200 int res1 = 0 ;
32201 long val2 ;
32202 int ecode2 = 0 ;
32203 PyObject * obj0 = 0 ;
32204 PyObject * obj1 = 0 ;
32205 char * kwnames[] = {
32206 (char *) "self",(char *) "index", NULL
32207 };
32208
32209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32211 if (!SWIG_IsOK(res1)) {
32212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32213 }
32214 arg1 = reinterpret_cast< wxListView * >(argp1);
32215 ecode2 = SWIG_AsVal_long(obj1, &val2);
32216 if (!SWIG_IsOK(ecode2)) {
32217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32218 }
32219 arg2 = static_cast< long >(val2);
32220 {
32221 PyThreadState* __tstate = wxPyBeginAllowThreads();
32222 (arg1)->Focus(arg2);
32223 wxPyEndAllowThreads(__tstate);
32224 if (PyErr_Occurred()) SWIG_fail;
32225 }
32226 resultobj = SWIG_Py_Void();
32227 return resultobj;
32228fail:
32229 return NULL;
ae8162c8
RD
32230}
32231
32232
554f62e9
RD
32233SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32234 PyObject *resultobj = 0;
32235 wxListView *arg1 = (wxListView *) 0 ;
32236 long result;
32237 void *argp1 = 0 ;
32238 int res1 = 0 ;
32239 PyObject *swig_obj[1] ;
32240
32241 if (!args) SWIG_fail;
32242 swig_obj[0] = args;
32243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32244 if (!SWIG_IsOK(res1)) {
32245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32246 }
32247 arg1 = reinterpret_cast< wxListView * >(argp1);
32248 {
32249 PyThreadState* __tstate = wxPyBeginAllowThreads();
32250 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32251 wxPyEndAllowThreads(__tstate);
32252 if (PyErr_Occurred()) SWIG_fail;
32253 }
32254 resultobj = SWIG_From_long(static_cast< long >(result));
32255 return resultobj;
32256fail:
32257 return NULL;
32258}
32259
32260
32261SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32262 PyObject *resultobj = 0;
32263 wxListView *arg1 = (wxListView *) 0 ;
32264 long arg2 ;
32265 long result;
32266 void *argp1 = 0 ;
32267 int res1 = 0 ;
32268 long val2 ;
32269 int ecode2 = 0 ;
32270 PyObject * obj0 = 0 ;
32271 PyObject * obj1 = 0 ;
32272 char * kwnames[] = {
32273 (char *) "self",(char *) "item", NULL
32274 };
32275
32276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32278 if (!SWIG_IsOK(res1)) {
32279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32280 }
32281 arg1 = reinterpret_cast< wxListView * >(argp1);
32282 ecode2 = SWIG_AsVal_long(obj1, &val2);
32283 if (!SWIG_IsOK(ecode2)) {
32284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32285 }
32286 arg2 = static_cast< long >(val2);
32287 {
32288 PyThreadState* __tstate = wxPyBeginAllowThreads();
32289 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32290 wxPyEndAllowThreads(__tstate);
32291 if (PyErr_Occurred()) SWIG_fail;
32292 }
32293 resultobj = SWIG_From_long(static_cast< long >(result));
32294 return resultobj;
32295fail:
32296 return NULL;
ae8162c8
RD
32297}
32298
32299
554f62e9
RD
32300SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32301 PyObject *resultobj = 0;
32302 wxListView *arg1 = (wxListView *) 0 ;
32303 long result;
32304 void *argp1 = 0 ;
32305 int res1 = 0 ;
32306 PyObject *swig_obj[1] ;
32307
32308 if (!args) SWIG_fail;
32309 swig_obj[0] = args;
32310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32311 if (!SWIG_IsOK(res1)) {
32312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32313 }
32314 arg1 = reinterpret_cast< wxListView * >(argp1);
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
32317 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 resultobj = SWIG_From_long(static_cast< long >(result));
32322 return resultobj;
32323fail:
32324 return NULL;
32325}
32326
32327
32328SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32329 PyObject *resultobj = 0;
32330 wxListView *arg1 = (wxListView *) 0 ;
32331 long arg2 ;
32332 bool result;
32333 void *argp1 = 0 ;
32334 int res1 = 0 ;
32335 long val2 ;
32336 int ecode2 = 0 ;
32337 PyObject * obj0 = 0 ;
32338 PyObject * obj1 = 0 ;
32339 char * kwnames[] = {
32340 (char *) "self",(char *) "index", NULL
32341 };
32342
32343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32345 if (!SWIG_IsOK(res1)) {
32346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32347 }
32348 arg1 = reinterpret_cast< wxListView * >(argp1);
32349 ecode2 = SWIG_AsVal_long(obj1, &val2);
32350 if (!SWIG_IsOK(ecode2)) {
32351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32352 }
32353 arg2 = static_cast< long >(val2);
32354 {
32355 PyThreadState* __tstate = wxPyBeginAllowThreads();
32356 result = (bool)(arg1)->IsSelected(arg2);
32357 wxPyEndAllowThreads(__tstate);
32358 if (PyErr_Occurred()) SWIG_fail;
32359 }
32360 {
32361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32362 }
32363 return resultobj;
32364fail:
32365 return NULL;
32366}
32367
32368
32369SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32370 PyObject *resultobj = 0;
32371 wxListView *arg1 = (wxListView *) 0 ;
32372 int arg2 ;
32373 int arg3 ;
32374 void *argp1 = 0 ;
32375 int res1 = 0 ;
32376 int val2 ;
32377 int ecode2 = 0 ;
32378 int val3 ;
32379 int ecode3 = 0 ;
32380 PyObject * obj0 = 0 ;
32381 PyObject * obj1 = 0 ;
32382 PyObject * obj2 = 0 ;
32383 char * kwnames[] = {
32384 (char *) "self",(char *) "col",(char *) "image", NULL
32385 };
32386
32387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32389 if (!SWIG_IsOK(res1)) {
32390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32391 }
32392 arg1 = reinterpret_cast< wxListView * >(argp1);
32393 ecode2 = SWIG_AsVal_int(obj1, &val2);
32394 if (!SWIG_IsOK(ecode2)) {
32395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32396 }
32397 arg2 = static_cast< int >(val2);
32398 ecode3 = SWIG_AsVal_int(obj2, &val3);
32399 if (!SWIG_IsOK(ecode3)) {
32400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32401 }
32402 arg3 = static_cast< int >(val3);
32403 {
32404 PyThreadState* __tstate = wxPyBeginAllowThreads();
32405 (arg1)->SetColumnImage(arg2,arg3);
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
32409 resultobj = SWIG_Py_Void();
32410 return resultobj;
32411fail:
32412 return NULL;
32413}
32414
32415
32416SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32417 PyObject *resultobj = 0;
32418 wxListView *arg1 = (wxListView *) 0 ;
32419 int arg2 ;
32420 void *argp1 = 0 ;
32421 int res1 = 0 ;
32422 int val2 ;
32423 int ecode2 = 0 ;
32424 PyObject * obj0 = 0 ;
32425 PyObject * obj1 = 0 ;
32426 char * kwnames[] = {
32427 (char *) "self",(char *) "col", NULL
32428 };
32429
32430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32432 if (!SWIG_IsOK(res1)) {
32433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32434 }
32435 arg1 = reinterpret_cast< wxListView * >(argp1);
32436 ecode2 = SWIG_AsVal_int(obj1, &val2);
32437 if (!SWIG_IsOK(ecode2)) {
32438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32439 }
32440 arg2 = static_cast< int >(val2);
32441 {
32442 PyThreadState* __tstate = wxPyBeginAllowThreads();
32443 (arg1)->ClearColumnImage(arg2);
32444 wxPyEndAllowThreads(__tstate);
32445 if (PyErr_Occurred()) SWIG_fail;
32446 }
32447 resultobj = SWIG_Py_Void();
32448 return resultobj;
32449fail:
32450 return NULL;
ae8162c8
RD
32451}
32452
32453
554f62e9
RD
32454SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32455 PyObject *obj;
32456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32457 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32458 return SWIG_Py_Void();
70b7a5fe
RD
32459}
32460
554f62e9
RD
32461SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32462 return SWIG_Python_InitShadowInstance(args);
ae8162c8
RD
32463}
32464
554f62e9
RD
32465SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32466 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32467 return 1;
ae8162c8
RD
32468}
32469
32470
554f62e9
RD
32471SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32472 PyObject *pyobj = 0;
32473
32474 {
32475#if wxUSE_UNICODE
32476 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32477#else
32478 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32479#endif
32480 }
32481 return pyobj;
d55e5bfc
RD
32482}
32483
32484
554f62e9
RD
32485SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32486 PyObject *resultobj = 0;
32487 wxTreeItemId *result = 0 ;
32488
32489 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 result = (wxTreeItemId *)new wxTreeItemId();
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32497 return resultobj;
32498fail:
32499 return NULL;
d55e5bfc
RD
32500}
32501
32502
554f62e9
RD
32503SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32504 PyObject *resultobj = 0;
32505 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32506 void *argp1 = 0 ;
32507 int res1 = 0 ;
32508 PyObject *swig_obj[1] ;
32509
32510 if (!args) SWIG_fail;
32511 swig_obj[0] = args;
32512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32513 if (!SWIG_IsOK(res1)) {
32514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32515 }
32516 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
32519 delete arg1;
d55e5bfc 32520
554f62e9
RD
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 resultobj = SWIG_Py_Void();
32525 return resultobj;
32526fail:
32527 return NULL;
d55e5bfc
RD
32528}
32529
32530
554f62e9
RD
32531SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32532 PyObject *resultobj = 0;
32533 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32534 bool result;
32535 void *argp1 = 0 ;
32536 int res1 = 0 ;
32537 PyObject *swig_obj[1] ;
32538
32539 if (!args) SWIG_fail;
32540 swig_obj[0] = args;
32541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32542 if (!SWIG_IsOK(res1)) {
32543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32544 }
32545 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32546 {
32547 PyThreadState* __tstate = wxPyBeginAllowThreads();
32548 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32549 wxPyEndAllowThreads(__tstate);
32550 if (PyErr_Occurred()) SWIG_fail;
32551 }
32552 {
32553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32554 }
32555 return resultobj;
32556fail:
32557 return NULL;
32558}
32559
32560
32561SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32562 PyObject *resultobj = 0;
32563 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32564 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32565 bool result;
32566 void *argp1 = 0 ;
32567 int res1 = 0 ;
32568 void *argp2 = 0 ;
32569 int res2 = 0 ;
32570 PyObject * obj0 = 0 ;
32571 PyObject * obj1 = 0 ;
32572 char * kwnames[] = {
32573 (char *) "self",(char *) "other", NULL
32574 };
32575
32576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32578 if (!SWIG_IsOK(res1)) {
32579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32580 }
32581 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32583 if (!SWIG_IsOK(res2)) {
32584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32585 }
32586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32587 {
32588 PyThreadState* __tstate = wxPyBeginAllowThreads();
32589 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32590 wxPyEndAllowThreads(__tstate);
32591 if (PyErr_Occurred()) SWIG_fail;
32592 }
32593 {
32594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32595 }
32596 return resultobj;
32597fail:
32598 return NULL;
32599}
32600
32601
32602SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32603 PyObject *resultobj = 0;
32604 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32605 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32606 bool result;
32607 void *argp1 = 0 ;
32608 int res1 = 0 ;
32609 void *argp2 = 0 ;
32610 int res2 = 0 ;
32611 PyObject * obj0 = 0 ;
32612 PyObject * obj1 = 0 ;
32613 char * kwnames[] = {
32614 (char *) "self",(char *) "other", NULL
32615 };
32616
32617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32619 if (!SWIG_IsOK(res1)) {
32620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32621 }
32622 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32624 if (!SWIG_IsOK(res2)) {
32625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32626 }
32627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32628 {
32629 PyThreadState* __tstate = wxPyBeginAllowThreads();
32630 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32631 wxPyEndAllowThreads(__tstate);
32632 if (PyErr_Occurred()) SWIG_fail;
32633 }
32634 {
32635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32636 }
32637 return resultobj;
32638fail:
32639 return NULL;
d55e5bfc
RD
32640}
32641
32642
554f62e9
RD
32643SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32644 PyObject *resultobj = 0;
32645 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32646 void *arg2 = (void *) 0 ;
32647 void *argp1 = 0 ;
32648 int res1 = 0 ;
32649 int res2 ;
32650 PyObject *swig_obj[2] ;
32651
32652 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32654 if (!SWIG_IsOK(res1)) {
32655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32656 }
32657 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32658 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32659 if (!SWIG_IsOK(res2)) {
32660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32661 }
32662 if (arg1) (arg1)->m_pItem = arg2;
32663
32664 resultobj = SWIG_Py_Void();
32665 return resultobj;
32666fail:
32667 return NULL;
d55e5bfc
RD
32668}
32669
32670
554f62e9
RD
32671SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32672 PyObject *resultobj = 0;
32673 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32674 void *result = 0 ;
32675 void *argp1 = 0 ;
32676 int res1 = 0 ;
32677 PyObject *swig_obj[1] ;
32678
32679 if (!args) SWIG_fail;
32680 swig_obj[0] = args;
32681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32682 if (!SWIG_IsOK(res1)) {
32683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32684 }
32685 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32686 result = (void *) ((arg1)->m_pItem);
32687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32688 return resultobj;
32689fail:
32690 return NULL;
d55e5bfc
RD
32691}
32692
32693
554f62e9
RD
32694SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32695 PyObject *obj;
32696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32697 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32698 return SWIG_Py_Void();
d55e5bfc
RD
32699}
32700
554f62e9
RD
32701SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32702 return SWIG_Python_InitShadowInstance(args);
32703}
d55e5bfc 32704
554f62e9
RD
32705SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32706 PyObject *resultobj = 0;
32707 PyObject *arg1 = (PyObject *) NULL ;
32708 wxPyTreeItemData *result = 0 ;
32709 PyObject * obj0 = 0 ;
32710 char * kwnames[] = {
32711 (char *) "obj", NULL
32712 };
32713
32714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32715 if (obj0) {
32716 arg1 = obj0;
32717 }
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32725 return resultobj;
32726fail:
32727 return NULL;
d55e5bfc
RD
32728}
32729
32730
554f62e9
RD
32731SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32732 PyObject *resultobj = 0;
32733 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 PyObject *swig_obj[1] ;
32737
32738 if (!args) SWIG_fail;
32739 swig_obj[0] = args;
32740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32743 }
32744 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32745 {
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 delete arg1;
d55e5bfc 32748
554f62e9
RD
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 resultobj = SWIG_Py_Void();
32753 return resultobj;
32754fail:
32755 return NULL;
d55e5bfc
RD
32756}
32757
32758
554f62e9
RD
32759SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32760 PyObject *resultobj = 0;
32761 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32762 PyObject *result = 0 ;
32763 void *argp1 = 0 ;
32764 int res1 = 0 ;
32765 PyObject *swig_obj[1] ;
32766
32767 if (!args) SWIG_fail;
32768 swig_obj[0] = args;
32769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32770 if (!SWIG_IsOK(res1)) {
32771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32772 }
32773 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32774 {
32775 PyThreadState* __tstate = wxPyBeginAllowThreads();
32776 result = (PyObject *)(arg1)->GetData();
32777 wxPyEndAllowThreads(__tstate);
32778 if (PyErr_Occurred()) SWIG_fail;
32779 }
32780 resultobj = result;
32781 return resultobj;
32782fail:
32783 return NULL;
32784}
32785
32786
32787SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32788 PyObject *resultobj = 0;
32789 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32790 PyObject *arg2 = (PyObject *) 0 ;
32791 void *argp1 = 0 ;
32792 int res1 = 0 ;
32793 PyObject * obj0 = 0 ;
32794 PyObject * obj1 = 0 ;
32795 char * kwnames[] = {
32796 (char *) "self",(char *) "obj", NULL
32797 };
32798
32799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32801 if (!SWIG_IsOK(res1)) {
32802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32803 }
32804 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32805 arg2 = obj1;
32806 {
32807 PyThreadState* __tstate = wxPyBeginAllowThreads();
32808 (arg1)->SetData(arg2);
32809 wxPyEndAllowThreads(__tstate);
32810 if (PyErr_Occurred()) SWIG_fail;
32811 }
32812 resultobj = SWIG_Py_Void();
32813 return resultobj;
32814fail:
32815 return NULL;
d55e5bfc
RD
32816}
32817
32818
554f62e9
RD
32819SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32820 PyObject *resultobj = 0;
32821 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32822 wxTreeItemId *result = 0 ;
32823 void *argp1 = 0 ;
32824 int res1 = 0 ;
32825 PyObject *swig_obj[1] ;
32826
32827 if (!args) SWIG_fail;
32828 swig_obj[0] = args;
32829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32830 if (!SWIG_IsOK(res1)) {
32831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32832 }
32833 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32834 {
32835 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32836 {
554f62e9
RD
32837 wxTreeItemId const &_result_ref = (arg1)->GetId();
32838 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32839 }
554f62e9
RD
32840 wxPyEndAllowThreads(__tstate);
32841 if (PyErr_Occurred()) SWIG_fail;
32842 }
32843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32844 return resultobj;
32845fail:
32846 return NULL;
32847}
32848
32849
32850SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32851 PyObject *resultobj = 0;
32852 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32853 wxTreeItemId *arg2 = 0 ;
32854 void *argp1 = 0 ;
32855 int res1 = 0 ;
32856 void *argp2 = 0 ;
32857 int res2 = 0 ;
32858 PyObject * obj0 = 0 ;
32859 PyObject * obj1 = 0 ;
32860 char * kwnames[] = {
32861 (char *) "self",(char *) "id", NULL
32862 };
32863
32864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32868 }
32869 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32871 if (!SWIG_IsOK(res2)) {
32872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32873 }
32874 if (!argp2) {
32875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32876 }
32877 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32878 {
32879 PyThreadState* __tstate = wxPyBeginAllowThreads();
32880 (arg1)->SetId((wxTreeItemId const &)*arg2);
32881 wxPyEndAllowThreads(__tstate);
32882 if (PyErr_Occurred()) SWIG_fail;
32883 }
32884 resultobj = SWIG_Py_Void();
32885 return resultobj;
32886fail:
32887 return NULL;
d55e5bfc
RD
32888}
32889
32890
554f62e9
RD
32891SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32892 PyObject *resultobj = 0;
32893 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32894 void *argp1 = 0 ;
32895 int res1 = 0 ;
32896 PyObject *swig_obj[1] ;
32897
32898 if (!args) SWIG_fail;
32899 swig_obj[0] = args;
32900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32901 if (!SWIG_IsOK(res1)) {
32902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32903 }
32904 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32905 {
32906 PyThreadState* __tstate = wxPyBeginAllowThreads();
32907 wxPyTreeItemData_Destroy(arg1);
32908 wxPyEndAllowThreads(__tstate);
32909 if (PyErr_Occurred()) SWIG_fail;
32910 }
32911 resultobj = SWIG_Py_Void();
32912 return resultobj;
32913fail:
32914 return NULL;
d55e5bfc
RD
32915}
32916
32917
554f62e9
RD
32918SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32919 PyObject *obj;
32920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32921 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32922 return SWIG_Py_Void();
d55e5bfc
RD
32923}
32924
554f62e9
RD
32925SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32926 return SWIG_Python_InitShadowInstance(args);
32927}
d55e5bfc 32928
b02396e8
RD
32929SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32930 {
32931 void *argp = 0;
32932 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32933 if (!SWIG_IsOK(res)) {
32934 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32935 }
32936 if (!argp) {
32937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32938 } else {
32939 wxTreeItemId * temp;
32940 temp = reinterpret_cast< wxTreeItemId * >(argp);
32941 wxNullTreeItemId = *temp;
32942 if (SWIG_IsNewObj(res)) delete temp;
32943 }
32944 }
32945 return 0;
32946fail:
32947 return 1;
32948}
32949
32950
32951SWIGINTERN PyObject *NullTreeItemId_get(void) {
32952 PyObject *pyobj = 0;
32953
32954 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32955 return pyobj;
32956}
32957
32958
32959SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
32960 PyObject *resultobj = 0;
32961 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32962 int arg2 = (int) 0 ;
32963 wxTreeEvent *result = 0 ;
32964 int val1 ;
32965 int ecode1 = 0 ;
32966 int val2 ;
32967 int ecode2 = 0 ;
554f62e9 32968
b02396e8
RD
32969 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32970 if (swig_obj[0]) {
32971 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
554f62e9
RD
32972 if (!SWIG_IsOK(ecode1)) {
32973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32974 }
32975 arg1 = static_cast< wxEventType >(val1);
32976 }
b02396e8
RD
32977 if (swig_obj[1]) {
32978 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
554f62e9
RD
32979 if (!SWIG_IsOK(ecode2)) {
32980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32981 }
32982 arg2 = static_cast< int >(val2);
32983 }
32984 {
32985 PyThreadState* __tstate = wxPyBeginAllowThreads();
32986 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32987 wxPyEndAllowThreads(__tstate);
32988 if (PyErr_Occurred()) SWIG_fail;
32989 }
32990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32991 return resultobj;
32992fail:
32993 return NULL;
d55e5bfc
RD
32994}
32995
32996
b02396e8
RD
32997SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32998 PyObject *resultobj = 0;
32999 wxEventType arg1 ;
33000 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33001 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33002 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33003 wxTreeEvent *result = 0 ;
33004 int val1 ;
33005 int ecode1 = 0 ;
33006 void *argp2 = 0 ;
33007 int res2 = 0 ;
33008 void *argp3 = 0 ;
33009 int res3 = 0 ;
33010
33011 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33012 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33013 if (!SWIG_IsOK(ecode1)) {
33014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33015 }
33016 arg1 = static_cast< wxEventType >(val1);
33017 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33018 if (!SWIG_IsOK(res2)) {
33019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33020 }
33021 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33022 if (swig_obj[2]) {
33023 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33024 if (!SWIG_IsOK(res3)) {
33025 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33026 }
33027 if (!argp3) {
33028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33029 }
33030 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33031 }
33032 {
33033 PyThreadState* __tstate = wxPyBeginAllowThreads();
33034 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33035 wxPyEndAllowThreads(__tstate);
33036 if (PyErr_Occurred()) SWIG_fail;
33037 }
33038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33039 return resultobj;
33040fail:
33041 return NULL;
33042}
33043
33044
33045SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33046 int argc;
33047 PyObject *argv[4];
33048
33049 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33050 --argc;
33051 if ((argc >= 0) && (argc <= 2)) {
33052 int _v = 0;
33053 if (argc > 1) {
33054 {
33055 {
33056 int res = SWIG_AsVal_int(argv[1], NULL);
33057 _v = SWIG_CheckState(res);
33058 }
33059 }
33060 if (!_v) goto check_1;
33061 }
33062 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33063 }
33064check_1:
33065
33066 if ((argc >= 2) && (argc <= 3)) {
33067 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33068 }
33069
33070fail:
33071 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33072 return NULL;
33073}
33074
33075
554f62e9
RD
33076SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33077 PyObject *resultobj = 0;
33078 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33079 wxTreeItemId result;
33080 void *argp1 = 0 ;
33081 int res1 = 0 ;
33082 PyObject *swig_obj[1] ;
33083
33084 if (!args) SWIG_fail;
33085 swig_obj[0] = args;
33086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33087 if (!SWIG_IsOK(res1)) {
33088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33089 }
33090 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 result = ((wxTreeEvent const *)arg1)->GetItem();
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33098 return resultobj;
33099fail:
33100 return NULL;
33101}
33102
33103
33104SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33105 PyObject *resultobj = 0;
33106 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33107 wxTreeItemId *arg2 = 0 ;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 void *argp2 = 0 ;
33111 int res2 = 0 ;
33112 PyObject * obj0 = 0 ;
33113 PyObject * obj1 = 0 ;
33114 char * kwnames[] = {
33115 (char *) "self",(char *) "item", NULL
33116 };
33117
33118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33120 if (!SWIG_IsOK(res1)) {
33121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33122 }
33123 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33125 if (!SWIG_IsOK(res2)) {
33126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33127 }
33128 if (!argp2) {
33129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33130 }
33131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33132 {
33133 PyThreadState* __tstate = wxPyBeginAllowThreads();
33134 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33135 wxPyEndAllowThreads(__tstate);
33136 if (PyErr_Occurred()) SWIG_fail;
33137 }
33138 resultobj = SWIG_Py_Void();
33139 return resultobj;
33140fail:
33141 return NULL;
d55e5bfc
RD
33142}
33143
33144
554f62e9
RD
33145SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33146 PyObject *resultobj = 0;
33147 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33148 wxTreeItemId result;
33149 void *argp1 = 0 ;
33150 int res1 = 0 ;
33151 PyObject *swig_obj[1] ;
33152
33153 if (!args) SWIG_fail;
33154 swig_obj[0] = args;
33155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33156 if (!SWIG_IsOK(res1)) {
33157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33158 }
33159 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33160 {
33161 PyThreadState* __tstate = wxPyBeginAllowThreads();
33162 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33163 wxPyEndAllowThreads(__tstate);
33164 if (PyErr_Occurred()) SWIG_fail;
33165 }
33166 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33167 return resultobj;
33168fail:
33169 return NULL;
33170}
33171
33172
33173SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33174 PyObject *resultobj = 0;
33175 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33176 wxTreeItemId *arg2 = 0 ;
33177 void *argp1 = 0 ;
33178 int res1 = 0 ;
33179 void *argp2 = 0 ;
33180 int res2 = 0 ;
33181 PyObject * obj0 = 0 ;
33182 PyObject * obj1 = 0 ;
33183 char * kwnames[] = {
33184 (char *) "self",(char *) "item", NULL
33185 };
33186
33187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33189 if (!SWIG_IsOK(res1)) {
33190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33191 }
33192 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33194 if (!SWIG_IsOK(res2)) {
33195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33196 }
33197 if (!argp2) {
33198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33199 }
33200 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33201 {
33202 PyThreadState* __tstate = wxPyBeginAllowThreads();
33203 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33204 wxPyEndAllowThreads(__tstate);
33205 if (PyErr_Occurred()) SWIG_fail;
33206 }
33207 resultobj = SWIG_Py_Void();
33208 return resultobj;
33209fail:
33210 return NULL;
d55e5bfc
RD
33211}
33212
33213
554f62e9
RD
33214SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33215 PyObject *resultobj = 0;
33216 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33217 wxPoint result;
33218 void *argp1 = 0 ;
33219 int res1 = 0 ;
33220 PyObject *swig_obj[1] ;
33221
33222 if (!args) SWIG_fail;
33223 swig_obj[0] = args;
33224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33225 if (!SWIG_IsOK(res1)) {
33226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33227 }
33228 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33229 {
33230 PyThreadState* __tstate = wxPyBeginAllowThreads();
33231 result = ((wxTreeEvent const *)arg1)->GetPoint();
33232 wxPyEndAllowThreads(__tstate);
33233 if (PyErr_Occurred()) SWIG_fail;
33234 }
33235 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33236 return resultobj;
33237fail:
33238 return NULL;
33239}
33240
33241
33242SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33243 PyObject *resultobj = 0;
33244 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33245 wxPoint *arg2 = 0 ;
33246 void *argp1 = 0 ;
33247 int res1 = 0 ;
33248 wxPoint temp2 ;
33249 PyObject * obj0 = 0 ;
33250 PyObject * obj1 = 0 ;
33251 char * kwnames[] = {
33252 (char *) "self",(char *) "pt", NULL
33253 };
33254
33255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33257 if (!SWIG_IsOK(res1)) {
33258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33259 }
33260 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33261 {
33262 arg2 = &temp2;
33263 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33264 }
33265 {
33266 PyThreadState* __tstate = wxPyBeginAllowThreads();
33267 (arg1)->SetPoint((wxPoint const &)*arg2);
33268 wxPyEndAllowThreads(__tstate);
33269 if (PyErr_Occurred()) SWIG_fail;
33270 }
33271 resultobj = SWIG_Py_Void();
33272 return resultobj;
33273fail:
33274 return NULL;
d55e5bfc
RD
33275}
33276
33277
554f62e9
RD
33278SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33279 PyObject *resultobj = 0;
33280 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33281 wxKeyEvent *result = 0 ;
33282 void *argp1 = 0 ;
33283 int res1 = 0 ;
33284 PyObject *swig_obj[1] ;
33285
33286 if (!args) SWIG_fail;
33287 swig_obj[0] = args;
33288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33291 }
33292 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33293 {
33294 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33295 {
554f62e9
RD
33296 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33297 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33298 }
554f62e9
RD
33299 wxPyEndAllowThreads(__tstate);
33300 if (PyErr_Occurred()) SWIG_fail;
33301 }
33302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33303 return resultobj;
33304fail:
33305 return NULL;
d55e5bfc
RD
33306}
33307
33308
554f62e9
RD
33309SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33310 PyObject *resultobj = 0;
33311 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33312 int result;
33313 void *argp1 = 0 ;
33314 int res1 = 0 ;
33315 PyObject *swig_obj[1] ;
33316
33317 if (!args) SWIG_fail;
33318 swig_obj[0] = args;
33319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33320 if (!SWIG_IsOK(res1)) {
33321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33322 }
33323 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33324 {
33325 PyThreadState* __tstate = wxPyBeginAllowThreads();
33326 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33327 wxPyEndAllowThreads(__tstate);
33328 if (PyErr_Occurred()) SWIG_fail;
33329 }
33330 resultobj = SWIG_From_int(static_cast< int >(result));
33331 return resultobj;
33332fail:
33333 return NULL;
33334}
33335
33336
33337SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33338 PyObject *resultobj = 0;
33339 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33340 wxKeyEvent *arg2 = 0 ;
33341 void *argp1 = 0 ;
33342 int res1 = 0 ;
33343 void *argp2 = 0 ;
33344 int res2 = 0 ;
33345 PyObject * obj0 = 0 ;
33346 PyObject * obj1 = 0 ;
33347 char * kwnames[] = {
33348 (char *) "self",(char *) "evt", NULL
33349 };
33350
33351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33355 }
33356 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33358 if (!SWIG_IsOK(res2)) {
33359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33360 }
33361 if (!argp2) {
33362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33363 }
33364 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33365 {
33366 PyThreadState* __tstate = wxPyBeginAllowThreads();
33367 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33368 wxPyEndAllowThreads(__tstate);
33369 if (PyErr_Occurred()) SWIG_fail;
33370 }
33371 resultobj = SWIG_Py_Void();
33372 return resultobj;
33373fail:
33374 return NULL;
d55e5bfc
RD
33375}
33376
33377
554f62e9
RD
33378SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33379 PyObject *resultobj = 0;
33380 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33381 wxString *result = 0 ;
33382 void *argp1 = 0 ;
33383 int res1 = 0 ;
33384 PyObject *swig_obj[1] ;
33385
33386 if (!args) SWIG_fail;
33387 swig_obj[0] = args;
33388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33389 if (!SWIG_IsOK(res1)) {
33390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33391 }
33392 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33393 {
33394 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33395 {
554f62e9
RD
33396 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33397 result = (wxString *) &_result_ref;
d55e5bfc 33398 }
554f62e9
RD
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 {
33403#if wxUSE_UNICODE
33404 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33405#else
33406 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33407#endif
33408 }
33409 return resultobj;
33410fail:
33411 return NULL;
33412}
33413
33414
33415SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33416 PyObject *resultobj = 0;
33417 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33418 wxString *arg2 = 0 ;
33419 void *argp1 = 0 ;
33420 int res1 = 0 ;
33421 bool temp2 = false ;
33422 PyObject * obj0 = 0 ;
33423 PyObject * obj1 = 0 ;
33424 char * kwnames[] = {
33425 (char *) "self",(char *) "label", NULL
33426 };
33427
33428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33432 }
33433 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33434 {
33435 arg2 = wxString_in_helper(obj1);
33436 if (arg2 == NULL) SWIG_fail;
33437 temp2 = true;
33438 }
33439 {
33440 PyThreadState* __tstate = wxPyBeginAllowThreads();
33441 (arg1)->SetLabel((wxString const &)*arg2);
33442 wxPyEndAllowThreads(__tstate);
33443 if (PyErr_Occurred()) SWIG_fail;
33444 }
33445 resultobj = SWIG_Py_Void();
33446 {
33447 if (temp2)
33448 delete arg2;
33449 }
33450 return resultobj;
33451fail:
33452 {
33453 if (temp2)
33454 delete arg2;
33455 }
33456 return NULL;
d55e5bfc
RD
33457}
33458
33459
554f62e9
RD
33460SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33461 PyObject *resultobj = 0;
33462 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33463 bool result;
33464 void *argp1 = 0 ;
33465 int res1 = 0 ;
33466 PyObject *swig_obj[1] ;
33467
33468 if (!args) SWIG_fail;
33469 swig_obj[0] = args;
33470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33471 if (!SWIG_IsOK(res1)) {
33472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33473 }
33474 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33475 {
33476 PyThreadState* __tstate = wxPyBeginAllowThreads();
33477 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33478 wxPyEndAllowThreads(__tstate);
33479 if (PyErr_Occurred()) SWIG_fail;
33480 }
33481 {
33482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33483 }
33484 return resultobj;
33485fail:
33486 return NULL;
33487}
33488
33489
33490SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33491 PyObject *resultobj = 0;
33492 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33493 bool arg2 ;
33494 void *argp1 = 0 ;
33495 int res1 = 0 ;
33496 bool val2 ;
33497 int ecode2 = 0 ;
33498 PyObject * obj0 = 0 ;
33499 PyObject * obj1 = 0 ;
33500 char * kwnames[] = {
33501 (char *) "self",(char *) "editCancelled", NULL
33502 };
33503
33504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33506 if (!SWIG_IsOK(res1)) {
33507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33508 }
33509 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33510 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33511 if (!SWIG_IsOK(ecode2)) {
33512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33513 }
33514 arg2 = static_cast< bool >(val2);
33515 {
33516 PyThreadState* __tstate = wxPyBeginAllowThreads();
33517 (arg1)->SetEditCanceled(arg2);
33518 wxPyEndAllowThreads(__tstate);
33519 if (PyErr_Occurred()) SWIG_fail;
33520 }
33521 resultobj = SWIG_Py_Void();
33522 return resultobj;
33523fail:
33524 return NULL;
33525}
33526
33527
33528SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33529 PyObject *resultobj = 0;
33530 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33531 wxString *arg2 = 0 ;
33532 void *argp1 = 0 ;
33533 int res1 = 0 ;
33534 bool temp2 = false ;
33535 PyObject * obj0 = 0 ;
33536 PyObject * obj1 = 0 ;
33537 char * kwnames[] = {
33538 (char *) "self",(char *) "toolTip", NULL
33539 };
33540
33541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33543 if (!SWIG_IsOK(res1)) {
33544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33545 }
33546 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33547 {
33548 arg2 = wxString_in_helper(obj1);
33549 if (arg2 == NULL) SWIG_fail;
33550 temp2 = true;
33551 }
33552 {
33553 PyThreadState* __tstate = wxPyBeginAllowThreads();
33554 (arg1)->SetToolTip((wxString const &)*arg2);
33555 wxPyEndAllowThreads(__tstate);
33556 if (PyErr_Occurred()) SWIG_fail;
33557 }
33558 resultobj = SWIG_Py_Void();
33559 {
33560 if (temp2)
33561 delete arg2;
33562 }
33563 return resultobj;
33564fail:
33565 {
33566 if (temp2)
33567 delete arg2;
33568 }
33569 return NULL;
33570}
33571
33572
33573SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33574 PyObject *resultobj = 0;
33575 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33576 wxString result;
33577 void *argp1 = 0 ;
33578 int res1 = 0 ;
33579 PyObject *swig_obj[1] ;
33580
33581 if (!args) SWIG_fail;
33582 swig_obj[0] = args;
33583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33584 if (!SWIG_IsOK(res1)) {
33585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33586 }
33587 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 result = (arg1)->GetToolTip();
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 {
33595#if wxUSE_UNICODE
33596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33597#else
33598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33599#endif
33600 }
33601 return resultobj;
33602fail:
33603 return NULL;
33604}
33605
33606
33607SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33608 PyObject *obj;
33609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33610 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33611 return SWIG_Py_Void();
33612}
33613
33614SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33615 return SWIG_Python_InitShadowInstance(args);
33616}
33617
33618SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33619 PyObject *resultobj = 0;
33620 wxWindow *arg1 = (wxWindow *) 0 ;
33621 int arg2 = (int) -1 ;
33622 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33623 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33624 wxSize const &arg4_defvalue = wxDefaultSize ;
33625 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33626 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33627 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33628 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33629 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33630 wxString *arg7 = (wxString *) &arg7_defvalue ;
33631 wxPyTreeCtrl *result = 0 ;
33632 void *argp1 = 0 ;
33633 int res1 = 0 ;
33634 int val2 ;
33635 int ecode2 = 0 ;
33636 wxPoint temp3 ;
33637 wxSize temp4 ;
33638 long val5 ;
33639 int ecode5 = 0 ;
33640 void *argp6 = 0 ;
33641 int res6 = 0 ;
33642 bool temp7 = false ;
33643 PyObject * obj0 = 0 ;
33644 PyObject * obj1 = 0 ;
33645 PyObject * obj2 = 0 ;
33646 PyObject * obj3 = 0 ;
33647 PyObject * obj4 = 0 ;
33648 PyObject * obj5 = 0 ;
33649 PyObject * obj6 = 0 ;
33650 char * kwnames[] = {
33651 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33652 };
33653
33654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33656 if (!SWIG_IsOK(res1)) {
33657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33658 }
33659 arg1 = reinterpret_cast< wxWindow * >(argp1);
33660 if (obj1) {
33661 ecode2 = SWIG_AsVal_int(obj1, &val2);
33662 if (!SWIG_IsOK(ecode2)) {
33663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33664 }
33665 arg2 = static_cast< int >(val2);
33666 }
33667 if (obj2) {
d55e5bfc 33668 {
554f62e9
RD
33669 arg3 = &temp3;
33670 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33671 }
554f62e9
RD
33672 }
33673 if (obj3) {
d55e5bfc 33674 {
554f62e9
RD
33675 arg4 = &temp4;
33676 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33677 }
554f62e9
RD
33678 }
33679 if (obj4) {
33680 ecode5 = SWIG_AsVal_long(obj4, &val5);
33681 if (!SWIG_IsOK(ecode5)) {
33682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33683 }
33684 arg5 = static_cast< long >(val5);
33685 }
33686 if (obj5) {
33687 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33688 if (!SWIG_IsOK(res6)) {
33689 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33690 }
554f62e9
RD
33691 if (!argp6) {
33692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33693 }
554f62e9
RD
33694 arg6 = reinterpret_cast< wxValidator * >(argp6);
33695 }
33696 if (obj6) {
d55e5bfc 33697 {
554f62e9
RD
33698 arg7 = wxString_in_helper(obj6);
33699 if (arg7 == NULL) SWIG_fail;
33700 temp7 = true;
d55e5bfc 33701 }
554f62e9
RD
33702 }
33703 {
33704 if (!wxPyCheckForApp()) SWIG_fail;
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33711 {
33712 if (temp7)
33713 delete arg7;
33714 }
33715 return resultobj;
33716fail:
33717 {
33718 if (temp7)
33719 delete arg7;
33720 }
33721 return NULL;
d55e5bfc
RD
33722}
33723
33724
554f62e9
RD
33725SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33726 PyObject *resultobj = 0;
33727 wxPyTreeCtrl *result = 0 ;
33728
33729 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33730 {
33731 if (!wxPyCheckForApp()) SWIG_fail;
33732 PyThreadState* __tstate = wxPyBeginAllowThreads();
33733 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33734 wxPyEndAllowThreads(__tstate);
33735 if (PyErr_Occurred()) SWIG_fail;
33736 }
33737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33738 return resultobj;
33739fail:
33740 return NULL;
33741}
33742
33743
33744SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33745 PyObject *resultobj = 0;
33746 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33747 wxWindow *arg2 = (wxWindow *) 0 ;
33748 int arg3 = (int) -1 ;
33749 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33750 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33751 wxSize const &arg5_defvalue = wxDefaultSize ;
33752 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33753 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33754 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33755 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33756 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33757 wxString *arg8 = (wxString *) &arg8_defvalue ;
33758 bool result;
33759 void *argp1 = 0 ;
33760 int res1 = 0 ;
33761 void *argp2 = 0 ;
33762 int res2 = 0 ;
33763 int val3 ;
33764 int ecode3 = 0 ;
33765 wxPoint temp4 ;
33766 wxSize temp5 ;
33767 long val6 ;
33768 int ecode6 = 0 ;
33769 void *argp7 = 0 ;
33770 int res7 = 0 ;
33771 bool temp8 = false ;
33772 PyObject * obj0 = 0 ;
33773 PyObject * obj1 = 0 ;
33774 PyObject * obj2 = 0 ;
33775 PyObject * obj3 = 0 ;
33776 PyObject * obj4 = 0 ;
33777 PyObject * obj5 = 0 ;
33778 PyObject * obj6 = 0 ;
33779 PyObject * obj7 = 0 ;
33780 char * kwnames[] = {
33781 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33782 };
33783
33784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33786 if (!SWIG_IsOK(res1)) {
33787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33788 }
33789 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33790 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33791 if (!SWIG_IsOK(res2)) {
33792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33793 }
33794 arg2 = reinterpret_cast< wxWindow * >(argp2);
33795 if (obj2) {
33796 ecode3 = SWIG_AsVal_int(obj2, &val3);
33797 if (!SWIG_IsOK(ecode3)) {
33798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33799 }
33800 arg3 = static_cast< int >(val3);
33801 }
33802 if (obj3) {
d55e5bfc 33803 {
554f62e9
RD
33804 arg4 = &temp4;
33805 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33806 }
554f62e9
RD
33807 }
33808 if (obj4) {
d55e5bfc 33809 {
554f62e9
RD
33810 arg5 = &temp5;
33811 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33812 }
554f62e9
RD
33813 }
33814 if (obj5) {
33815 ecode6 = SWIG_AsVal_long(obj5, &val6);
33816 if (!SWIG_IsOK(ecode6)) {
33817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33818 }
33819 arg6 = static_cast< long >(val6);
33820 }
33821 if (obj6) {
33822 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33823 if (!SWIG_IsOK(res7)) {
33824 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33825 }
554f62e9
RD
33826 if (!argp7) {
33827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33828 }
554f62e9
RD
33829 arg7 = reinterpret_cast< wxValidator * >(argp7);
33830 }
33831 if (obj7) {
d55e5bfc 33832 {
554f62e9
RD
33833 arg8 = wxString_in_helper(obj7);
33834 if (arg8 == NULL) SWIG_fail;
33835 temp8 = true;
d55e5bfc 33836 }
554f62e9
RD
33837 }
33838 {
33839 PyThreadState* __tstate = wxPyBeginAllowThreads();
33840 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33841 wxPyEndAllowThreads(__tstate);
33842 if (PyErr_Occurred()) SWIG_fail;
33843 }
33844 {
33845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33846 }
33847 {
33848 if (temp8)
33849 delete arg8;
33850 }
33851 return resultobj;
33852fail:
33853 {
33854 if (temp8)
33855 delete arg8;
33856 }
33857 return NULL;
33858}
33859
33860
33861SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33862 PyObject *resultobj = 0;
33863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33864 PyObject *arg2 = (PyObject *) 0 ;
33865 PyObject *arg3 = (PyObject *) 0 ;
33866 void *argp1 = 0 ;
33867 int res1 = 0 ;
33868 PyObject * obj0 = 0 ;
33869 PyObject * obj1 = 0 ;
33870 PyObject * obj2 = 0 ;
33871 char * kwnames[] = {
33872 (char *) "self",(char *) "self",(char *) "_class", NULL
33873 };
33874
33875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33877 if (!SWIG_IsOK(res1)) {
33878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33879 }
33880 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33881 arg2 = obj1;
33882 arg3 = obj2;
33883 {
33884 PyThreadState* __tstate = wxPyBeginAllowThreads();
33885 (arg1)->_setCallbackInfo(arg2,arg3);
33886 wxPyEndAllowThreads(__tstate);
33887 if (PyErr_Occurred()) SWIG_fail;
33888 }
33889 resultobj = SWIG_Py_Void();
33890 return resultobj;
33891fail:
33892 return NULL;
d55e5bfc
RD
33893}
33894
33895
554f62e9
RD
33896SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33897 PyObject *resultobj = 0;
33898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33899 unsigned int result;
554f62e9
RD
33900 void *argp1 = 0 ;
33901 int res1 = 0 ;
33902 PyObject *swig_obj[1] ;
33903
33904 if (!args) SWIG_fail;
33905 swig_obj[0] = args;
33906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33907 if (!SWIG_IsOK(res1)) {
33908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33909 }
33910 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33911 {
33912 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33913 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
554f62e9
RD
33914 wxPyEndAllowThreads(__tstate);
33915 if (PyErr_Occurred()) SWIG_fail;
33916 }
e9d6f3a4 33917 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
33918 return resultobj;
33919fail:
33920 return NULL;
d55e5bfc
RD
33921}
33922
33923
554f62e9
RD
33924SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33925 PyObject *resultobj = 0;
33926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33927 unsigned int result;
33928 void *argp1 = 0 ;
33929 int res1 = 0 ;
33930 PyObject *swig_obj[1] ;
33931
33932 if (!args) SWIG_fail;
33933 swig_obj[0] = args;
33934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33935 if (!SWIG_IsOK(res1)) {
33936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33937 }
33938 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33939 {
33940 PyThreadState* __tstate = wxPyBeginAllowThreads();
33941 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33942 wxPyEndAllowThreads(__tstate);
33943 if (PyErr_Occurred()) SWIG_fail;
33944 }
33945 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33946 return resultobj;
33947fail:
33948 return NULL;
33949}
33950
33951
33952SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33953 PyObject *resultobj = 0;
33954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33955 unsigned int arg2 ;
33956 void *argp1 = 0 ;
33957 int res1 = 0 ;
33958 unsigned int val2 ;
33959 int ecode2 = 0 ;
33960 PyObject * obj0 = 0 ;
33961 PyObject * obj1 = 0 ;
33962 char * kwnames[] = {
33963 (char *) "self",(char *) "indent", NULL
33964 };
33965
33966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33968 if (!SWIG_IsOK(res1)) {
33969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33970 }
33971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33972 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33973 if (!SWIG_IsOK(ecode2)) {
33974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33975 }
33976 arg2 = static_cast< unsigned int >(val2);
33977 {
33978 PyThreadState* __tstate = wxPyBeginAllowThreads();
33979 (arg1)->SetIndent(arg2);
33980 wxPyEndAllowThreads(__tstate);
33981 if (PyErr_Occurred()) SWIG_fail;
33982 }
33983 resultobj = SWIG_Py_Void();
33984 return resultobj;
33985fail:
33986 return NULL;
d55e5bfc
RD
33987}
33988
33989
554f62e9
RD
33990SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33991 PyObject *resultobj = 0;
33992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33993 unsigned int result;
33994 void *argp1 = 0 ;
33995 int res1 = 0 ;
33996 PyObject *swig_obj[1] ;
33997
33998 if (!args) SWIG_fail;
33999 swig_obj[0] = args;
34000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34001 if (!SWIG_IsOK(res1)) {
34002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34003 }
34004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34005 {
34006 PyThreadState* __tstate = wxPyBeginAllowThreads();
34007 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34008 wxPyEndAllowThreads(__tstate);
34009 if (PyErr_Occurred()) SWIG_fail;
34010 }
34011 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34012 return resultobj;
34013fail:
34014 return NULL;
34015}
34016
34017
34018SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34019 PyObject *resultobj = 0;
34020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34021 unsigned int arg2 ;
34022 void *argp1 = 0 ;
34023 int res1 = 0 ;
34024 unsigned int val2 ;
34025 int ecode2 = 0 ;
34026 PyObject * obj0 = 0 ;
34027 PyObject * obj1 = 0 ;
34028 char * kwnames[] = {
34029 (char *) "self",(char *) "spacing", NULL
34030 };
34031
34032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34034 if (!SWIG_IsOK(res1)) {
34035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34036 }
34037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34038 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34039 if (!SWIG_IsOK(ecode2)) {
34040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34041 }
34042 arg2 = static_cast< unsigned int >(val2);
34043 {
34044 PyThreadState* __tstate = wxPyBeginAllowThreads();
34045 (arg1)->SetSpacing(arg2);
34046 wxPyEndAllowThreads(__tstate);
34047 if (PyErr_Occurred()) SWIG_fail;
34048 }
34049 resultobj = SWIG_Py_Void();
34050 return resultobj;
34051fail:
34052 return NULL;
d55e5bfc
RD
34053}
34054
34055
554f62e9
RD
34056SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34057 PyObject *resultobj = 0;
34058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34059 wxImageList *result = 0 ;
34060 void *argp1 = 0 ;
34061 int res1 = 0 ;
34062 PyObject *swig_obj[1] ;
34063
34064 if (!args) SWIG_fail;
34065 swig_obj[0] = args;
34066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34067 if (!SWIG_IsOK(res1)) {
34068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34069 }
34070 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34071 {
34072 PyThreadState* __tstate = wxPyBeginAllowThreads();
34073 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34074 wxPyEndAllowThreads(__tstate);
34075 if (PyErr_Occurred()) SWIG_fail;
34076 }
34077 {
34078 resultobj = wxPyMake_wxObject(result, (bool)0);
34079 }
34080 return resultobj;
34081fail:
34082 return NULL;
d55e5bfc
RD
34083}
34084
34085
554f62e9
RD
34086SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34087 PyObject *resultobj = 0;
34088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34089 wxImageList *result = 0 ;
34090 void *argp1 = 0 ;
34091 int res1 = 0 ;
34092 PyObject *swig_obj[1] ;
34093
34094 if (!args) SWIG_fail;
34095 swig_obj[0] = args;
34096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34097 if (!SWIG_IsOK(res1)) {
34098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34099 }
34100 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34101 {
34102 PyThreadState* __tstate = wxPyBeginAllowThreads();
34103 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34104 wxPyEndAllowThreads(__tstate);
34105 if (PyErr_Occurred()) SWIG_fail;
34106 }
34107 {
34108 resultobj = wxPyMake_wxObject(result, (bool)0);
34109 }
34110 return resultobj;
34111fail:
34112 return NULL;
34113}
34114
34115
34116SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34117 PyObject *resultobj = 0;
34118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34119 wxImageList *arg2 = (wxImageList *) 0 ;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 void *argp2 = 0 ;
34123 int res2 = 0 ;
34124 PyObject * obj0 = 0 ;
34125 PyObject * obj1 = 0 ;
34126 char * kwnames[] = {
34127 (char *) "self",(char *) "imageList", NULL
34128 };
34129
34130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34132 if (!SWIG_IsOK(res1)) {
34133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34134 }
34135 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34137 if (!SWIG_IsOK(res2)) {
34138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34139 }
34140 arg2 = reinterpret_cast< wxImageList * >(argp2);
34141 {
34142 PyThreadState* __tstate = wxPyBeginAllowThreads();
34143 (arg1)->SetImageList(arg2);
34144 wxPyEndAllowThreads(__tstate);
34145 if (PyErr_Occurred()) SWIG_fail;
34146 }
34147 resultobj = SWIG_Py_Void();
34148 return resultobj;
34149fail:
34150 return NULL;
34151}
34152
34153
34154SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34155 PyObject *resultobj = 0;
34156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34157 wxImageList *arg2 = (wxImageList *) 0 ;
34158 void *argp1 = 0 ;
34159 int res1 = 0 ;
34160 void *argp2 = 0 ;
34161 int res2 = 0 ;
34162 PyObject * obj0 = 0 ;
34163 PyObject * obj1 = 0 ;
34164 char * kwnames[] = {
34165 (char *) "self",(char *) "imageList", NULL
34166 };
34167
34168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34170 if (!SWIG_IsOK(res1)) {
34171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34172 }
34173 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34174 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34175 if (!SWIG_IsOK(res2)) {
34176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34177 }
34178 arg2 = reinterpret_cast< wxImageList * >(argp2);
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
34181 (arg1)->SetStateImageList(arg2);
34182 wxPyEndAllowThreads(__tstate);
34183 if (PyErr_Occurred()) SWIG_fail;
34184 }
34185 resultobj = SWIG_Py_Void();
34186 return resultobj;
34187fail:
34188 return NULL;
34189}
34190
34191
34192SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34193 PyObject *resultobj = 0;
34194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34195 wxImageList *arg2 = (wxImageList *) 0 ;
34196 void *argp1 = 0 ;
34197 int res1 = 0 ;
34198 int res2 = 0 ;
34199 PyObject * obj0 = 0 ;
34200 PyObject * obj1 = 0 ;
34201 char * kwnames[] = {
34202 (char *) "self",(char *) "imageList", NULL
34203 };
34204
34205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34207 if (!SWIG_IsOK(res1)) {
34208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34209 }
34210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34211 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34212 if (!SWIG_IsOK(res2)) {
34213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34214 }
34215 {
34216 PyThreadState* __tstate = wxPyBeginAllowThreads();
34217 (arg1)->AssignImageList(arg2);
34218 wxPyEndAllowThreads(__tstate);
34219 if (PyErr_Occurred()) SWIG_fail;
34220 }
34221 resultobj = SWIG_Py_Void();
34222 return resultobj;
34223fail:
34224 return NULL;
34225}
34226
34227
34228SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34229 PyObject *resultobj = 0;
34230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34231 wxImageList *arg2 = (wxImageList *) 0 ;
34232 void *argp1 = 0 ;
34233 int res1 = 0 ;
34234 int res2 = 0 ;
34235 PyObject * obj0 = 0 ;
34236 PyObject * obj1 = 0 ;
34237 char * kwnames[] = {
34238 (char *) "self",(char *) "imageList", NULL
34239 };
34240
34241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34243 if (!SWIG_IsOK(res1)) {
34244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34245 }
34246 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34247 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34248 if (!SWIG_IsOK(res2)) {
34249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34250 }
34251 {
34252 PyThreadState* __tstate = wxPyBeginAllowThreads();
34253 (arg1)->AssignStateImageList(arg2);
34254 wxPyEndAllowThreads(__tstate);
34255 if (PyErr_Occurred()) SWIG_fail;
34256 }
34257 resultobj = SWIG_Py_Void();
34258 return resultobj;
34259fail:
34260 return NULL;
34261}
34262
34263
34264SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34265 PyObject *resultobj = 0;
34266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34267 wxTreeItemId *arg2 = 0 ;
34268 wxString result;
34269 void *argp1 = 0 ;
34270 int res1 = 0 ;
34271 void *argp2 = 0 ;
34272 int res2 = 0 ;
34273 PyObject * obj0 = 0 ;
34274 PyObject * obj1 = 0 ;
34275 char * kwnames[] = {
34276 (char *) "self",(char *) "item", NULL
34277 };
34278
34279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34281 if (!SWIG_IsOK(res1)) {
34282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34283 }
34284 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34286 if (!SWIG_IsOK(res2)) {
34287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34288 }
34289 if (!argp2) {
34290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34291 }
34292 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34293 {
34294 PyThreadState* __tstate = wxPyBeginAllowThreads();
34295 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34296 wxPyEndAllowThreads(__tstate);
34297 if (PyErr_Occurred()) SWIG_fail;
34298 }
34299 {
34300#if wxUSE_UNICODE
34301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34302#else
34303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34304#endif
34305 }
34306 return resultobj;
34307fail:
34308 return NULL;
34309}
34310
34311
34312SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34315 wxTreeItemId *arg2 = 0 ;
34316 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34317 int result;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 void *argp2 = 0 ;
34321 int res2 = 0 ;
34322 int val3 ;
34323 int ecode3 = 0 ;
34324 PyObject * obj0 = 0 ;
34325 PyObject * obj1 = 0 ;
34326 PyObject * obj2 = 0 ;
34327 char * kwnames[] = {
34328 (char *) "self",(char *) "item",(char *) "which", NULL
34329 };
34330
34331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34333 if (!SWIG_IsOK(res1)) {
34334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34335 }
34336 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34338 if (!SWIG_IsOK(res2)) {
34339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34340 }
34341 if (!argp2) {
34342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34343 }
34344 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34345 if (obj2) {
34346 ecode3 = SWIG_AsVal_int(obj2, &val3);
34347 if (!SWIG_IsOK(ecode3)) {
34348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34349 }
34350 arg3 = static_cast< wxTreeItemIcon >(val3);
34351 }
34352 {
34353 PyThreadState* __tstate = wxPyBeginAllowThreads();
34354 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34355 wxPyEndAllowThreads(__tstate);
34356 if (PyErr_Occurred()) SWIG_fail;
34357 }
34358 resultobj = SWIG_From_int(static_cast< int >(result));
34359 return resultobj;
34360fail:
34361 return NULL;
34362}
34363
34364
34365SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34366 PyObject *resultobj = 0;
34367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34368 wxTreeItemId *arg2 = 0 ;
34369 wxPyTreeItemData *result = 0 ;
34370 void *argp1 = 0 ;
34371 int res1 = 0 ;
34372 void *argp2 = 0 ;
34373 int res2 = 0 ;
34374 PyObject * obj0 = 0 ;
34375 PyObject * obj1 = 0 ;
34376 char * kwnames[] = {
34377 (char *) "self",(char *) "item", NULL
34378 };
34379
34380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34384 }
34385 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34387 if (!SWIG_IsOK(res2)) {
34388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34389 }
34390 if (!argp2) {
34391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34392 }
34393 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34394 {
34395 PyThreadState* __tstate = wxPyBeginAllowThreads();
34396 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34397 wxPyEndAllowThreads(__tstate);
34398 if (PyErr_Occurred()) SWIG_fail;
34399 }
34400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34401 return resultobj;
34402fail:
34403 return NULL;
34404}
34405
34406
34407SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34408 PyObject *resultobj = 0;
34409 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34410 wxTreeItemId *arg2 = 0 ;
34411 PyObject *result = 0 ;
34412 void *argp1 = 0 ;
34413 int res1 = 0 ;
34414 void *argp2 = 0 ;
34415 int res2 = 0 ;
34416 PyObject * obj0 = 0 ;
34417 PyObject * obj1 = 0 ;
34418 char * kwnames[] = {
34419 (char *) "self",(char *) "item", NULL
34420 };
34421
34422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34424 if (!SWIG_IsOK(res1)) {
34425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34426 }
34427 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34428 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34429 if (!SWIG_IsOK(res2)) {
34430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34431 }
34432 if (!argp2) {
34433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34434 }
34435 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34436 {
34437 PyThreadState* __tstate = wxPyBeginAllowThreads();
34438 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34439 wxPyEndAllowThreads(__tstate);
34440 if (PyErr_Occurred()) SWIG_fail;
34441 }
34442 resultobj = result;
34443 return resultobj;
34444fail:
34445 return NULL;
34446}
34447
34448
34449SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34450 PyObject *resultobj = 0;
34451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34452 wxTreeItemId *arg2 = 0 ;
34453 wxColour result;
34454 void *argp1 = 0 ;
34455 int res1 = 0 ;
34456 void *argp2 = 0 ;
34457 int res2 = 0 ;
34458 PyObject * obj0 = 0 ;
34459 PyObject * obj1 = 0 ;
34460 char * kwnames[] = {
34461 (char *) "self",(char *) "item", NULL
34462 };
34463
34464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34466 if (!SWIG_IsOK(res1)) {
34467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34468 }
34469 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34471 if (!SWIG_IsOK(res2)) {
34472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34473 }
34474 if (!argp2) {
34475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34476 }
34477 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34478 {
34479 PyThreadState* __tstate = wxPyBeginAllowThreads();
34480 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34481 wxPyEndAllowThreads(__tstate);
34482 if (PyErr_Occurred()) SWIG_fail;
34483 }
34484 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34485 return resultobj;
34486fail:
34487 return NULL;
34488}
34489
34490
34491SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34492 PyObject *resultobj = 0;
34493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34494 wxTreeItemId *arg2 = 0 ;
34495 wxColour result;
34496 void *argp1 = 0 ;
34497 int res1 = 0 ;
34498 void *argp2 = 0 ;
34499 int res2 = 0 ;
34500 PyObject * obj0 = 0 ;
34501 PyObject * obj1 = 0 ;
34502 char * kwnames[] = {
34503 (char *) "self",(char *) "item", NULL
34504 };
34505
34506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34508 if (!SWIG_IsOK(res1)) {
34509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34510 }
34511 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34513 if (!SWIG_IsOK(res2)) {
34514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34515 }
34516 if (!argp2) {
34517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34518 }
34519 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34520 {
34521 PyThreadState* __tstate = wxPyBeginAllowThreads();
34522 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34523 wxPyEndAllowThreads(__tstate);
34524 if (PyErr_Occurred()) SWIG_fail;
34525 }
34526 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34527 return resultobj;
34528fail:
34529 return NULL;
34530}
34531
34532
34533SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34534 PyObject *resultobj = 0;
34535 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34536 wxTreeItemId *arg2 = 0 ;
34537 wxFont result;
34538 void *argp1 = 0 ;
34539 int res1 = 0 ;
34540 void *argp2 = 0 ;
34541 int res2 = 0 ;
34542 PyObject * obj0 = 0 ;
34543 PyObject * obj1 = 0 ;
34544 char * kwnames[] = {
34545 (char *) "self",(char *) "item", NULL
34546 };
34547
34548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34550 if (!SWIG_IsOK(res1)) {
34551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34552 }
34553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34555 if (!SWIG_IsOK(res2)) {
34556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34557 }
34558 if (!argp2) {
34559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34560 }
34561 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34562 {
34563 PyThreadState* __tstate = wxPyBeginAllowThreads();
34564 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34565 wxPyEndAllowThreads(__tstate);
34566 if (PyErr_Occurred()) SWIG_fail;
34567 }
34568 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34569 return resultobj;
34570fail:
34571 return NULL;
34572}
34573
34574
34575SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34576 PyObject *resultobj = 0;
34577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34578 wxTreeItemId *arg2 = 0 ;
34579 wxString *arg3 = 0 ;
34580 void *argp1 = 0 ;
34581 int res1 = 0 ;
34582 void *argp2 = 0 ;
34583 int res2 = 0 ;
34584 bool temp3 = false ;
34585 PyObject * obj0 = 0 ;
34586 PyObject * obj1 = 0 ;
34587 PyObject * obj2 = 0 ;
34588 char * kwnames[] = {
34589 (char *) "self",(char *) "item",(char *) "text", NULL
34590 };
34591
34592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34594 if (!SWIG_IsOK(res1)) {
34595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34596 }
34597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34599 if (!SWIG_IsOK(res2)) {
34600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34601 }
34602 if (!argp2) {
34603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34604 }
34605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34606 {
34607 arg3 = wxString_in_helper(obj2);
34608 if (arg3 == NULL) SWIG_fail;
34609 temp3 = true;
34610 }
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34614 wxPyEndAllowThreads(__tstate);
34615 if (PyErr_Occurred()) SWIG_fail;
34616 }
34617 resultobj = SWIG_Py_Void();
34618 {
34619 if (temp3)
34620 delete arg3;
34621 }
34622 return resultobj;
34623fail:
34624 {
34625 if (temp3)
34626 delete arg3;
34627 }
34628 return NULL;
34629}
34630
34631
34632SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34633 PyObject *resultobj = 0;
34634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34635 wxTreeItemId *arg2 = 0 ;
34636 int arg3 ;
34637 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34638 void *argp1 = 0 ;
34639 int res1 = 0 ;
34640 void *argp2 = 0 ;
34641 int res2 = 0 ;
34642 int val3 ;
34643 int ecode3 = 0 ;
34644 int val4 ;
34645 int ecode4 = 0 ;
34646 PyObject * obj0 = 0 ;
34647 PyObject * obj1 = 0 ;
34648 PyObject * obj2 = 0 ;
34649 PyObject * obj3 = 0 ;
34650 char * kwnames[] = {
34651 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34652 };
34653
34654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34656 if (!SWIG_IsOK(res1)) {
34657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34658 }
34659 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34661 if (!SWIG_IsOK(res2)) {
34662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34663 }
34664 if (!argp2) {
34665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34666 }
34667 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34668 ecode3 = SWIG_AsVal_int(obj2, &val3);
34669 if (!SWIG_IsOK(ecode3)) {
34670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34671 }
34672 arg3 = static_cast< int >(val3);
34673 if (obj3) {
34674 ecode4 = SWIG_AsVal_int(obj3, &val4);
34675 if (!SWIG_IsOK(ecode4)) {
34676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34677 }
34678 arg4 = static_cast< wxTreeItemIcon >(val4);
34679 }
34680 {
34681 PyThreadState* __tstate = wxPyBeginAllowThreads();
34682 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34683 wxPyEndAllowThreads(__tstate);
34684 if (PyErr_Occurred()) SWIG_fail;
34685 }
34686 resultobj = SWIG_Py_Void();
34687 return resultobj;
34688fail:
34689 return NULL;
34690}
34691
34692
34693SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34694 PyObject *resultobj = 0;
34695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34696 wxTreeItemId *arg2 = 0 ;
34697 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34698 void *argp1 = 0 ;
34699 int res1 = 0 ;
34700 void *argp2 = 0 ;
34701 int res2 = 0 ;
34702 int res3 = 0 ;
34703 PyObject * obj0 = 0 ;
34704 PyObject * obj1 = 0 ;
34705 PyObject * obj2 = 0 ;
34706 char * kwnames[] = {
34707 (char *) "self",(char *) "item",(char *) "data", NULL
34708 };
34709
34710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34712 if (!SWIG_IsOK(res1)) {
34713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34714 }
34715 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34717 if (!SWIG_IsOK(res2)) {
34718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34719 }
34720 if (!argp2) {
34721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34722 }
34723 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34724 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34725 if (!SWIG_IsOK(res3)) {
34726 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34727 }
34728 {
34729 PyThreadState* __tstate = wxPyBeginAllowThreads();
34730 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34731 wxPyEndAllowThreads(__tstate);
34732 if (PyErr_Occurred()) SWIG_fail;
34733 }
34734 resultobj = SWIG_Py_Void();
34735 return resultobj;
34736fail:
34737 return NULL;
34738}
34739
34740
34741SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34742 PyObject *resultobj = 0;
34743 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34744 wxTreeItemId *arg2 = 0 ;
34745 PyObject *arg3 = (PyObject *) 0 ;
34746 void *argp1 = 0 ;
34747 int res1 = 0 ;
34748 void *argp2 = 0 ;
34749 int res2 = 0 ;
34750 PyObject * obj0 = 0 ;
34751 PyObject * obj1 = 0 ;
34752 PyObject * obj2 = 0 ;
34753 char * kwnames[] = {
34754 (char *) "self",(char *) "item",(char *) "obj", NULL
34755 };
34756
34757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34759 if (!SWIG_IsOK(res1)) {
34760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34761 }
34762 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34763 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34764 if (!SWIG_IsOK(res2)) {
34765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34766 }
34767 if (!argp2) {
34768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34769 }
34770 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34771 arg3 = obj2;
34772 {
34773 PyThreadState* __tstate = wxPyBeginAllowThreads();
34774 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34775 wxPyEndAllowThreads(__tstate);
34776 if (PyErr_Occurred()) SWIG_fail;
34777 }
34778 resultobj = SWIG_Py_Void();
34779 return resultobj;
34780fail:
34781 return NULL;
34782}
34783
34784
34785SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34786 PyObject *resultobj = 0;
34787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34788 wxTreeItemId *arg2 = 0 ;
34789 bool arg3 = (bool) true ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 void *argp2 = 0 ;
34793 int res2 = 0 ;
34794 bool val3 ;
34795 int ecode3 = 0 ;
34796 PyObject * obj0 = 0 ;
34797 PyObject * obj1 = 0 ;
34798 PyObject * obj2 = 0 ;
34799 char * kwnames[] = {
34800 (char *) "self",(char *) "item",(char *) "has", NULL
34801 };
34802
34803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34805 if (!SWIG_IsOK(res1)) {
34806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34807 }
34808 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34810 if (!SWIG_IsOK(res2)) {
34811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34812 }
34813 if (!argp2) {
34814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34815 }
34816 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34817 if (obj2) {
34818 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34819 if (!SWIG_IsOK(ecode3)) {
34820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34821 }
34822 arg3 = static_cast< bool >(val3);
34823 }
34824 {
34825 PyThreadState* __tstate = wxPyBeginAllowThreads();
34826 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34827 wxPyEndAllowThreads(__tstate);
34828 if (PyErr_Occurred()) SWIG_fail;
34829 }
34830 resultobj = SWIG_Py_Void();
34831 return resultobj;
34832fail:
34833 return NULL;
34834}
34835
34836
34837SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34838 PyObject *resultobj = 0;
34839 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34840 wxTreeItemId *arg2 = 0 ;
34841 bool arg3 = (bool) true ;
34842 void *argp1 = 0 ;
34843 int res1 = 0 ;
34844 void *argp2 = 0 ;
34845 int res2 = 0 ;
34846 bool val3 ;
34847 int ecode3 = 0 ;
34848 PyObject * obj0 = 0 ;
34849 PyObject * obj1 = 0 ;
34850 PyObject * obj2 = 0 ;
34851 char * kwnames[] = {
34852 (char *) "self",(char *) "item",(char *) "bold", NULL
34853 };
34854
34855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34857 if (!SWIG_IsOK(res1)) {
34858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34859 }
34860 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34862 if (!SWIG_IsOK(res2)) {
34863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34864 }
34865 if (!argp2) {
34866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34867 }
34868 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34869 if (obj2) {
34870 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34871 if (!SWIG_IsOK(ecode3)) {
34872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34873 }
34874 arg3 = static_cast< bool >(val3);
34875 }
34876 {
34877 PyThreadState* __tstate = wxPyBeginAllowThreads();
34878 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34879 wxPyEndAllowThreads(__tstate);
34880 if (PyErr_Occurred()) SWIG_fail;
34881 }
34882 resultobj = SWIG_Py_Void();
34883 return resultobj;
34884fail:
34885 return NULL;
34886}
34887
34888
34889SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34890 PyObject *resultobj = 0;
34891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34892 wxTreeItemId *arg2 = 0 ;
34893 bool arg3 = (bool) true ;
34894 void *argp1 = 0 ;
34895 int res1 = 0 ;
34896 void *argp2 = 0 ;
34897 int res2 = 0 ;
34898 bool val3 ;
34899 int ecode3 = 0 ;
34900 PyObject * obj0 = 0 ;
34901 PyObject * obj1 = 0 ;
34902 PyObject * obj2 = 0 ;
34903 char * kwnames[] = {
34904 (char *) "self",(char *) "item",(char *) "highlight", NULL
34905 };
34906
34907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34909 if (!SWIG_IsOK(res1)) {
34910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34911 }
34912 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34914 if (!SWIG_IsOK(res2)) {
34915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34916 }
34917 if (!argp2) {
34918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34919 }
34920 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34921 if (obj2) {
34922 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34923 if (!SWIG_IsOK(ecode3)) {
34924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34925 }
34926 arg3 = static_cast< bool >(val3);
34927 }
34928 {
34929 PyThreadState* __tstate = wxPyBeginAllowThreads();
34930 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34931 wxPyEndAllowThreads(__tstate);
34932 if (PyErr_Occurred()) SWIG_fail;
34933 }
34934 resultobj = SWIG_Py_Void();
34935 return resultobj;
34936fail:
34937 return NULL;
34938}
34939
34940
34941SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34942 PyObject *resultobj = 0;
34943 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34944 wxTreeItemId *arg2 = 0 ;
34945 wxColour *arg3 = 0 ;
34946 void *argp1 = 0 ;
34947 int res1 = 0 ;
34948 void *argp2 = 0 ;
34949 int res2 = 0 ;
34950 wxColour temp3 ;
34951 PyObject * obj0 = 0 ;
34952 PyObject * obj1 = 0 ;
34953 PyObject * obj2 = 0 ;
34954 char * kwnames[] = {
34955 (char *) "self",(char *) "item",(char *) "col", NULL
34956 };
34957
34958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34960 if (!SWIG_IsOK(res1)) {
34961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34962 }
34963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34965 if (!SWIG_IsOK(res2)) {
34966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34967 }
34968 if (!argp2) {
34969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34970 }
34971 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34972 {
34973 arg3 = &temp3;
34974 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34975 }
34976 {
34977 PyThreadState* __tstate = wxPyBeginAllowThreads();
34978 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34979 wxPyEndAllowThreads(__tstate);
34980 if (PyErr_Occurred()) SWIG_fail;
34981 }
34982 resultobj = SWIG_Py_Void();
34983 return resultobj;
34984fail:
34985 return NULL;
34986}
34987
34988
34989SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34990 PyObject *resultobj = 0;
34991 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34992 wxTreeItemId *arg2 = 0 ;
34993 wxColour *arg3 = 0 ;
34994 void *argp1 = 0 ;
34995 int res1 = 0 ;
34996 void *argp2 = 0 ;
34997 int res2 = 0 ;
34998 wxColour temp3 ;
34999 PyObject * obj0 = 0 ;
35000 PyObject * obj1 = 0 ;
35001 PyObject * obj2 = 0 ;
35002 char * kwnames[] = {
35003 (char *) "self",(char *) "item",(char *) "col", NULL
35004 };
35005
35006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35008 if (!SWIG_IsOK(res1)) {
35009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35010 }
35011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35013 if (!SWIG_IsOK(res2)) {
35014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35015 }
35016 if (!argp2) {
35017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35018 }
35019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35020 {
35021 arg3 = &temp3;
35022 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35023 }
35024 {
35025 PyThreadState* __tstate = wxPyBeginAllowThreads();
35026 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35027 wxPyEndAllowThreads(__tstate);
35028 if (PyErr_Occurred()) SWIG_fail;
35029 }
35030 resultobj = SWIG_Py_Void();
35031 return resultobj;
35032fail:
35033 return NULL;
35034}
35035
35036
35037SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35038 PyObject *resultobj = 0;
35039 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35040 wxTreeItemId *arg2 = 0 ;
35041 wxFont *arg3 = 0 ;
35042 void *argp1 = 0 ;
35043 int res1 = 0 ;
35044 void *argp2 = 0 ;
35045 int res2 = 0 ;
35046 void *argp3 = 0 ;
35047 int res3 = 0 ;
35048 PyObject * obj0 = 0 ;
35049 PyObject * obj1 = 0 ;
35050 PyObject * obj2 = 0 ;
35051 char * kwnames[] = {
35052 (char *) "self",(char *) "item",(char *) "font", NULL
35053 };
35054
35055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35057 if (!SWIG_IsOK(res1)) {
35058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35059 }
35060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35062 if (!SWIG_IsOK(res2)) {
35063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35064 }
35065 if (!argp2) {
35066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35067 }
35068 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35069 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35070 if (!SWIG_IsOK(res3)) {
35071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35072 }
35073 if (!argp3) {
35074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35075 }
35076 arg3 = reinterpret_cast< wxFont * >(argp3);
35077 {
35078 PyThreadState* __tstate = wxPyBeginAllowThreads();
35079 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35080 wxPyEndAllowThreads(__tstate);
35081 if (PyErr_Occurred()) SWIG_fail;
35082 }
35083 resultobj = SWIG_Py_Void();
35084 return resultobj;
35085fail:
35086 return NULL;
35087}
35088
35089
35090SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35091 PyObject *resultobj = 0;
35092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35093 wxTreeItemId *arg2 = 0 ;
35094 bool result;
35095 void *argp1 = 0 ;
35096 int res1 = 0 ;
35097 void *argp2 = 0 ;
35098 int res2 = 0 ;
35099 PyObject * obj0 = 0 ;
35100 PyObject * obj1 = 0 ;
35101 char * kwnames[] = {
35102 (char *) "self",(char *) "item", NULL
35103 };
35104
35105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35107 if (!SWIG_IsOK(res1)) {
35108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35109 }
35110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35112 if (!SWIG_IsOK(res2)) {
35113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35114 }
35115 if (!argp2) {
35116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35117 }
35118 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35119 {
35120 PyThreadState* __tstate = wxPyBeginAllowThreads();
35121 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35122 wxPyEndAllowThreads(__tstate);
35123 if (PyErr_Occurred()) SWIG_fail;
35124 }
35125 {
35126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35127 }
35128 return resultobj;
35129fail:
35130 return NULL;
35131}
35132
35133
35134SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35135 PyObject *resultobj = 0;
35136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35137 wxTreeItemId *arg2 = 0 ;
35138 bool result;
35139 void *argp1 = 0 ;
35140 int res1 = 0 ;
35141 void *argp2 = 0 ;
35142 int res2 = 0 ;
35143 PyObject * obj0 = 0 ;
35144 PyObject * obj1 = 0 ;
35145 char * kwnames[] = {
35146 (char *) "self",(char *) "item", NULL
35147 };
35148
35149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35151 if (!SWIG_IsOK(res1)) {
35152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35153 }
35154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35156 if (!SWIG_IsOK(res2)) {
35157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35158 }
35159 if (!argp2) {
35160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35161 }
35162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35163 {
35164 PyThreadState* __tstate = wxPyBeginAllowThreads();
35165 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35166 wxPyEndAllowThreads(__tstate);
35167 if (PyErr_Occurred()) SWIG_fail;
35168 }
35169 {
35170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35171 }
35172 return resultobj;
35173fail:
35174 return NULL;
35175}
35176
35177
35178SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35179 PyObject *resultobj = 0;
35180 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35181 wxTreeItemId *arg2 = 0 ;
35182 bool result;
35183 void *argp1 = 0 ;
35184 int res1 = 0 ;
35185 void *argp2 = 0 ;
35186 int res2 = 0 ;
35187 PyObject * obj0 = 0 ;
35188 PyObject * obj1 = 0 ;
35189 char * kwnames[] = {
35190 (char *) "self",(char *) "item", NULL
35191 };
35192
35193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35195 if (!SWIG_IsOK(res1)) {
35196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35197 }
35198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35200 if (!SWIG_IsOK(res2)) {
35201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35202 }
35203 if (!argp2) {
35204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35205 }
35206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35207 {
35208 PyThreadState* __tstate = wxPyBeginAllowThreads();
35209 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35210 wxPyEndAllowThreads(__tstate);
35211 if (PyErr_Occurred()) SWIG_fail;
35212 }
35213 {
35214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35215 }
35216 return resultobj;
35217fail:
35218 return NULL;
35219}
35220
35221
35222SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35223 PyObject *resultobj = 0;
35224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35225 wxTreeItemId *arg2 = 0 ;
35226 bool result;
35227 void *argp1 = 0 ;
35228 int res1 = 0 ;
35229 void *argp2 = 0 ;
35230 int res2 = 0 ;
35231 PyObject * obj0 = 0 ;
35232 PyObject * obj1 = 0 ;
35233 char * kwnames[] = {
35234 (char *) "self",(char *) "item", NULL
35235 };
35236
35237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35239 if (!SWIG_IsOK(res1)) {
35240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35241 }
35242 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35244 if (!SWIG_IsOK(res2)) {
35245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35246 }
35247 if (!argp2) {
35248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35249 }
35250 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35251 {
35252 PyThreadState* __tstate = wxPyBeginAllowThreads();
35253 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35254 wxPyEndAllowThreads(__tstate);
35255 if (PyErr_Occurred()) SWIG_fail;
35256 }
35257 {
35258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35259 }
35260 return resultobj;
35261fail:
35262 return NULL;
35263}
35264
35265
35266SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35267 PyObject *resultobj = 0;
35268 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35269 wxTreeItemId *arg2 = 0 ;
35270 bool result;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 void *argp2 = 0 ;
35274 int res2 = 0 ;
35275 PyObject * obj0 = 0 ;
35276 PyObject * obj1 = 0 ;
35277 char * kwnames[] = {
35278 (char *) "self",(char *) "item", NULL
35279 };
35280
35281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35283 if (!SWIG_IsOK(res1)) {
35284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35285 }
35286 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35288 if (!SWIG_IsOK(res2)) {
35289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35290 }
35291 if (!argp2) {
35292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35293 }
35294 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35295 {
35296 PyThreadState* __tstate = wxPyBeginAllowThreads();
35297 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35298 wxPyEndAllowThreads(__tstate);
35299 if (PyErr_Occurred()) SWIG_fail;
35300 }
35301 {
35302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35303 }
35304 return resultobj;
35305fail:
35306 return NULL;
35307}
35308
35309
35310SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35311 PyObject *resultobj = 0;
35312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35313 wxTreeItemId *arg2 = 0 ;
35314 bool arg3 = (bool) true ;
35315 size_t result;
35316 void *argp1 = 0 ;
35317 int res1 = 0 ;
35318 void *argp2 = 0 ;
35319 int res2 = 0 ;
35320 bool val3 ;
35321 int ecode3 = 0 ;
35322 PyObject * obj0 = 0 ;
35323 PyObject * obj1 = 0 ;
35324 PyObject * obj2 = 0 ;
35325 char * kwnames[] = {
35326 (char *) "self",(char *) "item",(char *) "recursively", NULL
35327 };
35328
35329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35331 if (!SWIG_IsOK(res1)) {
35332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35333 }
35334 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35336 if (!SWIG_IsOK(res2)) {
35337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35338 }
35339 if (!argp2) {
35340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35341 }
35342 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35343 if (obj2) {
35344 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35345 if (!SWIG_IsOK(ecode3)) {
35346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35347 }
35348 arg3 = static_cast< bool >(val3);
35349 }
35350 {
35351 PyThreadState* __tstate = wxPyBeginAllowThreads();
35352 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35353 wxPyEndAllowThreads(__tstate);
35354 if (PyErr_Occurred()) SWIG_fail;
35355 }
35356 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35357 return resultobj;
35358fail:
35359 return NULL;
d55e5bfc
RD
35360}
35361
35362
554f62e9
RD
35363SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35364 PyObject *resultobj = 0;
35365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35366 wxTreeItemId result;
35367 void *argp1 = 0 ;
35368 int res1 = 0 ;
35369 PyObject *swig_obj[1] ;
35370
35371 if (!args) SWIG_fail;
35372 swig_obj[0] = args;
35373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35374 if (!SWIG_IsOK(res1)) {
35375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35376 }
35377 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35378 {
35379 PyThreadState* __tstate = wxPyBeginAllowThreads();
35380 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35381 wxPyEndAllowThreads(__tstate);
35382 if (PyErr_Occurred()) SWIG_fail;
35383 }
35384 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35385 return resultobj;
35386fail:
35387 return NULL;
d55e5bfc
RD
35388}
35389
35390
554f62e9
RD
35391SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35392 PyObject *resultobj = 0;
35393 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35394 wxTreeItemId result;
35395 void *argp1 = 0 ;
35396 int res1 = 0 ;
35397 PyObject *swig_obj[1] ;
35398
35399 if (!args) SWIG_fail;
35400 swig_obj[0] = args;
35401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35402 if (!SWIG_IsOK(res1)) {
35403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35404 }
35405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35406 {
35407 PyThreadState* __tstate = wxPyBeginAllowThreads();
35408 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35409 wxPyEndAllowThreads(__tstate);
35410 if (PyErr_Occurred()) SWIG_fail;
35411 }
35412 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35413 return resultobj;
35414fail:
35415 return NULL;
d55e5bfc
RD
35416}
35417
35418
554f62e9
RD
35419SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35420 PyObject *resultobj = 0;
35421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35422 PyObject *result = 0 ;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 PyObject *swig_obj[1] ;
35426
35427 if (!args) SWIG_fail;
35428 swig_obj[0] = args;
35429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35430 if (!SWIG_IsOK(res1)) {
35431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35432 }
35433 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35434 {
35435 PyThreadState* __tstate = wxPyBeginAllowThreads();
35436 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35437 wxPyEndAllowThreads(__tstate);
35438 if (PyErr_Occurred()) SWIG_fail;
35439 }
35440 resultobj = result;
35441 return resultobj;
35442fail:
35443 return NULL;
35444}
35445
35446
35447SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35448 PyObject *resultobj = 0;
35449 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35450 wxTreeItemId *arg2 = 0 ;
35451 wxTreeItemId result;
35452 void *argp1 = 0 ;
35453 int res1 = 0 ;
35454 void *argp2 = 0 ;
35455 int res2 = 0 ;
35456 PyObject * obj0 = 0 ;
35457 PyObject * obj1 = 0 ;
35458 char * kwnames[] = {
35459 (char *) "self",(char *) "item", NULL
35460 };
35461
35462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35464 if (!SWIG_IsOK(res1)) {
35465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35466 }
35467 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35469 if (!SWIG_IsOK(res2)) {
35470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35471 }
35472 if (!argp2) {
35473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35474 }
35475 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35476 {
35477 PyThreadState* __tstate = wxPyBeginAllowThreads();
35478 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35479 wxPyEndAllowThreads(__tstate);
35480 if (PyErr_Occurred()) SWIG_fail;
35481 }
35482 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35483 return resultobj;
35484fail:
35485 return NULL;
35486}
35487
35488
35489SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35490 PyObject *resultobj = 0;
35491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35492 wxTreeItemId *arg2 = 0 ;
35493 PyObject *result = 0 ;
35494 void *argp1 = 0 ;
35495 int res1 = 0 ;
35496 void *argp2 = 0 ;
35497 int res2 = 0 ;
35498 PyObject * obj0 = 0 ;
35499 PyObject * obj1 = 0 ;
35500 char * kwnames[] = {
35501 (char *) "self",(char *) "item", NULL
35502 };
35503
35504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35506 if (!SWIG_IsOK(res1)) {
35507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35508 }
35509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35511 if (!SWIG_IsOK(res2)) {
35512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35513 }
35514 if (!argp2) {
35515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35516 }
35517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35518 {
35519 PyThreadState* __tstate = wxPyBeginAllowThreads();
35520 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35521 wxPyEndAllowThreads(__tstate);
35522 if (PyErr_Occurred()) SWIG_fail;
35523 }
35524 resultobj = result;
35525 return resultobj;
35526fail:
35527 return NULL;
35528}
35529
35530
35531SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35532 PyObject *resultobj = 0;
35533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35534 wxTreeItemId *arg2 = 0 ;
35535 void *arg3 = (void *) 0 ;
35536 PyObject *result = 0 ;
35537 void *argp1 = 0 ;
35538 int res1 = 0 ;
35539 void *argp2 = 0 ;
35540 int res2 = 0 ;
35541 int res3 ;
35542 PyObject * obj0 = 0 ;
35543 PyObject * obj1 = 0 ;
35544 PyObject * obj2 = 0 ;
35545 char * kwnames[] = {
35546 (char *) "self",(char *) "item",(char *) "cookie", NULL
35547 };
35548
35549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35551 if (!SWIG_IsOK(res1)) {
35552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35553 }
35554 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35556 if (!SWIG_IsOK(res2)) {
35557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35558 }
35559 if (!argp2) {
35560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35561 }
35562 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35563 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35564 if (!SWIG_IsOK(res3)) {
35565 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35566 }
35567 {
35568 PyThreadState* __tstate = wxPyBeginAllowThreads();
35569 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35570 wxPyEndAllowThreads(__tstate);
35571 if (PyErr_Occurred()) SWIG_fail;
35572 }
35573 resultobj = result;
35574 return resultobj;
35575fail:
35576 return NULL;
35577}
35578
35579
35580SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35581 PyObject *resultobj = 0;
35582 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35583 wxTreeItemId *arg2 = 0 ;
35584 wxTreeItemId result;
35585 void *argp1 = 0 ;
35586 int res1 = 0 ;
35587 void *argp2 = 0 ;
35588 int res2 = 0 ;
35589 PyObject * obj0 = 0 ;
35590 PyObject * obj1 = 0 ;
35591 char * kwnames[] = {
35592 (char *) "self",(char *) "item", NULL
35593 };
35594
35595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35597 if (!SWIG_IsOK(res1)) {
35598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35599 }
35600 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35602 if (!SWIG_IsOK(res2)) {
35603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35604 }
35605 if (!argp2) {
35606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35607 }
35608 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35609 {
35610 PyThreadState* __tstate = wxPyBeginAllowThreads();
35611 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35612 wxPyEndAllowThreads(__tstate);
35613 if (PyErr_Occurred()) SWIG_fail;
35614 }
35615 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35616 return resultobj;
35617fail:
35618 return NULL;
35619}
35620
35621
35622SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35623 PyObject *resultobj = 0;
35624 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35625 wxTreeItemId *arg2 = 0 ;
35626 wxTreeItemId result;
35627 void *argp1 = 0 ;
35628 int res1 = 0 ;
35629 void *argp2 = 0 ;
35630 int res2 = 0 ;
35631 PyObject * obj0 = 0 ;
35632 PyObject * obj1 = 0 ;
35633 char * kwnames[] = {
35634 (char *) "self",(char *) "item", NULL
35635 };
35636
35637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35639 if (!SWIG_IsOK(res1)) {
35640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35641 }
35642 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35644 if (!SWIG_IsOK(res2)) {
35645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35646 }
35647 if (!argp2) {
35648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35649 }
35650 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35651 {
35652 PyThreadState* __tstate = wxPyBeginAllowThreads();
35653 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35654 wxPyEndAllowThreads(__tstate);
35655 if (PyErr_Occurred()) SWIG_fail;
35656 }
35657 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35658 return resultobj;
35659fail:
35660 return NULL;
35661}
35662
35663
35664SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35665 PyObject *resultobj = 0;
35666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35667 wxTreeItemId *arg2 = 0 ;
35668 wxTreeItemId result;
35669 void *argp1 = 0 ;
35670 int res1 = 0 ;
35671 void *argp2 = 0 ;
35672 int res2 = 0 ;
35673 PyObject * obj0 = 0 ;
35674 PyObject * obj1 = 0 ;
35675 char * kwnames[] = {
35676 (char *) "self",(char *) "item", NULL
35677 };
35678
35679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35681 if (!SWIG_IsOK(res1)) {
35682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35683 }
35684 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35686 if (!SWIG_IsOK(res2)) {
35687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35688 }
35689 if (!argp2) {
35690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35691 }
35692 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35693 {
35694 PyThreadState* __tstate = wxPyBeginAllowThreads();
35695 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35696 wxPyEndAllowThreads(__tstate);
35697 if (PyErr_Occurred()) SWIG_fail;
35698 }
35699 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35700 return resultobj;
35701fail:
35702 return NULL;
d55e5bfc
RD
35703}
35704
35705
554f62e9
RD
35706SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35707 PyObject *resultobj = 0;
35708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35709 wxTreeItemId result;
35710 void *argp1 = 0 ;
35711 int res1 = 0 ;
35712 PyObject *swig_obj[1] ;
35713
35714 if (!args) SWIG_fail;
35715 swig_obj[0] = args;
35716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35717 if (!SWIG_IsOK(res1)) {
35718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35719 }
35720 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35721 {
35722 PyThreadState* __tstate = wxPyBeginAllowThreads();
35723 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35724 wxPyEndAllowThreads(__tstate);
35725 if (PyErr_Occurred()) SWIG_fail;
35726 }
35727 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35728 return resultobj;
35729fail:
35730 return NULL;
35731}
35732
35733
35734SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35735 PyObject *resultobj = 0;
35736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35737 wxTreeItemId *arg2 = 0 ;
35738 wxTreeItemId result;
35739 void *argp1 = 0 ;
35740 int res1 = 0 ;
35741 void *argp2 = 0 ;
35742 int res2 = 0 ;
35743 PyObject * obj0 = 0 ;
35744 PyObject * obj1 = 0 ;
35745 char * kwnames[] = {
35746 (char *) "self",(char *) "item", NULL
35747 };
35748
35749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35751 if (!SWIG_IsOK(res1)) {
35752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35753 }
35754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35756 if (!SWIG_IsOK(res2)) {
35757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35758 }
35759 if (!argp2) {
35760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35761 }
35762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35763 {
35764 PyThreadState* __tstate = wxPyBeginAllowThreads();
35765 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35766 wxPyEndAllowThreads(__tstate);
35767 if (PyErr_Occurred()) SWIG_fail;
35768 }
35769 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35770 return resultobj;
35771fail:
35772 return NULL;
35773}
35774
35775
35776SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35777 PyObject *resultobj = 0;
35778 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35779 wxTreeItemId *arg2 = 0 ;
35780 wxTreeItemId result;
35781 void *argp1 = 0 ;
35782 int res1 = 0 ;
35783 void *argp2 = 0 ;
35784 int res2 = 0 ;
35785 PyObject * obj0 = 0 ;
35786 PyObject * obj1 = 0 ;
35787 char * kwnames[] = {
35788 (char *) "self",(char *) "item", NULL
35789 };
35790
35791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35793 if (!SWIG_IsOK(res1)) {
35794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35795 }
35796 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35798 if (!SWIG_IsOK(res2)) {
35799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35800 }
35801 if (!argp2) {
35802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35803 }
35804 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35805 {
35806 PyThreadState* __tstate = wxPyBeginAllowThreads();
35807 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35808 wxPyEndAllowThreads(__tstate);
35809 if (PyErr_Occurred()) SWIG_fail;
35810 }
35811 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35812 return resultobj;
35813fail:
35814 return NULL;
35815}
35816
35817
35818SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35819 PyObject *resultobj = 0;
35820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35821 wxString *arg2 = 0 ;
35822 int arg3 = (int) -1 ;
35823 int arg4 = (int) -1 ;
35824 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35825 wxTreeItemId result;
35826 void *argp1 = 0 ;
35827 int res1 = 0 ;
35828 bool temp2 = false ;
35829 int val3 ;
35830 int ecode3 = 0 ;
35831 int val4 ;
35832 int ecode4 = 0 ;
35833 int res5 = 0 ;
35834 PyObject * obj0 = 0 ;
35835 PyObject * obj1 = 0 ;
35836 PyObject * obj2 = 0 ;
35837 PyObject * obj3 = 0 ;
35838 PyObject * obj4 = 0 ;
35839 char * kwnames[] = {
35840 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35841 };
35842
35843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35845 if (!SWIG_IsOK(res1)) {
35846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35847 }
35848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35849 {
35850 arg2 = wxString_in_helper(obj1);
35851 if (arg2 == NULL) SWIG_fail;
35852 temp2 = true;
35853 }
35854 if (obj2) {
35855 ecode3 = SWIG_AsVal_int(obj2, &val3);
35856 if (!SWIG_IsOK(ecode3)) {
35857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35858 }
35859 arg3 = static_cast< int >(val3);
35860 }
35861 if (obj3) {
35862 ecode4 = SWIG_AsVal_int(obj3, &val4);
35863 if (!SWIG_IsOK(ecode4)) {
35864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35865 }
35866 arg4 = static_cast< int >(val4);
35867 }
35868 if (obj4) {
35869 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35870 if (!SWIG_IsOK(res5)) {
35871 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35872 }
554f62e9
RD
35873 }
35874 {
35875 PyThreadState* __tstate = wxPyBeginAllowThreads();
35876 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35877 wxPyEndAllowThreads(__tstate);
35878 if (PyErr_Occurred()) SWIG_fail;
35879 }
35880 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35881 {
35882 if (temp2)
35883 delete arg2;
35884 }
35885 return resultobj;
35886fail:
35887 {
35888 if (temp2)
35889 delete arg2;
35890 }
35891 return NULL;
35892}
35893
35894
35895SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35896 PyObject *resultobj = 0;
35897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35898 wxTreeItemId *arg2 = 0 ;
35899 wxString *arg3 = 0 ;
35900 int arg4 = (int) -1 ;
35901 int arg5 = (int) -1 ;
35902 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35903 wxTreeItemId result;
35904 void *argp1 = 0 ;
35905 int res1 = 0 ;
35906 void *argp2 = 0 ;
35907 int res2 = 0 ;
35908 bool temp3 = false ;
35909 int val4 ;
35910 int ecode4 = 0 ;
35911 int val5 ;
35912 int ecode5 = 0 ;
35913 int res6 = 0 ;
35914 PyObject * obj0 = 0 ;
35915 PyObject * obj1 = 0 ;
35916 PyObject * obj2 = 0 ;
35917 PyObject * obj3 = 0 ;
35918 PyObject * obj4 = 0 ;
35919 PyObject * obj5 = 0 ;
35920 char * kwnames[] = {
35921 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35922 };
35923
35924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35926 if (!SWIG_IsOK(res1)) {
35927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35928 }
35929 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35931 if (!SWIG_IsOK(res2)) {
35932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35933 }
35934 if (!argp2) {
35935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35936 }
35937 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35938 {
35939 arg3 = wxString_in_helper(obj2);
35940 if (arg3 == NULL) SWIG_fail;
35941 temp3 = true;
35942 }
35943 if (obj3) {
35944 ecode4 = SWIG_AsVal_int(obj3, &val4);
35945 if (!SWIG_IsOK(ecode4)) {
35946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35947 }
35948 arg4 = static_cast< int >(val4);
35949 }
35950 if (obj4) {
35951 ecode5 = SWIG_AsVal_int(obj4, &val5);
35952 if (!SWIG_IsOK(ecode5)) {
35953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35954 }
35955 arg5 = static_cast< int >(val5);
35956 }
35957 if (obj5) {
35958 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35959 if (!SWIG_IsOK(res6)) {
35960 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
093d3ff1 35961 }
554f62e9
RD
35962 }
35963 {
35964 PyThreadState* __tstate = wxPyBeginAllowThreads();
35965 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35966 wxPyEndAllowThreads(__tstate);
35967 if (PyErr_Occurred()) SWIG_fail;
35968 }
35969 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35970 {
35971 if (temp3)
35972 delete arg3;
35973 }
35974 return resultobj;
35975fail:
35976 {
35977 if (temp3)
35978 delete arg3;
35979 }
35980 return NULL;
35981}
35982
35983
35984SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35985 PyObject *resultobj = 0;
35986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35987 wxTreeItemId *arg2 = 0 ;
35988 wxTreeItemId *arg3 = 0 ;
35989 wxString *arg4 = 0 ;
35990 int arg5 = (int) -1 ;
35991 int arg6 = (int) -1 ;
35992 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35993 wxTreeItemId result;
35994 void *argp1 = 0 ;
35995 int res1 = 0 ;
35996 void *argp2 = 0 ;
35997 int res2 = 0 ;
35998 void *argp3 = 0 ;
35999 int res3 = 0 ;
36000 bool temp4 = false ;
36001 int val5 ;
36002 int ecode5 = 0 ;
36003 int val6 ;
36004 int ecode6 = 0 ;
36005 int res7 = 0 ;
36006 PyObject * obj0 = 0 ;
36007 PyObject * obj1 = 0 ;
36008 PyObject * obj2 = 0 ;
36009 PyObject * obj3 = 0 ;
36010 PyObject * obj4 = 0 ;
36011 PyObject * obj5 = 0 ;
36012 PyObject * obj6 = 0 ;
36013 char * kwnames[] = {
36014 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36015 };
36016
36017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36019 if (!SWIG_IsOK(res1)) {
36020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36021 }
36022 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36024 if (!SWIG_IsOK(res2)) {
36025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36026 }
36027 if (!argp2) {
36028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36029 }
36030 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36031 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36032 if (!SWIG_IsOK(res3)) {
36033 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36034 }
36035 if (!argp3) {
36036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36037 }
36038 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36039 {
36040 arg4 = wxString_in_helper(obj3);
36041 if (arg4 == NULL) SWIG_fail;
36042 temp4 = true;
36043 }
36044 if (obj4) {
36045 ecode5 = SWIG_AsVal_int(obj4, &val5);
36046 if (!SWIG_IsOK(ecode5)) {
36047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36048 }
36049 arg5 = static_cast< int >(val5);
36050 }
36051 if (obj5) {
36052 ecode6 = SWIG_AsVal_int(obj5, &val6);
36053 if (!SWIG_IsOK(ecode6)) {
36054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36055 }
36056 arg6 = static_cast< int >(val6);
36057 }
36058 if (obj6) {
36059 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36060 if (!SWIG_IsOK(res7)) {
36061 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36062 }
554f62e9
RD
36063 }
36064 {
36065 PyThreadState* __tstate = wxPyBeginAllowThreads();
36066 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36067 wxPyEndAllowThreads(__tstate);
36068 if (PyErr_Occurred()) SWIG_fail;
36069 }
36070 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36071 {
36072 if (temp4)
36073 delete arg4;
36074 }
36075 return resultobj;
36076fail:
36077 {
36078 if (temp4)
36079 delete arg4;
36080 }
36081 return NULL;
36082}
36083
36084
36085SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36086 PyObject *resultobj = 0;
36087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36088 wxTreeItemId *arg2 = 0 ;
36089 size_t arg3 ;
36090 wxString *arg4 = 0 ;
36091 int arg5 = (int) -1 ;
36092 int arg6 = (int) -1 ;
36093 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36094 wxTreeItemId result;
36095 void *argp1 = 0 ;
36096 int res1 = 0 ;
36097 void *argp2 = 0 ;
36098 int res2 = 0 ;
36099 size_t val3 ;
36100 int ecode3 = 0 ;
36101 bool temp4 = false ;
36102 int val5 ;
36103 int ecode5 = 0 ;
36104 int val6 ;
36105 int ecode6 = 0 ;
36106 int res7 = 0 ;
36107 PyObject * obj0 = 0 ;
36108 PyObject * obj1 = 0 ;
36109 PyObject * obj2 = 0 ;
36110 PyObject * obj3 = 0 ;
36111 PyObject * obj4 = 0 ;
36112 PyObject * obj5 = 0 ;
36113 PyObject * obj6 = 0 ;
36114 char * kwnames[] = {
36115 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36116 };
36117
36118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36120 if (!SWIG_IsOK(res1)) {
36121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36122 }
36123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36125 if (!SWIG_IsOK(res2)) {
36126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 if (!argp2) {
36129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36130 }
36131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36132 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36133 if (!SWIG_IsOK(ecode3)) {
36134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36135 }
36136 arg3 = static_cast< size_t >(val3);
36137 {
36138 arg4 = wxString_in_helper(obj3);
36139 if (arg4 == NULL) SWIG_fail;
36140 temp4 = true;
36141 }
36142 if (obj4) {
36143 ecode5 = SWIG_AsVal_int(obj4, &val5);
36144 if (!SWIG_IsOK(ecode5)) {
36145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36146 }
36147 arg5 = static_cast< int >(val5);
36148 }
36149 if (obj5) {
36150 ecode6 = SWIG_AsVal_int(obj5, &val6);
36151 if (!SWIG_IsOK(ecode6)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36153 }
36154 arg6 = static_cast< int >(val6);
36155 }
36156 if (obj6) {
36157 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36158 if (!SWIG_IsOK(res7)) {
36159 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36160 }
554f62e9
RD
36161 }
36162 {
36163 PyThreadState* __tstate = wxPyBeginAllowThreads();
36164 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36165 wxPyEndAllowThreads(__tstate);
36166 if (PyErr_Occurred()) SWIG_fail;
36167 }
36168 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36169 {
36170 if (temp4)
36171 delete arg4;
36172 }
36173 return resultobj;
36174fail:
36175 {
36176 if (temp4)
36177 delete arg4;
36178 }
36179 return NULL;
36180}
36181
36182
36183SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj = 0;
36185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36186 wxTreeItemId *arg2 = 0 ;
36187 wxString *arg3 = 0 ;
36188 int arg4 = (int) -1 ;
36189 int arg5 = (int) -1 ;
36190 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36191 wxTreeItemId result;
36192 void *argp1 = 0 ;
36193 int res1 = 0 ;
36194 void *argp2 = 0 ;
36195 int res2 = 0 ;
36196 bool temp3 = false ;
36197 int val4 ;
36198 int ecode4 = 0 ;
36199 int val5 ;
36200 int ecode5 = 0 ;
36201 int res6 = 0 ;
36202 PyObject * obj0 = 0 ;
36203 PyObject * obj1 = 0 ;
36204 PyObject * obj2 = 0 ;
36205 PyObject * obj3 = 0 ;
36206 PyObject * obj4 = 0 ;
36207 PyObject * obj5 = 0 ;
36208 char * kwnames[] = {
36209 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36210 };
36211
36212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36214 if (!SWIG_IsOK(res1)) {
36215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36216 }
36217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36219 if (!SWIG_IsOK(res2)) {
36220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36221 }
36222 if (!argp2) {
36223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36224 }
36225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36226 {
36227 arg3 = wxString_in_helper(obj2);
36228 if (arg3 == NULL) SWIG_fail;
36229 temp3 = true;
36230 }
36231 if (obj3) {
36232 ecode4 = SWIG_AsVal_int(obj3, &val4);
36233 if (!SWIG_IsOK(ecode4)) {
36234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36235 }
36236 arg4 = static_cast< int >(val4);
36237 }
36238 if (obj4) {
36239 ecode5 = SWIG_AsVal_int(obj4, &val5);
36240 if (!SWIG_IsOK(ecode5)) {
36241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36242 }
36243 arg5 = static_cast< int >(val5);
36244 }
36245 if (obj5) {
36246 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36247 if (!SWIG_IsOK(res6)) {
36248 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36249 }
554f62e9
RD
36250 }
36251 {
36252 PyThreadState* __tstate = wxPyBeginAllowThreads();
36253 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36254 wxPyEndAllowThreads(__tstate);
36255 if (PyErr_Occurred()) SWIG_fail;
36256 }
36257 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36258 {
36259 if (temp3)
36260 delete arg3;
36261 }
36262 return resultobj;
36263fail:
36264 {
36265 if (temp3)
36266 delete arg3;
36267 }
36268 return NULL;
36269}
36270
36271
36272SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36273 PyObject *resultobj = 0;
36274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36275 wxTreeItemId *arg2 = 0 ;
36276 void *argp1 = 0 ;
36277 int res1 = 0 ;
36278 void *argp2 = 0 ;
36279 int res2 = 0 ;
36280 PyObject * obj0 = 0 ;
36281 PyObject * obj1 = 0 ;
36282 char * kwnames[] = {
36283 (char *) "self",(char *) "item", NULL
36284 };
36285
36286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36288 if (!SWIG_IsOK(res1)) {
36289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36290 }
36291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36293 if (!SWIG_IsOK(res2)) {
36294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36295 }
36296 if (!argp2) {
36297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36298 }
36299 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36300 {
36301 PyThreadState* __tstate = wxPyBeginAllowThreads();
36302 (arg1)->Delete((wxTreeItemId const &)*arg2);
36303 wxPyEndAllowThreads(__tstate);
36304 if (PyErr_Occurred()) SWIG_fail;
36305 }
36306 resultobj = SWIG_Py_Void();
36307 return resultobj;
36308fail:
36309 return NULL;
36310}
36311
36312
36313SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36314 PyObject *resultobj = 0;
36315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36316 wxTreeItemId *arg2 = 0 ;
36317 void *argp1 = 0 ;
36318 int res1 = 0 ;
36319 void *argp2 = 0 ;
36320 int res2 = 0 ;
36321 PyObject * obj0 = 0 ;
36322 PyObject * obj1 = 0 ;
36323 char * kwnames[] = {
36324 (char *) "self",(char *) "item", NULL
36325 };
36326
36327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36329 if (!SWIG_IsOK(res1)) {
36330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36331 }
36332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36334 if (!SWIG_IsOK(res2)) {
36335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36336 }
36337 if (!argp2) {
36338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36339 }
36340 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36341 {
36342 PyThreadState* __tstate = wxPyBeginAllowThreads();
36343 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36344 wxPyEndAllowThreads(__tstate);
36345 if (PyErr_Occurred()) SWIG_fail;
36346 }
36347 resultobj = SWIG_Py_Void();
36348 return resultobj;
36349fail:
36350 return NULL;
d55e5bfc
RD
36351}
36352
36353
554f62e9
RD
36354SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36355 PyObject *resultobj = 0;
36356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36357 void *argp1 = 0 ;
36358 int res1 = 0 ;
36359 PyObject *swig_obj[1] ;
36360
36361 if (!args) SWIG_fail;
36362 swig_obj[0] = args;
36363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36364 if (!SWIG_IsOK(res1)) {
36365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36366 }
36367 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36368 {
36369 PyThreadState* __tstate = wxPyBeginAllowThreads();
36370 (arg1)->DeleteAllItems();
36371 wxPyEndAllowThreads(__tstate);
36372 if (PyErr_Occurred()) SWIG_fail;
36373 }
36374 resultobj = SWIG_Py_Void();
36375 return resultobj;
36376fail:
36377 return NULL;
36378}
36379
36380
36381SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36382 PyObject *resultobj = 0;
36383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36384 wxTreeItemId *arg2 = 0 ;
36385 void *argp1 = 0 ;
36386 int res1 = 0 ;
36387 void *argp2 = 0 ;
36388 int res2 = 0 ;
36389 PyObject * obj0 = 0 ;
36390 PyObject * obj1 = 0 ;
36391 char * kwnames[] = {
36392 (char *) "self",(char *) "item", NULL
36393 };
36394
36395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36397 if (!SWIG_IsOK(res1)) {
36398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36399 }
36400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36402 if (!SWIG_IsOK(res2)) {
36403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36404 }
36405 if (!argp2) {
36406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36407 }
36408 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36409 {
36410 PyThreadState* __tstate = wxPyBeginAllowThreads();
36411 (arg1)->Expand((wxTreeItemId const &)*arg2);
36412 wxPyEndAllowThreads(__tstate);
36413 if (PyErr_Occurred()) SWIG_fail;
36414 }
36415 resultobj = SWIG_Py_Void();
36416 return resultobj;
36417fail:
36418 return NULL;
36419}
36420
36421
453fb36b
RD
36422SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36423 PyObject *resultobj = 0;
36424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36425 wxTreeItemId *arg2 = 0 ;
36426 void *argp1 = 0 ;
36427 int res1 = 0 ;
36428 void *argp2 = 0 ;
36429 int res2 = 0 ;
36430 PyObject * obj0 = 0 ;
36431 PyObject * obj1 = 0 ;
36432 char * kwnames[] = {
36433 (char *) "self",(char *) "item", NULL
36434 };
36435
36436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36438 if (!SWIG_IsOK(res1)) {
36439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36440 }
36441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36443 if (!SWIG_IsOK(res2)) {
36444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36445 }
36446 if (!argp2) {
36447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36448 }
36449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36450 {
36451 PyThreadState* __tstate = wxPyBeginAllowThreads();
36452 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36453 wxPyEndAllowThreads(__tstate);
36454 if (PyErr_Occurred()) SWIG_fail;
36455 }
36456 resultobj = SWIG_Py_Void();
36457 return resultobj;
36458fail:
36459 return NULL;
36460}
36461
36462
36463SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36464 PyObject *resultobj = 0;
36465 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36466 void *argp1 = 0 ;
36467 int res1 = 0 ;
36468 PyObject *swig_obj[1] ;
36469
36470 if (!args) SWIG_fail;
36471 swig_obj[0] = args;
36472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36473 if (!SWIG_IsOK(res1)) {
36474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36475 }
36476 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36477 {
36478 PyThreadState* __tstate = wxPyBeginAllowThreads();
36479 (arg1)->ExpandAll();
36480 wxPyEndAllowThreads(__tstate);
36481 if (PyErr_Occurred()) SWIG_fail;
36482 }
36483 resultobj = SWIG_Py_Void();
36484 return resultobj;
36485fail:
36486 return NULL;
36487}
36488
36489
554f62e9
RD
36490SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36491 PyObject *resultobj = 0;
36492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36493 wxTreeItemId *arg2 = 0 ;
36494 void *argp1 = 0 ;
36495 int res1 = 0 ;
36496 void *argp2 = 0 ;
36497 int res2 = 0 ;
36498 PyObject * obj0 = 0 ;
36499 PyObject * obj1 = 0 ;
36500 char * kwnames[] = {
36501 (char *) "self",(char *) "item", NULL
36502 };
36503
36504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36506 if (!SWIG_IsOK(res1)) {
36507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36508 }
36509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36511 if (!SWIG_IsOK(res2)) {
36512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36513 }
36514 if (!argp2) {
36515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36516 }
36517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36518 {
36519 PyThreadState* __tstate = wxPyBeginAllowThreads();
36520 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36521 wxPyEndAllowThreads(__tstate);
36522 if (PyErr_Occurred()) SWIG_fail;
36523 }
36524 resultobj = SWIG_Py_Void();
36525 return resultobj;
36526fail:
36527 return NULL;
36528}
36529
36530
36531SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36532 PyObject *resultobj = 0;
36533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36534 wxTreeItemId *arg2 = 0 ;
36535 void *argp1 = 0 ;
36536 int res1 = 0 ;
36537 void *argp2 = 0 ;
36538 int res2 = 0 ;
36539 PyObject * obj0 = 0 ;
36540 PyObject * obj1 = 0 ;
36541 char * kwnames[] = {
36542 (char *) "self",(char *) "item", NULL
36543 };
36544
36545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36547 if (!SWIG_IsOK(res1)) {
36548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36549 }
36550 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36552 if (!SWIG_IsOK(res2)) {
36553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36554 }
36555 if (!argp2) {
36556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36557 }
36558 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36559 {
36560 PyThreadState* __tstate = wxPyBeginAllowThreads();
36561 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36562 wxPyEndAllowThreads(__tstate);
36563 if (PyErr_Occurred()) SWIG_fail;
36564 }
36565 resultobj = SWIG_Py_Void();
36566 return resultobj;
36567fail:
36568 return NULL;
36569}
36570
36571
36572SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36573 PyObject *resultobj = 0;
36574 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36575 wxTreeItemId *arg2 = 0 ;
36576 void *argp1 = 0 ;
36577 int res1 = 0 ;
36578 void *argp2 = 0 ;
36579 int res2 = 0 ;
36580 PyObject * obj0 = 0 ;
36581 PyObject * obj1 = 0 ;
36582 char * kwnames[] = {
36583 (char *) "self",(char *) "item", NULL
36584 };
36585
36586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36588 if (!SWIG_IsOK(res1)) {
36589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36590 }
36591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36593 if (!SWIG_IsOK(res2)) {
36594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36595 }
36596 if (!argp2) {
36597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36598 }
36599 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36600 {
36601 PyThreadState* __tstate = wxPyBeginAllowThreads();
36602 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36603 wxPyEndAllowThreads(__tstate);
36604 if (PyErr_Occurred()) SWIG_fail;
36605 }
36606 resultobj = SWIG_Py_Void();
36607 return resultobj;
36608fail:
36609 return NULL;
d55e5bfc
RD
36610}
36611
36612
554f62e9
RD
36613SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36614 PyObject *resultobj = 0;
36615 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36616 void *argp1 = 0 ;
36617 int res1 = 0 ;
36618 PyObject *swig_obj[1] ;
36619
36620 if (!args) SWIG_fail;
36621 swig_obj[0] = args;
36622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36623 if (!SWIG_IsOK(res1)) {
36624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36625 }
36626 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36627 {
36628 PyThreadState* __tstate = wxPyBeginAllowThreads();
36629 (arg1)->Unselect();
36630 wxPyEndAllowThreads(__tstate);
36631 if (PyErr_Occurred()) SWIG_fail;
36632 }
36633 resultobj = SWIG_Py_Void();
36634 return resultobj;
36635fail:
36636 return NULL;
36637}
36638
36639
36640SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36641 PyObject *resultobj = 0;
36642 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36643 wxTreeItemId *arg2 = 0 ;
36644 void *argp1 = 0 ;
36645 int res1 = 0 ;
36646 void *argp2 = 0 ;
36647 int res2 = 0 ;
36648 PyObject * obj0 = 0 ;
36649 PyObject * obj1 = 0 ;
36650 char * kwnames[] = {
36651 (char *) "self",(char *) "item", NULL
36652 };
36653
36654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36656 if (!SWIG_IsOK(res1)) {
36657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36658 }
36659 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36661 if (!SWIG_IsOK(res2)) {
36662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36663 }
36664 if (!argp2) {
36665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36666 }
36667 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36668 {
36669 PyThreadState* __tstate = wxPyBeginAllowThreads();
36670 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36671 wxPyEndAllowThreads(__tstate);
36672 if (PyErr_Occurred()) SWIG_fail;
36673 }
36674 resultobj = SWIG_Py_Void();
36675 return resultobj;
36676fail:
36677 return NULL;
d55e5bfc
RD
36678}
36679
36680
554f62e9
RD
36681SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36682 PyObject *resultobj = 0;
36683 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36684 void *argp1 = 0 ;
36685 int res1 = 0 ;
36686 PyObject *swig_obj[1] ;
36687
36688 if (!args) SWIG_fail;
36689 swig_obj[0] = args;
36690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36691 if (!SWIG_IsOK(res1)) {
36692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36693 }
36694 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36695 {
36696 PyThreadState* __tstate = wxPyBeginAllowThreads();
36697 (arg1)->UnselectAll();
36698 wxPyEndAllowThreads(__tstate);
36699 if (PyErr_Occurred()) SWIG_fail;
36700 }
36701 resultobj = SWIG_Py_Void();
36702 return resultobj;
36703fail:
36704 return NULL;
36705}
36706
36707
36708SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36709 PyObject *resultobj = 0;
36710 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36711 wxTreeItemId *arg2 = 0 ;
36712 bool arg3 = (bool) true ;
36713 void *argp1 = 0 ;
36714 int res1 = 0 ;
36715 void *argp2 = 0 ;
36716 int res2 = 0 ;
36717 bool val3 ;
36718 int ecode3 = 0 ;
36719 PyObject * obj0 = 0 ;
36720 PyObject * obj1 = 0 ;
36721 PyObject * obj2 = 0 ;
36722 char * kwnames[] = {
36723 (char *) "self",(char *) "item",(char *) "select", NULL
36724 };
36725
36726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36728 if (!SWIG_IsOK(res1)) {
36729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36730 }
36731 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36733 if (!SWIG_IsOK(res2)) {
36734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36735 }
36736 if (!argp2) {
36737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36738 }
36739 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36740 if (obj2) {
36741 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36742 if (!SWIG_IsOK(ecode3)) {
36743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36744 }
36745 arg3 = static_cast< bool >(val3);
36746 }
36747 {
36748 PyThreadState* __tstate = wxPyBeginAllowThreads();
36749 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36750 wxPyEndAllowThreads(__tstate);
36751 if (PyErr_Occurred()) SWIG_fail;
36752 }
36753 resultobj = SWIG_Py_Void();
36754 return resultobj;
36755fail:
36756 return NULL;
36757}
36758
36759
36760SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36761 PyObject *resultobj = 0;
36762 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36763 wxTreeItemId *arg2 = 0 ;
36764 void *argp1 = 0 ;
36765 int res1 = 0 ;
36766 void *argp2 = 0 ;
36767 int res2 = 0 ;
36768 PyObject * obj0 = 0 ;
36769 PyObject * obj1 = 0 ;
36770 char * kwnames[] = {
36771 (char *) "self",(char *) "item", NULL
36772 };
36773
36774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36776 if (!SWIG_IsOK(res1)) {
36777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36778 }
36779 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36781 if (!SWIG_IsOK(res2)) {
36782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36783 }
36784 if (!argp2) {
36785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36786 }
36787 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36788 {
36789 PyThreadState* __tstate = wxPyBeginAllowThreads();
36790 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36791 wxPyEndAllowThreads(__tstate);
36792 if (PyErr_Occurred()) SWIG_fail;
36793 }
36794 resultobj = SWIG_Py_Void();
36795 return resultobj;
36796fail:
36797 return NULL;
36798}
36799
36800
36801SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36802 PyObject *resultobj = 0;
36803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36804 wxTreeItemId *arg2 = 0 ;
36805 void *argp1 = 0 ;
36806 int res1 = 0 ;
36807 void *argp2 = 0 ;
36808 int res2 = 0 ;
36809 PyObject * obj0 = 0 ;
36810 PyObject * obj1 = 0 ;
36811 char * kwnames[] = {
36812 (char *) "self",(char *) "item", NULL
36813 };
36814
36815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36817 if (!SWIG_IsOK(res1)) {
36818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36819 }
36820 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36822 if (!SWIG_IsOK(res2)) {
36823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36824 }
36825 if (!argp2) {
36826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36827 }
36828 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36829 {
36830 PyThreadState* __tstate = wxPyBeginAllowThreads();
36831 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36832 wxPyEndAllowThreads(__tstate);
36833 if (PyErr_Occurred()) SWIG_fail;
36834 }
36835 resultobj = SWIG_Py_Void();
36836 return resultobj;
36837fail:
36838 return NULL;
36839}
36840
36841
36842SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36843 PyObject *resultobj = 0;
36844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36845 wxTreeItemId *arg2 = 0 ;
36846 void *argp1 = 0 ;
36847 int res1 = 0 ;
36848 void *argp2 = 0 ;
36849 int res2 = 0 ;
36850 PyObject * obj0 = 0 ;
36851 PyObject * obj1 = 0 ;
36852 char * kwnames[] = {
36853 (char *) "self",(char *) "item", NULL
36854 };
36855
36856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36858 if (!SWIG_IsOK(res1)) {
36859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36860 }
36861 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36863 if (!SWIG_IsOK(res2)) {
36864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36865 }
36866 if (!argp2) {
36867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36868 }
36869 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36870 {
36871 PyThreadState* __tstate = wxPyBeginAllowThreads();
36872 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36873 wxPyEndAllowThreads(__tstate);
36874 if (PyErr_Occurred()) SWIG_fail;
36875 }
36876 resultobj = SWIG_Py_Void();
36877 return resultobj;
36878fail:
36879 return NULL;
36880}
36881
36882
36883SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36884 PyObject *resultobj = 0;
36885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36886 wxTreeItemId *arg2 = 0 ;
36887 void *argp1 = 0 ;
36888 int res1 = 0 ;
36889 void *argp2 = 0 ;
36890 int res2 = 0 ;
36891 PyObject * obj0 = 0 ;
36892 PyObject * obj1 = 0 ;
36893 char * kwnames[] = {
36894 (char *) "self",(char *) "item", NULL
36895 };
36896
36897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36899 if (!SWIG_IsOK(res1)) {
36900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36901 }
36902 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36903 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36904 if (!SWIG_IsOK(res2)) {
36905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36906 }
36907 if (!argp2) {
36908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36909 }
36910 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36911 {
36912 PyThreadState* __tstate = wxPyBeginAllowThreads();
36913 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36914 wxPyEndAllowThreads(__tstate);
36915 if (PyErr_Occurred()) SWIG_fail;
36916 }
36917 resultobj = SWIG_Py_Void();
36918 return resultobj;
36919fail:
36920 return NULL;
d55e5bfc
RD
36921}
36922
36923
554f62e9
RD
36924SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36925 PyObject *resultobj = 0;
36926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36927 wxTextCtrl *result = 0 ;
36928 void *argp1 = 0 ;
36929 int res1 = 0 ;
36930 PyObject *swig_obj[1] ;
36931
36932 if (!args) SWIG_fail;
36933 swig_obj[0] = args;
36934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36935 if (!SWIG_IsOK(res1)) {
36936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36937 }
36938 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36939 {
36940 PyThreadState* __tstate = wxPyBeginAllowThreads();
36941 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36942 wxPyEndAllowThreads(__tstate);
36943 if (PyErr_Occurred()) SWIG_fail;
36944 }
36945 {
36946 resultobj = wxPyMake_wxObject(result, 0);
36947 }
36948 return resultobj;
36949fail:
36950 return NULL;
36951}
36952
36953
36954SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36955 PyObject *resultobj = 0;
36956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36957 wxTreeItemId *arg2 = 0 ;
36958 bool arg3 = (bool) false ;
36959 void *argp1 = 0 ;
36960 int res1 = 0 ;
36961 void *argp2 = 0 ;
36962 int res2 = 0 ;
36963 bool val3 ;
36964 int ecode3 = 0 ;
36965 PyObject * obj0 = 0 ;
36966 PyObject * obj1 = 0 ;
36967 PyObject * obj2 = 0 ;
36968 char * kwnames[] = {
36969 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36970 };
36971
36972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36974 if (!SWIG_IsOK(res1)) {
36975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36976 }
36977 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36979 if (!SWIG_IsOK(res2)) {
36980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36981 }
36982 if (!argp2) {
36983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36984 }
36985 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36986 if (obj2) {
36987 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36988 if (!SWIG_IsOK(ecode3)) {
36989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36990 }
36991 arg3 = static_cast< bool >(val3);
36992 }
36993 {
36994 PyThreadState* __tstate = wxPyBeginAllowThreads();
36995 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36996 wxPyEndAllowThreads(__tstate);
36997 if (PyErr_Occurred()) SWIG_fail;
36998 }
36999 resultobj = SWIG_Py_Void();
37000 return resultobj;
37001fail:
37002 return NULL;
37003}
37004
37005
37006SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37007 PyObject *resultobj = 0;
37008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37009 wxTreeItemId *arg2 = 0 ;
37010 void *argp1 = 0 ;
37011 int res1 = 0 ;
37012 void *argp2 = 0 ;
37013 int res2 = 0 ;
37014 PyObject * obj0 = 0 ;
37015 PyObject * obj1 = 0 ;
37016 char * kwnames[] = {
37017 (char *) "self",(char *) "item", NULL
37018 };
37019
37020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37022 if (!SWIG_IsOK(res1)) {
37023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37024 }
37025 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37027 if (!SWIG_IsOK(res2)) {
37028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37029 }
37030 if (!argp2) {
37031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37032 }
37033 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37034 {
37035 PyThreadState* __tstate = wxPyBeginAllowThreads();
37036 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37037 wxPyEndAllowThreads(__tstate);
37038 if (PyErr_Occurred()) SWIG_fail;
37039 }
37040 resultobj = SWIG_Py_Void();
37041 return resultobj;
37042fail:
37043 return NULL;
37044}
37045
37046
37047SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37048 PyObject *resultobj = 0;
37049 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37050 wxPoint *arg2 = 0 ;
37051 int *arg3 = 0 ;
37052 wxTreeItemId result;
37053 void *argp1 = 0 ;
37054 int res1 = 0 ;
37055 wxPoint temp2 ;
37056 int temp3 ;
37057 int res3 = SWIG_TMPOBJ ;
37058 PyObject * obj0 = 0 ;
37059 PyObject * obj1 = 0 ;
37060 char * kwnames[] = {
37061 (char *) "self",(char *) "point", NULL
37062 };
37063
37064 arg3 = &temp3;
37065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37067 if (!SWIG_IsOK(res1)) {
37068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37069 }
37070 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37071 {
37072 arg2 = &temp2;
37073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37074 }
37075 {
37076 PyThreadState* __tstate = wxPyBeginAllowThreads();
37077 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37078 wxPyEndAllowThreads(__tstate);
37079 if (PyErr_Occurred()) SWIG_fail;
37080 }
37081 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37082 if (SWIG_IsTmpObj(res3)) {
37083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37084 } else {
37085 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37087 }
37088 return resultobj;
37089fail:
37090 return NULL;
37091}
37092
37093
37094SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37095 PyObject *resultobj = 0;
37096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37097 wxTreeItemId *arg2 = 0 ;
37098 bool arg3 = (bool) false ;
37099 PyObject *result = 0 ;
37100 void *argp1 = 0 ;
37101 int res1 = 0 ;
37102 void *argp2 = 0 ;
37103 int res2 = 0 ;
37104 bool val3 ;
37105 int ecode3 = 0 ;
37106 PyObject * obj0 = 0 ;
37107 PyObject * obj1 = 0 ;
37108 PyObject * obj2 = 0 ;
37109 char * kwnames[] = {
37110 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37111 };
37112
37113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37115 if (!SWIG_IsOK(res1)) {
37116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37117 }
37118 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37120 if (!SWIG_IsOK(res2)) {
37121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37122 }
37123 if (!argp2) {
37124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37125 }
37126 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37127 if (obj2) {
37128 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37129 if (!SWIG_IsOK(ecode3)) {
37130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37131 }
37132 arg3 = static_cast< bool >(val3);
37133 }
37134 {
37135 PyThreadState* __tstate = wxPyBeginAllowThreads();
37136 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37137 wxPyEndAllowThreads(__tstate);
37138 if (PyErr_Occurred()) SWIG_fail;
37139 }
37140 resultobj = result;
37141 return resultobj;
37142fail:
37143 return NULL;
37144}
37145
37146
37147SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37148 PyObject *resultobj = 0;
37149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37150 wxTreeItemId *arg2 = 0 ;
37151 int arg3 ;
37152 void *argp1 = 0 ;
37153 int res1 = 0 ;
37154 void *argp2 = 0 ;
37155 int res2 = 0 ;
37156 int val3 ;
37157 int ecode3 = 0 ;
37158 PyObject * obj0 = 0 ;
37159 PyObject * obj1 = 0 ;
37160 PyObject * obj2 = 0 ;
37161 char * kwnames[] = {
37162 (char *) "self",(char *) "node",(char *) "state", NULL
37163 };
37164
37165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37167 if (!SWIG_IsOK(res1)) {
37168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37169 }
37170 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37172 if (!SWIG_IsOK(res2)) {
37173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37174 }
37175 if (!argp2) {
37176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37177 }
37178 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37179 ecode3 = SWIG_AsVal_int(obj2, &val3);
37180 if (!SWIG_IsOK(ecode3)) {
37181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37182 }
37183 arg3 = static_cast< int >(val3);
37184 {
37185 PyThreadState* __tstate = wxPyBeginAllowThreads();
37186 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37187 wxPyEndAllowThreads(__tstate);
37188 if (PyErr_Occurred()) SWIG_fail;
37189 }
37190 resultobj = SWIG_Py_Void();
37191 return resultobj;
37192fail:
37193 return NULL;
37194}
37195
37196
37197SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37198 PyObject *resultobj = 0;
37199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37200 wxTreeItemId *arg2 = 0 ;
37201 int result;
37202 void *argp1 = 0 ;
37203 int res1 = 0 ;
37204 void *argp2 = 0 ;
37205 int res2 = 0 ;
37206 PyObject * obj0 = 0 ;
37207 PyObject * obj1 = 0 ;
37208 char * kwnames[] = {
37209 (char *) "self",(char *) "node", NULL
37210 };
37211
37212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37214 if (!SWIG_IsOK(res1)) {
37215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37216 }
37217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37219 if (!SWIG_IsOK(res2)) {
37220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37221 }
37222 if (!argp2) {
37223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37224 }
37225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37226 {
37227 PyThreadState* __tstate = wxPyBeginAllowThreads();
37228 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37229 wxPyEndAllowThreads(__tstate);
37230 if (PyErr_Occurred()) SWIG_fail;
37231 }
37232 resultobj = SWIG_From_int(static_cast< int >(result));
37233 return resultobj;
37234fail:
37235 return NULL;
37236}
37237
37238
37239SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37240 PyObject *resultobj = 0;
37241 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37242 SwigValueWrapper<wxVisualAttributes > result;
37243 int val1 ;
37244 int ecode1 = 0 ;
37245 PyObject * obj0 = 0 ;
37246 char * kwnames[] = {
37247 (char *) "variant", NULL
37248 };
37249
37250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37251 if (obj0) {
37252 ecode1 = SWIG_AsVal_int(obj0, &val1);
37253 if (!SWIG_IsOK(ecode1)) {
37254 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37255 }
37256 arg1 = static_cast< wxWindowVariant >(val1);
37257 }
37258 {
37259 if (!wxPyCheckForApp()) SWIG_fail;
37260 PyThreadState* __tstate = wxPyBeginAllowThreads();
37261 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37262 wxPyEndAllowThreads(__tstate);
37263 if (PyErr_Occurred()) SWIG_fail;
37264 }
37265 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37266 return resultobj;
37267fail:
37268 return NULL;
d55e5bfc
RD
37269}
37270
37271
2131d850
RD
37272SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37273 PyObject *resultobj = 0;
37274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37275 bool arg2 ;
37276 void *argp1 = 0 ;
37277 int res1 = 0 ;
37278 bool val2 ;
37279 int ecode2 = 0 ;
37280 PyObject * obj0 = 0 ;
37281 PyObject * obj1 = 0 ;
37282 char * kwnames[] = {
37283 (char *) "self",(char *) "q", NULL
37284 };
37285
37286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37288 if (!SWIG_IsOK(res1)) {
37289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37290 }
37291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37292 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37293 if (!SWIG_IsOK(ecode2)) {
37294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37295 }
37296 arg2 = static_cast< bool >(val2);
37297 {
37298 PyThreadState* __tstate = wxPyBeginAllowThreads();
37299 (arg1)->SetQuickBestSize(arg2);
37300 wxPyEndAllowThreads(__tstate);
37301 if (PyErr_Occurred()) SWIG_fail;
37302 }
37303 resultobj = SWIG_Py_Void();
37304 return resultobj;
37305fail:
37306 return NULL;
37307}
37308
37309
37310SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37311 PyObject *resultobj = 0;
37312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37313 bool result;
37314 void *argp1 = 0 ;
37315 int res1 = 0 ;
37316 PyObject *swig_obj[1] ;
37317
37318 if (!args) SWIG_fail;
37319 swig_obj[0] = args;
37320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37321 if (!SWIG_IsOK(res1)) {
37322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37323 }
37324 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37325 {
37326 PyThreadState* __tstate = wxPyBeginAllowThreads();
37327 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37328 wxPyEndAllowThreads(__tstate);
37329 if (PyErr_Occurred()) SWIG_fail;
37330 }
37331 {
37332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37333 }
37334 return resultobj;
37335fail:
37336 return NULL;
37337}
37338
37339
554f62e9
RD
37340SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37341 PyObject *obj;
37342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37343 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37344 return SWIG_Py_Void();
d55e5bfc
RD
37345}
37346
554f62e9
RD
37347SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37348 return SWIG_Python_InitShadowInstance(args);
37349}
d55e5bfc 37350
554f62e9
RD
37351SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37352 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37353 return 1;
d55e5bfc
RD
37354}
37355
37356
554f62e9
RD
37357SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37358 PyObject *pyobj = 0;
37359
37360 {
d55e5bfc 37361#if wxUSE_UNICODE
554f62e9 37362 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37363#else
554f62e9 37364 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37365#endif
554f62e9
RD
37366 }
37367 return pyobj;
37368}
37369
37370
37371SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37372 PyObject *resultobj = 0;
37373 wxWindow *arg1 = (wxWindow *) 0 ;
37374 int arg2 = (int) (int)-1 ;
37375 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37376 wxString *arg3 = (wxString *) &arg3_defvalue ;
37377 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37378 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37379 wxSize const &arg5_defvalue = wxDefaultSize ;
37380 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37381 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37382 wxString const &arg7_defvalue = wxPyEmptyString ;
37383 wxString *arg7 = (wxString *) &arg7_defvalue ;
37384 int arg8 = (int) 0 ;
37385 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37386 wxString *arg9 = (wxString *) &arg9_defvalue ;
37387 wxGenericDirCtrl *result = 0 ;
37388 void *argp1 = 0 ;
37389 int res1 = 0 ;
37390 int val2 ;
37391 int ecode2 = 0 ;
37392 bool temp3 = false ;
37393 wxPoint temp4 ;
37394 wxSize temp5 ;
37395 long val6 ;
37396 int ecode6 = 0 ;
37397 bool temp7 = false ;
37398 int val8 ;
37399 int ecode8 = 0 ;
37400 bool temp9 = false ;
37401 PyObject * obj0 = 0 ;
37402 PyObject * obj1 = 0 ;
37403 PyObject * obj2 = 0 ;
37404 PyObject * obj3 = 0 ;
37405 PyObject * obj4 = 0 ;
37406 PyObject * obj5 = 0 ;
37407 PyObject * obj6 = 0 ;
37408 PyObject * obj7 = 0 ;
37409 PyObject * obj8 = 0 ;
37410 char * kwnames[] = {
37411 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37412 };
37413
37414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37416 if (!SWIG_IsOK(res1)) {
37417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37418 }
37419 arg1 = reinterpret_cast< wxWindow * >(argp1);
37420 if (obj1) {
37421 ecode2 = SWIG_AsVal_int(obj1, &val2);
37422 if (!SWIG_IsOK(ecode2)) {
37423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37424 }
37425 arg2 = static_cast< int >(val2);
37426 }
37427 if (obj2) {
093d3ff1 37428 {
554f62e9
RD
37429 arg3 = wxString_in_helper(obj2);
37430 if (arg3 == NULL) SWIG_fail;
37431 temp3 = true;
093d3ff1 37432 }
554f62e9
RD
37433 }
37434 if (obj3) {
093d3ff1 37435 {
554f62e9
RD
37436 arg4 = &temp4;
37437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37438 }
554f62e9
RD
37439 }
37440 if (obj4) {
d55e5bfc 37441 {
554f62e9
RD
37442 arg5 = &temp5;
37443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 37444 }
554f62e9
RD
37445 }
37446 if (obj5) {
37447 ecode6 = SWIG_AsVal_long(obj5, &val6);
37448 if (!SWIG_IsOK(ecode6)) {
37449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37450 }
37451 arg6 = static_cast< long >(val6);
37452 }
37453 if (obj6) {
d55e5bfc 37454 {
554f62e9
RD
37455 arg7 = wxString_in_helper(obj6);
37456 if (arg7 == NULL) SWIG_fail;
37457 temp7 = true;
d55e5bfc 37458 }
554f62e9
RD
37459 }
37460 if (obj7) {
37461 ecode8 = SWIG_AsVal_int(obj7, &val8);
37462 if (!SWIG_IsOK(ecode8)) {
37463 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37464 }
37465 arg8 = static_cast< int >(val8);
37466 }
37467 if (obj8) {
d55e5bfc 37468 {
554f62e9
RD
37469 arg9 = wxString_in_helper(obj8);
37470 if (arg9 == NULL) SWIG_fail;
37471 temp9 = true;
d55e5bfc 37472 }
554f62e9
RD
37473 }
37474 {
37475 if (!wxPyCheckForApp()) SWIG_fail;
37476 PyThreadState* __tstate = wxPyBeginAllowThreads();
37477 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37478 wxPyEndAllowThreads(__tstate);
37479 if (PyErr_Occurred()) SWIG_fail;
37480 }
37481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37482 {
37483 if (temp3)
37484 delete arg3;
37485 }
37486 {
37487 if (temp7)
37488 delete arg7;
37489 }
37490 {
37491 if (temp9)
37492 delete arg9;
37493 }
37494 return resultobj;
37495fail:
37496 {
37497 if (temp3)
37498 delete arg3;
37499 }
37500 {
37501 if (temp7)
37502 delete arg7;
37503 }
37504 {
37505 if (temp9)
37506 delete arg9;
37507 }
37508 return NULL;
d55e5bfc
RD
37509}
37510
37511
554f62e9
RD
37512SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37513 PyObject *resultobj = 0;
37514 wxGenericDirCtrl *result = 0 ;
37515
37516 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37517 {
37518 if (!wxPyCheckForApp()) SWIG_fail;
37519 PyThreadState* __tstate = wxPyBeginAllowThreads();
37520 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37521 wxPyEndAllowThreads(__tstate);
37522 if (PyErr_Occurred()) SWIG_fail;
37523 }
37524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37525 return resultobj;
37526fail:
37527 return NULL;
37528}
37529
37530
37531SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37532 PyObject *resultobj = 0;
37533 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37534 wxWindow *arg2 = (wxWindow *) 0 ;
37535 int arg3 = (int) (int)-1 ;
37536 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37537 wxString *arg4 = (wxString *) &arg4_defvalue ;
37538 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37539 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37540 wxSize const &arg6_defvalue = wxDefaultSize ;
37541 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37542 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37543 wxString const &arg8_defvalue = wxPyEmptyString ;
37544 wxString *arg8 = (wxString *) &arg8_defvalue ;
37545 int arg9 = (int) 0 ;
37546 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37547 wxString *arg10 = (wxString *) &arg10_defvalue ;
37548 bool result;
37549 void *argp1 = 0 ;
37550 int res1 = 0 ;
37551 void *argp2 = 0 ;
37552 int res2 = 0 ;
37553 int val3 ;
37554 int ecode3 = 0 ;
37555 bool temp4 = false ;
37556 wxPoint temp5 ;
37557 wxSize temp6 ;
37558 long val7 ;
37559 int ecode7 = 0 ;
37560 bool temp8 = false ;
37561 int val9 ;
37562 int ecode9 = 0 ;
37563 bool temp10 = false ;
37564 PyObject * obj0 = 0 ;
37565 PyObject * obj1 = 0 ;
37566 PyObject * obj2 = 0 ;
37567 PyObject * obj3 = 0 ;
37568 PyObject * obj4 = 0 ;
37569 PyObject * obj5 = 0 ;
37570 PyObject * obj6 = 0 ;
37571 PyObject * obj7 = 0 ;
37572 PyObject * obj8 = 0 ;
37573 PyObject * obj9 = 0 ;
37574 char * kwnames[] = {
37575 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37576 };
37577
37578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37580 if (!SWIG_IsOK(res1)) {
37581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37582 }
37583 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37585 if (!SWIG_IsOK(res2)) {
37586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37587 }
37588 arg2 = reinterpret_cast< wxWindow * >(argp2);
37589 if (obj2) {
37590 ecode3 = SWIG_AsVal_int(obj2, &val3);
37591 if (!SWIG_IsOK(ecode3)) {
37592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37593 }
37594 arg3 = static_cast< int >(val3);
37595 }
37596 if (obj3) {
d55e5bfc 37597 {
554f62e9
RD
37598 arg4 = wxString_in_helper(obj3);
37599 if (arg4 == NULL) SWIG_fail;
37600 temp4 = true;
d55e5bfc 37601 }
554f62e9
RD
37602 }
37603 if (obj4) {
093d3ff1 37604 {
554f62e9
RD
37605 arg5 = &temp5;
37606 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37607 }
554f62e9
RD
37608 }
37609 if (obj5) {
d55e5bfc 37610 {
554f62e9
RD
37611 arg6 = &temp6;
37612 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37613 }
554f62e9
RD
37614 }
37615 if (obj6) {
37616 ecode7 = SWIG_AsVal_long(obj6, &val7);
37617 if (!SWIG_IsOK(ecode7)) {
37618 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37619 }
37620 arg7 = static_cast< long >(val7);
37621 }
37622 if (obj7) {
d55e5bfc 37623 {
554f62e9
RD
37624 arg8 = wxString_in_helper(obj7);
37625 if (arg8 == NULL) SWIG_fail;
37626 temp8 = true;
d55e5bfc 37627 }
554f62e9
RD
37628 }
37629 if (obj8) {
37630 ecode9 = SWIG_AsVal_int(obj8, &val9);
37631 if (!SWIG_IsOK(ecode9)) {
37632 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37633 }
37634 arg9 = static_cast< int >(val9);
37635 }
37636 if (obj9) {
d55e5bfc 37637 {
554f62e9
RD
37638 arg10 = wxString_in_helper(obj9);
37639 if (arg10 == NULL) SWIG_fail;
37640 temp10 = true;
d55e5bfc 37641 }
554f62e9
RD
37642 }
37643 {
37644 PyThreadState* __tstate = wxPyBeginAllowThreads();
37645 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37646 wxPyEndAllowThreads(__tstate);
37647 if (PyErr_Occurred()) SWIG_fail;
37648 }
37649 {
37650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37651 }
37652 {
37653 if (temp4)
37654 delete arg4;
37655 }
37656 {
37657 if (temp8)
37658 delete arg8;
37659 }
37660 {
37661 if (temp10)
37662 delete arg10;
37663 }
37664 return resultobj;
37665fail:
37666 {
37667 if (temp4)
37668 delete arg4;
37669 }
37670 {
37671 if (temp8)
37672 delete arg8;
37673 }
37674 {
37675 if (temp10)
37676 delete arg10;
37677 }
37678 return NULL;
37679}
37680
37681
37682SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37683 PyObject *resultobj = 0;
37684 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37685 wxString *arg2 = 0 ;
37686 bool result;
37687 void *argp1 = 0 ;
37688 int res1 = 0 ;
37689 bool temp2 = false ;
37690 PyObject * obj0 = 0 ;
37691 PyObject * obj1 = 0 ;
37692 char * kwnames[] = {
37693 (char *) "self",(char *) "path", NULL
37694 };
37695
37696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37698 if (!SWIG_IsOK(res1)) {
37699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37700 }
37701 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37702 {
37703 arg2 = wxString_in_helper(obj1);
37704 if (arg2 == NULL) SWIG_fail;
37705 temp2 = true;
37706 }
37707 {
37708 PyThreadState* __tstate = wxPyBeginAllowThreads();
37709 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37710 wxPyEndAllowThreads(__tstate);
37711 if (PyErr_Occurred()) SWIG_fail;
37712 }
37713 {
37714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37715 }
37716 {
37717 if (temp2)
37718 delete arg2;
37719 }
37720 return resultobj;
37721fail:
37722 {
37723 if (temp2)
37724 delete arg2;
37725 }
37726 return NULL;
d55e5bfc
RD
37727}
37728
37729
704eda0c
RD
37730SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37731 PyObject *resultobj = 0;
37732 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37733 wxString *arg2 = 0 ;
37734 bool result;
37735 void *argp1 = 0 ;
37736 int res1 = 0 ;
37737 bool temp2 = false ;
37738 PyObject * obj0 = 0 ;
37739 PyObject * obj1 = 0 ;
37740 char * kwnames[] = {
37741 (char *) "self",(char *) "path", NULL
37742 };
37743
37744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37746 if (!SWIG_IsOK(res1)) {
37747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37748 }
37749 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37750 {
37751 arg2 = wxString_in_helper(obj1);
37752 if (arg2 == NULL) SWIG_fail;
37753 temp2 = true;
37754 }
37755 {
37756 PyThreadState* __tstate = wxPyBeginAllowThreads();
37757 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37758 wxPyEndAllowThreads(__tstate);
37759 if (PyErr_Occurred()) SWIG_fail;
37760 }
37761 {
37762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37763 }
37764 {
37765 if (temp2)
37766 delete arg2;
37767 }
37768 return resultobj;
37769fail:
37770 {
37771 if (temp2)
37772 delete arg2;
37773 }
37774 return NULL;
37775}
37776
37777
554f62e9
RD
37778SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37779 PyObject *resultobj = 0;
37780 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37781 wxString result;
37782 void *argp1 = 0 ;
37783 int res1 = 0 ;
37784 PyObject *swig_obj[1] ;
37785
37786 if (!args) SWIG_fail;
37787 swig_obj[0] = args;
37788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37789 if (!SWIG_IsOK(res1)) {
37790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37791 }
37792 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37793 {
37794 PyThreadState* __tstate = wxPyBeginAllowThreads();
37795 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37796 wxPyEndAllowThreads(__tstate);
37797 if (PyErr_Occurred()) SWIG_fail;
37798 }
37799 {
37800#if wxUSE_UNICODE
37801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37802#else
37803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37804#endif
37805 }
37806 return resultobj;
37807fail:
37808 return NULL;
37809}
37810
37811
37812SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37813 PyObject *resultobj = 0;
37814 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37815 wxString *arg2 = 0 ;
37816 void *argp1 = 0 ;
37817 int res1 = 0 ;
37818 bool temp2 = false ;
37819 PyObject * obj0 = 0 ;
37820 PyObject * obj1 = 0 ;
37821 char * kwnames[] = {
37822 (char *) "self",(char *) "path", NULL
37823 };
37824
37825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37827 if (!SWIG_IsOK(res1)) {
37828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37829 }
37830 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37831 {
37832 arg2 = wxString_in_helper(obj1);
37833 if (arg2 == NULL) SWIG_fail;
37834 temp2 = true;
37835 }
37836 {
37837 PyThreadState* __tstate = wxPyBeginAllowThreads();
37838 (arg1)->SetDefaultPath((wxString const &)*arg2);
37839 wxPyEndAllowThreads(__tstate);
37840 if (PyErr_Occurred()) SWIG_fail;
37841 }
37842 resultobj = SWIG_Py_Void();
37843 {
37844 if (temp2)
37845 delete arg2;
37846 }
37847 return resultobj;
37848fail:
37849 {
37850 if (temp2)
37851 delete arg2;
37852 }
37853 return NULL;
d55e5bfc
RD
37854}
37855
37856
554f62e9
RD
37857SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37858 PyObject *resultobj = 0;
37859 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37860 wxString result;
37861 void *argp1 = 0 ;
37862 int res1 = 0 ;
37863 PyObject *swig_obj[1] ;
37864
37865 if (!args) SWIG_fail;
37866 swig_obj[0] = args;
37867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37868 if (!SWIG_IsOK(res1)) {
37869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37870 }
37871 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37872 {
37873 PyThreadState* __tstate = wxPyBeginAllowThreads();
37874 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37875 wxPyEndAllowThreads(__tstate);
37876 if (PyErr_Occurred()) SWIG_fail;
37877 }
37878 {
37879#if wxUSE_UNICODE
37880 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37881#else
37882 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37883#endif
37884 }
37885 return resultobj;
37886fail:
37887 return NULL;
d55e5bfc
RD
37888}
37889
37890
554f62e9
RD
37891SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37892 PyObject *resultobj = 0;
37893 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37894 wxString result;
37895 void *argp1 = 0 ;
37896 int res1 = 0 ;
37897 PyObject *swig_obj[1] ;
37898
37899 if (!args) SWIG_fail;
37900 swig_obj[0] = args;
37901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37902 if (!SWIG_IsOK(res1)) {
37903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37904 }
37905 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37906 {
37907 PyThreadState* __tstate = wxPyBeginAllowThreads();
37908 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37909 wxPyEndAllowThreads(__tstate);
37910 if (PyErr_Occurred()) SWIG_fail;
37911 }
37912 {
37913#if wxUSE_UNICODE
37914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37915#else
37916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37917#endif
37918 }
37919 return resultobj;
37920fail:
37921 return NULL;
37922}
37923
37924
37925SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37926 PyObject *resultobj = 0;
37927 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37928 wxString *arg2 = 0 ;
37929 void *argp1 = 0 ;
37930 int res1 = 0 ;
37931 bool temp2 = false ;
37932 PyObject * obj0 = 0 ;
37933 PyObject * obj1 = 0 ;
37934 char * kwnames[] = {
37935 (char *) "self",(char *) "path", NULL
37936 };
37937
37938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37940 if (!SWIG_IsOK(res1)) {
37941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37942 }
37943 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37944 {
37945 arg2 = wxString_in_helper(obj1);
37946 if (arg2 == NULL) SWIG_fail;
37947 temp2 = true;
37948 }
37949 {
37950 PyThreadState* __tstate = wxPyBeginAllowThreads();
37951 (arg1)->SetPath((wxString const &)*arg2);
37952 wxPyEndAllowThreads(__tstate);
37953 if (PyErr_Occurred()) SWIG_fail;
37954 }
37955 resultobj = SWIG_Py_Void();
37956 {
37957 if (temp2)
37958 delete arg2;
37959 }
37960 return resultobj;
37961fail:
37962 {
37963 if (temp2)
37964 delete arg2;
37965 }
37966 return NULL;
37967}
37968
37969
37970SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37971 PyObject *resultobj = 0;
37972 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37973 bool arg2 ;
37974 void *argp1 = 0 ;
37975 int res1 = 0 ;
37976 bool val2 ;
37977 int ecode2 = 0 ;
37978 PyObject * obj0 = 0 ;
37979 PyObject * obj1 = 0 ;
37980 char * kwnames[] = {
37981 (char *) "self",(char *) "show", NULL
37982 };
37983
37984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37986 if (!SWIG_IsOK(res1)) {
37987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37988 }
37989 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37990 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37991 if (!SWIG_IsOK(ecode2)) {
37992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37993 }
37994 arg2 = static_cast< bool >(val2);
37995 {
37996 PyThreadState* __tstate = wxPyBeginAllowThreads();
37997 (arg1)->ShowHidden(arg2);
37998 wxPyEndAllowThreads(__tstate);
37999 if (PyErr_Occurred()) SWIG_fail;
38000 }
38001 resultobj = SWIG_Py_Void();
38002 return resultobj;
38003fail:
38004 return NULL;
d55e5bfc
RD
38005}
38006
38007
554f62e9
RD
38008SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38009 PyObject *resultobj = 0;
38010 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38011 bool result;
38012 void *argp1 = 0 ;
38013 int res1 = 0 ;
38014 PyObject *swig_obj[1] ;
38015
38016 if (!args) SWIG_fail;
38017 swig_obj[0] = args;
38018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38019 if (!SWIG_IsOK(res1)) {
38020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38021 }
38022 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38023 {
38024 PyThreadState* __tstate = wxPyBeginAllowThreads();
38025 result = (bool)(arg1)->GetShowHidden();
38026 wxPyEndAllowThreads(__tstate);
38027 if (PyErr_Occurred()) SWIG_fail;
38028 }
38029 {
38030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38031 }
38032 return resultobj;
38033fail:
38034 return NULL;
d55e5bfc
RD
38035}
38036
38037
554f62e9
RD
38038SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38039 PyObject *resultobj = 0;
38040 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38041 wxString result;
38042 void *argp1 = 0 ;
38043 int res1 = 0 ;
38044 PyObject *swig_obj[1] ;
38045
38046 if (!args) SWIG_fail;
38047 swig_obj[0] = args;
38048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38049 if (!SWIG_IsOK(res1)) {
38050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38051 }
38052 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38053 {
38054 PyThreadState* __tstate = wxPyBeginAllowThreads();
38055 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38056 wxPyEndAllowThreads(__tstate);
38057 if (PyErr_Occurred()) SWIG_fail;
38058 }
38059 {
38060#if wxUSE_UNICODE
38061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38062#else
38063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38064#endif
38065 }
38066 return resultobj;
38067fail:
38068 return NULL;
38069}
38070
38071
38072SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38073 PyObject *resultobj = 0;
38074 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38075 wxString *arg2 = 0 ;
38076 void *argp1 = 0 ;
38077 int res1 = 0 ;
38078 bool temp2 = false ;
38079 PyObject * obj0 = 0 ;
38080 PyObject * obj1 = 0 ;
38081 char * kwnames[] = {
38082 (char *) "self",(char *) "filter", NULL
38083 };
38084
38085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38087 if (!SWIG_IsOK(res1)) {
38088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38089 }
38090 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38091 {
38092 arg2 = wxString_in_helper(obj1);
38093 if (arg2 == NULL) SWIG_fail;
38094 temp2 = true;
38095 }
38096 {
38097 PyThreadState* __tstate = wxPyBeginAllowThreads();
38098 (arg1)->SetFilter((wxString const &)*arg2);
38099 wxPyEndAllowThreads(__tstate);
38100 if (PyErr_Occurred()) SWIG_fail;
38101 }
38102 resultobj = SWIG_Py_Void();
38103 {
38104 if (temp2)
38105 delete arg2;
38106 }
38107 return resultobj;
38108fail:
38109 {
38110 if (temp2)
38111 delete arg2;
38112 }
38113 return NULL;
d55e5bfc
RD
38114}
38115
38116
554f62e9
RD
38117SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38118 PyObject *resultobj = 0;
38119 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38120 int result;
38121 void *argp1 = 0 ;
38122 int res1 = 0 ;
38123 PyObject *swig_obj[1] ;
38124
38125 if (!args) SWIG_fail;
38126 swig_obj[0] = args;
38127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38128 if (!SWIG_IsOK(res1)) {
38129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38130 }
38131 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38132 {
38133 PyThreadState* __tstate = wxPyBeginAllowThreads();
38134 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38135 wxPyEndAllowThreads(__tstate);
38136 if (PyErr_Occurred()) SWIG_fail;
38137 }
38138 resultobj = SWIG_From_int(static_cast< int >(result));
38139 return resultobj;
38140fail:
38141 return NULL;
38142}
38143
38144
38145SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38146 PyObject *resultobj = 0;
38147 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38148 int arg2 ;
38149 void *argp1 = 0 ;
38150 int res1 = 0 ;
38151 int val2 ;
38152 int ecode2 = 0 ;
38153 PyObject * obj0 = 0 ;
38154 PyObject * obj1 = 0 ;
38155 char * kwnames[] = {
38156 (char *) "self",(char *) "n", NULL
38157 };
38158
38159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38161 if (!SWIG_IsOK(res1)) {
38162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38163 }
38164 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38165 ecode2 = SWIG_AsVal_int(obj1, &val2);
38166 if (!SWIG_IsOK(ecode2)) {
38167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38168 }
38169 arg2 = static_cast< int >(val2);
38170 {
38171 PyThreadState* __tstate = wxPyBeginAllowThreads();
38172 (arg1)->SetFilterIndex(arg2);
38173 wxPyEndAllowThreads(__tstate);
38174 if (PyErr_Occurred()) SWIG_fail;
38175 }
38176 resultobj = SWIG_Py_Void();
38177 return resultobj;
38178fail:
38179 return NULL;
d55e5bfc
RD
38180}
38181
38182
554f62e9
RD
38183SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38184 PyObject *resultobj = 0;
38185 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38186 wxTreeItemId result;
38187 void *argp1 = 0 ;
38188 int res1 = 0 ;
38189 PyObject *swig_obj[1] ;
38190
38191 if (!args) SWIG_fail;
38192 swig_obj[0] = args;
38193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38194 if (!SWIG_IsOK(res1)) {
38195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38196 }
38197 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38198 {
38199 PyThreadState* __tstate = wxPyBeginAllowThreads();
38200 result = (arg1)->GetRootId();
38201 wxPyEndAllowThreads(__tstate);
38202 if (PyErr_Occurred()) SWIG_fail;
38203 }
38204 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38205 return resultobj;
38206fail:
38207 return NULL;
d55e5bfc
RD
38208}
38209
38210
554f62e9
RD
38211SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38212 PyObject *resultobj = 0;
38213 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38214 wxPyTreeCtrl *result = 0 ;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 PyObject *swig_obj[1] ;
38218
38219 if (!args) SWIG_fail;
38220 swig_obj[0] = args;
38221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38222 if (!SWIG_IsOK(res1)) {
38223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38224 }
38225 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38226 {
38227 PyThreadState* __tstate = wxPyBeginAllowThreads();
38228 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38229 wxPyEndAllowThreads(__tstate);
38230 if (PyErr_Occurred()) SWIG_fail;
38231 }
38232 {
38233 resultobj = wxPyMake_wxObject(result, 0);
38234 }
38235 return resultobj;
38236fail:
38237 return NULL;
d55e5bfc
RD
38238}
38239
38240
554f62e9
RD
38241SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38242 PyObject *resultobj = 0;
38243 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38244 wxDirFilterListCtrl *result = 0 ;
38245 void *argp1 = 0 ;
38246 int res1 = 0 ;
38247 PyObject *swig_obj[1] ;
38248
38249 if (!args) SWIG_fail;
38250 swig_obj[0] = args;
38251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38252 if (!SWIG_IsOK(res1)) {
38253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38254 }
38255 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38256 {
38257 PyThreadState* __tstate = wxPyBeginAllowThreads();
38258 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38259 wxPyEndAllowThreads(__tstate);
38260 if (PyErr_Occurred()) SWIG_fail;
38261 }
38262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38263 return resultobj;
38264fail:
38265 return NULL;
38266}
38267
38268
38269SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38270 PyObject *resultobj = 0;
38271 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38272 wxTreeItemId arg2 ;
38273 wxString *arg3 = 0 ;
38274 bool *arg4 = 0 ;
38275 wxTreeItemId result;
38276 void *argp1 = 0 ;
38277 int res1 = 0 ;
38278 void *argp2 ;
38279 int res2 = 0 ;
38280 bool temp3 = false ;
38281 bool temp4 ;
38282 int res4 = SWIG_TMPOBJ ;
38283 PyObject * obj0 = 0 ;
38284 PyObject * obj1 = 0 ;
38285 PyObject * obj2 = 0 ;
38286 char * kwnames[] = {
38287 (char *) "self",(char *) "parentId",(char *) "path", NULL
38288 };
38289
38290 arg4 = &temp4;
38291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38293 if (!SWIG_IsOK(res1)) {
38294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38295 }
38296 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38297 {
38298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38299 if (!SWIG_IsOK(res2)) {
38300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38301 }
38302 if (!argp2) {
38303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38304 } else {
38305 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38306 arg2 = *temp;
38307 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38308 }
554f62e9
RD
38309 }
38310 {
38311 arg3 = wxString_in_helper(obj2);
38312 if (arg3 == NULL) SWIG_fail;
38313 temp3 = true;
38314 }
38315 {
38316 PyThreadState* __tstate = wxPyBeginAllowThreads();
38317 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38318 wxPyEndAllowThreads(__tstate);
38319 if (PyErr_Occurred()) SWIG_fail;
38320 }
38321 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38322 if (SWIG_IsTmpObj(res4)) {
38323 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38324 } else {
38325 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38326 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38327 }
38328 {
38329 if (temp3)
38330 delete arg3;
38331 }
38332 return resultobj;
38333fail:
38334 {
38335 if (temp3)
38336 delete arg3;
38337 }
38338 return NULL;
d55e5bfc
RD
38339}
38340
38341
554f62e9
RD
38342SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38343 PyObject *resultobj = 0;
38344 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38345 void *argp1 = 0 ;
38346 int res1 = 0 ;
38347 PyObject *swig_obj[1] ;
38348
38349 if (!args) SWIG_fail;
38350 swig_obj[0] = args;
38351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38352 if (!SWIG_IsOK(res1)) {
38353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38354 }
38355 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38356 {
38357 PyThreadState* __tstate = wxPyBeginAllowThreads();
38358 (arg1)->DoResize();
38359 wxPyEndAllowThreads(__tstate);
38360 if (PyErr_Occurred()) SWIG_fail;
38361 }
38362 resultobj = SWIG_Py_Void();
38363 return resultobj;
38364fail:
38365 return NULL;
38366}
38367
38368
38369SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38370 PyObject *resultobj = 0;
38371 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38372 void *argp1 = 0 ;
38373 int res1 = 0 ;
38374 PyObject *swig_obj[1] ;
38375
38376 if (!args) SWIG_fail;
38377 swig_obj[0] = args;
38378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38379 if (!SWIG_IsOK(res1)) {
38380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38381 }
38382 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38383 {
38384 PyThreadState* __tstate = wxPyBeginAllowThreads();
38385 (arg1)->ReCreateTree();
38386 wxPyEndAllowThreads(__tstate);
38387 if (PyErr_Occurred()) SWIG_fail;
38388 }
38389 resultobj = SWIG_Py_Void();
38390 return resultobj;
38391fail:
38392 return NULL;
38393}
38394
38395
38396SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38397 PyObject *obj;
38398 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38399 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38400 return SWIG_Py_Void();
38401}
38402
38403SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38404 return SWIG_Python_InitShadowInstance(args);
38405}
38406
38407SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38408 PyObject *resultobj = 0;
38409 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38410 int arg2 = (int) (int)-1 ;
38411 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38412 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38413 wxSize const &arg4_defvalue = wxDefaultSize ;
38414 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38415 long arg5 = (long) 0 ;
38416 wxDirFilterListCtrl *result = 0 ;
38417 void *argp1 = 0 ;
38418 int res1 = 0 ;
38419 int val2 ;
38420 int ecode2 = 0 ;
38421 wxPoint temp3 ;
38422 wxSize temp4 ;
38423 long val5 ;
38424 int ecode5 = 0 ;
38425 PyObject * obj0 = 0 ;
38426 PyObject * obj1 = 0 ;
38427 PyObject * obj2 = 0 ;
38428 PyObject * obj3 = 0 ;
38429 PyObject * obj4 = 0 ;
38430 char * kwnames[] = {
38431 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38432 };
38433
38434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38436 if (!SWIG_IsOK(res1)) {
38437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38438 }
38439 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38440 if (obj1) {
38441 ecode2 = SWIG_AsVal_int(obj1, &val2);
38442 if (!SWIG_IsOK(ecode2)) {
38443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38444 }
38445 arg2 = static_cast< int >(val2);
38446 }
38447 if (obj2) {
d55e5bfc 38448 {
554f62e9
RD
38449 arg3 = &temp3;
38450 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38451 }
554f62e9
RD
38452 }
38453 if (obj3) {
d55e5bfc 38454 {
554f62e9
RD
38455 arg4 = &temp4;
38456 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38457 }
554f62e9
RD
38458 }
38459 if (obj4) {
38460 ecode5 = SWIG_AsVal_long(obj4, &val5);
38461 if (!SWIG_IsOK(ecode5)) {
38462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38463 }
38464 arg5 = static_cast< long >(val5);
38465 }
38466 {
38467 if (!wxPyCheckForApp()) SWIG_fail;
38468 PyThreadState* __tstate = wxPyBeginAllowThreads();
38469 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38470 wxPyEndAllowThreads(__tstate);
38471 if (PyErr_Occurred()) SWIG_fail;
38472 }
38473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38474 return resultobj;
38475fail:
38476 return NULL;
d55e5bfc
RD
38477}
38478
38479
554f62e9
RD
38480SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38481 PyObject *resultobj = 0;
38482 wxDirFilterListCtrl *result = 0 ;
38483
38484 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38485 {
38486 if (!wxPyCheckForApp()) SWIG_fail;
38487 PyThreadState* __tstate = wxPyBeginAllowThreads();
38488 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38489 wxPyEndAllowThreads(__tstate);
38490 if (PyErr_Occurred()) SWIG_fail;
38491 }
38492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38493 return resultobj;
38494fail:
38495 return NULL;
38496}
38497
38498
38499SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38500 PyObject *resultobj = 0;
38501 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38502 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38503 int arg3 = (int) (int)-1 ;
38504 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38505 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38506 wxSize const &arg5_defvalue = wxDefaultSize ;
38507 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38508 long arg6 = (long) 0 ;
38509 bool result;
38510 void *argp1 = 0 ;
38511 int res1 = 0 ;
38512 void *argp2 = 0 ;
38513 int res2 = 0 ;
38514 int val3 ;
38515 int ecode3 = 0 ;
38516 wxPoint temp4 ;
38517 wxSize temp5 ;
38518 long val6 ;
38519 int ecode6 = 0 ;
38520 PyObject * obj0 = 0 ;
38521 PyObject * obj1 = 0 ;
38522 PyObject * obj2 = 0 ;
38523 PyObject * obj3 = 0 ;
38524 PyObject * obj4 = 0 ;
38525 PyObject * obj5 = 0 ;
38526 char * kwnames[] = {
38527 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38528 };
38529
38530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38532 if (!SWIG_IsOK(res1)) {
38533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38534 }
38535 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38537 if (!SWIG_IsOK(res2)) {
38538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38539 }
38540 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38541 if (obj2) {
38542 ecode3 = SWIG_AsVal_int(obj2, &val3);
38543 if (!SWIG_IsOK(ecode3)) {
38544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38545 }
38546 arg3 = static_cast< int >(val3);
38547 }
38548 if (obj3) {
093d3ff1 38549 {
554f62e9
RD
38550 arg4 = &temp4;
38551 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38552 }
554f62e9
RD
38553 }
38554 if (obj4) {
093d3ff1 38555 {
554f62e9
RD
38556 arg5 = &temp5;
38557 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 38558 }
554f62e9
RD
38559 }
38560 if (obj5) {
38561 ecode6 = SWIG_AsVal_long(obj5, &val6);
38562 if (!SWIG_IsOK(ecode6)) {
38563 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38564 }
38565 arg6 = static_cast< long >(val6);
38566 }
38567 {
38568 PyThreadState* __tstate = wxPyBeginAllowThreads();
38569 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38570 wxPyEndAllowThreads(__tstate);
38571 if (PyErr_Occurred()) SWIG_fail;
38572 }
38573 {
38574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38575 }
38576 return resultobj;
38577fail:
38578 return NULL;
38579}
38580
38581
38582SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38583 PyObject *resultobj = 0;
38584 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38585 wxString *arg2 = 0 ;
38586 int arg3 ;
38587 void *argp1 = 0 ;
38588 int res1 = 0 ;
38589 bool temp2 = false ;
38590 int val3 ;
38591 int ecode3 = 0 ;
38592 PyObject * obj0 = 0 ;
38593 PyObject * obj1 = 0 ;
38594 PyObject * obj2 = 0 ;
38595 char * kwnames[] = {
38596 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38597 };
38598
38599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38601 if (!SWIG_IsOK(res1)) {
38602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38603 }
38604 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38605 {
38606 arg2 = wxString_in_helper(obj1);
38607 if (arg2 == NULL) SWIG_fail;
38608 temp2 = true;
38609 }
38610 ecode3 = SWIG_AsVal_int(obj2, &val3);
38611 if (!SWIG_IsOK(ecode3)) {
38612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38613 }
38614 arg3 = static_cast< int >(val3);
38615 {
38616 PyThreadState* __tstate = wxPyBeginAllowThreads();
38617 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38618 wxPyEndAllowThreads(__tstate);
38619 if (PyErr_Occurred()) SWIG_fail;
38620 }
38621 resultobj = SWIG_Py_Void();
38622 {
38623 if (temp2)
38624 delete arg2;
38625 }
38626 return resultobj;
38627fail:
38628 {
38629 if (temp2)
38630 delete arg2;
38631 }
38632 return NULL;
38633}
38634
38635
38636SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38637 PyObject *obj;
38638 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38639 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38640 return SWIG_Py_Void();
38641}
38642
38643SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38644 return SWIG_Python_InitShadowInstance(args);
38645}
38646
38647SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38648 PyObject *resultobj = 0;
38649 wxWindow *arg1 = (wxWindow *) 0 ;
38650 int arg2 = (int) (int)-1 ;
38651 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38652 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38653 wxSize const &arg4_defvalue = wxDefaultSize ;
38654 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38655 long arg5 = (long) 0 ;
38656 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38657 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38658 wxString const &arg7_defvalue = wxPyControlNameStr ;
38659 wxString *arg7 = (wxString *) &arg7_defvalue ;
38660 wxPyControl *result = 0 ;
38661 void *argp1 = 0 ;
38662 int res1 = 0 ;
38663 int val2 ;
38664 int ecode2 = 0 ;
38665 wxPoint temp3 ;
38666 wxSize temp4 ;
38667 long val5 ;
38668 int ecode5 = 0 ;
38669 void *argp6 = 0 ;
38670 int res6 = 0 ;
38671 bool temp7 = false ;
38672 PyObject * obj0 = 0 ;
38673 PyObject * obj1 = 0 ;
38674 PyObject * obj2 = 0 ;
38675 PyObject * obj3 = 0 ;
38676 PyObject * obj4 = 0 ;
38677 PyObject * obj5 = 0 ;
38678 PyObject * obj6 = 0 ;
38679 char * kwnames[] = {
38680 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38681 };
38682
38683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38685 if (!SWIG_IsOK(res1)) {
38686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38687 }
38688 arg1 = reinterpret_cast< wxWindow * >(argp1);
38689 if (obj1) {
38690 ecode2 = SWIG_AsVal_int(obj1, &val2);
38691 if (!SWIG_IsOK(ecode2)) {
38692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38693 }
38694 arg2 = static_cast< int >(val2);
38695 }
38696 if (obj2) {
d55e5bfc 38697 {
554f62e9
RD
38698 arg3 = &temp3;
38699 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38700 }
554f62e9
RD
38701 }
38702 if (obj3) {
d55e5bfc 38703 {
554f62e9
RD
38704 arg4 = &temp4;
38705 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38706 }
554f62e9
RD
38707 }
38708 if (obj4) {
38709 ecode5 = SWIG_AsVal_long(obj4, &val5);
38710 if (!SWIG_IsOK(ecode5)) {
38711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38712 }
38713 arg5 = static_cast< long >(val5);
38714 }
38715 if (obj5) {
38716 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38717 if (!SWIG_IsOK(res6)) {
38718 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
093d3ff1 38719 }
554f62e9
RD
38720 if (!argp6) {
38721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 38722 }
554f62e9
RD
38723 arg6 = reinterpret_cast< wxValidator * >(argp6);
38724 }
38725 if (obj6) {
d55e5bfc 38726 {
554f62e9
RD
38727 arg7 = wxString_in_helper(obj6);
38728 if (arg7 == NULL) SWIG_fail;
38729 temp7 = true;
d55e5bfc 38730 }
554f62e9
RD
38731 }
38732 {
38733 if (!wxPyCheckForApp()) SWIG_fail;
38734 PyThreadState* __tstate = wxPyBeginAllowThreads();
38735 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38736 wxPyEndAllowThreads(__tstate);
38737 if (PyErr_Occurred()) SWIG_fail;
38738 }
38739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38740 {
38741 if (temp7)
38742 delete arg7;
38743 }
38744 return resultobj;
38745fail:
38746 {
38747 if (temp7)
38748 delete arg7;
38749 }
38750 return NULL;
d55e5bfc
RD
38751}
38752
38753
554f62e9
RD
38754SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38755 PyObject *resultobj = 0;
38756 wxPyControl *result = 0 ;
38757
38758 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38759 {
38760 if (!wxPyCheckForApp()) SWIG_fail;
38761 PyThreadState* __tstate = wxPyBeginAllowThreads();
38762 result = (wxPyControl *)new wxPyControl();
38763 wxPyEndAllowThreads(__tstate);
38764 if (PyErr_Occurred()) SWIG_fail;
38765 }
38766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38767 return resultobj;
38768fail:
38769 return NULL;
38770}
38771
38772
38773SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38774 PyObject *resultobj = 0;
38775 wxPyControl *arg1 = (wxPyControl *) 0 ;
38776 PyObject *arg2 = (PyObject *) 0 ;
38777 PyObject *arg3 = (PyObject *) 0 ;
38778 void *argp1 = 0 ;
38779 int res1 = 0 ;
38780 PyObject * obj0 = 0 ;
38781 PyObject * obj1 = 0 ;
38782 PyObject * obj2 = 0 ;
38783 char * kwnames[] = {
38784 (char *) "self",(char *) "self",(char *) "_class", NULL
38785 };
38786
38787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38789 if (!SWIG_IsOK(res1)) {
38790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38791 }
38792 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38793 arg2 = obj1;
38794 arg3 = obj2;
38795 {
38796 PyThreadState* __tstate = wxPyBeginAllowThreads();
38797 (arg1)->_setCallbackInfo(arg2,arg3);
38798 wxPyEndAllowThreads(__tstate);
38799 if (PyErr_Occurred()) SWIG_fail;
38800 }
38801 resultobj = SWIG_Py_Void();
38802 return resultobj;
38803fail:
38804 return NULL;
38805}
38806
38807
38808SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38809 PyObject *resultobj = 0;
38810 wxPyControl *arg1 = (wxPyControl *) 0 ;
38811 wxSize *arg2 = 0 ;
38812 void *argp1 = 0 ;
38813 int res1 = 0 ;
38814 wxSize temp2 ;
38815 PyObject * obj0 = 0 ;
38816 PyObject * obj1 = 0 ;
38817 char * kwnames[] = {
38818 (char *) "self",(char *) "size", NULL
38819 };
38820
38821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38823 if (!SWIG_IsOK(res1)) {
38824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38825 }
38826 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38827 {
38828 arg2 = &temp2;
38829 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38830 }
38831 {
38832 PyThreadState* __tstate = wxPyBeginAllowThreads();
38833 (arg1)->SetBestSize((wxSize const &)*arg2);
38834 wxPyEndAllowThreads(__tstate);
38835 if (PyErr_Occurred()) SWIG_fail;
38836 }
38837 resultobj = SWIG_Py_Void();
38838 return resultobj;
38839fail:
38840 return NULL;
38841}
38842
38843
38844SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38845 PyObject *resultobj = 0;
38846 wxPyControl *arg1 = (wxPyControl *) 0 ;
38847 wxDC *arg2 = (wxDC *) 0 ;
38848 bool result;
38849 void *argp1 = 0 ;
38850 int res1 = 0 ;
38851 void *argp2 = 0 ;
38852 int res2 = 0 ;
38853 PyObject * obj0 = 0 ;
38854 PyObject * obj1 = 0 ;
38855 char * kwnames[] = {
38856 (char *) "self",(char *) "dc", NULL
38857 };
38858
38859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38861 if (!SWIG_IsOK(res1)) {
38862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38863 }
38864 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38866 if (!SWIG_IsOK(res2)) {
38867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38868 }
38869 arg2 = reinterpret_cast< wxDC * >(argp2);
38870 {
38871 PyThreadState* __tstate = wxPyBeginAllowThreads();
38872 result = (bool)(arg1)->DoEraseBackground(arg2);
38873 wxPyEndAllowThreads(__tstate);
38874 if (PyErr_Occurred()) SWIG_fail;
38875 }
38876 {
38877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38878 }
38879 return resultobj;
38880fail:
38881 return NULL;
38882}
38883
38884
38885SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38886 PyObject *resultobj = 0;
38887 wxPyControl *arg1 = (wxPyControl *) 0 ;
38888 int arg2 ;
38889 int arg3 ;
38890 int arg4 ;
38891 int arg5 ;
38892 void *argp1 = 0 ;
38893 int res1 = 0 ;
38894 int val2 ;
38895 int ecode2 = 0 ;
38896 int val3 ;
38897 int ecode3 = 0 ;
38898 int val4 ;
38899 int ecode4 = 0 ;
38900 int val5 ;
38901 int ecode5 = 0 ;
38902 PyObject * obj0 = 0 ;
38903 PyObject * obj1 = 0 ;
38904 PyObject * obj2 = 0 ;
38905 PyObject * obj3 = 0 ;
38906 PyObject * obj4 = 0 ;
38907 char * kwnames[] = {
38908 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38909 };
38910
38911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38913 if (!SWIG_IsOK(res1)) {
38914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38915 }
38916 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38917 ecode2 = SWIG_AsVal_int(obj1, &val2);
38918 if (!SWIG_IsOK(ecode2)) {
38919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38920 }
38921 arg2 = static_cast< int >(val2);
38922 ecode3 = SWIG_AsVal_int(obj2, &val3);
38923 if (!SWIG_IsOK(ecode3)) {
38924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38925 }
38926 arg3 = static_cast< int >(val3);
38927 ecode4 = SWIG_AsVal_int(obj3, &val4);
38928 if (!SWIG_IsOK(ecode4)) {
38929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38930 }
38931 arg4 = static_cast< int >(val4);
38932 ecode5 = SWIG_AsVal_int(obj4, &val5);
38933 if (!SWIG_IsOK(ecode5)) {
38934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38935 }
38936 arg5 = static_cast< int >(val5);
38937 {
38938 PyThreadState* __tstate = wxPyBeginAllowThreads();
38939 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38940 wxPyEndAllowThreads(__tstate);
38941 if (PyErr_Occurred()) SWIG_fail;
38942 }
38943 resultobj = SWIG_Py_Void();
38944 return resultobj;
38945fail:
38946 return NULL;
38947}
38948
38949
38950SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38951 PyObject *resultobj = 0;
38952 wxPyControl *arg1 = (wxPyControl *) 0 ;
38953 int arg2 ;
38954 int arg3 ;
38955 int arg4 ;
38956 int arg5 ;
38957 int arg6 = (int) wxSIZE_AUTO ;
38958 void *argp1 = 0 ;
38959 int res1 = 0 ;
38960 int val2 ;
38961 int ecode2 = 0 ;
38962 int val3 ;
38963 int ecode3 = 0 ;
38964 int val4 ;
38965 int ecode4 = 0 ;
38966 int val5 ;
38967 int ecode5 = 0 ;
38968 int val6 ;
38969 int ecode6 = 0 ;
38970 PyObject * obj0 = 0 ;
38971 PyObject * obj1 = 0 ;
38972 PyObject * obj2 = 0 ;
38973 PyObject * obj3 = 0 ;
38974 PyObject * obj4 = 0 ;
38975 PyObject * obj5 = 0 ;
38976 char * kwnames[] = {
38977 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38978 };
38979
38980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38982 if (!SWIG_IsOK(res1)) {
38983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38984 }
38985 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38986 ecode2 = SWIG_AsVal_int(obj1, &val2);
38987 if (!SWIG_IsOK(ecode2)) {
38988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38989 }
38990 arg2 = static_cast< int >(val2);
38991 ecode3 = SWIG_AsVal_int(obj2, &val3);
38992 if (!SWIG_IsOK(ecode3)) {
38993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38994 }
38995 arg3 = static_cast< int >(val3);
38996 ecode4 = SWIG_AsVal_int(obj3, &val4);
38997 if (!SWIG_IsOK(ecode4)) {
38998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38999 }
39000 arg4 = static_cast< int >(val4);
39001 ecode5 = SWIG_AsVal_int(obj4, &val5);
39002 if (!SWIG_IsOK(ecode5)) {
39003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39004 }
39005 arg5 = static_cast< int >(val5);
39006 if (obj5) {
39007 ecode6 = SWIG_AsVal_int(obj5, &val6);
39008 if (!SWIG_IsOK(ecode6)) {
39009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39010 }
39011 arg6 = static_cast< int >(val6);
39012 }
39013 {
39014 PyThreadState* __tstate = wxPyBeginAllowThreads();
39015 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39016 wxPyEndAllowThreads(__tstate);
39017 if (PyErr_Occurred()) SWIG_fail;
39018 }
39019 resultobj = SWIG_Py_Void();
39020 return resultobj;
39021fail:
39022 return NULL;
39023}
39024
39025
39026SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39027 PyObject *resultobj = 0;
39028 wxPyControl *arg1 = (wxPyControl *) 0 ;
39029 int arg2 ;
39030 int arg3 ;
39031 void *argp1 = 0 ;
39032 int res1 = 0 ;
39033 int val2 ;
39034 int ecode2 = 0 ;
39035 int val3 ;
39036 int ecode3 = 0 ;
39037 PyObject * obj0 = 0 ;
39038 PyObject * obj1 = 0 ;
39039 PyObject * obj2 = 0 ;
39040 char * kwnames[] = {
39041 (char *) "self",(char *) "width",(char *) "height", NULL
39042 };
39043
39044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39046 if (!SWIG_IsOK(res1)) {
39047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39048 }
39049 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39050 ecode2 = SWIG_AsVal_int(obj1, &val2);
39051 if (!SWIG_IsOK(ecode2)) {
39052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39053 }
39054 arg2 = static_cast< int >(val2);
39055 ecode3 = SWIG_AsVal_int(obj2, &val3);
39056 if (!SWIG_IsOK(ecode3)) {
39057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39058 }
39059 arg3 = static_cast< int >(val3);
39060 {
39061 PyThreadState* __tstate = wxPyBeginAllowThreads();
39062 (arg1)->DoSetClientSize(arg2,arg3);
39063 wxPyEndAllowThreads(__tstate);
39064 if (PyErr_Occurred()) SWIG_fail;
39065 }
39066 resultobj = SWIG_Py_Void();
39067 return resultobj;
39068fail:
39069 return NULL;
39070}
39071
39072
39073SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39074 PyObject *resultobj = 0;
39075 wxPyControl *arg1 = (wxPyControl *) 0 ;
39076 int arg2 ;
39077 int arg3 ;
39078 void *argp1 = 0 ;
39079 int res1 = 0 ;
39080 int val2 ;
39081 int ecode2 = 0 ;
39082 int val3 ;
39083 int ecode3 = 0 ;
39084 PyObject * obj0 = 0 ;
39085 PyObject * obj1 = 0 ;
39086 PyObject * obj2 = 0 ;
39087 char * kwnames[] = {
39088 (char *) "self",(char *) "x",(char *) "y", NULL
39089 };
39090
39091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39093 if (!SWIG_IsOK(res1)) {
39094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39095 }
39096 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39097 ecode2 = SWIG_AsVal_int(obj1, &val2);
39098 if (!SWIG_IsOK(ecode2)) {
39099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39100 }
39101 arg2 = static_cast< int >(val2);
39102 ecode3 = SWIG_AsVal_int(obj2, &val3);
39103 if (!SWIG_IsOK(ecode3)) {
39104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39105 }
39106 arg3 = static_cast< int >(val3);
39107 {
39108 PyThreadState* __tstate = wxPyBeginAllowThreads();
39109 (arg1)->DoSetVirtualSize(arg2,arg3);
39110 wxPyEndAllowThreads(__tstate);
39111 if (PyErr_Occurred()) SWIG_fail;
39112 }
39113 resultobj = SWIG_Py_Void();
39114 return resultobj;
39115fail:
39116 return NULL;
39117}
39118
39119
39120SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39121 PyObject *resultobj = 0;
39122 wxPyControl *arg1 = (wxPyControl *) 0 ;
39123 int *arg2 = (int *) 0 ;
39124 int *arg3 = (int *) 0 ;
39125 void *argp1 = 0 ;
39126 int res1 = 0 ;
39127 int temp2 ;
39128 int res2 = SWIG_TMPOBJ ;
39129 int temp3 ;
39130 int res3 = SWIG_TMPOBJ ;
39131 PyObject *swig_obj[1] ;
39132
39133 arg2 = &temp2;
39134 arg3 = &temp3;
39135 if (!args) SWIG_fail;
39136 swig_obj[0] = args;
39137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39138 if (!SWIG_IsOK(res1)) {
39139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39140 }
39141 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39142 {
39143 PyThreadState* __tstate = wxPyBeginAllowThreads();
39144 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39145 wxPyEndAllowThreads(__tstate);
39146 if (PyErr_Occurred()) SWIG_fail;
39147 }
39148 resultobj = SWIG_Py_Void();
39149 if (SWIG_IsTmpObj(res2)) {
39150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39151 } else {
39152 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39154 }
39155 if (SWIG_IsTmpObj(res3)) {
39156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39157 } else {
39158 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39160 }
39161 return resultobj;
39162fail:
39163 return NULL;
39164}
39165
39166
39167SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39168 PyObject *resultobj = 0;
39169 wxPyControl *arg1 = (wxPyControl *) 0 ;
39170 int *arg2 = (int *) 0 ;
39171 int *arg3 = (int *) 0 ;
39172 void *argp1 = 0 ;
39173 int res1 = 0 ;
39174 int temp2 ;
39175 int res2 = SWIG_TMPOBJ ;
39176 int temp3 ;
39177 int res3 = SWIG_TMPOBJ ;
39178 PyObject *swig_obj[1] ;
39179
39180 arg2 = &temp2;
39181 arg3 = &temp3;
39182 if (!args) SWIG_fail;
39183 swig_obj[0] = args;
39184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39185 if (!SWIG_IsOK(res1)) {
39186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39187 }
39188 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39189 {
39190 PyThreadState* __tstate = wxPyBeginAllowThreads();
39191 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39192 wxPyEndAllowThreads(__tstate);
39193 if (PyErr_Occurred()) SWIG_fail;
39194 }
39195 resultobj = SWIG_Py_Void();
39196 if (SWIG_IsTmpObj(res2)) {
39197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39198 } else {
39199 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39201 }
39202 if (SWIG_IsTmpObj(res3)) {
39203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39204 } else {
39205 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39207 }
39208 return resultobj;
39209fail:
39210 return NULL;
39211}
39212
39213
39214SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39215 PyObject *resultobj = 0;
39216 wxPyControl *arg1 = (wxPyControl *) 0 ;
39217 int *arg2 = (int *) 0 ;
39218 int *arg3 = (int *) 0 ;
39219 void *argp1 = 0 ;
39220 int res1 = 0 ;
39221 int temp2 ;
39222 int res2 = SWIG_TMPOBJ ;
39223 int temp3 ;
39224 int res3 = SWIG_TMPOBJ ;
39225 PyObject *swig_obj[1] ;
39226
39227 arg2 = &temp2;
39228 arg3 = &temp3;
39229 if (!args) SWIG_fail;
39230 swig_obj[0] = args;
39231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39232 if (!SWIG_IsOK(res1)) {
39233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39234 }
39235 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39236 {
39237 PyThreadState* __tstate = wxPyBeginAllowThreads();
39238 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39239 wxPyEndAllowThreads(__tstate);
39240 if (PyErr_Occurred()) SWIG_fail;
39241 }
39242 resultobj = SWIG_Py_Void();
39243 if (SWIG_IsTmpObj(res2)) {
39244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39245 } else {
39246 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39248 }
39249 if (SWIG_IsTmpObj(res3)) {
39250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39251 } else {
39252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39254 }
39255 return resultobj;
39256fail:
39257 return NULL;
d55e5bfc
RD
39258}
39259
39260
554f62e9
RD
39261SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39262 PyObject *resultobj = 0;
39263 wxPyControl *arg1 = (wxPyControl *) 0 ;
39264 wxSize result;
39265 void *argp1 = 0 ;
39266 int res1 = 0 ;
39267 PyObject *swig_obj[1] ;
39268
39269 if (!args) SWIG_fail;
39270 swig_obj[0] = args;
39271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39272 if (!SWIG_IsOK(res1)) {
39273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39274 }
39275 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39276 {
39277 PyThreadState* __tstate = wxPyBeginAllowThreads();
39278 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39279 wxPyEndAllowThreads(__tstate);
39280 if (PyErr_Occurred()) SWIG_fail;
39281 }
39282 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39283 return resultobj;
39284fail:
39285 return NULL;
d55e5bfc
RD
39286}
39287
39288
554f62e9
RD
39289SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39290 PyObject *resultobj = 0;
39291 wxPyControl *arg1 = (wxPyControl *) 0 ;
39292 wxSize result;
39293 void *argp1 = 0 ;
39294 int res1 = 0 ;
39295 PyObject *swig_obj[1] ;
39296
39297 if (!args) SWIG_fail;
39298 swig_obj[0] = args;
39299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39300 if (!SWIG_IsOK(res1)) {
39301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39302 }
39303 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39304 {
39305 PyThreadState* __tstate = wxPyBeginAllowThreads();
39306 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39307 wxPyEndAllowThreads(__tstate);
39308 if (PyErr_Occurred()) SWIG_fail;
39309 }
39310 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39311 return resultobj;
39312fail:
39313 return NULL;
d55e5bfc
RD
39314}
39315
39316
554f62e9
RD
39317SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39318 PyObject *resultobj = 0;
39319 wxPyControl *arg1 = (wxPyControl *) 0 ;
39320 SwigValueWrapper<wxVisualAttributes > result;
39321 void *argp1 = 0 ;
39322 int res1 = 0 ;
39323 PyObject *swig_obj[1] ;
39324
39325 if (!args) SWIG_fail;
39326 swig_obj[0] = args;
39327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39328 if (!SWIG_IsOK(res1)) {
39329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39330 }
39331 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39332 {
39333 PyThreadState* __tstate = wxPyBeginAllowThreads();
39334 result = (arg1)->GetDefaultAttributes();
39335 wxPyEndAllowThreads(__tstate);
39336 if (PyErr_Occurred()) SWIG_fail;
39337 }
39338 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39339 return resultobj;
39340fail:
39341 return NULL;
d55e5bfc
RD
39342}
39343
39344
554f62e9
RD
39345SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39346 PyObject *resultobj = 0;
39347 wxPyControl *arg1 = (wxPyControl *) 0 ;
39348 void *argp1 = 0 ;
39349 int res1 = 0 ;
39350 PyObject *swig_obj[1] ;
39351
39352 if (!args) SWIG_fail;
39353 swig_obj[0] = args;
39354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39355 if (!SWIG_IsOK(res1)) {
39356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39357 }
39358 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39359 {
39360 PyThreadState* __tstate = wxPyBeginAllowThreads();
39361 (arg1)->OnInternalIdle();
39362 wxPyEndAllowThreads(__tstate);
39363 if (PyErr_Occurred()) SWIG_fail;
39364 }
39365 resultobj = SWIG_Py_Void();
39366 return resultobj;
39367fail:
39368 return NULL;
39369}
39370
39371
39372SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39373 PyObject *obj;
39374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39375 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39376 return SWIG_Py_Void();
39377}
39378
39379SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39380 return SWIG_Python_InitShadowInstance(args);
39381}
39382
39383SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39384 PyObject *resultobj = 0;
39385 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39386 int arg2 = (int) 0 ;
39387 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39388 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39389 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
554f62e9
RD
39390 wxHelpEvent *result = 0 ;
39391 int val1 ;
39392 int ecode1 = 0 ;
39393 int val2 ;
39394 int ecode2 = 0 ;
39395 wxPoint temp3 ;
704eda0c
RD
39396 int val4 ;
39397 int ecode4 = 0 ;
554f62e9
RD
39398 PyObject * obj0 = 0 ;
39399 PyObject * obj1 = 0 ;
39400 PyObject * obj2 = 0 ;
704eda0c 39401 PyObject * obj3 = 0 ;
554f62e9 39402 char * kwnames[] = {
704eda0c 39403 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
554f62e9
RD
39404 };
39405
704eda0c 39406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
39407 if (obj0) {
39408 ecode1 = SWIG_AsVal_int(obj0, &val1);
39409 if (!SWIG_IsOK(ecode1)) {
39410 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39411 }
39412 arg1 = static_cast< wxEventType >(val1);
39413 }
39414 if (obj1) {
39415 ecode2 = SWIG_AsVal_int(obj1, &val2);
39416 if (!SWIG_IsOK(ecode2)) {
39417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39418 }
39419 arg2 = static_cast< int >(val2);
39420 }
39421 if (obj2) {
d55e5bfc 39422 {
554f62e9
RD
39423 arg3 = &temp3;
39424 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39425 }
554f62e9 39426 }
704eda0c
RD
39427 if (obj3) {
39428 ecode4 = SWIG_AsVal_int(obj3, &val4);
39429 if (!SWIG_IsOK(ecode4)) {
39430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39431 }
39432 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39433 }
554f62e9
RD
39434 {
39435 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39436 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
554f62e9
RD
39437 wxPyEndAllowThreads(__tstate);
39438 if (PyErr_Occurred()) SWIG_fail;
39439 }
39440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39441 return resultobj;
39442fail:
39443 return NULL;
d55e5bfc
RD
39444}
39445
39446
554f62e9
RD
39447SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39448 PyObject *resultobj = 0;
39449 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39450 wxPoint result;
39451 void *argp1 = 0 ;
39452 int res1 = 0 ;
39453 PyObject *swig_obj[1] ;
39454
39455 if (!args) SWIG_fail;
39456 swig_obj[0] = args;
39457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39458 if (!SWIG_IsOK(res1)) {
39459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39460 }
39461 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39462 {
39463 PyThreadState* __tstate = wxPyBeginAllowThreads();
39464 result = ((wxHelpEvent const *)arg1)->GetPosition();
39465 wxPyEndAllowThreads(__tstate);
39466 if (PyErr_Occurred()) SWIG_fail;
39467 }
39468 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39469 return resultobj;
39470fail:
39471 return NULL;
39472}
39473
39474
39475SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39476 PyObject *resultobj = 0;
39477 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39478 wxPoint *arg2 = 0 ;
39479 void *argp1 = 0 ;
39480 int res1 = 0 ;
39481 wxPoint temp2 ;
39482 PyObject * obj0 = 0 ;
39483 PyObject * obj1 = 0 ;
39484 char * kwnames[] = {
39485 (char *) "self",(char *) "pos", NULL
39486 };
39487
39488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39490 if (!SWIG_IsOK(res1)) {
39491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39492 }
39493 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39494 {
39495 arg2 = &temp2;
39496 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39497 }
39498 {
39499 PyThreadState* __tstate = wxPyBeginAllowThreads();
39500 (arg1)->SetPosition((wxPoint const &)*arg2);
39501 wxPyEndAllowThreads(__tstate);
39502 if (PyErr_Occurred()) SWIG_fail;
39503 }
39504 resultobj = SWIG_Py_Void();
39505 return resultobj;
39506fail:
39507 return NULL;
f20a2e1f
RD
39508}
39509
39510
554f62e9
RD
39511SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39512 PyObject *resultobj = 0;
39513 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39514 wxString *result = 0 ;
39515 void *argp1 = 0 ;
39516 int res1 = 0 ;
39517 PyObject *swig_obj[1] ;
39518
39519 if (!args) SWIG_fail;
39520 swig_obj[0] = args;
39521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39522 if (!SWIG_IsOK(res1)) {
39523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39524 }
39525 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39526 {
39527 PyThreadState* __tstate = wxPyBeginAllowThreads();
39528 {
39529 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39530 result = (wxString *) &_result_ref;
39531 }
39532 wxPyEndAllowThreads(__tstate);
39533 if (PyErr_Occurred()) SWIG_fail;
39534 }
39535 {
39536#if wxUSE_UNICODE
39537 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39538#else
39539 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39540#endif
39541 }
39542 return resultobj;
39543fail:
39544 return NULL;
39545}
39546
39547
39548SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39549 PyObject *resultobj = 0;
39550 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39551 wxString *arg2 = 0 ;
39552 void *argp1 = 0 ;
39553 int res1 = 0 ;
39554 bool temp2 = false ;
39555 PyObject * obj0 = 0 ;
39556 PyObject * obj1 = 0 ;
39557 char * kwnames[] = {
39558 (char *) "self",(char *) "link", NULL
39559 };
39560
39561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39563 if (!SWIG_IsOK(res1)) {
39564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39565 }
39566 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39567 {
39568 arg2 = wxString_in_helper(obj1);
39569 if (arg2 == NULL) SWIG_fail;
39570 temp2 = true;
39571 }
39572 {
39573 PyThreadState* __tstate = wxPyBeginAllowThreads();
39574 (arg1)->SetLink((wxString const &)*arg2);
39575 wxPyEndAllowThreads(__tstate);
39576 if (PyErr_Occurred()) SWIG_fail;
39577 }
39578 resultobj = SWIG_Py_Void();
39579 {
39580 if (temp2)
39581 delete arg2;
39582 }
39583 return resultobj;
39584fail:
39585 {
39586 if (temp2)
39587 delete arg2;
39588 }
39589 return NULL;
d55e5bfc
RD
39590}
39591
39592
554f62e9
RD
39593SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39594 PyObject *resultobj = 0;
39595 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39596 wxString *result = 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_wxHelpEvent, 0 | 0 );
39604 if (!SWIG_IsOK(res1)) {
39605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39606 }
39607 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39608 {
39609 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39610 {
554f62e9
RD
39611 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39612 result = (wxString *) &_result_ref;
39613 }
39614 wxPyEndAllowThreads(__tstate);
39615 if (PyErr_Occurred()) SWIG_fail;
39616 }
39617 {
d55e5bfc 39618#if wxUSE_UNICODE
554f62e9 39619 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 39620#else
554f62e9 39621 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 39622#endif
554f62e9
RD
39623 }
39624 return resultobj;
39625fail:
39626 return NULL;
39627}
39628
39629
39630SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39631 PyObject *resultobj = 0;
39632 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39633 wxString *arg2 = 0 ;
39634 void *argp1 = 0 ;
39635 int res1 = 0 ;
39636 bool temp2 = false ;
39637 PyObject * obj0 = 0 ;
39638 PyObject * obj1 = 0 ;
39639 char * kwnames[] = {
39640 (char *) "self",(char *) "target", NULL
39641 };
39642
39643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39645 if (!SWIG_IsOK(res1)) {
39646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39647 }
39648 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39649 {
39650 arg2 = wxString_in_helper(obj1);
39651 if (arg2 == NULL) SWIG_fail;
39652 temp2 = true;
39653 }
39654 {
39655 PyThreadState* __tstate = wxPyBeginAllowThreads();
39656 (arg1)->SetTarget((wxString const &)*arg2);
39657 wxPyEndAllowThreads(__tstate);
39658 if (PyErr_Occurred()) SWIG_fail;
39659 }
39660 resultobj = SWIG_Py_Void();
39661 {
39662 if (temp2)
39663 delete arg2;
39664 }
39665 return resultobj;
39666fail:
39667 {
39668 if (temp2)
39669 delete arg2;
39670 }
39671 return NULL;
d55e5bfc
RD
39672}
39673
39674
704eda0c
RD
39675SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39676 PyObject *resultobj = 0;
39677 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39678 wxHelpEvent::Origin result;
39679 void *argp1 = 0 ;
39680 int res1 = 0 ;
39681 PyObject *swig_obj[1] ;
39682
39683 if (!args) SWIG_fail;
39684 swig_obj[0] = args;
39685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39686 if (!SWIG_IsOK(res1)) {
39687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39688 }
39689 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39690 {
39691 PyThreadState* __tstate = wxPyBeginAllowThreads();
39692 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39693 wxPyEndAllowThreads(__tstate);
39694 if (PyErr_Occurred()) SWIG_fail;
39695 }
39696 resultobj = SWIG_From_int(static_cast< int >(result));
39697 return resultobj;
39698fail:
39699 return NULL;
39700}
39701
39702
39703SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39704 PyObject *resultobj = 0;
39705 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39706 wxHelpEvent::Origin arg2 ;
39707 void *argp1 = 0 ;
39708 int res1 = 0 ;
39709 int val2 ;
39710 int ecode2 = 0 ;
39711 PyObject * obj0 = 0 ;
39712 PyObject * obj1 = 0 ;
39713 char * kwnames[] = {
39714 (char *) "self",(char *) "origin", NULL
39715 };
39716
39717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39719 if (!SWIG_IsOK(res1)) {
39720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39721 }
39722 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39723 ecode2 = SWIG_AsVal_int(obj1, &val2);
39724 if (!SWIG_IsOK(ecode2)) {
39725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39726 }
39727 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39728 {
39729 PyThreadState* __tstate = wxPyBeginAllowThreads();
39730 (arg1)->SetOrigin(arg2);
39731 wxPyEndAllowThreads(__tstate);
39732 if (PyErr_Occurred()) SWIG_fail;
39733 }
39734 resultobj = SWIG_Py_Void();
39735 return resultobj;
39736fail:
39737 return NULL;
39738}
39739
39740
554f62e9
RD
39741SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39742 PyObject *obj;
39743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39744 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39745 return SWIG_Py_Void();
7e08d4ef
RD
39746}
39747
554f62e9
RD
39748SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39749 return SWIG_Python_InitShadowInstance(args);
39750}
7e08d4ef 39751
554f62e9
RD
39752SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39753 PyObject *resultobj = 0;
39754 wxWindow *arg1 = (wxWindow *) NULL ;
39755 bool arg2 = (bool) true ;
39756 wxContextHelp *result = 0 ;
39757 void *argp1 = 0 ;
39758 int res1 = 0 ;
39759 bool val2 ;
39760 int ecode2 = 0 ;
39761 PyObject * obj0 = 0 ;
39762 PyObject * obj1 = 0 ;
39763 char * kwnames[] = {
39764 (char *) "window",(char *) "doNow", NULL
39765 };
39766
39767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39768 if (obj0) {
39769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39770 if (!SWIG_IsOK(res1)) {
39771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39772 }
554f62e9
RD
39773 arg1 = reinterpret_cast< wxWindow * >(argp1);
39774 }
39775 if (obj1) {
39776 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39777 if (!SWIG_IsOK(ecode2)) {
39778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39779 }
39780 arg2 = static_cast< bool >(val2);
39781 }
39782 {
39783 if (!wxPyCheckForApp()) SWIG_fail;
39784 PyThreadState* __tstate = wxPyBeginAllowThreads();
39785 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39786 wxPyEndAllowThreads(__tstate);
39787 if (PyErr_Occurred()) SWIG_fail;
39788 }
39789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39790 return resultobj;
39791fail:
39792 return NULL;
d55e5bfc
RD
39793}
39794
39795
554f62e9
RD
39796SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39797 PyObject *resultobj = 0;
39798 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39799 void *argp1 = 0 ;
39800 int res1 = 0 ;
39801 PyObject *swig_obj[1] ;
39802
39803 if (!args) SWIG_fail;
39804 swig_obj[0] = args;
39805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39806 if (!SWIG_IsOK(res1)) {
39807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39808 }
39809 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39810 {
39811 PyThreadState* __tstate = wxPyBeginAllowThreads();
39812 delete arg1;
d55e5bfc 39813
554f62e9
RD
39814 wxPyEndAllowThreads(__tstate);
39815 if (PyErr_Occurred()) SWIG_fail;
39816 }
39817 resultobj = SWIG_Py_Void();
39818 return resultobj;
39819fail:
39820 return NULL;
39821}
39822
39823
39824SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39825 PyObject *resultobj = 0;
39826 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39827 wxWindow *arg2 = (wxWindow *) NULL ;
39828 bool result;
39829 void *argp1 = 0 ;
39830 int res1 = 0 ;
39831 void *argp2 = 0 ;
39832 int res2 = 0 ;
39833 PyObject * obj0 = 0 ;
39834 PyObject * obj1 = 0 ;
39835 char * kwnames[] = {
39836 (char *) "self",(char *) "window", NULL
39837 };
39838
39839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39841 if (!SWIG_IsOK(res1)) {
39842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39843 }
39844 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39845 if (obj1) {
39846 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39847 if (!SWIG_IsOK(res2)) {
39848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39849 }
554f62e9
RD
39850 arg2 = reinterpret_cast< wxWindow * >(argp2);
39851 }
39852 {
39853 PyThreadState* __tstate = wxPyBeginAllowThreads();
39854 result = (bool)(arg1)->BeginContextHelp(arg2);
39855 wxPyEndAllowThreads(__tstate);
39856 if (PyErr_Occurred()) SWIG_fail;
39857 }
39858 {
39859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39860 }
39861 return resultobj;
39862fail:
39863 return NULL;
d55e5bfc
RD
39864}
39865
39866
554f62e9
RD
39867SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39868 PyObject *resultobj = 0;
39869 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39870 bool result;
39871 void *argp1 = 0 ;
39872 int res1 = 0 ;
39873 PyObject *swig_obj[1] ;
39874
39875 if (!args) SWIG_fail;
39876 swig_obj[0] = args;
39877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39878 if (!SWIG_IsOK(res1)) {
39879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39880 }
39881 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39882 {
39883 PyThreadState* __tstate = wxPyBeginAllowThreads();
39884 result = (bool)(arg1)->EndContextHelp();
39885 wxPyEndAllowThreads(__tstate);
39886 if (PyErr_Occurred()) SWIG_fail;
39887 }
39888 {
39889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39890 }
39891 return resultobj;
39892fail:
39893 return NULL;
39894}
39895
39896
39897SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39898 PyObject *obj;
39899 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39900 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39901 return SWIG_Py_Void();
39902}
39903
39904SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39905 return SWIG_Python_InitShadowInstance(args);
39906}
39907
39908SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39909 PyObject *resultobj = 0;
39910 wxWindow *arg1 = (wxWindow *) 0 ;
39911 int arg2 = (int) wxID_CONTEXT_HELP ;
39912 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39913 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39914 wxSize const &arg4_defvalue = wxDefaultSize ;
39915 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39916 long arg5 = (long) wxBU_AUTODRAW ;
39917 wxContextHelpButton *result = 0 ;
39918 void *argp1 = 0 ;
39919 int res1 = 0 ;
39920 int val2 ;
39921 int ecode2 = 0 ;
39922 wxPoint temp3 ;
39923 wxSize temp4 ;
39924 long val5 ;
39925 int ecode5 = 0 ;
39926 PyObject * obj0 = 0 ;
39927 PyObject * obj1 = 0 ;
39928 PyObject * obj2 = 0 ;
39929 PyObject * obj3 = 0 ;
39930 PyObject * obj4 = 0 ;
39931 char * kwnames[] = {
39932 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39933 };
39934
39935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39937 if (!SWIG_IsOK(res1)) {
39938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39939 }
39940 arg1 = reinterpret_cast< wxWindow * >(argp1);
39941 if (obj1) {
39942 ecode2 = SWIG_AsVal_int(obj1, &val2);
39943 if (!SWIG_IsOK(ecode2)) {
39944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39945 }
39946 arg2 = static_cast< int >(val2);
39947 }
39948 if (obj2) {
d55e5bfc 39949 {
554f62e9
RD
39950 arg3 = &temp3;
39951 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39952 }
554f62e9
RD
39953 }
39954 if (obj3) {
d55e5bfc 39955 {
554f62e9
RD
39956 arg4 = &temp4;
39957 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39958 }
554f62e9
RD
39959 }
39960 if (obj4) {
39961 ecode5 = SWIG_AsVal_long(obj4, &val5);
39962 if (!SWIG_IsOK(ecode5)) {
39963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39964 }
39965 arg5 = static_cast< long >(val5);
39966 }
39967 {
39968 if (!wxPyCheckForApp()) SWIG_fail;
39969 PyThreadState* __tstate = wxPyBeginAllowThreads();
39970 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39971 wxPyEndAllowThreads(__tstate);
39972 if (PyErr_Occurred()) SWIG_fail;
39973 }
39974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39975 return resultobj;
39976fail:
39977 return NULL;
d55e5bfc
RD
39978}
39979
39980
554f62e9
RD
39981SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39982 PyObject *obj;
39983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39984 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39985 return SWIG_Py_Void();
d55e5bfc
RD
39986}
39987
554f62e9
RD
39988SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39989 return SWIG_Python_InitShadowInstance(args);
39990}
d55e5bfc 39991
f52cbe90
RD
39992SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39993 PyObject *resultobj = 0;
39994 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39995 void *argp1 = 0 ;
39996 int res1 = 0 ;
39997 PyObject *swig_obj[1] ;
39998
39999 if (!args) SWIG_fail;
40000 swig_obj[0] = args;
40001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40002 if (!SWIG_IsOK(res1)) {
40003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40004 }
40005 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40006 {
40007 PyThreadState* __tstate = wxPyBeginAllowThreads();
40008 delete arg1;
40009
40010 wxPyEndAllowThreads(__tstate);
40011 if (PyErr_Occurred()) SWIG_fail;
40012 }
40013 resultobj = SWIG_Py_Void();
40014 return resultobj;
40015fail:
40016 return NULL;
40017}
40018
40019
554f62e9
RD
40020SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40021 PyObject *resultobj = 0;
40022 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40023 wxHelpProvider *result = 0 ;
40024 int res1 = 0 ;
40025 PyObject * obj0 = 0 ;
40026 char * kwnames[] = {
40027 (char *) "helpProvider", NULL
40028 };
40029
40030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40031 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40032 if (!SWIG_IsOK(res1)) {
40033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40034 }
40035 {
40036 PyThreadState* __tstate = wxPyBeginAllowThreads();
40037 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40038 wxPyEndAllowThreads(__tstate);
40039 if (PyErr_Occurred()) SWIG_fail;
40040 }
40041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40042 return resultobj;
40043fail:
40044 return NULL;
d55e5bfc
RD
40045}
40046
40047
554f62e9
RD
40048SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40049 PyObject *resultobj = 0;
40050 wxHelpProvider *result = 0 ;
40051
40052 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40053 {
40054 PyThreadState* __tstate = wxPyBeginAllowThreads();
40055 result = (wxHelpProvider *)wxHelpProvider::Get();
40056 wxPyEndAllowThreads(__tstate);
40057 if (PyErr_Occurred()) SWIG_fail;
40058 }
40059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40060 return resultobj;
40061fail:
40062 return NULL;
40063}
40064
40065
40066SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40067 PyObject *resultobj = 0;
40068 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40069 wxWindow *arg2 = (wxWindow *) 0 ;
40070 wxString result;
40071 void *argp1 = 0 ;
40072 int res1 = 0 ;
40073 void *argp2 = 0 ;
40074 int res2 = 0 ;
40075 PyObject * obj0 = 0 ;
40076 PyObject * obj1 = 0 ;
40077 char * kwnames[] = {
40078 (char *) "self",(char *) "window", NULL
40079 };
40080
40081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40083 if (!SWIG_IsOK(res1)) {
40084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40085 }
40086 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40088 if (!SWIG_IsOK(res2)) {
40089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40090 }
40091 arg2 = reinterpret_cast< wxWindow * >(argp2);
40092 {
40093 PyThreadState* __tstate = wxPyBeginAllowThreads();
40094 result = (arg1)->GetHelp((wxWindow const *)arg2);
40095 wxPyEndAllowThreads(__tstate);
40096 if (PyErr_Occurred()) SWIG_fail;
40097 }
40098 {
40099#if wxUSE_UNICODE
40100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40101#else
40102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40103#endif
40104 }
40105 return resultobj;
40106fail:
40107 return NULL;
40108}
40109
40110
40111SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40112 PyObject *resultobj = 0;
40113 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40114 wxWindow *arg2 = (wxWindow *) 0 ;
40115 bool result;
40116 void *argp1 = 0 ;
40117 int res1 = 0 ;
40118 void *argp2 = 0 ;
40119 int res2 = 0 ;
40120 PyObject * obj0 = 0 ;
40121 PyObject * obj1 = 0 ;
40122 char * kwnames[] = {
40123 (char *) "self",(char *) "window", NULL
40124 };
40125
40126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40128 if (!SWIG_IsOK(res1)) {
40129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40130 }
40131 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40132 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40133 if (!SWIG_IsOK(res2)) {
40134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40135 }
40136 arg2 = reinterpret_cast< wxWindow * >(argp2);
40137 {
40138 PyThreadState* __tstate = wxPyBeginAllowThreads();
40139 result = (bool)(arg1)->ShowHelp(arg2);
40140 wxPyEndAllowThreads(__tstate);
40141 if (PyErr_Occurred()) SWIG_fail;
40142 }
40143 {
40144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40145 }
40146 return resultobj;
40147fail:
40148 return NULL;
40149}
40150
40151
b850e7f3
RD
40152SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40153 PyObject *resultobj = 0;
40154 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40155 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40156 wxPoint *arg3 = 0 ;
40157 wxHelpEvent::Origin arg4 ;
40158 bool result;
40159 void *argp1 = 0 ;
40160 int res1 = 0 ;
40161 void *argp2 = 0 ;
40162 int res2 = 0 ;
40163 wxPoint temp3 ;
40164 int val4 ;
40165 int ecode4 = 0 ;
40166 PyObject * obj0 = 0 ;
40167 PyObject * obj1 = 0 ;
40168 PyObject * obj2 = 0 ;
40169 PyObject * obj3 = 0 ;
40170 char * kwnames[] = {
40171 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40172 };
40173
40174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40176 if (!SWIG_IsOK(res1)) {
40177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40178 }
40179 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40181 if (!SWIG_IsOK(res2)) {
40182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40183 }
40184 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40185 {
40186 arg3 = &temp3;
40187 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40188 }
40189 ecode4 = SWIG_AsVal_int(obj3, &val4);
40190 if (!SWIG_IsOK(ecode4)) {
40191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40192 }
40193 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40194 {
40195 PyThreadState* __tstate = wxPyBeginAllowThreads();
40196 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40197 wxPyEndAllowThreads(__tstate);
40198 if (PyErr_Occurred()) SWIG_fail;
40199 }
40200 {
40201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40202 }
40203 return resultobj;
40204fail:
40205 return NULL;
40206}
40207
40208
554f62e9
RD
40209SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40210 PyObject *resultobj = 0;
40211 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40212 wxWindow *arg2 = (wxWindow *) 0 ;
40213 wxString *arg3 = 0 ;
40214 void *argp1 = 0 ;
40215 int res1 = 0 ;
40216 void *argp2 = 0 ;
40217 int res2 = 0 ;
40218 bool temp3 = false ;
40219 PyObject * obj0 = 0 ;
40220 PyObject * obj1 = 0 ;
40221 PyObject * obj2 = 0 ;
40222 char * kwnames[] = {
40223 (char *) "self",(char *) "window",(char *) "text", NULL
40224 };
40225
40226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40228 if (!SWIG_IsOK(res1)) {
40229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40230 }
40231 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40232 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40233 if (!SWIG_IsOK(res2)) {
40234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40235 }
40236 arg2 = reinterpret_cast< wxWindow * >(argp2);
40237 {
40238 arg3 = wxString_in_helper(obj2);
40239 if (arg3 == NULL) SWIG_fail;
40240 temp3 = true;
40241 }
40242 {
40243 PyThreadState* __tstate = wxPyBeginAllowThreads();
40244 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40245 wxPyEndAllowThreads(__tstate);
40246 if (PyErr_Occurred()) SWIG_fail;
40247 }
40248 resultobj = SWIG_Py_Void();
40249 {
40250 if (temp3)
40251 delete arg3;
40252 }
40253 return resultobj;
40254fail:
40255 {
40256 if (temp3)
40257 delete arg3;
40258 }
40259 return NULL;
40260}
40261
40262
40263SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40264 PyObject *resultobj = 0;
40265 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40266 int arg2 ;
40267 wxString *arg3 = 0 ;
40268 void *argp1 = 0 ;
40269 int res1 = 0 ;
40270 int val2 ;
40271 int ecode2 = 0 ;
40272 bool temp3 = false ;
40273 PyObject * obj0 = 0 ;
40274 PyObject * obj1 = 0 ;
40275 PyObject * obj2 = 0 ;
40276 char * kwnames[] = {
40277 (char *) "self",(char *) "id",(char *) "text", NULL
40278 };
40279
40280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40282 if (!SWIG_IsOK(res1)) {
40283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40284 }
40285 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40286 ecode2 = SWIG_AsVal_int(obj1, &val2);
40287 if (!SWIG_IsOK(ecode2)) {
40288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40289 }
40290 arg2 = static_cast< int >(val2);
40291 {
40292 arg3 = wxString_in_helper(obj2);
40293 if (arg3 == NULL) SWIG_fail;
40294 temp3 = true;
40295 }
40296 {
40297 PyThreadState* __tstate = wxPyBeginAllowThreads();
40298 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40299 wxPyEndAllowThreads(__tstate);
40300 if (PyErr_Occurred()) SWIG_fail;
40301 }
40302 resultobj = SWIG_Py_Void();
40303 {
40304 if (temp3)
40305 delete arg3;
40306 }
40307 return resultobj;
40308fail:
40309 {
40310 if (temp3)
40311 delete arg3;
40312 }
40313 return NULL;
40314}
40315
40316
40317SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40318 PyObject *resultobj = 0;
40319 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40320 wxWindow *arg2 = (wxWindow *) 0 ;
40321 void *argp1 = 0 ;
40322 int res1 = 0 ;
40323 void *argp2 = 0 ;
40324 int res2 = 0 ;
40325 PyObject * obj0 = 0 ;
40326 PyObject * obj1 = 0 ;
40327 char * kwnames[] = {
40328 (char *) "self",(char *) "window", NULL
40329 };
40330
40331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40333 if (!SWIG_IsOK(res1)) {
40334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40335 }
40336 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40337 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40338 if (!SWIG_IsOK(res2)) {
40339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40340 }
40341 arg2 = reinterpret_cast< wxWindow * >(argp2);
40342 {
40343 PyThreadState* __tstate = wxPyBeginAllowThreads();
40344 (arg1)->RemoveHelp(arg2);
40345 wxPyEndAllowThreads(__tstate);
40346 if (PyErr_Occurred()) SWIG_fail;
40347 }
40348 resultobj = SWIG_Py_Void();
40349 return resultobj;
40350fail:
40351 return NULL;
d55e5bfc
RD
40352}
40353
40354
554f62e9
RD
40355SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40356 PyObject *resultobj = 0;
40357 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40358 void *argp1 = 0 ;
40359 int res1 = 0 ;
40360 PyObject *swig_obj[1] ;
40361
40362 if (!args) SWIG_fail;
40363 swig_obj[0] = args;
40364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40365 if (!SWIG_IsOK(res1)) {
40366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40367 }
40368 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40369 {
40370 PyThreadState* __tstate = wxPyBeginAllowThreads();
40371 wxHelpProvider_Destroy(arg1);
40372 wxPyEndAllowThreads(__tstate);
40373 if (PyErr_Occurred()) SWIG_fail;
40374 }
40375 resultobj = SWIG_Py_Void();
40376 return resultobj;
40377fail:
40378 return NULL;
d55e5bfc
RD
40379}
40380
40381
554f62e9
RD
40382SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40383 PyObject *obj;
40384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40385 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40386 return SWIG_Py_Void();
d55e5bfc
RD
40387}
40388
554f62e9
RD
40389SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40390 PyObject *resultobj = 0;
40391 wxSimpleHelpProvider *result = 0 ;
40392
40393 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40394 {
40395 PyThreadState* __tstate = wxPyBeginAllowThreads();
40396 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40397 wxPyEndAllowThreads(__tstate);
40398 if (PyErr_Occurred()) SWIG_fail;
40399 }
40400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40401 return resultobj;
40402fail:
40403 return NULL;
40404}
40405
40406
40407SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40408 PyObject *obj;
40409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40410 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40411 return SWIG_Py_Void();
40412}
40413
40414SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40415 return SWIG_Python_InitShadowInstance(args);
40416}
40417
40418SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40419 PyObject *resultobj = 0;
40420 wxBitmap *arg1 = 0 ;
40421 wxCursor const &arg2_defvalue = wxNullCursor ;
40422 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40423 wxGenericDragImage *result = 0 ;
40424 void *argp1 = 0 ;
40425 int res1 = 0 ;
40426 void *argp2 = 0 ;
40427 int res2 = 0 ;
40428 PyObject * obj0 = 0 ;
40429 PyObject * obj1 = 0 ;
40430 char * kwnames[] = {
40431 (char *) "image",(char *) "cursor", NULL
40432 };
40433
40434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40435 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40436 if (!SWIG_IsOK(res1)) {
40437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40438 }
40439 if (!argp1) {
40440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40441 }
40442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40443 if (obj1) {
40444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40445 if (!SWIG_IsOK(res2)) {
40446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40447 }
554f62e9
RD
40448 if (!argp2) {
40449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40450 }
554f62e9
RD
40451 arg2 = reinterpret_cast< wxCursor * >(argp2);
40452 }
40453 {
40454 if (!wxPyCheckForApp()) SWIG_fail;
40455 PyThreadState* __tstate = wxPyBeginAllowThreads();
40456 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40457 wxPyEndAllowThreads(__tstate);
40458 if (PyErr_Occurred()) SWIG_fail;
40459 }
40460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40461 return resultobj;
40462fail:
40463 return NULL;
40464}
40465
40466
40467SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40468 PyObject *resultobj = 0;
40469 wxIcon *arg1 = 0 ;
40470 wxCursor const &arg2_defvalue = wxNullCursor ;
40471 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40472 wxGenericDragImage *result = 0 ;
40473 void *argp1 = 0 ;
40474 int res1 = 0 ;
40475 void *argp2 = 0 ;
40476 int res2 = 0 ;
40477 PyObject * obj0 = 0 ;
40478 PyObject * obj1 = 0 ;
40479 char * kwnames[] = {
40480 (char *) "image",(char *) "cursor", NULL
40481 };
40482
40483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40484 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40485 if (!SWIG_IsOK(res1)) {
40486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40487 }
40488 if (!argp1) {
40489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40490 }
40491 arg1 = reinterpret_cast< wxIcon * >(argp1);
40492 if (obj1) {
40493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40494 if (!SWIG_IsOK(res2)) {
40495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40496 }
554f62e9
RD
40497 if (!argp2) {
40498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40499 }
554f62e9
RD
40500 arg2 = reinterpret_cast< wxCursor * >(argp2);
40501 }
40502 {
40503 if (!wxPyCheckForApp()) SWIG_fail;
40504 PyThreadState* __tstate = wxPyBeginAllowThreads();
40505 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40506 wxPyEndAllowThreads(__tstate);
40507 if (PyErr_Occurred()) SWIG_fail;
40508 }
40509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40510 return resultobj;
40511fail:
40512 return NULL;
40513}
40514
40515
40516SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40517 PyObject *resultobj = 0;
40518 wxString *arg1 = 0 ;
40519 wxCursor const &arg2_defvalue = wxNullCursor ;
40520 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40521 wxGenericDragImage *result = 0 ;
40522 bool temp1 = false ;
40523 void *argp2 = 0 ;
40524 int res2 = 0 ;
40525 PyObject * obj0 = 0 ;
40526 PyObject * obj1 = 0 ;
40527 char * kwnames[] = {
40528 (char *) "str",(char *) "cursor", NULL
40529 };
40530
40531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40532 {
40533 arg1 = wxString_in_helper(obj0);
40534 if (arg1 == NULL) SWIG_fail;
40535 temp1 = true;
40536 }
40537 if (obj1) {
40538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40539 if (!SWIG_IsOK(res2)) {
40540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40541 }
554f62e9
RD
40542 if (!argp2) {
40543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40544 }
554f62e9
RD
40545 arg2 = reinterpret_cast< wxCursor * >(argp2);
40546 }
40547 {
40548 if (!wxPyCheckForApp()) SWIG_fail;
40549 PyThreadState* __tstate = wxPyBeginAllowThreads();
40550 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40551 wxPyEndAllowThreads(__tstate);
40552 if (PyErr_Occurred()) SWIG_fail;
40553 }
40554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40555 {
40556 if (temp1)
40557 delete arg1;
40558 }
40559 return resultobj;
40560fail:
40561 {
40562 if (temp1)
40563 delete arg1;
40564 }
40565 return NULL;
40566}
40567
40568
40569SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40570 PyObject *resultobj = 0;
40571 wxPyTreeCtrl *arg1 = 0 ;
40572 wxTreeItemId *arg2 = 0 ;
40573 wxGenericDragImage *result = 0 ;
40574 void *argp1 = 0 ;
40575 int res1 = 0 ;
40576 void *argp2 = 0 ;
40577 int res2 = 0 ;
40578 PyObject * obj0 = 0 ;
40579 PyObject * obj1 = 0 ;
40580 char * kwnames[] = {
40581 (char *) "treeCtrl",(char *) "id", NULL
40582 };
40583
40584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40585 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40586 if (!SWIG_IsOK(res1)) {
40587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40588 }
40589 if (!argp1) {
40590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40591 }
40592 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40594 if (!SWIG_IsOK(res2)) {
40595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40596 }
40597 if (!argp2) {
40598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40599 }
40600 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40601 {
40602 if (!wxPyCheckForApp()) SWIG_fail;
40603 PyThreadState* __tstate = wxPyBeginAllowThreads();
40604 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40605 wxPyEndAllowThreads(__tstate);
40606 if (PyErr_Occurred()) SWIG_fail;
40607 }
40608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40609 return resultobj;
40610fail:
40611 return NULL;
40612}
40613
40614
40615SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40616 PyObject *resultobj = 0;
40617 wxPyListCtrl *arg1 = 0 ;
40618 long arg2 ;
40619 wxGenericDragImage *result = 0 ;
40620 void *argp1 = 0 ;
40621 int res1 = 0 ;
40622 long val2 ;
40623 int ecode2 = 0 ;
40624 PyObject * obj0 = 0 ;
40625 PyObject * obj1 = 0 ;
40626 char * kwnames[] = {
40627 (char *) "listCtrl",(char *) "id", NULL
40628 };
40629
40630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40631 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40632 if (!SWIG_IsOK(res1)) {
40633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40634 }
40635 if (!argp1) {
40636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40637 }
40638 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40639 ecode2 = SWIG_AsVal_long(obj1, &val2);
40640 if (!SWIG_IsOK(ecode2)) {
40641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40642 }
40643 arg2 = static_cast< long >(val2);
40644 {
40645 if (!wxPyCheckForApp()) SWIG_fail;
40646 PyThreadState* __tstate = wxPyBeginAllowThreads();
40647 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40648 wxPyEndAllowThreads(__tstate);
40649 if (PyErr_Occurred()) SWIG_fail;
40650 }
40651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40652 return resultobj;
40653fail:
40654 return NULL;
d55e5bfc
RD
40655}
40656
40657
554f62e9
RD
40658SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40659 PyObject *resultobj = 0;
40660 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40661 void *argp1 = 0 ;
40662 int res1 = 0 ;
40663 PyObject *swig_obj[1] ;
40664
40665 if (!args) SWIG_fail;
40666 swig_obj[0] = args;
40667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40668 if (!SWIG_IsOK(res1)) {
40669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40670 }
40671 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40672 {
40673 PyThreadState* __tstate = wxPyBeginAllowThreads();
40674 delete arg1;
d55e5bfc 40675
554f62e9
RD
40676 wxPyEndAllowThreads(__tstate);
40677 if (PyErr_Occurred()) SWIG_fail;
40678 }
40679 resultobj = SWIG_Py_Void();
40680 return resultobj;
40681fail:
40682 return NULL;
40683}
40684
40685
40686SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40687 PyObject *resultobj = 0;
40688 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40689 wxBitmap *arg2 = (wxBitmap *) 0 ;
40690 void *argp1 = 0 ;
40691 int res1 = 0 ;
40692 void *argp2 = 0 ;
40693 int res2 = 0 ;
40694 PyObject * obj0 = 0 ;
40695 PyObject * obj1 = 0 ;
40696 char * kwnames[] = {
40697 (char *) "self",(char *) "bitmap", NULL
40698 };
40699
40700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40702 if (!SWIG_IsOK(res1)) {
40703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40704 }
40705 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40707 if (!SWIG_IsOK(res2)) {
40708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40709 }
40710 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40711 {
40712 PyThreadState* __tstate = wxPyBeginAllowThreads();
40713 (arg1)->SetBackingBitmap(arg2);
40714 wxPyEndAllowThreads(__tstate);
40715 if (PyErr_Occurred()) SWIG_fail;
40716 }
40717 resultobj = SWIG_Py_Void();
40718 return resultobj;
40719fail:
40720 return NULL;
40721}
40722
40723
40724SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40725 PyObject *resultobj = 0;
40726 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40727 wxPoint *arg2 = 0 ;
40728 wxWindow *arg3 = (wxWindow *) 0 ;
40729 bool arg4 = (bool) false ;
40730 wxRect *arg5 = (wxRect *) NULL ;
40731 bool result;
40732 void *argp1 = 0 ;
40733 int res1 = 0 ;
40734 wxPoint temp2 ;
40735 void *argp3 = 0 ;
40736 int res3 = 0 ;
40737 bool val4 ;
40738 int ecode4 = 0 ;
40739 void *argp5 = 0 ;
40740 int res5 = 0 ;
40741 PyObject * obj0 = 0 ;
40742 PyObject * obj1 = 0 ;
40743 PyObject * obj2 = 0 ;
40744 PyObject * obj3 = 0 ;
40745 PyObject * obj4 = 0 ;
40746 char * kwnames[] = {
40747 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40748 };
40749
40750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40752 if (!SWIG_IsOK(res1)) {
40753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40754 }
40755 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40756 {
40757 arg2 = &temp2;
40758 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40759 }
40760 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40761 if (!SWIG_IsOK(res3)) {
40762 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40763 }
40764 arg3 = reinterpret_cast< wxWindow * >(argp3);
40765 if (obj3) {
40766 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40767 if (!SWIG_IsOK(ecode4)) {
40768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40769 }
40770 arg4 = static_cast< bool >(val4);
40771 }
40772 if (obj4) {
40773 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40774 if (!SWIG_IsOK(res5)) {
40775 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40776 }
554f62e9
RD
40777 arg5 = reinterpret_cast< wxRect * >(argp5);
40778 }
40779 {
40780 PyThreadState* __tstate = wxPyBeginAllowThreads();
40781 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40782 wxPyEndAllowThreads(__tstate);
40783 if (PyErr_Occurred()) SWIG_fail;
40784 }
40785 {
40786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40787 }
40788 return resultobj;
40789fail:
40790 return NULL;
40791}
40792
40793
40794SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40795 PyObject *resultobj = 0;
40796 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40797 wxPoint *arg2 = 0 ;
40798 wxWindow *arg3 = (wxWindow *) 0 ;
40799 wxWindow *arg4 = (wxWindow *) 0 ;
40800 bool result;
40801 void *argp1 = 0 ;
40802 int res1 = 0 ;
40803 wxPoint temp2 ;
40804 void *argp3 = 0 ;
40805 int res3 = 0 ;
40806 void *argp4 = 0 ;
40807 int res4 = 0 ;
40808 PyObject * obj0 = 0 ;
40809 PyObject * obj1 = 0 ;
40810 PyObject * obj2 = 0 ;
40811 PyObject * obj3 = 0 ;
40812 char * kwnames[] = {
40813 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40814 };
40815
40816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40818 if (!SWIG_IsOK(res1)) {
40819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40820 }
40821 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40822 {
40823 arg2 = &temp2;
40824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40825 }
40826 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40827 if (!SWIG_IsOK(res3)) {
40828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40829 }
40830 arg3 = reinterpret_cast< wxWindow * >(argp3);
40831 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40832 if (!SWIG_IsOK(res4)) {
40833 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40834 }
40835 arg4 = reinterpret_cast< wxWindow * >(argp4);
40836 {
40837 PyThreadState* __tstate = wxPyBeginAllowThreads();
40838 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40839 wxPyEndAllowThreads(__tstate);
40840 if (PyErr_Occurred()) SWIG_fail;
40841 }
40842 {
40843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40844 }
40845 return resultobj;
40846fail:
40847 return NULL;
d55e5bfc
RD
40848}
40849
40850
554f62e9
RD
40851SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40852 PyObject *resultobj = 0;
40853 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40854 bool result;
40855 void *argp1 = 0 ;
40856 int res1 = 0 ;
40857 PyObject *swig_obj[1] ;
40858
40859 if (!args) SWIG_fail;
40860 swig_obj[0] = args;
40861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40862 if (!SWIG_IsOK(res1)) {
40863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40864 }
40865 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40866 {
40867 PyThreadState* __tstate = wxPyBeginAllowThreads();
40868 result = (bool)(arg1)->EndDrag();
40869 wxPyEndAllowThreads(__tstate);
40870 if (PyErr_Occurred()) SWIG_fail;
40871 }
40872 {
40873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40874 }
40875 return resultobj;
40876fail:
40877 return NULL;
40878}
40879
40880
40881SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40882 PyObject *resultobj = 0;
40883 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40884 wxPoint *arg2 = 0 ;
40885 bool result;
40886 void *argp1 = 0 ;
40887 int res1 = 0 ;
40888 wxPoint temp2 ;
40889 PyObject * obj0 = 0 ;
40890 PyObject * obj1 = 0 ;
40891 char * kwnames[] = {
40892 (char *) "self",(char *) "pt", NULL
40893 };
40894
40895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40897 if (!SWIG_IsOK(res1)) {
40898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40899 }
40900 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40901 {
40902 arg2 = &temp2;
40903 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40904 }
40905 {
40906 PyThreadState* __tstate = wxPyBeginAllowThreads();
40907 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40908 wxPyEndAllowThreads(__tstate);
40909 if (PyErr_Occurred()) SWIG_fail;
40910 }
40911 {
40912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40913 }
40914 return resultobj;
40915fail:
40916 return NULL;
d55e5bfc
RD
40917}
40918
40919
554f62e9
RD
40920SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40921 PyObject *resultobj = 0;
40922 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40923 bool result;
40924 void *argp1 = 0 ;
40925 int res1 = 0 ;
40926 PyObject *swig_obj[1] ;
40927
40928 if (!args) SWIG_fail;
40929 swig_obj[0] = args;
40930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40931 if (!SWIG_IsOK(res1)) {
40932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40933 }
40934 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40935 {
40936 PyThreadState* __tstate = wxPyBeginAllowThreads();
40937 result = (bool)(arg1)->Show();
40938 wxPyEndAllowThreads(__tstate);
40939 if (PyErr_Occurred()) SWIG_fail;
40940 }
40941 {
40942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40943 }
40944 return resultobj;
40945fail:
40946 return NULL;
d55e5bfc
RD
40947}
40948
40949
554f62e9
RD
40950SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40951 PyObject *resultobj = 0;
40952 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40953 bool result;
40954 void *argp1 = 0 ;
40955 int res1 = 0 ;
40956 PyObject *swig_obj[1] ;
40957
40958 if (!args) SWIG_fail;
40959 swig_obj[0] = args;
40960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40961 if (!SWIG_IsOK(res1)) {
40962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40963 }
40964 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40965 {
40966 PyThreadState* __tstate = wxPyBeginAllowThreads();
40967 result = (bool)(arg1)->Hide();
40968 wxPyEndAllowThreads(__tstate);
40969 if (PyErr_Occurred()) SWIG_fail;
40970 }
40971 {
40972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40973 }
40974 return resultobj;
40975fail:
40976 return NULL;
40977}
40978
40979
40980SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40981 PyObject *resultobj = 0;
40982 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40983 wxPoint *arg2 = 0 ;
40984 wxRect result;
40985 void *argp1 = 0 ;
40986 int res1 = 0 ;
40987 wxPoint temp2 ;
40988 PyObject * obj0 = 0 ;
40989 PyObject * obj1 = 0 ;
40990 char * kwnames[] = {
40991 (char *) "self",(char *) "pos", NULL
40992 };
40993
40994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40996 if (!SWIG_IsOK(res1)) {
40997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40998 }
40999 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41000 {
41001 arg2 = &temp2;
41002 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41003 }
41004 {
41005 PyThreadState* __tstate = wxPyBeginAllowThreads();
41006 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41007 wxPyEndAllowThreads(__tstate);
41008 if (PyErr_Occurred()) SWIG_fail;
41009 }
41010 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41011 return resultobj;
41012fail:
41013 return NULL;
41014}
41015
41016
41017SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41018 PyObject *resultobj = 0;
41019 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41020 wxDC *arg2 = 0 ;
41021 wxPoint *arg3 = 0 ;
41022 bool result;
41023 void *argp1 = 0 ;
41024 int res1 = 0 ;
41025 void *argp2 = 0 ;
41026 int res2 = 0 ;
41027 wxPoint temp3 ;
41028 PyObject * obj0 = 0 ;
41029 PyObject * obj1 = 0 ;
41030 PyObject * obj2 = 0 ;
41031 char * kwnames[] = {
41032 (char *) "self",(char *) "dc",(char *) "pos", NULL
41033 };
41034
41035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41037 if (!SWIG_IsOK(res1)) {
41038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41039 }
41040 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41042 if (!SWIG_IsOK(res2)) {
41043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41044 }
41045 if (!argp2) {
41046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41047 }
41048 arg2 = reinterpret_cast< wxDC * >(argp2);
41049 {
41050 arg3 = &temp3;
41051 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41052 }
41053 {
41054 PyThreadState* __tstate = wxPyBeginAllowThreads();
41055 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41056 wxPyEndAllowThreads(__tstate);
41057 if (PyErr_Occurred()) SWIG_fail;
41058 }
41059 {
41060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41061 }
41062 return resultobj;
41063fail:
41064 return NULL;
41065}
41066
41067
41068SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41069 PyObject *resultobj = 0;
41070 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41071 wxDC *arg2 = 0 ;
41072 wxMemoryDC *arg3 = 0 ;
41073 wxRect *arg4 = 0 ;
41074 wxRect *arg5 = 0 ;
41075 bool result;
41076 void *argp1 = 0 ;
41077 int res1 = 0 ;
41078 void *argp2 = 0 ;
41079 int res2 = 0 ;
41080 void *argp3 = 0 ;
41081 int res3 = 0 ;
41082 wxRect temp4 ;
41083 wxRect temp5 ;
41084 PyObject * obj0 = 0 ;
41085 PyObject * obj1 = 0 ;
41086 PyObject * obj2 = 0 ;
41087 PyObject * obj3 = 0 ;
41088 PyObject * obj4 = 0 ;
41089 char * kwnames[] = {
41090 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41091 };
41092
41093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41095 if (!SWIG_IsOK(res1)) {
41096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41097 }
41098 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41099 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41100 if (!SWIG_IsOK(res2)) {
41101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41102 }
41103 if (!argp2) {
41104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41105 }
41106 arg2 = reinterpret_cast< wxDC * >(argp2);
41107 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41108 if (!SWIG_IsOK(res3)) {
41109 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41110 }
41111 if (!argp3) {
41112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41113 }
41114 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41115 {
41116 arg4 = &temp4;
41117 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41118 }
41119 {
41120 arg5 = &temp5;
41121 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41122 }
41123 {
41124 PyThreadState* __tstate = wxPyBeginAllowThreads();
41125 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41126 wxPyEndAllowThreads(__tstate);
41127 if (PyErr_Occurred()) SWIG_fail;
41128 }
41129 {
41130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41131 }
41132 return resultobj;
41133fail:
41134 return NULL;
41135}
41136
41137
41138SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41139 PyObject *resultobj = 0;
41140 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41141 wxPoint *arg2 = 0 ;
41142 wxPoint *arg3 = 0 ;
41143 bool arg4 ;
41144 bool arg5 ;
41145 bool result;
41146 void *argp1 = 0 ;
41147 int res1 = 0 ;
41148 wxPoint temp2 ;
41149 wxPoint temp3 ;
41150 bool val4 ;
41151 int ecode4 = 0 ;
41152 bool val5 ;
41153 int ecode5 = 0 ;
41154 PyObject * obj0 = 0 ;
41155 PyObject * obj1 = 0 ;
41156 PyObject * obj2 = 0 ;
41157 PyObject * obj3 = 0 ;
41158 PyObject * obj4 = 0 ;
41159 char * kwnames[] = {
41160 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41161 };
41162
41163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41165 if (!SWIG_IsOK(res1)) {
41166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41167 }
41168 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41169 {
41170 arg2 = &temp2;
41171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41172 }
41173 {
41174 arg3 = &temp3;
41175 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41176 }
41177 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41178 if (!SWIG_IsOK(ecode4)) {
41179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41180 }
41181 arg4 = static_cast< bool >(val4);
41182 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41183 if (!SWIG_IsOK(ecode5)) {
41184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41185 }
41186 arg5 = static_cast< bool >(val5);
41187 {
41188 PyThreadState* __tstate = wxPyBeginAllowThreads();
41189 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41190 wxPyEndAllowThreads(__tstate);
41191 if (PyErr_Occurred()) SWIG_fail;
41192 }
41193 {
41194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41195 }
41196 return resultobj;
41197fail:
41198 return NULL;
d55e5bfc
RD
41199}
41200
41201
554f62e9
RD
41202SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41203 PyObject *obj;
41204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41205 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41206 return SWIG_Py_Void();
d55e5bfc
RD
41207}
41208
554f62e9
RD
41209SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41210 return SWIG_Python_InitShadowInstance(args);
41211}
d55e5bfc 41212
554f62e9
RD
41213SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41214 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41215 return 1;
d55e5bfc
RD
41216}
41217
41218
554f62e9
RD
41219SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41220 PyObject *pyobj = 0;
41221
41222 {
41223#if wxUSE_UNICODE
41224 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41225#else
41226 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41227#endif
41228 }
41229 return pyobj;
41230}
41231
41232
41233SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41234 PyObject *resultobj = 0;
41235 wxWindow *arg1 = (wxWindow *) 0 ;
41236 int arg2 = (int) -1 ;
41237 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41238 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41239 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41240 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41241 wxSize const &arg5_defvalue = wxDefaultSize ;
41242 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41243 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41244 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41245 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41246 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41247 wxString *arg8 = (wxString *) &arg8_defvalue ;
41248 wxDatePickerCtrl *result = 0 ;
41249 void *argp1 = 0 ;
41250 int res1 = 0 ;
41251 int val2 ;
41252 int ecode2 = 0 ;
41253 void *argp3 = 0 ;
41254 int res3 = 0 ;
41255 wxPoint temp4 ;
41256 wxSize temp5 ;
41257 long val6 ;
41258 int ecode6 = 0 ;
41259 void *argp7 = 0 ;
41260 int res7 = 0 ;
41261 bool temp8 = false ;
41262 PyObject * obj0 = 0 ;
41263 PyObject * obj1 = 0 ;
41264 PyObject * obj2 = 0 ;
41265 PyObject * obj3 = 0 ;
41266 PyObject * obj4 = 0 ;
41267 PyObject * obj5 = 0 ;
41268 PyObject * obj6 = 0 ;
41269 PyObject * obj7 = 0 ;
41270 char * kwnames[] = {
41271 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41272 };
41273
41274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41276 if (!SWIG_IsOK(res1)) {
41277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41278 }
41279 arg1 = reinterpret_cast< wxWindow * >(argp1);
41280 if (obj1) {
41281 ecode2 = SWIG_AsVal_int(obj1, &val2);
41282 if (!SWIG_IsOK(ecode2)) {
41283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41284 }
41285 arg2 = static_cast< int >(val2);
41286 }
41287 if (obj2) {
41288 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41289 if (!SWIG_IsOK(res3)) {
41290 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41291 }
554f62e9
RD
41292 if (!argp3) {
41293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41294 }
554f62e9
RD
41295 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41296 }
41297 if (obj3) {
d55e5bfc 41298 {
554f62e9
RD
41299 arg4 = &temp4;
41300 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 41301 }
554f62e9
RD
41302 }
41303 if (obj4) {
093d3ff1 41304 {
554f62e9
RD
41305 arg5 = &temp5;
41306 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41307 }
554f62e9
RD
41308 }
41309 if (obj5) {
41310 ecode6 = SWIG_AsVal_long(obj5, &val6);
41311 if (!SWIG_IsOK(ecode6)) {
41312 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41313 }
41314 arg6 = static_cast< long >(val6);
41315 }
41316 if (obj6) {
41317 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41318 if (!SWIG_IsOK(res7)) {
41319 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41320 }
554f62e9
RD
41321 if (!argp7) {
41322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 41323 }
554f62e9
RD
41324 arg7 = reinterpret_cast< wxValidator * >(argp7);
41325 }
41326 if (obj7) {
d55e5bfc 41327 {
554f62e9
RD
41328 arg8 = wxString_in_helper(obj7);
41329 if (arg8 == NULL) SWIG_fail;
41330 temp8 = true;
d55e5bfc 41331 }
554f62e9
RD
41332 }
41333 {
41334 if (!wxPyCheckForApp()) SWIG_fail;
41335 PyThreadState* __tstate = wxPyBeginAllowThreads();
41336 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41337 wxPyEndAllowThreads(__tstate);
41338 if (PyErr_Occurred()) SWIG_fail;
41339 }
41340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41341 {
41342 if (temp8)
41343 delete arg8;
41344 }
41345 return resultobj;
41346fail:
41347 {
41348 if (temp8)
41349 delete arg8;
41350 }
41351 return NULL;
d55e5bfc
RD
41352}
41353
41354
554f62e9
RD
41355SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41356 PyObject *resultobj = 0;
41357 wxDatePickerCtrl *result = 0 ;
41358
41359 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41360 {
41361 if (!wxPyCheckForApp()) SWIG_fail;
41362 PyThreadState* __tstate = wxPyBeginAllowThreads();
41363 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41364 wxPyEndAllowThreads(__tstate);
41365 if (PyErr_Occurred()) SWIG_fail;
41366 }
41367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41368 return resultobj;
41369fail:
41370 return NULL;
41371}
41372
41373
41374SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41375 PyObject *resultobj = 0;
41376 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41377 wxWindow *arg2 = (wxWindow *) 0 ;
41378 int arg3 = (int) -1 ;
41379 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41380 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41381 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41382 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41383 wxSize const &arg6_defvalue = wxDefaultSize ;
41384 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41385 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41386 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41387 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41388 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41389 wxString *arg9 = (wxString *) &arg9_defvalue ;
41390 bool result;
41391 void *argp1 = 0 ;
41392 int res1 = 0 ;
41393 void *argp2 = 0 ;
41394 int res2 = 0 ;
41395 int val3 ;
41396 int ecode3 = 0 ;
41397 void *argp4 = 0 ;
41398 int res4 = 0 ;
41399 wxPoint temp5 ;
41400 wxSize temp6 ;
41401 long val7 ;
41402 int ecode7 = 0 ;
41403 void *argp8 = 0 ;
41404 int res8 = 0 ;
41405 bool temp9 = false ;
41406 PyObject * obj0 = 0 ;
41407 PyObject * obj1 = 0 ;
41408 PyObject * obj2 = 0 ;
41409 PyObject * obj3 = 0 ;
41410 PyObject * obj4 = 0 ;
41411 PyObject * obj5 = 0 ;
41412 PyObject * obj6 = 0 ;
41413 PyObject * obj7 = 0 ;
41414 PyObject * obj8 = 0 ;
41415 char * kwnames[] = {
41416 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41417 };
41418
41419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41421 if (!SWIG_IsOK(res1)) {
41422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41423 }
41424 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41426 if (!SWIG_IsOK(res2)) {
41427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41428 }
41429 arg2 = reinterpret_cast< wxWindow * >(argp2);
41430 if (obj2) {
41431 ecode3 = SWIG_AsVal_int(obj2, &val3);
41432 if (!SWIG_IsOK(ecode3)) {
41433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41434 }
41435 arg3 = static_cast< int >(val3);
41436 }
41437 if (obj3) {
41438 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41439 if (!SWIG_IsOK(res4)) {
41440 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
093d3ff1 41441 }
554f62e9
RD
41442 if (!argp4) {
41443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41444 }
554f62e9
RD
41445 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41446 }
41447 if (obj4) {
093d3ff1 41448 {
554f62e9
RD
41449 arg5 = &temp5;
41450 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41451 }
554f62e9
RD
41452 }
41453 if (obj5) {
d55e5bfc 41454 {
554f62e9
RD
41455 arg6 = &temp6;
41456 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41457 }
554f62e9
RD
41458 }
41459 if (obj6) {
41460 ecode7 = SWIG_AsVal_long(obj6, &val7);
41461 if (!SWIG_IsOK(ecode7)) {
41462 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41463 }
41464 arg7 = static_cast< long >(val7);
41465 }
41466 if (obj7) {
41467 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41468 if (!SWIG_IsOK(res8)) {
41469 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41470 }
41471 if (!argp8) {
41472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41473 }
554f62e9
RD
41474 arg8 = reinterpret_cast< wxValidator * >(argp8);
41475 }
41476 if (obj8) {
d55e5bfc 41477 {
554f62e9
RD
41478 arg9 = wxString_in_helper(obj8);
41479 if (arg9 == NULL) SWIG_fail;
41480 temp9 = true;
d55e5bfc 41481 }
554f62e9
RD
41482 }
41483 {
41484 PyThreadState* __tstate = wxPyBeginAllowThreads();
41485 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41486 wxPyEndAllowThreads(__tstate);
41487 if (PyErr_Occurred()) SWIG_fail;
41488 }
41489 {
41490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41491 }
41492 {
41493 if (temp9)
41494 delete arg9;
41495 }
41496 return resultobj;
41497fail:
41498 {
41499 if (temp9)
41500 delete arg9;
41501 }
41502 return NULL;
41503}
41504
41505
41506SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41507 PyObject *resultobj = 0;
41508 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41509 wxDateTime *arg2 = 0 ;
41510 void *argp1 = 0 ;
41511 int res1 = 0 ;
41512 void *argp2 = 0 ;
41513 int res2 = 0 ;
41514 PyObject * obj0 = 0 ;
41515 PyObject * obj1 = 0 ;
41516 char * kwnames[] = {
41517 (char *) "self",(char *) "dt", NULL
41518 };
41519
41520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41522 if (!SWIG_IsOK(res1)) {
41523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41524 }
41525 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41526 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41527 if (!SWIG_IsOK(res2)) {
41528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41529 }
41530 if (!argp2) {
41531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41532 }
41533 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41534 {
41535 PyThreadState* __tstate = wxPyBeginAllowThreads();
41536 (arg1)->SetValue((wxDateTime const &)*arg2);
41537 wxPyEndAllowThreads(__tstate);
41538 if (PyErr_Occurred()) SWIG_fail;
41539 }
41540 resultobj = SWIG_Py_Void();
41541 return resultobj;
41542fail:
41543 return NULL;
d55e5bfc
RD
41544}
41545
41546
554f62e9
RD
41547SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41548 PyObject *resultobj = 0;
41549 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41550 wxDateTime result;
41551 void *argp1 = 0 ;
41552 int res1 = 0 ;
41553 PyObject *swig_obj[1] ;
41554
41555 if (!args) SWIG_fail;
41556 swig_obj[0] = args;
41557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41558 if (!SWIG_IsOK(res1)) {
41559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41560 }
41561 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41562 {
41563 PyThreadState* __tstate = wxPyBeginAllowThreads();
41564 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41565 wxPyEndAllowThreads(__tstate);
41566 if (PyErr_Occurred()) SWIG_fail;
41567 }
41568 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41569 return resultobj;
41570fail:
41571 return NULL;
41572}
41573
41574
41575SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41576 PyObject *resultobj = 0;
41577 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41578 wxDateTime *arg2 = 0 ;
41579 wxDateTime *arg3 = 0 ;
41580 void *argp1 = 0 ;
41581 int res1 = 0 ;
41582 void *argp2 = 0 ;
41583 int res2 = 0 ;
41584 void *argp3 = 0 ;
41585 int res3 = 0 ;
41586 PyObject * obj0 = 0 ;
41587 PyObject * obj1 = 0 ;
41588 PyObject * obj2 = 0 ;
41589 char * kwnames[] = {
41590 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41591 };
41592
41593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41595 if (!SWIG_IsOK(res1)) {
41596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41597 }
41598 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41600 if (!SWIG_IsOK(res2)) {
41601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41602 }
41603 if (!argp2) {
41604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41605 }
41606 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41607 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41608 if (!SWIG_IsOK(res3)) {
41609 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41610 }
41611 if (!argp3) {
41612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41613 }
41614 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41615 {
41616 PyThreadState* __tstate = wxPyBeginAllowThreads();
41617 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41618 wxPyEndAllowThreads(__tstate);
41619 if (PyErr_Occurred()) SWIG_fail;
41620 }
41621 resultobj = SWIG_Py_Void();
41622 return resultobj;
41623fail:
41624 return NULL;
d55e5bfc
RD
41625}
41626
41627
554f62e9
RD
41628SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41629 PyObject *resultobj = 0;
41630 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41631 wxDateTime result;
41632 void *argp1 = 0 ;
41633 int res1 = 0 ;
41634 PyObject *swig_obj[1] ;
41635
41636 if (!args) SWIG_fail;
41637 swig_obj[0] = args;
41638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41639 if (!SWIG_IsOK(res1)) {
41640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41641 }
41642 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41643 {
41644 PyThreadState* __tstate = wxPyBeginAllowThreads();
41645 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41646 wxPyEndAllowThreads(__tstate);
41647 if (PyErr_Occurred()) SWIG_fail;
41648 }
41649 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41650 return resultobj;
41651fail:
41652 return NULL;
d55e5bfc
RD
41653}
41654
41655
554f62e9
RD
41656SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41657 PyObject *resultobj = 0;
41658 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41659 wxDateTime result;
41660 void *argp1 = 0 ;
41661 int res1 = 0 ;
41662 PyObject *swig_obj[1] ;
41663
41664 if (!args) SWIG_fail;
41665 swig_obj[0] = args;
41666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41667 if (!SWIG_IsOK(res1)) {
41668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41669 }
41670 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41671 {
41672 PyThreadState* __tstate = wxPyBeginAllowThreads();
41673 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41674 wxPyEndAllowThreads(__tstate);
41675 if (PyErr_Occurred()) SWIG_fail;
41676 }
41677 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41678 return resultobj;
41679fail:
41680 return NULL;
d55e5bfc
RD
41681}
41682
41683
554f62e9
RD
41684SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41685 PyObject *obj;
41686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41687 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41688 return SWIG_Py_Void();
d55e5bfc
RD
41689}
41690
554f62e9
RD
41691SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41692 return SWIG_Python_InitShadowInstance(args);
41693}
d55e5bfc 41694
704eda0c
RD
41695SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41696 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41697 return 1;
41698}
41699
41700
41701SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41702 PyObject *pyobj = 0;
41703
41704 {
41705#if wxUSE_UNICODE
41706 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41707#else
41708 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41709#endif
41710 }
41711 return pyobj;
41712}
41713
41714
41715SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41716 PyObject *resultobj = 0;
41717 wxWindow *arg1 = (wxWindow *) 0 ;
41718 int arg2 ;
41719 wxString *arg3 = 0 ;
41720 wxString *arg4 = 0 ;
41721 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41722 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41723 wxSize const &arg6_defvalue = wxDefaultSize ;
41724 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41725 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41726 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41727 wxString *arg8 = (wxString *) &arg8_defvalue ;
41728 wxHyperlinkCtrl *result = 0 ;
41729 void *argp1 = 0 ;
41730 int res1 = 0 ;
41731 int val2 ;
41732 int ecode2 = 0 ;
41733 bool temp3 = false ;
41734 bool temp4 = false ;
41735 wxPoint temp5 ;
41736 wxSize temp6 ;
41737 long val7 ;
41738 int ecode7 = 0 ;
41739 bool temp8 = false ;
41740 PyObject * obj0 = 0 ;
41741 PyObject * obj1 = 0 ;
41742 PyObject * obj2 = 0 ;
41743 PyObject * obj3 = 0 ;
41744 PyObject * obj4 = 0 ;
41745 PyObject * obj5 = 0 ;
41746 PyObject * obj6 = 0 ;
41747 PyObject * obj7 = 0 ;
41748 char * kwnames[] = {
41749 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41750 };
41751
41752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41754 if (!SWIG_IsOK(res1)) {
41755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41756 }
41757 arg1 = reinterpret_cast< wxWindow * >(argp1);
41758 ecode2 = SWIG_AsVal_int(obj1, &val2);
41759 if (!SWIG_IsOK(ecode2)) {
41760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41761 }
41762 arg2 = static_cast< int >(val2);
41763 {
41764 arg3 = wxString_in_helper(obj2);
41765 if (arg3 == NULL) SWIG_fail;
41766 temp3 = true;
41767 }
41768 {
41769 arg4 = wxString_in_helper(obj3);
41770 if (arg4 == NULL) SWIG_fail;
41771 temp4 = true;
41772 }
41773 if (obj4) {
41774 {
41775 arg5 = &temp5;
41776 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41777 }
41778 }
41779 if (obj5) {
41780 {
41781 arg6 = &temp6;
41782 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41783 }
41784 }
41785 if (obj6) {
41786 ecode7 = SWIG_AsVal_long(obj6, &val7);
41787 if (!SWIG_IsOK(ecode7)) {
41788 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41789 }
41790 arg7 = static_cast< long >(val7);
41791 }
41792 if (obj7) {
41793 {
41794 arg8 = wxString_in_helper(obj7);
41795 if (arg8 == NULL) SWIG_fail;
41796 temp8 = true;
41797 }
41798 }
41799 {
41800 if (!wxPyCheckForApp()) SWIG_fail;
41801 PyThreadState* __tstate = wxPyBeginAllowThreads();
41802 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41803 wxPyEndAllowThreads(__tstate);
41804 if (PyErr_Occurred()) SWIG_fail;
41805 }
41806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41807 {
41808 if (temp3)
41809 delete arg3;
41810 }
41811 {
41812 if (temp4)
41813 delete arg4;
41814 }
41815 {
41816 if (temp8)
41817 delete arg8;
41818 }
41819 return resultobj;
41820fail:
41821 {
41822 if (temp3)
41823 delete arg3;
41824 }
41825 {
41826 if (temp4)
41827 delete arg4;
41828 }
41829 {
41830 if (temp8)
41831 delete arg8;
41832 }
41833 return NULL;
41834}
41835
41836
41837SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41838 PyObject *resultobj = 0;
41839 wxHyperlinkCtrl *result = 0 ;
41840
41841 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41842 {
41843 if (!wxPyCheckForApp()) SWIG_fail;
41844 PyThreadState* __tstate = wxPyBeginAllowThreads();
41845 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41846 wxPyEndAllowThreads(__tstate);
41847 if (PyErr_Occurred()) SWIG_fail;
41848 }
41849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41850 return resultobj;
41851fail:
41852 return NULL;
41853}
41854
41855
41856SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41857 PyObject *resultobj = 0;
41858 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41859 wxWindow *arg2 = (wxWindow *) 0 ;
41860 int arg3 ;
41861 wxString *arg4 = 0 ;
41862 wxString *arg5 = 0 ;
41863 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41864 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41865 wxSize const &arg7_defvalue = wxDefaultSize ;
41866 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41867 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41868 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41869 wxString *arg9 = (wxString *) &arg9_defvalue ;
41870 bool result;
41871 void *argp1 = 0 ;
41872 int res1 = 0 ;
41873 void *argp2 = 0 ;
41874 int res2 = 0 ;
41875 int val3 ;
41876 int ecode3 = 0 ;
41877 bool temp4 = false ;
41878 bool temp5 = false ;
41879 wxPoint temp6 ;
41880 wxSize temp7 ;
41881 long val8 ;
41882 int ecode8 = 0 ;
41883 bool temp9 = false ;
41884 PyObject * obj0 = 0 ;
41885 PyObject * obj1 = 0 ;
41886 PyObject * obj2 = 0 ;
41887 PyObject * obj3 = 0 ;
41888 PyObject * obj4 = 0 ;
41889 PyObject * obj5 = 0 ;
41890 PyObject * obj6 = 0 ;
41891 PyObject * obj7 = 0 ;
41892 PyObject * obj8 = 0 ;
41893 char * kwnames[] = {
41894 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41895 };
41896
41897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41899 if (!SWIG_IsOK(res1)) {
41900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41901 }
41902 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41904 if (!SWIG_IsOK(res2)) {
41905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41906 }
41907 arg2 = reinterpret_cast< wxWindow * >(argp2);
41908 ecode3 = SWIG_AsVal_int(obj2, &val3);
41909 if (!SWIG_IsOK(ecode3)) {
41910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41911 }
41912 arg3 = static_cast< int >(val3);
41913 {
41914 arg4 = wxString_in_helper(obj3);
41915 if (arg4 == NULL) SWIG_fail;
41916 temp4 = true;
41917 }
41918 {
41919 arg5 = wxString_in_helper(obj4);
41920 if (arg5 == NULL) SWIG_fail;
41921 temp5 = true;
41922 }
41923 if (obj5) {
41924 {
41925 arg6 = &temp6;
41926 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41927 }
41928 }
41929 if (obj6) {
41930 {
41931 arg7 = &temp7;
41932 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41933 }
41934 }
41935 if (obj7) {
41936 ecode8 = SWIG_AsVal_long(obj7, &val8);
41937 if (!SWIG_IsOK(ecode8)) {
41938 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41939 }
41940 arg8 = static_cast< long >(val8);
41941 }
41942 if (obj8) {
41943 {
41944 arg9 = wxString_in_helper(obj8);
41945 if (arg9 == NULL) SWIG_fail;
41946 temp9 = true;
41947 }
41948 }
41949 {
41950 PyThreadState* __tstate = wxPyBeginAllowThreads();
41951 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41952 wxPyEndAllowThreads(__tstate);
41953 if (PyErr_Occurred()) SWIG_fail;
41954 }
41955 {
41956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41957 }
41958 {
41959 if (temp4)
41960 delete arg4;
41961 }
41962 {
41963 if (temp5)
41964 delete arg5;
41965 }
41966 {
41967 if (temp9)
41968 delete arg9;
41969 }
41970 return resultobj;
41971fail:
41972 {
41973 if (temp4)
41974 delete arg4;
41975 }
41976 {
41977 if (temp5)
41978 delete arg5;
41979 }
41980 {
41981 if (temp9)
41982 delete arg9;
41983 }
41984 return NULL;
41985}
41986
41987
41988SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41989 PyObject *resultobj = 0;
41990 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41991 wxColour result;
41992 void *argp1 = 0 ;
41993 int res1 = 0 ;
41994 PyObject *swig_obj[1] ;
41995
41996 if (!args) SWIG_fail;
41997 swig_obj[0] = args;
41998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41999 if (!SWIG_IsOK(res1)) {
42000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42001 }
42002 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42003 {
42004 PyThreadState* __tstate = wxPyBeginAllowThreads();
42005 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42006 wxPyEndAllowThreads(__tstate);
42007 if (PyErr_Occurred()) SWIG_fail;
42008 }
42009 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42010 return resultobj;
42011fail:
42012 return NULL;
42013}
42014
42015
42016SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42017 PyObject *resultobj = 0;
42018 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42019 wxColour *arg2 = 0 ;
42020 void *argp1 = 0 ;
42021 int res1 = 0 ;
42022 wxColour temp2 ;
42023 PyObject * obj0 = 0 ;
42024 PyObject * obj1 = 0 ;
42025 char * kwnames[] = {
42026 (char *) "self",(char *) "colour", NULL
42027 };
42028
42029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42031 if (!SWIG_IsOK(res1)) {
42032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42033 }
42034 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42035 {
42036 arg2 = &temp2;
42037 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42038 }
42039 {
42040 PyThreadState* __tstate = wxPyBeginAllowThreads();
42041 (arg1)->SetHoverColour((wxColour const &)*arg2);
42042 wxPyEndAllowThreads(__tstate);
42043 if (PyErr_Occurred()) SWIG_fail;
42044 }
42045 resultobj = SWIG_Py_Void();
42046 return resultobj;
42047fail:
42048 return NULL;
42049}
42050
42051
42052SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42053 PyObject *resultobj = 0;
42054 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42055 wxColour result;
42056 void *argp1 = 0 ;
42057 int res1 = 0 ;
42058 PyObject *swig_obj[1] ;
42059
42060 if (!args) SWIG_fail;
42061 swig_obj[0] = args;
42062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42063 if (!SWIG_IsOK(res1)) {
42064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42065 }
42066 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42067 {
42068 PyThreadState* __tstate = wxPyBeginAllowThreads();
42069 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42070 wxPyEndAllowThreads(__tstate);
42071 if (PyErr_Occurred()) SWIG_fail;
42072 }
42073 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42074 return resultobj;
42075fail:
42076 return NULL;
42077}
42078
42079
42080SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42081 PyObject *resultobj = 0;
42082 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42083 wxColour *arg2 = 0 ;
42084 void *argp1 = 0 ;
42085 int res1 = 0 ;
42086 wxColour temp2 ;
42087 PyObject * obj0 = 0 ;
42088 PyObject * obj1 = 0 ;
42089 char * kwnames[] = {
42090 (char *) "self",(char *) "colour", NULL
42091 };
42092
42093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42095 if (!SWIG_IsOK(res1)) {
42096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42097 }
42098 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42099 {
42100 arg2 = &temp2;
42101 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42102 }
42103 {
42104 PyThreadState* __tstate = wxPyBeginAllowThreads();
42105 (arg1)->SetNormalColour((wxColour const &)*arg2);
42106 wxPyEndAllowThreads(__tstate);
42107 if (PyErr_Occurred()) SWIG_fail;
42108 }
42109 resultobj = SWIG_Py_Void();
42110 return resultobj;
42111fail:
42112 return NULL;
42113}
42114
42115
42116SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42117 PyObject *resultobj = 0;
42118 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42119 wxColour result;
42120 void *argp1 = 0 ;
42121 int res1 = 0 ;
42122 PyObject *swig_obj[1] ;
42123
42124 if (!args) SWIG_fail;
42125 swig_obj[0] = args;
42126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42127 if (!SWIG_IsOK(res1)) {
42128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42129 }
42130 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42131 {
42132 PyThreadState* __tstate = wxPyBeginAllowThreads();
42133 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42134 wxPyEndAllowThreads(__tstate);
42135 if (PyErr_Occurred()) SWIG_fail;
42136 }
42137 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42138 return resultobj;
42139fail:
42140 return NULL;
42141}
42142
42143
42144SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42145 PyObject *resultobj = 0;
42146 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42147 wxColour *arg2 = 0 ;
42148 void *argp1 = 0 ;
42149 int res1 = 0 ;
42150 wxColour temp2 ;
42151 PyObject * obj0 = 0 ;
42152 PyObject * obj1 = 0 ;
42153 char * kwnames[] = {
42154 (char *) "self",(char *) "colour", NULL
42155 };
42156
42157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42159 if (!SWIG_IsOK(res1)) {
42160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42161 }
42162 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42163 {
42164 arg2 = &temp2;
42165 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42166 }
42167 {
42168 PyThreadState* __tstate = wxPyBeginAllowThreads();
42169 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42170 wxPyEndAllowThreads(__tstate);
42171 if (PyErr_Occurred()) SWIG_fail;
42172 }
42173 resultobj = SWIG_Py_Void();
42174 return resultobj;
42175fail:
42176 return NULL;
42177}
42178
42179
42180SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42181 PyObject *resultobj = 0;
42182 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42183 wxString result;
42184 void *argp1 = 0 ;
42185 int res1 = 0 ;
42186 PyObject *swig_obj[1] ;
42187
42188 if (!args) SWIG_fail;
42189 swig_obj[0] = args;
42190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42191 if (!SWIG_IsOK(res1)) {
42192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42193 }
42194 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42195 {
42196 PyThreadState* __tstate = wxPyBeginAllowThreads();
42197 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42198 wxPyEndAllowThreads(__tstate);
42199 if (PyErr_Occurred()) SWIG_fail;
42200 }
42201 {
42202#if wxUSE_UNICODE
42203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42204#else
42205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42206#endif
42207 }
42208 return resultobj;
42209fail:
42210 return NULL;
42211}
42212
42213
42214SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42215 PyObject *resultobj = 0;
42216 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42217 wxString *arg2 = 0 ;
42218 void *argp1 = 0 ;
42219 int res1 = 0 ;
42220 bool temp2 = false ;
42221 PyObject * obj0 = 0 ;
42222 PyObject * obj1 = 0 ;
42223 char * kwnames[] = {
42224 (char *) "self",(char *) "url", NULL
42225 };
42226
42227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42229 if (!SWIG_IsOK(res1)) {
42230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42231 }
42232 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42233 {
42234 arg2 = wxString_in_helper(obj1);
42235 if (arg2 == NULL) SWIG_fail;
42236 temp2 = true;
42237 }
42238 {
42239 PyThreadState* __tstate = wxPyBeginAllowThreads();
42240 (arg1)->SetURL((wxString const &)*arg2);
42241 wxPyEndAllowThreads(__tstate);
42242 if (PyErr_Occurred()) SWIG_fail;
42243 }
42244 resultobj = SWIG_Py_Void();
42245 {
42246 if (temp2)
42247 delete arg2;
42248 }
42249 return resultobj;
42250fail:
42251 {
42252 if (temp2)
42253 delete arg2;
42254 }
42255 return NULL;
42256}
42257
42258
42259SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42260 PyObject *resultobj = 0;
42261 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42262 bool arg2 = (bool) true ;
42263 void *argp1 = 0 ;
42264 int res1 = 0 ;
42265 bool val2 ;
42266 int ecode2 = 0 ;
42267 PyObject * obj0 = 0 ;
42268 PyObject * obj1 = 0 ;
42269 char * kwnames[] = {
42270 (char *) "self",(char *) "visited", NULL
42271 };
42272
42273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42275 if (!SWIG_IsOK(res1)) {
42276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42277 }
42278 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42279 if (obj1) {
42280 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42281 if (!SWIG_IsOK(ecode2)) {
42282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42283 }
42284 arg2 = static_cast< bool >(val2);
42285 }
42286 {
42287 PyThreadState* __tstate = wxPyBeginAllowThreads();
42288 (arg1)->SetVisited(arg2);
42289 wxPyEndAllowThreads(__tstate);
42290 if (PyErr_Occurred()) SWIG_fail;
42291 }
42292 resultobj = SWIG_Py_Void();
42293 return resultobj;
42294fail:
42295 return NULL;
42296}
42297
42298
42299SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42300 PyObject *resultobj = 0;
42301 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42302 bool result;
42303 void *argp1 = 0 ;
42304 int res1 = 0 ;
42305 PyObject *swig_obj[1] ;
42306
42307 if (!args) SWIG_fail;
42308 swig_obj[0] = args;
42309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42310 if (!SWIG_IsOK(res1)) {
42311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42312 }
42313 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42314 {
42315 PyThreadState* __tstate = wxPyBeginAllowThreads();
42316 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42317 wxPyEndAllowThreads(__tstate);
42318 if (PyErr_Occurred()) SWIG_fail;
42319 }
42320 {
42321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42322 }
42323 return resultobj;
42324fail:
42325 return NULL;
42326}
42327
42328
42329SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42330 PyObject *obj;
42331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42332 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42333 return SWIG_Py_Void();
42334}
42335
42336SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42337 return SWIG_Python_InitShadowInstance(args);
42338}
42339
42340SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42341 PyObject *resultobj = 0;
42342 wxObject *arg1 = (wxObject *) 0 ;
42343 int arg2 ;
42344 wxString *arg3 = 0 ;
42345 wxHyperlinkEvent *result = 0 ;
42346 void *argp1 = 0 ;
42347 int res1 = 0 ;
42348 int val2 ;
42349 int ecode2 = 0 ;
42350 bool temp3 = false ;
42351 PyObject * obj0 = 0 ;
42352 PyObject * obj1 = 0 ;
42353 PyObject * obj2 = 0 ;
42354 char * kwnames[] = {
42355 (char *) "generator",(char *) "id",(char *) "url", NULL
42356 };
42357
42358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42360 if (!SWIG_IsOK(res1)) {
42361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42362 }
42363 arg1 = reinterpret_cast< wxObject * >(argp1);
42364 ecode2 = SWIG_AsVal_int(obj1, &val2);
42365 if (!SWIG_IsOK(ecode2)) {
42366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42367 }
42368 arg2 = static_cast< int >(val2);
42369 {
42370 arg3 = wxString_in_helper(obj2);
42371 if (arg3 == NULL) SWIG_fail;
42372 temp3 = true;
42373 }
42374 {
42375 PyThreadState* __tstate = wxPyBeginAllowThreads();
42376 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42377 wxPyEndAllowThreads(__tstate);
42378 if (PyErr_Occurred()) SWIG_fail;
42379 }
42380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42381 {
42382 if (temp3)
42383 delete arg3;
42384 }
42385 return resultobj;
42386fail:
42387 {
42388 if (temp3)
42389 delete arg3;
42390 }
42391 return NULL;
42392}
42393
42394
42395SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42396 PyObject *resultobj = 0;
42397 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42398 wxString result;
42399 void *argp1 = 0 ;
42400 int res1 = 0 ;
42401 PyObject *swig_obj[1] ;
42402
42403 if (!args) SWIG_fail;
42404 swig_obj[0] = args;
42405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42406 if (!SWIG_IsOK(res1)) {
42407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42408 }
42409 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42410 {
42411 PyThreadState* __tstate = wxPyBeginAllowThreads();
42412 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42413 wxPyEndAllowThreads(__tstate);
42414 if (PyErr_Occurred()) SWIG_fail;
42415 }
42416 {
42417#if wxUSE_UNICODE
42418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42419#else
42420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42421#endif
42422 }
42423 return resultobj;
42424fail:
42425 return NULL;
42426}
42427
42428
42429SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42430 PyObject *resultobj = 0;
42431 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42432 wxString *arg2 = 0 ;
42433 void *argp1 = 0 ;
42434 int res1 = 0 ;
42435 bool temp2 = false ;
42436 PyObject * obj0 = 0 ;
42437 PyObject * obj1 = 0 ;
42438 char * kwnames[] = {
42439 (char *) "self",(char *) "url", NULL
42440 };
42441
42442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42444 if (!SWIG_IsOK(res1)) {
42445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42446 }
42447 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42448 {
42449 arg2 = wxString_in_helper(obj1);
42450 if (arg2 == NULL) SWIG_fail;
42451 temp2 = true;
42452 }
42453 {
42454 PyThreadState* __tstate = wxPyBeginAllowThreads();
42455 (arg1)->SetURL((wxString const &)*arg2);
42456 wxPyEndAllowThreads(__tstate);
42457 if (PyErr_Occurred()) SWIG_fail;
42458 }
42459 resultobj = SWIG_Py_Void();
42460 {
42461 if (temp2)
42462 delete arg2;
42463 }
42464 return resultobj;
42465fail:
42466 {
42467 if (temp2)
42468 delete arg2;
42469 }
42470 return NULL;
42471}
42472
42473
42474SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42475 PyObject *obj;
42476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42477 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42478 return SWIG_Py_Void();
42479}
42480
42481SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42482 return SWIG_Python_InitShadowInstance(args);
42483}
42484
b850e7f3
RD
42485SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42486 PyObject *resultobj = 0;
42487 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42488 wxWindow *arg2 = (wxWindow *) 0 ;
42489 int arg3 ;
42490 wxString const &arg4_defvalue = wxEmptyString ;
42491 wxString *arg4 = (wxString *) &arg4_defvalue ;
42492 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42493 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42494 wxSize const &arg6_defvalue = wxDefaultSize ;
42495 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42496 long arg7 = (long) 0 ;
42497 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42498 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42499 wxString const &arg9_defvalue = wxButtonNameStr ;
42500 wxString *arg9 = (wxString *) &arg9_defvalue ;
42501 bool result;
42502 void *argp1 = 0 ;
42503 int res1 = 0 ;
42504 void *argp2 = 0 ;
42505 int res2 = 0 ;
42506 int val3 ;
42507 int ecode3 = 0 ;
42508 bool temp4 = false ;
42509 wxPoint temp5 ;
42510 wxSize temp6 ;
42511 long val7 ;
42512 int ecode7 = 0 ;
42513 void *argp8 = 0 ;
42514 int res8 = 0 ;
42515 bool temp9 = false ;
42516 PyObject * obj0 = 0 ;
42517 PyObject * obj1 = 0 ;
42518 PyObject * obj2 = 0 ;
42519 PyObject * obj3 = 0 ;
42520 PyObject * obj4 = 0 ;
42521 PyObject * obj5 = 0 ;
42522 PyObject * obj6 = 0 ;
42523 PyObject * obj7 = 0 ;
42524 PyObject * obj8 = 0 ;
42525 char * kwnames[] = {
42526 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42527 };
42528
42529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42531 if (!SWIG_IsOK(res1)) {
42532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42533 }
42534 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42536 if (!SWIG_IsOK(res2)) {
42537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42538 }
42539 arg2 = reinterpret_cast< wxWindow * >(argp2);
42540 ecode3 = SWIG_AsVal_int(obj2, &val3);
42541 if (!SWIG_IsOK(ecode3)) {
42542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42543 }
42544 arg3 = static_cast< int >(val3);
42545 if (obj3) {
42546 {
42547 arg4 = wxString_in_helper(obj3);
42548 if (arg4 == NULL) SWIG_fail;
42549 temp4 = true;
42550 }
42551 }
42552 if (obj4) {
42553 {
42554 arg5 = &temp5;
42555 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42556 }
42557 }
42558 if (obj5) {
42559 {
42560 arg6 = &temp6;
42561 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42562 }
42563 }
42564 if (obj6) {
42565 ecode7 = SWIG_AsVal_long(obj6, &val7);
42566 if (!SWIG_IsOK(ecode7)) {
42567 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42568 }
42569 arg7 = static_cast< long >(val7);
42570 }
42571 if (obj7) {
42572 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42573 if (!SWIG_IsOK(res8)) {
42574 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42575 }
42576 if (!argp8) {
42577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42578 }
42579 arg8 = reinterpret_cast< wxValidator * >(argp8);
42580 }
42581 if (obj8) {
42582 {
42583 arg9 = wxString_in_helper(obj8);
42584 if (arg9 == NULL) SWIG_fail;
42585 temp9 = true;
42586 }
42587 }
42588 {
42589 PyThreadState* __tstate = wxPyBeginAllowThreads();
42590 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42591 wxPyEndAllowThreads(__tstate);
42592 if (PyErr_Occurred()) SWIG_fail;
42593 }
42594 {
42595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42596 }
42597 {
42598 if (temp4)
42599 delete arg4;
42600 }
42601 {
42602 if (temp9)
42603 delete arg9;
42604 }
42605 return resultobj;
42606fail:
42607 {
42608 if (temp4)
42609 delete arg4;
42610 }
42611 {
42612 if (temp9)
42613 delete arg9;
42614 }
42615 return NULL;
42616}
42617
42618
42619SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42620 PyObject *resultobj = 0;
42621 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42622 int arg2 ;
42623 void *argp1 = 0 ;
42624 int res1 = 0 ;
42625 int val2 ;
42626 int ecode2 = 0 ;
42627 PyObject * obj0 = 0 ;
42628 PyObject * obj1 = 0 ;
42629 char * kwnames[] = {
42630 (char *) "self",(char *) "newmargin", NULL
42631 };
42632
42633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42635 if (!SWIG_IsOK(res1)) {
42636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42637 }
42638 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42639 ecode2 = SWIG_AsVal_int(obj1, &val2);
42640 if (!SWIG_IsOK(ecode2)) {
42641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42642 }
42643 arg2 = static_cast< int >(val2);
42644 {
42645 PyThreadState* __tstate = wxPyBeginAllowThreads();
42646 (arg1)->SetInternalMargin(arg2);
42647 wxPyEndAllowThreads(__tstate);
42648 if (PyErr_Occurred()) SWIG_fail;
42649 }
42650 resultobj = SWIG_Py_Void();
42651 return resultobj;
42652fail:
42653 return NULL;
42654}
42655
42656
42657SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42658 PyObject *resultobj = 0;
42659 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42660 int result;
42661 void *argp1 = 0 ;
42662 int res1 = 0 ;
42663 PyObject *swig_obj[1] ;
42664
42665 if (!args) SWIG_fail;
42666 swig_obj[0] = args;
42667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42668 if (!SWIG_IsOK(res1)) {
42669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42670 }
42671 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42672 {
42673 PyThreadState* __tstate = wxPyBeginAllowThreads();
42674 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42675 wxPyEndAllowThreads(__tstate);
42676 if (PyErr_Occurred()) SWIG_fail;
42677 }
42678 resultobj = SWIG_From_int(static_cast< int >(result));
42679 return resultobj;
42680fail:
42681 return NULL;
42682}
42683
42684
42685SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42686 PyObject *resultobj = 0;
42687 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42688 int arg2 ;
42689 void *argp1 = 0 ;
42690 int res1 = 0 ;
42691 int val2 ;
42692 int ecode2 = 0 ;
42693 PyObject * obj0 = 0 ;
42694 PyObject * obj1 = 0 ;
42695 char * kwnames[] = {
42696 (char *) "self",(char *) "prop", NULL
42697 };
42698
42699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42701 if (!SWIG_IsOK(res1)) {
42702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42703 }
42704 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42705 ecode2 = SWIG_AsVal_int(obj1, &val2);
42706 if (!SWIG_IsOK(ecode2)) {
42707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42708 }
42709 arg2 = static_cast< int >(val2);
42710 {
42711 PyThreadState* __tstate = wxPyBeginAllowThreads();
42712 (arg1)->SetTextCtrlProportion(arg2);
42713 wxPyEndAllowThreads(__tstate);
42714 if (PyErr_Occurred()) SWIG_fail;
42715 }
42716 resultobj = SWIG_Py_Void();
42717 return resultobj;
42718fail:
42719 return NULL;
42720}
42721
42722
42723SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42724 PyObject *resultobj = 0;
42725 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42726 int result;
42727 void *argp1 = 0 ;
42728 int res1 = 0 ;
42729 PyObject *swig_obj[1] ;
42730
42731 if (!args) SWIG_fail;
42732 swig_obj[0] = args;
42733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42734 if (!SWIG_IsOK(res1)) {
42735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42736 }
42737 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42738 {
42739 PyThreadState* __tstate = wxPyBeginAllowThreads();
42740 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42741 wxPyEndAllowThreads(__tstate);
42742 if (PyErr_Occurred()) SWIG_fail;
42743 }
42744 resultobj = SWIG_From_int(static_cast< int >(result));
42745 return resultobj;
42746fail:
42747 return NULL;
42748}
42749
42750
b02396e8
RD
42751SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42752 PyObject *resultobj = 0;
42753 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42754 bool result;
42755 void *argp1 = 0 ;
42756 int res1 = 0 ;
42757 PyObject *swig_obj[1] ;
42758
42759 if (!args) SWIG_fail;
42760 swig_obj[0] = args;
42761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42762 if (!SWIG_IsOK(res1)) {
42763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42764 }
42765 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42766 {
42767 PyThreadState* __tstate = wxPyBeginAllowThreads();
42768 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42769 wxPyEndAllowThreads(__tstate);
42770 if (PyErr_Occurred()) SWIG_fail;
42771 }
42772 {
42773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42774 }
42775 return resultobj;
42776fail:
42777 return NULL;
42778}
42779
42780
42781SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42782 PyObject *resultobj = 0;
42783 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42784 bool arg2 = (bool) true ;
42785 void *argp1 = 0 ;
42786 int res1 = 0 ;
42787 bool val2 ;
42788 int ecode2 = 0 ;
42789 PyObject * obj0 = 0 ;
42790 PyObject * obj1 = 0 ;
42791 char * kwnames[] = {
42792 (char *) "self",(char *) "grow", NULL
42793 };
42794
42795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42797 if (!SWIG_IsOK(res1)) {
42798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42799 }
42800 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42801 if (obj1) {
42802 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42803 if (!SWIG_IsOK(ecode2)) {
42804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42805 }
42806 arg2 = static_cast< bool >(val2);
42807 }
42808 {
42809 PyThreadState* __tstate = wxPyBeginAllowThreads();
42810 (arg1)->SetTextCtrlGrowable(arg2);
42811 wxPyEndAllowThreads(__tstate);
42812 if (PyErr_Occurred()) SWIG_fail;
42813 }
42814 resultobj = SWIG_Py_Void();
42815 return resultobj;
42816fail:
42817 return NULL;
42818}
42819
42820
42821SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42822 PyObject *resultobj = 0;
42823 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42824 bool result;
42825 void *argp1 = 0 ;
42826 int res1 = 0 ;
42827 PyObject *swig_obj[1] ;
42828
42829 if (!args) SWIG_fail;
42830 swig_obj[0] = args;
42831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42832 if (!SWIG_IsOK(res1)) {
42833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42834 }
42835 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42836 {
42837 PyThreadState* __tstate = wxPyBeginAllowThreads();
42838 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42839 wxPyEndAllowThreads(__tstate);
42840 if (PyErr_Occurred()) SWIG_fail;
42841 }
42842 {
42843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42844 }
42845 return resultobj;
42846fail:
42847 return NULL;
42848}
42849
42850
42851SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42852 PyObject *resultobj = 0;
42853 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42854 bool arg2 = (bool) true ;
42855 void *argp1 = 0 ;
42856 int res1 = 0 ;
42857 bool val2 ;
42858 int ecode2 = 0 ;
42859 PyObject * obj0 = 0 ;
42860 PyObject * obj1 = 0 ;
42861 char * kwnames[] = {
42862 (char *) "self",(char *) "grow", NULL
42863 };
42864
42865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42867 if (!SWIG_IsOK(res1)) {
42868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42869 }
42870 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42871 if (obj1) {
42872 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42873 if (!SWIG_IsOK(ecode2)) {
42874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42875 }
42876 arg2 = static_cast< bool >(val2);
42877 }
42878 {
42879 PyThreadState* __tstate = wxPyBeginAllowThreads();
42880 (arg1)->SetPickerCtrlGrowable(arg2);
42881 wxPyEndAllowThreads(__tstate);
42882 if (PyErr_Occurred()) SWIG_fail;
42883 }
42884 resultobj = SWIG_Py_Void();
42885 return resultobj;
42886fail:
42887 return NULL;
42888}
42889
42890
b850e7f3
RD
42891SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42892 PyObject *resultobj = 0;
42893 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42894 bool result;
42895 void *argp1 = 0 ;
42896 int res1 = 0 ;
42897 PyObject *swig_obj[1] ;
42898
42899 if (!args) SWIG_fail;
42900 swig_obj[0] = args;
42901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42902 if (!SWIG_IsOK(res1)) {
42903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42904 }
42905 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42906 {
42907 PyThreadState* __tstate = wxPyBeginAllowThreads();
42908 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42909 wxPyEndAllowThreads(__tstate);
42910 if (PyErr_Occurred()) SWIG_fail;
42911 }
42912 {
42913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42914 }
42915 return resultobj;
42916fail:
42917 return NULL;
42918}
42919
42920
42921SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42922 PyObject *resultobj = 0;
42923 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42924 wxTextCtrl *result = 0 ;
42925 void *argp1 = 0 ;
42926 int res1 = 0 ;
42927 PyObject *swig_obj[1] ;
42928
42929 if (!args) SWIG_fail;
42930 swig_obj[0] = args;
42931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42932 if (!SWIG_IsOK(res1)) {
42933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42934 }
42935 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42936 {
42937 PyThreadState* __tstate = wxPyBeginAllowThreads();
42938 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42939 wxPyEndAllowThreads(__tstate);
42940 if (PyErr_Occurred()) SWIG_fail;
42941 }
42942 {
42943 resultobj = wxPyMake_wxObject(result, 0);
42944 }
42945 return resultobj;
42946fail:
42947 return NULL;
42948}
42949
42950
42951SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42952 PyObject *resultobj = 0;
42953 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42954 wxControl *result = 0 ;
42955 void *argp1 = 0 ;
42956 int res1 = 0 ;
42957 PyObject *swig_obj[1] ;
42958
42959 if (!args) SWIG_fail;
42960 swig_obj[0] = args;
42961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42962 if (!SWIG_IsOK(res1)) {
42963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42964 }
42965 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42966 {
42967 PyThreadState* __tstate = wxPyBeginAllowThreads();
42968 result = (wxControl *)(arg1)->GetPickerCtrl();
42969 wxPyEndAllowThreads(__tstate);
42970 if (PyErr_Occurred()) SWIG_fail;
42971 }
42972 {
42973 resultobj = wxPyMake_wxObject(result, 0);
42974 }
42975 return resultobj;
42976fail:
42977 return NULL;
42978}
42979
42980
42981SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42982 PyObject *obj;
42983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42984 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42985 return SWIG_Py_Void();
42986}
42987
42988SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42989 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42990 return 1;
42991}
42992
42993
42994SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42995 PyObject *pyobj = 0;
42996
42997 {
42998#if wxUSE_UNICODE
42999 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43000#else
43001 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43002#endif
43003 }
43004 return pyobj;
43005}
43006
43007
43008SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43009 PyObject *resultobj = 0;
43010 wxWindow *arg1 = (wxWindow *) 0 ;
43011 int arg2 = (int) -1 ;
43012 wxColour const &arg3_defvalue = *wxBLACK ;
43013 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43014 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43015 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43016 wxSize const &arg5_defvalue = wxDefaultSize ;
43017 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43018 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43019 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43020 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43021 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43022 wxString *arg8 = (wxString *) &arg8_defvalue ;
43023 wxColourPickerCtrl *result = 0 ;
43024 void *argp1 = 0 ;
43025 int res1 = 0 ;
43026 int val2 ;
43027 int ecode2 = 0 ;
43028 wxColour temp3 ;
43029 wxPoint temp4 ;
43030 wxSize temp5 ;
43031 long val6 ;
43032 int ecode6 = 0 ;
43033 void *argp7 = 0 ;
43034 int res7 = 0 ;
43035 bool temp8 = false ;
43036 PyObject * obj0 = 0 ;
43037 PyObject * obj1 = 0 ;
43038 PyObject * obj2 = 0 ;
43039 PyObject * obj3 = 0 ;
43040 PyObject * obj4 = 0 ;
43041 PyObject * obj5 = 0 ;
43042 PyObject * obj6 = 0 ;
43043 PyObject * obj7 = 0 ;
43044 char * kwnames[] = {
43045 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43046 };
43047
43048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43050 if (!SWIG_IsOK(res1)) {
43051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43052 }
43053 arg1 = reinterpret_cast< wxWindow * >(argp1);
43054 if (obj1) {
43055 ecode2 = SWIG_AsVal_int(obj1, &val2);
43056 if (!SWIG_IsOK(ecode2)) {
43057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43058 }
43059 arg2 = static_cast< int >(val2);
43060 }
43061 if (obj2) {
43062 {
43063 arg3 = &temp3;
43064 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43065 }
43066 }
43067 if (obj3) {
43068 {
43069 arg4 = &temp4;
43070 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43071 }
43072 }
43073 if (obj4) {
43074 {
43075 arg5 = &temp5;
43076 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43077 }
43078 }
43079 if (obj5) {
43080 ecode6 = SWIG_AsVal_long(obj5, &val6);
43081 if (!SWIG_IsOK(ecode6)) {
43082 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43083 }
43084 arg6 = static_cast< long >(val6);
43085 }
43086 if (obj6) {
43087 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43088 if (!SWIG_IsOK(res7)) {
43089 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43090 }
43091 if (!argp7) {
43092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43093 }
43094 arg7 = reinterpret_cast< wxValidator * >(argp7);
43095 }
43096 if (obj7) {
43097 {
43098 arg8 = wxString_in_helper(obj7);
43099 if (arg8 == NULL) SWIG_fail;
43100 temp8 = true;
43101 }
43102 }
43103 {
43104 if (!wxPyCheckForApp()) SWIG_fail;
43105 PyThreadState* __tstate = wxPyBeginAllowThreads();
43106 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43107 wxPyEndAllowThreads(__tstate);
43108 if (PyErr_Occurred()) SWIG_fail;
43109 }
43110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43111 {
43112 if (temp8)
43113 delete arg8;
43114 }
43115 return resultobj;
43116fail:
43117 {
43118 if (temp8)
43119 delete arg8;
43120 }
43121 return NULL;
43122}
43123
43124
43125SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43126 PyObject *resultobj = 0;
43127 wxColourPickerCtrl *result = 0 ;
43128
43129 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43130 {
43131 if (!wxPyCheckForApp()) SWIG_fail;
43132 PyThreadState* __tstate = wxPyBeginAllowThreads();
43133 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43134 wxPyEndAllowThreads(__tstate);
43135 if (PyErr_Occurred()) SWIG_fail;
43136 }
43137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43138 return resultobj;
43139fail:
43140 return NULL;
43141}
43142
43143
43144SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43145 PyObject *resultobj = 0;
43146 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43147 wxWindow *arg2 = (wxWindow *) 0 ;
43148 int arg3 ;
43149 wxColour const &arg4_defvalue = *wxBLACK ;
43150 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43151 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43152 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43153 wxSize const &arg6_defvalue = wxDefaultSize ;
43154 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43155 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43156 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43157 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43158 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43159 wxString *arg9 = (wxString *) &arg9_defvalue ;
43160 bool result;
43161 void *argp1 = 0 ;
43162 int res1 = 0 ;
43163 void *argp2 = 0 ;
43164 int res2 = 0 ;
43165 int val3 ;
43166 int ecode3 = 0 ;
43167 wxColour temp4 ;
43168 wxPoint temp5 ;
43169 wxSize temp6 ;
43170 long val7 ;
43171 int ecode7 = 0 ;
43172 void *argp8 = 0 ;
43173 int res8 = 0 ;
43174 bool temp9 = false ;
43175 PyObject * obj0 = 0 ;
43176 PyObject * obj1 = 0 ;
43177 PyObject * obj2 = 0 ;
43178 PyObject * obj3 = 0 ;
43179 PyObject * obj4 = 0 ;
43180 PyObject * obj5 = 0 ;
43181 PyObject * obj6 = 0 ;
43182 PyObject * obj7 = 0 ;
43183 PyObject * obj8 = 0 ;
43184 char * kwnames[] = {
43185 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43186 };
43187
43188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43190 if (!SWIG_IsOK(res1)) {
43191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43192 }
43193 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43194 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43195 if (!SWIG_IsOK(res2)) {
43196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43197 }
43198 arg2 = reinterpret_cast< wxWindow * >(argp2);
43199 ecode3 = SWIG_AsVal_int(obj2, &val3);
43200 if (!SWIG_IsOK(ecode3)) {
43201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43202 }
43203 arg3 = static_cast< int >(val3);
43204 if (obj3) {
43205 {
43206 arg4 = &temp4;
43207 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43208 }
43209 }
43210 if (obj4) {
43211 {
43212 arg5 = &temp5;
43213 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43214 }
43215 }
43216 if (obj5) {
43217 {
43218 arg6 = &temp6;
43219 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43220 }
43221 }
43222 if (obj6) {
43223 ecode7 = SWIG_AsVal_long(obj6, &val7);
43224 if (!SWIG_IsOK(ecode7)) {
43225 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43226 }
43227 arg7 = static_cast< long >(val7);
43228 }
43229 if (obj7) {
43230 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43231 if (!SWIG_IsOK(res8)) {
43232 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43233 }
43234 if (!argp8) {
43235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43236 }
43237 arg8 = reinterpret_cast< wxValidator * >(argp8);
43238 }
43239 if (obj8) {
43240 {
43241 arg9 = wxString_in_helper(obj8);
43242 if (arg9 == NULL) SWIG_fail;
43243 temp9 = true;
43244 }
43245 }
43246 {
43247 PyThreadState* __tstate = wxPyBeginAllowThreads();
43248 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43249 wxPyEndAllowThreads(__tstate);
43250 if (PyErr_Occurred()) SWIG_fail;
43251 }
43252 {
43253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43254 }
43255 {
43256 if (temp9)
43257 delete arg9;
43258 }
43259 return resultobj;
43260fail:
43261 {
43262 if (temp9)
43263 delete arg9;
43264 }
43265 return NULL;
43266}
43267
43268
43269SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43270 PyObject *resultobj = 0;
43271 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43272 wxColour result;
43273 void *argp1 = 0 ;
43274 int res1 = 0 ;
43275 PyObject *swig_obj[1] ;
43276
43277 if (!args) SWIG_fail;
43278 swig_obj[0] = args;
43279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43280 if (!SWIG_IsOK(res1)) {
43281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43282 }
43283 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43284 {
43285 PyThreadState* __tstate = wxPyBeginAllowThreads();
43286 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43287 wxPyEndAllowThreads(__tstate);
43288 if (PyErr_Occurred()) SWIG_fail;
43289 }
43290 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43291 return resultobj;
43292fail:
43293 return NULL;
43294}
43295
43296
43297SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43298 PyObject *resultobj = 0;
43299 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43300 wxColour *arg2 = 0 ;
43301 void *argp1 = 0 ;
43302 int res1 = 0 ;
43303 wxColour temp2 ;
43304 PyObject * obj0 = 0 ;
43305 PyObject * obj1 = 0 ;
43306 char * kwnames[] = {
43307 (char *) "self",(char *) "col", NULL
43308 };
43309
43310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43312 if (!SWIG_IsOK(res1)) {
43313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43314 }
43315 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43316 {
43317 arg2 = &temp2;
43318 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43319 }
43320 {
43321 PyThreadState* __tstate = wxPyBeginAllowThreads();
43322 (arg1)->SetColour((wxColour const &)*arg2);
43323 wxPyEndAllowThreads(__tstate);
43324 if (PyErr_Occurred()) SWIG_fail;
43325 }
43326 resultobj = SWIG_Py_Void();
43327 return resultobj;
43328fail:
43329 return NULL;
43330}
43331
43332
43333SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43334 PyObject *obj;
43335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43336 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43337 return SWIG_Py_Void();
43338}
43339
43340SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43341 return SWIG_Python_InitShadowInstance(args);
43342}
43343
43344SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43345 PyObject *resultobj = 0;
43346 wxObject *arg1 = (wxObject *) 0 ;
43347 int arg2 ;
43348 wxColour *arg3 = 0 ;
43349 wxColourPickerEvent *result = 0 ;
43350 void *argp1 = 0 ;
43351 int res1 = 0 ;
43352 int val2 ;
43353 int ecode2 = 0 ;
43354 wxColour temp3 ;
43355 PyObject * obj0 = 0 ;
43356 PyObject * obj1 = 0 ;
43357 PyObject * obj2 = 0 ;
43358 char * kwnames[] = {
43359 (char *) "generator",(char *) "id",(char *) "col", NULL
43360 };
43361
43362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43364 if (!SWIG_IsOK(res1)) {
43365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43366 }
43367 arg1 = reinterpret_cast< wxObject * >(argp1);
43368 ecode2 = SWIG_AsVal_int(obj1, &val2);
43369 if (!SWIG_IsOK(ecode2)) {
43370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43371 }
43372 arg2 = static_cast< int >(val2);
43373 {
43374 arg3 = &temp3;
43375 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43376 }
43377 {
43378 PyThreadState* __tstate = wxPyBeginAllowThreads();
43379 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43380 wxPyEndAllowThreads(__tstate);
43381 if (PyErr_Occurred()) SWIG_fail;
43382 }
43383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43384 return resultobj;
43385fail:
43386 return NULL;
43387}
43388
43389
43390SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43391 PyObject *resultobj = 0;
43392 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43393 wxColour result;
43394 void *argp1 = 0 ;
43395 int res1 = 0 ;
43396 PyObject *swig_obj[1] ;
43397
43398 if (!args) SWIG_fail;
43399 swig_obj[0] = args;
43400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43401 if (!SWIG_IsOK(res1)) {
43402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43403 }
43404 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43405 {
43406 PyThreadState* __tstate = wxPyBeginAllowThreads();
43407 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43408 wxPyEndAllowThreads(__tstate);
43409 if (PyErr_Occurred()) SWIG_fail;
43410 }
43411 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43412 return resultobj;
43413fail:
43414 return NULL;
43415}
43416
43417
43418SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43419 PyObject *resultobj = 0;
43420 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43421 wxColour *arg2 = 0 ;
43422 void *argp1 = 0 ;
43423 int res1 = 0 ;
43424 wxColour temp2 ;
43425 PyObject * obj0 = 0 ;
43426 PyObject * obj1 = 0 ;
43427 char * kwnames[] = {
43428 (char *) "self",(char *) "c", NULL
43429 };
43430
43431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43433 if (!SWIG_IsOK(res1)) {
43434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43435 }
43436 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43437 {
43438 arg2 = &temp2;
43439 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43440 }
43441 {
43442 PyThreadState* __tstate = wxPyBeginAllowThreads();
43443 (arg1)->SetColour((wxColour const &)*arg2);
43444 wxPyEndAllowThreads(__tstate);
43445 if (PyErr_Occurred()) SWIG_fail;
43446 }
43447 resultobj = SWIG_Py_Void();
43448 return resultobj;
43449fail:
43450 return NULL;
43451}
43452
43453
43454SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43455 PyObject *obj;
43456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43457 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43458 return SWIG_Py_Void();
43459}
43460
43461SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43462 return SWIG_Python_InitShadowInstance(args);
43463}
43464
43465SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43466 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43467 return 1;
43468}
43469
43470
43471SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43472 PyObject *pyobj = 0;
43473
43474 {
43475#if wxUSE_UNICODE
43476 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43477#else
43478 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43479#endif
43480 }
43481 return pyobj;
43482}
43483
43484
43485SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43486 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43487 return 1;
43488}
43489
43490
43491SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43492 PyObject *pyobj = 0;
43493
43494 {
43495#if wxUSE_UNICODE
43496 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43497#else
43498 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43499#endif
43500 }
43501 return pyobj;
43502}
43503
43504
43505SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43506 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43507 return 1;
43508}
43509
43510
43511SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43512 PyObject *pyobj = 0;
43513
43514 {
43515#if wxUSE_UNICODE
43516 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43517#else
43518 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43519#endif
43520 }
43521 return pyobj;
43522}
43523
43524
43525SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43526 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43527 return 1;
43528}
43529
43530
43531SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43532 PyObject *pyobj = 0;
43533
43534 {
43535#if wxUSE_UNICODE
43536 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43537#else
43538 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43539#endif
43540 }
43541 return pyobj;
43542}
43543
43544
43545SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43546 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43547 return 1;
43548}
43549
43550
43551SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43552 PyObject *pyobj = 0;
43553
43554 {
43555#if wxUSE_UNICODE
43556 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43557#else
43558 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43559#endif
43560 }
43561 return pyobj;
43562}
43563
43564
43565SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43566 PyObject *resultobj = 0;
43567 wxWindow *arg1 = (wxWindow *) 0 ;
43568 int arg2 = (int) -1 ;
43569 wxString const &arg3_defvalue = wxPyEmptyString ;
43570 wxString *arg3 = (wxString *) &arg3_defvalue ;
43571 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43572 wxString *arg4 = (wxString *) &arg4_defvalue ;
43573 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43574 wxString *arg5 = (wxString *) &arg5_defvalue ;
43575 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43576 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43577 wxSize const &arg7_defvalue = wxDefaultSize ;
43578 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43579 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43580 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43581 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43582 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43583 wxString *arg10 = (wxString *) &arg10_defvalue ;
43584 wxFilePickerCtrl *result = 0 ;
43585 void *argp1 = 0 ;
43586 int res1 = 0 ;
43587 int val2 ;
43588 int ecode2 = 0 ;
43589 bool temp3 = false ;
43590 bool temp4 = false ;
43591 bool temp5 = false ;
43592 wxPoint temp6 ;
43593 wxSize temp7 ;
43594 long val8 ;
43595 int ecode8 = 0 ;
43596 void *argp9 = 0 ;
43597 int res9 = 0 ;
43598 bool temp10 = false ;
43599 PyObject * obj0 = 0 ;
43600 PyObject * obj1 = 0 ;
43601 PyObject * obj2 = 0 ;
43602 PyObject * obj3 = 0 ;
43603 PyObject * obj4 = 0 ;
43604 PyObject * obj5 = 0 ;
43605 PyObject * obj6 = 0 ;
43606 PyObject * obj7 = 0 ;
43607 PyObject * obj8 = 0 ;
43608 PyObject * obj9 = 0 ;
43609 char * kwnames[] = {
43610 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43611 };
43612
43613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43615 if (!SWIG_IsOK(res1)) {
43616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43617 }
43618 arg1 = reinterpret_cast< wxWindow * >(argp1);
43619 if (obj1) {
43620 ecode2 = SWIG_AsVal_int(obj1, &val2);
43621 if (!SWIG_IsOK(ecode2)) {
43622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43623 }
43624 arg2 = static_cast< int >(val2);
43625 }
43626 if (obj2) {
43627 {
43628 arg3 = wxString_in_helper(obj2);
43629 if (arg3 == NULL) SWIG_fail;
43630 temp3 = true;
43631 }
43632 }
43633 if (obj3) {
43634 {
43635 arg4 = wxString_in_helper(obj3);
43636 if (arg4 == NULL) SWIG_fail;
43637 temp4 = true;
43638 }
43639 }
43640 if (obj4) {
43641 {
43642 arg5 = wxString_in_helper(obj4);
43643 if (arg5 == NULL) SWIG_fail;
43644 temp5 = true;
43645 }
43646 }
43647 if (obj5) {
43648 {
43649 arg6 = &temp6;
43650 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43651 }
43652 }
43653 if (obj6) {
43654 {
43655 arg7 = &temp7;
43656 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43657 }
43658 }
43659 if (obj7) {
43660 ecode8 = SWIG_AsVal_long(obj7, &val8);
43661 if (!SWIG_IsOK(ecode8)) {
43662 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43663 }
43664 arg8 = static_cast< long >(val8);
43665 }
43666 if (obj8) {
43667 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43668 if (!SWIG_IsOK(res9)) {
43669 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43670 }
43671 if (!argp9) {
43672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43673 }
43674 arg9 = reinterpret_cast< wxValidator * >(argp9);
43675 }
43676 if (obj9) {
43677 {
43678 arg10 = wxString_in_helper(obj9);
43679 if (arg10 == NULL) SWIG_fail;
43680 temp10 = true;
43681 }
43682 }
43683 {
43684 if (!wxPyCheckForApp()) SWIG_fail;
43685 PyThreadState* __tstate = wxPyBeginAllowThreads();
43686 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);
43687 wxPyEndAllowThreads(__tstate);
43688 if (PyErr_Occurred()) SWIG_fail;
43689 }
43690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43691 {
43692 if (temp3)
43693 delete arg3;
43694 }
43695 {
43696 if (temp4)
43697 delete arg4;
43698 }
43699 {
43700 if (temp5)
43701 delete arg5;
43702 }
43703 {
43704 if (temp10)
43705 delete arg10;
43706 }
43707 return resultobj;
43708fail:
43709 {
43710 if (temp3)
43711 delete arg3;
43712 }
43713 {
43714 if (temp4)
43715 delete arg4;
43716 }
43717 {
43718 if (temp5)
43719 delete arg5;
43720 }
43721 {
43722 if (temp10)
43723 delete arg10;
43724 }
43725 return NULL;
43726}
43727
43728
43729SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43730 PyObject *resultobj = 0;
43731 wxFilePickerCtrl *result = 0 ;
43732
43733 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43734 {
43735 if (!wxPyCheckForApp()) SWIG_fail;
43736 PyThreadState* __tstate = wxPyBeginAllowThreads();
43737 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43738 wxPyEndAllowThreads(__tstate);
43739 if (PyErr_Occurred()) SWIG_fail;
43740 }
43741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43742 return resultobj;
43743fail:
43744 return NULL;
43745}
43746
43747
43748SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43749 PyObject *resultobj = 0;
43750 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43751 wxWindow *arg2 = (wxWindow *) 0 ;
43752 int arg3 = (int) -1 ;
43753 wxString const &arg4_defvalue = wxPyEmptyString ;
43754 wxString *arg4 = (wxString *) &arg4_defvalue ;
43755 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43756 wxString *arg5 = (wxString *) &arg5_defvalue ;
43757 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43758 wxString *arg6 = (wxString *) &arg6_defvalue ;
43759 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43760 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43761 wxSize const &arg8_defvalue = wxDefaultSize ;
43762 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43763 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43764 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43765 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43766 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43767 wxString *arg11 = (wxString *) &arg11_defvalue ;
43768 bool result;
43769 void *argp1 = 0 ;
43770 int res1 = 0 ;
43771 void *argp2 = 0 ;
43772 int res2 = 0 ;
43773 int val3 ;
43774 int ecode3 = 0 ;
43775 bool temp4 = false ;
43776 bool temp5 = false ;
43777 bool temp6 = false ;
43778 wxPoint temp7 ;
43779 wxSize temp8 ;
43780 long val9 ;
43781 int ecode9 = 0 ;
43782 void *argp10 = 0 ;
43783 int res10 = 0 ;
43784 bool temp11 = false ;
43785 PyObject * obj0 = 0 ;
43786 PyObject * obj1 = 0 ;
43787 PyObject * obj2 = 0 ;
43788 PyObject * obj3 = 0 ;
43789 PyObject * obj4 = 0 ;
43790 PyObject * obj5 = 0 ;
43791 PyObject * obj6 = 0 ;
43792 PyObject * obj7 = 0 ;
43793 PyObject * obj8 = 0 ;
43794 PyObject * obj9 = 0 ;
43795 PyObject * obj10 = 0 ;
43796 char * kwnames[] = {
43797 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43798 };
43799
43800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43802 if (!SWIG_IsOK(res1)) {
43803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43804 }
43805 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43807 if (!SWIG_IsOK(res2)) {
43808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43809 }
43810 arg2 = reinterpret_cast< wxWindow * >(argp2);
43811 if (obj2) {
43812 ecode3 = SWIG_AsVal_int(obj2, &val3);
43813 if (!SWIG_IsOK(ecode3)) {
43814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43815 }
43816 arg3 = static_cast< int >(val3);
43817 }
43818 if (obj3) {
43819 {
43820 arg4 = wxString_in_helper(obj3);
43821 if (arg4 == NULL) SWIG_fail;
43822 temp4 = true;
43823 }
43824 }
43825 if (obj4) {
43826 {
43827 arg5 = wxString_in_helper(obj4);
43828 if (arg5 == NULL) SWIG_fail;
43829 temp5 = true;
43830 }
43831 }
43832 if (obj5) {
43833 {
43834 arg6 = wxString_in_helper(obj5);
43835 if (arg6 == NULL) SWIG_fail;
43836 temp6 = true;
43837 }
43838 }
43839 if (obj6) {
43840 {
43841 arg7 = &temp7;
43842 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43843 }
43844 }
43845 if (obj7) {
43846 {
43847 arg8 = &temp8;
43848 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43849 }
43850 }
43851 if (obj8) {
43852 ecode9 = SWIG_AsVal_long(obj8, &val9);
43853 if (!SWIG_IsOK(ecode9)) {
43854 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43855 }
43856 arg9 = static_cast< long >(val9);
43857 }
43858 if (obj9) {
43859 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43860 if (!SWIG_IsOK(res10)) {
43861 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43862 }
43863 if (!argp10) {
43864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43865 }
43866 arg10 = reinterpret_cast< wxValidator * >(argp10);
43867 }
43868 if (obj10) {
43869 {
43870 arg11 = wxString_in_helper(obj10);
43871 if (arg11 == NULL) SWIG_fail;
43872 temp11 = true;
43873 }
43874 }
43875 {
43876 PyThreadState* __tstate = wxPyBeginAllowThreads();
43877 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);
43878 wxPyEndAllowThreads(__tstate);
43879 if (PyErr_Occurred()) SWIG_fail;
43880 }
43881 {
43882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43883 }
43884 {
43885 if (temp4)
43886 delete arg4;
43887 }
43888 {
43889 if (temp5)
43890 delete arg5;
43891 }
43892 {
43893 if (temp6)
43894 delete arg6;
43895 }
43896 {
43897 if (temp11)
43898 delete arg11;
43899 }
43900 return resultobj;
43901fail:
43902 {
43903 if (temp4)
43904 delete arg4;
43905 }
43906 {
43907 if (temp5)
43908 delete arg5;
43909 }
43910 {
43911 if (temp6)
43912 delete arg6;
43913 }
43914 {
43915 if (temp11)
43916 delete arg11;
43917 }
43918 return NULL;
43919}
43920
43921
43922SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43923 PyObject *resultobj = 0;
43924 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43925 wxString result;
43926 void *argp1 = 0 ;
43927 int res1 = 0 ;
43928 PyObject *swig_obj[1] ;
43929
43930 if (!args) SWIG_fail;
43931 swig_obj[0] = args;
43932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43933 if (!SWIG_IsOK(res1)) {
43934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43935 }
43936 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43937 {
43938 PyThreadState* __tstate = wxPyBeginAllowThreads();
43939 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43940 wxPyEndAllowThreads(__tstate);
43941 if (PyErr_Occurred()) SWIG_fail;
43942 }
43943 {
43944#if wxUSE_UNICODE
43945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43946#else
43947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43948#endif
43949 }
43950 return resultobj;
43951fail:
43952 return NULL;
43953}
43954
43955
43956SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43957 PyObject *resultobj = 0;
43958 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43959 wxString *arg2 = 0 ;
43960 void *argp1 = 0 ;
43961 int res1 = 0 ;
43962 bool temp2 = false ;
43963 PyObject * obj0 = 0 ;
43964 PyObject * obj1 = 0 ;
43965 char * kwnames[] = {
43966 (char *) "self",(char *) "str", NULL
43967 };
43968
43969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43971 if (!SWIG_IsOK(res1)) {
43972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43973 }
43974 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43975 {
43976 arg2 = wxString_in_helper(obj1);
43977 if (arg2 == NULL) SWIG_fail;
43978 temp2 = true;
43979 }
43980 {
43981 PyThreadState* __tstate = wxPyBeginAllowThreads();
43982 (arg1)->SetPath((wxString const &)*arg2);
43983 wxPyEndAllowThreads(__tstate);
43984 if (PyErr_Occurred()) SWIG_fail;
43985 }
43986 resultobj = SWIG_Py_Void();
43987 {
43988 if (temp2)
43989 delete arg2;
43990 }
43991 return resultobj;
43992fail:
43993 {
43994 if (temp2)
43995 delete arg2;
43996 }
43997 return NULL;
43998}
43999
44000
b02396e8
RD
44001SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44002 PyObject *resultobj = 0;
44003 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44004 wxString *arg2 = 0 ;
44005 bool result;
44006 void *argp1 = 0 ;
44007 int res1 = 0 ;
44008 bool temp2 = false ;
44009 PyObject * obj0 = 0 ;
44010 PyObject * obj1 = 0 ;
44011 char * kwnames[] = {
44012 (char *) "self",(char *) "path", NULL
44013 };
44014
44015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44017 if (!SWIG_IsOK(res1)) {
44018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44019 }
44020 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44021 {
44022 arg2 = wxString_in_helper(obj1);
44023 if (arg2 == NULL) SWIG_fail;
44024 temp2 = true;
44025 }
44026 {
44027 PyThreadState* __tstate = wxPyBeginAllowThreads();
44028 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44029 wxPyEndAllowThreads(__tstate);
44030 if (PyErr_Occurred()) SWIG_fail;
44031 }
44032 {
44033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44034 }
44035 {
44036 if (temp2)
44037 delete arg2;
44038 }
44039 return resultobj;
44040fail:
44041 {
44042 if (temp2)
44043 delete arg2;
44044 }
44045 return NULL;
44046}
44047
44048
44049SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44050 PyObject *resultobj = 0;
44051 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44052 wxString result;
44053 void *argp1 = 0 ;
44054 int res1 = 0 ;
44055 PyObject *swig_obj[1] ;
44056
44057 if (!args) SWIG_fail;
44058 swig_obj[0] = args;
44059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44060 if (!SWIG_IsOK(res1)) {
44061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44062 }
44063 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44064 {
44065 PyThreadState* __tstate = wxPyBeginAllowThreads();
44066 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44067 wxPyEndAllowThreads(__tstate);
44068 if (PyErr_Occurred()) SWIG_fail;
44069 }
44070 {
44071#if wxUSE_UNICODE
44072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44073#else
44074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44075#endif
44076 }
44077 return resultobj;
44078fail:
44079 return NULL;
44080}
44081
44082
b850e7f3
RD
44083SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44084 PyObject *obj;
44085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44086 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44087 return SWIG_Py_Void();
44088}
44089
44090SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44091 return SWIG_Python_InitShadowInstance(args);
44092}
44093
44094SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44095 PyObject *resultobj = 0;
44096 wxWindow *arg1 = (wxWindow *) 0 ;
44097 int arg2 = (int) -1 ;
44098 wxString const &arg3_defvalue = wxPyEmptyString ;
44099 wxString *arg3 = (wxString *) &arg3_defvalue ;
44100 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44101 wxString *arg4 = (wxString *) &arg4_defvalue ;
44102 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44103 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44104 wxSize const &arg6_defvalue = wxDefaultSize ;
44105 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44106 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44107 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44108 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44109 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44110 wxString *arg9 = (wxString *) &arg9_defvalue ;
44111 wxDirPickerCtrl *result = 0 ;
44112 void *argp1 = 0 ;
44113 int res1 = 0 ;
44114 int val2 ;
44115 int ecode2 = 0 ;
44116 bool temp3 = false ;
44117 bool temp4 = false ;
44118 wxPoint temp5 ;
44119 wxSize temp6 ;
44120 long val7 ;
44121 int ecode7 = 0 ;
44122 void *argp8 = 0 ;
44123 int res8 = 0 ;
44124 bool temp9 = false ;
44125 PyObject * obj0 = 0 ;
44126 PyObject * obj1 = 0 ;
44127 PyObject * obj2 = 0 ;
44128 PyObject * obj3 = 0 ;
44129 PyObject * obj4 = 0 ;
44130 PyObject * obj5 = 0 ;
44131 PyObject * obj6 = 0 ;
44132 PyObject * obj7 = 0 ;
44133 PyObject * obj8 = 0 ;
44134 char * kwnames[] = {
44135 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44136 };
44137
44138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44140 if (!SWIG_IsOK(res1)) {
44141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44142 }
44143 arg1 = reinterpret_cast< wxWindow * >(argp1);
44144 if (obj1) {
44145 ecode2 = SWIG_AsVal_int(obj1, &val2);
44146 if (!SWIG_IsOK(ecode2)) {
44147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44148 }
44149 arg2 = static_cast< int >(val2);
44150 }
44151 if (obj2) {
44152 {
44153 arg3 = wxString_in_helper(obj2);
44154 if (arg3 == NULL) SWIG_fail;
44155 temp3 = true;
44156 }
44157 }
44158 if (obj3) {
44159 {
44160 arg4 = wxString_in_helper(obj3);
44161 if (arg4 == NULL) SWIG_fail;
44162 temp4 = true;
44163 }
44164 }
44165 if (obj4) {
44166 {
44167 arg5 = &temp5;
44168 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44169 }
44170 }
44171 if (obj5) {
44172 {
44173 arg6 = &temp6;
44174 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44175 }
44176 }
44177 if (obj6) {
44178 ecode7 = SWIG_AsVal_long(obj6, &val7);
44179 if (!SWIG_IsOK(ecode7)) {
44180 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44181 }
44182 arg7 = static_cast< long >(val7);
44183 }
44184 if (obj7) {
44185 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44186 if (!SWIG_IsOK(res8)) {
44187 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44188 }
44189 if (!argp8) {
44190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44191 }
44192 arg8 = reinterpret_cast< wxValidator * >(argp8);
44193 }
44194 if (obj8) {
44195 {
44196 arg9 = wxString_in_helper(obj8);
44197 if (arg9 == NULL) SWIG_fail;
44198 temp9 = true;
44199 }
44200 }
44201 {
44202 if (!wxPyCheckForApp()) SWIG_fail;
44203 PyThreadState* __tstate = wxPyBeginAllowThreads();
44204 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);
44205 wxPyEndAllowThreads(__tstate);
44206 if (PyErr_Occurred()) SWIG_fail;
44207 }
44208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44209 {
44210 if (temp3)
44211 delete arg3;
44212 }
44213 {
44214 if (temp4)
44215 delete arg4;
44216 }
44217 {
44218 if (temp9)
44219 delete arg9;
44220 }
44221 return resultobj;
44222fail:
44223 {
44224 if (temp3)
44225 delete arg3;
44226 }
44227 {
44228 if (temp4)
44229 delete arg4;
44230 }
44231 {
44232 if (temp9)
44233 delete arg9;
44234 }
44235 return NULL;
44236}
44237
44238
44239SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44240 PyObject *resultobj = 0;
44241 wxDirPickerCtrl *result = 0 ;
44242
44243 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44244 {
44245 if (!wxPyCheckForApp()) SWIG_fail;
44246 PyThreadState* __tstate = wxPyBeginAllowThreads();
44247 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44248 wxPyEndAllowThreads(__tstate);
44249 if (PyErr_Occurred()) SWIG_fail;
44250 }
44251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44252 return resultobj;
44253fail:
44254 return NULL;
44255}
44256
44257
44258SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44259 PyObject *resultobj = 0;
44260 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44261 wxWindow *arg2 = (wxWindow *) 0 ;
44262 int arg3 = (int) -1 ;
44263 wxString const &arg4_defvalue = wxPyEmptyString ;
44264 wxString *arg4 = (wxString *) &arg4_defvalue ;
44265 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44266 wxString *arg5 = (wxString *) &arg5_defvalue ;
44267 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44268 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44269 wxSize const &arg7_defvalue = wxDefaultSize ;
44270 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44271 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44272 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44273 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44274 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44275 wxString *arg10 = (wxString *) &arg10_defvalue ;
44276 bool result;
44277 void *argp1 = 0 ;
44278 int res1 = 0 ;
44279 void *argp2 = 0 ;
44280 int res2 = 0 ;
44281 int val3 ;
44282 int ecode3 = 0 ;
44283 bool temp4 = false ;
44284 bool temp5 = false ;
44285 wxPoint temp6 ;
44286 wxSize temp7 ;
44287 long val8 ;
44288 int ecode8 = 0 ;
44289 void *argp9 = 0 ;
44290 int res9 = 0 ;
44291 bool temp10 = false ;
44292 PyObject * obj0 = 0 ;
44293 PyObject * obj1 = 0 ;
44294 PyObject * obj2 = 0 ;
44295 PyObject * obj3 = 0 ;
44296 PyObject * obj4 = 0 ;
44297 PyObject * obj5 = 0 ;
44298 PyObject * obj6 = 0 ;
44299 PyObject * obj7 = 0 ;
44300 PyObject * obj8 = 0 ;
44301 PyObject * obj9 = 0 ;
44302 char * kwnames[] = {
44303 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44304 };
44305
44306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44308 if (!SWIG_IsOK(res1)) {
44309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44310 }
44311 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44312 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44313 if (!SWIG_IsOK(res2)) {
44314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44315 }
44316 arg2 = reinterpret_cast< wxWindow * >(argp2);
44317 if (obj2) {
44318 ecode3 = SWIG_AsVal_int(obj2, &val3);
44319 if (!SWIG_IsOK(ecode3)) {
44320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44321 }
44322 arg3 = static_cast< int >(val3);
44323 }
44324 if (obj3) {
44325 {
44326 arg4 = wxString_in_helper(obj3);
44327 if (arg4 == NULL) SWIG_fail;
44328 temp4 = true;
44329 }
44330 }
44331 if (obj4) {
44332 {
44333 arg5 = wxString_in_helper(obj4);
44334 if (arg5 == NULL) SWIG_fail;
44335 temp5 = true;
44336 }
44337 }
44338 if (obj5) {
44339 {
44340 arg6 = &temp6;
44341 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44342 }
44343 }
44344 if (obj6) {
44345 {
44346 arg7 = &temp7;
44347 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44348 }
44349 }
44350 if (obj7) {
44351 ecode8 = SWIG_AsVal_long(obj7, &val8);
44352 if (!SWIG_IsOK(ecode8)) {
44353 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44354 }
44355 arg8 = static_cast< long >(val8);
44356 }
44357 if (obj8) {
44358 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44359 if (!SWIG_IsOK(res9)) {
44360 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44361 }
44362 if (!argp9) {
44363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44364 }
44365 arg9 = reinterpret_cast< wxValidator * >(argp9);
44366 }
44367 if (obj9) {
44368 {
44369 arg10 = wxString_in_helper(obj9);
44370 if (arg10 == NULL) SWIG_fail;
44371 temp10 = true;
44372 }
44373 }
44374 {
44375 PyThreadState* __tstate = wxPyBeginAllowThreads();
44376 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);
44377 wxPyEndAllowThreads(__tstate);
44378 if (PyErr_Occurred()) SWIG_fail;
44379 }
44380 {
44381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44382 }
44383 {
44384 if (temp4)
44385 delete arg4;
44386 }
44387 {
44388 if (temp5)
44389 delete arg5;
44390 }
44391 {
44392 if (temp10)
44393 delete arg10;
44394 }
44395 return resultobj;
44396fail:
44397 {
44398 if (temp4)
44399 delete arg4;
44400 }
44401 {
44402 if (temp5)
44403 delete arg5;
44404 }
44405 {
44406 if (temp10)
44407 delete arg10;
44408 }
44409 return NULL;
44410}
44411
44412
44413SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44414 PyObject *resultobj = 0;
44415 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44416 wxString result;
44417 void *argp1 = 0 ;
44418 int res1 = 0 ;
44419 PyObject *swig_obj[1] ;
44420
44421 if (!args) SWIG_fail;
44422 swig_obj[0] = args;
44423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44424 if (!SWIG_IsOK(res1)) {
44425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44426 }
44427 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44428 {
44429 PyThreadState* __tstate = wxPyBeginAllowThreads();
44430 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44431 wxPyEndAllowThreads(__tstate);
44432 if (PyErr_Occurred()) SWIG_fail;
44433 }
44434 {
44435#if wxUSE_UNICODE
44436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44437#else
44438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44439#endif
44440 }
44441 return resultobj;
44442fail:
44443 return NULL;
44444}
44445
44446
44447SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44448 PyObject *resultobj = 0;
44449 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44450 wxString *arg2 = 0 ;
44451 void *argp1 = 0 ;
44452 int res1 = 0 ;
44453 bool temp2 = false ;
44454 PyObject * obj0 = 0 ;
44455 PyObject * obj1 = 0 ;
44456 char * kwnames[] = {
44457 (char *) "self",(char *) "str", NULL
44458 };
44459
44460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44462 if (!SWIG_IsOK(res1)) {
44463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44464 }
44465 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44466 {
44467 arg2 = wxString_in_helper(obj1);
44468 if (arg2 == NULL) SWIG_fail;
44469 temp2 = true;
44470 }
44471 {
44472 PyThreadState* __tstate = wxPyBeginAllowThreads();
44473 (arg1)->SetPath((wxString const &)*arg2);
44474 wxPyEndAllowThreads(__tstate);
44475 if (PyErr_Occurred()) SWIG_fail;
44476 }
44477 resultobj = SWIG_Py_Void();
44478 {
44479 if (temp2)
44480 delete arg2;
44481 }
44482 return resultobj;
44483fail:
44484 {
44485 if (temp2)
44486 delete arg2;
44487 }
44488 return NULL;
44489}
44490
44491
b02396e8
RD
44492SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44493 PyObject *resultobj = 0;
44494 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44495 wxString *arg2 = 0 ;
44496 bool result;
44497 void *argp1 = 0 ;
44498 int res1 = 0 ;
44499 bool temp2 = false ;
44500 PyObject * obj0 = 0 ;
44501 PyObject * obj1 = 0 ;
44502 char * kwnames[] = {
44503 (char *) "self",(char *) "path", NULL
44504 };
44505
44506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44508 if (!SWIG_IsOK(res1)) {
44509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44510 }
44511 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44512 {
44513 arg2 = wxString_in_helper(obj1);
44514 if (arg2 == NULL) SWIG_fail;
44515 temp2 = true;
44516 }
44517 {
44518 PyThreadState* __tstate = wxPyBeginAllowThreads();
44519 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44520 wxPyEndAllowThreads(__tstate);
44521 if (PyErr_Occurred()) SWIG_fail;
44522 }
44523 {
44524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44525 }
44526 {
44527 if (temp2)
44528 delete arg2;
44529 }
44530 return resultobj;
44531fail:
44532 {
44533 if (temp2)
44534 delete arg2;
44535 }
44536 return NULL;
44537}
44538
44539
44540SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44541 PyObject *resultobj = 0;
44542 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44543 wxString result;
44544 void *argp1 = 0 ;
44545 int res1 = 0 ;
44546 PyObject *swig_obj[1] ;
44547
44548 if (!args) SWIG_fail;
44549 swig_obj[0] = args;
44550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44551 if (!SWIG_IsOK(res1)) {
44552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44553 }
44554 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44555 {
44556 PyThreadState* __tstate = wxPyBeginAllowThreads();
44557 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44558 wxPyEndAllowThreads(__tstate);
44559 if (PyErr_Occurred()) SWIG_fail;
44560 }
44561 {
44562#if wxUSE_UNICODE
44563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44564#else
44565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44566#endif
44567 }
44568 return resultobj;
44569fail:
44570 return NULL;
44571}
44572
44573
b850e7f3
RD
44574SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44575 PyObject *obj;
44576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44577 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44578 return SWIG_Py_Void();
44579}
44580
44581SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44582 return SWIG_Python_InitShadowInstance(args);
44583}
44584
44585SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44586 PyObject *resultobj = 0;
44587 wxEventType arg1 ;
44588 wxObject *arg2 = (wxObject *) 0 ;
44589 int arg3 ;
44590 wxString *arg4 = 0 ;
44591 wxFileDirPickerEvent *result = 0 ;
44592 int val1 ;
44593 int ecode1 = 0 ;
44594 void *argp2 = 0 ;
44595 int res2 = 0 ;
44596 int val3 ;
44597 int ecode3 = 0 ;
44598 bool temp4 = false ;
44599 PyObject * obj0 = 0 ;
44600 PyObject * obj1 = 0 ;
44601 PyObject * obj2 = 0 ;
44602 PyObject * obj3 = 0 ;
44603 char * kwnames[] = {
44604 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44605 };
44606
44607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44608 ecode1 = SWIG_AsVal_int(obj0, &val1);
44609 if (!SWIG_IsOK(ecode1)) {
44610 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44611 }
44612 arg1 = static_cast< wxEventType >(val1);
44613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44614 if (!SWIG_IsOK(res2)) {
44615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44616 }
44617 arg2 = reinterpret_cast< wxObject * >(argp2);
44618 ecode3 = SWIG_AsVal_int(obj2, &val3);
44619 if (!SWIG_IsOK(ecode3)) {
44620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44621 }
44622 arg3 = static_cast< int >(val3);
44623 {
44624 arg4 = wxString_in_helper(obj3);
44625 if (arg4 == NULL) SWIG_fail;
44626 temp4 = true;
44627 }
44628 {
44629 PyThreadState* __tstate = wxPyBeginAllowThreads();
44630 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44631 wxPyEndAllowThreads(__tstate);
44632 if (PyErr_Occurred()) SWIG_fail;
44633 }
44634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44635 {
44636 if (temp4)
44637 delete arg4;
44638 }
44639 return resultobj;
44640fail:
44641 {
44642 if (temp4)
44643 delete arg4;
44644 }
44645 return NULL;
44646}
44647
44648
44649SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44650 PyObject *resultobj = 0;
44651 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44652 wxString result;
44653 void *argp1 = 0 ;
44654 int res1 = 0 ;
44655 PyObject *swig_obj[1] ;
44656
44657 if (!args) SWIG_fail;
44658 swig_obj[0] = args;
44659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44660 if (!SWIG_IsOK(res1)) {
44661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44662 }
44663 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44664 {
44665 PyThreadState* __tstate = wxPyBeginAllowThreads();
44666 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44667 wxPyEndAllowThreads(__tstate);
44668 if (PyErr_Occurred()) SWIG_fail;
44669 }
44670 {
44671#if wxUSE_UNICODE
44672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44673#else
44674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44675#endif
44676 }
44677 return resultobj;
44678fail:
44679 return NULL;
44680}
44681
44682
44683SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44684 PyObject *resultobj = 0;
44685 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44686 wxString *arg2 = 0 ;
44687 void *argp1 = 0 ;
44688 int res1 = 0 ;
44689 bool temp2 = false ;
44690 PyObject * obj0 = 0 ;
44691 PyObject * obj1 = 0 ;
44692 char * kwnames[] = {
44693 (char *) "self",(char *) "p", NULL
44694 };
44695
44696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44698 if (!SWIG_IsOK(res1)) {
44699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44700 }
44701 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44702 {
44703 arg2 = wxString_in_helper(obj1);
44704 if (arg2 == NULL) SWIG_fail;
44705 temp2 = true;
44706 }
44707 {
44708 PyThreadState* __tstate = wxPyBeginAllowThreads();
44709 (arg1)->SetPath((wxString const &)*arg2);
44710 wxPyEndAllowThreads(__tstate);
44711 if (PyErr_Occurred()) SWIG_fail;
44712 }
44713 resultobj = SWIG_Py_Void();
44714 {
44715 if (temp2)
44716 delete arg2;
44717 }
44718 return resultobj;
44719fail:
44720 {
44721 if (temp2)
44722 delete arg2;
44723 }
44724 return NULL;
44725}
44726
44727
44728SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44729 PyObject *obj;
44730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44731 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44732 return SWIG_Py_Void();
44733}
44734
44735SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44736 return SWIG_Python_InitShadowInstance(args);
44737}
44738
44739SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44740 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44741 return 1;
44742}
44743
44744
44745SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44746 PyObject *pyobj = 0;
44747
44748 {
44749#if wxUSE_UNICODE
44750 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44751#else
44752 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44753#endif
44754 }
44755 return pyobj;
44756}
44757
44758
44759SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44760 PyObject *resultobj = 0;
44761 wxWindow *arg1 = (wxWindow *) 0 ;
44762 int arg2 = (int) -1 ;
44763 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44764 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44765 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44766 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44767 wxSize const &arg5_defvalue = wxDefaultSize ;
44768 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44769 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44770 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44771 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44772 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44773 wxString *arg8 = (wxString *) &arg8_defvalue ;
44774 wxFontPickerCtrl *result = 0 ;
44775 void *argp1 = 0 ;
44776 int res1 = 0 ;
44777 int val2 ;
44778 int ecode2 = 0 ;
44779 void *argp3 = 0 ;
44780 int res3 = 0 ;
44781 wxPoint temp4 ;
44782 wxSize temp5 ;
44783 long val6 ;
44784 int ecode6 = 0 ;
44785 void *argp7 = 0 ;
44786 int res7 = 0 ;
44787 bool temp8 = false ;
44788 PyObject * obj0 = 0 ;
44789 PyObject * obj1 = 0 ;
44790 PyObject * obj2 = 0 ;
44791 PyObject * obj3 = 0 ;
44792 PyObject * obj4 = 0 ;
44793 PyObject * obj5 = 0 ;
44794 PyObject * obj6 = 0 ;
44795 PyObject * obj7 = 0 ;
44796 char * kwnames[] = {
44797 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44798 };
44799
44800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44802 if (!SWIG_IsOK(res1)) {
44803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44804 }
44805 arg1 = reinterpret_cast< wxWindow * >(argp1);
44806 if (obj1) {
44807 ecode2 = SWIG_AsVal_int(obj1, &val2);
44808 if (!SWIG_IsOK(ecode2)) {
44809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44810 }
44811 arg2 = static_cast< int >(val2);
44812 }
44813 if (obj2) {
44814 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44815 if (!SWIG_IsOK(res3)) {
44816 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44817 }
44818 if (!argp3) {
44819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44820 }
44821 arg3 = reinterpret_cast< wxFont * >(argp3);
44822 }
44823 if (obj3) {
44824 {
44825 arg4 = &temp4;
44826 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44827 }
44828 }
44829 if (obj4) {
44830 {
44831 arg5 = &temp5;
44832 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44833 }
44834 }
44835 if (obj5) {
44836 ecode6 = SWIG_AsVal_long(obj5, &val6);
44837 if (!SWIG_IsOK(ecode6)) {
44838 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44839 }
44840 arg6 = static_cast< long >(val6);
44841 }
44842 if (obj6) {
44843 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44844 if (!SWIG_IsOK(res7)) {
44845 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44846 }
44847 if (!argp7) {
44848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44849 }
44850 arg7 = reinterpret_cast< wxValidator * >(argp7);
44851 }
44852 if (obj7) {
44853 {
44854 arg8 = wxString_in_helper(obj7);
44855 if (arg8 == NULL) SWIG_fail;
44856 temp8 = true;
44857 }
44858 }
44859 {
44860 if (!wxPyCheckForApp()) SWIG_fail;
44861 PyThreadState* __tstate = wxPyBeginAllowThreads();
44862 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44863 wxPyEndAllowThreads(__tstate);
44864 if (PyErr_Occurred()) SWIG_fail;
44865 }
44866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44867 {
44868 if (temp8)
44869 delete arg8;
44870 }
44871 return resultobj;
44872fail:
44873 {
44874 if (temp8)
44875 delete arg8;
44876 }
44877 return NULL;
44878}
44879
44880
44881SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44882 PyObject *resultobj = 0;
44883 wxFontPickerCtrl *result = 0 ;
44884
44885 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44886 {
44887 if (!wxPyCheckForApp()) SWIG_fail;
44888 PyThreadState* __tstate = wxPyBeginAllowThreads();
44889 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44890 wxPyEndAllowThreads(__tstate);
44891 if (PyErr_Occurred()) SWIG_fail;
44892 }
44893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44894 return resultobj;
44895fail:
44896 return NULL;
44897}
44898
44899
44900SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44901 PyObject *resultobj = 0;
44902 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44903 wxWindow *arg2 = (wxWindow *) 0 ;
44904 int arg3 = (int) -1 ;
44905 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44906 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44907 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44908 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44909 wxSize const &arg6_defvalue = wxDefaultSize ;
44910 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44911 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44912 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44913 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44914 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44915 wxString *arg9 = (wxString *) &arg9_defvalue ;
44916 bool result;
44917 void *argp1 = 0 ;
44918 int res1 = 0 ;
44919 void *argp2 = 0 ;
44920 int res2 = 0 ;
44921 int val3 ;
44922 int ecode3 = 0 ;
44923 void *argp4 = 0 ;
44924 int res4 = 0 ;
44925 wxPoint temp5 ;
44926 wxSize temp6 ;
44927 long val7 ;
44928 int ecode7 = 0 ;
44929 void *argp8 = 0 ;
44930 int res8 = 0 ;
44931 bool temp9 = false ;
44932 PyObject * obj0 = 0 ;
44933 PyObject * obj1 = 0 ;
44934 PyObject * obj2 = 0 ;
44935 PyObject * obj3 = 0 ;
44936 PyObject * obj4 = 0 ;
44937 PyObject * obj5 = 0 ;
44938 PyObject * obj6 = 0 ;
44939 PyObject * obj7 = 0 ;
44940 PyObject * obj8 = 0 ;
44941 char * kwnames[] = {
44942 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44943 };
44944
44945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44947 if (!SWIG_IsOK(res1)) {
44948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44949 }
44950 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44952 if (!SWIG_IsOK(res2)) {
44953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44954 }
44955 arg2 = reinterpret_cast< wxWindow * >(argp2);
44956 if (obj2) {
44957 ecode3 = SWIG_AsVal_int(obj2, &val3);
44958 if (!SWIG_IsOK(ecode3)) {
44959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44960 }
44961 arg3 = static_cast< int >(val3);
44962 }
44963 if (obj3) {
44964 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44965 if (!SWIG_IsOK(res4)) {
44966 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44967 }
44968 if (!argp4) {
44969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44970 }
44971 arg4 = reinterpret_cast< wxFont * >(argp4);
44972 }
44973 if (obj4) {
44974 {
44975 arg5 = &temp5;
44976 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44977 }
44978 }
44979 if (obj5) {
44980 {
44981 arg6 = &temp6;
44982 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44983 }
44984 }
44985 if (obj6) {
44986 ecode7 = SWIG_AsVal_long(obj6, &val7);
44987 if (!SWIG_IsOK(ecode7)) {
44988 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44989 }
44990 arg7 = static_cast< long >(val7);
44991 }
44992 if (obj7) {
44993 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44994 if (!SWIG_IsOK(res8)) {
44995 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44996 }
44997 if (!argp8) {
44998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44999 }
45000 arg8 = reinterpret_cast< wxValidator * >(argp8);
45001 }
45002 if (obj8) {
45003 {
45004 arg9 = wxString_in_helper(obj8);
45005 if (arg9 == NULL) SWIG_fail;
45006 temp9 = true;
45007 }
45008 }
45009 {
45010 PyThreadState* __tstate = wxPyBeginAllowThreads();
45011 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45012 wxPyEndAllowThreads(__tstate);
45013 if (PyErr_Occurred()) SWIG_fail;
45014 }
45015 {
45016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45017 }
45018 {
45019 if (temp9)
45020 delete arg9;
45021 }
45022 return resultobj;
45023fail:
45024 {
45025 if (temp9)
45026 delete arg9;
45027 }
45028 return NULL;
45029}
45030
45031
45032SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45033 PyObject *resultobj = 0;
45034 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45035 wxFont result;
45036 void *argp1 = 0 ;
45037 int res1 = 0 ;
45038 PyObject *swig_obj[1] ;
45039
45040 if (!args) SWIG_fail;
45041 swig_obj[0] = args;
45042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45043 if (!SWIG_IsOK(res1)) {
45044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45045 }
45046 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45047 {
45048 PyThreadState* __tstate = wxPyBeginAllowThreads();
45049 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45050 wxPyEndAllowThreads(__tstate);
45051 if (PyErr_Occurred()) SWIG_fail;
45052 }
45053 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45054 return resultobj;
45055fail:
45056 return NULL;
45057}
45058
45059
45060SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45061 PyObject *resultobj = 0;
45062 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45063 wxFont *arg2 = 0 ;
45064 void *argp1 = 0 ;
45065 int res1 = 0 ;
45066 void *argp2 = 0 ;
45067 int res2 = 0 ;
45068 PyObject * obj0 = 0 ;
45069 PyObject * obj1 = 0 ;
45070 char * kwnames[] = {
45071 (char *) "self",(char *) "f", NULL
45072 };
45073
45074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45076 if (!SWIG_IsOK(res1)) {
45077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45078 }
45079 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45081 if (!SWIG_IsOK(res2)) {
45082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45083 }
45084 if (!argp2) {
45085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45086 }
45087 arg2 = reinterpret_cast< wxFont * >(argp2);
45088 {
45089 PyThreadState* __tstate = wxPyBeginAllowThreads();
45090 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45091 wxPyEndAllowThreads(__tstate);
45092 if (PyErr_Occurred()) SWIG_fail;
45093 }
45094 resultobj = SWIG_Py_Void();
45095 return resultobj;
45096fail:
45097 return NULL;
45098}
45099
45100
45101SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45102 PyObject *resultobj = 0;
45103 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45104 unsigned int arg2 ;
45105 void *argp1 = 0 ;
45106 int res1 = 0 ;
45107 unsigned int val2 ;
45108 int ecode2 = 0 ;
45109 PyObject * obj0 = 0 ;
45110 PyObject * obj1 = 0 ;
45111 char * kwnames[] = {
45112 (char *) "self",(char *) "max", NULL
45113 };
45114
45115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45117 if (!SWIG_IsOK(res1)) {
45118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45119 }
45120 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45121 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45122 if (!SWIG_IsOK(ecode2)) {
45123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45124 }
45125 arg2 = static_cast< unsigned int >(val2);
45126 {
45127 PyThreadState* __tstate = wxPyBeginAllowThreads();
45128 (arg1)->SetMaxPointSize(arg2);
45129 wxPyEndAllowThreads(__tstate);
45130 if (PyErr_Occurred()) SWIG_fail;
45131 }
45132 resultobj = SWIG_Py_Void();
45133 return resultobj;
45134fail:
45135 return NULL;
45136}
45137
45138
45139SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45140 PyObject *resultobj = 0;
45141 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45142 unsigned int result;
45143 void *argp1 = 0 ;
45144 int res1 = 0 ;
45145 PyObject *swig_obj[1] ;
45146
45147 if (!args) SWIG_fail;
45148 swig_obj[0] = args;
45149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45150 if (!SWIG_IsOK(res1)) {
45151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45152 }
45153 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45154 {
45155 PyThreadState* __tstate = wxPyBeginAllowThreads();
45156 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45157 wxPyEndAllowThreads(__tstate);
45158 if (PyErr_Occurred()) SWIG_fail;
45159 }
45160 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45161 return resultobj;
45162fail:
45163 return NULL;
45164}
45165
45166
45167SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45168 PyObject *obj;
45169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45170 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45171 return SWIG_Py_Void();
45172}
45173
45174SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45175 return SWIG_Python_InitShadowInstance(args);
45176}
45177
45178SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45179 PyObject *resultobj = 0;
45180 wxObject *arg1 = (wxObject *) 0 ;
45181 int arg2 ;
45182 wxFont *arg3 = 0 ;
45183 wxFontPickerEvent *result = 0 ;
45184 void *argp1 = 0 ;
45185 int res1 = 0 ;
45186 int val2 ;
45187 int ecode2 = 0 ;
45188 void *argp3 = 0 ;
45189 int res3 = 0 ;
45190 PyObject * obj0 = 0 ;
45191 PyObject * obj1 = 0 ;
45192 PyObject * obj2 = 0 ;
45193 char * kwnames[] = {
45194 (char *) "generator",(char *) "id",(char *) "f", NULL
45195 };
45196
45197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45199 if (!SWIG_IsOK(res1)) {
45200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45201 }
45202 arg1 = reinterpret_cast< wxObject * >(argp1);
45203 ecode2 = SWIG_AsVal_int(obj1, &val2);
45204 if (!SWIG_IsOK(ecode2)) {
45205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45206 }
45207 arg2 = static_cast< int >(val2);
45208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45209 if (!SWIG_IsOK(res3)) {
45210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45211 }
45212 if (!argp3) {
45213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45214 }
45215 arg3 = reinterpret_cast< wxFont * >(argp3);
45216 {
45217 PyThreadState* __tstate = wxPyBeginAllowThreads();
45218 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45219 wxPyEndAllowThreads(__tstate);
45220 if (PyErr_Occurred()) SWIG_fail;
45221 }
45222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45223 return resultobj;
45224fail:
45225 return NULL;
45226}
45227
45228
45229SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45230 PyObject *resultobj = 0;
45231 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45232 wxFont result;
45233 void *argp1 = 0 ;
45234 int res1 = 0 ;
45235 PyObject *swig_obj[1] ;
45236
45237 if (!args) SWIG_fail;
45238 swig_obj[0] = args;
45239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45240 if (!SWIG_IsOK(res1)) {
45241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45242 }
45243 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45244 {
45245 PyThreadState* __tstate = wxPyBeginAllowThreads();
45246 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45247 wxPyEndAllowThreads(__tstate);
45248 if (PyErr_Occurred()) SWIG_fail;
45249 }
45250 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45251 return resultobj;
45252fail:
45253 return NULL;
45254}
45255
45256
45257SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45258 PyObject *resultobj = 0;
45259 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45260 wxFont *arg2 = 0 ;
45261 void *argp1 = 0 ;
45262 int res1 = 0 ;
45263 void *argp2 = 0 ;
45264 int res2 = 0 ;
45265 PyObject * obj0 = 0 ;
45266 PyObject * obj1 = 0 ;
45267 char * kwnames[] = {
45268 (char *) "self",(char *) "c", NULL
45269 };
45270
45271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45273 if (!SWIG_IsOK(res1)) {
45274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45275 }
45276 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45278 if (!SWIG_IsOK(res2)) {
45279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45280 }
45281 if (!argp2) {
45282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45283 }
45284 arg2 = reinterpret_cast< wxFont * >(argp2);
45285 {
45286 PyThreadState* __tstate = wxPyBeginAllowThreads();
45287 (arg1)->SetFont((wxFont const &)*arg2);
45288 wxPyEndAllowThreads(__tstate);
45289 if (PyErr_Occurred()) SWIG_fail;
45290 }
45291 resultobj = SWIG_Py_Void();
45292 return resultobj;
45293fail:
45294 return NULL;
45295}
45296
45297
45298SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45299 PyObject *obj;
45300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45301 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45302 return SWIG_Py_Void();
45303}
45304
45305SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45306 return SWIG_Python_InitShadowInstance(args);
45307}
45308
45309static PyMethodDef SwigMethods[] = {
45310 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45312 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45313 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45314 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45315 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45317 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45318 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45320 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45321 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45322 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45323 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45324 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45325 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45326 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45327 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45333 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45334 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45335 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45336 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45338 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45340 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45341 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45343 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45345 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45346 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45348 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45349 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45351 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45353 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45355 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45356 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45358 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45360 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45362 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45363 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45364 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45366 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45367 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45370 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45371 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45375 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45377 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45378 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45379 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45380 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45381 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45382 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45383 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45384 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45385 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45387 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45388 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45389 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45390 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45393 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45395 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45396 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45398 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45400 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45402 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45403 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45405 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45408 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45409 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45411 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45413 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45414 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45416 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45417 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45419 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45423 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45424 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45426 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45428 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45430 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45432 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45433 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45435 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45446 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45451 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45457 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45458 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45460 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45464 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45465 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45466 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45468 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45469 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45479 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45480 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45481 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45482 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45483 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45484 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45485 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45486 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45487 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45488 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45489 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45490 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45491 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45492 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45493 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45494 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45495 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45496 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45498 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45499 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45501 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45503 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45508 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45509 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45510 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45511 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45512 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45513 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45514 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45515 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45520 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45521 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45522 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45530 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45536 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45537 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45538 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45539 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45540 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45541 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45542 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45543 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45544 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45545 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45547 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45548 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45549 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45551 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
45554 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45558 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45559 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45561 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45562 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45563 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45564 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45565 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45566 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45567 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45568 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45569 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45570 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45571 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45572 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45573 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45576 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45577 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45579 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45581 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45582 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45583 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45588 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45590 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45591 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45593 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45595 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45599 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45600 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45603 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45604 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45606 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45608 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45609 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45611 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45613 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45614 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45615 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45617 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45625 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45626 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45630 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45633 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45634 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45636 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45638 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45641 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45642 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45644 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45646 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45649 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45650 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45651 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45655 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45656 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45658 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45660 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45661 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45663 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45664 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45665 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45668 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45669 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45671 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45674 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45676 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45677 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45678 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45680 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45681 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45686 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
45690 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45691 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
45693 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
554f62e9
RD
45695 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45697 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
554f62e9
RD
45698 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45701 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45705 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
45706 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45708 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45710 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45712 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45714 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45715 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45717 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45719 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
45721 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45722 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45724 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45725 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45727 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45728 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45730 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45732 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45733 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45734 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45736 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45737 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45739 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45741 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45742 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45743 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45745 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45746 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45748 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45756 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45757 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45758 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45760 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45761 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45763 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45765 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45766 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45767 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45768 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45770 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45771 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45772 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45773 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45774 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45775 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45776 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45777 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45778 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45779 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45780 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45781 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45782 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45783 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45784 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45785 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45786 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45787 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45788 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45790 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45797 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45799 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45801 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45809 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45814 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45815 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45832 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45833 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45834 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45835 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45838 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45839 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45841 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45842 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45845 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45846 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45847 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45849 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
45850 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45852 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45853 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45855 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45859 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45860 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45861 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45862 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45863 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45864 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45866 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45867 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45868 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45869 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45870 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45871 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45872 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45886 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45887 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45888 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45889 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45890 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45891 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45892 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45893 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45894 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45895 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45896 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45897 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45898 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45899 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45900 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45901 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45902 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45903 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45904 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45905 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45906 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45907 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45908 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45909 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45910 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45911 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45912 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45913 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45914 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45915 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45916 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45917 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45918 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45919 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45920 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45921 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45923 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45924 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45925 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45926 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45927 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45928 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45929 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45930 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45931 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45932 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45933 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45934 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45935 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45936 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45937 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45938 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45939 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45940 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45941 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45942 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45943 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45944 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45945 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45946 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45948 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45949 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45951 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45958 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45959 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45960 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45975 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45976 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45977 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45978 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45979 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45981 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45987 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45988 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45993 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45995 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45996 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46003 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46004 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46020 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46022 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46023 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46025 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46029 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46031 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46035 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46036 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46037 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46038 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46039 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46042 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46043 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46044 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46045 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46047 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46048 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46050 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46052 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46053 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46054 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
554f62e9
RD
46055 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46056 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46058 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46060 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46062 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46063 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46065 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46067 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46070 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46071 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46072 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46074 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46077 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46078 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46080 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46082 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46083 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46111 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46112 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46113 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46120 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46130 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
46131 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
554f62e9
RD
46133 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46137 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46139 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46145 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46152 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
554f62e9
RD
46154 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46155 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46156 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46158 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46160 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46161 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46162 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46164 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46165 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46168 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46169 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46171 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46173 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46174 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46175 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46177 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46178 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46179 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46180 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46182 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46183 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46185 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46186 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46187 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46188 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46189 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46196 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46197 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46198 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46199 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46200 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46201 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46202 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46203 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46204 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46205 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46206 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46207 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46208 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46210 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46211 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46212 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46213 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46214 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46215 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46217 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46219 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46220 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46221 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46223 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46224 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
554f62e9
RD
46225 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46227 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46228 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46229 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
46230 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46234 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46235 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46236 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46237 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46238 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46239 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46241 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46244 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46248 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46249 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46250 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46251 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46254 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46255 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46256 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46257 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46259 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46262 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46264 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46265 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46266 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46267 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46269 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46271 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46272 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46273 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46274 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46275 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46277 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46278 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46280 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46281 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46282 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46284 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46286 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46287 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46289 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46290 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46291 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
b02396e8
RD
46292 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46293 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46295 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46296 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46297 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46298 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46299 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46300 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46301 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46302 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46304 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46306 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46307 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46309 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46310 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46311 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46312 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46314 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46316 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46317 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46319 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46320 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46321 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46323 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46324 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46325 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46326 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46328 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46329 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46330 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46332 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46334 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46335 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46337 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46338 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46339 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46342 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46343 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46344 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46346 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46347 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46348 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
554f62e9
RD
46349 { NULL, NULL, 0, NULL }
46350};
46351
46352
46353/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46354
46355static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46356 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46357}
46358static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46359 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46360}
46361static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46362 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46363}
46364static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46365 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46366}
46367static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46368 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46369}
46370static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46371 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46372}
46373static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46374 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46375}
46376static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46377 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46378}
b850e7f3
RD
46379static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46380 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46381}
46382static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46383 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46384}
46385static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46386 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46387}
554f62e9
RD
46388static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46389 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46390}
46391static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46392 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46393}
46394static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46395 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46396}
554f62e9
RD
46397static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46398 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46399}
2131d850
RD
46400static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46401 return (void *)((wxEvent *) ((wxPyEvent *) x));
46402}
554f62e9
RD
46403static void *_p_wxListEventTo_p_wxEvent(void *x) {
46404 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46405}
46406static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46407 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46408}
46409static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46410 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46411}
46412static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46413 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46414}
46415static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46416 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46417}
46418static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46419 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46420}
46421static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46422 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46423}
46424static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46425 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46426}
46427static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46428 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46429}
46430static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46431 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46432}
46433static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46434 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46435}
46436static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46437 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46438}
46439static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46440 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46441}
46442static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46443 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46444}
46445static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46446 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46447}
46448static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46449 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46450}
2131d850
RD
46451static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46452 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46453}
554f62e9
RD
46454static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46455 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46456}
46457static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46458 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46459}
46460static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46461 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46462}
46463static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46464 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46465}
46466static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46467 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46468}
46469static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46470 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46471}
46472static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46473 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46474}
704eda0c
RD
46475static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46476 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46477}
554f62e9
RD
46478static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46479 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46480}
46481static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46482 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46483}
46484static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46485 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46486}
46487static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46488 return (void *)((wxEvent *) ((wxShowEvent *) x));
46489}
46490static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46491 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46492}
46493static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46494 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46495}
46496static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46497 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46498}
46499static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46500 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46501}
46502static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46503 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46504}
46505static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46506 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46507}
46508static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46509 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46510}
b850e7f3
RD
46511static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46512 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46513}
46514static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46515 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46516}
46517static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46518 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46519}
46520static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46521 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46522}
554f62e9
RD
46523static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46524 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46525}
46526static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46527 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46528}
46529static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46530 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46531}
46532static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46533 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46534}
46535static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46536 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46537}
46538static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46539 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46540}
46541static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46542 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46543}
46544static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46545 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46546}
46547static void *_p_wxToolBarTo_p_wxControl(void *x) {
46548 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46549}
b850e7f3
RD
46550static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46551 return (void *)((wxControl *) ((wxPickerBase *) x));
46552}
554f62e9
RD
46553static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46554 return (void *)((wxControl *) ((wxToggleButton *) x));
46555}
46556static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46557 return (void *)((wxControl *) ((wxRadioButton *) x));
46558}
46559static void *_p_wxToolbookTo_p_wxControl(void *x) {
46560 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46561}
46562static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46563 return (void *)((wxControl *) ((wxToolBarBase *) x));
46564}
46565static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46566 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46567}
46568static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46569 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46570}
46571static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46572 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46573}
46574static void *_p_wxPyControlTo_p_wxControl(void *x) {
46575 return (void *)((wxControl *) ((wxPyControl *) x));
46576}
46577static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46578 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46579}
46580static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46581 return (void *)((wxControl *) ((wxScrollBar *) x));
46582}
46583static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46584 return (void *)((wxControl *) ((wxControlWithItems *) x));
46585}
46586static void *_p_wxGaugeTo_p_wxControl(void *x) {
46587 return (void *)((wxControl *) ((wxGauge *) x));
46588}
46589static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46590 return (void *)((wxControl *) ((wxStaticLine *) x));
46591}
46592static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46593 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46594}
46595static void *_p_wxListbookTo_p_wxControl(void *x) {
46596 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46597}
704eda0c
RD
46598static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46599 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46600}
554f62e9
RD
46601static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46602 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46603}
46604static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46605 return (void *)((wxControl *) ((wxCheckBox *) x));
46606}
46607static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46608 return (void *)((wxControl *) ((wxRadioBox *) x));
46609}
46610static void *_p_wxChoiceTo_p_wxControl(void *x) {
46611 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46612}
46613static void *_p_wxListBoxTo_p_wxControl(void *x) {
46614 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46615}
46616static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46617 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46618}
46619static void *_p_wxListViewTo_p_wxControl(void *x) {
46620 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46621}
46622static void *_p_wxNotebookTo_p_wxControl(void *x) {
46623 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46624}
46625static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46626 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46627}
46628static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46629 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46630}
46631static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46632 return (void *)((wxControl *) ((wxStaticText *) x));
46633}
46634static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46635 return (void *)((wxControl *) ((wxStaticBox *) x));
46636}
46637static void *_p_wxSliderTo_p_wxControl(void *x) {
46638 return (void *)((wxControl *) ((wxSlider *) x));
46639}
46640static void *_p_wxTreebookTo_p_wxControl(void *x) {
46641 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46642}
46643static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46644 return (void *)((wxControl *) ((wxSpinButton *) x));
46645}
46646static void *_p_wxButtonTo_p_wxControl(void *x) {
46647 return (void *)((wxControl *) ((wxButton *) x));
46648}
46649static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46650 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46651}
46652static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46653 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46654}
46655static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46656 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46657}
b850e7f3
RD
46658static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46659 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46660}
46661static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46662 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46663}
46664static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46665 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46666}
46667static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46668 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46669}
554f62e9
RD
46670static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46671 return (void *)((wxControl *) ((wxTextCtrl *) x));
46672}
46673static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46674 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46675}
46676static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
46677 return (void *)((wxChoice *) ((wxComboBox *) x));
46678}
46679static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46680 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46681}
46682static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46683 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46684}
46685static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46686 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46687}
46688static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46689 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46690}
46691static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46692 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46693}
46694static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46695 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46696}
46697static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46698 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46699}
46700static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46701 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46702}
46703static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46704 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46705}
46706static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46707 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46708}
46709static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46710 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46711}
46712static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46713 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46714}
46715static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46716 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46717}
46718static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46719 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46720}
46721static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46722 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46723}
46724static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46725 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46726}
46727static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46728 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46729}
46730static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46731 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46732}
46733static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46734 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46735}
46736static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46737 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46738}
b850e7f3
RD
46739static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46740 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46741}
554f62e9
RD
46742static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46743 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46744}
46745static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46746 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46747}
46748static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46749 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46750}
46751static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46752 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46753}
46754static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46755 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46756}
46757static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46758 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46759}
46760static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46761 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46762}
46763static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46764 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46765}
46766static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46767 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46768}
46769static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46770 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46771}
46772static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46773 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46774}
46775static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46776 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46777}
46778static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46779 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46780}
46781static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46782 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46783}
46784static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46785 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46786}
46787static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46788 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46789}
46790static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46791 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46792}
46793static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46794 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46795}
46796static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46797 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46798}
704eda0c
RD
46799static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46800 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46801}
554f62e9
RD
46802static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46803 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46804}
46805static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46806 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46807}
46808static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46809 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46810}
46811static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46812 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46813}
46814static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46815 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46816}
46817static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46818 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46819}
46820static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46821 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46822}
46823static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46824 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46825}
46826static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46827 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46828}
46829static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46830 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46831}
46832static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46833 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46834}
46835static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46836 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46837}
46838static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46839 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46840}
46841static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46842 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46843}
46844static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46845 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46846}
46847static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46848 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46849}
46850static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46851 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46852}
46853static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46854 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46855}
46856static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46857 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46858}
b850e7f3
RD
46859static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46860 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46861}
46862static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46863 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46864}
46865static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46866 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46867}
46868static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46869 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46870}
554f62e9
RD
46871static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46872 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46873}
46874static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46875 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46876}
46877static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46878 return (void *)((wxButton *) ((wxBitmapButton *) x));
46879}
46880static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46881 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46882}
46883static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46884 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46885}
46886static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46887 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46888}
46889static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46890 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46891}
46892static void *_p_wxToolbookTo_p_wxObject(void *x) {
46893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46894}
46895static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46896 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46897}
46898static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46899 return (void *)((wxObject *) ((wxSizerItem *) x));
46900}
46901static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46902 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46903}
46904static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46905 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46906}
46907static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46908 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46909}
46910static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46911 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46912}
46913static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46914 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46915}
46916static void *_p_wxSizerTo_p_wxObject(void *x) {
46917 return (void *)((wxObject *) ((wxSizer *) x));
46918}
46919static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46920 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46921}
46922static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46923 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46924}
46925static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46927}
46928static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46929 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46930}
46931static void *_p_wxEventTo_p_wxObject(void *x) {
46932 return (void *)((wxObject *) ((wxEvent *) x));
46933}
46934static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46935 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46936}
46937static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46938 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46939}
46940static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46941 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46942}
46943static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46944 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46945}
b850e7f3
RD
46946static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46947 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46948}
554f62e9
RD
46949static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46950 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46951}
46952static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46953 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46954}
2131d850
RD
46955static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46956 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46957}
554f62e9
RD
46958static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46959 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46960}
46961static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46962 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46963}
46964static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46965 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46966}
46967static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46968 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46969}
46970static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46971 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46972}
46973static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46974 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46975}
46976static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46978}
46979static void *_p_wxControlTo_p_wxObject(void *x) {
46980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46981}
46982static void *_p_wxPyControlTo_p_wxObject(void *x) {
46983 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46984}
46985static void *_p_wxGaugeTo_p_wxObject(void *x) {
46986 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46987}
46988static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46989 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46990}
46991static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46993}
46994static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46995 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46996}
46997static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46998 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46999}
b850e7f3
RD
47000static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47001 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47002}
47003static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47004 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47005}
47006static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47008}
554f62e9
RD
47009static void *_p_wxChoiceTo_p_wxObject(void *x) {
47010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47011}
47012static void *_p_wxFSFileTo_p_wxObject(void *x) {
47013 return (void *)((wxObject *) ((wxFSFile *) x));
47014}
47015static void *_p_wxPySizerTo_p_wxObject(void *x) {
47016 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47017}
47018static void *_p_wxTreebookTo_p_wxObject(void *x) {
47019 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47020}
47021static void *_p_wxListViewTo_p_wxObject(void *x) {
47022 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47023}
704eda0c
RD
47024static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47025 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47026}
554f62e9
RD
47027static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47028 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47029}
47030static void *_p_wxNotebookTo_p_wxObject(void *x) {
47031 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47032}
47033static void *_p_wxPyEventTo_p_wxObject(void *x) {
47034 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47035}
47036static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47037 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47038}
47039static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47041}
47042static void *_p_wxListbookTo_p_wxObject(void *x) {
47043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47044}
47045static void *_p_wxShowEventTo_p_wxObject(void *x) {
47046 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47047}
47048static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47049 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47050}
47051static void *_p_wxSliderTo_p_wxObject(void *x) {
47052 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47053}
47054static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47055 return (void *)((wxObject *) ((wxMenuItem *) x));
47056}
47057static void *_p_wxDateEventTo_p_wxObject(void *x) {
47058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47059}
47060static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47061 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47062}
47063static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47064 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47065}
47066static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47067 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47068}
47069static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47070 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47071}
47072static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47073 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47074}
47075static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47076 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47077}
47078static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47079 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47080}
47081static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47082 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47083}
47084static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47085 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47086}
47087static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47088 return (void *)((wxObject *) ((wxContextHelp *) x));
47089}
47090static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47091 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47092}
47093static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47094 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47095}
47096static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47097 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47098}
47099static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47100 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47101}
47102static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47103 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47104}
47105static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47106 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47107}
47108static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47109 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47110}
47111static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47112 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47113}
47114static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47115 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47116}
47117static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47118 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47119}
47120static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47121 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47122}
47123static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47124 return (void *)((wxObject *) ((wxImageHandler *) x));
47125}
47126static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47127 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47128}
47129static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47130 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47131}
47132static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47133 return (void *)((wxObject *) ((wxEvtHandler *) x));
47134}
47135static void *_p_wxListEventTo_p_wxObject(void *x) {
47136 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47137}
47138static void *_p_wxListBoxTo_p_wxObject(void *x) {
47139 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47140}
47141static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47142 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47143}
47144static void *_p_wxButtonTo_p_wxObject(void *x) {
47145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47146}
47147static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47149}
47150static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47151 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47152}
47153static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47154 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47155}
47156static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47157 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47158}
47159static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47160 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47161}
47162static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47163 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47164}
47165static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47167}
47168static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47170}
47171static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47172 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47173}
47174static void *_p_wxListItemTo_p_wxObject(void *x) {
47175 return (void *)((wxObject *) ((wxListItem *) x));
47176}
47177static void *_p_wxImageTo_p_wxObject(void *x) {
47178 return (void *)((wxObject *) ((wxImage *) x));
47179}
47180static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47181 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47182}
47183static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47184 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47185}
47186static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47187 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47188}
47189static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47191}
47192static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47193 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47194}
47195static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47196 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47197}
47198static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47199 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47200}
47201static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47202 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47203}
47204static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47206}
47207static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47208 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47209}
47210static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47211 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47212}
47213static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47214 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47215}
47216static void *_p_wxWindowTo_p_wxObject(void *x) {
47217 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47218}
47219static void *_p_wxMenuTo_p_wxObject(void *x) {
47220 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47221}
47222static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47223 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47224}
47225static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47226 return (void *)((wxObject *) ((wxFileSystem *) x));
47227}
47228static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47230}
47231static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47232 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47233}
47234static void *_p_wxPyAppTo_p_wxObject(void *x) {
47235 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47236}
47237static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47238 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47239}
47240static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47241 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47242}
47243static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47244 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47245}
47246static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47247 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47248}
47249static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47250 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47251}
47252static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47253 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47254}
47255static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47256 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47257}
47258static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47259 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47260}
47261static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47262 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47263}
47264static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47265 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47266}
47267static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47268 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47269}
47270static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47271 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47272}
b850e7f3
RD
47273static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47274 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47275}
47276static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47278}
47279static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47280 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47281}
47282static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47283 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47284}
554f62e9
RD
47285static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47286 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47287}
704eda0c
RD
47288static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47289 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47290}
554f62e9
RD
47291static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47292 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47293}
47294static void *_p_wxToolBarTo_p_wxObject(void *x) {
47295 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47296}
47297static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47298 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47299}
47300static void *_p_wxValidatorTo_p_wxObject(void *x) {
47301 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47302}
47303static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47304 return (void *)((wxWindow *) ((wxMenuBar *) x));
47305}
47306static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47307 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47308}
47309static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47310 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47311}
b850e7f3
RD
47312static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47313 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47314}
554f62e9
RD
47315static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47316 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47317}
47318static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47319 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47320}
47321static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47322 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47323}
47324static void *_p_wxControlTo_p_wxWindow(void *x) {
47325 return (void *)((wxWindow *) ((wxControl *) x));
47326}
47327static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47328 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47329}
47330static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47331 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47332}
47333static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47334 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47335}
47336static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47337 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47338}
47339static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47340 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47341}
47342static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47343 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47344}
47345static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47346 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47347}
47348static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47349 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47350}
47351static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47352 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47353}
47354static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47355 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47356}
47357static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47358 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47359}
47360static void *_p_wxListbookTo_p_wxWindow(void *x) {
47361 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47362}
704eda0c
RD
47363static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47364 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47365}
554f62e9
RD
47366static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47367 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47368}
47369static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47370 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47371}
47372static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47373 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47374}
47375static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47376 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47377}
47378static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47379 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47380}
47381static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47382 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47383}
47384static void *_p_wxListViewTo_p_wxWindow(void *x) {
47385 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47386}
47387static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47388 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47389}
47390static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47391 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47392}
47393static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47394 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47395}
47396static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47397 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47398}
47399static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47400 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47401}
47402static void *_p_wxSliderTo_p_wxWindow(void *x) {
47403 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47404}
47405static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47406 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47407}
47408static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47409 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47410}
47411static void *_p_wxButtonTo_p_wxWindow(void *x) {
47412 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47413}
47414static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47415 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47416}
47417static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47418 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47419}
47420static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47421 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47422}
b850e7f3
RD
47423static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47424 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47425}
47426static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47427 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47428}
47429static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47430 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47431}
47432static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47433 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47434}
554f62e9
RD
47435static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47436 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47437}
47438static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47439 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47440}
47441static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47442 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47443}
47444static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47445 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47446}
47447static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47448 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47449}
47450static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47451 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47452}
47453static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47454 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47455}
704eda0c
RD
47456static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47457 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47458}
2131d850
RD
47459static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47460 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47461}
b850e7f3
RD
47462static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47463 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47464}
47465static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47466 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47467}
47468static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47469 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47470}
554f62e9
RD
47471static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47472 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47473}
47474static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47475 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47476}
47477static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47478 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47479}
47480static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47481 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47482}
47483static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47484 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47485}
554f62e9
RD
47486static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47487 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47488}
2131d850
RD
47489static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47490 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47491}
554f62e9
RD
47492static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47493 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47494}
47495static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47496 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47497}
47498static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47499 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47500}
47501static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47502 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47503}
47504static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47505 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47506}
47507static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47508 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47509}
47510static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47511 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47512}
47513static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47514 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47515}
47516static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47517 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47518}
47519static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47520 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47521}
47522static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47523 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47524}
47525static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47526 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47527}
47528static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
47529 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
47530}
47531static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47532 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47533}
47534static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47535 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47536}
47537static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47538 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47539}
47540static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47541 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47542}
47543static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47544 return (void *)((wxValidator *) ((wxPyValidator *) x));
47545}
47546static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47547static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47548static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47549static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47550static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47551static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47552static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47553static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47554static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47555static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47556static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47557static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47558static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47559static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47560static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47561static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47562static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47563static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47564static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47565static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47566static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47567static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47568static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47569static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
47570static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47571static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47572static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47573static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
47574static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47575static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47576static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47577static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47578static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47579static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47580static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47581static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47582static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47583static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47584static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47585static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47586static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47587static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47588static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47589static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47590static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
554f62e9
RD
47591static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47592static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47593static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47594static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47595static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47596static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47597static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47598static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47599static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47600static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47601static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47602static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47603static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47604static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47605static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47606static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47607static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47608static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47609static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47610static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47611static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47612static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47613static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47614static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47615static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47616static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47617static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47618static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47619static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47620static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47621static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47622static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47623static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
554f62e9 47624static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47625static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47626static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
47627static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47628static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47629static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47630static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47631static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47632static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47633static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
47634static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47635static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47636static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47637static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47638static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47639static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47640static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47641static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47642static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47643static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47644static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47645static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47646static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47647static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47648static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47649static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47650static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47651static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47652static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47653static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47654static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47655static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47656static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47657static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47658static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47659static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47660static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47661static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47662static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47663static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
47664static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47665static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47666static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47667static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47668static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47669static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47670static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47671static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47672static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47673static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47674static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
554f62e9
RD
47675static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47676static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47677static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47678static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47679static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47680static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47681static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47682static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
554f62e9
RD
47683static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47684static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47685static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47686static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47687static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47688static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47689static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47690static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47691static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47692static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47693static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47694static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47695static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47696static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47697static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47698static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47699static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47700static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47701static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47702static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47703static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47704static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47705static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47706static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47707static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47708static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47709static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47710static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47711static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47712static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
47713static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47714static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47715static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47716static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47717static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47718static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47719static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47720static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
554f62e9
RD
47721
47722static swig_type_info *swig_type_initial[] = {
47723 &_swigt__p_bool,
47724 &_swigt__p_char,
47725 &_swigt__p_form_ops_t,
47726 &_swigt__p_int,
47727 &_swigt__p_long,
47728 &_swigt__p_unsigned_char,
47729 &_swigt__p_unsigned_int,
47730 &_swigt__p_unsigned_long,
47731 &_swigt__p_void,
47732 &_swigt__p_wxANIHandler,
47733 &_swigt__p_wxAcceleratorTable,
47734 &_swigt__p_wxActivateEvent,
47735 &_swigt__p_wxArrayInt,
47736 &_swigt__p_wxArrayString,
47737 &_swigt__p_wxBMPHandler,
47738 &_swigt__p_wxBitmap,
47739 &_swigt__p_wxBitmapButton,
47740 &_swigt__p_wxBookCtrlBase,
47741 &_swigt__p_wxBookCtrlBaseEvent,
47742 &_swigt__p_wxBoxSizer,
47743 &_swigt__p_wxButton,
47744 &_swigt__p_wxCURHandler,
47745 &_swigt__p_wxCheckBox,
47746 &_swigt__p_wxCheckListBox,
47747 &_swigt__p_wxChildFocusEvent,
47748 &_swigt__p_wxChoice,
47749 &_swigt__p_wxChoicebook,
47750 &_swigt__p_wxChoicebookEvent,
2131d850 47751 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
47752 &_swigt__p_wxCloseEvent,
47753 &_swigt__p_wxColour,
b850e7f3
RD
47754 &_swigt__p_wxColourPickerCtrl,
47755 &_swigt__p_wxColourPickerEvent,
554f62e9
RD
47756 &_swigt__p_wxComboBox,
47757 &_swigt__p_wxCommandEvent,
47758 &_swigt__p_wxContextHelp,
47759 &_swigt__p_wxContextHelpButton,
47760 &_swigt__p_wxContextMenuEvent,
47761 &_swigt__p_wxControl,
47762 &_swigt__p_wxControlWithItems,
47763 &_swigt__p_wxCursor,
47764 &_swigt__p_wxDC,
47765 &_swigt__p_wxDateEvent,
47766 &_swigt__p_wxDatePickerCtrl,
47767 &_swigt__p_wxDateTime,
47768 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47769 &_swigt__p_wxDirPickerCtrl,
554f62e9
RD
47770 &_swigt__p_wxDisplayChangedEvent,
47771 &_swigt__p_wxDropFilesEvent,
47772 &_swigt__p_wxDuplexMode,
47773 &_swigt__p_wxEraseEvent,
47774 &_swigt__p_wxEvent,
47775 &_swigt__p_wxEvtHandler,
47776 &_swigt__p_wxFSFile,
b850e7f3
RD
47777 &_swigt__p_wxFileDirPickerEvent,
47778 &_swigt__p_wxFilePickerCtrl,
554f62e9
RD
47779 &_swigt__p_wxFileSystem,
47780 &_swigt__p_wxFlexGridSizer,
47781 &_swigt__p_wxFocusEvent,
47782 &_swigt__p_wxFont,
b850e7f3
RD
47783 &_swigt__p_wxFontPickerCtrl,
47784 &_swigt__p_wxFontPickerEvent,
554f62e9
RD
47785 &_swigt__p_wxGBSizerItem,
47786 &_swigt__p_wxGIFHandler,
47787 &_swigt__p_wxGauge,
47788 &_swigt__p_wxGenericDirCtrl,
47789 &_swigt__p_wxGenericDragImage,
47790 &_swigt__p_wxGridBagSizer,
47791 &_swigt__p_wxGridSizer,
47792 &_swigt__p_wxHelpEvent,
47793 &_swigt__p_wxHelpProvider,
704eda0c
RD
47794 &_swigt__p_wxHyperlinkCtrl,
47795 &_swigt__p_wxHyperlinkEvent,
554f62e9
RD
47796 &_swigt__p_wxICOHandler,
47797 &_swigt__p_wxIcon,
47798 &_swigt__p_wxIconizeEvent,
47799 &_swigt__p_wxIdleEvent,
47800 &_swigt__p_wxImage,
47801 &_swigt__p_wxImageHandler,
47802 &_swigt__p_wxImageList,
47803 &_swigt__p_wxIndividualLayoutConstraint,
47804 &_swigt__p_wxInitDialogEvent,
47805 &_swigt__p_wxItemContainer,
47806 &_swigt__p_wxJPEGHandler,
47807 &_swigt__p_wxKeyEvent,
47808 &_swigt__p_wxLayoutConstraints,
47809 &_swigt__p_wxListBox,
47810 &_swigt__p_wxListEvent,
47811 &_swigt__p_wxListItem,
47812 &_swigt__p_wxListItemAttr,
47813 &_swigt__p_wxListView,
47814 &_swigt__p_wxListbook,
47815 &_swigt__p_wxListbookEvent,
47816 &_swigt__p_wxMaximizeEvent,
47817 &_swigt__p_wxMemoryDC,
47818 &_swigt__p_wxMenu,
47819 &_swigt__p_wxMenuBar,
47820 &_swigt__p_wxMenuEvent,
47821 &_swigt__p_wxMenuItem,
47822 &_swigt__p_wxMouseCaptureChangedEvent,
47823 &_swigt__p_wxMouseEvent,
47824 &_swigt__p_wxMoveEvent,
47825 &_swigt__p_wxNavigationKeyEvent,
47826 &_swigt__p_wxNcPaintEvent,
47827 &_swigt__p_wxNotebook,
47828 &_swigt__p_wxNotebookEvent,
47829 &_swigt__p_wxNotifyEvent,
47830 &_swigt__p_wxObject,
47831 &_swigt__p_wxPCXHandler,
47832 &_swigt__p_wxPNGHandler,
47833 &_swigt__p_wxPNMHandler,
47834 &_swigt__p_wxPaintEvent,
47835 &_swigt__p_wxPaletteChangedEvent,
47836 &_swigt__p_wxPaperSize,
b850e7f3 47837 &_swigt__p_wxPickerBase,
554f62e9
RD
47838 &_swigt__p_wxPoint,
47839 &_swigt__p_wxPyApp,
47840 &_swigt__p_wxPyCommandEvent,
47841 &_swigt__p_wxPyControl,
47842 &_swigt__p_wxPyEvent,
47843 &_swigt__p_wxPyImageHandler,
47844 &_swigt__p_wxPyListCtrl,
47845 &_swigt__p_wxPySizer,
47846 &_swigt__p_wxPyTreeCtrl,
47847 &_swigt__p_wxPyTreeItemData,
47848 &_swigt__p_wxPyValidator,
47849 &_swigt__p_wxQueryNewPaletteEvent,
47850 &_swigt__p_wxRadioBox,
47851 &_swigt__p_wxRadioButton,
47852 &_swigt__p_wxRect,
47853 &_swigt__p_wxScrollBar,
47854 &_swigt__p_wxScrollEvent,
47855 &_swigt__p_wxScrollWinEvent,
47856 &_swigt__p_wxSetCursorEvent,
47857 &_swigt__p_wxShowEvent,
47858 &_swigt__p_wxSimpleHelpProvider,
47859 &_swigt__p_wxSize,
47860 &_swigt__p_wxSizeEvent,
47861 &_swigt__p_wxSizer,
47862 &_swigt__p_wxSizerItem,
47863 &_swigt__p_wxSlider,
47864 &_swigt__p_wxSpinButton,
47865 &_swigt__p_wxSpinCtrl,
47866 &_swigt__p_wxSpinEvent,
47867 &_swigt__p_wxStaticBitmap,
47868 &_swigt__p_wxStaticBox,
47869 &_swigt__p_wxStaticBoxSizer,
47870 &_swigt__p_wxStaticLine,
47871 &_swigt__p_wxStaticText,
47872 &_swigt__p_wxStdDialogButtonSizer,
47873 &_swigt__p_wxString,
47874 &_swigt__p_wxSysColourChangedEvent,
47875 &_swigt__p_wxTIFFHandler,
47876 &_swigt__p_wxTextAttr,
47877 &_swigt__p_wxTextCtrl,
47878 &_swigt__p_wxTextUrlEvent,
47879 &_swigt__p_wxToggleButton,
47880 &_swigt__p_wxToolBar,
47881 &_swigt__p_wxToolBarBase,
47882 &_swigt__p_wxToolBarToolBase,
47883 &_swigt__p_wxToolbook,
47884 &_swigt__p_wxToolbookEvent,
47885 &_swigt__p_wxTreeCtrl,
47886 &_swigt__p_wxTreeEvent,
47887 &_swigt__p_wxTreeItemId,
47888 &_swigt__p_wxTreebook,
47889 &_swigt__p_wxTreebookEvent,
47890 &_swigt__p_wxUpdateUIEvent,
47891 &_swigt__p_wxValidator,
47892 &_swigt__p_wxVisualAttributes,
47893 &_swigt__p_wxWindow,
b850e7f3 47894 &_swigt__p_wxWindowBase,
554f62e9
RD
47895 &_swigt__p_wxWindowCreateEvent,
47896 &_swigt__p_wxWindowDestroyEvent,
47897 &_swigt__p_wxXPMHandler,
47898};
47899
47900static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47901static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47902static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47903static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47904static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47905static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47906static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47907static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47908static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47909static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47910static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47911static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47912static 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}};
47913static 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}};
47914static 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}};
47915static 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}};
47916static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47917static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47918static 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}};
47919static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47920static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47921static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47922static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47923static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47924static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47925static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47926static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47927static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47928static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47929static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47930static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47931static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47932static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47933static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47934static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47935static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47936static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47937static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47938static 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}};
47939static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47940static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47941static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47942static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47943static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47944static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47945static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47946static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47947static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47948static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47949static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47950static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47951static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47952static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47953static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47954static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47955static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47956static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47957static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47958static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47959static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47960static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47961static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47962static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47963static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47964static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47965static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47966static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47967static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47968static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47969static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47970static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47971static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47972static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47973static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47974static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47975static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47976static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47977static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 47978static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47979static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47980static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47981static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47982static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47983static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47984static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47985static 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
47986static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47987static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
47988static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47989static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47990static 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}};
47991static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47992static 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}};
47993static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47994static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47995static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47996static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47997static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47998static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47999static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48000static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48001static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48002static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48003static 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}};
48004static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48005static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48006static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48007static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48008static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48009static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48010static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48011static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48012static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48013static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48014static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48015static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48016static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48017static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48018static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48019static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48020static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48021static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48022static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48023static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48024static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48025static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48026static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48027static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48028static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48029static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48030static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48031static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48032static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48033static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48034static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
554f62e9 48035static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48036static 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
48037static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48038static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48039static 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}};
48040static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48041static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48042static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48043static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48044static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48045static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48046static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48047static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48048static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48049static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48050static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48051static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48052static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48053static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48054static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48055static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48056static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48057static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48058static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48059static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48060static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48061static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48062static 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}};
48063static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48064static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48065static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48066static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48067static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48068static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48069static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48070static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48071static 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}};
48072static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48073static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
48074static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
48075
48076static swig_cast_info *swig_cast_initial[] = {
48077 _swigc__p_bool,
48078 _swigc__p_char,
48079 _swigc__p_form_ops_t,
48080 _swigc__p_int,
48081 _swigc__p_long,
48082 _swigc__p_unsigned_char,
48083 _swigc__p_unsigned_int,
48084 _swigc__p_unsigned_long,
48085 _swigc__p_void,
48086 _swigc__p_wxANIHandler,
48087 _swigc__p_wxAcceleratorTable,
48088 _swigc__p_wxActivateEvent,
48089 _swigc__p_wxArrayInt,
48090 _swigc__p_wxArrayString,
48091 _swigc__p_wxBMPHandler,
48092 _swigc__p_wxBitmap,
48093 _swigc__p_wxBitmapButton,
48094 _swigc__p_wxBookCtrlBase,
48095 _swigc__p_wxBookCtrlBaseEvent,
48096 _swigc__p_wxBoxSizer,
48097 _swigc__p_wxButton,
48098 _swigc__p_wxCURHandler,
48099 _swigc__p_wxCheckBox,
48100 _swigc__p_wxCheckListBox,
48101 _swigc__p_wxChildFocusEvent,
48102 _swigc__p_wxChoice,
48103 _swigc__p_wxChoicebook,
48104 _swigc__p_wxChoicebookEvent,
2131d850 48105 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
48106 _swigc__p_wxCloseEvent,
48107 _swigc__p_wxColour,
b850e7f3
RD
48108 _swigc__p_wxColourPickerCtrl,
48109 _swigc__p_wxColourPickerEvent,
554f62e9
RD
48110 _swigc__p_wxComboBox,
48111 _swigc__p_wxCommandEvent,
48112 _swigc__p_wxContextHelp,
48113 _swigc__p_wxContextHelpButton,
48114 _swigc__p_wxContextMenuEvent,
48115 _swigc__p_wxControl,
48116 _swigc__p_wxControlWithItems,
48117 _swigc__p_wxCursor,
48118 _swigc__p_wxDC,
48119 _swigc__p_wxDateEvent,
48120 _swigc__p_wxDatePickerCtrl,
48121 _swigc__p_wxDateTime,
48122 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48123 _swigc__p_wxDirPickerCtrl,
554f62e9
RD
48124 _swigc__p_wxDisplayChangedEvent,
48125 _swigc__p_wxDropFilesEvent,
48126 _swigc__p_wxDuplexMode,
48127 _swigc__p_wxEraseEvent,
48128 _swigc__p_wxEvent,
48129 _swigc__p_wxEvtHandler,
48130 _swigc__p_wxFSFile,
b850e7f3
RD
48131 _swigc__p_wxFileDirPickerEvent,
48132 _swigc__p_wxFilePickerCtrl,
554f62e9
RD
48133 _swigc__p_wxFileSystem,
48134 _swigc__p_wxFlexGridSizer,
48135 _swigc__p_wxFocusEvent,
48136 _swigc__p_wxFont,
b850e7f3
RD
48137 _swigc__p_wxFontPickerCtrl,
48138 _swigc__p_wxFontPickerEvent,
554f62e9
RD
48139 _swigc__p_wxGBSizerItem,
48140 _swigc__p_wxGIFHandler,
48141 _swigc__p_wxGauge,
48142 _swigc__p_wxGenericDirCtrl,
48143 _swigc__p_wxGenericDragImage,
48144 _swigc__p_wxGridBagSizer,
48145 _swigc__p_wxGridSizer,
48146 _swigc__p_wxHelpEvent,
48147 _swigc__p_wxHelpProvider,
704eda0c
RD
48148 _swigc__p_wxHyperlinkCtrl,
48149 _swigc__p_wxHyperlinkEvent,
554f62e9
RD
48150 _swigc__p_wxICOHandler,
48151 _swigc__p_wxIcon,
48152 _swigc__p_wxIconizeEvent,
48153 _swigc__p_wxIdleEvent,
48154 _swigc__p_wxImage,
48155 _swigc__p_wxImageHandler,
48156 _swigc__p_wxImageList,
48157 _swigc__p_wxIndividualLayoutConstraint,
48158 _swigc__p_wxInitDialogEvent,
48159 _swigc__p_wxItemContainer,
48160 _swigc__p_wxJPEGHandler,
48161 _swigc__p_wxKeyEvent,
48162 _swigc__p_wxLayoutConstraints,
48163 _swigc__p_wxListBox,
48164 _swigc__p_wxListEvent,
48165 _swigc__p_wxListItem,
48166 _swigc__p_wxListItemAttr,
48167 _swigc__p_wxListView,
48168 _swigc__p_wxListbook,
48169 _swigc__p_wxListbookEvent,
48170 _swigc__p_wxMaximizeEvent,
48171 _swigc__p_wxMemoryDC,
48172 _swigc__p_wxMenu,
48173 _swigc__p_wxMenuBar,
48174 _swigc__p_wxMenuEvent,
48175 _swigc__p_wxMenuItem,
48176 _swigc__p_wxMouseCaptureChangedEvent,
48177 _swigc__p_wxMouseEvent,
48178 _swigc__p_wxMoveEvent,
48179 _swigc__p_wxNavigationKeyEvent,
48180 _swigc__p_wxNcPaintEvent,
48181 _swigc__p_wxNotebook,
48182 _swigc__p_wxNotebookEvent,
48183 _swigc__p_wxNotifyEvent,
48184 _swigc__p_wxObject,
48185 _swigc__p_wxPCXHandler,
48186 _swigc__p_wxPNGHandler,
48187 _swigc__p_wxPNMHandler,
48188 _swigc__p_wxPaintEvent,
48189 _swigc__p_wxPaletteChangedEvent,
48190 _swigc__p_wxPaperSize,
b850e7f3 48191 _swigc__p_wxPickerBase,
554f62e9
RD
48192 _swigc__p_wxPoint,
48193 _swigc__p_wxPyApp,
48194 _swigc__p_wxPyCommandEvent,
48195 _swigc__p_wxPyControl,
48196 _swigc__p_wxPyEvent,
48197 _swigc__p_wxPyImageHandler,
48198 _swigc__p_wxPyListCtrl,
48199 _swigc__p_wxPySizer,
48200 _swigc__p_wxPyTreeCtrl,
48201 _swigc__p_wxPyTreeItemData,
48202 _swigc__p_wxPyValidator,
48203 _swigc__p_wxQueryNewPaletteEvent,
48204 _swigc__p_wxRadioBox,
48205 _swigc__p_wxRadioButton,
48206 _swigc__p_wxRect,
48207 _swigc__p_wxScrollBar,
48208 _swigc__p_wxScrollEvent,
48209 _swigc__p_wxScrollWinEvent,
48210 _swigc__p_wxSetCursorEvent,
48211 _swigc__p_wxShowEvent,
48212 _swigc__p_wxSimpleHelpProvider,
48213 _swigc__p_wxSize,
48214 _swigc__p_wxSizeEvent,
48215 _swigc__p_wxSizer,
48216 _swigc__p_wxSizerItem,
48217 _swigc__p_wxSlider,
48218 _swigc__p_wxSpinButton,
48219 _swigc__p_wxSpinCtrl,
48220 _swigc__p_wxSpinEvent,
48221 _swigc__p_wxStaticBitmap,
48222 _swigc__p_wxStaticBox,
48223 _swigc__p_wxStaticBoxSizer,
48224 _swigc__p_wxStaticLine,
48225 _swigc__p_wxStaticText,
48226 _swigc__p_wxStdDialogButtonSizer,
48227 _swigc__p_wxString,
48228 _swigc__p_wxSysColourChangedEvent,
48229 _swigc__p_wxTIFFHandler,
48230 _swigc__p_wxTextAttr,
48231 _swigc__p_wxTextCtrl,
48232 _swigc__p_wxTextUrlEvent,
48233 _swigc__p_wxToggleButton,
48234 _swigc__p_wxToolBar,
48235 _swigc__p_wxToolBarBase,
48236 _swigc__p_wxToolBarToolBase,
48237 _swigc__p_wxToolbook,
48238 _swigc__p_wxToolbookEvent,
48239 _swigc__p_wxTreeCtrl,
48240 _swigc__p_wxTreeEvent,
48241 _swigc__p_wxTreeItemId,
48242 _swigc__p_wxTreebook,
48243 _swigc__p_wxTreebookEvent,
48244 _swigc__p_wxUpdateUIEvent,
48245 _swigc__p_wxValidator,
48246 _swigc__p_wxVisualAttributes,
48247 _swigc__p_wxWindow,
b850e7f3 48248 _swigc__p_wxWindowBase,
554f62e9
RD
48249 _swigc__p_wxWindowCreateEvent,
48250 _swigc__p_wxWindowDestroyEvent,
48251 _swigc__p_wxXPMHandler,
48252};
48253
48254
48255/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48256
48257static swig_const_info swig_const_table[] = {
48258{0, 0, 0, 0.0, 0, 0}};
48259
48260#ifdef __cplusplus
48261}
48262#endif
48263/* -----------------------------------------------------------------------------
48264 * Type initialization:
48265 * This problem is tough by the requirement that no dynamic
48266 * memory is used. Also, since swig_type_info structures store pointers to
48267 * swig_cast_info structures and swig_cast_info structures store pointers back
48268 * to swig_type_info structures, we need some lookup code at initialization.
48269 * The idea is that swig generates all the structures that are needed.
48270 * The runtime then collects these partially filled structures.
48271 * The SWIG_InitializeModule function takes these initial arrays out of
48272 * swig_module, and does all the lookup, filling in the swig_module.types
48273 * array with the correct data and linking the correct swig_cast_info
48274 * structures together.
48275 *
48276 * The generated swig_type_info structures are assigned staticly to an initial
48277 * array. We just loop though that array, and handle each type individually.
48278 * First we lookup if this type has been already loaded, and if so, use the
48279 * loaded structure instead of the generated one. Then we have to fill in the
48280 * cast linked list. The cast data is initially stored in something like a
48281 * two-dimensional array. Each row corresponds to a type (there are the same
48282 * number of rows as there are in the swig_type_initial array). Each entry in
48283 * a column is one of the swig_cast_info structures for that type.
48284 * The cast_initial array is actually an array of arrays, because each row has
48285 * a variable number of columns. So to actually build the cast linked list,
48286 * we find the array of casts associated with the type, and loop through it
48287 * adding the casts to the list. The one last trick we need to do is making
48288 * sure the type pointer in the swig_cast_info struct is correct.
48289 *
48290 * First off, we lookup the cast->type name to see if it is already loaded.
48291 * There are three cases to handle:
48292 * 1) If the cast->type has already been loaded AND the type we are adding
48293 * casting info to has not been loaded (it is in this module), THEN we
48294 * replace the cast->type pointer with the type pointer that has already
48295 * been loaded.
48296 * 2) If BOTH types (the one we are adding casting info to, and the
48297 * cast->type) are loaded, THEN the cast info has already been loaded by
48298 * the previous module so we just ignore it.
48299 * 3) Finally, if cast->type has not already been loaded, then we add that
48300 * swig_cast_info to the linked list (because the cast->type) pointer will
48301 * be correct.
48302 * ----------------------------------------------------------------------------- */
48303
48304#ifdef __cplusplus
48305extern "C" {
48306#if 0
48307} /* c-mode */
48308#endif
48309#endif
48310
48311#if 0
48312#define SWIGRUNTIME_DEBUG
48313#endif
48314
48315SWIGRUNTIME void
48316SWIG_InitializeModule(void *clientdata) {
48317 size_t i;
48318 swig_module_info *module_head;
48319 static int init_run = 0;
48320
48321 clientdata = clientdata;
48322
48323 if (init_run) return;
48324 init_run = 1;
48325
48326 /* Initialize the swig_module */
48327 swig_module.type_initial = swig_type_initial;
48328 swig_module.cast_initial = swig_cast_initial;
48329
48330 /* Try and load any already created modules */
48331 module_head = SWIG_GetModule(clientdata);
48332 if (module_head) {
48333 swig_module.next = module_head->next;
48334 module_head->next = &swig_module;
48335 } else {
48336 /* This is the first module loaded */
48337 swig_module.next = &swig_module;
48338 SWIG_SetModule(clientdata, &swig_module);
48339 }
48340
48341 /* Now work on filling in swig_module.types */
48342#ifdef SWIGRUNTIME_DEBUG
48343 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48344#endif
48345 for (i = 0; i < swig_module.size; ++i) {
48346 swig_type_info *type = 0;
48347 swig_type_info *ret;
48348 swig_cast_info *cast;
d55e5bfc 48349
554f62e9
RD
48350#ifdef SWIGRUNTIME_DEBUG
48351 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48352#endif
d55e5bfc 48353
554f62e9
RD
48354 /* if there is another module already loaded */
48355 if (swig_module.next != &swig_module) {
48356 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 48357 }
554f62e9
RD
48358 if (type) {
48359 /* Overwrite clientdata field */
48360#ifdef SWIGRUNTIME_DEBUG
48361 printf("SWIG_InitializeModule: found type %s\n", type->name);
48362#endif
48363 if (swig_module.type_initial[i]->clientdata) {
48364 type->clientdata = swig_module.type_initial[i]->clientdata;
48365#ifdef SWIGRUNTIME_DEBUG
48366 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48367#endif
48368 }
48369 } else {
48370 type = swig_module.type_initial[i];
093d3ff1 48371 }
d55e5bfc 48372
554f62e9
RD
48373 /* Insert casting types */
48374 cast = swig_module.cast_initial[i];
48375 while (cast->type) {
48376 /* Don't need to add information already in the list */
48377 ret = 0;
48378#ifdef SWIGRUNTIME_DEBUG
48379 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48380#endif
48381 if (swig_module.next != &swig_module) {
48382 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48383#ifdef SWIGRUNTIME_DEBUG
48384 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48385#endif
48386 }
48387 if (ret) {
48388 if (type == swig_module.type_initial[i]) {
48389#ifdef SWIGRUNTIME_DEBUG
48390 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48391#endif
48392 cast->type = ret;
48393 ret = 0;
48394 } else {
48395 /* Check for casting already in the list */
48396 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48397#ifdef SWIGRUNTIME_DEBUG
48398 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48399#endif
48400 if (!ocast) ret = 0;
48401 }
48402 }
48403
48404 if (!ret) {
48405#ifdef SWIGRUNTIME_DEBUG
48406 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48407#endif
48408 if (type->cast) {
48409 type->cast->prev = cast;
48410 cast->next = type->cast;
48411 }
48412 type->cast = cast;
48413 }
48414 cast++;
093d3ff1 48415 }
554f62e9
RD
48416 /* Set entry in modules->types array equal to the type */
48417 swig_module.types[i] = type;
48418 }
48419 swig_module.types[i] = 0;
48420
48421#ifdef SWIGRUNTIME_DEBUG
48422 printf("**** SWIG_InitializeModule: Cast List ******\n");
48423 for (i = 0; i < swig_module.size; ++i) {
48424 int j = 0;
48425 swig_cast_info *cast = swig_module.cast_initial[i];
48426 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48427 while (cast->type) {
48428 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48429 cast++;
48430 ++j;
48431 }
48432 printf("---- Total casts: %d\n",j);
48433 }
48434 printf("**** SWIG_InitializeModule: Cast List ******\n");
48435#endif
48436}
48437
48438/* This function will propagate the clientdata field of type to
48439* any new swig_type_info structures that have been added into the list
48440* of equivalent types. It is like calling
48441* SWIG_TypeClientData(type, clientdata) a second time.
48442*/
48443SWIGRUNTIME void
48444SWIG_PropagateClientData(void) {
48445 size_t i;
48446 swig_cast_info *equiv;
48447 static int init_run = 0;
48448
48449 if (init_run) return;
48450 init_run = 1;
48451
48452 for (i = 0; i < swig_module.size; i++) {
48453 if (swig_module.types[i]->clientdata) {
48454 equiv = swig_module.types[i]->cast;
48455 while (equiv) {
48456 if (!equiv->converter) {
48457 if (equiv->type && !equiv->type->clientdata)
48458 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48459 }
48460 equiv = equiv->next;
48461 }
093d3ff1 48462 }
554f62e9
RD
48463 }
48464}
48465
48466#ifdef __cplusplus
48467#if 0
48468{
48469 /* c-mode */
48470#endif
48471}
48472#endif
48473
48474
48475
48476#ifdef __cplusplus
48477extern "C" {
48478#endif
48479
48480 /* Python-specific SWIG API */
48481#define SWIG_newvarlink() SWIG_Python_newvarlink()
48482#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48483#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48484
48485 /* -----------------------------------------------------------------------------
48486 * global variable support code.
48487 * ----------------------------------------------------------------------------- */
48488
48489 typedef struct swig_globalvar {
48490 char *name; /* Name of global variable */
48491 PyObject *(*get_attr)(void); /* Return the current value */
48492 int (*set_attr)(PyObject *); /* Set the value */
48493 struct swig_globalvar *next;
48494 } swig_globalvar;
48495
48496 typedef struct swig_varlinkobject {
48497 PyObject_HEAD
48498 swig_globalvar *vars;
48499 } swig_varlinkobject;
48500
48501 SWIGINTERN PyObject *
48502 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48503 return PyString_FromString("<Swig global variables>");
48504 }
48505
48506 SWIGINTERN PyObject *
48507 swig_varlink_str(swig_varlinkobject *v) {
48508 PyObject *str = PyString_FromString("(");
48509 swig_globalvar *var;
48510 for (var = v->vars; var; var=var->next) {
48511 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48512 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48513 }
48514 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48515 return str;
48516 }
48517
48518 SWIGINTERN int
48519 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48520 PyObject *str = swig_varlink_str(v);
48521 fprintf(fp,"Swig global variables ");
48522 fprintf(fp,"%s\n", PyString_AsString(str));
48523 Py_DECREF(str);
48524 return 0;
48525 }
48526
48527 SWIGINTERN void
48528 swig_varlink_dealloc(swig_varlinkobject *v) {
48529 swig_globalvar *var = v->vars;
48530 while (var) {
48531 swig_globalvar *n = var->next;
48532 free(var->name);
48533 free(var);
48534 var = n;
093d3ff1 48535 }
554f62e9
RD
48536 }
48537
48538 SWIGINTERN PyObject *
48539 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48540 PyObject *res = NULL;
48541 swig_globalvar *var = v->vars;
48542 while (var) {
48543 if (strcmp(var->name,n) == 0) {
48544 res = (*var->get_attr)();
48545 break;
48546 }
48547 var = var->next;
093d3ff1 48548 }
554f62e9
RD
48549 if (res == NULL && !PyErr_Occurred()) {
48550 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 48551 }
554f62e9
RD
48552 return res;
48553 }
48554
48555 SWIGINTERN int
48556 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48557 int res = 1;
48558 swig_globalvar *var = v->vars;
48559 while (var) {
48560 if (strcmp(var->name,n) == 0) {
48561 res = (*var->set_attr)(p);
48562 break;
48563 }
48564 var = var->next;
093d3ff1 48565 }
554f62e9
RD
48566 if (res == 1 && !PyErr_Occurred()) {
48567 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48568 }
554f62e9
RD
48569 return res;
48570 }
48571
48572 SWIGINTERN PyTypeObject*
48573 swig_varlink_type(void) {
48574 static char varlink__doc__[] = "Swig var link object";
48575 static PyTypeObject varlink_type;
48576 static int type_init = 0;
48577 if (!type_init) {
48578 const PyTypeObject tmp
48579 = {
48580 PyObject_HEAD_INIT(NULL)
48581 0, /* Number of items in variable part (ob_size) */
48582 (char *)"swigvarlink", /* Type name (tp_name) */
48583 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48584 0, /* Itemsize (tp_itemsize) */
48585 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48586 (printfunc) swig_varlink_print, /* Print (tp_print) */
48587 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48588 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48589 0, /* tp_compare */
48590 (reprfunc) swig_varlink_repr, /* tp_repr */
48591 0, /* tp_as_number */
48592 0, /* tp_as_sequence */
48593 0, /* tp_as_mapping */
48594 0, /* tp_hash */
48595 0, /* tp_call */
48596 (reprfunc)swig_varlink_str, /* tp_str */
48597 0, /* tp_getattro */
48598 0, /* tp_setattro */
48599 0, /* tp_as_buffer */
48600 0, /* tp_flags */
48601 varlink__doc__, /* tp_doc */
48602 0, /* tp_traverse */
48603 0, /* tp_clear */
48604 0, /* tp_richcompare */
48605 0, /* tp_weaklistoffset */
48606#if PY_VERSION_HEX >= 0x02020000
48607 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48608#endif
48609#if PY_VERSION_HEX >= 0x02030000
48610 0, /* tp_del */
48611#endif
48612#ifdef COUNT_ALLOCS
48613 0,0,0,0 /* tp_alloc -> tp_next */
48614#endif
48615 };
48616 varlink_type = tmp;
48617 varlink_type.ob_type = &PyType_Type;
48618 type_init = 1;
53aa7709 48619 }
554f62e9
RD
48620 return &varlink_type;
48621 }
48622
48623 /* Create a variable linking object for use later */
48624 SWIGINTERN PyObject *
48625 SWIG_Python_newvarlink(void) {
48626 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48627 if (result) {
48628 result->vars = 0;
48629 }
48630 return ((PyObject*) result);
48631 }
48632
48633 SWIGINTERN void
48634 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48635 swig_varlinkobject *v = (swig_varlinkobject *) p;
48636 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48637 if (gv) {
48638 size_t size = strlen(name)+1;
48639 gv->name = (char *)malloc(size);
48640 if (gv->name) {
48641 strncpy(gv->name,name,size);
48642 gv->get_attr = get_attr;
48643 gv->set_attr = set_attr;
48644 gv->next = v->vars;
48645 }
53aa7709 48646 }
554f62e9
RD
48647 v->vars = gv;
48648 }
48649
48650 SWIGINTERN PyObject *
48651 SWIG_globals() {
48652 static PyObject *_SWIG_globals = 0;
48653 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48654 return _SWIG_globals;
48655 }
48656
48657 /* -----------------------------------------------------------------------------
48658 * constants/methods manipulation
48659 * ----------------------------------------------------------------------------- */
48660
48661 /* Install Constants */
48662 SWIGINTERN void
48663 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48664 PyObject *obj = 0;
48665 size_t i;
48666 for (i = 0; constants[i].type; ++i) {
48667 switch(constants[i].type) {
48668 case SWIG_PY_POINTER:
48669 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48670 break;
48671 case SWIG_PY_BINARY:
48672 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48673 break;
48674 default:
48675 obj = 0;
48676 break;
48677 }
48678 if (obj) {
48679 PyDict_SetItemString(d, constants[i].name, obj);
48680 Py_DECREF(obj);
48681 }
53aa7709 48682 }
554f62e9
RD
48683 }
48684
48685 /* -----------------------------------------------------------------------------*/
48686 /* Fix SwigMethods to carry the callback ptrs when needed */
48687 /* -----------------------------------------------------------------------------*/
48688
48689 SWIGINTERN void
48690 SWIG_Python_FixMethods(PyMethodDef *methods,
48691 swig_const_info *const_table,
48692 swig_type_info **types,
48693 swig_type_info **types_initial) {
48694 size_t i;
48695 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 48696 const char *c = methods[i].ml_doc;
554f62e9
RD
48697 if (c && (c = strstr(c, "swig_ptr: "))) {
48698 int j;
48699 swig_const_info *ci = 0;
453fb36b 48700 const char *name = c + 10;
554f62e9
RD
48701 for (j = 0; const_table[j].type; ++j) {
48702 if (strncmp(const_table[j].name, name,
48703 strlen(const_table[j].name)) == 0) {
48704 ci = &(const_table[j]);
48705 break;
48706 }
48707 }
48708 if (ci) {
48709 size_t shift = (ci->ptype) - types;
48710 swig_type_info *ty = types_initial[shift];
48711 size_t ldoc = (c - methods[i].ml_doc);
48712 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48713 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48714 if (ndoc) {
48715 char *buff = ndoc;
48716 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48717 if (ptr) {
48718 strncpy(buff, methods[i].ml_doc, ldoc);
48719 buff += ldoc;
48720 strncpy(buff, "swig_ptr: ", 10);
48721 buff += 10;
48722 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48723 methods[i].ml_doc = ndoc;
48724 }
48725 }
48726 }
48727 }
53aa7709 48728 }
554f62e9
RD
48729 }
48730
48731#ifdef __cplusplus
48732}
48733#endif
48734
48735/* -----------------------------------------------------------------------------*
48736 * Partial Init method
48737 * -----------------------------------------------------------------------------*/
48738
48739#ifdef __cplusplus
48740extern "C"
48741#endif
48742SWIGEXPORT void SWIG_init(void) {
48743 PyObject *m, *d;
48744
48745 /* Fix SwigMethods to carry the callback ptrs when needed */
48746 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48747
48748 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48749 d = PyModule_GetDict(m);
48750
48751 SWIG_InitializeModule(0);
48752 SWIG_InstallConstants(d,swig_const_table);
48753
48754
48755 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48756 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48757 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48758 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48759 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48760 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48761 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48762 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48763 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48764 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48765 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48766 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48767 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48768 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48769 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48770 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48771 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48772 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48773 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48774 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48775 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48776 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
554f62e9
RD
48777 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48778 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48779 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48780 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48781 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48782 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48783 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48784 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48785 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48786 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48787 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48788 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48789 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48790 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48791 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48792 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48793 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48794 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48795 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48796 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48797 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48798 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48799 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
554f62e9
RD
48800 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48801 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48802 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48803 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48804 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48805 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48806 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48807 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48808 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48809 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48810 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48811 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48812 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48813 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48814 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48815 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48816 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48817 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48818 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48819 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48820 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48821 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48822 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48823 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48824 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48825 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48826 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48827 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48830 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48831 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48832 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48833 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48834 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48835 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48836 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48837 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48838 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48839 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48840 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48841 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48842 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48843 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48844 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48845 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48846 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48847 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48848 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48849 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48850 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48851 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48852 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48853 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48854 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48855 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48856 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48857 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48858 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48859 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48860 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48861 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48862 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48863 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
554f62e9
RD
48864 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48865 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48866 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48867 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48868 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48869 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48870 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48871 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48872 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48873 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48874 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48875 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
554f62e9
RD
48876 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48877 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48878 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48879 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48880 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48881 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48882 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48883 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48884 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48885 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48886 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48887 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48888 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48889 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48890 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48891 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48892 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48893 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48894 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48895 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48896 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48897 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48898 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48899 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48900 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48901 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48902 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48903 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48904 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48905 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48906 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48907 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48908 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48909 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48910 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48911 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48912 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48913 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48914 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
554f62e9
RD
48915 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48916 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48917 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48918 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48919 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48920 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48921 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48922 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48923 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48924 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48925 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48926 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48927 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48928 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48929 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48930 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48931 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48932 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48933 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48934 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48935 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48936 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48937 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48938 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48939 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48940 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48941 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48942 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48943 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48944 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48945 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48946 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48947 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48948 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48949 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48950 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48951 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48952 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48953 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48954 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48955 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48956 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48957 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48958 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48959 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48960 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48961 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48962 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
554f62e9
RD
48963 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48964 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48965 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48966 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48967 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48968 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48969 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48970 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48971 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48972 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48973 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48974 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48975 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48976 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48977 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48978 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48979 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48980 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48981 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48982 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48983 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48984 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48985 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48986 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48987 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48988 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48989 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48990 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48991 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48992 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48993 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48994 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48995 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48996 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48997 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48998 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48999 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49000 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49001 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49002 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49003 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49004 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49005
49006 // Map renamed classes back to their common name for OOR
49007 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49008
49009 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49010 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49011 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49012 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49013 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49014 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49015 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49016 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49017 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49018 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49019 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49020 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49021 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49022 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49023 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
554f62e9
RD
49024 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49025 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49026 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49027 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49028 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49029 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49030 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49031 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49032 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49033 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49034 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49035 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49036 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49037 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49038 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49039 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49040 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49041 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49042 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49043 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49044 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49045 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49046 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49047 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49048 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49049 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49050 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49051 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49052 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49053 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49054 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49055 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49056 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49057 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49058 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49059 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49060 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49061 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49062 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49063 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 49064 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
554f62e9
RD
49065
49066 // Map renamed classes back to their common name for OOR
49067 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49068 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49069
49070 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49071 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49072 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49073 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49074 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49075 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49076 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
49077 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
49078 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49079 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
49080 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49081 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49082 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
554f62e9
RD
49083
49084 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49085
49086 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49087 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49088 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49089 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49090 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49091 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49092 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49093 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49094 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49095 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49096 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49097 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49098 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49099 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49100 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49101 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49102 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49103 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49104 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49105 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49106 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49107 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49108 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49109 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49110 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49111 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49112 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49113 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49114 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49115 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49116 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49117 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49118 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49119 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49120 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49121 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49122 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49123 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49124 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49125 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
49126}
49127